0?c.join(","):"any",type:t});await En()({path:r,parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"),10);return n=t>s?s:t,e.json()})).then((t=>{g((e=>[...e,...t])),A(!1),(n&&n>e||e>=1&&i&&x.length>0)&&E(e+1)})).catch((e=>h(e.message)))}),[k,t,s,i,c,x.length,p]);(0,hn.useEffect)((()=>{C(u)}),[u]),(0,hn.useEffect)((()=>{k&&p<=k.length?E():g([])}),[k,E,p]);const R=e=>{v(S.current.contains(e.target))},T=e=>{"Escape"===e.key&&v(!1)};(0,hn.useEffect)((()=>(document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)))),(0,hn.useEffect)((()=>(S&&document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R))));const I=e=>{let t=[];if(x.some((t=>t.id===e.id))){const n=x.findIndex((t=>t.id===e.id));t=[...x.slice(0,n),...x.slice(n+1,x.length)]}else i?t=[...x,e]:(t=[e],v(!1));C(t),a(t)};return(0,e.jsx)("form",{className:"autocomplete__component",onSubmit:e=>e.preventDefault(),children:(0,e.jsxs)("div",{className:Kn()("components-base-control","autocomplete-base-control",n),ref:S,children:[(0,e.jsxs)("div",{"aria-expanded":y,"aria-haspopup":"listbox","aria-owns":`listbox-${d}`,className:Kn()("components-base-control__field","autocomplete-base-control__field"),role:"combobox",children:[(0,e.jsx)("label",{className:Kn()("components-base-control__label","autocomplete-base-control__label"),htmlFor:`autocomplete-${d}`,children:(0,e.jsx)("div",{children:o})}),x.length>0?(0,e.jsx)("ul",{role:"listbox","aria-labelledby":`autocomplete-${d}`,id:`selected-items-${d}`,className:Kn()("autocomplete__selection--results","autocomplete__selection-list"),children:x.map((t=>(0,e.jsx)("li",{className:"autocomplete__selection-list--item",children:(0,e.jsx)(Ht.Button,{className:"autocomplete__selection-list--item--button",isSecondary:!0,isSmall:!0,onClick:()=>I(t),type:"button",children:t.title})},t.title)))}):null,(0,e.jsx)("input",{"aria-autocomplete":"list",autoComplete:"off",className:Kn()("components-text-control__input","autocomplete-text-control__input",{"autocomplete-text-control__input--working":y}),id:`autocomplete-${d}`,onChange:e=>w(e.target.value),onFocus:()=>v(!0),placeholder:l,type:"text",value:_})]}),(0,e.jsx)(mr,{emptyLabel:r,error:f,labelledById:`autocomplete-${d}`,id:`listbox-${d}`,isOpen:y,loading:b&&k,onSelect:I,options:m,selectedItems:x,threshold:p,value:k})]})})};vr.defaultProps={type:"post",className:"",emptyLabel:(0,Yt.__)("No items found","alley-scripts"),label:(0,Yt.__)("Search for items","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,Yt.__)("Search for items","alley-scripts"),subTypes:[],selected:[],threshold:3},vr.propTypes={type:o().string,className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const br=vr,Ar=({className:t,emptyLabel:n,label:r,maxPages:o,multiple:s,onSelect:i,placeholder:a,subTypes:l,selected:c,threshold:u})=>(0,e.jsx)(br,{type:"term",className:t,emptyLabel:n,label:r,maxPages:o,multiple:s,onSelect:i,placeholder:a,subTypes:l,selected:c,threshold:u});Ar.defaultProps={className:"",emptyLabel:(0,Yt.__)("No terms found","alley-scripts"),label:(0,Yt.__)("Search for terms","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,Yt.__)("Search for terms","alley-scripts"),subTypes:[],selected:[],threshold:3},Ar.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const _r=Ar,wr=Bt.div`
+ height: auto;
+ width: 100%;
+`,xr=({src:t})=>(0,e.jsx)(wr,{children:(0,e.jsx)("video",{className:"edit-video-preview",controls:!0,src:t})});xr.propTypes={src:o().string.isRequired};const Cr=({className:t,onReset:n,onUpdate:r,onUpdateURL:o,value:s,valueURL:i})=>(0,e.jsx)(cn,{allowedTypes:["video"],className:t,icon:"format-video",onReset:n,onUpdate:r,onUpdateURL:o,preview:xr,value:s,valueURL:i});Cr.defaultProps={className:"",onUpdateURL:null,valueURL:""},Cr.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const Sr=Cr})(),r})(),e.exports=t()},184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t 0?c.join(","):"any",type:t});await kn()({path:r,parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"),10);return n=t>s?s:t,e.json()})).then((t=>{g((e=>[...e,...t])),_(!1),(n&&n>e||e>=1&&i&&C.length>0)&&k(e+1)})).catch((e=>h(e.message)))}),[E,t,s,i,c,C.length,p]);(0,hn.useEffect)((()=>{x(u)}),[u]),(0,hn.useEffect)((()=>{E&&p<=E.length?k():g([])}),[E,k,p]);const R=e=>{v(S.current.contains(e.target))},T=e=>{"Escape"===e.key&&v(!1)};(0,hn.useEffect)((()=>(document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)))),(0,hn.useEffect)((()=>(S&&document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R))));const I=e=>{let t=[];if(C.some((t=>t.id===e.id))){const n=C.findIndex((t=>t.id===e.id));t=[...C.slice(0,n),...C.slice(n+1,C.length)]}else i?t=[...C,e]:(t=[e],v(!1));x(t),a(t)};return(0,e.jsx)("form",{className:"autocomplete__component",onSubmit:e=>e.preventDefault(),children:(0,e.jsxs)("div",{className:Qn()("components-base-control","autocomplete-base-control",n),ref:S,children:[(0,e.jsxs)("div",{"aria-expanded":y,"aria-haspopup":"listbox","aria-owns":`listbox-${d}`,className:Qn()("components-base-control__field","autocomplete-base-control__field"),role:"combobox",children:[(0,e.jsx)("label",{className:Qn()("components-base-control__label","autocomplete-base-control__label"),htmlFor:`autocomplete-${d}`,children:(0,e.jsx)("div",{children:o})}),C.length>0?(0,e.jsx)("ul",{role:"listbox","aria-labelledby":`autocomplete-${d}`,id:`selected-items-${d}`,className:Qn()("autocomplete__selection--results","autocomplete__selection-list"),children:C.map((t=>(0,e.jsx)("li",{className:"autocomplete__selection-list--item",children:(0,e.jsx)(Ht.Button,{className:"autocomplete__selection-list--item--button",isSecondary:!0,isSmall:!0,onClick:()=>I(t),type:"button",children:t.title})},t.title)))}):null,(0,e.jsx)("input",{"aria-autocomplete":"list",autoComplete:"off",className:Qn()("components-text-control__input","autocomplete-text-control__input",{"autocomplete-text-control__input--working":y}),id:`autocomplete-${d}`,onChange:e=>w(e.target.value),onFocus:()=>v(!0),placeholder:l,type:"text",value:A})]}),(0,e.jsx)(mr,{emptyLabel:r,error:f,labelledById:`autocomplete-${d}`,id:`listbox-${d}`,isOpen:y,loading:b&&E,onSelect:I,options:m,selectedItems:C,threshold:p,value:E})]})})};vr.defaultProps={type:"post",className:"",emptyLabel:(0,Yt.__)("No items found","alley-scripts"),label:(0,Yt.__)("Search for items","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,Yt.__)("Search for items","alley-scripts"),subTypes:[],selected:[],threshold:3},vr.propTypes={type:o().string,className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const br=vr,_r=({className:t,emptyLabel:n,label:r,maxPages:o,multiple:s,onSelect:i,placeholder:a,subTypes:l,selected:c,threshold:u})=>(0,e.jsx)(br,{type:"term",className:t,emptyLabel:n,label:r,maxPages:o,multiple:s,onSelect:i,placeholder:a,subTypes:l,selected:c,threshold:u});_r.defaultProps={className:"",emptyLabel:(0,Yt.__)("No terms found","alley-scripts"),label:(0,Yt.__)("Search for terms","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,Yt.__)("Search for terms","alley-scripts"),subTypes:[],selected:[],threshold:3},_r.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const Ar=_r,wr=Bt.div`
+ height: auto;
+ width: 100%;
+`,Cr=({src:t})=>(0,e.jsx)(wr,{children:(0,e.jsx)("video",{className:"edit-video-preview",controls:!0,src:t})});Cr.propTypes={src:o().string.isRequired};const xr=({className:t,onReset:n,onUpdate:r,onUpdateURL:o,value:s,valueURL:i})=>(0,e.jsx)(cn,{allowedTypes:["video"],className:t,icon:"format-video",onReset:n,onUpdate:r,onUpdateURL:o,preview:Cr,value:s,valueURL:i});xr.defaultProps={className:"",onUpdateURL:null,valueURL:""},xr.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const Sr=xr})(),r})(),e.exports=t()},188:function(e,t,n){"use strict";var r=window.wp.element,o=window.wp.blocks,s=window.wp.blockEditor,i=n(373),a=n(184),l=n.n(a),c=window.React,u=window.wp.apiFetch,p=n.n(u),d=window.wp.components,f=window.wp.data,h=window.wp.i18n,m=window.wp.url;const g=new Map,y=new Map;let v=!1,b=!1;function _(e){if(!e)return!0;const t="string"==typeof e?parseInt(e,10):e;return!g.has(t)&&(g.set(t,!0),!0)}function A(e){if(!e)return;const t="string"==typeof e?parseInt(e,10):e;g.set(t,!0)}const w=(e,t)=>{e.forEach((e=>{if("wp-curate/query"===e.name)t.push(e);else{const{innerBlocks:n}=e;if(!n)return;w(n,t)}}))};function C(){if(v)return void(b=!0);v=!0,b=!1,g.clear(),y.clear();const e=(0,f.select)("core/block-editor").getBlocks(),{wp_curate_deduplication:t=!0}=(0,f.select)("core/editor").getEditedPostAttribute("meta")||{},n=[];w(e,n),n.forEach((e=>{const{attributes:n}=e,{backfillPosts:r=[],deduplication:o="inherit",posts:s=[],numberOfPosts:i=5,postTypes:a=["post"]}=n;if(!r.length)return;const l=a.join(",");let c=0;const u=[],p=s,d=r.filter((e=>!p.includes(e)));for(let e=0;e{var r;let s,i,a=!1;if(null!==p[n])s=p[n],A(s);else do{d[c]&&(i=d[c],t&&"inherit"===o?a=_(i):(a=!0,A(i))),c+=1}while(!1===a&&c<=d.length);u.push(null!==(r=s)&&void 0!==r?r:i)}));const h={perPage:i,postType:"post",type:l,include:u.join(","),orderby:"include"};(0,f.dispatch)("core/block-editor").updateBlockAttributes(e.clientId,{query:h,queryId:0})})),v=!1,b&&C()}var x=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"wp-curate/query","version":"0.1.0","title":"Query","category":"theme","icon":"filter","description":"Custom queries for WP Curate","textdomain":"wp-curate","editorScript":"file:index.ts","editorStyle":"file:index.css","style":["file:style-index.css"],"providesContext":{"query":"query","displayLayout":"displayLayout","heading":"heading","curation":"curation"},"attributes":{"deduplication":{"default":"inherit","enum":["inherit","never"],"type":"string"},"maxNumberOfPosts":{"default":10,"type":"number"},"minNumberOfPosts":{"default":1,"type":"number"},"numberOfPosts":{"default":5,"type":"number"},"offset":{"default":0,"type":"number"},"postTypes":{"default":["post"],"items":{"type":"string"},"type":"array"},"posts":{"default":[],"items":{"type":"number"},"type":"array"},"searchTerm":{"default":"","type":"string"},"terms":{"default":{},"items":{"default":[],"items":{"type":"object"},"type":"array"},"type":"object"}}}');(0,o.registerBlockType)(x,{edit:function(e){let{attributes:{backfillPosts:t=[],deduplication:n="inherit",maxNumberOfPosts:o=10,minNumberOfPosts:a=1,numberOfPosts:u=5,offset:g=0,posts:y=[],postTypes:v=["post"],searchTerm:b,terms:_={}},setAttributes:A}=e;const{wpCurateQueryBlock:{allowedPostTypes:w=[],allowedTaxonomies:x=[]}={}}=window,[S,E]=(0,f.useSelect)((e=>{const t=e("core/editor"),n=t.getEditedPostAttribute("type"),r=t.getEditedPostAttribute("meta");return[Boolean(r?.wp_curate_deduplication),n?e("core").getPostType(n):null]})),k=function(e,t){const[n,r]=c.useState(e);return c.useEffect((()=>{const t=setTimeout((()=>{r(e)}),500);return()=>{clearTimeout(t)}}),[e,500]),n}(null!=b?b:""),[R,T]=(0,r.useState)({}),[I,N]=(0,r.useState)({});let O="";Object.keys(R).length>0&&x.forEach((e=>{if(_[e]?.length>0){const t=R[e].rest_base;t&&(O+=`&${t}=${_[e].map((e=>e.id)).join(",")}`)}}));const P=y.map((e=>null!=e?e:null)).join(","),L=v.join(",");(0,r.useEffect)((()=>{(async()=>{p()({path:"/wp/v2/taxonomies"}).then((e=>{T(e)}))})()}),[]),(0,r.useEffect)((()=>{(async()=>{p()({path:"/wp/v2/types"}).then((e=>{N(e)}))})()}),[]),(0,r.useEffect)((()=>{Object.keys(R).length<=0||(async()=>{let e=(0,m.addQueryArgs)("/wp/v2/posts",{search:k,offset:g,type:L,per_page:20});e+=O,p()({path:e}).then((e=>{const t=e.map((e=>e.id));A({backfillPosts:t})}))})()}),[k,O,g,L,R,A]),(0,r.useEffect)((()=>{C()}),[P,t,u,A,L,S,n]);const j=(e,t)=>{const n=[...y];n.splice(t,1,e),A({posts:n})};for(let e=0;e{w.includes(e)&&D.push({label:I[e].name,value:e})})),(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{...(0,s.useBlockProps)()},(0,r.createElement)(s.InnerBlocks,{template:[["core/post-template",{},[["wp-curate/post",{},[["core/post-title",{isLink:!0}],["core/post-excerpt",{}]]]]]]})),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(d.PanelBody,{title:(0,h.__)("Setup","wp-curate"),initialOpen:!0},void 0!==a&&a!==o?(0,r.createElement)(r.Fragment,null,(0,r.createElement)(d.RangeControl,{label:(0,h.__)("Number of Posts","wp-curate"),help:(0,h.__)("The maximum number of posts to show.","wp-curate"),value:u,onChange:e=>{A({numberOfPosts:e,posts:y.slice(0,e)})},min:a,max:o})):null,(0,r.createElement)(d.RangeControl,{label:(0,h.__)("Offset","wp-curate"),help:(0,h.__)("The number of posts to pass over.","wp-curate"),onChange:e=>A({offset:e}),value:g,min:0,max:20})),(0,r.createElement)(d.PanelBody,{title:(0,h.__)("Select Posts","wp-curate"),initialOpen:!1,className:"manual-posts"},y.map(((e,t)=>{var n;return(0,r.createElement)(d.PanelRow,{className:l()("manual-posts__container",{"manual-posts__container--selected":y[t]})},(0,r.createElement)("span",{className:"manual-posts__counter"},t+1),(0,r.createElement)(i.PostPicker,{allowedTypes:w,onReset:()=>j(0,t),onUpdate:e=>{j(e,t)},value:null!==(n=y[t])&&void 0!==n?n:0,className:"manual-posts__picker"}))}))),(0,r.createElement)(d.PanelBody,{title:(0,h.__)("Query Parameters","wp-curate"),initialOpen:!1},(0,r.createElement)(i.Checkboxes,{label:(0,h.__)("Post Types","wp-curate"),value:v,onChange:e=>A({postTypes:e}),options:D}),Object.keys(R).length>0?x.map((e=>{var t;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.TermSelector,{label:R[e].name,subTypes:[e],selected:null!==(t=_[e])&&void 0!==t?t:[],onSelect:t=>((e,t)=>{const n=t.map((e=>({id:e.id,title:e.title,url:e.url,type:e.type}))),r={..._,[e]:n};A({terms:r})})(e,t),multiple:!0}))})):null,(0,r.createElement)(d.TextControl,{label:(0,h.__)("Search Term","wp-curate"),onChange:e=>A({searchTerm:e}),value:b}))),(0,r.createElement)(s.InspectorControls,{group:"advanced"},(0,r.createElement)(d.RadioControl,{label:(0,h.__)("Deduplication","wp-curate"),help:(0,h.__)("Customize whether posts that have already appeared in previous query blocks can appear again in this block.","wp-curate"),options:[{label:(0,r.createInterpolateElement)((0,h.sprintf)((0,h.__)("Inherit deduplication setting from this %1$s (currently %2$s)","wp-curate"),E?E.labels.singular_name:"post",`${S?(0,h.__)("enabled","wp-curate"):(0,h.__)("disabled","wp-curate")}`),{strong:(0,r.createElement)("strong",null)}),value:"inherit"},{label:(0,h.__)("Never exclude posts appearing in previous query blocks","wp-curate"),value:"never"}],onChange:e=>A({deduplication:e}),selected:n})))},save:()=>{const e=s.useBlockProps.save();return(0,r.createElement)("div",{...e},(0,r.createElement)(s.InnerBlocks.Content,null))}})},184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t 0?c.join(","):"any",type:t});await Rn()({path:r,parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"),10);return n=t>s?s:t,e.json()})).then((t=>{g((e=>[...e,...t])),b(!1),(n&&n>e||e>=1&&i&&C.length>0)&&R(e+1)})).catch((e=>h(e.message)))}),[E,t,s,i,c,C.length,p]);(0,hn.useEffect)((()=>{x(u)}),[u]),(0,hn.useEffect)((()=>{E&&p<=E.length?R():g([])}),[E,R,p]);const k=e=>{v(S.current.contains(e.target))},T=e=>{"Escape"===e.key&&v(!1)};(0,hn.useEffect)((()=>(document.addEventListener("keydown",T),()=>document.removeEventListener("keydown",T)))),(0,hn.useEffect)((()=>(S&&document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k))));const I=e=>{let t=[];if(C.some((t=>t.id===e.id))){const n=C.findIndex((t=>t.id===e.id));t=[...C.slice(0,n),...C.slice(n+1,C.length)]}else i?t=[...C,e]:(t=[e],v(!1));x(t),a(t)};return(0,e.jsx)("form",{className:"autocomplete__component",onSubmit:e=>e.preventDefault(),children:(0,e.jsxs)("div",{className:Kn()("components-base-control","autocomplete-base-control",n),ref:S,children:[(0,e.jsxs)("div",{"aria-expanded":y,"aria-haspopup":"listbox","aria-owns":`listbox-${d}`,className:Kn()("components-base-control__field","autocomplete-base-control__field"),role:"combobox",children:[(0,e.jsx)("label",{className:Kn()("components-base-control__label","autocomplete-base-control__label"),htmlFor:`autocomplete-${d}`,children:(0,e.jsx)("div",{children:o})}),C.length>0?(0,e.jsx)("ul",{role:"listbox","aria-labelledby":`autocomplete-${d}`,id:`selected-items-${d}`,className:Kn()("autocomplete__selection--results","autocomplete__selection-list"),children:C.map((t=>(0,e.jsx)("li",{className:"autocomplete__selection-list--item",children:(0,e.jsx)(Ht.Button,{className:"autocomplete__selection-list--item--button",isSecondary:!0,isSmall:!0,onClick:()=>I(t),type:"button",children:t.title})},t.title)))}):null,(0,e.jsx)("input",{"aria-autocomplete":"list",autoComplete:"off",className:Kn()("components-text-control__input","autocomplete-text-control__input",{"autocomplete-text-control__input--working":y}),id:`autocomplete-${d}`,onChange:e=>w(e.target.value),onFocus:()=>v(!0),placeholder:l,type:"text",value:_})]}),(0,e.jsx)(mr,{emptyLabel:r,error:f,labelledById:`autocomplete-${d}`,id:`listbox-${d}`,isOpen:y,loading:A&&E,onSelect:I,options:m,selectedItems:C,threshold:p,value:E})]})})};vr.defaultProps={type:"post",className:"",emptyLabel:(0,Yt.__)("No items found","alley-scripts"),label:(0,Yt.__)("Search for items","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,Yt.__)("Search for items","alley-scripts"),subTypes:[],selected:[],threshold:3},vr.propTypes={type:o().string,className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const Ar=vr,br=({className:t,emptyLabel:n,label:r,maxPages:o,multiple:s,onSelect:i,placeholder:a,subTypes:l,selected:c,threshold:u})=>(0,e.jsx)(Ar,{type:"term",className:t,emptyLabel:n,label:r,maxPages:o,multiple:s,onSelect:i,placeholder:a,subTypes:l,selected:c,threshold:u});br.defaultProps={className:"",emptyLabel:(0,Yt.__)("No terms found","alley-scripts"),label:(0,Yt.__)("Search for terms","alley-scripts"),maxPages:5,multiple:!1,placeholder:(0,Yt.__)("Search for terms","alley-scripts"),subTypes:[],selected:[],threshold:3},br.propTypes={className:o().string,emptyLabel:o().string,label:o().string,maxPages:o().number,multiple:o().bool,onSelect:o().func.isRequired,placeholder:o().string,subTypes:o().arrayOf(o().string),selected:o().arrayOf([o().shape({id:o().number,title:o().string})]),threshold:o().number};const _r=br,wr=Bt.div`
+ height: auto;
+ width: 100%;
+`,Cr=({src:t})=>(0,e.jsx)(wr,{children:(0,e.jsx)("video",{className:"edit-video-preview",controls:!0,src:t})});Cr.propTypes={src:o().string.isRequired};const xr=({className:t,onReset:n,onUpdate:r,onUpdateURL:o,value:s,valueURL:i})=>(0,e.jsx)(cn,{allowedTypes:["video"],className:t,icon:"format-video",onReset:n,onUpdate:r,onUpdateURL:o,preview:Cr,value:s,valueURL:i});xr.defaultProps={className:"",onUpdateURL:null,valueURL:""},xr.propTypes={className:o().string,onReset:o().func.isRequired,onUpdate:o().func.isRequired,onUpdateURL:o().func,value:o().number.isRequired,valueURL:o().string};const Sr=xr})(),r})(),e.exports=t()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}!function(){"use strict";var e=window.wp.plugins,t=window.wp.element,r=window.wp.components,o=window.wp.editPost,s=window.wp.i18n,i=n(373);(0,e.registerPlugin)("wp-curate-deduplication",{icon:"",render:function(){const[e,n]=(0,i.usePostMetaValue)("wp_curate_deduplication");return(0,t.createElement)(o.PluginDocumentSettingPanel,{icon:"",name:"deduplication",title:(0,s.__)("Deduplication","wp-curate")},(0,t.createElement)(r.ToggleControl,{label:(0,s.__)("Enable deduplication","wp-curate"),checked:e,onChange:e=>n(e)}))}})}()}();
\ No newline at end of file
diff --git a/build/slotfills/index.php b/build/slotfills/index.php
new file mode 100644
index 00000000..f10707d5
--- /dev/null
+++ b/build/slotfills/index.php
@@ -0,0 +1,78 @@
+
-