| 1 |
"use strict";var wp;(wp||={}).blockLibrary=(()=>{var jne=Object.create;var G2=Object.defineProperty;var One=Object.getOwnPropertyDescriptor;var Une=Object.getOwnPropertyNames;var Gne=Object.getPrototypeOf,$ne=Object.prototype.hasOwnProperty;var Wne=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,o)=>(typeof require<"u"?require:t)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var dt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$=(e,t)=>{for(var o in t)G2(e,o,{get:t[o],enumerable:!0})},SE=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Une(t))!$ne.call(e,n)&&n!==o&&G2(e,n,{get:()=>t[n],enumerable:!(a=One(t,n))||a.enumerable});return e};var r=(e,t,o)=>(o=e!=null?jne(Gne(e)):{},SE(t||!e||!e.__esModule?G2(o,"default",{value:e,enumerable:!0}):o,e)),qne=e=>SE(G2({},"__esModule",{value:!0}),e);var U=dt((abe,TE)=>{TE.exports=window.wp.blocks});var z=dt((nbe,BE)=>{BE.exports=window.wp.data});var S=dt((ibe,PE)=>{PE.exports=window.wp.blockEditor});var Ec=dt((lbe,NE)=>{NE.exports=window.wp.serverSideRender});var B=dt((sbe,IE)=>{IE.exports=window.wp.i18n});var L=dt((cbe,DE)=>{DE.exports=window.wp.components});var F=dt((ube,EE)=>{EE.exports=window.wp.element});var Po=dt((mbe,ME)=>{ME.exports=window.wp.blob});var Y=dt((pbe,LE)=>{LE.exports=window.wp.coreData});var xe=dt((dbe,RE)=>{RE.exports=window.wp.compose});var h=dt((gbe,AE)=>{AE.exports=window.ReactJSXRuntime});var E=dt((xbe,UE)=>{UE.exports=window.wp.primitives});var ko=dt((C4e,_M)=>{_M.exports=window.wp.url});var jo=dt((B4e,SM)=>{SM.exports=window.wp.htmlEntities});var No=dt((V4e,VM)=>{VM.exports=window.wp.notices});var jM=dt((U4e,FM)=>{FM.exports=window.wp.privateApis});var wd=dt((H3e,yL)=>{yL.exports=window.wp.deprecated});var Ui=dt((A3e,SL)=>{SL.exports=window.wp.keycodes});var Bm=dt((iwe,EL)=>{EL.exports=window.wp.richText});var S_=dt(($6e,SH)=>{SH.exports=window.wp.date});var C0=dt((v8e,zH)=>{zH.exports=window.wp.apiFetch});var eu=dt((G7e,hA)=>{hA.exports=window.wp.hooks});var z0=dt((lTe,xx)=>{var jV={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u1EA4:"A",\u1EAE:"A",\u1EB2:"A",\u1EB4:"A",\u1EB6:"A",\u00C6:"AE",\u1EA6:"A",\u1EB0:"A",\u0202:"A",\u1EA2:"A",\u1EA0:"A",\u1EA8:"A",\u1EAA:"A",\u1EAC:"A",\u00C7:"C",\u1E08:"C",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u1EBE:"E",\u1E16:"E",\u1EC0:"E",\u1E14:"E",\u1E1C:"E",\u0206:"E",\u1EBA:"E",\u1EBC:"E",\u1EB8:"E",\u1EC2:"E",\u1EC4:"E",\u1EC6:"E",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u1E2E:"I",\u020A:"I",\u1EC8:"I",\u1ECA:"I",\u00D0:"D",\u00D1:"N",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u1ED0:"O",\u1E4C:"O",\u1E52:"O",\u020E:"O",\u1ECE:"O",\u1ECC:"O",\u1ED4:"O",\u1ED6:"O",\u1ED8:"O",\u1EDC:"O",\u1EDE:"O",\u1EE0:"O",\u1EDA:"O",\u1EE2:"O",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u1EE6:"U",\u1EE4:"U",\u1EEC:"U",\u1EEE:"U",\u1EF0:"U",\u00DD:"Y",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u1EA5:"a",\u1EAF:"a",\u1EB3:"a",\u1EB5:"a",\u1EB7:"a",\u00E6:"ae",\u1EA7:"a",\u1EB1:"a",\u0203:"a",\u1EA3:"a",\u1EA1:"a",\u1EA9:"a",\u1EAB:"a",\u1EAD:"a",\u00E7:"c",\u1E09:"c",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u1EBF:"e",\u1E17:"e",\u1EC1:"e",\u1E15:"e",\u1E1D:"e",\u0207:"e",\u1EBB:"e",\u1EBD:"e",\u1EB9:"e",\u1EC3:"e",\u1EC5:"e",\u1EC7:"e",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u1E2F:"i",\u020B:"i",\u1EC9:"i",\u1ECB:"i",\u00F0:"d",\u00F1:"n",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u1ED1:"o",\u1E4D:"o",\u1E53:"o",\u020F:"o",\u1ECF:"o",\u1ECD:"o",\u1ED5:"o",\u1ED7:"o",\u1ED9:"o",\u1EDD:"o",\u1EDF:"o",\u1EE1:"o",\u1EDB:"o",\u1EE3:"o",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u1EE7:"u",\u1EE5:"u",\u1EED:"u",\u1EEF:"u",\u1EF1:"u",\u00FD:"y",\u00FF:"y",\u0100:"A",\u0101:"a",\u0102:"A",\u0103:"a",\u0104:"A",\u0105:"a",\u0106:"C",\u0107:"c",\u0108:"C",\u0109:"c",\u010A:"C",\u010B:"c",\u010C:"C",\u010D:"c",C\u0306:"C",c\u0306:"c",\u010E:"D",\u010F:"d",\u0110:"D",\u0111:"d",\u0112:"E",\u0113:"e",\u0114:"E",\u0115:"e",\u0116:"E",\u0117:"e",\u0118:"E",\u0119:"e",\u011A:"E",\u011B:"e",\u011C:"G",\u01F4:"G",\u011D:"g",\u01F5:"g",\u011E:"G",\u011F:"g",\u0120:"G",\u0121:"g",\u0122:"G",\u0123:"g",\u0124:"H",\u0125:"h",\u0126:"H",\u0127:"h",\u1E2A:"H",\u1E2B:"h",\u0128:"I",\u0129:"i",\u012A:"I",\u012B:"i",\u012C:"I",\u012D:"i",\u012E:"I",\u012F:"i",\u0130:"I",\u0131:"i",\u0132:"IJ",\u0133:"ij",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u1E30:"K",\u1E31:"k",K\u0306:"K",k\u0306:"k",\u0139:"L",\u013A:"l",\u013B:"L",\u013C:"l",\u013D:"L",\u013E:"l",\u013F:"L",\u0140:"l",\u0141:"l",\u0142:"l",\u1E3E:"M",\u1E3F:"m",M\u0306:"M",m\u0306:"m",\u0143:"N",\u0144:"n",\u0145:"N",\u0146:"n",\u0147:"N",\u0148:"n",\u0149:"n",N\u0306:"N",n\u0306:"n",\u014C:"O",\u014D:"o",\u014E:"O",\u014F:"o",\u0150:"O",\u0151:"o",\u0152:"OE",\u0153:"oe",P\u0306:"P",p\u0306:"p",\u0154:"R",\u0155:"r",\u0156:"R",\u0157:"r",\u0158:"R",\u0159:"r",R\u0306:"R",r\u0306:"r",\u0212:"R",\u0213:"r",\u015A:"S",\u015B:"s",\u015C:"S",\u015D:"s",\u015E:"S",\u0218:"S",\u0219:"s",\u015F:"s",\u0160:"S",\u0161:"s",\u0162:"T",\u0163:"t",\u021B:"t",\u021A:"T",\u0164:"T",\u0165:"t",\u0166:"T",\u0167:"t",T\u0306:"T",t\u0306:"t",\u0168:"U",\u0169:"u",\u016A:"U",\u016B:"u",\u016C:"U",\u016D:"u",\u016E:"U",\u016F:"u",\u0170:"U",\u0171:"u",\u0172:"U",\u0173:"u",\u0216:"U",\u0217:"u",V\u0306:"V",v\u0306:"v",\u0174:"W",\u0175:"w",\u1E82:"W",\u1E83:"w",X\u0306:"X",x\u0306:"x",\u0176:"Y",\u0177:"y",\u0178:"Y",Y\u0306:"Y",y\u0306:"y",\u0179:"Z",\u017A:"z",\u017B:"Z",\u017C:"z",\u017D:"Z",\u017E:"z",\u017F:"s",\u0192:"f",\u01A0:"O",\u01A1:"o",\u01AF:"U",\u01B0:"u",\u01CD:"A",\u01CE:"a",\u01CF:"I",\u01D0:"i",\u01D1:"O",\u01D2:"o",\u01D3:"U",\u01D4:"u",\u01D5:"U",\u01D6:"u",\u01D7:"U",\u01D8:"u",\u01D9:"U",\u01DA:"u",\u01DB:"U",\u01DC:"u",\u1EE8:"U",\u1EE9:"u",\u1E78:"U",\u1E79:"u",\u01FA:"A",\u01FB:"a",\u01FC:"AE",\u01FD:"ae",\u01FE:"O",\u01FF:"o",\u00DE:"TH",\u00FE:"th",\u1E54:"P",\u1E55:"p",\u1E64:"S",\u1E65:"s",X\u0301:"X",x\u0301:"x",\u0403:"\u0413",\u0453:"\u0433",\u040C:"\u041A",\u045C:"\u043A",A\u030B:"A",a\u030B:"a",E\u030B:"E",e\u030B:"e",I\u030B:"I",i\u030B:"i",\u01F8:"N",\u01F9:"n",\u1ED2:"O",\u1ED3:"o",\u1E50:"O",\u1E51:"o",\u1EEA:"U",\u1EEB:"u",\u1E80:"W",\u1E81:"w",\u1EF2:"Y",\u1EF3:"y",\u0200:"A",\u0201:"a",\u0204:"E",\u0205:"e",\u0208:"I",\u0209:"i",\u020C:"O",\u020D:"o",\u0210:"R",\u0211:"r",\u0214:"U",\u0215:"u",B\u030C:"B",b\u030C:"b",\u010C\u0323:"C",\u010D\u0323:"c",\u00CA\u030C:"E",\u00EA\u030C:"e",F\u030C:"F",f\u030C:"f",\u01E6:"G",\u01E7:"g",\u021E:"H",\u021F:"h",J\u030C:"J",\u01F0:"j",\u01E8:"K",\u01E9:"k",M\u030C:"M",m\u030C:"m",P\u030C:"P",p\u030C:"p",Q\u030C:"Q",q\u030C:"q",\u0158\u0329:"R",\u0159\u0329:"r",\u1E66:"S",\u1E67:"s",V\u030C:"V",v\u030C:"v",W\u030C:"W",w\u030C:"w",X\u030C:"X",x\u030C:"x",Y\u030C:"Y",y\u030C:"y",A\u0327:"A",a\u0327:"a",B\u0327:"B",b\u0327:"b",\u1E10:"D",\u1E11:"d",\u0228:"E",\u0229:"e",\u0190\u0327:"E",\u025B\u0327:"e",\u1E28:"H",\u1E29:"h",I\u0327:"I",i\u0327:"i",\u0197\u0327:"I",\u0268\u0327:"i",M\u0327:"M",m\u0327:"m",O\u0327:"O",o\u0327:"o",Q\u0327:"Q",q\u0327:"q",U\u0327:"U",u\u0327:"u",X\u0327:"X",x\u0327:"x",Z\u0327:"Z",z\u0327:"z",\u0439:"\u0438",\u0419:"\u0418",\u0451:"\u0435",\u0401:"\u0415"},OV=Object.keys(jV).join("|"),bue=new RegExp(OV,"g"),yue=new RegExp(OV,"");function _ue(e){return jV[e]}var UV=function(e){return e.replace(bue,_ue)},xue=function(e){return!!e.match(yue)};xx.exports=UV;xx.exports.has=xue;xx.exports.remove=UV});var Qs=dt((sTe,GV)=>{GV.exports=window.wp.dom});var K0=dt((wIe,qO)=>{qO.exports=window.wp.a11y});var B$=dt((BMe,T$)=>{T$.exports=window.wp.escapeHtml});var TK=dt((SVe,SK)=>{SK.exports=window.wp.wordcount});var LX=dt((gUe,MX)=>{MX.exports=window.wp.patterns});var CJ=dt((_Ge,wJ)=>{wJ.exports=window.wp.autop});var toe=dt((Zqe,eoe)=>{"use strict";eoe.exports=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var a,n,i;if(Array.isArray(t)){if(a=t.length,a!=o.length)return!1;for(n=a;n--!==0;)if(!e(t[n],o[n]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;for(n of t.entries())if(!e(n[1],o.get(n[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(n of t.entries())if(!o.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(o)){if(a=t.length,a!=o.length)return!1;for(n=a;n--!==0;)if(t[n]!==o[n])return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(i=Object.keys(t),a=i.length,a!==Object.keys(o).length)return!1;for(n=a;n--!==0;)if(!Object.prototype.hasOwnProperty.call(o,i[n]))return!1;for(n=a;n--!==0;){var l=i[n];if(!e(t[l],o[l]))return!1}return!0}return t!==t&&o!==o}});var Cne=dt((SXe,wne)=>{wne.exports=window.wp.keyboardShortcuts});var tbe={};$(tbe,{__experimentalGetCoreBlocks:()=>Ene,__experimentalRegisterExperimentalCoreBlocks:()=>ebe,privateApis:()=>yE,registerCoreBlocks:()=>Jve});var Ai=r(U()),Pne=r(z()),Nne=r(S()),Ine=r(Ec()),R2=r(B());var o6={};$(o6,{init:()=>Yne,metadata:()=>K2,name:()=>$E,settings:()=>WE});var t6=r(B());var Wr=r(S()),Bn=r(B()),ar=r(L()),sd=r(z()),q2=r(U());var $2=r(z()),am=r(F()),Mc=r(Po()),JC=r(S()),HE=r(Y()),zE=r(xe());function W2(e,t,o){return(0,$2.useSelect)(a=>a(HE.store).canUser("update",{kind:e,name:t,id:o}),[e,t,o])}function Lc(e={}){let t=(0,am.useRef)(e),o=(0,am.useRef)(!1),{getSettings:a}=(0,$2.useSelect)(JC.store);(0,am.useLayoutEffect)(()=>{t.current=e}),(0,am.useEffect)(()=>{if(o.current||!t.current.url||!(0,Mc.isBlobURL)(t.current.url))return;let n=(0,Mc.getBlobByURL)(t.current.url);if(!n)return;let{url:i,allowedTypes:l,onChange:s,onError:c}=t.current,{mediaUpload:u}=a();u&&(o.current=!0,u({filesList:[n],allowedTypes:l,onFileChange:([m])=>{(0,Mc.isBlobURL)(m?.url)||((0,Mc.revokeBlobURL)(i),s(m),o.current=!1)},onError:m=>{(0,Mc.revokeBlobURL)(i),c(m),o.current=!1}}))},[a])}function rh(){let{avatarURL:e}=(0,$2.useSelect)(t=>{let{getSettings:o}=t(JC.store),{__experimentalDiscussionSettings:a}=o();return a});return e}function G(){return(0,zE.useViewportMatch)("medium","<")?{}:{popoverProps:{placement:"left-start",offset:259}}}var ao=r(h()),e6="core/accordion-item",Zne="core/accordion-heading",Kne={name:e6};function VE({attributes:{autoclose:e,iconPosition:t,showIcon:o,headingLevel:a,levelOptions:n},clientId:i,setAttributes:l,isSelected:s}){let c=(0,sd.useRegistry)(),{getBlockOrder:u}=(0,sd.useSelect)(Wr.store),m=(0,Wr.useBlockProps)({role:"group"}),p=G(),{updateBlockAttributes:d,insertBlock:f}=(0,sd.useDispatch)(Wr.store),v=(0,Wr.useBlockEditingMode)()==="contentOnly",b=(0,Wr.useInnerBlocksProps)(m,{template:[[e6]],defaultBlock:Kne,directInsert:!0,templateInsertUpdatesSelection:!0});return(0,ao.jsxs)(ao.Fragment,{children:[s&&!v&&(0,ao.jsxs)(ao.Fragment,{children:[(0,ao.jsx)(Wr.BlockControls,{children:(0,ao.jsx)(ar.ToolbarGroup,{children:(0,ao.jsx)(Wr.HeadingLevelDropdown,{value:a,options:n,onChange:x=>{let w=u(i),C=[];w.forEach(T=>{let N=u(T);C.push(...N)}),c.batch(()=>{l({headingLevel:x}),d(C,{level:x})})}})})}),(0,ao.jsx)(Wr.BlockControls,{group:"other",children:(0,ao.jsx)(ar.ToolbarButton,{onClick:()=>{let x=(0,q2.createBlock)(e6,{},[(0,q2.createBlock)(Zne,{level:a}),(0,q2.createBlock)("core/accordion-panel",{})]);f(x,void 0,i)},children:(0,Bn.__)("Add item")})})]}),(0,ao.jsx)(Wr.InspectorControls,{children:(0,ao.jsxs)(ar.__experimentalToolsPanel,{label:(0,Bn.__)("Settings"),resetAll:()=>{l({autoclose:!1,showIcon:!0,iconPosition:"right"})},dropdownMenuProps:p,children:[(0,ao.jsx)(ar.__experimentalToolsPanelItem,{label:(0,Bn.__)("Auto-close"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>l({autoclose:!1}),children:(0,ao.jsx)(ar.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,Bn.__)("Auto-close"),onChange:x=>{l({autoclose:x})},checked:e,help:(0,Bn.__)("Automatically close accordions when a new one is opened.")})}),(0,ao.jsx)(ar.__experimentalToolsPanelItem,{label:(0,Bn.__)("Show icon"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>l({showIcon:!0}),children:(0,ao.jsx)(ar.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,Bn.__)("Show icon"),onChange:x=>{l({showIcon:x,iconPosition:x?t:"right"})},checked:o,help:(0,Bn.__)("Display a plus icon next to the accordion header.")})}),o&&(0,ao.jsx)(ar.__experimentalToolsPanelItem,{label:(0,Bn.__)("Icon Position"),isShownByDefault:!0,hasValue:()=>t!=="right",onDeselect:()=>l({iconPosition:"right"}),children:(0,ao.jsxs)(ar.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,isBlock:!0,label:(0,Bn.__)("Icon Position"),value:t,onChange:x=>{l({iconPosition:x})},children:[(0,ao.jsx)(ar.__experimentalToggleGroupControlOption,{label:(0,Bn.__)("Left"),value:"left"}),(0,ao.jsx)(ar.__experimentalToggleGroupControlOption,{label:(0,Bn.__)("Right"),value:"right"})]})})]})},"setting"),(0,ao.jsx)("div",{...b})]})}var Z2=r(S()),FE=r(h());function jE(){let e=Z2.useBlockProps.save({role:"group"});return(0,FE.jsx)("div",{...Z2.useInnerBlocksProps.save(e)})}var K2={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion",title:"Accordion",category:"design",description:"Displays a foldable layout that groups content in collapsible sections.",example:{},supports:{anchor:!0,html:!1,align:["wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{background:!0,gradients:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},spacing:{padding:!0,margin:["top","bottom"],blockGap:!0},shadow:!0,layout:!0,ariaLabel:!0,interactivity:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0},attributes:{iconPosition:{type:"string",default:"right"},showIcon:{type:"boolean",default:!0},autoclose:{type:"boolean",default:!1},headingLevel:{type:"number",default:3},levelOptions:{type:"array"}},providesContext:{"core/accordion-icon-position":"iconPosition","core/accordion-show-icon":"showIcon","core/accordion-heading-level":"headingLevel"},allowedBlocks:["core/accordion-item"],textdomain:"default",viewScriptModule:"@wordpress/block-library/accordion/view"};var OE=r(U());function D(e){if(!e)return;let{metadata:t,settings:o,name:a}=e;return(0,OE.registerBlockType)({name:a,...t},o)}var nm=r(E()),im=r(h()),GE=(0,im.jsxs)(nm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,im.jsx)(nm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z",fill:"currentColor"}),(0,im.jsx)(nm.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z",fill:"currentColor"}),(0,im.jsx)(nm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z",fill:"currentColor"}),(0,im.jsx)(nm.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z",fill:"currentColor"})]});var{name:$E}=K2,WE={icon:GE,example:{innerBlocks:[{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,t6.__)("Lorem ipsum dolor sit amet, consectetur.")}}]},{name:"core/accordion-item",innerBlocks:[{name:"core/accordion-heading",attributes:{title:(0,t6.__)("Suspendisse commodo lacus, interdum et.")}}]}]},edit:VE,save:jE},Yne=()=>D({name:$E,metadata:K2,settings:WE});var r6={};$(r6,{init:()=>eie,metadata:()=>X2,name:()=>JE,settings:()=>eM});var ah=r(B()),Vs=r(S()),Q2=r(z()),ZE=r(F()),cd=r(L());function qE(e){var t,o,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=qE(e[t]))&&(a&&(a+=" "),a+=o)}else for(o in e)e[o]&&(a&&(a+=" "),a+=o);return a}function Xne(){for(var e,t,o=0,a="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=qE(e))&&(a&&(a+=" "),a+=t);return a}var k=Xne;var Al=r(h());function KE({attributes:e,clientId:t,setAttributes:o,context:a}){let{openByDefault:n}=e,i=G(),{isSelected:l,getBlockOrder:s}=(0,Q2.useSelect)(g=>{let{isBlockSelected:v,hasSelectedInnerBlock:b,getBlockOrder:y}=g(Vs.store);return{isSelected:v(t)||b(t,!0),getBlockOrder:y}},[t]),c=s(t)[1],{updateBlockAttributes:u,__unstableMarkNextChangeAsNotPersistent:m}=(0,Q2.useDispatch)(Vs.store);(0,ZE.useEffect)(()=>{c&&(m(),u(c,{isSelected:l}))},[l,c,m,u]);let p=(0,Vs.useBlockProps)({className:k({"is-open":n||l})}),d=a&&a["core/accordion-heading-level"],f=(0,Vs.useInnerBlocksProps)(p,{template:[["core/accordion-heading",d?{level:d}:{}],["core/accordion-panel",{openByDefault:n}]],templateLock:"all",directInsert:!0,templateInsertUpdatesSelection:!0});return(0,Al.jsxs)(Al.Fragment,{children:[(0,Al.jsx)(Vs.InspectorControls,{children:(0,Al.jsx)(cd.__experimentalToolsPanel,{label:(0,ah.__)("Settings"),resetAll:()=>{o({openByDefault:!1}),c&&u(c,{openByDefault:!1})},dropdownMenuProps:i,children:(0,Al.jsx)(cd.__experimentalToolsPanelItem,{label:(0,ah.__)("Open by default"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{o({openByDefault:!1}),c&&u(c,{openByDefault:!1})},children:(0,Al.jsx)(cd.ToggleControl,{label:(0,ah.__)("Open by default"),__nextHasNoMarginBottom:!0,onChange:g=>{o({openByDefault:g}),c&&u(c,{openByDefault:g})},checked:n,help:(0,ah.__)("Accordion content will be displayed by default.")})})})},"setting"),(0,Al.jsx)("div",{...f})]})}var Y2=r(S());var QE=r(h());function YE({attributes:e}){let{openByDefault:t}=e,o=Y2.useBlockProps.save({className:k({"is-open":t})}),a=Y2.useInnerBlocksProps.save(o);return(0,QE.jsx)("div",{...a})}var X2={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-item",title:"Accordion Item",category:"design",description:"Wraps the heading and panel in one unit.",parent:["core/accordion"],allowedBlocks:["core/accordion-heading","core/accordion-panel"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{margin:["top","bottom"],blockGap:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},shadow:!0,layout:{allowEditing:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},contentRole:!0},attributes:{openByDefault:{type:"boolean",default:!1}},textdomain:"default",style:"wp-block-accordion-item"};var lm=r(E()),sm=r(h()),XE=(0,sm.jsxs)(lm.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,sm.jsx)(lm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.5L9.5 9.5L9.5 8L19.5 8L19.5 9.5Z",fill:"currentColor"}),(0,sm.jsx)(lm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 13L9.5 13L9.5 11.5L19.5 11.5L19.5 13Z",fill:"currentColor"}),(0,sm.jsx)(lm.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.3999L9.5 16.3999L9.5 14.8999L19.5 14.8999L19.5 16.3999Z",fill:"currentColor"}),(0,sm.jsx)(lm.Path,{d:"M4.5 6.25L8.5 8.75L4.5 11.25L4.5 6.25Z",fill:"currentColor"})]});var{name:JE}=X2,eM={icon:XE,edit:KE,save:YE},eie=()=>D({name:JE,metadata:X2,settings:eM});var a6={};$(a6,{init:()=>rie,metadata:()=>J2,name:()=>lM,settings:()=>sM});var tM=r(B()),oM=r(F()),Vl=r(S()),cm=r(h());function rM({attributes:e,setAttributes:t,context:o}){let{title:a}=e,{"core/accordion-icon-position":n,"core/accordion-show-icon":i,"core/accordion-heading-level":l}=o,s="h"+l;(0,oM.useEffect)(()=>{n!==void 0&&i!==void 0&&t({iconPosition:n,showIcon:i})},[n,i,t]);let[c,u]=(0,Vl.useSettings)("typography.fluid","layout"),m=(0,Vl.getTypographyClassesAndStyles)(e,{typography:{fluid:c},layout:{wideSize:u?.wideSize}}),p=(0,Vl.useBlockProps)(),d=(0,Vl.__experimentalGetSpacingClassesAndStyles)(e);return(0,cm.jsx)(s,{...p,children:(0,cm.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:d.style,tabIndex:"-1",children:[i&&n==="left"&&(0,cm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,cm.jsx)(Vl.RichText,{withoutInteractiveFormatting:!0,disableLineBreaks:!0,tagName:"span",value:a,onChange:f=>t({title:f}),placeholder:(0,tM.__)("Accordion title"),className:"wp-block-accordion-heading__toggle-title",style:{letterSpacing:m.style.letterSpacing,textDecoration:m.style.textDecoration}}),i&&n==="right"&&(0,cm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var Rc=r(S()),um=r(h());function aM({attributes:e}){let{level:t,title:o,iconPosition:a,showIcon:n}=e,i="h"+(t||3),l=(0,Rc.getTypographyClassesAndStyles)(e),s=Rc.useBlockProps.save(),c=(0,Rc.__experimentalGetSpacingClassesAndStyles)(e);return(0,um.jsx)(i,{...s,children:(0,um.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:c.style,children:[n&&a==="left"&&(0,um.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,um.jsx)(Rc.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:o,style:{letterSpacing:l.style.letterSpacing,textDecoration:l.style.textDecoration}}),n&&a==="right"&&(0,um.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}var J2={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-heading",title:"Accordion Heading",category:"design",description:"Displays a heading that toggles the accordion panel.",parent:["core/accordion-item"],usesContext:["core/accordion-icon-position","core/accordion-show-icon","core/accordion-heading-level"],supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{__experimentalSkipSerialization:["textDecoration","letterSpacing"],fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1,lock:!1},selectors:{typography:{letterSpacing:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title",textDecoration:".wp-block-accordion-heading .wp-block-accordion-heading__toggle-title"}},attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},textdomain:"default"};var nh=r(E()),ih=r(h()),nM=(0,ih.jsxs)(nh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,ih.jsx)(nh.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 12.75L9.5 12.75L9.5 11.25L19.5 11.25L19.5 12.75Z",fill:"currentColor"}),(0,ih.jsx)(nh.Path,{d:"M4.5 9.5L8.5 12L4.5 14.5L4.5 9.5Z",fill:"currentColor"})]});var ud=r(S()),mm=r(h()),oie={attributes:{openByDefault:{type:"boolean",default:!1},title:{type:"rich-text",source:"rich-text",selector:".wp-block-accordion-heading__toggle-title",role:"content"},level:{type:"number"},iconPosition:{type:"string",enum:["left","right"],default:"right"},showIcon:{type:"boolean",default:!0}},supports:{anchor:!0,color:{background:!0,gradients:!0},align:!1,interactivity:!0,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0},__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-accordion-heading__toggle"},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontFamily:!0}},shadow:!0,visibility:!1},save({attributes:e}){let{level:t,title:o,iconPosition:a,showIcon:n}=e,i="h"+(t||3),l=ud.useBlockProps.save(),s=(0,ud.__experimentalGetSpacingClassesAndStyles)(e);return(0,mm.jsx)(i,{...l,children:(0,mm.jsxs)("button",{className:"wp-block-accordion-heading__toggle",style:s.style,children:[n&&a==="left"&&(0,mm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"}),(0,mm.jsx)(ud.RichText.Content,{className:"wp-block-accordion-heading__toggle-title",tagName:"span",value:o}),n&&a==="right"&&(0,mm.jsx)("span",{className:"wp-block-accordion-heading__toggle-icon","aria-hidden":"true",children:"+"})]})})}},iM=[oie];var{name:lM}=J2,sM={icon:nM,edit:rM,save:aM,deprecated:iM},rie=()=>D({name:lM,metadata:J2,settings:sM});var i6={};$(i6,{init:()=>nie,metadata:()=>ov,name:()=>fM,settings:()=>gM});var ev=r(S()),cM=r(h());function uM({attributes:e}){let{allowedBlocks:t,templateLock:o,openByDefault:a,isSelected:n}=e,i=(0,ev.useBlockProps)({"aria-hidden":!n&&!a,role:"region"}),l=(0,ev.useInnerBlocksProps)(i,{allowedBlocks:t,template:[["core/paragraph",{}]],templateLock:o});return(0,cM.jsx)("div",{...l})}var tv=r(S()),mM=r(h());function pM(){let e=tv.useBlockProps.save({role:"region"}),t=tv.useInnerBlocksProps.save(e);return(0,mM.jsx)("div",{...t})}var ov={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/accordion-panel",title:"Accordion Panel",category:"design",description:"Contains the hidden or revealed content beneath the heading.",parent:["core/accordion-item"],supports:{html:!1,color:{background:!0,gradients:!0},interactivity:!0,spacing:{padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},shadow:!0,layout:{allowEditing:!1},visibility:!1,contentRole:!0,allowedBlocks:!0,lock:!1},attributes:{templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1],default:!1},openByDefault:{type:"boolean",default:!1},isSelected:{type:"boolean",default:!1}},textdomain:"default",style:"wp-block-accordion-panel"};var rv=r(E()),n6=r(h()),dM=(0,n6.jsx)(rv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n6.jsx)(rv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M8.10417 6.00024H6.5C5.39543 6.00024 4.5 6.89567 4.5 8.00024V10.3336H6V8.00024C6 7.7241 6.22386 7.50024 6.5 7.50024H8.10417V6.00024ZM4.5 13.6669V16.0002C4.5 17.1048 5.39543 18.0002 6.5 18.0002H8.10417V16.5002H6.5C6.22386 16.5002 6 16.2764 6 16.0002V13.6669H4.5ZM10.3958 6.00024V7.50024H13.6042V6.00024H10.3958ZM15.8958 6.00024V7.50024H17.5C17.7761 7.50024 18 7.7241 18 8.00024V10.3336H19.5V8.00024C19.5 6.89567 18.6046 6.00024 17.5 6.00024H15.8958ZM19.5 13.6669H18V16.0002C18 16.2764 17.7761 16.5002 17.5 16.5002H15.8958V18.0002H17.5C18.6046 18.0002 19.5 17.1048 19.5 16.0002V13.6669ZM13.6042 18.0002V16.5002H10.3958V18.0002H13.6042Z",fill:"currentColor"})});var{name:fM}=ov,gM={icon:dM,edit:uM,save:pM},nie=()=>D({name:fM,metadata:ov,settings:gM});var K9={};$(K9,{init:()=>lie,metadata:()=>Ty,name:()=>bM,settings:()=>yM});var av=r(F()),Pn=(0,av.forwardRef)(({icon:e,size:t=24,...o},a)=>(0,av.cloneElement)(e,{width:t,height:t,...o,ref:a}));var nv=r(E()),l6=r(h()),pm=(0,l6.jsx)(nv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l6.jsx)(nv.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"})});var iv=r(E()),s6=r(h()),c6=(0,s6.jsx)(iv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s6.jsx)(iv.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"})});var lv=r(E()),u6=r(h()),m6=(0,u6.jsx)(lv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u6.jsx)(lv.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"})});var sv=r(E()),p6=r(h()),d6=(0,p6.jsx)(sv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,p6.jsx)(sv.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"})});var cv=r(E()),f6=r(h()),g6=(0,f6.jsx)(cv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,f6.jsx)(cv.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"})});var uv=r(E()),h6=r(h()),v6=(0,h6.jsx)(uv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,h6.jsx)(uv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z"})});var mv=r(E()),b6=r(h()),lh=(0,b6.jsx)(mv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,b6.jsx)(mv.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})});var pv=r(E()),y6=r(h()),_6=(0,y6.jsx)(pv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y6.jsx)(pv.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})});var dv=r(E()),x6=r(h()),sh=(0,x6.jsx)(dv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,x6.jsx)(dv.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})});var fv=r(E()),k6=r(h()),w6=(0,k6.jsx)(fv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,k6.jsx)(fv.Path,{d:"M4 13.5h3v-3H4v3Zm6-3.5 2 2-2 2 1 1 3-3-3-3-1 1Zm7 .5v3h3v-3h-3Z"})});var gv=r(E()),C6=r(h()),S6=(0,C6.jsx)(gv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,C6.jsx)(gv.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})});var hv=r(E()),T6=r(h()),B6=(0,T6.jsx)(hv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,T6.jsx)(hv.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})});var vv=r(E()),P6=r(h()),ch=(0,P6.jsx)(vv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,P6.jsx)(vv.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})});var bv=r(E()),N6=r(h()),I6=(0,N6.jsx)(bv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,N6.jsx)(bv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})});var yv=r(E()),D6=r(h()),Hc=(0,D6.jsx)(yv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,D6.jsx)(yv.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})});var _v=r(E()),E6=r(h()),uh=(0,E6.jsx)(_v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,E6.jsx)(_v.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})});var xv=r(E()),M6=r(h()),L6=(0,M6.jsx)(xv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,M6.jsx)(xv.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})});var kv=r(E()),R6=r(h()),H6=(0,R6.jsx)(kv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R6.jsx)(kv.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})});var wv=r(E()),z6=r(h()),A6=(0,z6.jsx)(wv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,z6.jsx)(wv.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})});var Cv=r(E()),V6=r(h()),F6=(0,V6.jsx)(Cv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,V6.jsx)(Cv.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"})});var Sv=r(E()),j6=r(h()),mh=(0,j6.jsx)(Sv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,j6.jsx)(Sv.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})});var Tv=r(E()),O6=r(h()),ph=(0,O6.jsx)(Tv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,O6.jsx)(Tv.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"})});var Bv=r(E()),U6=r(h()),G6=(0,U6.jsx)(Bv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U6.jsx)(Bv.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"})});var Pv=r(E()),$6=r(h()),W6=(0,$6.jsx)(Pv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$6.jsx)(Pv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z"})});var Nv=r(E()),q6=r(h()),dh=(0,q6.jsx)(Nv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q6.jsx)(Nv.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})});var dm=r(E()),md=r(h()),Z6=(0,md.jsxs)(dm.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,md.jsx)(dm.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),(0,md.jsx)(dm.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,md.jsx)(dm.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"})]});var Iv=r(E()),K6=r(h()),Q6=(0,K6.jsx)(Iv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,K6.jsx)(Iv.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"})});var Dv=r(E()),Y6=r(h()),X6=(0,Y6.jsx)(Dv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Y6.jsx)(Dv.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"})});var Ev=r(E()),J6=r(h()),e8=(0,J6.jsx)(Ev.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,J6.jsx)(Ev.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"})});var Mv=r(E()),t8=r(h()),fh=(0,t8.jsx)(Mv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t8.jsx)(Mv.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})});var Lv=r(E()),o8=r(h()),fm=(0,o8.jsx)(Lv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o8.jsx)(Lv.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"})});var Rv=r(E()),r8=r(h()),gh=(0,r8.jsx)(Rv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,r8.jsx)(Rv.Path,{d:"M18 20v-2h2v-1.5H7.75a.25.25 0 0 1-.25-.25V4H6v2H4v1.5h2v8.75c0 .966.784 1.75 1.75 1.75h8.75v2H18ZM9.273 7.5h6.977a.25.25 0 0 1 .25.25v6.977H18V7.75A1.75 1.75 0 0 0 16.25 6H9.273v1.5Z"})});var Hv=r(E()),a8=r(h()),hh=(0,a8.jsx)(Hv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a8.jsx)(Hv.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"})});var zv=r(E()),n8=r(h()),i8=(0,n8.jsx)(zv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n8.jsx)(zv.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"})});var vh=r(E()),bh=r(h()),l8=(0,bh.jsxs)(vh.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,bh.jsx)(vh.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,bh.jsx)(vh.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"})]});var Av=r(E()),s8=r(h()),yh=(0,s8.jsx)(Av.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,s8.jsx)(Av.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z"})});var Vv=r(E()),c8=r(h()),u8=(0,c8.jsx)(Vv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c8.jsx)(Vv.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var Fv=r(E()),m8=r(h()),p8=(0,m8.jsx)(Fv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,m8.jsx)(Fv.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"})});var jv=r(E()),d8=r(h()),f8=(0,d8.jsx)(jv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d8.jsx)(jv.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"})});var Ov=r(E()),g8=r(h()),_h=(0,g8.jsx)(Ov.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g8.jsx)(Ov.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})});var Uv=r(E()),h8=r(h()),xh=(0,h8.jsx)(Uv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,h8.jsx)(Uv.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var Gv=r(E()),v8=r(h()),kh=(0,v8.jsx)(Gv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,v8.jsx)(Gv.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"})});var $v=r(E()),b8=r(h()),ui=(0,b8.jsx)($v.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,b8.jsx)($v.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})});var Wv=r(E()),y8=r(h()),_8=(0,y8.jsx)(Wv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y8.jsx)(Wv.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm15.9-1-1.1 1 2.6 3-2.6 3 1.1 1 3.4-4-3.4-4Z"})});var qv=r(E()),x8=r(h()),wh=(0,x8.jsx)(qv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x8.jsx)(qv.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"})});var Zv=r(E()),k8=r(h()),Ch=(0,k8.jsx)(Zv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,k8.jsx)(Zv.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"})});var Kv=r(E()),w8=r(h()),gm=(0,w8.jsx)(Kv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,w8.jsx)(Kv.Path,{d:"M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z"})});var Qv=r(E()),C8=r(h()),Sh=(0,C8.jsx)(Qv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,C8.jsx)(Qv.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"})});var Yv=r(E()),S8=r(h()),Fi=(0,S8.jsx)(Yv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S8.jsx)(Yv.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"})});var Xv=r(E()),T8=r(h()),hm=(0,T8.jsx)(Xv.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,T8.jsx)(Xv.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"})});var Jv=r(E()),B8=r(h()),P8=(0,B8.jsx)(Jv.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,B8.jsx)(Jv.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var eb=r(E()),N8=r(h()),Th=(0,N8.jsx)(eb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,N8.jsx)(eb.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"})});var tb=r(E()),I8=r(h()),D8=(0,I8.jsx)(tb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I8.jsx)(tb.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"})});var ob=r(E()),E8=r(h()),M8=(0,E8.jsx)(ob.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,E8.jsx)(ob.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"})});var rb=r(E()),L8=r(h()),zc=(0,L8.jsx)(rb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,L8.jsx)(rb.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})});var ab=r(E()),R8=r(h()),H8=(0,R8.jsx)(ab.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R8.jsx)(ab.Path,{d:"m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z"})});var nb=r(E()),z8=r(h()),vm=(0,z8.jsx)(nb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,z8.jsx)(nb.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var ib=r(E()),A8=r(h()),bm=(0,A8.jsx)(ib.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,A8.jsx)(ib.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});var lb=r(E()),V8=r(h()),Nn=(0,V8.jsx)(lb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V8.jsx)(lb.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"})});var sb=r(E()),F8=r(h()),j8=(0,F8.jsx)(sb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,F8.jsx)(sb.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})});var cb=r(E()),O8=r(h()),ji=(0,O8.jsx)(cb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,O8.jsx)(cb.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"})});var ub=r(E()),U8=r(h()),G8=(0,U8.jsx)(ub.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U8.jsx)(ub.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})});var mb=r(E()),$8=r(h()),ym=(0,$8.jsx)(mb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$8.jsx)(mb.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"})});var pb=r(E()),W8=r(h()),q8=(0,W8.jsx)(pb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,W8.jsx)(pb.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})});var db=r(E()),Z8=r(h()),K8=(0,Z8.jsx)(db.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Z8.jsx)(db.Path,{d:"M11.2 6.8c-.7 0-1.4.5-1.6 1.1l-2.8 7.5-1.2-1.8c-.1-.2-.4-.3-.6-.3H3v1.5h1.6l1.2 1.8c.6.9 1.9.7 2.2-.3l2.9-7.9s.1-.2.2-.2h7.8V6.7h-7.8Zm5.3 3.4-1.9 1.9-1.9-1.9-1.1 1.1 1.9 1.9-1.9 1.9 1.1 1.1 1.9-1.9 1.9 1.9 1.1-1.1-1.9-1.9 1.9-1.9-1.1-1.1Z"})});var fb=r(E()),Q8=r(h()),Y8=(0,Q8.jsx)(fb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Q8.jsx)(fb.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"})});var Bh=r(E()),Ph=r(h()),Nh=(0,Ph.jsxs)(Bh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Ph.jsx)(Bh.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,Ph.jsx)(Bh.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"})]});var gb=r(E()),X8=r(h()),J8=(0,X8.jsx)(gb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,X8.jsx)(gb.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"})});var hb=r(E()),e7=r(h()),Ih=(0,e7.jsx)(hb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,e7.jsx)(hb.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"})});var vb=r(E()),t7=r(h()),o7=(0,t7.jsx)(vb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,t7.jsx)(vb.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})});var bb=r(E()),r7=r(h()),_m=(0,r7.jsx)(bb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r7.jsx)(bb.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})});var yb=r(E()),a7=r(h()),n7=(0,a7.jsx)(yb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a7.jsx)(yb.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})});var _b=r(E()),i7=r(h()),l7=(0,i7.jsx)(_b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i7.jsx)(_b.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"})});var xb=r(E()),s7=r(h()),c7=(0,s7.jsx)(xb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s7.jsx)(xb.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"})});var Dh=r(E()),Eh=r(h()),Fs=(0,Eh.jsxs)(Dh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Eh.jsx)(Dh.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,Eh.jsx)(Dh.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]});var pd=r(E()),dd=r(h()),u7=(0,dd.jsxs)(pd.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,dd.jsx)(pd.Path,{d:"M14.5 5.5h-7V7h7V5.5ZM7.5 9h7v1.5h-7V9Zm7 3.5h-7V14h7v-1.5Z"}),(0,dd.jsx)(pd.Path,{d:"M16 2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2ZM6 3.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4a.5.5 0 0 1 .5-.5Z"}),(0,dd.jsx)(pd.Path,{d:"M20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z"})]});var kb=r(E()),m7=r(h()),Mh=(0,m7.jsx)(kb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,m7.jsx)(kb.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})});var wb=r(E()),p7=r(h()),xm=(0,p7.jsx)(wb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,p7.jsx)(wb.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})});var Cb=r(E()),d7=r(h()),Lh=(0,d7.jsx)(Cb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d7.jsx)(Cb.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"})});var Sb=r(E()),f7=r(h()),g7=(0,f7.jsx)(Sb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,f7.jsx)(Sb.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})});var Tb=r(E()),h7=r(h()),Bb=(0,h7.jsx)(Tb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,h7.jsx)(Tb.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})});var Pb=r(E()),v7=r(h()),b7=(0,v7.jsx)(Pb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,v7.jsx)(Pb.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"})});var Nb=r(E()),y7=r(h()),_7=(0,y7.jsx)(Nb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y7.jsx)(Nb.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"})});var Ib=r(E()),x7=r(h()),k7=(0,x7.jsx)(Ib.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x7.jsx)(Ib.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"})});var Db=r(E()),w7=r(h()),km=(0,w7.jsx)(Db.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,w7.jsx)(Db.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})});var Eb=r(E()),C7=r(h()),fd=(0,C7.jsx)(Eb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,C7.jsx)(Eb.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"})});var Mb=r(E()),S7=r(h()),Rh=(0,S7.jsx)(Mb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S7.jsx)(Mb.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"})});var Lb=r(E()),T7=r(h()),B7=(0,T7.jsx)(Lb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,T7.jsx)(Lb.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"})});var Rb=r(E()),P7=r(h()),N7=(0,P7.jsx)(Rb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,P7.jsx)(Rb.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"})});var Hb=r(E()),I7=r(h()),D7=(0,I7.jsx)(Hb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,I7.jsx)(Hb.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"})});var Hh=r(E()),zh=r(h()),Ah=(0,zh.jsxs)(Hh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,zh.jsx)(Hh.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,zh.jsx)(Hh.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})]});var zb=r(E()),E7=r(h()),M7=(0,E7.jsx)(zb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,E7.jsx)(zb.Path,{d:"M8.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H4v-3h4.001ZM4 20h9v-1.5H4V20Zm16-4H4v-1.5h16V16ZM13.001 3.984V9.47c0 1.518-.98 2.5-2.499 2.5h-.5v-1.5h.5c.69 0 1-.31 1-1V6.984H9v-3h4.001Z"})});var Ab=r(E()),L7=r(h()),R7=(0,L7.jsx)(Ab.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,L7.jsx)(Ab.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"})});var Vb=r(E()),H7=r(h()),Vh=(0,H7.jsx)(Vb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,H7.jsx)(Vb.Path,{d:"M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z"})});var Fb=r(E()),z7=r(h()),A7=(0,z7.jsx)(Fb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,z7.jsx)(Fb.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"})});var jb=r(E()),V7=r(h()),F7=(0,V7.jsx)(jb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,V7.jsx)(jb.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"})});var Ob=r(E()),j7=r(h()),O7=(0,j7.jsx)(Ob.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,j7.jsx)(Ob.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})});var Ub=r(E()),U7=r(h()),G7=(0,U7.jsx)(Ub.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U7.jsx)(Ub.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"})});var Gb=r(E()),$7=r(h()),W7=(0,$7.jsx)(Gb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,$7.jsx)(Gb.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"})});var $b=r(E()),q7=r(h()),Z7=(0,q7.jsx)($b.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,q7.jsx)($b.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})});var Wb=r(E()),K7=r(h()),Fh=(0,K7.jsx)(Wb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,K7.jsx)(Wb.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})});var qb=r(E()),Q7=r(h()),jh=(0,Q7.jsx)(qb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Q7.jsx)(qb.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"})});var Zb=r(E()),Y7=r(h()),Oh=(0,Y7.jsx)(Zb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Y7.jsx)(Zb.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"})});var Kb=r(E()),X7=r(h()),Uh=(0,X7.jsx)(Kb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,X7.jsx)(Kb.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})});var Qb=r(E()),J7=r(h()),e9=(0,J7.jsx)(Qb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,J7.jsx)(Qb.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"})});var Yb=r(E()),t9=r(h()),o9=(0,t9.jsx)(Yb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,t9.jsx)(Yb.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"})});var Xb=r(E()),r9=r(h()),a9=(0,r9.jsx)(Xb.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,r9.jsx)(Xb.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"})});var Jb=r(E()),n9=r(h()),i9=(0,n9.jsx)(Jb.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,n9.jsx)(Jb.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"})});var ey=r(E()),l9=r(h()),Gh=(0,l9.jsx)(ey.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,l9.jsx)(ey.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"})});var ty=r(E()),s9=r(h()),$h=(0,s9.jsx)(ty.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s9.jsx)(ty.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});var oy=r(E()),c9=r(h()),u9=(0,c9.jsx)(oy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c9.jsx)(oy.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"})});var ry=r(E()),m9=r(h()),Wh=(0,m9.jsx)(ry.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,m9.jsx)(ry.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})});var ay=r(E()),p9=r(h()),qh=(0,p9.jsx)(ay.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,p9.jsx)(ay.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})});var ny=r(E()),d9=r(h()),f9=(0,d9.jsx)(ny.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,d9.jsx)(ny.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})});var iy=r(E()),g9=r(h()),h9=(0,g9.jsx)(iy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g9.jsx)(iy.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm0 1.5c3.4 0 6.2 2.7 6.5 6l-1.2-.6-.8-.4c-.1 0-.2 0-.3-.1H16c-.1-.2-.4-.2-.7 0l-2.9 2.1L9 11.3h-.7L5.5 13v-1.1c0-3.6 2.9-6.5 6.5-6.5Zm0 13c-2.7 0-5-1.7-6-4l2.8-1.7 3.5 1.2h.4s.2 0 .4-.2l2.9-2.1.4.2c.6.3 1.4.7 2.1 1.1-.5 3.1-3.2 5.4-6.4 5.4Z"})});var ly=r(E()),v9=r(h()),b9=(0,v9.jsx)(ly.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,v9.jsx)(ly.Path,{fill:"none",d:"M5.75 12.75V18.25H11.25M12.75 5.75H18.25V11.25",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"square"})});var sy=r(E()),y9=r(h()),_9=(0,y9.jsx)(sy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,y9.jsx)(sy.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"})});var cy=r(E()),x9=r(h()),Zh=(0,x9.jsx)(cy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,x9.jsx)(cy.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var uy=r(E()),k9=r(h()),w9=(0,k9.jsx)(uy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,k9.jsx)(uy.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})});var my=r(E()),C9=r(h()),gd=(0,C9.jsx)(my.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,C9.jsx)(my.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm0-5.5h-4v-4h4v4Zm0-5.5h-4V5c0-.3.2-.5.5-.5h3.5v4Zm11 10.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14Zm-4-10.8H14v3h-3v1.5h3v3h1.5v-3h3v-1.5h-3v-3Z"})});var py=r(E()),S9=r(h()),T9=(0,S9.jsx)(py.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,S9.jsx)(py.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1 .8 1.9 1.8 2H19.2c.9-.1 1.7-.9 1.8-1.8V5c0-1.1-.9-2-2-2Zm-5 16.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h9v15Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19Zm0-5h-4v-4h4v4Zm0-5.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-11 7.3H10v-3h3v-1.5h-3v-3H8.5v3h-3v1.5h3v3Z"})});var dy=r(E()),B9=r(h()),P9=(0,B9.jsx)(dy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,B9.jsx)(dy.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14.2c.1.9.9 1.7 1.8 1.8H19.2c1-.1 1.8-1 1.8-2V5c0-1.1-.9-2-2-2ZM8.5 19.5H5c-.3 0-.5-.2-.5-.5V5c0-.3.2-.5.5-.5h3.5v15Zm11-.5c0 .3-.2.5-.5.5h-9v-15h9c.3 0 .5.2.5.5v14ZM16.9 8.8l-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1L18 9.9l-1.1-1.1Z"})});var Kh=r(E()),Qh=r(h()),Yh=(0,Qh.jsxs)(Kh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Qh.jsx)(Kh.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M20 9.484h-8.889v-1.5H20v1.5Zm0 7h-4.889v-1.5H20v1.5Zm-14 .032a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),(0,Qh.jsx)(Kh.Path,{d:"M13 15.516a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 8.484a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})]});var fy=r(E()),N9=r(h()),I9=(0,N9.jsx)(fy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,N9.jsx)(fy.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm-9 1.5h4v4h-4v-4ZM4.5 5c0-.3.2-.5.5-.5h3.5v4h-4V5Zm15 14c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-4v-4H19c.3 0 .5.2.5.5v3.5Zm-8.3 10h1.5v-3h3V14h-3v-3h-1.5v3h-3v1.5h3v3Z"})});var gy=r(E()),D9=r(h()),E9=(0,D9.jsx)(gy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,D9.jsx)(gy.Path,{d:"M21 5c0-1.1-.9-2-2-2H5c-1 0-1.9.8-2 1.8V19.2c.1.9.9 1.7 1.8 1.8H19c1.1 0 2-.9 2-2V5ZM4.5 14V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v9h-15Zm4 5.5H5c-.3 0-.5-.2-.5-.5v-3.5h4v4Zm5.5 0h-4v-4h4v4Zm5.5-.5c0 .3-.2.5-.5.5h-3.5v-4h4V19ZM11.2 10h-3V8.5h3v-3h1.5v3h3V10h-3v3h-1.5v-3Z"})});var hy=r(E()),M9=r(h()),L9=(0,M9.jsx)(hy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,M9.jsx)(hy.Path,{d:"M19 3H4.8c-.9.1-1.7.9-1.8 1.8V19.2c.1 1 1 1.8 2 1.8h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-9h15v9Zm0-10.5h-15V5c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v3.5Zm-9.6 9.4 2.1-2.1 2.1 2.1 1.1-1.1-2.1-2.1 2.1-2.1-1.1-1.1-2.1 2.1-2.1-2.1-1.1 1.1 2.1 2.1-2.1 2.1 1.1 1.1Z"})});var vy=r(E()),R9=r(h()),H9=(0,R9.jsx)(vy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,R9.jsx)(vy.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm.5 2v6.2h-6.8V4.4h6.2c.3 0 .5.2.5.5ZM5 4.5h6.2v6.8H4.4V5.1c0-.3.2-.5.5-.5ZM4.5 19v-6.2h6.8v6.8H5.1c-.3 0-.5-.2-.5-.5Zm14.5.5h-6.2v-6.8h6.8v6.2c0 .3-.2.5-.5.5Z"})});var by=r(E()),z9=r(h()),Xh=(0,z9.jsx)(by.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,z9.jsx)(by.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})});var Jh=r(E()),e0=r(h()),A9=(0,e0.jsxs)(Jh.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,e0.jsx)(Jh.Path,{d:"M 12.841306,16.677917 12.001264,12.71529 Q 11.835801,11.930402 11.695793,11.417042 11.560029,10.89944 11.398809,10.568514 11.237588,10.237588 11,10 10.635133,9.6351329 10.219354,9.6351329 9.8078183,9.6308902 9.4387086,10 8.9932313,10.445477 8.8574668,11.022476 8.7259449,11.595233 8.7259449,12.155262 L 7.4955791,11.196425 Q 7.5719467,10.509117 7.8307477,9.9109045 8.0937915,9.3084495 8.6410921,8.7611489 9.1799075,8.2223335 9.7569066,8.086569 q 0.5812414,-0.1400071 1.1242994,0.046669 0.543058,0.1866762 0.975808,0.6194255 0.335168,0.3351686 0.581242,0.767918 0.24183,0.4285067 0.436992,1.0564174 0.195161,0.619426 0.381837,1.527351 l 0.364867,1.756453 1.883733,-1.883732 1.018234,1.018233 z"}),(0,e0.jsx)(Jh.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});var yy=r(E()),V9=r(h()),F9=(0,V9.jsx)(yy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,V9.jsx)(yy.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"})});var t0=r(E()),o0=r(h()),j9=(0,o0.jsxs)(t0.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,o0.jsx)(t0.Path,{d:"m14.95 13.889-1.061 1.061-5.552-5.553 1.06-1.06 5.552 5.552Z"}),(0,o0.jsx)(t0.Path,{d:"M12.574 4a.75.75 0 0 1 .53.22l6.723 6.724a2.315 2.315 0 0 1 0 3.264l-.532-.528.531.53-5.61 5.611a2.31 2.31 0 0 1-3.276.001l-6.72-6.716a.75.75 0 0 1-.22-.53V4.75A.75.75 0 0 1 4.75 4h7.824ZM5.5 5.5v6.764l6.501 6.497a.817.817 0 0 0 .889.178.816.816 0 0 0 .264-.178l5.61-5.61a.816.816 0 0 0-.001-1.149l-6.5-6.502H5.5Z"})]});var _y=r(E()),O9=r(h()),r0=(0,O9.jsx)(_y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,O9.jsx)(_y.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"})});var xy=r(E()),U9=r(h()),Oi=(0,U9.jsx)(xy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,U9.jsx)(xy.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"})});var ky=r(E()),G9=r(h()),js=(0,G9.jsx)(ky.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,G9.jsx)(ky.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"})});var wy=r(E()),$9=r(h()),a0=(0,$9.jsx)(wy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,$9.jsx)(wy.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})});var Cy=r(E()),W9=r(h()),hd=(0,W9.jsx)(Cy.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,W9.jsx)(Cy.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})});var Sy=r(E()),q9=r(h()),Z9=(0,q9.jsx)(Sy.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,q9.jsx)(Sy.Path,{d:"M19 5c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2zM5 6.5c-.3 0-.5.2-.5.5v10c0 .3.2.5.5.5h14c.3 0 .5-.2.5-.5V7c0-.3-.2-.5-.5-.5zM14.734 9q.714 0 1.15.253.437.247.639.84.2.591.2 1.61v1.15q0 .402.036.667.04.258.172.39.138.127.437.127h.104l-.162.828h-.08q-.5 0-.776-.097a.9.9 0 0 1-.414-.283 2 2 0 0 1-.259-.448q-.316.367-.748.598-.43.23-.977.23-.524 0-.914-.213a1.56 1.56 0 0 1-.61-.58 1.65 1.65 0 0 1-.213-.84q0-.477.207-.817.213-.345.564-.568.357-.23.794-.363.437-.139.902-.196.471-.062.902-.068 0-.805-.315-1.053-.316-.247-.915-.247-.316 0-.678.098-.356.097-.805.408l-.15-.84a2.8 2.8 0 0 1 .846-.419A3.4 3.4 0 0 1 14.734 9m-5.877 1.669H9.86l.59-1.531h.689l-.585 1.53h.898l-.249.727h-.922l-.337.866h1.019l-.354.773h-.962l-.681 1.804h-.701l.69-1.804h-.999l-.693 1.804h-.69l.685-1.804H6.3l.34-.773h.915l.333-.866h-.994l.244-.726H8.16l.594-1.531h.693zm6.832 1.264q-.823.029-1.335.16-.506.133-.74.397-.236.265-.236.685 0 .454.241.66.248.202.632.202.414 0 .8-.207.39-.207.637-.552zm-7.441.328h1l.34-.866h-1z"})});var Ty={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-archives-editor"};var pa=r(L()),Ga=r(B()),By=r(S()),hM=r(Ec());var nr=r(h());function vM({attributes:e,setAttributes:t}){let{showLabel:o,showPostCounts:a,displayAsDropdown:n,type:i}=e,l=G();return(0,nr.jsxs)(nr.Fragment,{children:[(0,nr.jsx)(By.InspectorControls,{children:(0,nr.jsxs)(pa.__experimentalToolsPanel,{label:(0,Ga.__)("Settings"),resetAll:()=>{t({displayAsDropdown:!1,showLabel:!0,showPostCounts:!1,type:"monthly"})},dropdownMenuProps:l,children:[(0,nr.jsx)(pa.__experimentalToolsPanelItem,{label:(0,Ga.__)("Display as dropdown"),isShownByDefault:!0,hasValue:()=>n,onDeselect:()=>t({displayAsDropdown:!1}),children:(0,nr.jsx)(pa.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ga.__)("Display as dropdown"),checked:n,onChange:()=>t({displayAsDropdown:!n})})}),n&&(0,nr.jsx)(pa.__experimentalToolsPanelItem,{label:(0,Ga.__)("Show label"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>t({showLabel:!0}),children:(0,nr.jsx)(pa.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ga.__)("Show label"),checked:o,onChange:()=>t({showLabel:!o})})}),(0,nr.jsx)(pa.__experimentalToolsPanelItem,{label:(0,Ga.__)("Show post counts"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>t({showPostCounts:!1}),children:(0,nr.jsx)(pa.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ga.__)("Show post counts"),checked:a,onChange:()=>t({showPostCounts:!a})})}),(0,nr.jsx)(pa.__experimentalToolsPanelItem,{label:(0,Ga.__)("Group by"),isShownByDefault:!0,hasValue:()=>i!=="monthly",onDeselect:()=>t({type:"monthly"}),children:(0,nr.jsx)(pa.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Ga.__)("Group by"),options:[{label:(0,Ga.__)("Year"),value:"yearly"},{label:(0,Ga.__)("Month"),value:"monthly"},{label:(0,Ga.__)("Week"),value:"weekly"},{label:(0,Ga.__)("Day"),value:"daily"}],value:i,onChange:s=>t({type:s})})})]})}),(0,nr.jsx)("div",{...(0,By.useBlockProps)(),children:(0,nr.jsx)(pa.Disabled,{children:(0,nr.jsx)(hM.default,{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e})})})]})}var{name:bM}=Ty,yM={icon:v6,example:{},edit:vM},lie=()=>D({name:bM,metadata:Ty,settings:yM});var Y9={};$(Y9,{init:()=>die,metadata:()=>Py,name:()=>HM,settings:()=>zM});var Py={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user\u2019s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1},filter:{duotone:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-avatar img",filter:{duotone:".wp-block-avatar img"}},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"};var wm=r(S()),$a=r(L()),mi=r(B()),Iy=r(ko());var n0=r(Y()),Ac=r(B()),xM=r(z());function kM(e){let t=e?e[0]:24,o=e?e[e.length-1]:96,a=Math.floor(o*2.5);return{minSize:t,maxSize:a}}function wM({commentId:e}){let[t]=(0,n0.useEntityProp)("root","comment","author_avatar_urls",e),[o]=(0,n0.useEntityProp)("root","comment","author_name",e),a=t?Object.values(t):null,n=t?Object.keys(t):null,{minSize:i,maxSize:l}=kM(n),s=rh();return{src:a?a[a.length-1]:s,minSize:i,maxSize:l,alt:o?(0,Ac.sprintf)((0,Ac.__)("%s Avatar"),o):(0,Ac.__)("Default Avatar")}}function CM({userId:e,postId:t,postType:o}){let{authorDetails:a}=(0,xM.useSelect)(u=>{let{getEditedEntityRecord:m,getUser:p}=u(n0.store);if(e)return{authorDetails:p(e)};let d=m("postType",o,t)?.author;return{authorDetails:d?p(d):null}},[o,t,e]),n=a?.avatar_urls?Object.values(a.avatar_urls):null,i=a?.avatar_urls?Object.keys(a.avatar_urls):null,{minSize:l,maxSize:s}=kM(i),c=rh();return{src:n?n[n.length-1]:c,minSize:l,maxSize:s,alt:a?(0,Ac.sprintf)((0,Ac.__)("%s Avatar"),a?.name):(0,Ac.__)("Default Avatar")}}var Q9=r(B()),TM=r(L()),BM=r(z()),PM=r(Y()),Ny=r(F()),NM=r(xe()),IM=r(jo()),DM=r(h()),cie={who:"authors",per_page:100,_fields:"id,name",context:"view"};function EM({value:e,onChange:t}){let[o,a]=(0,Ny.useState)(""),{authors:n,isLoading:i}=(0,BM.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(PM.store),m={...cie};return o&&(m.search=o,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[o]),l=(0,Ny.useMemo)(()=>(n??[]).map(s=>({value:s.id,label:(0,IM.decodeEntities)(s.name)})),[n]);return(0,DM.jsx)(TM.ComboboxControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Q9.__)("User"),help:(0,Q9.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:l,onFilterValueChange:(0,NM.debounce)(a,300),isLoading:i})}var wt=r(h()),MM=({setAttributes:e,avatar:t,attributes:o,selectUser:a})=>{let n=G();return(0,wt.jsx)(wm.InspectorControls,{children:(0,wt.jsxs)($a.__experimentalToolsPanel,{label:(0,mi.__)("Settings"),resetAll:()=>{e({size:96,isLink:!1,linkTarget:"_self",userId:void 0})},dropdownMenuProps:n,children:[(0,wt.jsx)($a.__experimentalToolsPanelItem,{label:(0,mi.__)("Image size"),isShownByDefault:!0,hasValue:()=>o?.size!==96,onDeselect:()=>e({size:96}),children:(0,wt.jsx)($a.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,mi.__)("Image size"),onChange:i=>e({size:i}),min:t.minSize,max:t.maxSize,initialPosition:o?.size,value:o?.size})}),(0,wt.jsx)($a.__experimentalToolsPanelItem,{label:(0,mi.__)("Link to user profile"),isShownByDefault:!0,hasValue:()=>o?.isLink,onDeselect:()=>e({isLink:!1}),children:(0,wt.jsx)($a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,mi.__)("Link to user profile"),onChange:()=>e({isLink:!o.isLink}),checked:o.isLink})}),o.isLink&&(0,wt.jsx)($a.__experimentalToolsPanelItem,{label:(0,mi.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>o?.linkTarget!=="_self",onDeselect:()=>e({linkTarget:"_self"}),children:(0,wt.jsx)($a.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,mi.__)("Open in new tab"),onChange:i=>e({linkTarget:i?"_blank":"_self"}),checked:o.linkTarget==="_blank"})}),a&&(0,wt.jsx)($a.__experimentalToolsPanelItem,{label:(0,mi.__)("User"),isShownByDefault:!0,hasValue:()=>!!o?.userId,onDeselect:()=>e({userId:void 0}),children:(0,wt.jsx)(EM,{value:o?.userId,onChange:i=>{e({userId:i})}})})]})})},uie=({children:e,isLink:t})=>t?(0,wt.jsx)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:o=>o.preventDefault(),children:e}):e,LM=({setAttributes:e,attributes:t,avatar:o,blockProps:a,isSelected:n})=>{let i=(0,wm.__experimentalUseBorderProps)(t),l=(0,Iy.addQueryArgs)((0,Iy.removeQueryArgs)(o?.src,["s"]),{s:t?.size*2});return(0,wt.jsx)("div",{...a,children:(0,wt.jsx)(uie,{isLink:t.isLink,children:(0,wt.jsx)($a.ResizableBox,{size:{width:t.size,height:t.size},showHandle:n,onResizeStop:(s,c,u,m)=>{e({size:parseInt(t.size+(m.height||m.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,mi.isRTL)(),bottom:!0,left:(0,mi.isRTL)()},minWidth:o.minSize,maxWidth:o.maxSize,children:(0,wt.jsx)("img",{src:l,alt:o.alt,className:k("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",i.className),style:i.style})})})})},mie=({attributes:e,context:t,setAttributes:o,isSelected:a})=>{let{commentId:n}=t,i=(0,wm.useBlockProps)(),l=wM({commentId:n});return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(MM,{avatar:l,setAttributes:o,attributes:e,selectUser:!1}),(0,wt.jsx)(LM,{attributes:e,avatar:l,blockProps:i,isSelected:a,setAttributes:o})]})},pie=({attributes:e,context:t,setAttributes:o,isSelected:a})=>{let{postId:n,postType:i}=t,l=CM({userId:e?.userId,postId:n,postType:i}),s=(0,wm.useBlockProps)();return(0,wt.jsxs)(wt.Fragment,{children:[(0,wt.jsx)(MM,{selectUser:!0,attributes:e,avatar:l,setAttributes:o}),(0,wt.jsx)(LM,{attributes:e,avatar:l,blockProps:s,isSelected:a,setAttributes:o})]})};function RM(e){return e?.context?.commentId||e?.context?.commentId===null?(0,wt.jsx)(mie,{...e}):(0,wt.jsx)(pie,{...e})}var{name:HM}=Py,zM={icon:dh,edit:RM,example:{}},die=()=>D({name:HM,metadata:Py,settings:zM});var nS={};$(nS,{init:()=>Cie,metadata:()=>My,name:()=>sL,settings:()=>Ly});var aS=r(B());var lL=r(U());var X9=r(S()),i0=r(h()),AM=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){let{autoplay:t,caption:o,loop:a,preload:n,src:i}=e;return(0,i0.jsxs)("figure",{children:[(0,i0.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:a,preload:n}),!X9.RichText.isEmpty(o)&&(0,i0.jsx)(X9.RichText.Content,{tagName:"figcaption",value:o})]})}}];var XM=r(Po()),fa=r(L()),qa=r(S()),da=r(B()),JM=r(z());var eL=r(No()),tL=r(F());function vd(e,t){var o=0,a,n;t=t||{};function i(){var l=a,s=arguments.length,c,u;e:for(;l;){if(l.args.length!==arguments.length){l=l.next;continue}for(u=0;u<s;u++)if(l.args[u]!==arguments[u]){l=l.next;continue e}return l!==a&&(l===n&&(n=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=a,l.prev=null,a.prev=l,a=l),l.val}for(c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l={args:c,val:e.apply(null,c)},a?(a.prev=l,l.next=a):n=l,o===t.maxSize?(n=n.prev,n.next=null):o++,a=l,l.val}return i.clear=function(){a=null,n=null,o=0},i}var GM=r(L()),eS=r(F()),jl=r(U());var Fl={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},type:{type:"string",role:"content"},providerNameSlug:{type:"string",role:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,role:"content"},previewable:{type:"boolean",default:!0,role:"content"}},supports:{align:!0,spacing:{margin:!0},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"};var l0=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],J9="wp-embed";var OM=r(jM()),{lock:UM,unlock:Q}=(0,OM.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/block-library");var Dy=r(h()),{name:bd}=Fl,{kebabCase:gie}=Q(GM.privateApis),$M=e=>(0,jl.getBlockVariations)(bd)?.find(({name:t})=>t===e),tS=(e,t=[])=>t.some(o=>e.match(o)),hie=e=>(0,jl.getBlockVariations)(bd)?.find(({patterns:t})=>tS(e,t)),WM=e=>e&&e.includes('class="wp-embedded-content"'),qM=e=>{let t=e.url||e.thumbnail_url,o=(0,Dy.jsx)("p",{children:(0,Dy.jsx)("img",{src:t,alt:e.title,width:"100%"})});return(0,eS.renderToString)(o)},Vc=(e,t={})=>{let{preview:o,attributes:a={}}=e,{url:n,providerNameSlug:i,type:l,...s}=a;if(!n||!(0,jl.getBlockType)(bd))return;let c=hie(n),u=i==="wordpress"||l===J9;if(!u&&c&&(c.attributes.providerNameSlug!==i||!i))return(0,jl.createBlock)(bd,{url:n,...s,...c.attributes});let p=(0,jl.getBlockVariations)(bd)?.find(({name:d})=>d==="wordpress");if(!(!p||!o||!WM(o.html)||u))return(0,jl.createBlock)(bd,{url:n,...p.attributes,...t})},vie=e=>e?l0.some(({className:t})=>e.includes(t)):!1,Cm=e=>{if(!e)return e;let t=l0.reduce((a,{className:n})=>(a.push(n),a),["wp-has-aspect-ratio"]),o=e;for(let a of t)o=o.replace(a,"");return o.trim()};function oS(e,t,o=!0){if(!o)return Cm(t);let a=document.implementation.createHTMLDocument("");a.body.innerHTML=e;let n=a.body.querySelector("iframe");if(n&&n.height&&n.width){let i=(n.width/n.height).toFixed(2);for(let l=0;l<l0.length;l++){let s=l0[l];if(i>=s.ratio)return i-s.ratio>.1?Cm(t):k(Cm(t),s.className,"wp-has-aspect-ratio")}}return t}function ZM(e,t){t((0,jl.createBlock)("core/paragraph",{content:(0,eS.renderToString)((0,Dy.jsx)("a",{href:e,children:e}))}))}var bie=vd((e,t,o,a,n=!0)=>{if(!e)return{};let i={},{type:l="rich"}=e,{html:s,provider_name:c}=e,u=gie((c||t).toLowerCase());return WM(s)&&(l=J9),(s||l==="photo")&&(i.type=l,i.providerNameSlug=u),vie(o)||(i.className=oS(s,o,a&&n)),i}),KM=(e,t,o,a)=>{let{allowResponsive:n,className:i}=e;return{...e,...bie(t,o,i,a,n)}};var Sm=r(F()),QM=r(xe()),s0=r(B()),yd=r(S()),YM=r(L());var Ey=r(U());var Fc=r(h());function Wa({attributeKey:e="caption",attributes:t,setAttributes:o,isSelected:a,insertBlocksAfter:n,placeholder:i=(0,s0.__)("Add caption"),label:l=(0,s0.__)("Caption text"),showToolbarButton:s=!0,excludeElementClassName:c,className:u,readOnly:m,tagName:p="figcaption",addLabel:d=(0,s0.__)("Add caption"),removeLabel:f=(0,s0.__)("Remove caption"),icon:g=I6,...v}){let b=t[e],y=(0,QM.usePrevious)(b),{PrivateRichText:_}=Q(yd.privateApis),x=_.isEmpty(b),w=_.isEmpty(y),[C,T]=(0,Sm.useState)(!x);(0,Sm.useEffect)(()=>{!x&&w&&T(!0)},[x,w]),(0,Sm.useEffect)(()=>{!a&&x&&T(!1)},[a,x]);let N=(0,Sm.useCallback)(P=>{P&&x&&P.focus()},[x]);return(0,Fc.jsxs)(Fc.Fragment,{children:[s&&(0,Fc.jsx)(yd.BlockControls,{group:"block",children:(0,Fc.jsx)(YM.ToolbarButton,{onClick:()=>{T(!C),C&&b&&o({[e]:void 0})},icon:g,isPressed:C,label:C?f:d})}),C&&(!_.isEmpty(b)||a)&&(0,Fc.jsx)(_,{identifier:e,tagName:p,className:k(u,c?"":(0,yd.__experimentalGetElementClassName)("caption")),ref:N,"aria-label":l,placeholder:i,value:b,onChange:P=>o({[e]:P}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>n((0,Ey.createBlock)((0,Ey.getDefaultBlockName)())),readOnly:m,...v})]})}var no=r(h()),rS=["audio"];function yie({attributes:e,className:t,setAttributes:o,onReplace:a,isSelected:n,insertBlocksAfter:i}){let{id:l,autoplay:s,loop:c,preload:u,src:m}=e,[p,d]=(0,tL.useState)(e.blob),g=(0,qa.useBlockEditingMode)()==="default";Lc({url:p,allowedTypes:rS,onChange:w,onError:_});function v(P){return M=>{o({[P]:M})}}function b(P){if(P!==m){let M=Vc({attributes:{url:P}});if(M!==void 0&&a){a(M);return}o({src:P,id:void 0,blob:void 0}),d()}}let{createErrorNotice:y}=(0,JM.useDispatch)(eL.store);function _(P){y(P,{type:"snackbar"})}function x(P){return P?(0,da.__)("Autoplay may cause usability issues for some users."):null}function w(P){if(!P||!P.url){o({src:void 0,id:void 0,caption:void 0,blob:void 0}),d();return}if((0,XM.isBlobURL)(P.url)){d(P.url);return}o({blob:void 0,src:P.url,id:P.id,caption:P.caption}),d()}let C=k(t,{"is-transient":!!p}),T=(0,qa.useBlockProps)({className:C}),N=G();return!m&&!p?(0,no.jsx)("div",{...T,children:(0,no.jsx)(qa.MediaPlaceholder,{icon:(0,no.jsx)(qa.BlockIcon,{icon:lh}),onSelect:w,onSelectURL:b,accept:"audio/*",allowedTypes:rS,value:e,onError:_})}):(0,no.jsxs)(no.Fragment,{children:[n&&(0,no.jsx)(qa.BlockControls,{group:"other",children:(0,no.jsx)(qa.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:rS,accept:"audio/*",onSelect:w,onSelectURL:b,onError:_,onReset:()=>w(void 0)})}),(0,no.jsx)(qa.InspectorControls,{children:(0,no.jsxs)(fa.__experimentalToolsPanel,{label:(0,da.__)("Settings"),resetAll:()=>{o({autoplay:!1,loop:!1,preload:void 0})},dropdownMenuProps:N,children:[(0,no.jsx)(fa.__experimentalToolsPanelItem,{label:(0,da.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({autoplay:!1}),children:(0,no.jsx)(fa.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,da.__)("Autoplay"),onChange:v("autoplay"),checked:!!s,help:x})}),(0,no.jsx)(fa.__experimentalToolsPanelItem,{label:(0,da.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!c,onDeselect:()=>o({loop:!1}),children:(0,no.jsx)(fa.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,da.__)("Loop"),onChange:v("loop"),checked:!!c})}),(0,no.jsx)(fa.__experimentalToolsPanelItem,{label:(0,da.__)("Preload"),isShownByDefault:!0,hasValue:()=>!!u,onDeselect:()=>o({preload:void 0}),children:(0,no.jsx)(fa.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,da._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:P=>o({preload:P||void 0}),options:[{value:"",label:(0,da.__)("Browser default")},{value:"auto",label:(0,da.__)("Auto")},{value:"metadata",label:(0,da.__)("Metadata")},{value:"none",label:(0,da._x)("None","Preload value")}]})})]})}),(0,no.jsxs)("figure",{...T,children:[(0,no.jsx)(fa.Disabled,{isDisabled:!n,children:(0,no.jsx)("audio",{controls:"controls",src:m??p})}),!!p&&(0,no.jsx)(fa.Spinner,{}),(0,no.jsx)(Wa,{attributes:e,setAttributes:o,isSelected:n,insertBlocksAfter:i,label:(0,da.__)("Audio caption text"),showToolbarButton:n&&g})]})]})}var oL=yie;var My={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"audio",attribute:"src",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},id:{type:"number",role:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"};var Tm=r(S()),c0=r(h());function rL({attributes:e}){let{autoplay:t,caption:o,loop:a,preload:n,src:i}=e;return i&&(0,c0.jsxs)("figure",{...Tm.useBlockProps.save(),children:[(0,c0.jsx)("audio",{controls:"controls",src:i,autoPlay:t,loop:a,preload:n}),!Tm.RichText.isEmpty(o)&&(0,c0.jsx)(Tm.RichText.Content,{tagName:"figcaption",value:o,className:(0,Tm.__experimentalGetElementClassName)("caption")})]})}var aL=r(Po()),nL=r(U()),xie={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("audio/")===0},transform(e){let t=e[0];return(0,nL.createBlock)("core/audio",{blob:(0,aL.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:o,ogg:a,wav:n,wma:i}})=>e||t||o||a||n||i},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]},iL=xie;var{fieldsKey:kie,formKey:wie}=Q(lL.privateApis),{name:sL}=My,Ly={icon:lh,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:iL,deprecated:AM,edit:oL,save:rL};window.__experimentalContentOnlyInspectorFields&&(Ly[kie]=[{id:"audio",label:(0,aS.__)("Audio"),type:"media",mapping:{id:"id",url:"src"},args:{allowedTypes:["audio"],multiple:!1}},{id:"caption",label:(0,aS.__)("Caption"),type:"richtext"}],Ly[wie]={fields:["audio"]});var Cie=()=>D({name:sL,metadata:My,settings:Ly});var iS={};$(iS,{init:()=>Tie,metadata:()=>Ry,name:()=>pL,settings:()=>dL});var Ry={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/breadcrumbs",title:"Breadcrumbs",__experimental:!0,category:"theme",description:"Display a breadcrumb trail for hierarchical post types or based on taxonomy terms.",textdomain:"default",attributes:{prefersTaxonomy:{type:"boolean",default:!1},separator:{type:"string",default:"/"},showHomeItem:{type:"boolean",default:!0},showCurrentItem:{type:"boolean",default:!0},showOnHomePage:{type:"boolean",default:!1}},usesContext:["postId","postType","templateSlug"],supports:{html:!1,align:["wide","full"],spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!0,width:!0,style:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-breadcrumbs"};var ir=r(B()),u0=r(S()),qr=r(L()),cL=r(z()),zy=r(Y()),_d=r(F()),uL=r(Ec());var zt=r(h()),Hy="/";function mL({attributes:e,setAttributes:t,context:{postId:o,postType:a,templateSlug:n}}){let{separator:i,showHomeItem:l,showCurrentItem:s,prefersTaxonomy:c,showOnHomePage:u}=e,{post:m,isPostTypeHierarchical:p,postTypeHasTaxonomies:d,hasTermsAssigned:f,isLoading:g}=(0,cL.useSelect)(N=>{if(!a)return{};let P=N(zy.store).getEntityRecord("postType",a,o),M=N(zy.store).getPostType(a),R=M&&M.taxonomies.length,H;return R&&(H=N(zy.store).getTaxonomies({type:a,per_page:-1})),{post:P,isPostTypeHierarchical:M?.hierarchical,postTypeHasTaxonomies:R,hasTermsAssigned:P&&(H||[]).filter(({visibility:O})=>O?.publicly_queryable).some(O=>!!P[O.rest_base]?.length),isLoading:o&&!P||!M||R&&!H}},[a,o]),[v,b]=(0,_d.useState)(0);(0,_d.useEffect)(()=>{b(N=>N+1)},[m]);let y=(0,u0.useBlockProps)(),_=G(),{content:x}=(0,uL.useServerSideRender)({attributes:e,skipBlockSupportAttributes:!0,block:"core/breadcrumbs",urlQueryArgs:{post_id:o,invalidationKey:v}});if(g)return(0,zt.jsx)("div",{...y,children:(0,zt.jsx)(qr.Spinner,{})});let w;!p&&!m?.parent?w=!0:d?w=c:w=!1;let C=null,T=!o||!a||n&&!a||!w&&!p||w&&!f;if(T){let N=[];l&&N.push((0,ir.__)("Home")),n&&!o?N.push((0,ir.__)("Page")):w?N.push((0,ir.__)("Category")):N.push((0,ir.__)("Ancestor"),(0,ir.__)("Parent")),C=(0,zt.jsx)("nav",{style:{"--separator":`'${i}'`},inert:"true",children:(0,zt.jsxs)("ol",{children:[N.map((P,M)=>(0,zt.jsx)("li",{children:(0,zt.jsx)("a",{href:`#breadcrumbs-pseudo-link-${M}`,children:P})},M)),s&&(0,zt.jsx)("li",{children:(0,zt.jsx)("span",{"aria-current":"page",children:(0,ir.__)("Current")})})]})})}return(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsx)(u0.InspectorControls,{children:(0,zt.jsxs)(qr.__experimentalToolsPanel,{label:(0,ir.__)("Settings"),resetAll:()=>{t({separator:Hy,showHomeItem:!0,showCurrentItem:!0})},dropdownMenuProps:_,children:[(0,zt.jsx)(qr.__experimentalToolsPanelItem,{label:(0,ir.__)("Show home breadcrumb"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>t({showHomeItem:!0}),children:(0,zt.jsx)(qr.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ir.__)("Show home breadcrumb"),onChange:N=>t({showHomeItem:N}),checked:l})}),(0,zt.jsx)(qr.__experimentalToolsPanelItem,{label:(0,ir.__)("Show current breadcrumb"),isShownByDefault:!0,hasValue:()=>!s,onDeselect:()=>t({showCurrentItem:!0}),children:(0,zt.jsx)(qr.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ir.__)("Show current breadcrumb"),onChange:N=>t({showCurrentItem:N}),checked:s})}),(0,zt.jsx)(qr.__experimentalToolsPanelItem,{label:(0,ir.__)("Separator"),isShownByDefault:!0,hasValue:()=>i!==Hy,onDeselect:()=>t({separator:Hy}),children:(0,zt.jsx)(qr.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,ir.__)("Separator"),value:i,onChange:N=>t({separator:N}),onBlur:()=>{i||t({separator:Hy})}})})]})}),(0,zt.jsxs)(u0.InspectorControls,{group:"advanced",children:[(0,zt.jsx)(qr.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,ir.__)("Show on homepage"),checked:u,onChange:N=>t({showOnHomePage:N}),help:(0,ir.__)("If this breadcrumbs block appears in a template or template part that\u2019s shown on the homepage, enable this option to display the breadcrumb trail. Otherwise, this setting has no effect.")}),(0,zt.jsx)(qr.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,ir.__)("Prefer taxonomy terms"),checked:c,onChange:N=>t({prefersTaxonomy:N}),help:(0,ir.__)("The exact type of breadcrumbs shown will vary automatically depending on the page in which this block is displayed. In the specific case of a hierarchical post type with taxonomies, the breadcrumbs can either reflect its post hierarchy (default) or the hierarchy of its assigned taxonomy terms.")})]}),(0,zt.jsx)("div",{...y,children:T?C:(0,zt.jsx)(_d.RawHTML,{inert:"true",children:x})})]})}var{name:pL}=Ry,dL={icon:w6,edit:mL},Tie=()=>D({name:pL,metadata:Ry,settings:dL});var uS={};$(uS,{init:()=>Oie,metadata:()=>jy,name:()=>NL,settings:()=>Uy});var Oy=r(B());var PL=r(U());var ge=r(S()),m0=r(xe());var fL=r(S());var{cleanEmptyObject:Bie}=Q(fL.privateApis);function Nt(e){if(!e?.style?.typography?.fontFamily)return e;let{fontFamily:t,...o}=e.style.typography;return{...e,style:Bie({...e.style,typography:o}),fontFamily:t.split("|").pop()}}function gL(e){let{textAlign:t,...o}=e;return t?{...o,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e}var At=r(h()),xd=e=>{let{borderRadius:t,...o}=e,a=[t,o.style?.border?.radius].find(n=>typeof n=="number"&&n!==0);return a?{...o,style:{...o.style,border:{...o.style?.border,radius:`${a}px`}}}:o};function Pie(e){if(!e.align)return e;let{align:t,...o}=e;return{...o,className:k(o.className,`align${e.align}`)}}var sS=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);let{customTextColor:o,customBackgroundColor:a,customGradient:n,...i}=e;return{...i,style:t}},lS=e=>{let{color:t,textColor:o,...a}={...e,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.color&&e.color[0]==="#"?e.color:void 0};return sS(a)},Os={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},Nie={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}},save({attributes:e,className:t}){let{tagName:o,type:a,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=o||"a",g=f==="button",v=a||"button",b=(0,ge.__experimentalGetBorderClassesAndStyles)(e),y=(0,ge.__experimentalGetColorClassesAndStyles)(e),_=(0,ge.__experimentalGetSpacingClassesAndStyles)(e),x=(0,ge.__experimentalGetShadowClassesAndStyles)(e),w=(0,ge.getTypographyClassesAndStyles)(e),C=k("wp-block-button__link",y.className,b.className,w.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0,"has-custom-font-size":i||c?.typography?.fontSize},(0,ge.__experimentalGetElementClassName)("button")),T={...b.style,...y.style,..._.style,...x.style,...w.style,writingMode:void 0},N=k(t,{[`has-custom-width wp-block-button__width-${d}`]:d});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:N}),children:(0,At.jsx)(ge.RichText.Content,{tagName:f,type:g?v:null,className:C,href:g?null:p,title:m,style:T,value:u,target:g?null:l,rel:g?null:s})})},isEligible(e){return!!e.textAlign},migrate:gL},Iie={attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button__link",interactivity:{clientNavigation:!0}},save({attributes:e,className:t}){let{tagName:o,type:a,textAlign:n,fontSize:i,linkTarget:l,rel:s,style:c,text:u,title:m,url:p,width:d}=e,f=o||"a",g=f==="button",v=a||"button",b=(0,ge.__experimentalGetBorderClassesAndStyles)(e),y=(0,ge.__experimentalGetColorClassesAndStyles)(e),_=(0,ge.__experimentalGetSpacingClassesAndStyles)(e),x=(0,ge.__experimentalGetShadowClassesAndStyles)(e),w=k("wp-block-button__link",y.className,b.className,{[`has-text-align-${n}`]:n,"no-border-radius":c?.border?.radius===0},(0,ge.__experimentalGetElementClassName)("button")),C={...b.style,...y.style,..._.style,...x.style},T=k(t,{[`has-custom-width wp-block-button__width-${d}`]:d,"has-custom-font-size":i||c?.typography?.fontSize});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:T}),children:(0,At.jsx)(ge.RichText.Content,{tagName:f,type:g?v:null,className:w,href:g?null:p,title:m,style:C,value:u,target:g?null:l,rel:g?null:s})})}},Die={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){let{fontSize:o,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,ge.__experimentalGetBorderClassesAndStyles)(e),p=(0,ge.__experimentalGetColorClassesAndStyles)(e),d=(0,ge.__experimentalGetSpacingClassesAndStyles)(e),f=k("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),g={...m.style,...p.style,...d.style},v=k(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||i?.typography?.fontSize});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:v}),children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:g,value:l,target:a,rel:n})})}},Eie={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){let{fontSize:o,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=(0,ge.__experimentalGetBorderClassesAndStyles)(e),p=(0,ge.__experimentalGetColorClassesAndStyles)(e),d=(0,ge.__experimentalGetSpacingClassesAndStyles)(e),f=k("wp-block-button__link",p.className,m.className,{"no-border-radius":i?.border?.radius===0}),g={...m.style,...p.style,...d.style},v=k(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||i?.typography?.fontSize});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:v}),children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:f,href:c,title:s,style:g,value:l,target:a,rel:n})})},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},Mie=[Nie,Iie,Die,Eie,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Os,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return typeof e?.border?.radius=="number"},save({attributes:e,className:t}){let{fontSize:o,linkTarget:a,rel:n,style:i,text:l,title:s,url:c,width:u}=e;if(!l)return null;let m=i?.border?.radius,p=(0,ge.__experimentalGetColorClassesAndStyles)(e),d=k("wp-block-button__link",p.className,{"no-border-radius":i?.border?.radius===0}),f={borderRadius:m||void 0,...p.style},g=k(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||i?.typography?.fontSize});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:g}),children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:d,href:c,title:s,style:f,value:l,target:a,rel:n})})},migrate:(0,m0.compose)(Nt,xd)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Os,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){let{borderRadius:o,linkTarget:a,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,ge.__experimentalGetColorClassesAndStyles)(e),m=k("wp-block-button__link",u.className,{"no-border-radius":o===0}),p={borderRadius:o?o+"px":void 0,...u.style},d=k(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:d}),children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:a,rel:n})})},migrate:(0,m0.compose)(Nt,xd)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...Os,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){let{borderRadius:o,linkTarget:a,rel:n,text:i,title:l,url:s,width:c}=e,u=(0,ge.__experimentalGetColorClassesAndStyles)(e),m=k("wp-block-button__link",u.className,{"no-border-radius":o===0}),p={borderRadius:o?o+"px":void 0,...u.style},d=k(t,{[`has-custom-width wp-block-button__width-${c}`]:c});return(0,At.jsx)("div",{...ge.useBlockProps.save({className:d}),children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:m,href:s,title:l,style:p,value:i,target:a,rel:n})})},migrate:(0,m0.compose)(Nt,xd)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...Os,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){let{borderRadius:t,linkTarget:o,rel:a,text:n,title:i,url:l}=e,s=k("wp-block-button__link",{"no-border-radius":t===0}),c={borderRadius:t?t+"px":void 0};return(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:s,href:l,title:i,style:c,value:n,target:o,rel:a})},migrate:xd},{supports:{align:!0,alignWide:!1},attributes:{...Os,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!e.customTextColor||!!e.customBackgroundColor||!!e.customGradient||!!e.align,migrate:(0,m0.compose)(xd,sS,Pie),save({attributes:e}){let{backgroundColor:t,borderRadius:o,customBackgroundColor:a,customTextColor:n,customGradient:i,linkTarget:l,gradient:s,rel:c,text:u,textColor:m,title:p,url:d}=e,f=(0,ge.getColorClassName)("color",m),g=!i&&(0,ge.getColorClassName)("background-color",t),v=(0,ge.__experimentalGetGradientClass)(s),b=k("wp-block-button__link",{"has-text-color":m||n,[f]:f,"has-background":t||a||i||s,[g]:g,"no-border-radius":o===0,[v]:v}),y={background:i||void 0,backgroundColor:g||i||s?void 0:a,color:f?void 0:n,borderRadius:o?o+"px":void 0};return(0,At.jsx)("div",{children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:b,href:d,title:p,style:y,value:u,target:l,rel:c})})}},{attributes:{...Os,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible(e){return e.className&&e.className.includes("is-style-squared")},migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),xd(sS({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,customTextColor:a,linkTarget:n,rel:i,text:l,textColor:s,title:c,url:u}=e,m=(0,ge.getColorClassName)("color",s),p=(0,ge.getColorClassName)("background-color",t),d=k("wp-block-button__link",{"has-text-color":s||a,[m]:m,"has-background":t||o,[p]:p}),f={backgroundColor:p?void 0:o,color:m?void 0:a};return(0,At.jsx)("div",{children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:d,href:u,title:c,style:f,value:l,target:n,rel:i})})}},{attributes:{...Os,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:lS,save({attributes:e}){let{url:t,text:o,title:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s}=e,c=(0,ge.getColorClassName)("color",i),u=(0,ge.getColorClassName)("background-color",n),m=k("wp-block-button__link",{"has-text-color":i||s,[c]:c,"has-background":n||l,[u]:u}),p={backgroundColor:u?void 0:l,color:c?void 0:s};return(0,At.jsx)("div",{children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:m,href:t,title:a,style:p,value:o})})}},{attributes:{...Os,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:o,title:a,align:n,color:i,textColor:l}=e,s={backgroundColor:i,color:l};return(0,At.jsx)("div",{className:`align${n}`,children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:a,style:s,value:o})})},migrate:lS},{attributes:{...Os,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){let{url:t,text:o,title:a,align:n,color:i,textColor:l}=e;return(0,At.jsx)("div",{className:`align${n}`,style:{backgroundColor:i},children:(0,At.jsx)(ge.RichText.Content,{tagName:"a",href:t,title:a,style:{color:l},value:o})})},migrate:lS}],hL=Mie;var Ay="noreferrer noopener",Vy="_blank",kd="nofollow";var vL=r(ko());function bL({rel:e="",url:t="",opensInNewTab:o,nofollow:a}){let n,i=e;if(o)n=Vy,i=i?.includes(Ay)?i:i+` ${Ay}`;else{let l=new RegExp(`\\b${Ay}\\s*`,"g");i=i?.replace(l,"").trim()}if(a)i=i?.includes(kd)?i:(i+` ${kd}`).trim();else{let l=new RegExp(`\\b${kd}\\s*`,"g");i=i?.replace(l,"").trim()}return{url:(0,vL.prependHTTP)(t),linkTarget:n,rel:i||void 0}}function p0(e){return e.toString().replace(/<\/?a[^>]*>/g,"")}var _L=r(xe()),Fy=r(F()),xL=r(wd()),kL=r(z()),wL=r(S());function CL(e){let{name:t,attributes:o,setAttributes:a}=e,{textAlign:n}=o,{__unstableMarkNextChangeAsNotPersistent:i}=(0,kL.useDispatch)(wL.store),l=(0,_L.useEvent)(()=>{(0,xL.default)(`textAlign attribute in ${t}`,{alternative:"style.typography.textAlign",since:"7.0"}),i(),a(c=>({style:{...c.style,typography:{...c.style?.typography,textAlign:n}}}))}),s=(0,Fy.useRef)();(0,Fy.useEffect)(()=>{n!==s.current&&(s.current=n,l())},[n,l])}var kr=r(B()),Za=r(F()),Zr=r(L()),Je=r(S()),jc=r(Ui());var Us=r(U()),d0=r(xe()),f0=r(z()),uo=r(h()),{HTMLElementControl:Lie}=Q(Je.privateApis),Rie=[...Je.LinkControl.DEFAULT_LINK_SETTINGS,{id:"nofollow",title:(0,kr.__)("Mark as nofollow")}];function Hie(e){let{replaceBlocks:t,selectionChange:o}=(0,f0.useDispatch)(Je.store),{getBlock:a,getBlockRootClientId:n,getBlockIndex:i}=(0,f0.useSelect)(Je.store),l=(0,Za.useRef)(e);return l.current=e,(0,d0.useRefEffect)(s=>{function c(u){if(u.defaultPrevented||u.keyCode!==jc.ENTER)return;let{content:m,clientId:p}=l.current;if(m.length)return;u.preventDefault();let d=a(n(p)),f=i(p),g=(0,Us.cloneBlock)({...d,innerBlocks:d.innerBlocks.slice(0,f)}),v=(0,Us.createBlock)((0,Us.getDefaultBlockName)()),b=d.innerBlocks.slice(f+1),y=b.length?[(0,Us.cloneBlock)({...d,innerBlocks:b})]:[];t(d.clientId,[g,v,...y],1),o(v.clientId)}return s.addEventListener("keydown",c),()=>{s.removeEventListener("keydown",c)}},[])}function zie({selectedWidth:e,setAttributes:t}){let o=G();return(0,uo.jsx)(Zr.__experimentalToolsPanel,{label:(0,kr.__)("Settings"),resetAll:()=>t({width:void 0}),dropdownMenuProps:o,children:(0,uo.jsx)(Zr.__experimentalToolsPanelItem,{label:(0,kr.__)("Width"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t({width:void 0}),__nextHasNoMarginBottom:!0,children:(0,uo.jsx)(Zr.__experimentalToggleGroupControl,{label:(0,kr.__)("Width"),value:e,onChange:a=>t({width:a}),isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:[25,50,75,100].map(a=>(0,uo.jsx)(Zr.__experimentalToggleGroupControlOption,{value:a,label:(0,kr.sprintf)((0,kr.__)("%d%%"),a)},a))})})})}function Aie(e){let{attributes:t,setAttributes:o,className:a,isSelected:n,onReplace:i,mergeBlocks:l,clientId:s,context:c}=e,{tagName:u,linkTarget:m,placeholder:p,rel:d,style:f,text:g,url:v,width:b,metadata:y}=t;CL(e);let _=u||"a";function x(we){jc.isKeyboardEvent.primary(we,"k")?oe(we):jc.isKeyboardEvent.primaryShift(we,"k")&&(ce(),H.current?.focus())}let[w,C]=(0,Za.useState)(null),T=(0,Je.__experimentalUseBorderProps)(t),N=(0,Je.__experimentalUseColorProps)(t),P=(0,Je.__experimentalGetSpacingClassesAndStyles)(t),M=(0,Je.__experimentalGetShadowClassesAndStyles)(t),R=(0,Za.useRef)(),H=(0,Za.useRef)(),O=(0,Je.useBlockProps)({ref:(0,d0.useMergeRefs)([C,R]),onKeyDown:x}),A=(0,Je.useBlockEditingMode)(),[I,V]=(0,Za.useState)(!1),W=!!v,j=m===Vy,K=!!d?.includes(kd),Z=_==="a",{createPageEntity:te,userCanCreatePages:X,lockUrlControls:J=!1}=(0,f0.useSelect)(we=>{if(!n)return{};let fe=we(Je.store).getSettings(),mt=(0,Us.getBlockBindingsSource)(y?.bindings?.url?.source);return{createPageEntity:fe.__experimentalCreatePageEntity,userCanCreatePages:fe.__experimentalUserCanCreatePages,lockUrlControls:!!y?.bindings?.url&&!mt?.canUserEditValue?.({select:we,context:c,args:y?.bindings?.url?.args})}},[c,n,y?.bindings?.url]);async function ee(we){let fe=await te({title:we,status:"draft"});return{id:fe.id,type:fe.type,title:fe.title.rendered,url:fe.link,kind:"post-type"}}function ne(we){return(0,Za.createInterpolateElement)((0,kr.sprintf)((0,kr.__)("Create page: <mark>%s</mark>"),we),{mark:(0,uo.jsx)("mark",{})})}function oe(we){we.preventDefault(),V(!0)}function ce(){o({url:void 0,linkTarget:void 0,rel:void 0}),V(!1)}(0,Za.useEffect)(()=>{n||V(!1)},[n]);let pe=(0,Za.useMemo)(()=>({url:v,opensInNewTab:j,nofollow:K}),[v,j,K]),Ne=Hie({content:g,clientId:s}),Le=(0,d0.useMergeRefs)([Ne,H]),[ie,Ee]=(0,Je.useSettings)("typography.fluid","layout"),de=(0,Je.getTypographyClassesAndStyles)(t,{typography:{fluid:ie},layout:{wideSize:Ee?.wideSize}}),se=A==="default"||Z&&!J;return(0,uo.jsxs)(uo.Fragment,{children:[(0,uo.jsx)("div",{...O,className:k(O.className,{[`has-custom-width wp-block-button__width-${b}`]:b}),children:(0,uo.jsx)(Je.RichText,{ref:Le,"aria-label":(0,kr.__)("Button text"),placeholder:p||(0,kr.__)("Add text\u2026"),value:g,onChange:we=>o({text:p0(we)}),withoutInteractiveFormatting:!0,className:k(a,"wp-block-button__link",N.className,T.className,de.className,{"no-border-radius":f?.border?.radius===0,"has-custom-font-size":O.style.fontSize},(0,Je.__experimentalGetElementClassName)("button")),style:{...T.style,...N.style,...P.style,...M.style,...de.style,writingMode:void 0},onReplace:i,onMerge:l,identifier:"text"})}),se&&(0,uo.jsx)(Je.BlockControls,{group:"block",children:Z&&!J&&(0,uo.jsx)(Zr.ToolbarButton,{name:"link",icon:W?bm:Nn,title:W?(0,kr.__)("Unlink"):(0,kr.__)("Link"),shortcut:W?jc.displayShortcut.primaryShift("k"):jc.displayShortcut.primary("k"),onClick:W?ce:oe,isActive:W})}),Z&&n&&(I||W)&&!J&&(0,uo.jsx)(Zr.Popover,{placement:"bottom",onClose:()=>{V(!1),H.current?.focus()},anchor:w,focusOnMount:I?"firstElement":!1,__unstableSlotName:"__unstable-block-tools-after",shift:!0,children:(0,uo.jsx)(Je.LinkControl,{value:pe,onChange:({url:we,opensInNewTab:fe,nofollow:mt})=>o(bL({rel:d,url:we,opensInNewTab:fe,nofollow:mt})),onRemove:()=>{ce(),H.current?.focus()},forceIsEditingLink:I,settings:Rie,createSuggestion:te&&ee,withCreateSuggestion:X,createSuggestionButtonText:ne})}),(0,uo.jsx)(Je.InspectorControls,{children:(0,uo.jsx)(zie,{selectedWidth:b,setAttributes:o})}),(0,uo.jsxs)(Je.InspectorControls,{group:"advanced",children:[(0,uo.jsx)(Lie,{tagName:u,onChange:we=>o({tagName:we}),options:[{label:(0,kr.__)("Default (<a>)"),value:"a"},{label:"<button>",value:"button"}]}),Z&&(0,uo.jsx)(Zr.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,kr.__)("Link relation"),help:(0,Za.createInterpolateElement)((0,kr.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,uo.jsx)(Zr.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:d||"",onChange:we=>o({rel:we})})]})]})}var TL=Aie;var jy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{tagName:{type:"string",enum:["a","button"],default:"a"},type:{type:"string",default:"button"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",role:"content"},title:{type:"string",source:"attribute",selector:"a,button",attribute:"title",role:"content"},text:{type:"rich-text",source:"rich-text",selector:"a,button",role:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",role:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",role:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,splitting:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:["fontSize","lineHeight","textAlign","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:{__experimentalSkipSerialization:!0},spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button",selectors:{root:".wp-block-button .wp-block-button__link",typography:{writingMode:".wp-block-button"}}};var Kr=r(S()),cS=r(h());function BL({attributes:e,className:t}){let{tagName:o,type:a,fontSize:n,linkTarget:i,rel:l,style:s,text:c,title:u,url:m,width:p}=e,d=o||"a",f=d==="button",g=a||"button",v=(0,Kr.__experimentalGetBorderClassesAndStyles)(e),b=(0,Kr.__experimentalGetColorClassesAndStyles)(e),y=(0,Kr.__experimentalGetSpacingClassesAndStyles)(e),_=(0,Kr.__experimentalGetShadowClassesAndStyles)(e),x=(0,Kr.getTypographyClassesAndStyles)(e),w=k("wp-block-button__link",b.className,v.className,x.className,{"no-border-radius":s?.border?.radius===0,"has-custom-font-size":n||s?.typography?.fontSize},(0,Kr.__experimentalGetElementClassName)("button")),C={...v.style,...b.style,...y.style,..._.style,...x.style,writingMode:void 0},T=k(t,{[`has-custom-width wp-block-button__width-${p}`]:p});return(0,cS.jsx)("div",{...Kr.useBlockProps.save({className:T}),children:(0,cS.jsx)(Kr.RichText.Content,{tagName:d,type:f?g:null,className:w,href:f?null:m,title:u,style:C,value:c,target:f?null:i,rel:f?null:l})})}var{fieldsKey:Fie,formKey:jie}=Q(PL.privateApis),{name:NL}=jy,Uy={icon:S6,example:{attributes:{className:"is-style-fill",text:(0,Oy.__)("Call to action")}},edit:TL,save:BL,deprecated:hL,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})};window.__experimentalContentOnlyInspectorFields&&(Uy[Fie]=[{id:"text",label:(0,Oy.__)("Content"),type:"richtext"},{id:"link",label:(0,Oy.__)("Link"),type:"link",mapping:{url:"url",rel:"rel",linkTarget:"linkTarget"}}],Uy[jie]={fields:["text"]});var Oie=()=>D({name:NL,metadata:jy,settings:Uy});var dS={};$(dS,{init:()=>Zie,metadata:()=>$y,name:()=>FL,settings:()=>jL});var pS=r(B());var h0=r(S()),g0=r(h()),IL=e=>{if(e.layout)return e;let{contentJustification:t,orientation:o,...a}=e;return(t||o)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),a},Uie=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:IL,save({attributes:{contentJustification:e,orientation:t}}){return(0,g0.jsx)("div",{...h0.useBlockProps.save({className:k({[`is-content-justification-${e}`]:e,"is-vertical":t==="vertical"})}),children:(0,g0.jsx)(h0.InnerBlocks.Content,{})})}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,g0.jsx)("div",{children:(0,g0.jsx)(h0.InnerBlocks.Content,{})})},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return IL({...e,align:void 0,contentJustification:e.align})}}],DL=Uie;var b0=r(U()),mS=r(Bm());var v0=r(U());function Gs(e,t,o=null){if(!e)return;let a=(0,v0.getBlockType)(t);if(!a)return;let n={};if((0,v0.hasBlockSupport)(a,"anchor")&&e.anchor&&(n.anchor=e.anchor),(0,v0.hasBlockSupport)(a,"ariaLabel")&&e.ariaLabel&&(n.ariaLabel=e.ariaLabel),e.metadata){let i=[];if(o&&i.push("id","bindings"),i.length>0){let l=Object.entries(e.metadata).reduce((s,[c,u])=>(i.includes(c)&&(s[c]=c==="bindings"?o(u):u),s),{});Object.keys(l).length>0&&(n.metadata=l)}}if(Object.keys(n).length!==0)return n}var Gie={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,b0.createBlock)("core/buttons",{},e.map(t=>(0,b0.createBlock)("core/button",t)))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,b0.createBlock)("core/buttons",{},e.map(t=>{let{content:o}=t,a=(0,mS.__unstableCreateElement)(document,o),n=a.innerText||"",l=a.querySelector("a")?.getAttribute("href");return(0,b0.createBlock)("core/button",{...t,...Gs(t,"core/button",({content:s})=>({text:s})),text:n,url:l})})),isMatch:e=>e.every(t=>{let o=(0,mS.__unstableCreateElement)(document,t.content),a=o.innerText||"",n=o.querySelectorAll("a");return a.length<=30&&n.length<=1})}]},ML=Gie;var Gy=r(S()),LL=r(z()),RL=r(U()),HL=r(h()),$ie={name:"core/button",attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};function Wie({attributes:e,className:t}){let{fontSize:o,layout:a,style:n}=e,i=(0,Gy.useBlockProps)({className:k(t,{"has-custom-font-size":o||n?.typography?.fontSize})}),{hasButtonVariations:l}=(0,LL.useSelect)(c=>({hasButtonVariations:c(RL.store).getBlockVariations("core/button","inserter").length>0}),[]),s=(0,Gy.useInnerBlocksProps)(i,{defaultBlock:$ie,directInsert:!l,template:[["core/button"]],templateInsertUpdatesSelection:!0,orientation:a?.orientation??"horizontal"});return(0,HL.jsx)("div",{...s})}var zL=Wie;var $y={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",allowedBlocks:["core/button"],description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{blockGap:["horizontal","vertical"],padding:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0},contentRole:!0},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"};var Wy=r(S()),AL=r(h());function VL({attributes:e,className:t}){let{fontSize:o,style:a}=e,n=Wy.useBlockProps.save({className:k(t,{"has-custom-font-size":o||a?.typography?.fontSize})}),i=Wy.useInnerBlocksProps.save(n);return(0,AL.jsx)("div",{...i})}var{name:FL}=$y,jL={icon:B6,example:{attributes:{layout:{type:"flex",justifyContent:"center"}},innerBlocks:[{name:"core/button",attributes:{text:(0,pS.__)("Find out more")}},{name:"core/button",attributes:{text:(0,pS.__)("Contact us")}}]},deprecated:DL,transforms:ML,edit:zL,save:VL},Zie=()=>D({name:FL,metadata:$y,settings:jL});var hS={};$(hS,{init:()=>Xie,metadata:()=>qy,name:()=>ZL,settings:()=>KL});var qy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site\u2019s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,html:!1,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-calendar"};var Cd=r(L()),OL=r(z()),UL=r(Ec()),GL=r(S()),$L=r(Y()),fS=r(B()),Pm=r(h()),Qie=vd(e=>{if(!e)return{};let t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}});function WL({attributes:e}){let t=(0,GL.useBlockProps)(),{date:o,hasPosts:a,hasPostsResolved:n}=(0,OL.useSelect)(i=>{let{getEntityRecords:l,hasFinishedResolution:s}=i($L.store),c={status:"publish",per_page:1},u=l("postType","post",c),m=s("getEntityRecords",["postType","post",c]),p,d=i("core/editor");return d&&d.getEditedPostAttribute("type")==="post"&&(p=d.getEditedPostAttribute("date")),{date:p,hasPostsResolved:m,hasPosts:m&&u?.length===1}},[]);return a?(0,Pm.jsx)("div",{...t,children:(0,Pm.jsx)(Cd.Disabled,{children:(0,Pm.jsx)(UL.default,{block:"core/calendar",attributes:{...e,...Qie(o)}})})}):(0,Pm.jsx)("div",{...t,children:(0,Pm.jsx)(Cd.Placeholder,{icon:ch,label:(0,fS.__)("Calendar"),children:n?(0,fS.__)("No published posts found."):(0,Pm.jsx)(Cd.Spinner,{})})})}var gS=r(U()),Yie={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,gS.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,gS.createBlock)("core/archives")}]},qL=Yie;var{name:ZL}=qy,KL={icon:ch,example:{},edit:WL,transforms:qL},Xie=()=>D({name:ZL,metadata:qy,settings:KL});var yS={};$(yS,{init:()=>tle,metadata:()=>Zy,name:()=>tR,settings:()=>oR});var Zy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Terms List",category:"widgets",description:"Display a list of all terms of a given taxonomy.",keywords:["categories"],textdomain:"default",attributes:{taxonomy:{type:"string",default:"category"},displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1},label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0}},usesContext:["enhancedPagination"],supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"};var Gt=r(L()),QL=r(xe()),Sd=r(S()),YL=r(jo()),io=r(B());var vS=r(Y()),XL=r(z()),JL=r(No());var ot=r(h());function bS({attributes:{displayAsDropdown:e,showHierarchy:t,showPostCounts:o,showOnlyTopLevel:a,showEmpty:n,label:i,showLabel:l,taxonomy:s},setAttributes:c,className:u,clientId:m}){let p=(0,QL.useInstanceId)(bS,"blocks-category-select"),{records:d,isResolvingTaxonomies:f}=(0,vS.useEntityRecords)("root","taxonomy",{per_page:-1}),g=d?.filter(j=>j.visibility.public),v=g?.find(j=>j.slug===s),b=!f&&v?.hierarchical,y={per_page:-1,hide_empty:!n,context:"view"};b&&a&&(y.parent=0);let{records:_,isResolving:x}=(0,vS.useEntityRecords)("taxonomy",s,y),{createWarningNotice:w}=(0,XL.useDispatch)(JL.store),C=j=>{j.preventDefault(),w((0,io.__)("Links are disabled in the editor."),{id:`block-library/core/categories/redirection-prevented/${m}`,type:"snackbar"})},T=j=>_?.length?j===null?_:_.filter(({parent:K})=>K===j):[],N=j=>K=>c({[j]:K}),P=j=>j?(0,YL.decodeEntities)(j).trim():(0,io.__)("(Untitled)"),M=()=>T(b&&t?0:null).map(Z=>R(Z)),R=j=>{let K=T(j.id),{id:Z,link:te,count:X,name:J}=j;return(0,ot.jsxs)("li",{className:`cat-item cat-item-${Z}`,children:[(0,ot.jsx)("a",{href:te,onClick:C,children:P(J)}),o&&` (${X})`,b&&t&&!!K.length&&(0,ot.jsx)("ul",{className:"children",children:K.map(ee=>R(ee))})]},Z)},H=()=>{let K=T(b&&t?0:null);return(0,ot.jsxs)(ot.Fragment,{children:[l?(0,ot.jsx)(Sd.RichText,{className:"wp-block-categories__label","aria-label":(0,io.__)("Label text"),placeholder:v?.name,withoutInteractiveFormatting:!0,value:i,onChange:Z=>c({label:Z})}):(0,ot.jsx)(Gt.VisuallyHidden,{as:"label",htmlFor:p,children:i||v?.name}),(0,ot.jsxs)("select",{id:p,children:[(0,ot.jsx)("option",{children:(0,io.sprintf)((0,io.__)("Select %s"),v?.labels?.singular_name)}),K.map(Z=>O(Z,0))]})]})},O=(j,K)=>{let{id:Z,count:te,name:X}=j,J=T(Z);return[(0,ot.jsxs)("option",{className:`level-${K}`,children:[Array.from({length:K*3}).map(()=>"\xA0"),P(X),o&&` (${te})`]},Z),b&&t&&!!J.length&&J.map(ee=>O(ee,K+1))]},A=_?.length&&!e&&!x?"ul":"div",I=k(u,`wp-block-categories-taxonomy-${s}`,{"wp-block-categories-list":!!_?.length&&!e&&!x,"wp-block-categories-dropdown":!!_?.length&&e&&!x}),V=(0,Sd.useBlockProps)({className:I}),W=G();return(0,ot.jsxs)(A,{...V,children:[(0,ot.jsx)(Sd.InspectorControls,{children:(0,ot.jsxs)(Gt.__experimentalToolsPanel,{label:(0,io.__)("Settings"),resetAll:()=>{c({taxonomy:"category",displayAsDropdown:!1,showHierarchy:!1,showPostCounts:!1,showOnlyTopLevel:!1,showEmpty:!1,showLabel:!0})},dropdownMenuProps:W,children:[Array.isArray(g)&&(0,ot.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:(0,io.__)("Taxonomy"),onDeselect:()=>{c({taxonomy:"category"})},isShownByDefault:!0,children:(0,ot.jsx)(Gt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,io.__)("Taxonomy"),options:g.map(j=>({label:j.name,value:j.slug})),value:s,onChange:j=>c({taxonomy:j})})}),(0,ot.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!!e,label:(0,io.__)("Display as dropdown"),onDeselect:()=>c({displayAsDropdown:!1}),isShownByDefault:!0,children:(0,ot.jsx)(Gt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,io.__)("Display as dropdown"),checked:e,onChange:N("displayAsDropdown")})}),e&&(0,ot.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,io.__)("Show label"),onDeselect:()=>c({showLabel:!0}),isShownByDefault:!0,children:(0,ot.jsx)(Gt.ToggleControl,{__nextHasNoMarginBottom:!0,className:"wp-block-categories__indentation",label:(0,io.__)("Show label"),checked:l,onChange:N("showLabel")})}),(0,ot.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,io.__)("Show post counts"),onDeselect:()=>c({showPostCounts:!1}),isShownByDefault:!0,children:(0,ot.jsx)(Gt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,io.__)("Show post counts"),checked:o,onChange:N("showPostCounts")})}),b&&(0,ot.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,io.__)("Show only top level terms"),onDeselect:()=>c({showOnlyTopLevel:!1}),isShownByDefault:!0,children:(0,ot.jsx)(Gt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,io.__)("Show only top level terms"),checked:a,onChange:N("showOnlyTopLevel")})}),(0,ot.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,io.__)("Show empty terms"),onDeselect:()=>c({showEmpty:!1}),isShownByDefault:!0,children:(0,ot.jsx)(Gt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,io.__)("Show empty terms"),checked:n,onChange:N("showEmpty")})}),b&&!a&&(0,ot.jsx)(Gt.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,io.__)("Show hierarchy"),onDeselect:()=>c({showHierarchy:!1}),isShownByDefault:!0,children:(0,ot.jsx)(Gt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,io.__)("Show hierarchy"),checked:t,onChange:N("showHierarchy")})})]})}),x&&(0,ot.jsx)(Gt.Placeholder,{icon:Lh,label:(0,io.__)("Terms"),children:(0,ot.jsx)(Gt.Spinner,{})}),!x&&_?.length===0&&(0,ot.jsx)("p",{children:v.labels.no_terms}),!x&&_?.length>0&&(e?H():M())]})}var Ky=r(B());var ele=[{name:"terms",title:(0,Ky.__)("Terms List"),icon:Hc,attributes:{taxonomy:"post_tag"},isActive:e=>e.taxonomy!=="category"},{name:"categories",title:(0,Ky.__)("Categories List"),description:(0,Ky.__)("Display a list of all categories."),icon:Hc,attributes:{taxonomy:"category"},isActive:["taxonomy"],isDefault:!0}],eR=ele;var{name:tR}=Zy,oR={icon:Hc,example:{},edit:bS,variations:eR},tle=()=>D({name:tR,metadata:Zy,settings:oR});var kS={};$(kS,{init:()=>sle,metadata:()=>e_,name:()=>y0,settings:()=>vR});var Em=r(S()),Jy=r(xe()),xS=r(z()),mR=r(L()),Dm=r(F()),pR=r(B()),Oc=r(Ui());var rR=r(B()),aR=r(L()),Qy=r(z()),Yy=r(U()),_S=r(S()),nR=r(h()),ole=({clientId:e})=>{let{replaceBlocks:t}=(0,Qy.useDispatch)(_S.store),o=(0,Qy.useSelect)(a=>a(_S.store).getBlock(e),[e]);return(0,nR.jsx)(aR.ToolbarButton,{onClick:()=>t(o.clientId,(0,Yy.rawHandler)({HTML:(0,Yy.serialize)(o)})),children:(0,rR.__)("Convert to blocks")})},iR=ole;var Xy=r(S()),ga=r(L()),Im=r(F()),Nm=r(B()),lR=r(z());var sR=r(xe()),Oo=r(h());function rle({onClick:e,isModalFullScreen:t}){return(0,sR.useViewportMatch)("small","<")?null:(0,Oo.jsx)(ga.Button,{size:"compact",onClick:e,icon:gm,isPressed:t,label:t?(0,Nm.__)("Exit fullscreen"):(0,Nm.__)("Enter fullscreen")})}function ale(e){let t=(0,lR.useSelect)(o=>o(Xy.store).getSettings().styles);return(0,Im.useEffect)(()=>{let{baseURL:o,suffix:a,settings:n}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:o,suffix:a}),window.wp.oldEditor.initialize(e.id,{tinymce:{...n,setup(i){i.on("init",()=>{let l=i.getDoc();t.forEach(({css:s})=>{let c=l.createElement("style");c.innerHTML=s,l.head.appendChild(c)})})}}}),()=>{window.wp.oldEditor.remove(e.id)}},[]),(0,Oo.jsx)("textarea",{...e})}function cR(e){let{clientId:t,attributes:{content:o},setAttributes:a,onReplace:n}=e,[i,l]=(0,Im.useState)(!1),[s,c]=(0,Im.useState)(!1),u=`editor-${t}`,m=()=>o?l(!1):n([]);return(0,Oo.jsxs)(Oo.Fragment,{children:[(0,Oo.jsx)(Xy.BlockControls,{children:(0,Oo.jsx)(ga.ToolbarGroup,{children:(0,Oo.jsx)(ga.ToolbarButton,{onClick:()=>l(!0),children:(0,Nm.__)("Edit")})})}),o&&(0,Oo.jsx)(Im.RawHTML,{children:o}),(i||!o)&&(0,Oo.jsxs)(ga.Modal,{title:(0,Nm.__)("Classic Editor"),onRequestClose:m,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal",isFullScreen:s,className:"block-editor-freeform-modal__content",headerActions:(0,Oo.jsx)(rle,{onClick:()=>c(!s),isModalFullScreen:s}),children:[(0,Oo.jsx)(ale,{id:u,defaultValue:o}),(0,Oo.jsxs)(ga.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1,children:[(0,Oo.jsx)(ga.FlexItem,{children:(0,Oo.jsx)(ga.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:m,children:(0,Nm.__)("Cancel")})}),(0,Oo.jsx)(ga.FlexItem,{children:(0,Oo.jsx)(ga.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{a({content:window.wp.oldEditor.getContent(u)}),l(!1)},children:(0,Nm.__)("Save")})})]})]})]})}var ha=r(h()),{wp:uR}=window;function nle(e){let t=e.getBody();return t.childNodes.length>1?!1:t.childNodes.length===0?!0:t.childNodes[0].childNodes.length>1?!1:/^\n?$/.test(t.innerText||t.textContent)}function dR(e){let{clientId:t}=e,o=(0,xS.useSelect)(l=>l(Em.store).canRemoveBlock(t),[t]),[a,n]=(0,Dm.useState)(!1),i=(0,Jy.useRefEffect)(l=>{n(l.ownerDocument!==document)},[]);return(0,ha.jsxs)(ha.Fragment,{children:[o&&(0,ha.jsx)(Em.BlockControls,{children:(0,ha.jsx)(mR.ToolbarGroup,{children:(0,ha.jsx)(iR,{clientId:t})})}),(0,ha.jsx)("div",{...(0,Em.useBlockProps)({ref:i}),children:a?(0,ha.jsx)(cR,{...e}):(0,ha.jsx)(ile,{...e})})]})}function ile({clientId:e,attributes:{content:t},setAttributes:o,onReplace:a}){let{getMultiSelectedBlockClientIds:n}=(0,xS.useSelect)(Em.store),i=(0,Dm.useRef)(!1);(0,Dm.useEffect)(()=>{if(!i.current)return;let c=window.tinymce.get(`editor-${e}`);if(!c)return;c.getContent()!==t&&c.setContent(t||"")},[e,t]),(0,Dm.useEffect)(()=>{let{baseURL:c,suffix:u}=window.wpEditorL10n.tinymce;i.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:c,suffix:u});function m(f){let g;t&&f.on("loadContent",()=>f.setContent(t)),f.on("blur",()=>{g=f.selection.getBookmark(2,!0);let b=document.querySelector(".interface-interface-skeleton__content"),y=b.scrollTop;return n()?.length||o({content:f.getContent()}),f.once("focus",()=>{g&&(f.selection.moveToBookmark(g),b.scrollTop!==y&&(b.scrollTop=y))}),!1}),f.on("mousedown touchstart",()=>{g=null});let v=(0,Jy.debounce)(()=>{let b=f.getContent();b!==f._lastChange&&(f._lastChange=b,o({content:b}))},250);f.on("Paste Change input Undo Redo",v),f.on("remove",v.cancel),f.on("keydown",b=>{Oc.isKeyboardEvent.primary(b,"z")&&b.stopPropagation(),(b.keyCode===Oc.BACKSPACE||b.keyCode===Oc.DELETE)&&nle(f)&&(a([]),b.preventDefault(),b.stopImmediatePropagation());let{altKey:y}=b;y&&b.keyCode===Oc.F10&&b.stopPropagation()}),f.on("paste",b=>{b.stopPropagation()}),f.on("init",()=>{let b=f.getBody();b.ownerDocument.activeElement===b&&(b.blur(),f.focus())})}function p(){let{settings:f}=window.wpEditorL10n.tinymce;uR.oldEditor.initialize(`editor-${e}`,{tinymce:{...f,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:m}})}function d(){document.readyState==="complete"&&p()}return document.readyState==="complete"?p():document.addEventListener("readystatechange",d),()=>{document.removeEventListener("readystatechange",d),uR.oldEditor.remove(`editor-${e}`),i.current=!1}},[]);function l(){let c=window.tinymce.get(`editor-${e}`);c&&c.focus()}function s(c){c.stopPropagation(),c.nativeEvent.stopImmediatePropagation()}return(0,ha.jsxs)(ha.Fragment,{children:[(0,ha.jsx)("div",{id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:l,"data-placeholder":(0,pR.__)("Classic"),onKeyDown:s},"toolbar"),(0,ha.jsx)("div",{id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"},"editor")]})}var e_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,lock:!1,reusable:!1,renaming:!1,visibility:!1},editorStyle:"wp-block-freeform-editor"};var fR=r(F()),gR=r(h());function hR({attributes:e}){let{content:t}=e;return(0,gR.jsx)(fR.RawHTML,{children:t})}var{name:y0}=e_,vR={icon:F6,edit:dR,save:hR},sle=()=>D({name:y0,metadata:e_,settings:vR});var BS={};$(BS,{init:()=>gle,metadata:()=>r_,name:()=>CR,settings:()=>i_});var TS=r(B());var wR=r(U());var wS=r(B()),t_=r(S()),o_=r(U()),CS=r(h());function bR({attributes:e,setAttributes:t,onRemove:o,insertBlocksAfter:a,mergeBlocks:n}){let i=(0,t_.useBlockProps)();return(0,CS.jsx)("pre",{...i,children:(0,CS.jsx)(t_.RichText,{tagName:"code",identifier:"content",value:e.content,onChange:l=>t({content:l}),onRemove:o,onMerge:n,placeholder:(0,wS.__)("Write code\u2026"),"aria-label":(0,wS.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>a((0,o_.createBlock)((0,o_.getDefaultBlockName)()))})})}var r_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"code",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-code"};var a_=r(S());var yR=r(xe());function _R(e){return(0,yR.pipe)(ule,mle)(e||"")}function ule(e){return e.replace(/\[/g,"[")}function mle(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var SS=r(h());function xR({attributes:e}){return(0,SS.jsx)("pre",{...a_.useBlockProps.save(),children:(0,SS.jsx)(a_.RichText.Content,{tagName:"code",value:_R(typeof e.content=="string"?e.content:e.content.toHTMLString({preserveWhiteSpace:!0}))})})}var _0=r(U()),n_=r(Bm());var ple={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,_0.createBlock)("core/code")},{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,_0.createBlock)("core/code",{...e,...Gs(e,"core/code"),content:t})}},{type:"block",blocks:["core/html"],transform:e=>{let{content:t}=e;return(0,_0.createBlock)("core/code",{...e,...Gs(e,"core/code"),content:(0,n_.toHTMLString)({value:(0,n_.create)({text:t})})})}},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&e.children.length===1&&e.firstChild.nodeName==="CODE",schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>{let{content:t}=e;return(0,_0.createBlock)("core/paragraph",{...Gs(e,"core/paragraph"),content:t})}}]},kR=ple;var{fieldsKey:dle,formKey:fle}=Q(wR.privateApis),{name:CR}=r_,i_={icon:ph,example:{attributes:{content:(0,TS.__)(`// A \u201Cblock\u201D is the abstract term used |
| 2 |
// to describe units of markup that |
| 3 |
// when composed together, form the |
| 4 |
// content or layout of a page. |
| 5 |
registerBlockType( name, settings );`)}},merge(e,t){return{content:e.content+` |
| 6 |
|
| 7 |
`+t.content}},transforms:kR,edit:bR,save:xR};window.__experimentalContentOnlyInspectorFields&&(i_[dle]=[{id:"content",label:(0,TS.__)("Code"),type:"richtext"}],i_[fle]={fields:["content"]});var gle=()=>D({name:CR,metadata:r_,settings:i_});var NS={};$(NS,{init:()=>_le,metadata:()=>s_,name:()=>IR,settings:()=>DR});var SR=r(S()),PS=r(h()),hle=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){let{verticalAlignment:t,width:o}=e,a=k({[`is-vertically-aligned-${t}`]:t}),n={flexBasis:o+"%"};return(0,PS.jsx)("div",{className:a,style:n,children:(0,PS.jsx)(SR.InnerBlocks.Content,{})})}}],TR=hle;var wr=r(S()),Uc=r(L()),l_=r(z()),Mm=r(B());var In=r(h());function vle({width:e,setAttributes:t}){let[o]=(0,wr.useSettings)("spacing.units"),a=(0,Uc.__experimentalUseCustomUnits)({availableUnits:o||["%","px","em","rem","vw"]}),n=G();return(0,In.jsx)(Uc.__experimentalToolsPanel,{label:(0,Mm.__)("Settings"),resetAll:()=>{t({width:void 0})},dropdownMenuProps:n,children:(0,In.jsx)(Uc.__experimentalToolsPanelItem,{hasValue:()=>e!==void 0,label:(0,Mm.__)("Width"),onDeselect:()=>t({width:void 0}),isShownByDefault:!0,children:(0,In.jsx)(Uc.__experimentalUnitControl,{label:(0,Mm.__)("Width"),__unstableInputWidth:"calc(50% - 8px)",__next40pxDefaultSize:!0,value:e||"",onChange:i=>{i=0>parseFloat(i)?"0":i,t({width:i})},units:a})})})}function ble({attributes:{verticalAlignment:e,width:t,templateLock:o,allowedBlocks:a},setAttributes:n,clientId:i}){let l=k("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,l_.useSelect)(_=>{let{getBlockOrder:x,getBlockRootClientId:w}=_(wr.store),C=w(i);return{hasChildBlocks:x(i).length>0,rootClientId:C,columnsIds:x(C)}},[i]),{updateBlockAttributes:m}=(0,l_.useDispatch)(wr.store),p=_=>{n({verticalAlignment:_}),m(u,{verticalAlignment:null})},d=Number.isFinite(t)?t+"%":t,f=(0,wr.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),g=s.length,v=s.indexOf(i)+1,b=(0,Mm.sprintf)((0,Mm.__)("%1$s (%2$d of %3$d)"),f["aria-label"],v,g),y=(0,wr.useInnerBlocksProps)({...f,"aria-label":b},{templateLock:o,allowedBlocks:a,renderAppender:c?void 0:wr.InnerBlocks.ButtonBlockAppender});return(0,In.jsxs)(In.Fragment,{children:[(0,In.jsx)(wr.BlockControls,{children:(0,In.jsx)(wr.BlockVerticalAlignmentToolbar,{onChange:p,value:e,controls:["top","center","bottom","stretch"]})}),(0,In.jsx)(wr.InspectorControls,{children:(0,In.jsx)(vle,{width:t,setAttributes:n})}),(0,In.jsx)("div",{...y})]})}var BR=ble;var s_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,anchor:!0,reusable:!1,html:!1,color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0,interactivity:{clientNavigation:!0},allowedBlocks:!0}};var c_=r(S()),PR=r(h());function NR({attributes:e}){let{verticalAlignment:t,width:o}=e,a=k({[`is-vertically-aligned-${t}`]:t}),n;if(o&&/\d/.test(o)){let s=Number.isFinite(o)?o+"%":o;!Number.isFinite(o)&&o?.endsWith("%")&&(s=Math.round(Number.parseFloat(o)*1e12)/1e12+"%"),n={flexBasis:s}}let i=c_.useBlockProps.save({className:a,style:n}),l=c_.useInnerBlocksProps.save(i);return(0,PR.jsx)("div",{...l})}var{name:IR}=s_,DR={icon:G6,edit:BR,save:NR,deprecated:TR},_le=()=>D({name:IR,metadata:s_,settings:DR});var ES={};$(ES,{init:()=>Mle,metadata:()=>p_,name:()=>jR,settings:()=>OR});var x0=r(B());var ER=r(U()),Rm=r(S()),Lm=r(h());function u_(e){let{doc:t}=u_;t||(t=document.implementation.createHTMLDocument(""),u_.doc=t);let o;t.body.innerHTML=e;for(let a of t.body.firstChild.classList)if(o=a.match(/^layout-column-(\d+)$/))return Number(o[1])-1}var xle=e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:o,customBackgroundColor:a,...n}=e;return{...n,style:t,isStackedOnMobile:!0}},MR=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:xle,save({attributes:e}){let{verticalAlignment:t,backgroundColor:o,customBackgroundColor:a,textColor:n,customTextColor:i}=e,l=(0,Rm.getColorClassName)("background-color",o),s=(0,Rm.getColorClassName)("color",n),c=k({"has-background":o||a,"has-text-color":n||i,[l]:l,[s]:s,[`are-vertically-aligned-${t}`]:t});return(0,Lm.jsx)("div",{className:c||void 0,style:{backgroundColor:l?void 0:a,color:s?void 0:i},children:(0,Lm.jsx)(Rm.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return t.some(a=>/layout-column-\d+/.test(a.originalContent))?t.some(a=>u_(a.originalContent)!==void 0):!1},migrate(e,t){let a=t.reduce((l,s)=>{let{originalContent:c}=s,u=u_(c);return u===void 0&&(u=0),l[u]||(l[u]=[]),l[u].push(s),l},[]).map(l=>(0,ER.createBlock)("core/column",{},l)),{columns:n,...i}=e;return[{...i,isStackedOnMobile:!0},a]},save({attributes:e}){let{columns:t}=e;return(0,Lm.jsx)("div",{className:`has-${t}-columns`,children:(0,Lm.jsx)(Rm.InnerBlocks.Content,{})})}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){let{columns:o,...a}=e;return e={...a,isStackedOnMobile:!0},[e,t]},save({attributes:e}){let{verticalAlignment:t,columns:o}=e,a=k(`has-${o}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,Lm.jsx)("div",{className:a,children:(0,Lm.jsx)(Rm.InnerBlocks.Content,{})})}}];var Hm=r(B()),di=r(L()),wo=r(S()),pi=r(z()),zm=r(U());var m_=e=>{let t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function LR(e,t){let{width:o=100/t}=e.attributes;return m_(o)}function kle(e,t=e.length){return e.reduce((o,a)=>o+LR(a,t),0)}function wle(e,t=e.length){return e.reduce((o,a)=>{let n=LR(a,t);return Object.assign(o,{[a.clientId]:n})},{})}function IS(e,t,o=e.length){let a=kle(e,o);return Object.fromEntries(Object.entries(wle(e,o)).map(([n,i])=>{let l=t*i/a;return[n,m_(l)]}))}function RR(e){return e.every(t=>{let o=t.attributes.width;return Number.isFinite(o?.endsWith?.("%")?parseFloat(o):o)})}function DS(e,t){return e.map(o=>({...o,attributes:{...o.attributes,width:`${t[o.clientId]}%`}}))}var Uo=r(h()),Cle={name:"core/column"};function Sle({clientId:e,setAttributes:t,isStackedOnMobile:o}){let{count:a,canInsertColumnBlock:n,minCount:i}=(0,pi.useSelect)(m=>{let{canInsertBlockType:p,canRemoveBlock:d,getBlockOrder:f}=m(wo.store),g=f(e),v=g.reduce((b,y,_)=>(d(y)||b.push(_),b),[]);return{count:g.length,canInsertColumnBlock:p("core/column",e),minCount:Math.max(...v)+1}},[e]),{getBlocks:l}=(0,pi.useSelect)(wo.store),{replaceInnerBlocks:s}=(0,pi.useDispatch)(wo.store);function c(m,p){let d=l(e),f=RR(d),g=p>m;if(g&&f){let v=m_(100/p),b=p-m,y=IS(d,100-v*b);d=[...DS(d,y),...Array.from({length:b}).map(()=>(0,zm.createBlock)("core/column",{width:`${v}%`}))]}else if(g)d=[...d,...Array.from({length:p-m}).map(()=>(0,zm.createBlock)("core/column"))];else if(p<m&&(d=d.slice(0,-(m-p)),f)){let v=IS(d,100);d=DS(d,v)}s(e,d)}let u=G();return(0,Uo.jsxs)(di.__experimentalToolsPanel,{label:(0,Hm.__)("Settings"),resetAll:()=>{t({isStackedOnMobile:!0})},dropdownMenuProps:u,children:[n&&(0,Uo.jsxs)(di.__experimentalVStack,{spacing:4,style:{gridColumn:"1 / -1"},children:[(0,Uo.jsx)(di.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Hm.__)("Columns"),value:a,onChange:m=>c(a,Math.max(i,m)),min:Math.max(1,i),max:Math.max(6,a)}),a>6&&(0,Uo.jsx)(di.Notice,{status:"warning",isDismissible:!1,children:(0,Hm.__)("This column count exceeds the recommended amount and may cause visual breakage.")})]}),(0,Uo.jsx)(di.__experimentalToolsPanelItem,{label:(0,Hm.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>o!==!0,onDeselect:()=>t({isStackedOnMobile:!0}),children:(0,Uo.jsx)(di.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Hm.__)("Stack on mobile"),checked:o,onChange:()=>t({isStackedOnMobile:!o})})})]})}function Tle({attributes:e,setAttributes:t,clientId:o}){let{isStackedOnMobile:a,verticalAlignment:n,templateLock:i}=e,l=(0,pi.useRegistry)(),{getBlockOrder:s}=(0,pi.useSelect)(wo.store),{updateBlockAttributes:c}=(0,pi.useDispatch)(wo.store),u=k({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!a}),m=(0,wo.useBlockProps)({className:u}),p=(0,wo.useInnerBlocksProps)(m,{defaultBlock:Cle,directInsert:!0,orientation:"horizontal",renderAppender:!1,templateLock:i});function d(f){let g=s(o);l.batch(()=>{t({verticalAlignment:f}),c(g,{verticalAlignment:f})})}return(0,Uo.jsxs)(Uo.Fragment,{children:[(0,Uo.jsx)(wo.BlockControls,{children:(0,Uo.jsx)(wo.BlockVerticalAlignmentToolbar,{onChange:d,value:n})}),(0,Uo.jsx)(wo.InspectorControls,{children:(0,Uo.jsx)(Sle,{clientId:o,setAttributes:t,isStackedOnMobile:a})}),(0,Uo.jsx)("div",{...p})]})}function Ble({clientId:e,name:t,setAttributes:o}){let{blockType:a,defaultVariation:n,variations:i}=(0,pi.useSelect)(c=>{let{getBlockVariations:u,getBlockType:m,getDefaultBlockVariation:p}=c(zm.store);return{blockType:m(t),defaultVariation:p(t,"block"),variations:u(t,"block")}},[t]),{replaceInnerBlocks:l}=(0,pi.useDispatch)(wo.store),s=(0,wo.useBlockProps)();return(0,Uo.jsx)("div",{...s,children:(0,Uo.jsx)(wo.__experimentalBlockVariationPicker,{icon:a?.icon?.src,label:a?.title,variations:i,instructions:(0,Hm.__)("Divide into columns. Select a layout:"),onSelect:(c=n)=>{c.attributes&&o(c.attributes),c.innerBlocks&&l(e,(0,zm.createBlocksFromInnerBlocksTemplate)(c.innerBlocks),!0)},allowSkip:!0})})}var Ple=e=>{let{clientId:t}=e,a=(0,pi.useSelect)(n=>n(wo.store).getBlocks(t).length>0,[t])?Tle:Ble;return(0,Uo.jsx)(a,{...e})},HR=Ple;var p_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",allowedBlocks:["core/column"],description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,heading:!0,button:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},shadow:!0},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"};var d_=r(S()),zR=r(h());function AR({attributes:e}){let{isStackedOnMobile:t,verticalAlignment:o}=e,a=k({[`are-vertically-aligned-${o}`]:o,"is-not-stacked-on-mobile":!t}),n=d_.useBlockProps.save({className:a}),i=d_.useInnerBlocksProps.save(n);return(0,zR.jsx)("div",{...i})}var Ka=r(L()),Dn=r(B()),En=r(h()),Ile=[{name:"one-column-full",title:(0,Dn.__)("100"),description:(0,Dn.__)("One column"),icon:(0,En.jsx)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,En.jsx)(Ka.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,Dn.__)("50 / 50"),description:(0,Dn.__)("Two columns; equal split"),icon:(0,En.jsx)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,En.jsx)(Ka.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,Dn.__)("33 / 66"),description:(0,Dn.__)("Two columns; one-third, two-thirds split"),icon:(0,En.jsx)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,En.jsx)(Ka.Path,{d:"M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,Dn.__)("66 / 33"),description:(0,Dn.__)("Two columns; two-thirds, one-third split"),icon:(0,En.jsx)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,En.jsx)(Ka.Path,{d:"M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z"})}),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,Dn.__)("33 / 33 / 33"),description:(0,Dn.__)("Three columns; equal split"),icon:(0,En.jsx)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,En.jsx)(Ka.Path,{d:"M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,Dn.__)("25 / 50 / 25"),description:(0,Dn.__)("Three columns; wide center column"),icon:(0,En.jsx)(Ka.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,En.jsx)(Ka.Path,{d:"M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z"})}),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}],VR=Ile;var Td=r(U()),Dle=6,Ele={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{let t=+(100/e.length).toFixed(2),o=e.map(({name:a,attributes:n,innerBlocks:i})=>["core/column",{width:`${t}%`},[[a,{...n},i]]]);return(0,Td.createBlock)("core/columns",{},(0,Td.createBlocksFromInnerBlocksTemplate)(o))},isMatch:({length:e},t)=>t.length===1&&t[0].name==="core/columns"?!1:e&&e<=Dle},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{let{align:o,backgroundColor:a,textColor:n,style:i,mediaAlt:l,mediaId:s,mediaPosition:c,mediaSizeSlug:u,mediaType:m,mediaUrl:p,mediaWidth:d,verticalAlignment:f}=e,g;if(m==="image"||!m){let b={id:s,alt:l,url:p,sizeSlug:u},y={href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel};g=["core/image",{...b,...y}]}else g=["core/video",{id:s,src:p}];let v=[["core/column",{width:`${d}%`},[g]],["core/column",{width:`${100-d}%`},t]];return c==="right"&&v.reverse(),(0,Td.createBlock)("core/columns",{align:o,backgroundColor:a,textColor:n,style:i,verticalAlignment:f},(0,Td.createBlocksFromInnerBlocksTemplate)(v))}}],ungroup:(e,t)=>t.flatMap(o=>o.innerBlocks)},FR=Ele;var{name:jR}=p_,OR={icon:W6,variations:VR,example:{viewportWidth:782,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,x0.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,x0.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,x0.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,x0.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:MR,edit:HR,save:AR,transforms:FR},Mle=()=>D({name:jR,metadata:p_,settings:OR});var HS={};$(HS,{init:()=>Vle,metadata:()=>f_,name:()=>iH,settings:()=>lH});var f_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments",title:"Comments",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"},legacy:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]};var g_=r(S()),MS=r(h()),Rle={attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){let t=g_.useBlockProps.save(),{className:o}=t,n=(o?.split(" ")||[])?.filter(l=>l!=="wp-block-comments"),i={...t,className:n.join(" ")};return(0,MS.jsx)(e,{...i,children:(0,MS.jsx)(g_.InnerBlocks.Content,{})})}},UR=[Rle];var y_=r(S());var GR=r(B()),k0=r(S());var h_=r(h()),{HTMLElementControl:Hle}=Q(k0.privateApis);function $R({attributes:{tagName:e},setAttributes:t}){return(0,h_.jsx)(k0.InspectorControls,{children:(0,h_.jsx)(k0.InspectorControls,{group:"advanced",children:(0,h_.jsx)(Hle,{tagName:e,onChange:o=>t({tagName:o}),options:[{label:(0,GR.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})})}var $c=r(S()),RS=r(B()),eH=r(L());var KR=r(S()),Go=r(B()),QR=r(z()),YR=r(Y()),XR=r(F());var fi=r(B()),Gc=r(S()),WR=r(L()),qR=r(xe()),v_=r(Y()),LS=r(z()),va=r(h()),ZR=()=>{let e=(0,qR.useInstanceId)(ZR);return(0,va.jsxs)("div",{className:"comment-respond",children:[(0,va.jsx)("h3",{className:"comment-reply-title",children:(0,fi.__)("Leave a Reply")}),(0,va.jsxs)("form",{noValidate:!0,className:"comment-form",onSubmit:t=>t.preventDefault(),children:[(0,va.jsxs)("p",{children:[(0,va.jsx)("label",{htmlFor:`comment-${e}`,children:(0,fi.__)("Comment")}),(0,va.jsx)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8",readOnly:!0})]}),(0,va.jsx)("p",{className:"form-submit wp-block-button",children:(0,va.jsx)("input",{name:"submit",type:"submit",className:k("wp-block-button__link",(0,Gc.__experimentalGetElementClassName)("button")),label:(0,fi.__)("Post Comment"),value:(0,fi.__)("Post Comment"),"aria-disabled":"true"})})]})]})},zle=({postId:e,postType:t})=>{let[o,a]=(0,v_.useEntityProp)("postType",t,"comment_status",e),n=t===void 0||e===void 0,{defaultCommentStatus:i}=(0,LS.useSelect)(s=>s(Gc.store).getSettings().__experimentalDiscussionSettings),l=(0,LS.useSelect)(s=>t?!!s(v_.store).getPostType(t)?.supports.comments:!1);if(!n&&o!=="open")if(o==="closed"){let s=[(0,va.jsx)(WR.Button,{__next40pxDefaultSize:!0,onClick:()=>a("open"),variant:"primary",children:(0,fi._x)("Enable comments","action that affects the current post")},"enableComments")];return(0,va.jsx)(Gc.Warning,{actions:s,children:(0,fi.__)("Post Comments Form block: Comments are not enabled for this item.")})}else if(l){if(i!=="open")return(0,va.jsx)(Gc.Warning,{children:(0,fi.__)("Post Comments Form block: Comments are not enabled.")})}else return(0,va.jsx)(Gc.Warning,{children:(0,fi.sprintf)((0,fi.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t)});return(0,va.jsx)(ZR,{})},b_=zle;var Ze=r(h());function JR({postType:e,postId:t}){let[o]=(0,YR.useEntityProp)("postType",e,"title",t);o=o||(0,Go.__)("Post Title");let{avatarURL:a}=(0,QR.useSelect)(n=>n(KR.store).getSettings().__experimentalDiscussionSettings);return(0,Ze.jsxs)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true",children:[(0,Ze.jsx)("h3",{children:(0,Go.sprintf)((0,Go.__)("One response to %s"),o)}),(0,Ze.jsxs)("div",{className:"navigation",children:[(0,Ze.jsx)("div",{className:"alignleft",children:(0,Ze.jsxs)("a",{href:"#top",children:["\xAB ",(0,Go.__)("Older Comments")]})}),(0,Ze.jsx)("div",{className:"alignright",children:(0,Ze.jsxs)("a",{href:"#top",children:[(0,Go.__)("Newer Comments")," \xBB"]})})]}),(0,Ze.jsx)("ol",{className:"commentlist",children:(0,Ze.jsx)("li",{className:"comment even thread-even depth-1",children:(0,Ze.jsxs)("article",{className:"comment-body",children:[(0,Ze.jsxs)("footer",{className:"comment-meta",children:[(0,Ze.jsxs)("div",{className:"comment-author vcard",children:[(0,Ze.jsx)("img",{alt:(0,Go.__)("Commenter Avatar"),src:a,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,Ze.jsx)("b",{className:"fn",children:(0,Ze.jsx)("a",{href:"#top",className:"url",children:(0,Go.__)("A WordPress Commenter")})})," ",(0,Ze.jsxs)("span",{className:"says",children:[(0,Go.__)("says"),":"]})]}),(0,Ze.jsxs)("div",{className:"comment-metadata",children:[(0,Ze.jsx)("a",{href:"#top",children:(0,Ze.jsx)("time",{dateTime:"2000-01-01T00:00:00+00:00",children:(0,Go.__)("January 1, 2000 at 00:00 am")})})," ",(0,Ze.jsx)("span",{className:"edit-link",children:(0,Ze.jsx)("a",{className:"comment-edit-link",href:"#top",children:(0,Go.__)("Edit")})})]})]}),(0,Ze.jsx)("div",{className:"comment-content",children:(0,Ze.jsxs)("p",{children:[(0,Go.__)("Hi, this is a comment."),(0,Ze.jsx)("br",{}),(0,Go.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,Ze.jsx)("br",{}),(0,XR.createInterpolateElement)((0,Go.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,Ze.jsx)("a",{href:"https://gravatar.com/"})})]})}),(0,Ze.jsx)("div",{className:"reply",children:(0,Ze.jsx)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,Go.__)("Reply to A WordPress Commenter"),children:(0,Go.__)("Reply")})})]})})}),(0,Ze.jsxs)("div",{className:"navigation",children:[(0,Ze.jsx)("div",{className:"alignleft",children:(0,Ze.jsxs)("a",{href:"#top",children:["\xAB ",(0,Go.__)("Older Comments")]})}),(0,Ze.jsx)("div",{className:"alignright",children:(0,Ze.jsxs)("a",{href:"#top",children:[(0,Go.__)("Newer Comments")," \xBB"]})})]}),(0,Ze.jsx)(b_,{postId:t,postType:e})]})}var Gi=r(h());function tH({attributes:e,setAttributes:t,context:{postType:o,postId:a}}){let{textAlign:n}=e,i=[(0,Gi.jsx)(eH.Button,{__next40pxDefaultSize:!0,onClick:()=>void t({legacy:!1}),variant:"primary",children:(0,RS.__)("Switch to editable mode")},"convert")],l=(0,$c.useBlockProps)({className:k({[`has-text-align-${n}`]:n})});return(0,Gi.jsxs)(Gi.Fragment,{children:[(0,Gi.jsx)($c.BlockControls,{group:"block",children:(0,Gi.jsx)($c.AlignmentControl,{value:n,onChange:s=>{t({textAlign:s})}})}),(0,Gi.jsxs)("div",{...l,children:[(0,Gi.jsx)($c.Warning,{actions:i,children:(0,RS.__)("Comments block: You\u2019re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")}),(0,Gi.jsx)(JR,{postId:a,postType:o})]})]})}var Ale=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]],oH=Ale;var Wc=r(h());function rH(e){let{attributes:t,setAttributes:o,clientId:a}=e,{tagName:n,legacy:i}=t,l=(0,y_.useBlockProps)(),s=(0,y_.useInnerBlocksProps)(l,{template:oH});return i?(0,Wc.jsx)(tH,{...e}):(0,Wc.jsxs)(Wc.Fragment,{children:[(0,Wc.jsx)($R,{attributes:t,setAttributes:o,clientId:a}),(0,Wc.jsx)(n,{...s})]})}var __=r(S()),aH=r(h());function nH({attributes:{tagName:e,legacy:t}}){let o=__.useBlockProps.save(),a=__.useInnerBlocksProps.save(o);return t?null:(0,aH.jsx)(e,{...a})}var{name:iH}=f_,lH={icon:N7,example:{},edit:rH,save:nH,deprecated:UR},Vle=()=>D({name:iH,metadata:f_,settings:lH});var AS={};$(AS,{init:()=>jle,metadata:()=>x_,name:()=>uH,settings:()=>mH});var x_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/comment-author-avatar",title:"Comment Author Avatar (deprecated)",category:"theme",ancestor:["core/comment-template"],description:"This block is deprecated. Please use the Avatar block instead.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,inserter:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0},interactivity:{clientNavigation:!0}}};var qc=r(S()),Bd=r(L()),zS=r(Y()),sH=r(z()),Am=r(B()),$i=r(h());function cH({attributes:e,context:{commentId:t},setAttributes:o,isSelected:a}){let{height:n,width:i}=e,[l]=(0,zS.useEntityProp)("root","comment","author_avatar_urls",t),[s]=(0,zS.useEntityProp)("root","comment","author_name",t),c=l?Object.values(l):null,u=l?Object.keys(l):null,m=u?u[0]:24,p=u?u[u.length-1]:96,d=(0,qc.useBlockProps)(),f=(0,qc.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(p*2.5),{avatarURL:v}=(0,sH.useSelect)(_=>{let{getSettings:x}=_(qc.store),{__experimentalDiscussionSettings:w}=x();return w}),b=(0,$i.jsx)(qc.InspectorControls,{children:(0,$i.jsx)(Bd.PanelBody,{title:(0,Am.__)("Settings"),children:(0,$i.jsx)(Bd.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Am.__)("Image size"),onChange:_=>o({width:_,height:_}),min:m,max:g,initialPosition:i,value:i})})}),y=(0,$i.jsx)(Bd.ResizableBox,{size:{width:i,height:n},showHandle:a,onResizeStop:(_,x,w,C)=>{o({height:parseInt(n+C.height,10),width:parseInt(i+C.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Am.isRTL)(),bottom:!0,left:(0,Am.isRTL)()},minWidth:m,maxWidth:g,children:(0,$i.jsx)("img",{src:c?c[c.length-1]:v,alt:`${s} ${(0,Am.__)("Avatar")}`,...d})});return(0,$i.jsxs)($i.Fragment,{children:[b,(0,$i.jsx)("div",{...f,children:y})]})}var{name:uH}=x_,mH={icon:dh,edit:cH},jle=()=>D({name:uH,metadata:x_,settings:mH});var VS={};$(VS,{init:()=>Gle,metadata:()=>k_,name:()=>hH,settings:()=>vH});var k_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-author-name"};var $s=r(B()),pH=r(z()),Kc=r(S()),dH=r(Y()),Zc=r(L());var ba=r(h());function fH({attributes:{isLink:e,linkTarget:t,textAlign:o},context:{commentId:a},setAttributes:n}){let i=G(),l=(0,Kc.useBlockProps)({className:k({[`has-text-align-${o}`]:o})}),s=(0,pH.useSelect)(p=>{let{getEntityRecord:d}=p(dH.store),f=d("root","comment",a),g=f?.author_name;return f&&!g?d("root","user",f.author)?.name??(0,$s.__)("Anonymous"):g??""},[a]),c=(0,ba.jsx)(Kc.BlockControls,{group:"block",children:(0,ba.jsx)(Kc.AlignmentControl,{value:o,onChange:p=>n({textAlign:p})})}),u=(0,ba.jsx)(Kc.InspectorControls,{children:(0,ba.jsxs)(Zc.__experimentalToolsPanel,{label:(0,$s.__)("Settings"),resetAll:()=>{n({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:i,children:[(0,ba.jsx)(Zc.__experimentalToolsPanelItem,{label:(0,$s.__)("Link to authors URL"),isShownByDefault:!0,hasValue:()=>!e,onDeselect:()=>n({isLink:!0}),children:(0,ba.jsx)(Zc.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,$s.__)("Link to authors URL"),onChange:()=>n({isLink:!e}),checked:e})}),e&&(0,ba.jsx)(Zc.__experimentalToolsPanelItem,{label:(0,$s.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>n({linkTarget:"_self"}),children:(0,ba.jsx)(Zc.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,$s.__)("Open in new tab"),onChange:p=>n({linkTarget:p?"_blank":"_self"}),checked:t==="_blank"})})]})});return(!a||!s)&&(s=(0,$s._x)("Comment Author","block title")),(0,ba.jsxs)(ba.Fragment,{children:[u,c,(0,ba.jsx)("div",{...l,children:e?(0,ba.jsx)("a",{href:"#comment-author-pseudo-link",onClick:p=>p.preventDefault(),children:s}):s})]})}var Ule={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},gH=[Ule];var{name:hH}=k_,vH={icon:Z6,edit:fH,deprecated:gH,example:{}},Gle=()=>D({name:hH,metadata:k_,settings:vH});var FS={};$(FS,{init:()=>Wle,metadata:()=>w_,name:()=>wH,settings:()=>CH});var w_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1},style:"wp-block-comment-content"};var bH=r(B()),yH=r(F()),_H=r(L()),xH=r(Y()),Pd=r(S()),Qa=r(h());function kH({setAttributes:e,attributes:{textAlign:t},context:{commentId:o}}){let a=(0,Pd.useBlockProps)({className:k({[`has-text-align-${t}`]:t})}),[n]=(0,xH.useEntityProp)("root","comment","content",o),i=(0,Qa.jsx)(Pd.BlockControls,{group:"block",children:(0,Qa.jsx)(Pd.AlignmentControl,{value:t,onChange:l=>e({textAlign:l})})});return!o||!n?(0,Qa.jsxs)(Qa.Fragment,{children:[i,(0,Qa.jsx)("div",{...a,children:(0,Qa.jsx)("p",{children:(0,bH._x)("Comment Content","block title")})})]}):(0,Qa.jsxs)(Qa.Fragment,{children:[i,(0,Qa.jsx)("div",{...a,children:(0,Qa.jsx)(_H.Disabled,{children:(0,Qa.jsx)(yH.RawHTML,{children:n.rendered},"html")})})]})}var{name:wH}=w_,CH={icon:Q6,edit:kH,example:{}},Wle=()=>D({name:wH,metadata:w_,settings:CH});var OS={};$(OS,{init:()=>Kle,metadata:()=>C_,name:()=>PH,settings:()=>NH});var C_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0}},usesContext:["commentId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-date"};var jS=r(Y()),Fm=r(S_()),Nd=r(S()),jm=r(L()),Vm=r(B());var ya=r(h());function TH({attributes:{format:e,isLink:t},context:{commentId:o},setAttributes:a}){let n=(0,Nd.useBlockProps)(),i=G(),[l]=(0,jS.useEntityProp)("root","comment","date",o),[s=(0,Fm.getSettings)().formats.date]=(0,jS.useEntityProp)("root","site","date_format"),c=(0,ya.jsx)(Nd.InspectorControls,{children:(0,ya.jsxs)(jm.__experimentalToolsPanel,{label:(0,Vm.__)("Settings"),resetAll:()=>{a({format:void 0,isLink:!0})},dropdownMenuProps:i,children:[(0,ya.jsx)(jm.__experimentalToolsPanelItem,{label:(0,Vm.__)("Date format"),hasValue:()=>e!==void 0,onDeselect:()=>a({format:void 0}),isShownByDefault:!0,children:(0,ya.jsx)(Nd.__experimentalDateFormatPicker,{format:e,defaultFormat:s,onChange:m=>a({format:m})})}),(0,ya.jsx)(jm.__experimentalToolsPanelItem,{label:(0,Vm.__)("Link to comment"),hasValue:()=>!t,onDeselect:()=>a({isLink:!0}),isShownByDefault:!0,children:(0,ya.jsx)(jm.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Vm.__)("Link to comment"),onChange:()=>a({isLink:!t}),checked:t})})]})});(!o||!l)&&(l=(0,Vm._x)("Comment Date","block title"));let u=l instanceof Date?(0,ya.jsx)("time",{dateTime:(0,Fm.dateI18n)("c",l),children:e==="human-diff"?(0,Fm.humanTimeDiff)(l):(0,Fm.dateI18n)(e||s,l)}):(0,ya.jsx)("time",{children:l});return t&&(u=(0,ya.jsx)("a",{href:"#comment-date-pseudo-link",onClick:m=>m.preventDefault(),children:u})),(0,ya.jsxs)(ya.Fragment,{children:[c,(0,ya.jsx)("div",{...n,children:u})]})}var Zle={attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},BH=[Zle];var{name:PH}=C_,NH={icon:Ah,edit:TH,deprecated:BH,example:{}},Kle=()=>D({name:PH,metadata:C_,settings:NH});var US={};$(US,{init:()=>Yle,metadata:()=>T_,name:()=>DH,settings:()=>EH});var T_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-comment-edit-link"};var Qc=r(S()),Id=r(L()),w0=r(B());var Mn=r(h());function IH({attributes:{linkTarget:e,textAlign:t},setAttributes:o}){let a=(0,Qc.useBlockProps)({className:k({[`has-text-align-${t}`]:t})}),n=G(),i=(0,Mn.jsx)(Qc.BlockControls,{group:"block",children:(0,Mn.jsx)(Qc.AlignmentControl,{value:t,onChange:s=>o({textAlign:s})})}),l=(0,Mn.jsx)(Qc.InspectorControls,{children:(0,Mn.jsx)(Id.__experimentalToolsPanel,{label:(0,w0.__)("Settings"),resetAll:()=>{o({linkTarget:"_self"})},dropdownMenuProps:n,children:(0,Mn.jsx)(Id.__experimentalToolsPanelItem,{label:(0,w0.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>e==="_blank",onDeselect:()=>o({linkTarget:"_self"}),children:(0,Mn.jsx)(Id.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,w0.__)("Open in new tab"),onChange:s=>o({linkTarget:s?"_blank":"_self"}),checked:e==="_blank"})})})});return(0,Mn.jsxs)(Mn.Fragment,{children:[i,l,(0,Mn.jsx)("div",{...a,children:(0,Mn.jsx)("a",{href:"#edit-comment-pseudo-link",onClick:s=>s.preventDefault(),children:(0,w0.__)("Edit")})})]})}var{name:DH}=T_,EH={icon:X6,edit:IH,example:{}},Yle=()=>D({name:DH,metadata:T_,settings:EH});var GS={};$(GS,{init:()=>ese,metadata:()=>B_,name:()=>RH,settings:()=>HH});var B_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},html:!1},style:"wp-block-comment-reply-link"};var MH=r(B()),Dd=r(S()),Ws=r(h());function Jle({setAttributes:e,attributes:{textAlign:t}}){let o=(0,Dd.useBlockProps)({className:k({[`has-text-align-${t}`]:t})});return(0,Ws.jsxs)(Ws.Fragment,{children:[(0,Ws.jsx)(Dd.BlockControls,{group:"block",children:(0,Ws.jsx)(Dd.AlignmentControl,{value:t,onChange:n=>e({textAlign:n})})}),(0,Ws.jsx)("div",{...o,children:(0,Ws.jsx)("a",{href:"#comment-reply-pseudo-link",onClick:n=>n.preventDefault(),children:(0,MH.__)("Reply")})})]})}var LH=Jle;var{name:RH}=B_,HH={edit:LH,icon:e8,example:{}},ese=()=>D({name:RH,metadata:B_,settings:HH});var WS={};$(WS,{init:()=>sse,metadata:()=>P_,name:()=>JH,settings:()=>ez});var P_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{align:!0,html:!1,reusable:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-comment-template"};var N_=r(F()),$S=r(z()),$H=r(B()),Wi=r(S()),WH=r(L()),qH=r(Y());var Om=r(F()),VH=r(z()),FH=r(S()),jH=r(ko()),OH=r(C0()),AH=100,UH=({postId:e})=>{let t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:o,commentsPerPage:a,defaultCommentsPage:n}=(0,VH.useSelect)(s=>{let{getSettings:c}=s(FH.store),{__experimentalDiscussionSettings:u}=c();return u}),i=o?Math.min(a,AH):AH,l=ose({defaultPage:n,postId:e,perPage:i,queryArgs:t});return(0,Om.useMemo)(()=>l?{...t,post:e,per_page:i,page:l}:null,[e,i,l])},ose=({defaultPage:e,postId:t,perPage:o,queryArgs:a})=>{let[n,i]=(0,Om.useState)({}),l=`${t}_${o}`,s=n[l]||0;return(0,Om.useEffect)(()=>{s||e!=="newest"||(0,OH.default)({path:(0,jH.addQueryArgs)("/wp/v2/comments",{...a,post:t,per_page:o,_fields:"id"}),method:"HEAD",parse:!1}).then(c=>{let u=parseInt(c.headers.get("X-WP-TotalPages"));i({...n,[l]:u<=1?1:u})}).catch(()=>{i({...n,[l]:1})})},[e,t,o,i]),e==="newest"?s:1},GH=e=>(0,Om.useMemo)(()=>e?.map(({id:o,_embedded:a})=>{let[n]=a?.children||[[]];return{commentId:o,children:n.map(i=>({commentId:i.id}))}}),[e]);var Ln=r(h()),rse=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]],ase=({perPage:e,pageComments:t,threadComments:o,threadCommentsDepth:a})=>{let n=o?Math.min(a,3):1,i=s=>{if(s<n){let c=s+1;return[{commentId:-(s+3),children:i(c)}]}return[]},l=[{commentId:-1,children:i(1)}];return(!t||e>=2)&&n<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&n<2&&l.push({commentId:-3,children:[]}),l};function nse({comment:e,activeCommentId:t,setActiveCommentId:o,firstCommentId:a,blocks:n}){let{children:i,...l}=(0,Wi.useInnerBlocksProps)({},{template:rse});return(0,Ln.jsxs)("li",{...l,children:[e.commentId===(t||a)?i:null,(0,Ln.jsx)(lse,{blocks:n,commentId:e.commentId,setActiveCommentId:o,isHidden:e.commentId===(t||a)}),e?.children?.length>0?(0,Ln.jsx)(ZH,{comments:e.children,activeCommentId:t,setActiveCommentId:o,blocks:n,firstCommentId:a}):null]})}var ise=({blocks:e,commentId:t,setActiveCommentId:o,isHidden:a})=>{let n=(0,Wi.__experimentalUseBlockPreview)({blocks:e}),i=()=>{o(t)};return(0,Ln.jsx)("div",{...n,tabIndex:0,role:"button",style:{display:a?"none":void 0},onClick:i,onKeyPress:i})},lse=(0,N_.memo)(ise),ZH=({comments:e,blockProps:t,activeCommentId:o,setActiveCommentId:a,blocks:n,firstCommentId:i})=>(0,Ln.jsx)("ol",{...t,children:e&&e.map(({commentId:l,...s},c)=>(0,Ln.jsx)(Wi.BlockContextProvider,{value:{commentId:l<0?null:l},children:(0,Ln.jsx)(nse,{comment:{commentId:l,...s},activeCommentId:o,setActiveCommentId:a,blocks:n,firstCommentId:i})},s.commentId||c))});function KH({clientId:e,context:{postId:t}}){let o=(0,Wi.useBlockProps)(),[a,n]=(0,N_.useState)(),{commentOrder:i,threadCommentsDepth:l,threadComments:s,commentsPerPage:c,pageComments:u}=(0,$S.useSelect)(g=>{let{getSettings:v}=g(Wi.store);return v().__experimentalDiscussionSettings}),m=UH({postId:t}),{topLevelComments:p,blocks:d}=(0,$S.useSelect)(g=>{let{getEntityRecords:v}=g(qH.store),{getBlocks:b}=g(Wi.store);return{topLevelComments:m?v("root","comment",m):null,blocks:b(e)}},[e,m]),f=GH(i==="desc"&&p?[...p].reverse():p);return p?(t||(f=ase({perPage:c,pageComments:u,threadComments:s,threadCommentsDepth:l})),f.length?(0,Ln.jsx)(ZH,{comments:f,blockProps:o,blocks:d,activeCommentId:a,setActiveCommentId:n,firstCommentId:f[0]?.commentId}):(0,Ln.jsx)("p",{...o,children:(0,$H.__)("No results found.")})):(0,Ln.jsx)("p",{...o,children:(0,Ln.jsx)(WH.Spinner,{})})}var QH=r(S()),YH=r(h());function XH(){return(0,YH.jsx)(QH.InnerBlocks.Content,{})}var{name:JH}=P_,ez={icon:vm,edit:KH,save:XH},sse=()=>D({name:JH,metadata:P_,settings:ez});var ZS={};$(ZS,{init:()=>mse,metadata:()=>I_,name:()=>rz,settings:()=>az});var oz=r(B());var I_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-previous",title:"Comments Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var qS=r(B()),D_=r(S()),S0=r(h()),use={none:"",arrow:"\u2190",chevron:"\xAB"};function tz({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){let a=use[o];return(0,S0.jsxs)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:n=>n.preventDefault(),...(0,D_.useBlockProps)(),children:[a&&(0,S0.jsx)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${o}`,children:a}),(0,S0.jsx)(D_.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,qS.__)("Older comments page link"),placeholder:(0,qS.__)("Older Comments"),value:e,onChange:n=>t({label:n})})]})}var{name:rz}=I_,az={icon:Oh,edit:tz,example:{attributes:{label:(0,oz.__)("Older Comments")}}},mse=()=>D({name:rz,metadata:I_,settings:az});var QS={};$(QS,{init:()=>fse,metadata:()=>E_,name:()=>uz,settings:()=>mz});var E_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments"],allowedBlocks:["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},example:{attributes:{paginationArrow:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"};var M_=r(B()),Zi=r(S()),KS=r(z()),L_=r(L());var Um=r(B()),Ed=r(L()),Md=r(h());function nz({value:e,onChange:t}){return(0,Md.jsxs)(Ed.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Um.__)("Arrow"),value:e,onChange:t,help:(0,Um.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0,children:[(0,Md.jsx)(Ed.__experimentalToggleGroupControlOption,{value:"none",label:(0,Um._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Md.jsx)(Ed.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Um._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,Md.jsx)(Ed.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Um._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")})]})}var qi=r(h()),dse=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]];function iz({attributes:{paginationArrow:e},setAttributes:t,clientId:o}){let a=(0,KS.useSelect)(c=>{let{getBlocks:u}=c(Zi.store);return u(o)?.find(p=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(p.name))},[]),n=(0,Zi.useBlockProps)(),i=G(),l=(0,Zi.useInnerBlocksProps)(n,{template:dse});return(0,KS.useSelect)(c=>{let{getSettings:u}=c(Zi.store),{__experimentalDiscussionSettings:m}=u();return m?.pageComments},[])?(0,qi.jsxs)(qi.Fragment,{children:[a&&(0,qi.jsx)(Zi.InspectorControls,{children:(0,qi.jsx)(L_.__experimentalToolsPanel,{label:(0,M_.__)("Settings"),dropdownMenuProps:i,resetAll:()=>t({paginationArrow:"none"}),children:(0,qi.jsx)(L_.__experimentalToolsPanelItem,{label:(0,M_.__)("Arrow"),hasValue:()=>e!=="none",onDeselect:()=>t({paginationArrow:"none"}),isShownByDefault:!0,children:(0,qi.jsx)(nz,{value:e,onChange:c=>{t({paginationArrow:c})}})})})}),(0,qi.jsx)("div",{...l})]}):(0,qi.jsx)(Zi.Warning,{children:(0,M_.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings")})}var lz=r(S()),sz=r(h());function cz(){return(0,sz.jsx)(lz.InnerBlocks.Content,{})}var{name:uz}=E_,mz={icon:Uh,edit:iz,save:cz},fse=()=>D({name:uz,metadata:E_,settings:mz});var XS={};$(XS,{init:()=>vse,metadata:()=>R_,name:()=>fz,settings:()=>gz});var dz=r(B());var R_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-next",title:"Comments Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var YS=r(B()),H_=r(S()),T0=r(h()),hse={none:"",arrow:"\u2192",chevron:"\xBB"};function pz({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":o}}){let a=hse[o];return(0,T0.jsxs)("a",{href:"#comments-pagination-next-pseudo-link",onClick:n=>n.preventDefault(),...(0,H_.useBlockProps)(),children:[(0,T0.jsx)(H_.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,YS.__)("Newer comments page link"),placeholder:(0,YS.__)("Newer Comments"),value:e,onChange:n=>t({label:n})}),a&&(0,T0.jsx)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${o}`,children:a})]})}var{name:fz}=R_,gz={icon:Fh,edit:pz,example:{attributes:{label:(0,dz.__)("Newer Comments")}}},vse=()=>D({name:fz,metadata:R_,settings:gz});var JS={};$(JS,{init:()=>yse,metadata:()=>z_,name:()=>bz,settings:()=>yz});var z_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-numbers",title:"Comments Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{padding:!0}}}};var hz=r(S()),gi=r(h()),Gm=({content:e,tag:t="a",extraClass:o=""})=>t==="a"?(0,gi.jsx)(t,{className:`page-numbers ${o}`,href:"#comments-pagination-numbers-pseudo-link",onClick:a=>a.preventDefault(),children:e}):(0,gi.jsx)(t,{className:`page-numbers ${o}`,children:e});function vz(){return(0,gi.jsxs)("div",{...(0,hz.useBlockProps)(),children:[(0,gi.jsx)(Gm,{content:"1"}),(0,gi.jsx)(Gm,{content:"2"}),(0,gi.jsx)(Gm,{content:"3",tag:"span",extraClass:"current"}),(0,gi.jsx)(Gm,{content:"4"}),(0,gi.jsx)(Gm,{content:"5"}),(0,gi.jsx)(Gm,{content:"...",tag:"span",extraClass:"dots"}),(0,gi.jsx)(Gm,{content:"8"})]})}var{name:bz}=z_,yz={icon:jh,edit:vz,example:{}},yse=()=>D({name:bz,metadata:z_,settings:yz});var eT={};$(eT,{init:()=>wse,metadata:()=>Ld,name:()=>Tz,settings:()=>Bz});var Ld={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2},levelOptions:{type:"array"}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}},interactivity:{clientNavigation:!0}}};var hi=r(S()),mo=r(B()),_z=r(Y()),Yc=r(L()),A_=r(F()),xz=r(z()),kz=r(C0()),wz=r(ko());var _a=r(h());function Cz({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:o,level:a,levelOptions:n},setAttributes:i,context:{postType:l,postId:s}}){let c="h"+a,[u,m]=(0,A_.useState)(),[p]=(0,_z.useEntityProp)("postType",l,"title",s),d=typeof s>"u",f=(0,hi.useBlockProps)({className:k({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:g,threadComments:v,commentsPerPage:b,pageComments:y}=(0,xz.useSelect)(N=>{let{getSettings:P}=N(hi.store);return P().__experimentalDiscussionSettings}),_=G();(0,A_.useEffect)(()=>{if(d){let P=v?Math.min(g,3)-1:0,M=y?b:3,R=parseInt(P)+parseInt(M);m(Math.min(R,3));return}let N=s;(0,kz.default)({path:(0,wz.addQueryArgs)("/wp/v2/comments",{post:s,_fields:"id"}),method:"HEAD",parse:!1}).then(P=>{N===s&&m(parseInt(P.headers.get("X-WP-Total")))}).catch(()=>{m(0)})},[s]);let x=(0,_a.jsxs)(hi.BlockControls,{group:"block",children:[(0,_a.jsx)(hi.AlignmentControl,{value:e,onChange:N=>i({textAlign:N})}),(0,_a.jsx)(hi.HeadingLevelDropdown,{value:a,options:n,onChange:N=>i({level:N})})]}),w=(0,_a.jsx)(hi.InspectorControls,{children:(0,_a.jsxs)(Yc.__experimentalToolsPanel,{label:(0,mo.__)("Settings"),resetAll:()=>{i({showPostTitle:!0,showCommentsCount:!0})},dropdownMenuProps:_,children:[(0,_a.jsx)(Yc.__experimentalToolsPanelItem,{label:(0,mo.__)("Show post title"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>i({showPostTitle:!0}),children:(0,_a.jsx)(Yc.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,mo.__)("Show post title"),checked:t,onChange:N=>i({showPostTitle:N})})}),(0,_a.jsx)(Yc.__experimentalToolsPanelItem,{label:(0,mo.__)("Show comments count"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>i({showCommentsCount:!0}),children:(0,_a.jsx)(Yc.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,mo.__)("Show comments count"),checked:o,onChange:N=>i({showCommentsCount:N})})})]})}),C=d?(0,mo.__)("\u201CPost Title\u201D"):`"${p}"`,T;return o&&u!==void 0?t?u===1?T=(0,mo.sprintf)((0,mo.__)("One response to %s"),C):T=(0,mo.sprintf)((0,mo._n)("%1$s response to %2$s","%1$s responses to %2$s",u),u,C):u===1?T=(0,mo.__)("One response"):T=(0,mo.sprintf)((0,mo._n)("%s response","%s responses",u),u):t?u===1?T=(0,mo.sprintf)((0,mo.__)("Response to %s"),C):T=(0,mo.sprintf)((0,mo.__)("Responses to %s"),C):u===1?T=(0,mo.__)("Response"):T=(0,mo.__)("Responses"),(0,_a.jsxs)(_a.Fragment,{children:[x,w,(0,_a.jsx)(c,{...f,children:T})]})}var{attributes:xse,supports:kse}=Ld,Sz=[{attributes:{...xse,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:kse,migrate:e=>{let{singleCommentLabel:t,multipleCommentsLabel:o,...a}=e;return a},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}];var{name:Tz}=Ld,Bz={icon:Oi,edit:Cz,deprecated:Sz,example:{}},wse=()=>D({name:Tz,metadata:Ld,settings:Bz});var bT={};$(bT,{init:()=>Rce,metadata:()=>ex,name:()=>BA,settings:()=>ox});var vT=r(B());var TA=r(U());var j_=r(U()),ye=r(S()),O_=r(B()),B0=r(xe());var V_=r(Po()),Cse={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},Vt="image",lo="video",$m="embed-video",Pz=50;var Sse={x:.5,y:.5},F_=["image","video"];function Cr({x:e,y:t}=Sse){return`${Math.round(e*100)}% ${Math.round(t*100)}%`}function vi(e){return e===50||e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}function Nz(e){if(!e||!e.url&&!e.src)return{url:void 0,id:void 0};(0,V_.isBlobURL)(e.url)&&(e.type=(0,V_.getBlobTypeByURL)(e.url));let t;if(e.media_type)e.media_type===Vt?t=Vt:t=lo;else if(e.type&&(e.type===Vt||e.type===lo))t=e.type;else return;return{url:e.url||e.src,id:e.id,alt:e?.alt,backgroundType:t,...t===lo?{hasParallax:void 0}:{}}}function xa(e){return!e||e==="center center"||e==="center"}function Ya(e){return xa(e)?"":Cse[e]}var le=r(h());function Ol(e){return e?{backgroundImage:`url(${e})`}:{}}function Wm(e){return e===0||e===50||!e?null:"has-background-dim-"+10*Math.round(e/10)}function U_(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Xc(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}var qm={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},P0={url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},tT={...P0,useFeaturedImage:{type:"boolean",default:!1},tagName:{type:"string",default:"div"}},Tse={...tT,isUserOverlayColor:{type:"boolean"},sizeSlug:{type:"string"},alt:{type:"string",default:""}},Rd={anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},oT={...Rd,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},Bse={...oT,shadow:!0,dimensions:{aspectRatio:!0},interactivity:{clientNavigation:!0}},Pse={attributes:Tse,supports:Bse,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:v,minHeight:b,minHeightUnit:y,tagName:_,sizeSlug:x}=e,w=(0,ye.getColorClassName)("background-color",d),C=(0,ye.__experimentalGetGradientClass)(o),T=b&&y?`${b}${y}`:b,N=Vt===t,P=lo===t,M=!(u||p),R={minHeight:T||void 0},H={backgroundColor:w?void 0:i,background:n||void 0},O=s&&M?Cr(s):void 0,A=f?`url(${f})`:void 0,I=Cr(s),V=k({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!xa(a)},Ya(a)),W=k("wp-block-cover__image-background",v?`wp-image-${v}`:null,{[`size-${x}`]:x,"has-parallax":u,"is-repeated":p}),j=o||n;return(0,le.jsxs)(_,{...ye.useBlockProps.save({className:V,style:R}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__background",w,vi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&j&&l!==0,"has-background-gradient":j,[C]:C}),style:H}),!c&&N&&f&&(M?(0,le.jsx)("img",{className:W,alt:g,src:f,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}):(0,le.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:W,style:{backgroundPosition:I,backgroundImage:A}})),P&&f&&(0,le.jsx)("video",{className:k("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:O},"data-object-fit":"cover","data-object-position":O}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},Nse={attributes:tT,supports:oT,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:v,minHeight:b,minHeightUnit:y,tagName:_}=e,x=(0,ye.getColorClassName)("background-color",d),w=(0,ye.__experimentalGetGradientClass)(o),C=b&&y?`${b}${y}`:b,T=Vt===t,N=lo===t,P=!(u||p),M={minHeight:C||void 0},R={backgroundColor:x?void 0:i,background:n||void 0},H=s&&P?Cr(s):void 0,O=f?`url(${f})`:void 0,A=Cr(s),I=k({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!xa(a)},Ya(a)),V=k("wp-block-cover__image-background",v?`wp-image-${v}`:null,{"has-parallax":u,"is-repeated":p}),W=o||n;return(0,le.jsxs)(_,{...ye.useBlockProps.save({className:I,style:M}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__background",x,vi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&W&&l!==0,"has-background-gradient":W,[w]:w}),style:R}),!c&&T&&f&&(P?(0,le.jsx)("img",{className:V,alt:g,src:f,style:{objectPosition:H},"data-object-fit":"cover","data-object-position":H}):(0,le.jsx)("div",{role:"img",className:V,style:{backgroundPosition:A,backgroundImage:O}})),N&&f&&(0,le.jsx)("video",{className:k("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:H},"data-object-fit":"cover","data-object-position":H}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},Ise={attributes:tT,supports:oT,isEligible(e){return(e.customOverlayColor!==void 0||e.overlayColor!==void 0)&&e.isUserOverlayColor===void 0},migrate(e){return{...e,isUserOverlayColor:!0}},save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:v,minHeight:b,minHeightUnit:y,tagName:_}=e,x=(0,ye.getColorClassName)("background-color",d),w=(0,ye.__experimentalGetGradientClass)(o),C=b&&y?`${b}${y}`:b,T=Vt===t,N=lo===t,P=!(u||p),M={minHeight:C||void 0},R={backgroundColor:x?void 0:i,background:n||void 0},H=s&&P?Cr(s):void 0,O=f?`url(${f})`:void 0,A=Cr(s),I=k({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!xa(a)},Ya(a)),V=k("wp-block-cover__image-background",v?`wp-image-${v}`:null,{"has-parallax":u,"is-repeated":p}),W=o||n;return(0,le.jsxs)(_,{...ye.useBlockProps.save({className:I,style:M}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__background",x,vi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&W&&l!==0,"has-background-gradient":W,[w]:w}),style:R}),!c&&T&&f&&(P?(0,le.jsx)("img",{className:V,alt:g,src:f,style:{objectPosition:H},"data-object-fit":"cover","data-object-position":H}):(0,le.jsx)("div",{role:"img",className:V,style:{backgroundPosition:A,backgroundImage:O}})),N&&f&&(0,le.jsx)("video",{className:k("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:H},"data-object-fit":"cover","data-object-position":H}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}},Dse={attributes:P0,supports:Rd,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:v,minHeight:b,minHeightUnit:y}=e,_=(0,ye.getColorClassName)("background-color",d),x=(0,ye.__experimentalGetGradientClass)(o),w=b&&y?`${b}${y}`:b,C=Vt===t,T=lo===t,N=!(u||p),P={minHeight:w||void 0},M={backgroundColor:_?void 0:i,background:n||void 0},R=s&&N?Cr(s):void 0,H=f?`url(${f})`:void 0,O=Cr(s),A=k({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!xa(a)},Ya(a)),I=k("wp-block-cover__image-background",v?`wp-image-${v}`:null,{"has-parallax":u,"is-repeated":p}),V=o||n;return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:A,style:P}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__background",_,vi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&V&&l!==0,"has-background-gradient":V,[x]:x}),style:M}),!c&&C&&f&&(N?(0,le.jsx)("img",{className:I,alt:g,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}):(0,le.jsx)("div",{role:"img",className:I,style:{backgroundPosition:O,backgroundImage:H}})),T&&f&&(0,le.jsx)("video",{className:k("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Xc},Ese={attributes:P0,supports:Rd,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:v,minHeight:b,minHeightUnit:y}=e,_=(0,ye.getColorClassName)("background-color",d),x=(0,ye.__experimentalGetGradientClass)(o),w=b&&y?`${b}${y}`:b,C=Vt===t,T=lo===t,N=!(u||p),P={...C&&!N&&!c?Ol(f):{},minHeight:w||void 0},M={backgroundColor:_?void 0:i,background:n||void 0},R=s&&N?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,H=k({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!xa(a)},Ya(a)),O=o||n;return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:H,style:P}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__background",_,vi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&O&&l!==0,"has-background-gradient":O,[x]:x}),style:M}),!c&&C&&N&&f&&(0,le.jsx)("img",{className:k("wp-block-cover__image-background",v?`wp-image-${v}`:null),alt:g,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}),T&&f&&(0,le.jsx)("video",{className:k("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,style:{objectPosition:R},"data-object-fit":"cover","data-object-position":R}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Xc},Mse={attributes:P0,supports:Rd,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:g,minHeight:v,minHeightUnit:b}=e,y=(0,ye.getColorClassName)("background-color",p),_=(0,ye.__experimentalGetGradientClass)(o),x=b?`${v}${b}`:v,w=Vt===t,C=lo===t,T=!(c||m),N={...w&&!T?Ol(d):{},minHeight:x||void 0},P={backgroundColor:y?void 0:i,background:n||void 0},M=s&&T?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,R=k({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!xa(a)},Ya(a)),H=o||n;return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:R,style:N}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__background",y,vi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":d&&H&&l!==0,"has-background-gradient":H,[_]:_}),style:P}),w&&T&&d&&(0,le.jsx)("img",{className:k("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:f,src:d,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),C&&d&&(0,le.jsx)("video",{className:k("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Xc},Lse={attributes:P0,supports:Rd,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:f,id:g,minHeight:v,minHeightUnit:b}=e,y=(0,ye.getColorClassName)("background-color",p),_=(0,ye.__experimentalGetGradientClass)(o),x=b?`${v}${b}`:v,w=Vt===t,C=lo===t,T=!(c||m),N={...w&&!T?Ol(d):{},minHeight:x||void 0},P={backgroundColor:y?void 0:i,background:n||void 0},M=s&&T?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,R=k({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!xa(a)},Ya(a));return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:R,style:N}),children:[(0,le.jsx)("span",{"aria-hidden":"true",className:k(y,vi(l),"wp-block-cover__gradient-background",_,{"has-background-dim":l!==void 0,"has-background-gradient":o||n,[_]:!d&&_}),style:P}),w&&T&&d&&(0,le.jsx)("img",{className:k("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:f,src:d,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),C&&d&&(0,le.jsx)("video",{className:k("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:M},"data-object-fit":"cover","data-object-position":M}),(0,le.jsx)("div",{...ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})},migrate:Xc},Rse={attributes:{...qm,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:Rd,save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:f,minHeight:g,minHeightUnit:v}=e,b=(0,ye.getColorClassName)("background-color",m),y=(0,ye.__experimentalGetGradientClass)(o),_=v?`${g}${v}`:g,x=Vt===t,w=lo===t,C=!(c||u),T={...x&&!C?Ol(p):{},backgroundColor:b?void 0:i,background:n&&!p?n:void 0,minHeight:_||void 0},N=s&&C?`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`:void 0,P=k(Wm(l),b,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":o||n,[y]:!p&&y,"has-custom-content-position":!xa(a)},Ya(a));return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:P,style:T}),children:[p&&(o||n)&&l!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__gradient-background",y),style:n?{background:n}:void 0}),x&&C&&p&&(0,le.jsx)("img",{className:k("wp-block-cover__image-background",f?`wp-image-${f}`:null),alt:d,src:p,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),w&&p&&(0,le.jsx)("video",{className:k("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:N},"data-object-fit":"cover","data-object-position":N}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(ye.InnerBlocks.Content,{})})]})},migrate:(0,B0.compose)(U_,Xc)},Hse={attributes:{...qm,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,hasParallax:c,isRepeated:u,overlayColor:m,url:p,minHeight:d,minHeightUnit:f}=e,g=(0,ye.getColorClassName)("background-color",m),v=(0,ye.__experimentalGetGradientClass)(o),b=f?`${d}${f}`:d,y=Vt===t,_=lo===t,x=y?Ol(p):{},w={};g||(x.backgroundColor=i),n&&!p&&(x.background=n),x.minHeight=b||void 0;let C;s&&(C=`${Math.round(s.x*100)}% ${Math.round(s.y*100)}%`,y&&!c&&(x.backgroundPosition=C),_&&(w.objectPosition=C));let T=k(Wm(l),g,{"has-background-dim":l!==0,"has-parallax":c,"is-repeated":u,"has-background-gradient":o||n,[v]:!p&&v,"has-custom-content-position":!xa(a)},Ya(a));return(0,le.jsxs)("div",{...ye.useBlockProps.save({className:T,style:x}),children:[p&&(o||n)&&l!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__gradient-background",v),style:n?{background:n}:void 0}),_&&p&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:w}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(ye.InnerBlocks.Content,{})})]})},migrate:(0,B0.compose)(U_,Xc)},zse={attributes:{...qm,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:o,customGradient:a,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,ye.getColorClassName)("background-color",c),d=(0,ye.__experimentalGetGradientClass)(o),f=t===Vt?Ol(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${Math.round(l.x*100)}% ${Math.round(l.y*100)}%`),a&&!u&&(f.background=a),f.minHeight=m||void 0;let g=k(Wm(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":a,[d]:!u&&d});return(0,le.jsxs)("div",{className:g,style:f,children:[u&&(o||a)&&i!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__gradient-background",d),style:a?{background:a}:void 0}),lo===t&&u&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(ye.InnerBlocks.Content,{})})]})},migrate:(0,B0.compose)(U_,Xc)},Ase={attributes:{...qm,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,gradient:o,customGradient:a,customOverlayColor:n,dimRatio:i,focalPoint:l,hasParallax:s,overlayColor:c,url:u,minHeight:m}=e,p=(0,ye.getColorClassName)("background-color",c),d=(0,ye.__experimentalGetGradientClass)(o),f=t===Vt?Ol(u):{};p||(f.backgroundColor=n),l&&!s&&(f.backgroundPosition=`${l.x*100}% ${l.y*100}%`),a&&!u&&(f.background=a),f.minHeight=m||void 0;let g=k(Wm(i),p,{"has-background-dim":i!==0,"has-parallax":s,"has-background-gradient":a,[d]:!u&&d});return(0,le.jsxs)("div",{className:g,style:f,children:[u&&(o||a)&&i!==0&&(0,le.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__gradient-background",d),style:a?{background:a}:void 0}),lo===t&&u&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),(0,le.jsx)("div",{className:"wp-block-cover__inner-container",children:(0,le.jsx)(ye.InnerBlocks.Content,{})})]})},migrate:(0,B0.compose)(U_,Xc)},Vse={attributes:{...qm,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){let{backgroundType:t,contentAlign:o,customOverlayColor:a,dimRatio:n,focalPoint:i,hasParallax:l,overlayColor:s,title:c,url:u}=e,m=(0,ye.getColorClassName)("background-color",s),p=t===Vt?Ol(u):{};m||(p.backgroundColor=a),i&&!l&&(p.backgroundPosition=`${i.x*100}% ${i.y*100}%`);let d=k(Wm(n),m,{"has-background-dim":n!==0,"has-parallax":l,[`has-${o}-content`]:o!=="center"});return(0,le.jsxs)("div",{className:d,style:p,children:[lo===t&&u&&(0,le.jsx)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:u}),!ye.RichText.isEmpty(c)&&(0,le.jsx)(ye.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:c})]})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:a,...n}=t;return[n,[(0,j_.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,O_.__)("Write title\u2026")})]]}},Fse={attributes:{...qm,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){let{url:t,title:o,hasParallax:a,dimRatio:n,align:i,contentAlign:l,overlayColor:s,customOverlayColor:c}=e,u=(0,ye.getColorClassName)("background-color",s),m=Ol(t);u||(m.backgroundColor=c);let p=k("wp-block-cover-image",Wm(n),u,{"has-background-dim":n!==0,"has-parallax":a,[`has-${l}-content`]:l!=="center"},i?`align${i}`:null);return(0,le.jsx)("div",{className:p,style:m,children:!ye.RichText.isEmpty(o)&&(0,le.jsx)(ye.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:o})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:a,align:n,...i}=t;return[i,[(0,j_.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,O_.__)("Write title\u2026")})]]}},jse={attributes:{...qm,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){let{url:t,title:o,hasParallax:a,dimRatio:n,align:i}=e,l=Ol(t),s=k("wp-block-cover-image",Wm(n),{"has-background-dim":n!==0,"has-parallax":a},i?`align${i}`:null);return(0,le.jsx)("section",{className:s,style:l,children:(0,le.jsx)(ye.RichText.Content,{tagName:"h2",value:o})})},migrate(e){let t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:o,contentAlign:a,align:n,...i}=t;return[i,[(0,j_.createBlock)("core/paragraph",{content:e.title,style:{typography:{textAlign:e.contentAlign}},fontSize:"large",placeholder:(0,O_.__)("Write title\u2026")})]]}},Iz=[Pse,Nse,Ise,Dse,Ese,Mse,Lse,Rse,Hse,zse,Ase,Vse,Fse,jse];var M0=r(Y()),ou=r(F()),L0=r(L()),J_=r(xe()),sr=r(S()),gT=r(B()),tu=r(z()),yA=r(Po()),_A=r(No());var Hz=r(F()),It=r(L()),zz=r(xe()),Sr=r(S()),$o=r(B()),rT=r(z()),Az=r(Y());var Hd="full";var zd=r(S()),Ez=r(No()),ka=r(L()),Mz=r(Po()),Rn=r(B()),G_=r(F()),Lz=r(xe()),$_=r(z()),Qr=r(h()),Dz=["image"];function Rz({poster:e,onChange:t}){let o=(0,G_.useRef)(),[a,n]=(0,G_.useState)(!1),i=(0,Lz.useInstanceId)(Rz,"block-library-poster-image-description"),{getSettings:l}=(0,$_.useSelect)(zd.store),{createErrorNotice:s}=(0,$_.useDispatch)(Ez.store),c=m=>{l().mediaUpload({allowedTypes:Dz,filesList:m,onFileChange:([p])=>{if((0,Mz.isBlobURL)(p?.url)){n(!0);return}p&&t(p),n(!1)},onError:p=>{s(p,{id:"poster-image-upload-notice",type:"snackbar"}),n(!1)},multiple:!1})},u=()=>!e&&a?(0,Qr.jsx)(ka.Spinner,{}):e?(0,Rn.__)("Replace"):(0,Rn.__)("Set poster image");return(0,Qr.jsx)(zd.MediaUploadCheck,{children:(0,Qr.jsxs)(ka.__experimentalToolsPanelItem,{label:(0,Rn.__)("Poster image"),isShownByDefault:!0,hasValue:()=>!!e,onDeselect:()=>t(void 0),children:[(0,Qr.jsx)(ka.BaseControl.VisualLabel,{children:(0,Rn.__)("Poster image")}),(0,Qr.jsx)(zd.MediaUpload,{title:(0,Rn.__)("Select poster image"),onSelect:t,allowedTypes:Dz,render:({open:m})=>(0,Qr.jsxs)("div",{className:"block-library-poster-image__container",children:[e&&(0,Qr.jsxs)(ka.Button,{__next40pxDefaultSize:!0,onClick:m,"aria-haspopup":"dialog","aria-label":(0,Rn.__)("Edit or replace the poster image."),className:"block-library-poster-image__preview",disabled:a,accessibleWhenDisabled:!0,children:[(0,Qr.jsx)("img",{src:e,alt:(0,Rn.__)("Poster image preview"),className:"block-library-poster-image__preview-image"}),a&&(0,Qr.jsx)(ka.Spinner,{})]}),(0,Qr.jsxs)(ka.__experimentalHStack,{className:k("block-library-poster-image__actions",{"block-library-poster-image__actions-select":!e}),children:[(0,Qr.jsx)(ka.Button,{__next40pxDefaultSize:!0,onClick:m,ref:o,className:"block-library-poster-image__action","aria-describedby":i,"aria-haspopup":"dialog",variant:e?void 0:"secondary",disabled:a,accessibleWhenDisabled:!0,children:u()}),(0,Qr.jsx)("p",{id:i,hidden:!0,children:e?(0,Rn.sprintf)((0,Rn.__)("The current poster image url is %s."),e):(0,Rn.__)("There is no poster image currently selected.")}),!!e&&(0,Qr.jsx)(ka.Button,{__next40pxDefaultSize:!0,onClick:()=>{t(void 0),o.current.focus()},className:"block-library-poster-image__action",disabled:a,accessibleWhenDisabled:!0,children:(0,Rn.__)("Remove")})]}),(0,Qr.jsx)(ka.DropZone,{onFilesDrop:c})]})})]})})}var W_=Rz;var rt=r(h()),{cleanEmptyObject:Ose,ResolutionTool:Use,HTMLElementControl:Gse}=Q(Sr.privateApis);function $se({onChange:e,onUnitChange:t,unit:o="px",value:a=""}){let i=`block-cover-height-input-${(0,zz.useInstanceId)(It.__experimentalUnitControl)}`,l=o==="px",[s]=(0,Sr.useSettings)("spacing.units"),c=(0,It.__experimentalUseCustomUnits)({availableUnits:s||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),u=d=>{let f=d!==""?parseFloat(d):void 0;isNaN(f)&&f!==void 0||e(f)},m=(0,Hz.useMemo)(()=>{let[d]=(0,It.__experimentalParseQuantityAndUnitFromRawValue)(a);return[d,o].join("")},[o,a]),p=l?Pz:0;return(0,rt.jsx)(It.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,$o.__)("Minimum height"),id:i,isResetValueOnUnitChange:!0,min:p,onChange:u,onUnitChange:t,units:c,value:m})}function Vz({attributes:e,setAttributes:t,clientId:o,setOverlayColor:a,coverRef:n,currentSettings:i,updateDimRatio:l,featuredImage:s}){let{useFeaturedImage:c,id:u,dimRatio:m,focalPoint:p,hasParallax:d,isRepeated:f,minHeight:g,minHeightUnit:v,alt:b,tagName:y,poster:_}=e,{isVideoBackground:x,isImageBackground:w,mediaElement:C,url:T,overlayColor:N}=i,P=e.sizeSlug||Hd,{gradientValue:M,setGradient:R}=(0,Sr.__experimentalUseGradient)(),{getSettings:H}=(0,rT.useSelect)(Sr.store),O=H()?.imageSizes,A=(0,rT.useSelect)(ee=>u&&w?ee(Az.store).getEntityRecord("postType","attachment",u,{context:"view"}):null,[u,w]),I=c?s:A;function V(ee){let ne=I?.media_details?.sizes?.[ee]?.source_url;if(!ne)return null;t({url:ne,sizeSlug:ee})}let W=O?.filter(({slug:ee})=>I?.media_details?.sizes?.[ee]?.source_url)?.map(({name:ee,slug:ne})=>({value:ne,label:ee})),j=()=>{t({hasParallax:!d,...d?{}:{focalPoint:void 0}})},K=()=>{t({isRepeated:!f})},Z=x||w&&(!d||f),te=ee=>{let[ne,oe]=C.current?[C.current.style,"objectPosition"]:[n.current.style,"backgroundPosition"];ne[oe]=Cr(ee)},X=(0,Sr.__experimentalUseMultipleOriginColorsAndGradients)(),J=G();return(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(Sr.InspectorControls,{children:(!!T||c)&&(0,rt.jsxs)(It.__experimentalToolsPanel,{label:(0,$o.__)("Settings"),resetAll:()=>{t({hasParallax:!1,focalPoint:void 0,isRepeated:!1,alt:"",poster:void 0}),V(Hd)},dropdownMenuProps:J,children:[w&&(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(It.__experimentalToolsPanelItem,{label:(0,$o.__)("Fixed background"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>t({hasParallax:!1,focalPoint:void 0}),children:(0,rt.jsx)(It.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,$o.__)("Fixed background"),checked:!!d,onChange:j})}),(0,rt.jsx)(It.__experimentalToolsPanelItem,{label:(0,$o.__)("Repeated background"),isShownByDefault:!0,hasValue:()=>f,onDeselect:()=>t({isRepeated:!1}),children:(0,rt.jsx)(It.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,$o.__)("Repeated background"),checked:f,onChange:K})})]}),Z&&(0,rt.jsx)(It.__experimentalToolsPanelItem,{label:(0,$o.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!p,onDeselect:()=>t({focalPoint:void 0}),children:(0,rt.jsx)(It.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,$o.__)("Focal point"),url:T,value:p,onDragStart:te,onDrag:te,onChange:ee=>t({focalPoint:ee})})}),x&&(0,rt.jsx)(W_,{poster:_,onChange:ee=>t({poster:ee?.url})}),!c&&T&&!x&&(0,rt.jsx)(It.__experimentalToolsPanelItem,{label:(0,$o.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!b,onDeselect:()=>t({alt:""}),children:(0,rt.jsx)(It.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,$o.__)("Alternative text"),value:b,onChange:ee=>t({alt:ee}),help:(0,rt.jsxs)(rt.Fragment,{children:[(0,rt.jsx)(It.ExternalLink,{href:(0,$o.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,$o.__)("Describe the purpose of the image.")}),(0,rt.jsx)("br",{}),(0,$o.__)("Leave empty if decorative.")]})})}),!!W?.length&&(0,rt.jsx)(Use,{value:P,onChange:V,options:W,defaultValue:Hd})]})}),X.hasColorsOrGradients&&(0,rt.jsxs)(Sr.InspectorControls,{group:"color",children:[(0,rt.jsx)(Sr.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:N.color,gradientValue:M,label:(0,$o.__)("Overlay"),onColorChange:a,onGradientChange:R,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:o,...X}),(0,rt.jsx)(It.__experimentalToolsPanelItem,{hasValue:()=>m===void 0?!1:m!==(T?50:100),label:(0,$o.__)("Overlay opacity"),onDeselect:()=>l(T?50:100),resetAllFilter:()=>({dimRatio:T?50:100}),isShownByDefault:!0,panelId:o,children:(0,rt.jsx)(It.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,$o.__)("Overlay opacity"),value:m,onChange:ee=>l(ee),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}),(0,rt.jsx)(Sr.InspectorControls,{group:"dimensions",children:(0,rt.jsx)(It.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!g,label:(0,$o.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:o,children:(0,rt.jsx)($se,{value:e?.style?.dimensions?.aspectRatio?"":g,unit:v,onChange:ee=>t({minHeight:ee,style:Ose({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}),onUnitChange:ee=>t({minHeightUnit:ee})})})}),(0,rt.jsx)(Sr.InspectorControls,{group:"advanced",children:(0,rt.jsx)(Gse,{tagName:y,onChange:ee=>t({tagName:ee}),clientId:o,options:[{label:(0,$o.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}]})})]})}var q_=r(F()),Ki=r(S()),N0=r(B()),$z=r(L());var aT=r(F()),Jc=r(L()),Zm=r(B());var Fz=r(U());var Wse="core/embed",qse=["youtube","vimeo","videopress","animoto","tiktok","wordpress-tv"];function jz(e){return e?Zse(e)!==null:!1}function Zse(e){let t=(0,Fz.getBlockVariations)(Wse);if(!t)return null;let o=t.find(({patterns:a})=>tS(e,a));return!o||!qse.includes(o.name)?null:o}function Oz(e){if(!e)return null;let t=e.match(/src=["']([^"']+)["']/);return t?t[1]:null}function Kse(e){if(!e)return null;let t=e.toLowerCase();return t.includes("youtube.com")||t.includes("youtu.be")?"youtube":t.includes("vimeo.com")?"vimeo":t.includes("videopress.com")?"videopress":t.includes("animoto.com")?"animoto":t.includes("tiktok.com")?"tiktok":t.includes("wordpress.tv")?"wordpress-tv":null}function Uz(e){if(!e)return e;try{let t=new URL(e);switch(Kse(e)){case"youtube":t.searchParams.set("autoplay","1"),t.searchParams.set("mute","1"),t.searchParams.set("loop","1"),t.searchParams.set("controls","0"),t.searchParams.set("showinfo","0"),t.searchParams.set("modestbranding","1"),t.searchParams.set("playsinline","1"),t.searchParams.set("rel","0");let a=t.pathname.split("/").pop();a&&t.searchParams.set("playlist",a);break;case"vimeo":t.searchParams.set("autoplay","1"),t.searchParams.set("muted","1"),t.searchParams.set("loop","1"),t.searchParams.set("background","1"),t.searchParams.set("controls","0");break;case"videopress":case"wordpress-tv":t.searchParams.set("autoplay","1"),t.searchParams.set("loop","1"),t.searchParams.set("muted","1");break;default:t.searchParams.set("autoplay","1"),t.searchParams.set("muted","1"),t.searchParams.set("loop","1");break}return t.toString()}catch{return e}}var Ad=r(h());function Gz({onSubmit:e,onClose:t}){let[o,a]=(0,aT.useState)(""),[n,i]=(0,aT.useState)("");return(0,Ad.jsx)(Jc.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{if(!o){i((0,Zm.__)("Please enter a URL."));return}if(!jz(o)){i((0,Zm.__)("This URL is not supported. Please enter a valid video link from a supported provider."));return}e(o),t()},onCancel:t,confirmButtonText:(0,Zm.__)("Add video"),size:"medium",children:(0,Ad.jsxs)(Jc.__experimentalVStack,{spacing:4,children:[n&&(0,Ad.jsx)(Jc.Notice,{status:"error",isDismissible:!1,children:n}),(0,Ad.jsx)(Jc.TextControl,{__next40pxDefaultSize:!0,label:(0,Zm.__)("Video URL"),value:o,onChange:s=>{a(s),i("")},placeholder:(0,Zm.__)("Enter YouTube, Vimeo, or other video URL"),__nextHasNoMarginBottom:!0,help:(0,Zm.__)("Add a background video to the cover block that will autoplay in a loop.")})]})})}var bi=r(h()),{cleanEmptyObject:Qse}=Q(Ki.privateApis);function Wz({attributes:e,setAttributes:t,onSelectMedia:o,currentSettings:a,toggleUseFeaturedImage:n,onClearMedia:i,onSelectEmbedUrl:l,blockEditingMode:s}){let{contentPosition:c,id:u,useFeaturedImage:m,minHeight:p,minHeightUnit:d}=e,{hasInnerBlocks:f,url:g}=a,[v,b]=(0,q_.useState)(p),[y,_]=(0,q_.useState)(d),[x,w]=(0,q_.useState)(!1),C=d==="vh"&&p===100&&!e?.style?.dimensions?.aspectRatio,T=s==="contentOnly",N=()=>C?t(y==="vh"&&v===100?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:v,minHeightUnit:y}):(b(p),_(d),t({minHeight:100,minHeightUnit:"vh",style:Qse({...e?.style,dimensions:{...e?.style?.dimensions,aspectRatio:void 0}})}));return(0,bi.jsxs)(bi.Fragment,{children:[!T&&(0,bi.jsxs)(Ki.BlockControls,{group:"block",children:[(0,bi.jsx)(Ki.__experimentalBlockAlignmentMatrixControl,{label:(0,N0.__)("Change content position"),value:c,onChange:P=>t({contentPosition:P}),isDisabled:!f}),(0,bi.jsx)(Ki.__experimentalBlockFullHeightAligmentControl,{isActive:C,onToggle:N,isDisabled:!f})]}),(0,bi.jsx)(Ki.BlockControls,{group:"other",children:(0,bi.jsx)(Ki.MediaReplaceFlow,{mediaId:u,mediaURL:g,allowedTypes:F_,onSelect:o,onToggleFeaturedImage:n,useFeaturedImage:m,name:g?(0,N0.__)("Replace"):(0,N0.__)("Add media"),onReset:i,children:({onClose:P})=>(0,bi.jsx)($z.MenuItem,{icon:Nn,onClick:()=>{w(!0),P()},children:(0,N0.__)("Embed video from URL")})})}),x&&(0,bi.jsx)(Gz,{onSubmit:P=>{l(P)},onClose:()=>w(!1)})]})}var Z_=r(S()),qz=r(B());var nT=r(h());function iT({disableMediaButtons:e=!1,children:t,onSelectMedia:o,onError:a,style:n,toggleUseFeaturedImage:i}){return(0,nT.jsx)(Z_.MediaPlaceholder,{icon:(0,nT.jsx)(Z_.BlockIcon,{icon:fm}),labels:{title:(0,qz.__)("Cover")},onSelect:o,allowedTypes:F_,disableMediaButtons:e,onToggleFeaturedImage:i,onError:a,style:n,children:t})}var Zz=r(F()),Kz=r(S());var Qz=r(h()),Yse={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:Xse}=Q(Kz.privateApis);function lT({className:e,height:t,minHeight:o,onResize:a,onResizeStart:n,onResizeStop:i,showHandle:l,size:s,width:c,...u}){let[m,p]=(0,Zz.useState)(!1),d={className:k(e,{"is-resizing":m}),enable:Yse,onResizeStart:(f,g,v)=>{n(v.clientHeight),a(v.clientHeight)},onResize:(f,g,v)=>{a(v.clientHeight),m||p(!0)},onResizeStop:(f,g,v)=>{i(v.clientHeight),p(!1)},showHandle:l,size:s,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:m}};return(0,Qz.jsx)(Xse,{className:"block-library-cover__resizable-box-popover",resizableBoxProps:d,...u})}var Jse={grad:.9,turn:360,rad:360/(2*Math.PI)},qs=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},lr=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=Math.pow(10,t)),Math.round(o*e)/o+0},yi=function(e,t,o){return t===void 0&&(t=0),o===void 0&&(o=1),e>o?o:e>t?e:t},aA=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Yz=function(e){return{r:yi(e.r,0,255),g:yi(e.g,0,255),b:yi(e.b,0,255),a:yi(e.a)}},sT=function(e){return{r:lr(e.r),g:lr(e.g),b:lr(e.b),a:lr(e.a,3)}},ece=/^#([0-9a-f]{3,8})$/i,K_=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},nA=function(e){var t=e.r,o=e.g,a=e.b,n=e.a,i=Math.max(t,o,a),l=i-Math.min(t,o,a),s=l?i===t?(o-a)/l:i===o?2+(a-t)/l:4+(t-o)/l:0;return{h:60*(s<0?s+6:s),s:i?l/i*100:0,v:i/255*100,a:n}},iA=function(e){var t=e.h,o=e.s,a=e.v,n=e.a;t=t/360*6,o/=100,a/=100;var i=Math.floor(t),l=a*(1-o),s=a*(1-(t-i)*o),c=a*(1-(1-t+i)*o),u=i%6;return{r:255*[a,s,l,l,c,a][u],g:255*[c,a,a,s,l,l][u],b:255*[l,l,c,a,a,s][u],a:n}},Xz=function(e){return{h:aA(e.h),s:yi(e.s,0,100),l:yi(e.l,0,100),a:yi(e.a)}},Jz=function(e){return{h:lr(e.h),s:lr(e.s),l:lr(e.l),a:lr(e.a,3)}},eA=function(e){return iA((o=(t=e).s,{h:t.h,s:(o*=((a=t.l)<50?a:100-a)/100)>0?2*o/(a+o)*100:0,v:a+o,a:t.a}));var t,o,a},I0=function(e){return{h:(t=nA(e)).h,s:(n=(200-(o=t.s))*(a=t.v)/100)>0&&n<200?o*a/100/(n<=100?n:200-n)*100:0,l:n/2,a:t.a};var t,o,a,n},tce=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,oce=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,rce=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ace=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,mT={string:[[function(e){var t=ece.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?lr(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?lr(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=rce.exec(e)||ace.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Yz({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=tce.exec(e)||oce.exec(e);if(!t)return null;var o,a,n=Xz({h:(o=t[1],a=t[2],a===void 0&&(a="deg"),Number(o)*(Jse[a]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return eA(n)},"hsl"]],object:[[function(e){var t=e.r,o=e.g,a=e.b,n=e.a,i=n===void 0?1:n;return qs(t)&&qs(o)&&qs(a)?Yz({r:Number(t),g:Number(o),b:Number(a),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,o=e.s,a=e.l,n=e.a,i=n===void 0?1:n;if(!qs(t)||!qs(o)||!qs(a))return null;var l=Xz({h:Number(t),s:Number(o),l:Number(a),a:Number(i)});return eA(l)},"hsl"],[function(e){var t=e.h,o=e.s,a=e.v,n=e.a,i=n===void 0?1:n;if(!qs(t)||!qs(o)||!qs(a))return null;var l=(function(s){return{h:aA(s.h),s:yi(s.s,0,100),v:yi(s.v,0,100),a:yi(s.a)}})({h:Number(t),s:Number(o),v:Number(a),a:Number(i)});return iA(l)},"hsv"]]},tA=function(e,t){for(var o=0;o<t.length;o++){var a=t[o][0](e);if(a)return[a,t[o][1]]}return[null,void 0]},nce=function(e){return typeof e=="string"?tA(e.trim(),mT.string):typeof e=="object"&&e!==null?tA(e,mT.object):[null,void 0]};var cT=function(e,t){var o=I0(e);return{h:o.h,s:yi(o.s+100*t,0,100),l:o.l,a:o.a}},uT=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},oA=function(e,t){var o=I0(e);return{h:o.h,s:o.s,l:yi(o.l+100*t,0,100),a:o.a}},pT=(function(){function e(t){this.parsed=nce(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return lr(uT(this.rgba),2)},e.prototype.isDark=function(){return uT(this.rgba)<.5},e.prototype.isLight=function(){return uT(this.rgba)>=.5},e.prototype.toHex=function(){return t=sT(this.rgba),o=t.r,a=t.g,n=t.b,l=(i=t.a)<1?K_(lr(255*i)):"","#"+K_(o)+K_(a)+K_(n)+l;var t,o,a,n,i,l},e.prototype.toRgb=function(){return sT(this.rgba)},e.prototype.toRgbString=function(){return t=sT(this.rgba),o=t.r,a=t.g,n=t.b,(i=t.a)<1?"rgba("+o+", "+a+", "+n+", "+i+")":"rgb("+o+", "+a+", "+n+")";var t,o,a,n,i},e.prototype.toHsl=function(){return Jz(I0(this.rgba))},e.prototype.toHslString=function(){return t=Jz(I0(this.rgba)),o=t.h,a=t.s,n=t.l,(i=t.a)<1?"hsla("+o+", "+a+"%, "+n+"%, "+i+")":"hsl("+o+", "+a+"%, "+n+"%)";var t,o,a,n,i},e.prototype.toHsv=function(){return t=nA(this.rgba),{h:lr(t.h),s:lr(t.s),v:lr(t.v),a:lr(t.a,3)};var t},e.prototype.invert=function(){return wa({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),wa(cT(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),wa(cT(this.rgba,-t))},e.prototype.grayscale=function(){return wa(cT(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),wa(oA(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),wa(oA(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?wa({r:(o=this.rgba).r,g:o.g,b:o.b,a:t}):lr(this.rgba.a,3);var o},e.prototype.hue=function(t){var o=I0(this.rgba);return typeof t=="number"?wa({h:t,s:o.s,l:o.l,a:o.a}):lr(o.h)},e.prototype.isEqual=function(t){return this.toHex()===wa(t).toHex()},e})(),wa=function(e){return e instanceof pT?e:new pT(e)},rA=[],lA=function(e){e.forEach(function(t){rA.indexOf(t)<0&&(t(pT,mT),rA.push(t))})};function sA(e,t){var o={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},a={};for(var n in o)a[o[n]]=n;var i={};e.prototype.toName=function(l){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,c,u=a[this.toHex()];if(u)return u;if(l?.closest){var m=this.toRgb(),p=1/0,d="black";if(!i.length)for(var f in o)i[f]=new e(o[f]).toRgb();for(var g in o){var v=(s=m,c=i[g],Math.pow(s.r-c.r,2)+Math.pow(s.g-c.g,2)+Math.pow(s.b-c.b,2));v<p&&(p=v,d=g)}return d}},t.string.push([function(l){var s=l.toLowerCase(),c=s==="transparent"?"#0000":o[s];return c?new e(c).toRgb():null},"name"])}function ice(e){var t=e.toString(16);return t.length===1?"0"+t:t}function cA(e){return"#"+e.map(ice).join("")}function lce(e){var t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128}function sce(e){return e?cce(e)?e:[e]:[]}function cce(e){return Array.isArray(e[0])}function fT(e,t,o){for(var a=0;a<o.length;a++)if(uce(e,t,o[a]))return!0;return!1}function uce(e,t,o){switch(o.length){case 3:if(mce(e,t,o))return!0;break;case 4:if(pce(e,t,o))return!0;break;case 5:if(dce(e,t,o))return!0;break;default:return!1}}function mce(e,t,o){return e[t+3]!==255||e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2]}function pce(e,t,o){return e[t+3]&&o[3]?e[t]===o[0]&&e[t+1]===o[1]&&e[t+2]===o[2]&&e[t+3]===o[3]:e[t+3]===o[3]}function Q_(e,t,o){return e>=t-o&&e<=t+o}function dce(e,t,o){var a=o[0],n=o[1],i=o[2],l=o[3],s=o[4],c=e[t+3],u=Q_(c,l,s);return l?!!(!c&&u||Q_(e[t],a,s)&&Q_(e[t+1],n,s)&&Q_(e[t+2],i,s)&&u):u}function fce(e,t,o){for(var a={},n=24,i=o.ignoredColor,l=o.step,s=[0,0,0,0,0],c=0;c<t;c+=l){var u=e[c],m=e[c+1],p=e[c+2],d=e[c+3];if(!(i&&fT(e,c,i))){var f=Math.round(u/n)+","+Math.round(m/n)+","+Math.round(p/n);a[f]?a[f]=[a[f][0]+u*d,a[f][1]+m*d,a[f][2]+p*d,a[f][3]+d,a[f][4]+1]:a[f]=[u*d,m*d,p*d,d,1],s[4]<a[f][4]&&(s=a[f])}}var g=s[0],v=s[1],b=s[2],y=s[3],_=s[4];return y?[Math.round(g/y),Math.round(v/y),Math.round(b/y),Math.round(y/_)]:o.defaultColor}function gce(e,t,o){for(var a=0,n=0,i=0,l=0,s=0,c=o.ignoredColor,u=o.step,m=0;m<t;m+=u){var p=e[m+3],d=e[m]*p,f=e[m+1]*p,g=e[m+2]*p;c&&fT(e,m,c)||(a+=d,n+=f,i+=g,l+=p,s++)}return l?[Math.round(a/l),Math.round(n/l),Math.round(i/l),Math.round(l/s)]:o.defaultColor}function hce(e,t,o){for(var a=0,n=0,i=0,l=0,s=0,c=o.ignoredColor,u=o.step,m=0;m<t;m+=u){var p=e[m],d=e[m+1],f=e[m+2],g=e[m+3];c&&fT(e,m,c)||(a+=p*p*g,n+=d*d*g,i+=f*f*g,l+=g,s++)}return l?[Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(n/l)),Math.round(Math.sqrt(i/l)),Math.round(l/s)]:o.defaultColor}function uA(e){return E0(e,"defaultColor",[0,0,0,0])}function E0(e,t,o){return e[t]===void 0?o:e[t]}var mA=10,dT=100;function vce(e){return e.search(/\.svg(\?|$)/i)!==-1}function bce(e){if(dA(e)){var t=e.naturalWidth,o=e.naturalHeight;return!e.naturalWidth&&vce(e.src)&&(t=o=dT),{width:t,height:o}}return _ce(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function pA(e){return xce(e)?"canvas":yce(e)?"offscreencanvas":kce(e)?"imagebitmap":e.src}function dA(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement}function yce(e){return typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas}function _ce(e){return typeof HTMLVideoElement<"u"&&e instanceof HTMLVideoElement}function xce(e){return typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement}function kce(e){return typeof ImageBitmap<"u"&&e instanceof ImageBitmap}function wce(e,t){var o=E0(t,"left",0),a=E0(t,"top",0),n=E0(t,"width",e.width),i=E0(t,"height",e.height),l=n,s=i;if(t.mode==="precision")return{srcLeft:o,srcTop:a,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s};var c;return n>i?(c=n/i,l=dT,s=Math.round(l/c)):(c=i/n,s=dT,l=Math.round(s/c)),(l>n||s>i||l<mA||s<mA)&&(l=n,s=i),{srcLeft:o,srcTop:a,srcWidth:n,srcHeight:i,destWidth:l,destHeight:s}}var Cce=typeof window>"u";function Sce(){return Cce?new OffscreenCanvas(1,1):document.createElement("canvas")}var fA="FastAverageColor: ";function Y_(e,t,o){t||(console.error(fA+e),o&&console.error(o))}function D0(e){return Error(fA+e)}var gA=(function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(t,o){if(!t)return Promise.reject(D0("call .getColorAsync() without resource."));if(typeof t=="string"){if(typeof Image>"u")return Promise.reject(D0("resource as string is not supported in this environment"));var a=new Image;return a.crossOrigin=o&&o.crossOrigin||"",a.src=t,this.bindImageEvents(a,o)}else{if(dA(t)&&!t.complete)return this.bindImageEvents(t,o);var n=this.getColor(t,o);return n.error?Promise.reject(n.error):Promise.resolve(n)}},e.prototype.getColor=function(t,o){o=o||{};var a=uA(o);if(!t)return Y_("call .getColor(null) without resource",o.silent),this.prepareResult(a);var n=bce(t),i=wce(n,o);if(!i.srcWidth||!i.srcHeight||!i.destWidth||!i.destHeight)return Y_('incorrect sizes for resource "'.concat(pA(t),'"'),o.silent),this.prepareResult(a);if(this.canvas||(this.canvas=Sce()),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return Y_("Canvas Context 2D is not supported in this browser",o.silent),this.prepareResult(a);this.canvas.width=i.destWidth,this.canvas.height=i.destHeight;var l=a;try{this.ctx.clearRect(0,0,i.destWidth,i.destHeight),this.ctx.drawImage(t,i.srcLeft,i.srcTop,i.srcWidth,i.srcHeight,0,0,i.destWidth,i.destHeight);var s=this.ctx.getImageData(0,0,i.destWidth,i.destHeight).data;l=this.getColorFromArray4(s,o)}catch(c){Y_("security error (CORS) for resource ".concat(pA(t),`. |
| 8 |
Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`),o.silent,c)}return this.prepareResult(l)},e.prototype.getColorFromArray4=function(t,o){o=o||{};var a=4,n=t.length,i=uA(o);if(n<a)return i;var l=n-n%a,s=(o.step||1)*a,c;switch(o.algorithm||"sqrt"){case"simple":c=gce;break;case"sqrt":c=hce;break;case"dominant":c=fce;break;default:throw D0("".concat(o.algorithm," is unknown algorithm"))}return c(t,l,{defaultColor:i,ignoredColor:sce(o.ignoredColor),step:s})},e.prototype.prepareResult=function(t){var o=t.slice(0,3),a=[t[0],t[1],t[2],t[3]/255],n=lce(t);return{value:[t[0],t[1],t[2],t[3]],rgb:"rgb("+o.join(",")+")",rgba:"rgba("+a.join(",")+")",hex:cA(o),hexa:cA(t),isDark:n,isLight:!n}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(t,o){var a=this;return new Promise(function(n,i){var l=function(){u();var m=a.getColor(t,o);m.error?i(m.error):n(m)},s=function(){u(),i(D0('Error loading image "'.concat(t.src,'".')))},c=function(){u(),i(D0('Image "'.concat(t.src,'" loading aborted')))},u=function(){t.removeEventListener("load",l),t.removeEventListener("error",s),t.removeEventListener("abort",c)};t.addEventListener("load",l),t.addEventListener("error",s),t.addEventListener("abort",c)})},e})();var vA=r(eu());lA([sA]);var Vd="#FFF",bA="#000";function Tce(e,t){return{r:e.r*e.a+t.r*t.a*(1-e.a),g:e.g*e.a+t.g*t.a*(1-e.a),b:e.b*e.a+t.b*t.a*(1-e.a),a:e.a+t.a*(1-e.a)}}function X_(){return X_.fastAverageColor||(X_.fastAverageColor=new gA),X_.fastAverageColor}var Fd=vd(async e=>{if(!e)return Vd;let{r:t,g:o,b:a,a:n}=wa(Vd).toRgb();try{let i=(0,vA.applyFilters)("media.crossOrigin",void 0,e);return(await X_().getColorAsync(e,{defaultColor:[t,o,a,n*255],silent:!0,crossOrigin:i})).hex}catch{return Vd}});function Km(e,t,o){if(t===o||e===100)return wa(t).isDark();let a=wa(t).alpha(e/100).toRgb(),n=wa(o).toRgb(),i=Tce(a,n);return wa(i).isDark()}var Dt=r(h());function Bce(e){return[["core/paragraph",{align:"center",placeholder:(0,gT.__)("Write title\u2026"),...e}]]}var Pce=(e,t)=>!e&&(0,yA.isBlobURL)(t);function Nce({attributes:e,clientId:t,isSelected:o,overlayColor:a,setAttributes:n,setOverlayColor:i,toggleSelection:l,context:{postId:s,postType:c}}){let{contentPosition:u,id:m,url:p,backgroundType:d,useFeaturedImage:f,dimRatio:g,focalPoint:v,hasParallax:b,isDark:y,isRepeated:_,minHeight:x,minHeightUnit:w,alt:C,allowedBlocks:T,templateLock:N,tagName:P="div",isUserOverlayColor:M,sizeSlug:R,poster:H}=e,[O]=(0,M0.useEntityProp)("postType",c,"featured_media",s),{getSettings:A}=(0,tu.useSelect)(sr.store),{__unstableMarkNextChangeAsNotPersistent:I}=(0,tu.useDispatch)(sr.store),{media:V}=(0,tu.useSelect)(Te=>({media:O&&f?Te(M0.store).getEntityRecord("postType","attachment",O,{context:"view"}):void 0}),[O,f]),W=V?.media_details?.sizes?.[R]?.source_url??V?.source_url;(0,ou.useEffect)(()=>{(async()=>{if(!f)return;let Te=await Fd(W),pt=a.color;M||(pt=Te,I(),i(pt));let Fo=Km(g,pt,Te);I(),n({isDark:Fo,isUserOverlayColor:M||!1})})()},[W]);let j=f?W:p?.replaceAll("&","&"),K=f?Vt:d,{createErrorNotice:Z}=(0,tu.useDispatch)(_A.store),{gradientClass:te,gradientValue:X}=(0,sr.__experimentalUseGradient)(),J=async Te=>{let pt=Nz(Te),Fo=[Te?.type,Te?.media_type].includes(Vt),Oa=await Fd(Fo?Te?.url:void 0),Rl=a.color;M||(Rl=Oa,i(Rl),I());let ci=p===void 0&&g===100?50:g,Hl=Km(ci,Rl,Oa);if(K===Vt&&pt?.id){let{imageDefaultSize:Tn}=A();R&&(Te?.sizes?.[R]||Te?.media_details?.sizes?.[R])?(pt.sizeSlug=R,pt.url=Te?.sizes?.[R]?.url||Te?.media_details?.sizes?.[R]?.source_url):Te?.sizes?.[Tn]||Te?.media_details?.sizes?.[Tn]?(pt.sizeSlug=Tn,pt.url=Te?.sizes?.[Tn]?.url||Te?.media_details?.sizes?.[Tn]?.source_url):pt.sizeSlug=Hd}n({...pt,focalPoint:void 0,useFeaturedImage:void 0,dimRatio:ci,isDark:Hl,isUserOverlayColor:M||!1})},ee=()=>{let Te=a.color;M||(Te=bA,i(void 0),I());let pt=Km(g,Te,Vd);n({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0,isDark:pt})},ne=async Te=>{let pt=await Fd(j),Fo=Km(g,Te,pt);i(Te),I(),n({isUserOverlayColor:!0,isDark:Fo})},oe=async Te=>{let pt=await Fd(j),Fo=Km(Te,a.color,pt);n({dimRatio:Te,isDark:Fo})},ce=Te=>{Z(Te,{type:"snackbar"})},pe=Te=>{n({url:Te,backgroundType:$m,dimRatio:p===void 0&&g===100?50:g,id:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:void 0})},{embedPreview:Ne,isFetchingEmbed:Le}=(0,tu.useSelect)(Te=>{if(K!==$m||!j)return{embedPreview:void 0,isFetchingEmbed:!1};let{getEmbedPreview:pt,isRequestingEmbedPreview:Fo}=Te(M0.store);return{embedPreview:pt(j),isFetchingEmbed:Fo(j)}},[j,K]),ie=(0,ou.useMemo)(()=>{if(K!==$m||!Ne?.html)return null;let Te=Oz(Ne.html);return Te?Uz(Te):null},[Ne,K]),Ee=Pce(m,j),de=Vt===K,re=lo===K,se=$m===K,we=(0,sr.useBlockEditingMode)(),fe=we==="default",[mt,{height:kt,width:bt}]=(0,J_.useResizeObserver)(),_o=(0,ou.useMemo)(()=>({height:w==="px"&&x?x:"auto",width:"auto"}),[x,w]),Ye=x&&w?`${x}${w}`:x,xo=!(b||_),si={minHeight:Ye||void 0},q=j?`url(${j})`:void 0,Be=Cr(v),He={backgroundColor:a.color},Ve={objectPosition:v&&xo?Cr(v):void 0},Fe=!!(j||a.color||X),Yt=(0,tu.useSelect)(Te=>Te(sr.store).getBlock(t).innerBlocks.length>0,[t]),or=(0,ou.useRef)(),Pt=(0,sr.useBlockProps)({ref:or}),[qe]=(0,sr.useSettings)("typography.fontSizes"),rr=qe?.length>0,$r=Bce({fontSize:rr?"large":void 0}),ja=(0,sr.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:Yt?void 0:$r,templateInsertUpdatesSelection:!0,allowedBlocks:T,templateLock:N,dropZoneElement:or.current}),ma=(0,ou.useRef)(),Bc={isVideoBackground:re,isImageBackground:de,mediaElement:ma,hasInnerBlocks:Yt,url:j,isImgElement:xo,overlayColor:a},Ml=async()=>{let Te=!f,pt=Te?await Fd(W):Vd,Fo=M?a.color:pt;M||(i(Te?Fo:void 0),I());let Oa=g===100?50:g,Rl=Km(Oa,Fo,pt);n({id:void 0,url:void 0,useFeaturedImage:Te,dimRatio:Oa,backgroundType:f?Vt:void 0,isDark:Rl})},Ll=(0,Dt.jsx)(Wz,{attributes:e,setAttributes:n,onSelectMedia:J,onSelectEmbedUrl:pe,currentSettings:Bc,toggleUseFeaturedImage:Ml,onClearMedia:ee,blockEditingMode:we}),Vi=(0,Dt.jsx)(Vz,{attributes:e,setAttributes:n,clientId:t,setOverlayColor:ne,coverRef:or,currentSettings:Bc,toggleUseFeaturedImage:Ml,updateDimRatio:oe,onClearMedia:ee,featuredImage:V}),As={className:"block-library-cover__resize-container",clientId:t,height:kt,minHeight:Ye,onResizeStart:()=>{n({minHeightUnit:"px"}),l(!1)},onResize:Te=>{n({minHeight:Te})},onResizeStop:Te=>{l(!0),n({minHeight:Te})},showHandle:!e.style?.dimensions?.aspectRatio,size:_o,width:bt};if(!f&&!Yt&&!Fe)return(0,Dt.jsxs)(Dt.Fragment,{children:[Ll,Vi,fe&&o&&(0,Dt.jsx)(lT,{...As}),(0,Dt.jsxs)(P,{...Pt,className:k("is-placeholder",Pt.className),style:{...Pt.style,minHeight:Ye||void 0},children:[mt,(0,Dt.jsx)(iT,{onSelectMedia:J,onError:ce,toggleUseFeaturedImage:Ml,children:(0,Dt.jsx)("div",{className:"wp-block-cover__placeholder-background-options",children:(0,Dt.jsx)(sr.ColorPalette,{disableCustomColors:!0,value:a.color,onChange:ne,clearable:!1,asButtons:!0,"aria-label":(0,gT.__)("Overlay color")})})})]})]});let nd=k({"is-dark-theme":y,"is-light":!y,"is-transient":Ee,"has-parallax":b,"is-repeated":_,"has-custom-content-position":!xa(u)},Ya(u)),Pc=j||!f||f&&!j;return(0,Dt.jsxs)(Dt.Fragment,{children:[Ll,Vi,(0,Dt.jsxs)(P,{...Pt,className:k(nd,Pt.className),style:{...si,...Pt.style},"data-url":j,children:[mt,!j&&f&&(0,Dt.jsx)(L0.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),j&&de&&(xo?(0,Dt.jsx)("img",{ref:ma,className:"wp-block-cover__image-background",alt:C,src:j,style:Ve}):(0,Dt.jsx)("div",{ref:ma,role:C?"img":void 0,"aria-label":C||void 0,className:k(nd,"wp-block-cover__image-background"),style:{backgroundImage:q,backgroundPosition:Be}})),j&&re&&(0,Dt.jsx)("video",{ref:ma,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:j,poster:H,style:Ve}),se&&ie&&(0,Dt.jsx)("div",{ref:ma,className:"wp-block-cover__video-background wp-block-cover__embed-background",style:Ve,children:(0,Dt.jsx)("iframe",{src:ie,title:"Background video",frameBorder:"0",allow:"autoplay; fullscreen"})}),se&&!ie&&Le&&(0,Dt.jsx)(L0.Spinner,{}),Pc&&(0,Dt.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__background",vi(g),{[a.class]:a.class,"has-background-dim":g!==void 0,"wp-block-cover__gradient-background":j&&X&&g!==0,"has-background-gradient":X,[te]:te}),style:{backgroundImage:X,...He}}),Ee&&(0,Dt.jsx)(L0.Spinner,{}),(0,Dt.jsx)(iT,{disableMediaButtons:!0,onSelectMedia:J,onError:ce,toggleUseFeaturedImage:Ml}),(0,Dt.jsx)("div",{...ja})]}),fe&&o&&(0,Dt.jsx)(lT,{...As})]})}var xA=(0,J_.compose)([(0,sr.withColors)({overlayColor:"background-color"})])(Nce);var ex={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string",role:"content"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},isUserOverlayColor:{type:"boolean"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"},sizeSlug:{type:"string"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,shadow:!0,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{heading:!0,text:!0,background:!1,__experimentalSkipSerialization:["gradients"],enableContrastChecker:!1},dimensions:{aspectRatio:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1},interactivity:{clientNavigation:!0},filter:{duotone:!0},allowedBlocks:!0},selectors:{filter:{duotone:".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background"}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"};var ru=r(S());var Ul=r(h());function kA({attributes:e}){let{backgroundType:t,gradient:o,contentPosition:a,customGradient:n,customOverlayColor:i,dimRatio:l,focalPoint:s,useFeaturedImage:c,hasParallax:u,isDark:m,isRepeated:p,overlayColor:d,url:f,alt:g,id:v,minHeight:b,minHeightUnit:y,tagName:_,sizeSlug:x,poster:w}=e,C=(0,ru.getColorClassName)("background-color",d),T=(0,ru.__experimentalGetGradientClass)(o),N=b&&y?`${b}${y}`:b,P=Vt===t,M=lo===t,R=$m===t,H=!(u||p),O={minHeight:N||void 0},A={backgroundColor:C?void 0:i,background:n||void 0},I=s&&H?Cr(s):void 0,V=f?`url(${f})`:void 0,W=Cr(s),j=k({"is-light":!m,"has-parallax":u,"is-repeated":p,"has-custom-content-position":!xa(a)},Ya(a)),K=k("wp-block-cover__image-background",v?`wp-image-${v}`:null,{[`size-${x}`]:x,"has-parallax":u,"is-repeated":p}),Z=o||n;return(0,Ul.jsxs)(_,{...ru.useBlockProps.save({className:j,style:O}),children:[!c&&P&&f&&(H?(0,Ul.jsx)("img",{className:K,alt:g,src:f,style:{objectPosition:I},"data-object-fit":"cover","data-object-position":I}):(0,Ul.jsx)("div",{role:g?"img":void 0,"aria-label":g||void 0,className:K,style:{backgroundPosition:W,backgroundImage:V}})),M&&f&&(0,Ul.jsx)("video",{className:k("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:f,poster:w,style:{objectPosition:I},"data-object-fit":"cover","data-object-position":I}),R&&f&&(0,Ul.jsx)("figure",{className:k("wp-block-cover__video-background","wp-block-cover__embed-background","wp-block-embed"),children:(0,Ul.jsx)("div",{className:"wp-block-embed__wrapper",children:f})}),(0,Ul.jsx)("span",{"aria-hidden":"true",className:k("wp-block-cover__background",C,vi(l),{"has-background-dim":l!==void 0,"wp-block-cover__gradient-background":f&&Z&&l!==0,"has-background-gradient":Z,[T]:T}),style:A}),(0,Ul.jsx)("div",{...ru.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})})]})}var Hn=r(U()),wA=r(S());var{cleanEmptyObject:tx}=Q(wA.privateApis),Dce={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:o,align:a,id:n,anchor:i,style:l})=>(0,Hn.createBlock)("core/cover",{dimRatio:50,url:t,alt:o,align:a,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}},[(0,Hn.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:o,id:a,anchor:n})=>(0,Hn.createBlock)("core/cover",{dimRatio:50,url:t,align:o,id:a,backgroundType:lo,anchor:n},[(0,Hn.createBlock)("core/paragraph",{content:e,fontSize:"large",style:{typography:{textAlign:"center"}}})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{let{align:o,anchor:a,backgroundColor:n,gradient:i,style:l}=e;if(t?.length===1&&t[0]?.name==="core/cover")return(0,Hn.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);let s=n||i||l?.color?.background||l?.color?.gradient?void 0:50,c={align:o,anchor:a,dimRatio:s,overlayColor:n,customOverlayColor:l?.color?.background,gradient:i,customGradient:l?.color?.gradient},u={...e,backgroundColor:void 0,gradient:void 0,style:tx({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,Hn.createBlock)("core/cover",c,[(0,Hn.createBlock)("core/group",u,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:a,gradient:n,customGradient:i})=>t?e===Vt:!o&&!a&&!n&&!i,transform:({title:e,url:t,alt:o,align:a,id:n,anchor:i,style:l})=>(0,Hn.createBlock)("core/image",{caption:e,url:t,alt:o,align:a,id:n,anchor:i,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:o,customOverlayColor:a,gradient:n,customGradient:i})=>t?e===lo:!o&&!a&&!n&&!i,transform:({title:e,url:t,align:o,id:a,anchor:n})=>(0,Hn.createBlock)("core/video",{caption:e,src:t,id:a,align:o,anchor:n})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!(e||t),transform:(e,t)=>{let o={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:tx({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(t?.length===1&&t[0]?.name==="core/group"){let a=tx(t[0].attributes||{});return a?.backgroundColor||a?.gradient||a?.style?.color?.background||a?.style?.color?.gradient?(0,Hn.createBlock)("core/group",a,t[0]?.innerBlocks):(0,Hn.createBlock)("core/group",{...o,...a,style:tx({...a?.style,color:o?.style?.color||a?.style?.color?{...o?.style?.color,...a?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,Hn.createBlock)("core/group",{...e,...o},t)}}]},CA=Dce;var hT=r(B());var Ece=[{name:"cover",title:(0,hT.__)("Cover"),description:(0,hT.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:fm}],SA=Ece;var{fieldsKey:Mce,formKey:Lce}=Q(TA.privateApis),{name:BA}=ex,ox={icon:fm,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg",style:{typography:{fontSize:48},color:{text:"white"}}},innerBlocks:[{name:"core/paragraph",attributes:{content:`<strong>${(0,vT.__)("Snow Patrol")}</strong>`,align:"center"}}]},transforms:CA,save:kA,edit:xA,deprecated:Iz,variations:SA};window.__experimentalContentOnlyInspectorFields&&(ox[Mce]=[{id:"background",label:(0,vT.__)("Background"),type:"media",mapping:{type:"backgroundType",id:"id",url:"url",alt:"alt",featuredImage:"useFeaturedImage"},args:{allowedTypes:["image","video"],multiple:!1}}],ox[Lce]={fields:["background"]});var Rce=()=>D({name:BA,metadata:ex,settings:ox});var yT={};$(yT,{init:()=>Oce,metadata:()=>rx,name:()=>LA,settings:()=>nx});var au=r(B()),MA=r(U());var rx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["summary","toggle","disclosure"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"rich-text",source:"rich-text",selector:"summary",role:"content"},name:{type:"string",source:"attribute",attribute:"name",selector:".wp-block-details"},placeholder:{type:"string"}},supports:{__experimentalOnEnter:!0,align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,blockGap:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowEditing:!1},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-details-editor",style:"wp-block-details"};var Qi=r(S()),Gl=r(L()),Zs=r(B()),PA=r(F()),NA=r(z());var Xa=r(h()),{withIgnoreIMEEvents:zce}=Q(Gl.privateApis),Ace=[["core/paragraph",{placeholder:(0,Zs.__)("Type / to add a hidden block")}]];function Vce({attributes:e,setAttributes:t,clientId:o}){let{name:a,showContent:n,summary:i,allowedBlocks:l,placeholder:s}=e,c=(0,Qi.useBlockProps)(),u=(0,Qi.useInnerBlocksProps)(c,{template:Ace,__experimentalCaptureToolbars:!0,allowedBlocks:l}),[m,p]=(0,PA.useState)(n),d=G(),f=(0,NA.useSelect)(b=>b(Qi.store).hasSelectedInnerBlock(o,!0),[o]),g=b=>{b.key==="Enter"&&!b.shiftKey&&(p(y=>!y),b.preventDefault())},v=b=>{b.key===" "&&b.preventDefault()};return(0,Xa.jsxs)(Xa.Fragment,{children:[(0,Xa.jsx)(Qi.InspectorControls,{children:(0,Xa.jsx)(Gl.__experimentalToolsPanel,{label:(0,Zs.__)("Settings"),resetAll:()=>{t({showContent:!1})},dropdownMenuProps:d,children:(0,Xa.jsx)(Gl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Zs.__)("Open by default"),hasValue:()=>n,onDeselect:()=>{t({showContent:!1})},children:(0,Xa.jsx)(Gl.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Zs.__)("Open by default"),checked:n,onChange:()=>t({showContent:!n})})})})}),(0,Xa.jsx)(Qi.InspectorControls,{group:"advanced",children:(0,Xa.jsx)(Gl.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Zs.__)("Name attribute"),value:a||"",onChange:b=>t({name:b}),help:(0,Zs.__)("Enables multiple Details blocks with the same name attribute to be connected, with only one open at a time.")})}),(0,Xa.jsxs)("details",{...u,open:m||f,onToggle:b=>p(b.target.open),name:a||"",children:[(0,Xa.jsx)("summary",{onKeyDown:zce(g),onKeyUp:v,children:(0,Xa.jsx)(Qi.RichText,{identifier:"summary","aria-label":(0,Zs.__)("Write summary. Press Enter to expand or collapse the details."),placeholder:s||(0,Zs.__)("Write summary\u2026"),withoutInteractiveFormatting:!0,value:i,onChange:b=>t({summary:b})})}),u.children]})]})}var IA=Vce;var Od=r(S()),jd=r(h());function DA({attributes:e}){let{name:t,showContent:o}=e,a=e.summary?e.summary:"Details",n=Od.useBlockProps.save();return(0,jd.jsxs)("details",{...n,name:t||void 0,open:o,children:[(0,jd.jsx)("summary",{children:(0,jd.jsx)(Od.RichText.Content,{value:a})}),(0,jd.jsx)(Od.InnerBlocks.Content,{})]})}var ax=r(U()),EA={from:[{type:"block",isMultiBlock:!0,blocks:["*"],isMatch({},e){return!(e.length===1&&e[0].name==="core/details")},__experimentalConvert(e){return(0,ax.createBlock)("core/details",{},e.map(t=>(0,ax.cloneBlock)(t)))}}]};var{fieldsKey:Fce,formKey:jce}=Q(MA.privateApis),{name:LA}=rx,nx={icon:l8,example:{attributes:{summary:(0,au.__)("La Mancha"),showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,au.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]},__experimentalLabel(e,{context:t}){let{summary:o}=e,a=e?.metadata?.name,n=o?.trim().length>0;if(t==="list-view"&&(a||n))return a||o;if(t==="accessibility")return n?(0,au.sprintf)((0,au.__)("Details. %s"),o):(0,au.__)("Details. Empty.")},save:DA,edit:IA,transforms:EA};window.__experimentalContentOnlyInspectorFields&&(nx[Fce]=[{id:"summary",label:(0,au.__)("Summary"),type:"richtext"}],nx[jce]={fields:["summary"]});var Oce=()=>D({name:LA,metadata:rx,settings:nx});var TT={};$(TT,{init:()=>eue,metadata:()=>Fl,name:()=>vV,settings:()=>bV});var Qm=r(B()),$l=r(L()),ix=r(S());var _i=r(h());function Uce(e){return e?(0,Qm.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,Qm.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var Gce=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:o,allowResponsive:a,toggleResponsive:n,switchBackToURLInput:i})=>{let l=G();return(0,_i.jsxs)(_i.Fragment,{children:[(0,_i.jsx)(ix.BlockControls,{children:(0,_i.jsx)($l.ToolbarGroup,{children:t&&(0,_i.jsx)($l.ToolbarButton,{className:"components-toolbar__control",label:(0,Qm.__)("Edit URL"),icon:xm,onClick:i})})}),o&&e&&(0,_i.jsx)(ix.InspectorControls,{children:(0,_i.jsx)($l.__experimentalToolsPanel,{label:(0,Qm.__)("Media settings"),resetAll:()=>{n(!0)},dropdownMenuProps:l,children:(0,_i.jsx)($l.__experimentalToolsPanelItem,{label:(0,Qm.__)("Media settings"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>{n(!a)},children:(0,_i.jsx)($l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Qm.__)("Resize for smaller devices"),checked:a,help:Uce,onChange:n})})})})]})},RA=Gce;var be=r(L()),_e=r(h()),Yi=(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsx)(be.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})}),lx=(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsx)(be.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})}),_T=(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsx)(be.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})}),Ud=(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,_e.jsx)(be.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})}),HA={foreground:"#000000",src:(0,_e.jsx)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_e.jsx)(be.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})})},zA={foreground:"#ff0000",src:(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,_e.jsx)(be.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})})},AA={foreground:"#3b5998",src:(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,_e.jsx)(be.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"})})},VA=(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,_e.jsx)(be.G,{children:(0,_e.jsx)(be.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"})})}),FA={foreground:"#0073AA",src:(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,_e.jsx)(be.G,{children:(0,_e.jsx)(be.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})})})},jA={foreground:"#1db954",src:(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,_e.jsx)(be.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"})})},OA=(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,_e.jsx)(be.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})}),UA={foreground:"#1ab7ea",src:(0,_e.jsx)(be.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,_e.jsx)(be.G,{children:(0,_e.jsx)(be.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})})})},GA=(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,_e.jsx)(be.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})}),$A={foreground:"#35465c",src:(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,_e.jsx)(be.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"})})},WA=(0,_e.jsxs)(be.SVG,{viewBox:"0 0 24 24",children:[(0,_e.jsx)(be.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),(0,_e.jsx)(be.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),(0,_e.jsx)(be.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})]}),qA=(0,_e.jsxs)(be.SVG,{viewBox:"0 0 24 24",children:[(0,_e.jsx)(be.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,_e.jsx)(be.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),(0,_e.jsx)(be.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,_e.jsx)(be.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),(0,_e.jsx)(be.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,_e.jsx)(be.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})]}),ZA=(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,_e.jsx)(be.Path,{d:"M11.903 16.568c-1.82 0-3.124-1.281-3.124-2.967a2.987 2.987 0 0 1 2.989-2.989c1.663 0 2.944 1.304 2.944 3.034 0 1.663-1.281 2.922-2.81 2.922ZM17.997 3l-3.308.73v5.107c-.809-1.034-2.045-1.37-3.505-1.37-1.529 0-2.9.561-4.023 1.662-1.259 1.214-1.933 2.764-1.933 4.495 0 1.888.72 3.506 2.113 4.742 1.056.944 2.314 1.415 3.775 1.415 1.438 0 2.517-.382 3.573-1.415v1.415h3.308V3Z",fill:"#333436"})}),KA=(0,_e.jsx)(be.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_e.jsx)(be.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})}),QA=(0,_e.jsx)(be.SVG,{viewBox:"0 0 44 44",children:(0,_e.jsx)(be.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"})}),YA={foreground:"#f43e37",src:(0,_e.jsxs)(be.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,_e.jsx)(be.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,_e.jsx)(be.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"})]})},XA=(0,_e.jsx)(be.SVG,{viewBox:"0 0 24 24",children:(0,_e.jsx)(be.Path,{fill:"#0a7aff",d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var JA=r(L()),xT=r(h()),$ce=()=>(0,xT.jsx)("div",{className:"wp-block-embed is-loading",children:(0,xT.jsx)(JA.Spinner,{})}),eV=$ce;var Wl=r(B()),en=r(L()),tV=r(S()),Ja=r(h()),Wce=({icon:e,label:t,value:o,onSubmit:a,onChange:n,cannotEmbed:i,fallback:l,tryAgain:s})=>(0,Ja.jsxs)(en.Placeholder,{icon:(0,Ja.jsx)(tV.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,Wl.__)("Paste a link to the content you want to display on your site."),children:[(0,Ja.jsxs)("form",{onSubmit:a,children:[(0,Ja.jsx)(en.__experimentalInputControl,{__next40pxDefaultSize:!0,type:"url",value:o||"",className:"wp-block-embed__placeholder-input",label:t,hideLabelFromVision:!0,placeholder:(0,Wl.__)("Enter URL to embed here\u2026"),onChange:n}),(0,Ja.jsx)(en.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,Wl._x)("Embed","button label")})]}),(0,Ja.jsx)("div",{className:"wp-block-embed__learn-more",children:(0,Ja.jsx)(en.ExternalLink,{href:(0,Wl.__)("https://wordpress.org/documentation/article/embeds/"),children:(0,Wl.__)("Learn more about embeds")})}),i&&(0,Ja.jsxs)(en.__experimentalVStack,{spacing:3,className:"components-placeholder__error",children:[(0,Ja.jsx)("div",{className:"components-placeholder__instructions",children:(0,Wl.__)("Sorry, this content could not be embedded.")}),(0,Ja.jsxs)(en.__experimentalHStack,{expanded:!1,spacing:3,justify:"flex-start",children:[(0,Ja.jsx)(en.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:s,children:(0,Wl._x)("Try again","button label")})," ",(0,Ja.jsx)(en.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:l,children:(0,Wl._x)("Convert to link","button label")})]})]})]}),oV=Wce;var $d=r(B()),cx=r(L()),aV=r(S()),nV=r(F()),iV=r(ko());var sx=r(xe()),Gd=r(F()),kT=r(h()),qce={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function rV({html:e}){let t=(0,Gd.useRef)(),o=(0,Gd.useMemo)(()=>{let n=new window.DOMParser().parseFromString(e,"text/html").querySelector("iframe"),i={};return n&&Array.from(n.attributes).forEach(({name:l,value:s})=>{l!=="style"&&(i[qce[l]||l]=s)}),i},[e]);return(0,Gd.useEffect)(()=>{let{ownerDocument:a}=t.current,{defaultView:n}=a;function i({data:{secret:l,message:s,value:c}={}}){s!=="height"||l!==o["data-secret"]||(t.current.height=c)}return n.addEventListener("message",i),()=>{n.removeEventListener("message",i)}},[]),(0,kT.jsx)("div",{className:"wp-block-embed__wrapper",children:(0,kT.jsx)("iframe",{ref:(0,sx.useMergeRefs)([t,(0,sx.useFocusableIframe)()]),title:o.title,...o})})}var tn=r(h());function lV({preview:e,previewable:t,url:o,type:a,isSelected:n,className:i,icon:l,label:s}){let[c,u]=(0,nV.useState)(!1);!n&&c&&u(!1);let m=()=>{u(!0)},{scripts:p}=e,d=a==="photo"?qM(e):e.html,f=(0,iV.getAuthority)(o),g=(0,$d.sprintf)((0,$d.__)("Embedded content from %s"),f),v=k(a,i,"wp-block-embed__wrapper");return(0,tn.jsx)(tn.Fragment,{children:t?a==="wp-embed"?(0,tn.jsx)(rV,{html:d}):(0,tn.jsxs)("div",{className:"wp-block-embed__wrapper",children:[(0,tn.jsx)(cx.SandBox,{html:d,scripts:p,title:g,type:v,onFocus:m}),!c&&(0,tn.jsx)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:m})]}):(0,tn.jsxs)(cx.Placeholder,{icon:(0,tn.jsx)(aV.BlockIcon,{icon:l,showColors:!0}),label:s,children:[(0,tn.jsx)("p",{className:"components-placeholder__error",children:(0,tn.jsx)("a",{href:o,children:o})}),(0,tn.jsx)("p",{className:"components-placeholder__error",children:(0,$d.sprintf)((0,$d.__)("Embedded content from %s can't be previewed in the editor."),f)})]})})}var Xm=r(B()),Ym=r(F()),ux=r(z()),sV=r(S()),wT=r(Y()),CT=r(E()),cV=r(ko());var zn=r(h()),Zce=e=>{let{attributes:{providerNameSlug:t,previewable:o,responsive:a,url:n},attributes:i,isSelected:l,onReplace:s,setAttributes:c,insertBlocksAfter:u,onFocus:m}=e,p={title:(0,Xm._x)("Embed","block title"),icon:Yi},{icon:d,title:f}=$M(t)||p,[g,v]=(0,Ym.useState)(n),[b,y]=(0,Ym.useState)(!1),{invalidateResolution:_}=(0,ux.useDispatch)(wT.store),{preview:x,fetching:w,themeSupportsResponsive:C,cannotEmbed:T,hasResolved:N}=(0,ux.useSelect)(K=>{let{getEmbedPreview:Z,isPreviewEmbedFallback:te,isRequestingEmbedPreview:X,getThemeSupports:J,hasFinishedResolution:ee}=K(wT.store);if(!n)return{fetching:!1,cannotEmbed:!1};let ne=Z(n),oe=te(n),ce=ne?.html===!1&&ne?.type===void 0,pe=ne?.data?.status===404,Ne=!!ne&&!ce&&!pe;return{preview:Ne?ne:void 0,fetching:X(n),themeSupportsResponsive:J()["responsive-embeds"],cannotEmbed:!Ne||oe,hasResolved:ee("getEmbedPreview",[n])}},[n]),P=()=>KM(i,x,f,a);function M(K){let{className:Z}=i,{html:te}=x;c({allowResponsive:K,className:oS(te,Z,a&&K)})}(0,Ym.useEffect)(()=>{if(x?.html||!T||!N)return;let K=n.replace(/\/$/,"");v(K),y(!1),c({url:K})},[x?.html,n,T,N,c]),(0,Ym.useEffect)(()=>{if(!(!T||w||!g)&&(0,cV.getAuthority)(g)==="x.com"){let K=new URL(g);K.host="twitter.com",c({url:K.toString()})}},[g,T,w,c]),(0,Ym.useEffect)(()=>{if(x&&!b){let K=P();if(Object.keys(K).some(te=>K[te]!==i[te])&&c(K),s){let te=Vc(e,K);te&&s(te)}}},[x,b]);let R=(0,sV.useBlockProps)();if(w)return(0,zn.jsx)(CT.View,{...R,children:(0,zn.jsx)(eV,{})});let H=(0,Xm.sprintf)((0,Xm.__)("%s URL"),f);if(!x||T||b)return(0,zn.jsx)(CT.View,{...R,children:(0,zn.jsx)(oV,{icon:d,label:H,onFocus:m,onSubmit:K=>{K&&K.preventDefault();let Z=Cm(i.className);y(!1),c({url:g,className:Z})},value:g,cannotEmbed:T,onChange:K=>v(K),fallback:()=>ZM(g,s),tryAgain:()=>{_("getEmbedPreview",[g])}})});let{caption:A,type:I,allowResponsive:V,className:W}=P(),j=k(W,e.className);return(0,zn.jsxs)(zn.Fragment,{children:[(0,zn.jsx)(RA,{showEditButton:x&&!T,themeSupportsResponsive:C,blockSupportsResponsive:a,allowResponsive:V,toggleResponsive:M,switchBackToURLInput:()=>y(!0)}),(0,zn.jsxs)("figure",{...R,className:k(R.className,j,{[`is-type-${I}`]:I,[`is-provider-${t}`]:t,[`wp-block-embed-${t}`]:t}),children:[(0,zn.jsx)(lV,{preview:x,previewable:o,className:j,url:g,type:I,caption:A,onCaptionChange:K=>c({caption:K}),isSelected:l,icon:d,label:H,insertBlocksAfter:u,attributes:i,setAttributes:c}),(0,zn.jsx)(Wa,{attributes:i,setAttributes:c,isSelected:l,insertBlocksAfter:u,label:(0,Xm.__)("Embed caption text"),showToolbarButton:l})]})]})},uV=Zce;var Jm=r(S()),R0=r(h());function mV({attributes:e}){let{url:t,caption:o,type:a,providerNameSlug:n}=e;if(!t)return null;let i=k("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,R0.jsxs)("figure",{...Jm.useBlockProps.save({className:i}),children:[(0,R0.jsx)("div",{className:"wp-block-embed__wrapper",children:` |
| 9 |
${t} |
| 10 |
`}),!Jm.RichText.isEmpty(o)&&(0,R0.jsx)(Jm.RichText.Content,{className:(0,Jm.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})}var ST=r(U());var{name:Kce}=Fl,Qce={from:[{type:"raw",isMatch:e=>e.nodeName==="P"&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&e.textContent?.match(/https/gi)?.length===1,transform:e=>(0,ST.createBlock)(Kce,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t,className:o})=>{let a=`<a href="${e}">${e}</a>`;return t?.trim()&&(a+=`<br />${t}`),(0,ST.createBlock)("core/paragraph",{content:a,className:Cm(o)})}}]},pV=Qce;var ue=r(B());function at(e){return(0,ue.sprintf)((0,ue.__)("%s Embed"),e)}var dV=[{name:"twitter",title:at("X"),icon:HA,keywords:["x","twitter","tweet",(0,ue.__)("social")],description:(0,ue.__)("Embed an X post."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:at("YouTube"),icon:zA,keywords:[(0,ue.__)("music"),(0,ue.__)("video")],description:(0,ue.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:at("Facebook"),icon:AA,keywords:[(0,ue.__)("social")],description:(0,ue.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:at("Instagram"),icon:VA,keywords:[(0,ue.__)("image"),(0,ue.__)("social")],description:(0,ue.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:at("WordPress"),icon:FA,keywords:[(0,ue.__)("post"),(0,ue.__)("blog")],description:(0,ue.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:at("SoundCloud"),icon:lx,keywords:[(0,ue.__)("music"),(0,ue.__)("audio")],description:(0,ue.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:at("Spotify"),icon:jA,keywords:[(0,ue.__)("music"),(0,ue.__)("audio")],description:(0,ue.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:at("Flickr"),icon:OA,keywords:[(0,ue.__)("image")],description:(0,ue.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:at("Vimeo"),icon:UA,keywords:[(0,ue.__)("video")],description:(0,ue.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:at("Animoto"),icon:qA,description:(0,ue.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:at("Cloudup"),icon:Yi,description:(0,ue.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:at("CollegeHumor"),icon:Ud,description:(0,ue.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:at("Crowdsignal"),icon:Yi,keywords:["polldaddy",(0,ue.__)("survey")],description:(0,ue.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:at("Dailymotion"),icon:ZA,keywords:[(0,ue.__)("video")],description:(0,ue.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:at("Imgur"),icon:_T,description:(0,ue.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:at("Issuu"),icon:Yi,description:(0,ue.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:at("Kickstarter"),icon:Yi,description:(0,ue.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:at("Mixcloud"),icon:lx,keywords:[(0,ue.__)("music"),(0,ue.__)("audio")],description:(0,ue.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:at("Pocket Casts"),icon:YA,keywords:[(0,ue.__)("podcast"),(0,ue.__)("audio")],description:(0,ue.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:at("Reddit"),icon:GA,description:(0,ue.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:at("ReverbNation"),icon:lx,description:(0,ue.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"scribd",title:at("Scribd"),icon:Yi,description:(0,ue.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"smugmug",title:at("SmugMug"),icon:_T,description:(0,ue.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:at("Speaker Deck"),icon:Yi,description:(0,ue.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:at("TikTok"),icon:Ud,keywords:[(0,ue.__)("video")],description:(0,ue.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:at("TED"),icon:Ud,description:(0,ue.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:at("Tumblr"),icon:$A,keywords:[(0,ue.__)("social")],description:(0,ue.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:at("VideoPress"),icon:Ud,keywords:[(0,ue.__)("video")],description:(0,ue.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:at("WordPress.tv"),icon:Ud,description:(0,ue.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:at("Amazon Kindle"),icon:WA,keywords:[(0,ue.__)("ebook")],description:(0,ue.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:at("Pinterest"),icon:KA,keywords:[(0,ue.__)("social"),(0,ue.__)("bookmark")],description:(0,ue.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:at("Wolfram"),icon:QA,description:(0,ue.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}},{name:"bluesky",title:at("Bluesky"),icon:XA,description:(0,ue.__)("Embed a Bluesky post."),patterns:[/^https?:\/\/bsky\.app\/profile\/.+\/post\/.+/i],attributes:{providerNameSlug:"bluesky"}}];dV.forEach(e=>{e.isActive||(e.isActive=(t,o)=>t.providerNameSlug===o.providerNameSlug)});var fV=dV;var ep=r(S()),tp=r(h()),{attributes:gV}=Fl,Yce={attributes:gV,save({attributes:e}){let{url:t,caption:o,type:a,providerNameSlug:n}=e;if(!t)return null;let i=k("wp-block-embed",{[`is-type-${a}`]:a,[`is-provider-${n}`]:n,[`wp-block-embed-${n}`]:n});return(0,tp.jsxs)("figure",{...ep.useBlockProps.save({className:i}),children:[(0,tp.jsx)("div",{className:"wp-block-embed__wrapper",children:` |
| 11 |
${t} |
| 12 |
`}),!ep.RichText.isEmpty(o)&&(0,tp.jsx)(ep.RichText.Content,{tagName:"figcaption",value:o})]})}},Xce={attributes:gV,save({attributes:{url:e,caption:t,type:o,providerNameSlug:a}}){if(!e)return null;let n=k("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a});return(0,tp.jsxs)("figure",{className:n,children:[` |
| 13 |
${e} |
| 14 |
`,!ep.RichText.isEmpty(t)&&(0,tp.jsx)(ep.RichText.Content,{tagName:"figcaption",value:t})]})}},Jce=[Yce,Xce],hV=Jce;var{name:vV}=Fl,bV={icon:Yi,edit:uV,save:mV,transforms:pV,variations:fV,deprecated:hV},eue=()=>D({name:vV,metadata:Fl,settings:bV});var IT={};$(IT,{init:()=>mue,metadata:()=>dx,name:()=>EV,settings:()=>hx});var Zd=r(B());var DV=r(U());var Wo=r(S()),Xi=r(B()),Et=r(h()),tue={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:o,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=Wo.RichText.isEmpty(a)?(0,Xi.__)("PDF embed"):(0,Xi.sprintf)((0,Xi.__)("Embed of %s."),a),p=!Wo.RichText.isEmpty(a),d=p?o:void 0;return t&&(0,Et.jsxs)("div",{...Wo.useBlockProps.save(),children:[c&&(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,Et.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Et.jsx)(Wo.RichText.Content,{value:a})}),l&&(0,Et.jsx)("a",{href:t,className:k("wp-block-file__button",(0,Wo.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,Et.jsx)(Wo.RichText.Content,{value:s})})]})}},oue={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileId:o,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=Wo.RichText.isEmpty(a)?(0,Xi.__)("PDF embed"):(0,Xi.sprintf)((0,Xi.__)("Embed of %s."),a),p=!Wo.RichText.isEmpty(a),d=p?o:void 0;return t&&(0,Et.jsxs)("div",{...Wo.useBlockProps.save(),children:[c&&(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,Et.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,Et.jsx)(Wo.RichText.Content,{value:a})}),l&&(0,Et.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":d,children:(0,Et.jsx)(Wo.RichText.Content,{value:s})})]})}},rue={attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){let{href:t,fileName:o,textLinkHref:a,textLinkTarget:n,showDownloadButton:i,downloadButtonText:l,displayPreview:s,previewHeight:c}=e,u=Wo.RichText.isEmpty(o)?(0,Xi.__)("PDF embed"):(0,Xi.sprintf)((0,Xi.__)("Embed of %s."),o);return t&&(0,Et.jsxs)("div",{...Wo.useBlockProps.save(),children:[s&&(0,Et.jsx)(Et.Fragment,{children:(0,Et.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})}),!Wo.RichText.isEmpty(o)&&(0,Et.jsx)("a",{href:a,target:n,rel:n?"noreferrer noopener":void 0,children:(0,Et.jsx)(Wo.RichText.Content,{value:o})}),i&&(0,Et.jsx)("a",{href:t,className:"wp-block-file__button",download:!0,children:(0,Et.jsx)(Wo.RichText.Content,{value:l})})]})}},aue=[tue,oue,rue],yV=aue;var PT=r(Po()),qd=r(L()),Wd=r(z()),ur=r(S()),px=r(F()),CV=r(xe()),Ji=r(B());var SV=r(Y()),NT=r(No()),TV=r(ko());var Tr=r(B()),Br=r(L()),_V=r(S());var cr=r(h());function xV({hrefs:e,openInNewWindow:t,showDownloadButton:o,changeLinkDestinationOption:a,changeOpenInNewWindow:n,changeShowDownloadButton:i,displayPreview:l,changeDisplayPreview:s,previewHeight:c,changePreviewHeight:u}){let{href:m,textLinkHref:p,attachmentPage:d}=e,f=G(),g=[{value:m,label:(0,Tr.__)("URL")}];return d&&(g=[{value:m,label:(0,Tr.__)("Media file")},{value:d,label:(0,Tr.__)("Attachment page")}]),(0,cr.jsx)(cr.Fragment,{children:(0,cr.jsxs)(_V.InspectorControls,{children:[m.endsWith(".pdf")&&(0,cr.jsxs)(Br.__experimentalToolsPanel,{label:(0,Tr.__)("PDF settings"),resetAll:()=>{s(!0),u(600)},dropdownMenuProps:f,children:[(0,cr.jsx)(Br.__experimentalToolsPanelItem,{label:(0,Tr.__)("Show inline embed"),isShownByDefault:!0,hasValue:()=>!l,onDeselect:()=>s(!0),children:(0,cr.jsx)(Br.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Tr.__)("Show inline embed"),help:l?(0,Tr.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:s})}),l&&(0,cr.jsx)(Br.__experimentalToolsPanelItem,{label:(0,Tr.__)("Height in pixels"),isShownByDefault:!0,hasValue:()=>c!==600,onDeselect:()=>u(600),children:(0,cr.jsx)(Br.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Tr.__)("Height in pixels"),min:mx,max:Math.max(BT,c),value:c,onChange:u})})]}),(0,cr.jsxs)(Br.__experimentalToolsPanel,{label:(0,Tr.__)("Settings"),resetAll:()=>{a(m),n(!1),i(!0)},dropdownMenuProps:f,children:[(0,cr.jsx)(Br.__experimentalToolsPanelItem,{label:(0,Tr.__)("Link to"),isShownByDefault:!0,hasValue:()=>p!==m,onDeselect:()=>a(m),children:(0,cr.jsx)(Br.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Tr.__)("Link to"),value:p,options:g,onChange:a})}),(0,cr.jsx)(Br.__experimentalToolsPanelItem,{label:(0,Tr.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>n(!1),children:(0,cr.jsx)(Br.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Tr.__)("Open in new tab"),checked:t,onChange:n})}),(0,cr.jsx)(Br.__experimentalToolsPanelItem,{label:(0,Tr.__)("Show download button"),isShownByDefault:!0,hasValue:()=>!o,onDeselect:()=>i(!0),children:(0,cr.jsx)(Br.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Tr.__)("Show download button"),checked:o,onChange:i})})]})]})})}var wV=()=>window.navigator.pdfViewerEnabled?!0:!(window.navigator.userAgent.indexOf("Mobi")>-1||window.navigator.userAgent.indexOf("Android")>-1||window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2||(window.ActiveXObject||"ActiveXObject"in window)&&!(kV("AcroPDF.PDF")||kV("PDF.PdfCtrl"))),kV=e=>{let t;try{t=new window.ActiveXObject(e)}catch{t=void 0}return t};var Co=r(h()),mx=200,BT=2e3;function nue({text:e,disabled:t}){let{createNotice:o}=(0,Wd.useDispatch)(NT.store),a=(0,CV.useCopyToClipboard)(e,()=>{o("info",(0,Ji.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})});return(0,Co.jsx)(qd.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:a,disabled:t,children:(0,Ji.__)("Copy URL")})}function iue({attributes:e,isSelected:t,setAttributes:o,clientId:a}){let{id:n,fileName:i,href:l,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:m,displayPreview:p,previewHeight:d}=e,[f,g]=(0,px.useState)(e.blob),{media:v}=(0,Wd.useSelect)(I=>({media:n===void 0?void 0:I(SV.store).getEntityRecord("postType","attachment",n)}),[n]),{createErrorNotice:b}=(0,Wd.useDispatch)(NT.store),{toggleSelection:y,__unstableMarkNextChangeAsNotPersistent:_}=(0,Wd.useDispatch)(ur.store);Lc({url:f,onChange:x,onError:w}),(0,px.useEffect)(()=>{ur.RichText.isEmpty(m)&&(_(),o({downloadButtonText:(0,Ji._x)("Download","button label")}))},[]);function x(I){if(!I||!I.url){o({href:void 0,fileName:void 0,textLinkHref:void 0,id:void 0,fileId:void 0,displayPreview:void 0,previewHeight:void 0}),g();return}if((0,PT.isBlobURL)(I.url)){g(I.url);return}let V=(I.mime||I.mime_type)==="application/pdf"||(0,TV.getFilename)(I.url).toLowerCase().endsWith(".pdf"),W={displayPreview:V?e.displayPreview??!0:void 0,previewHeight:V?e.previewHeight??600:void 0};o({href:I.url,fileName:I.title,textLinkHref:I.url,id:I.id,fileId:`wp-block-file--media-${a}`,blob:void 0,...W}),g()}function w(I){o({href:void 0}),b(I,{type:"snackbar"})}function C(I){o({textLinkHref:I})}function T(I){o({textLinkTarget:I?"_blank":!1})}function N(I){o({showDownloadButton:I})}function P(I){o({displayPreview:I})}function M(I,V,W,j){y(!0);let K=parseInt(d+j.height,10);o({previewHeight:K})}function R(I){let V=Math.max(parseInt(I,10),mx);o({previewHeight:V})}let H=v&&v.link,O=(0,ur.useBlockProps)({className:k(!!f&&(0,qd.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":!!f})}),A=wV()&&p;return!l&&!f?(0,Co.jsx)("div",{...O,children:(0,Co.jsx)(ur.MediaPlaceholder,{icon:(0,Co.jsx)(ur.BlockIcon,{icon:yh}),labels:{title:(0,Ji.__)("File"),instructions:(0,Ji.__)("Drag and drop a file, upload, or choose from your library.")},onSelect:x,onError:w,accept:"*"})}):(0,Co.jsxs)(Co.Fragment,{children:[(0,Co.jsx)(xV,{hrefs:{href:l||f,textLinkHref:s,attachmentPage:H},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:C,changeOpenInNewWindow:T,changeShowDownloadButton:N,displayPreview:p,changeDisplayPreview:P,previewHeight:d,changePreviewHeight:R}),(0,Co.jsxs)(ur.BlockControls,{group:"other",children:[(0,Co.jsx)(ur.MediaReplaceFlow,{mediaId:n,mediaURL:l,accept:"*",onSelect:x,onError:w,onReset:()=>x(void 0)}),(0,Co.jsx)(nue,{text:l,disabled:(0,PT.isBlobURL)(l)})]}),(0,Co.jsxs)("div",{...O,children:[A&&(0,Co.jsxs)(qd.ResizableBox,{size:{height:d,width:"100%"},minHeight:mx,maxHeight:BT,grid:[1,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>y(!1),onResizeStop:M,showHandle:t,children:[(0,Co.jsx)("object",{className:"wp-block-file__preview",data:l,type:"application/pdf","aria-label":(0,Ji.__)("Embed of the selected PDF file.")}),!t&&(0,Co.jsx)("div",{className:"wp-block-file__preview-overlay"})]}),(0,Co.jsxs)("div",{className:"wp-block-file__content-wrapper",children:[(0,Co.jsx)(ur.RichText,{identifier:"fileName",tagName:"a",value:i,placeholder:(0,Ji.__)("Write file name\u2026"),withoutInteractiveFormatting:!0,onChange:I=>o({fileName:p0(I)}),href:s}),u&&(0,Co.jsx)("div",{className:"wp-block-file__button-richtext-wrapper",children:(0,Co.jsx)(ur.RichText,{identifier:"downloadButtonText",tagName:"div","aria-label":(0,Ji.__)("Download button text"),className:k("wp-block-file__button",(0,ur.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,Ji.__)("Add text\u2026"),onChange:I=>o({downloadButtonText:p0(I)})})})]})]})]})}var BV=iue;var dx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},blob:{type:"string",role:"local"},href:{type:"string",role:"content"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"rich-text",source:"rich-text",selector:"a:not([download])",role:"content"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href",role:"content"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"rich-text",source:"rich-text",selector:"a[download]",role:"content"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:!0},editorStyle:"wp-block-file-editor",style:"wp-block-file"};var Ks=r(S()),el=r(h());function PV({attributes:e}){let{href:t,fileId:o,fileName:a,textLinkHref:n,textLinkTarget:i,showDownloadButton:l,downloadButtonText:s,displayPreview:c,previewHeight:u}=e,m=Ks.RichText.isEmpty(a)?"PDF embed":a.toString(),p=!Ks.RichText.isEmpty(a),d=p?o:void 0;return t&&(0,el.jsxs)("div",{...Ks.useBlockProps.save(),children:[c&&(0,el.jsx)(el.Fragment,{children:(0,el.jsx)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${u}px`},"aria-label":m})}),p&&(0,el.jsx)("a",{id:d,href:n,target:i,rel:i?"noreferrer noopener":void 0,children:(0,el.jsx)(Ks.RichText.Content,{value:a})}),l&&(0,el.jsx)("a",{href:t,className:k("wp-block-file__button",(0,Ks.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":d,children:(0,el.jsx)(Ks.RichText.Content,{value:s})})]})}var H0=r(Po()),tl=r(U()),fx=r(z()),gx=r(Y()),NV=r(ko()),sue={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{let t=[];return e.forEach(o=>{let a=(0,H0.createBlobURL)(o);o.type.startsWith("video/")?t.push((0,tl.createBlock)("core/video",{blob:(0,H0.createBlobURL)(o)})):o.type.startsWith("image/")?t.push((0,tl.createBlock)("core/image",{blob:(0,H0.createBlobURL)(o)})):o.type.startsWith("audio/")?t.push((0,tl.createBlock)("core/audio",{blob:(0,H0.createBlobURL)(o)})):t.push((0,tl.createBlock)("core/file",{blob:a,fileName:o.name}))}),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,tl.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,tl.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,tl.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,NV.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,fx.select)(gx.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("audio")},transform:e=>(0,tl.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,fx.select)(gx.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("video")},transform:e=>(0,tl.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;let{getEntityRecord:t}=(0,fx.select)(gx.store),o=t("postType","attachment",e);return!!o&&o.mime_type.includes("image")},transform:e=>(0,tl.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]},IV=sue;var{fieldsKey:cue,formKey:uue}=Q(DV.privateApis),{name:EV}=dx,hx={icon:yh,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,Zd._x)("Armstrong_Small_Step","Name of the file")}},transforms:IV,deprecated:yV,edit:BV,save:PV};window.__experimentalContentOnlyInspectorFields&&(hx[cue]=[{id:"file",label:(0,Zd.__)("File"),type:"media",mapping:{id:"id",url:"href"},args:{allowedTypes:[],multiple:!1}},{id:"fileName",label:(0,Zd.__)("Filename"),type:"richtext"},{id:"downloadButtonText",label:(0,Zd.__)("Button Text"),type:"richtext"}],hx[uue]={fields:["file"]});var mue=()=>D({name:EV,metadata:dx,settings:hx});var LT={};$(LT,{init:()=>vue,metadata:()=>yx,name:()=>VV,settings:()=>FV});var mr=r(B()),ol=r(S()),rl=r(L()),MV=r(z());var DT=r(B()),vx=["core/form-submission-notification",{type:"success"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#345C00" class="has-inline-color">'+(0,DT.__)("Your form has been submitted successfully")+"</mark>"}]]],bx=["core/form-submission-notification",{type:"error"},[["core/paragraph",{content:'<mark style="background-color:rgba(0, 0, 0, 0);color:#CF2E2E" class="has-inline-color">'+(0,DT.__)("There was an error submitting your form.")+"</mark>"}]]];var Ca=r(h()),pue=[vx,bx,["core/form-input",{type:"text",label:(0,mr.__)("Name"),required:!0}],["core/form-input",{type:"email",label:(0,mr.__)("Email"),required:!0}],["core/form-input",{type:"textarea",label:(0,mr.__)("Comment"),required:!0}],["core/form-submit-button",{}]],due=({attributes:e,setAttributes:t,clientId:o})=>{let a=G(),n=()=>{t({submissionMethod:"email",email:void 0,action:void 0,method:"post"})},{action:i,method:l,email:s,submissionMethod:c}=e,u=(0,ol.useBlockProps)(),{hasInnerBlocks:m}=(0,MV.useSelect)(d=>{let{getBlock:f}=d(ol.store),g=f(o);return{hasInnerBlocks:!!(g&&g.innerBlocks.length)}},[o]),p=(0,ol.useInnerBlocksProps)(u,{template:pue,renderAppender:m?void 0:ol.InnerBlocks.ButtonBlockAppender});return(0,Ca.jsxs)(Ca.Fragment,{children:[(0,Ca.jsx)(ol.InspectorControls,{children:(0,Ca.jsxs)(rl.__experimentalToolsPanel,{dropdownMenuProps:a,label:(0,mr.__)("Settings"),resetAll:n,children:[(0,Ca.jsx)(rl.__experimentalToolsPanelItem,{hasValue:()=>c!=="email",label:(0,mr.__)("Submissions method"),onDeselect:()=>t({submissionMethod:"email"}),isShownByDefault:!0,children:(0,Ca.jsx)(rl.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,mr.__)("Submissions method"),options:[{label:(0,mr.__)("Send email"),value:"email"},{label:(0,mr.__)("- Custom -"),value:"custom"}],value:c,onChange:d=>t({submissionMethod:d}),help:c==="custom"?(0,mr.__)('Select the method to use for form submissions. Additional options for the "custom" mode can be found in the "Advanced" section.'):(0,mr.__)("Select the method to use for form submissions.")})}),c==="email"&&(0,Ca.jsx)(rl.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,mr.__)("Email for form submissions"),onDeselect:()=>t({email:void 0,action:void 0,method:"post"}),isShownByDefault:!0,children:(0,Ca.jsx)(rl.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:"off",label:(0,mr.__)("Email for form submissions"),value:s||"",required:!0,onChange:d=>{t({email:d}),t({action:`mailto:${d}`}),t({method:"post"})},help:(0,mr.__)("The email address where form submissions will be sent. Separate multiple email addresses with a comma."),type:"email"})})]})}),c!=="email"&&(0,Ca.jsxs)(ol.InspectorControls,{group:"advanced",children:[(0,Ca.jsx)(rl.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,mr.__)("Method"),options:[{label:"Get",value:"get"},{label:"Post",value:"post"}],value:l,onChange:d=>t({method:d}),help:(0,mr.__)("Select the method to use for form submissions.")}),(0,Ca.jsx)(rl.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,mr.__)("Form action"),value:i,onChange:d=>{t({action:d})},help:(0,mr.__)("The URL where the form should be submitted."),type:"url"})]}),(0,Ca.jsx)("form",{...p,encType:c==="email"?"text/plain":null})]})},LV=due;var yx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form",title:"Form",category:"common",allowedBlocks:["core/paragraph","core/heading","core/form-input","core/form-submit-button","core/form-submission-notification","core/group","core/columns"],description:"A form.",keywords:["container","wrapper","row","section"],textdomain:"default",icon:"feedback",attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}}};var _x=r(S()),ET=r(h());function RV({attributes:e}){let t=_x.useBlockProps.save(),{submissionMethod:o}=e;return(0,ET.jsx)("form",{...t,encType:o==="email"?"text/plain":null,children:(0,ET.jsx)(_x.InnerBlocks.Content,{})})}var xi=r(B());var gue=[{name:"comment-form",title:(0,xi.__)("Experimental Comment form"),description:(0,xi.__)("A comment form for posts and pages."),attributes:{submissionMethod:"custom",action:"{SITE_URL}/wp-comments-post.php",method:"post",anchor:"comment-form"},isDefault:!1,innerBlocks:[["core/form-input",{type:"text",name:"author",label:(0,xi.__)("Name"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"email",name:"email",label:(0,xi.__)("Email"),required:!0,visibilityPermissions:"logged-out"}],["core/form-input",{type:"textarea",name:"comment",label:(0,xi.__)("Comment"),required:!0,visibilityPermissions:"all"}],["core/form-submit-button",{}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"wp-privacy-form",title:(0,xi.__)("Experimental Privacy Request Form"),keywords:["GDPR"],description:(0,xi.__)("A form to request data exports and/or deletion."),attributes:{submissionMethod:"custom",action:"",method:"post",anchor:"gdpr-form"},isDefault:!1,innerBlocks:[vx,bx,["core/paragraph",{content:(0,xi.__)("To request an export or deletion of your personal data on this site, please fill-in the form below. You can define the type of request you wish to perform, and your email address. Once the form is submitted, you will receive a confirmation email with instructions on the next steps.")}],["core/form-input",{type:"email",name:"email",label:(0,xi.__)("Enter your email address."),required:!0,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"export_personal_data",label:(0,xi.__)("Request data export"),required:!1,visibilityPermissions:"all"}],["core/form-input",{type:"checkbox",name:"remove_personal_data",label:(0,xi.__)("Request data deletion"),required:!1,visibilityPermissions:"all"}],["core/form-submit-button",{}],["core/form-input",{type:"hidden",name:"wp-action",value:"wp_privacy_send_request"}],["core/form-input",{type:"hidden",name:"wp-privacy-request",value:"1"}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"}],HV=gue;var ql=r(S()),MT=r(h()),hue={supports:{},attributes:{submissionMethod:{type:"string",default:"email"},method:{type:"string",default:"post"},action:{type:"string"},email:{type:"string"},anchor:{type:"string",source:"attribute",attribute:"id",selector:"*"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},fontFamily:{type:"string"},fontSize:{type:"string"}},save({attributes:e}){let{submissionMethod:t}=e,o=(0,ql.__experimentalGetColorClassesAndStyles)(e),a=(0,ql.getTypographyClassesAndStyles)(e),n=(0,ql.__experimentalGetSpacingClassesAndStyles)(e),i=ql.useBlockProps.save({style:{...o.style,...a.style,...n.style},id:e.anchor});return(0,MT.jsx)("form",{...i,className:"wp-block-form",encType:t==="email"?"text/plain":null,children:(0,MT.jsx)(ql.InnerBlocks.Content,{})})}},zV=[hue];var AV=r(eu()),{name:VV}=yx,FV={edit:LV,save:RV,deprecated:zV,variations:HV,example:{}},vue=()=>{let e=["core/form"];return(0,AV.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/preventInsertingFormIntoAnotherForm",(t,o,a,{getBlock:n,getBlockParentsByBlockName:i})=>{if(o.name!=="core/form")return t;for(let l of e)if(n(a)?.name===l||i(a,l).length)return!1;return!0}),D({name:VV,metadata:yx,settings:FV})};var RT={};$(RT,{init:()=>Nue,metadata:()=>kx,name:()=>tF,settings:()=>oF});var $V=r(z0()),al=r(S()),WV=r(Qs()),An=r(h()),qV=e=>(0,$V.default)((0,WV.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),kue={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:o,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,al.__experimentalGetBorderClassesAndStyles)(e),u=(0,al.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=k("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=al.useBlockProps.save();return t==="hidden"?(0,An.jsx)("input",{type:t,name:o,value:s}):(0,An.jsx)("div",{...f,children:(0,An.jsxs)("label",{className:k("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,An.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,An.jsx)(al.RichText.Content,{value:a})}),(0,An.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:o||qV(a),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})})}},wue={attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"string",default:"Label",selector:".wp-block-form-input__label-content",source:"html",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{className:!1,anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},save({attributes:e}){let{type:t,name:o,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,al.__experimentalGetBorderClassesAndStyles)(e),u=(0,al.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=k("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input";return t==="hidden"?(0,An.jsx)("input",{type:t,name:o,value:s}):(0,An.jsxs)("label",{className:k("wp-block-form-input__label",{"is-label-inline":n}),children:[(0,An.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,An.jsx)(al.RichText.Content,{value:a})}),(0,An.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:o||qV(a),required:i,"aria-required":i,placeholder:l||void 0,style:m})]})}},Cue=[kue,wue],ZV=Cue;var on=r(B()),nl=r(S()),Zl=r(L()),KV=r(F());var Io=r(h());function Sue({attributes:e,setAttributes:t,className:o}){let{type:a,name:n,label:i,inlineLabel:l,required:s,placeholder:c,value:u}=e,m=(0,nl.useBlockProps)(),p=G(),d=(0,KV.useRef)(),f=a==="textarea"?"textarea":"input",g=(0,nl.__experimentalUseBorderProps)(e),v=(0,nl.__experimentalUseColorProps)(e);d.current&&d.current.focus();let b=a==="checkbox"||a==="radio",y=(0,Io.jsxs)(Io.Fragment,{children:[a!=="hidden"&&(0,Io.jsx)(nl.InspectorControls,{children:(0,Io.jsxs)(Zl.__experimentalToolsPanel,{label:(0,on.__)("Settings"),resetAll:()=>{t({inlineLabel:!1,required:!1})},dropdownMenuProps:p,children:[a!=="checkbox"&&(0,Io.jsx)(Zl.__experimentalToolsPanelItem,{label:(0,on.__)("Inline label"),hasValue:()=>!!l,onDeselect:()=>t({inlineLabel:!1}),isShownByDefault:!0,children:(0,Io.jsx)(Zl.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,on.__)("Inline label"),checked:l,onChange:x=>{t({inlineLabel:x})}})}),(0,Io.jsx)(Zl.__experimentalToolsPanelItem,{label:(0,on.__)("Required"),hasValue:()=>!!s,onDeselect:()=>t({required:!1}),isShownByDefault:!0,children:(0,Io.jsx)(Zl.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,on.__)("Required"),checked:s,onChange:x=>{t({required:x})}})})]})}),(0,Io.jsx)(nl.InspectorControls,{group:"advanced",children:(0,Io.jsx)(Zl.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,on.__)("Name"),value:n,onChange:x=>{t({name:x})},help:(0,on.__)('Affects the "name" attribute of the input element, and is used as a name for the form submission results.')})})]}),_=(0,Io.jsx)(nl.RichText,{tagName:"span",className:"wp-block-form-input__label-content",value:i,onChange:x=>t({label:x}),"aria-label":i?(0,on.__)("Label"):(0,on.__)("Empty label"),"data-empty":!i,placeholder:(0,on.__)("Type the label for this input")});return a==="hidden"?(0,Io.jsxs)(Io.Fragment,{children:[y,(0,Io.jsx)("input",{type:"hidden",className:k(o,"wp-block-form-input__input",v.className,g.className),"aria-label":(0,on.__)("Value"),value:u,onChange:x=>t({value:x.target.value})})]}):(0,Io.jsxs)("div",{...m,children:[y,(0,Io.jsxs)("span",{className:k("wp-block-form-input__label",{"is-label-inline":l||a==="checkbox"}),children:[!b&&_,(0,Io.jsx)(f,{type:a==="textarea"?void 0:a,className:k(o,"wp-block-form-input__input",v.className,g.className),"aria-label":(0,on.__)("Optional placeholder text"),placeholder:c?void 0:(0,on.__)("Optional placeholder\u2026"),value:c,onChange:x=>t({placeholder:x.target.value}),"aria-required":s,style:{...g.style,...v.style}}),b&&_]})]})}var QV=Sue;var kx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-input",title:"Input Field",category:"common",ancestor:["core/form"],description:"The basic building block for forms.",keywords:["input","form"],textdomain:"default",icon:"forms",attributes:{type:{type:"string",default:"text"},name:{type:"string"},label:{type:"rich-text",default:"Label",selector:".wp-block-form-input__label-content",source:"rich-text",role:"content"},inlineLabel:{type:"boolean",default:!1},required:{type:"boolean",default:!1,selector:".wp-block-form-input__input",source:"attribute",attribute:"required"},placeholder:{type:"string",selector:".wp-block-form-input__input",source:"attribute",attribute:"placeholder",role:"content"},value:{type:"string",default:"",selector:"input",source:"attribute",attribute:"value"},visibilityPermissions:{type:"string",default:"all"}},supports:{anchor:!0,reusable:!1,spacing:{margin:["top","bottom"]},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}}},style:["wp-block-form-input"]};var YV=r(z0()),Ys=r(S()),XV=r(Qs()),Kl=r(h()),Bue=e=>(0,YV.default)((0,XV.__unstableStripHTML)(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,"");function JV({attributes:e}){let{type:t,name:o,label:a,inlineLabel:n,required:i,placeholder:l,value:s}=e,c=(0,Ys.__experimentalGetBorderClassesAndStyles)(e),u=(0,Ys.__experimentalGetColorClassesAndStyles)(e),m={...c.style,...u.style},p=k("wp-block-form-input__input",u.className,c.className),d=t==="textarea"?"textarea":"input",f=Ys.useBlockProps.save(),g=t==="checkbox"||t==="radio";return t==="hidden"?(0,Kl.jsx)("input",{type:t,name:o,value:s}):(0,Kl.jsx)("div",{...f,children:(0,Kl.jsxs)("label",{className:k("wp-block-form-input__label",{"is-label-inline":n}),children:[!g&&(0,Kl.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Kl.jsx)(Ys.RichText.Content,{value:a})}),(0,Kl.jsx)(d,{className:p,type:t==="textarea"?void 0:t,name:o||Bue(a),required:i,"aria-required":i,placeholder:l||void 0,style:m}),g&&(0,Kl.jsx)("span",{className:"wp-block-form-input__label-content",children:(0,Kl.jsx)(Ys.RichText.Content,{value:a})})]})})}var Sa=r(B()),Pue=[{name:"text",title:(0,Sa.__)("Text Input"),icon:"edit-page",description:(0,Sa.__)("A generic text input."),attributes:{type:"text"},isDefault:!0,scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="text"},{name:"textarea",title:(0,Sa.__)("Textarea Input"),icon:"testimonial",description:(0,Sa.__)("A textarea input to allow entering multiple lines of text."),attributes:{type:"textarea"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="textarea"},{name:"checkbox",title:(0,Sa.__)("Checkbox Input"),description:(0,Sa.__)("A simple checkbox input."),icon:"forms",attributes:{type:"checkbox",inlineLabel:!0},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="checkbox"},{name:"email",title:(0,Sa.__)("Email Input"),icon:"email",description:(0,Sa.__)("Used for email addresses."),attributes:{type:"email"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="email"},{name:"url",title:(0,Sa.__)("URL Input"),icon:"admin-site",description:(0,Sa.__)("Used for URLs."),attributes:{type:"url"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="url"},{name:"tel",title:(0,Sa.__)("Telephone Input"),icon:"phone",description:(0,Sa.__)("Used for phone numbers."),attributes:{type:"tel"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="tel"},{name:"number",title:(0,Sa.__)("Number Input"),icon:"edit-page",description:(0,Sa.__)("A numeric input."),attributes:{type:"number"},isDefault:!0,scope:["inserter","transform"],isActive:e=>e?.type==="number"}],eF=Pue;var{name:tF}=kx,oF={deprecated:ZV,edit:QV,save:JV,variations:eF,example:{}},Nue=()=>D({name:tF,metadata:kx,settings:oF});var zT={};$(zT,{init:()=>Mue,metadata:()=>Cx,name:()=>lF,settings:()=>sF});var rF=r(B()),wx=r(S()),aF=r(h()),Iue=[["core/buttons",{},[["core/button",{text:(0,rF.__)("Submit"),tagName:"button",type:"submit"}]]]],Due=()=>{let e=(0,wx.useBlockProps)(),t=(0,wx.useInnerBlocksProps)(e,{template:Iue,templateLock:"all"});return(0,aF.jsx)("div",{className:"wp-block-form-submit-wrapper",...t})},nF=Due;var Cx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submit-button",title:"Form Submit Button",category:"common",icon:"button",ancestor:["core/form"],allowedBlocks:["core/buttons","core/button"],description:"A submission button for forms.",keywords:["submit","button","form"],textdomain:"default",style:["wp-block-form-submit-button"]};var Sx=r(S()),HT=r(h());function iF(){let e=Sx.useBlockProps.save();return(0,HT.jsx)("div",{className:"wp-block-form-submit-wrapper",...e,children:(0,HT.jsx)(Sx.InnerBlocks.Content,{})})}var{name:lF}=Cx,sF={edit:nF,save:iF,example:{}},Mue=()=>D({name:lF,metadata:Cx,settings:sF});var AT={};$(AT,{init:()=>Aue,metadata:()=>Bx,name:()=>gF,settings:()=>hF});var Tx=r(B()),nu=r(S()),cF=r(z());var uF=r(h()),Lue=[["core/paragraph",{content:(0,Tx.__)("Enter the message you wish displayed for form submission error/success, and select the type of the message (success/error) from the block's options.")}]],Rue=({attributes:e,clientId:t})=>{let{type:o}=e,a=(0,nu.useBlockProps)({className:k("wp-block-form-submission-notification",{[`form-notification-type-${o}`]:o})}),{hasInnerBlocks:n}=(0,cF.useSelect)(l=>{let{getBlock:s}=l(nu.store),c=s(t);return{hasInnerBlocks:!!(c&&c.innerBlocks.length)}},[t]),i=(0,nu.useInnerBlocksProps)(a,{template:Lue,renderAppender:n?void 0:nu.InnerBlocks.ButtonBlockAppender});return(0,uF.jsx)("div",{...i,"data-message-success":(0,Tx.__)("Submission success notification"),"data-message-error":(0,Tx.__)("Submission error notification")})},mF=Rue;var Bx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/form-submission-notification",title:"Form Submission Notification",category:"common",ancestor:["core/form"],description:"Provide a notification message after the form has been submitted.",keywords:["form","feedback","notification","message"],textdomain:"default",icon:"feedback",attributes:{type:{type:"string",default:"success"}}};var Px=r(S());var pF=r(h());function dF({attributes:e}){let{type:t}=e;return(0,pF.jsx)("div",{...Px.useInnerBlocksProps.save(Px.useBlockProps.save({className:k("wp-block-form-submission-notification",{[`form-notification-type-${t}`]:t})}))})}var op=r(B()),zue=[{name:"form-submission-success",title:(0,op.__)("Form Submission Success"),description:(0,op.__)("Success message for form submissions."),attributes:{type:"success"},isDefault:!0,innerBlocks:[["core/paragraph",{content:(0,op.__)("Your form has been submitted successfully."),backgroundColor:"#00D084",textColor:"#000000",style:{elements:{link:{color:{text:"#000000"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="success"},{name:"form-submission-error",title:(0,op.__)("Form Submission Error"),description:(0,op.__)("Error/failure message for form submissions."),attributes:{type:"error"},isDefault:!1,innerBlocks:[["core/paragraph",{content:(0,op.__)("There was an error submitting your form."),backgroundColor:"#CF2E2E",textColor:"#FFFFFF",style:{elements:{link:{color:{text:"#FFFFFF"}}}}}]],scope:["inserter","transform"],isActive:e=>!e?.type||e?.type==="error"}],fF=zue;var{name:gF}=Bx,hF={icon:hm,edit:mF,save:dF,variations:fF,example:{}},Aue=()=>D({name:gF,metadata:Bx,settings:hF});var KT={};$(KT,{init:()=>ame,metadata:()=>Ix,name:()=>KF,settings:()=>QF});var po=r(S()),yF=r(U());var Ql="none",Yl="media",A0="lightbox",Xl="attachment",vF="file",bF="post",V0="large";var Re=r(h()),_F="file",xF="post";function Kd(e){return Math.min(3,e?.images?.length)}function Vue(e,t){switch(t){case _F:return{href:e?.source_url||e?.url,linkDestination:Yl};case xF:return{href:e?.link,linkDestination:Xl};case Yl:return{href:e?.source_url||e?.url,linkDestination:Yl};case Xl:return{href:e?.link,linkDestination:Xl};case Ql:return{href:void 0,linkDestination:Ql}}return{}}function Qd(e){let t=e.linkTo?e.linkTo:"none";t==="post"?t="attachment":t==="file"&&(t="media");let o=e.images.map(l=>Fue(l,e.sizeSlug,t)),{images:a,ids:n,...i}=e;return[{...i,linkTo:t,allowResize:!1},o]}function Fue(e,t,o){return(0,yF.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...Vue(e,o)})}var jue={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){let{caption:t,columns:o,imageCrop:a}=e,n=k("has-nested-images",{[`columns-${o}`]:o!==void 0,"columns-default":o===void 0,"is-cropped":a}),i=po.useBlockProps.save({className:n}),l=po.useInnerBlocksProps.save(i);return(0,Re.jsxs)("figure",{...l,children:[l.children,!po.RichText.isEmpty(t)&&(0,Re.jsx)(po.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t})]})}},Oue={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){let{images:t,columns:o=Kd(e),imageCrop:a,caption:n,linkTo:i}=e,l=`columns-${o} ${a?"is-cropped":""}`;return(0,Re.jsxs)("figure",{...po.useBlockProps.save({className:l}),children:[(0,Re.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(s=>{let c;switch(i){case _F:c=s.fullUrl||s.url;break;case xF:c=s.link;break}let u=(0,Re.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id,"data-full-url":s.fullUrl,"data-link":s.link,className:s.id?`wp-image-${s.id}`:null});return(0,Re.jsx)("li",{className:"blocks-gallery-item",children:(0,Re.jsxs)("figure",{children:[c?(0,Re.jsx)("a",{href:c,children:u}):u,!po.RichText.isEmpty(s.caption)&&(0,Re.jsx)(po.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:s.caption})]})},s.id||s.url)})}),!po.RichText.isEmpty(n)&&(0,Re.jsx)(po.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})},migrate(e){return Qd(e)}},Uue={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible({linkTo:e}){return!e||e==="attachment"||e==="media"},migrate(e){return Qd(e)},save({attributes:e}){let{images:t,columns:o=Kd(e),imageCrop:a,caption:n,linkTo:i}=e;return(0,Re.jsxs)("figure",{className:`columns-${o} ${a?"is-cropped":""}`,children:[(0,Re.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,Re.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id,"data-full-url":l.fullUrl,"data-link":l.link,className:l.id?`wp-image-${l.id}`:null});return(0,Re.jsx)("li",{className:"blocks-gallery-item",children:(0,Re.jsxs)("figure",{children:[s?(0,Re.jsx)("a",{href:s,children:c}):c,!po.RichText.isEmpty(l.caption)&&(0,Re.jsx)(po.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!po.RichText.isEmpty(n)&&(0,Re.jsx)(po.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},Gue={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible({ids:e}){return e&&e.some(t=>typeof t=="string")},migrate(e){return Qd(e)},save({attributes:e}){let{images:t,columns:o=Kd(e),imageCrop:a,caption:n,linkTo:i}=e;return(0,Re.jsxs)("figure",{className:`columns-${o} ${a?"is-cropped":""}`,children:[(0,Re.jsx)("ul",{className:"blocks-gallery-grid",children:t.map(l=>{let s;switch(i){case"media":s=l.fullUrl||l.url;break;case"attachment":s=l.link;break}let c=(0,Re.jsx)("img",{src:l.url,alt:l.alt,"data-id":l.id,"data-full-url":l.fullUrl,"data-link":l.link,className:l.id?`wp-image-${l.id}`:null});return(0,Re.jsx)("li",{className:"blocks-gallery-item",children:(0,Re.jsxs)("figure",{children:[s?(0,Re.jsx)("a",{href:s,children:c}):c,!po.RichText.isEmpty(l.caption)&&(0,Re.jsx)(po.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:l.caption})]})},l.id||l.url)})}),!po.RichText.isEmpty(n)&&(0,Re.jsx)(po.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:n})]})}},$ue={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){let{images:t,columns:o=Kd(e),imageCrop:a,linkTo:n}=e;return(0,Re.jsx)("ul",{className:`columns-${o} ${a?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.fullUrl||i.url;break;case"attachment":l=i.link;break}let s=(0,Re.jsx)("img",{src:i.url,alt:i.alt,"data-id":i.id,"data-full-url":i.fullUrl,"data-link":i.link,className:i.id?`wp-image-${i.id}`:null});return(0,Re.jsx)("li",{className:"blocks-gallery-item",children:(0,Re.jsxs)("figure",{children:[l?(0,Re.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Re.jsx)(po.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})},migrate(e){return Qd(e)}},Wue={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible({images:e,ids:t}){return e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some((o,a)=>!o&&t[a]!==null?!0:parseInt(o,10)!==t[a]))},migrate(e){return Qd(e)},supports:{align:!0},save({attributes:e}){let{images:t,columns:o=Kd(e),imageCrop:a,linkTo:n}=e;return(0,Re.jsx)("ul",{className:`columns-${o} ${a?"is-cropped":""}`,children:t.map(i=>{let l;switch(n){case"media":l=i.url;break;case"attachment":l=i.link;break}let s=(0,Re.jsx)("img",{src:i.url,alt:i.alt,"data-id":i.id,"data-link":i.link,className:i.id?`wp-image-${i.id}`:null});return(0,Re.jsx)("li",{className:"blocks-gallery-item",children:(0,Re.jsxs)("figure",{children:[l?(0,Re.jsx)("a",{href:l,children:s}):s,i.caption&&i.caption.length>0&&(0,Re.jsx)(po.RichText.Content,{tagName:"figcaption",value:i.caption})]})},i.id||i.url)})})}},que={attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){let{images:t,columns:o=Kd(e),align:a,imageCrop:n,linkTo:i}=e,l=k(`columns-${o}`,{alignnone:a==="none","is-cropped":n});return(0,Re.jsx)("div",{className:l,children:t.map(s=>{let c;switch(i){case"media":c=s.url;break;case"attachment":c=s.link;break}let u=(0,Re.jsx)("img",{src:s.url,alt:s.alt,"data-id":s.id});return(0,Re.jsx)("figure",{className:"blocks-gallery-image",children:c?(0,Re.jsx)("a",{href:c,children:u}):u},s.id||s.url)})})},migrate(e){return Qd(e)}},kF=[jue,Oue,Uue,Gue,$ue,Wue,que];var nt=r(L()),pr=r(S()),Pr=r(F()),Ce=r(B()),O0=r(z()),OF=r(E()),UF=r(U()),qT=r(Po()),GF=r(No());var wF=r(S());var CF=r(h()),SF=(0,CF.jsx)(wF.BlockIcon,{icon:Sh});function VT(e){return e?Math.min(3,e):3}var TF=(e,t="large")=>{let o=Object.fromEntries(Object.entries(e??{}).filter(([n])=>["alt","id","link"].includes(n)));o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;let a=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return a&&(o.fullUrl=a),o};var Jl=20,rp="none",Yd="media",Xd="attachment",FT="custom",BF=["noreferrer","noopener"],iu=["image"];var jT=["flex","grid"],F0="full";function OT(e,t,o,a,n){switch(o||t){case vF:case Yl:return{href:e?.source_url||e?.url,linkDestination:Yd,lightbox:n?.enabled?{...a?.lightbox,enabled:!1}:void 0};case bF:case Xl:return{href:e?.link,linkDestination:Xd,lightbox:n?.enabled?{...a?.lightbox,enabled:!1}:void 0};case A0:return{href:void 0,lightbox:n?.enabled?void 0:{...a?.lightbox,enabled:!0},linkDestination:rp};case Ql:return{href:void 0,linkDestination:rp,lightbox:void 0}}return{}}function PF(e){let[t,o=1]=e.split("/").map(Number),a=t/o;return a===1/0||a===0?NaN:a}function Zue(e){let t=e;return e!==void 0&&t&&(BF.forEach(o=>{let a=new RegExp("\\b"+o+"\\b","gi");t=t.replace(a,"")}),t!==e&&(t=t.trim()),t||(t=void 0)),t}function UT(e,{rel:t}){let o=e?"_blank":void 0,a;return!o&&!t?a=void 0:a=Zue(t),{linkTarget:o,rel:a}}function NF(e,t){let o=e?.media_details?.sizes?.[t]?.source_url;return o?{url:o,width:void 0,height:void 0,sizeSlug:t}:{}}function GT(e){return iu.some(t=>e.type.indexOf(t)===0)}var $T=r(B()),IF=r(E());var j0=r(h());function DF(e){let{attributes:t,isSelected:o,setAttributes:a,mediaPlaceholder:n,insertBlocksAfter:i,blockProps:l,__unstableLayoutClassNames:s,isContentLocked:c,multiGallerySelection:u}=e,{align:m,columns:p,imageCrop:d}=t;return(0,j0.jsxs)("figure",{...l,className:k(l.className,s,"blocks-gallery-grid",{[`align${m}`]:m,[`columns-${p}`]:p!==void 0,"columns-default":p===void 0,"is-cropped":d}),children:[l.children,o&&!l.children&&(0,j0.jsx)(IF.View,{className:"blocks-gallery-media-placeholder-wrapper",children:n}),(0,j0.jsx)(Wa,{attributes:t,setAttributes:a,isSelected:o,insertBlocksAfter:i,showToolbarButton:!u&&!c,className:"blocks-gallery-caption",label:(0,$T.__)("Gallery caption text"),placeholder:(0,$T.__)("Add gallery caption")})]})}var EF=r(F());function MF(e,t,o){return(0,EF.useMemo)(()=>a(),[e,t]);function a(){if(!e||e.length===0)return;let{imageSizes:n}=o(),i={};t&&(i=e.reduce((s,c)=>{if(!c.id)return s;let u=n.reduce((m,p)=>{let d=c.sizes?.[p.slug]?.url,f=c.media_details?.sizes?.[p.slug]?.source_url;return{...m,[p.slug]:d||f}},{});return{...s,[parseInt(c.id,10)]:u}},{}));let l=Object.values(i);return n.filter(({slug:s})=>l.some(c=>c[s])).map(({name:s,slug:c})=>({value:c,label:s}))}}var Nx=r(F());function LF(e,t){let[o,a]=(0,Nx.useState)([]);return(0,Nx.useMemo)(()=>n(),[e,t]);function n(){let i=!1,l=o.filter(c=>e.find(u=>c.clientId===u.clientId));l.length<o.length&&(i=!0),e.forEach(c=>{c.fromSavedContent&&!l.find(u=>u.id===c.id)&&(i=!0,l.push(c))});let s=e.filter(c=>!l.find(u=>c.clientId&&u.clientId===c.clientId)&&t?.find(u=>u.id===c.id)&&!c.fromSavedContent);return(i||s?.length>0)&&a([...l,...s]),s.length>0?s:null}}var HF=r(z()),zF=r(Y()),RF=[];function AF(e){return(0,HF.useSelect)(t=>{let o=e.map(a=>a.attributes.id).filter(a=>a!==void 0);return o.length===0?RF:t(zF.store).getEntityRecords("postType","attachment",{include:o.join(","),per_page:-1,orderby:"include"})??RF},[e])}var ap=r(S());function VF({blockGap:e,clientId:t}){let o="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )",a=o,n=o,i;e&&(i=typeof e=="string"?(0,ap.__experimentalGetGapCSSValue)(e):(0,ap.__experimentalGetGapCSSValue)(e?.top)||o,n=typeof e=="string"?(0,ap.__experimentalGetGapCSSValue)(e):(0,ap.__experimentalGetGapCSSValue)(e?.left)||o,a=i===n?i:`${i} ${n}`);let l=`#block-${t} { |
| 15 |
--wp--style--unstable-gallery-gap: ${n==="0"?"0px":n}; |
| 16 |
gap: ${a} |
| 17 |
}`;return(0,ap.useStyleOverride)({css:l}),null}var Oe=r(h()),FF=8,jF=[{icon:hh,label:(0,Ce.__)("Link images to attachment pages"),value:Xl,noticeText:(0,Ce.__)("Attachment Pages")},{icon:zc,label:(0,Ce.__)("Link images to media files"),value:Yl,noticeText:(0,Ce.__)("Media Files")},{icon:gm,label:(0,Ce.__)("Enlarge on click"),value:A0,noticeText:(0,Ce.__)("Lightbox effect"),infoText:(0,Ce.__)("Scale images with a lightbox effect")},{icon:bm,label:(0,Ce._x)("None","Media item link option"),value:Ql,noticeText:(0,Ce.__)("None")}],WT=["image"],Kue=Pr.Platform.isNative?(0,Ce.__)("Add media"):(0,Ce.__)("Drag and drop images, upload, or choose from your library."),Que=Pr.Platform.isNative?{type:"stepper"}:{},Yue={name:"core/image"},Xue=[];function $F(e){let{setAttributes:t,attributes:o,className:a,clientId:n,isSelected:i,insertBlocksAfter:l,isContentLocked:s,onFocus:c}=e,[u,m,p,d]=(0,pr.useSettings)("blocks.core/image.lightbox","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),f=u?.allowEditing?jF:jF.filter(q=>q.value!==A0),{columns:g,imageCrop:v,randomOrder:b,linkTarget:y,linkTo:_,sizeSlug:x,aspectRatio:w}=o,{__unstableMarkNextChangeAsNotPersistent:C,replaceInnerBlocks:T,updateBlockAttributes:N,selectBlock:P}=(0,O0.useDispatch)(pr.store),{createSuccessNotice:M,createErrorNotice:R}=(0,O0.useDispatch)(GF.store),{getBlock:H,getSettings:O,innerBlockImages:A,blockWasJustInserted:I,multiGallerySelection:V}=(0,O0.useSelect)(q=>{let{getBlockName:Be,getMultiSelectedBlockClientIds:He,getSettings:Ve,getBlock:Fe,wasBlockJustInserted:Yt}=q(pr.store),or=He();return{getBlock:Fe,getSettings:Ve,innerBlockImages:Fe(n)?.innerBlocks??Xue,blockWasJustInserted:Yt(n,"inserter_menu"),multiGallerySelection:or.length&&or.every(Pt=>Be(Pt)==="core/gallery")}},[n]),W=(0,Pr.useMemo)(()=>A?.map(q=>({clientId:q.clientId,id:q.attributes.id,url:q.attributes.url,attributes:q.attributes,fromSavedContent:!!q.originalContent})),[A]),j=AF(A),K=LF(W,j),Z=p?.map(({name:q,ratio:Be})=>({label:q,value:Be})),te=m?.map(({name:q,ratio:Be})=>({label:q,value:Be})),X=[{label:(0,Ce._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...d?te||[]:[],...Z||[]];(0,Pr.useEffect)(()=>{K?.forEach(q=>{C(),N(q.clientId,{...ee(q.attributes),id:q.id,align:void 0})})},[K]);let J=MF(j,i,O);function ee(q){let Be=q.id?j.find(({id:Fe})=>Fe===q.id):null,He;q.className&&q.className!==""&&(He=q.className);let Ve;return q.linkTarget||q.rel?Ve={linkTarget:q.linkTarget,rel:q.rel}:Ve=UT(y,o),{...TF(Be,x),...OT(Be,_,q?.linkDestination),...Ve,className:He,sizeSlug:x,caption:q.caption.length>0?q.caption:Be.caption?.raw,alt:q.alt||Be.alt_text,aspectRatio:w==="auto"?void 0:w}}function ne(q){let Be=Pr.Platform.isNative&&q.id?j.find(({id:Ve})=>Ve===q.id):null,He=Be?Be?.media_type:q.type;return WT.some(Ve=>He?.indexOf(Ve)===0)||q.blob}function oe(q){let Be=Object.prototype.toString.call(q)==="[object FileList]",He=Be?Array.from(q).map(qe=>qe.url?qe:{blob:(0,qT.createBlobURL)(qe)}):q;He.every(ne)||R((0,Ce.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let Ve=He.filter(qe=>qe.url||ne(qe)).map(qe=>qe.url?qe:{blob:qe.blob||(0,qT.createBlobURL)(qe)}),Fe=Ve.reduce((qe,rr,$r)=>(qe[rr.id]=$r,qe),{}),Yt=Be?A:A.filter(qe=>Ve.find(rr=>rr.id===qe.attributes.id)),Pt=Ve.filter(qe=>!Yt.find(rr=>qe.id===rr.attributes.id)).map(qe=>(0,UF.createBlock)("core/image",{id:qe.id,blob:qe.blob,url:qe.url,caption:qe.caption,alt:qe.alt}));T(n,Yt.concat(Pt).sort((qe,rr)=>Fe[qe.attributes.id]-Fe[rr.attributes.id])),Pt?.length>0&&P(Pt[0].clientId)}function ce(q){R(q,{type:"snackbar"})}function pe(q){t({linkTo:q});let Be={},He=[];H(n).innerBlocks.forEach(Fe=>{He.push(Fe.clientId);let Yt=Fe.attributes.id?j.find(({id:or})=>or===Fe.attributes.id):null;Be[Fe.clientId]=OT(Yt,q,!1,Fe.attributes,u)}),N(He,Be,{uniqueByBlock:!0});let Ve=[...f].find(Fe=>Fe.value===q);M((0,Ce.sprintf)((0,Ce.__)("All gallery image links updated to: %s"),Ve.noticeText),{id:"gallery-attributes-linkTo",type:"snackbar"})}function Ne(q){t({columns:q})}function Le(){t({imageCrop:!v})}function ie(){t({randomOrder:!b})}function Ee(q){let Be=q?"_blank":void 0;t({linkTarget:Be});let He={},Ve=[];H(n).innerBlocks.forEach(Yt=>{Ve.push(Yt.clientId),He[Yt.clientId]=UT(Be,Yt.attributes)}),N(Ve,He,{uniqueByBlock:!0});let Fe=q?(0,Ce.__)("All gallery images updated to open in new tab"):(0,Ce.__)("All gallery images updated to not open in new tab");M(Fe,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}function de(q){t({sizeSlug:q});let Be={},He=[];H(n).innerBlocks.forEach(Fe=>{He.push(Fe.clientId);let Yt=Fe.attributes.id?j.find(({id:or})=>or===Fe.attributes.id):null;Be[Fe.clientId]=NF(Yt,q)}),N(He,Be,{uniqueByBlock:!0});let Ve=J.find(Fe=>Fe.value===q);M((0,Ce.sprintf)((0,Ce.__)("All gallery image sizes updated to: %s"),Ve?.label??q),{id:"gallery-attributes-sizeSlug",type:"snackbar"})}function re(q){t({aspectRatio:q});let Be={},He=[];H(n).innerBlocks.forEach(Fe=>{He.push(Fe.clientId),Be[Fe.clientId]={aspectRatio:q==="auto"?void 0:q}}),N(He,Be,!0);let Ve=X.find(Fe=>Fe.value===q);M((0,Ce.sprintf)((0,Ce.__)("All gallery images updated to aspect ratio: %s"),Ve?.label||q),{id:"gallery-attributes-aspectRatio",type:"snackbar"})}(0,Pr.useEffect)(()=>{_||(C(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Ql}))},[_]);let se=!!W.length,we=se&&W.some(q=>!!q.id),fe=W.some(q=>Pr.Platform.isNative?q.url?.indexOf("file:")===0:!q.id&&q.url?.indexOf("blob:")===0),mt=Pr.Platform.select({web:{addToGallery:!1,disableMediaButtons:fe,value:{}},native:{addToGallery:we,isAppender:se,disableMediaButtons:se&&!i||fe,value:we?W:{},autoOpenMediaUpload:!se&&i&&I,onFocus:c}}),kt=(0,Oe.jsx)(pr.MediaPlaceholder,{handleUpload:!1,icon:SF,labels:{title:(0,Ce.__)("Gallery"),instructions:Kue},onSelect:oe,allowedTypes:WT,multiple:!0,onError:ce,...mt}),bt=(0,pr.useBlockProps)({className:k(a,"has-nested-images")}),_o=Pr.Platform.isNative&&{marginHorizontal:0,marginVertical:0},Ye=(0,pr.useInnerBlocksProps)(bt,{defaultBlock:Yue,directInsert:!0,orientation:"horizontal",renderAppender:!1,..._o}),xo=G();if(!se)return(0,Oe.jsxs)(OF.View,{...Ye,children:[Ye.children,kt]});let si=_&&_!=="none";return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsxs)(pr.InspectorControls,{children:[Pr.Platform.isWeb&&(0,Oe.jsxs)(nt.__experimentalToolsPanel,{label:(0,Ce.__)("Settings"),resetAll:()=>{t({columns:void 0,imageCrop:!0,randomOrder:!1}),re("auto"),x!==V0&&de(V0),y&&Ee(!1)},dropdownMenuProps:xo,children:[W.length>1&&(0,Oe.jsx)(nt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ce.__)("Columns"),hasValue:()=>!!g&&g!==W.length,onDeselect:()=>Ne(void 0),children:(0,Oe.jsx)(nt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Columns"),value:g||VT(W.length),onChange:Ne,min:1,max:Math.min(FF,W.length),required:!0,__next40pxDefaultSize:!0})}),J?.length>0&&(0,Oe.jsx)(nt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ce.__)("Resolution"),hasValue:()=>x!==V0,onDeselect:()=>de(V0),children:(0,Oe.jsx)(nt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Resolution"),help:(0,Ce.__)("Select the size of the source images."),value:x,options:J,onChange:de,hideCancelButton:!0,size:"__unstable-large"})}),(0,Oe.jsx)(nt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ce.__)("Crop images to fit"),hasValue:()=>!v,onDeselect:()=>t({imageCrop:!0}),children:(0,Oe.jsx)(nt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Crop images to fit"),checked:!!v,onChange:Le})}),(0,Oe.jsx)(nt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ce.__)("Randomize order"),hasValue:()=>!!b,onDeselect:()=>t({randomOrder:!1}),children:(0,Oe.jsx)(nt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Randomize order"),checked:!!b,onChange:ie})}),si&&(0,Oe.jsx)(nt.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,Ce.__)("Open images in new tab"),hasValue:()=>!!y,onDeselect:()=>Ee(!1),children:(0,Oe.jsx)(nt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Open images in new tab"),checked:y==="_blank",onChange:Ee})}),X.length>1&&(0,Oe.jsx)(nt.__experimentalToolsPanelItem,{hasValue:()=>!!w&&w!=="auto",label:(0,Ce.__)("Aspect ratio"),onDeselect:()=>re("auto"),isShownByDefault:!0,children:(0,Oe.jsx)(nt.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Aspect ratio"),help:(0,Ce.__)("Set a consistent aspect ratio for all images in the gallery."),value:w,options:X,onChange:re})})]}),Pr.Platform.isNative&&(0,Oe.jsxs)(nt.PanelBody,{title:(0,Ce.__)("Settings"),children:[W.length>1&&(0,Oe.jsx)(nt.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Columns"),value:g||VT(W.length),onChange:Ne,min:1,max:Math.min(FF,W.length),...Que,required:!0,__next40pxDefaultSize:!0}),J?.length>0&&(0,Oe.jsx)(nt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Resolution"),help:(0,Ce.__)("Select the size of the source images."),value:x,options:J,onChange:de,hideCancelButton:!0,size:"__unstable-large"}),(0,Oe.jsx)(nt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Link"),value:_,onChange:pe,options:f,hideCancelButton:!0,size:"__unstable-large"}),(0,Oe.jsx)(nt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Crop images to fit"),checked:!!v,onChange:Le}),(0,Oe.jsx)(nt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Randomize order"),checked:!!b,onChange:ie}),si&&(0,Oe.jsx)(nt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Open images in new tab"),checked:y==="_blank",onChange:Ee}),X.length>1&&(0,Oe.jsx)(nt.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Ce.__)("Aspect Ratio"),help:(0,Ce.__)("Set a consistent aspect ratio for all images in the gallery."),value:w,options:X,onChange:re,hideCancelButton:!0,size:"__unstable-large"})]})]}),Pr.Platform.isWeb?(0,Oe.jsx)(pr.BlockControls,{group:"block",children:(0,Oe.jsx)(nt.ToolbarDropdownMenu,{icon:Nn,label:(0,Ce.__)("Link"),children:({onClose:q})=>(0,Oe.jsx)(nt.MenuGroup,{children:f.map(Be=>{let He=_===Be.value;return(0,Oe.jsx)(nt.MenuItem,{isSelected:He,className:k("components-dropdown-menu__menu-item",{"is-active":He}),iconPosition:"left",icon:Be.icon,onClick:()=>{pe(Be.value),q()},role:"menuitemradio",info:Be.infoText,children:Be.label},Be.value)})})})}):null,Pr.Platform.isWeb&&(0,Oe.jsxs)(Oe.Fragment,{children:[!V&&(0,Oe.jsx)(pr.BlockControls,{group:"other",children:(0,Oe.jsx)(pr.MediaReplaceFlow,{allowedTypes:WT,handleUpload:!1,onSelect:oe,name:(0,Ce.__)("Add"),multiple:!0,mediaIds:W.filter(q=>q.id).map(q=>q.id),addToGallery:we})}),(0,Oe.jsx)(VF,{blockGap:o.style?.spacing?.blockGap,clientId:n})]}),(0,Oe.jsx)(DF,{...e,isContentLocked:s,images:W,mediaPlaceholder:!se||Pr.Platform.isNative?kt:void 0,blockProps:Ye,insertBlocksAfter:l,multiGallerySelection:V})]})}var Ix={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",allowedBlocks:["core/image"],description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",items:{type:"object"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"rich-text",source:"rich-text",selector:".blocks-gallery-caption",role:"content"},imageCrop:{type:"boolean",default:!0},randomOrder:{type:"boolean",default:!1},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1},aspectRatio:{type:"string",default:"auto"}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,radius:!0}},html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"};var Xs=r(S()),Dx=r(h());function WF({attributes:e}){let{caption:t,columns:o,imageCrop:a}=e,n=k("has-nested-images",{[`columns-${o}`]:o!==void 0,"columns-default":o===void 0,"is-cropped":a}),i=Xs.useBlockProps.save({className:n}),l=Xs.useInnerBlocksProps.save(i);return(0,Dx.jsxs)("figure",{...l,children:[l.children,!Xs.RichText.isEmpty(t)&&(0,Dx.jsx)(Xs.RichText.Content,{tagName:"figcaption",className:k("blocks-gallery-caption",(0,Xs.__experimentalGetElementClassName)("caption")),value:t})]})}var es=r(U()),qF=r(Po()),ZT=r(eu());var eme=e=>e?e.split(",").map(t=>parseInt(t,10)):[];function tme(e){if(e.name==="core/gallery"&&e.attributes?.images.length>0){let t=e.attributes.images.map(({url:o,id:a,alt:n})=>(0,es.createBlock)("core/image",{url:o,id:a?parseInt(a,10):null,alt:n,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination}));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e}(0,ZT.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",tme);function ome(e,t){let a=(Array.isArray(t)?t:[t]).find(n=>n.name==="core/gallery"&&n.innerBlocks.length>0&&!n.attributes.images?.length>0&&!e.name.includes("core/"));if(a){let n=a.innerBlocks.map(({attributes:{url:l,id:s,alt:c}})=>({url:l,id:s?parseInt(s,10):null,alt:c})),i=n.map(({id:l})=>l);a.attributes.images=n,a.attributes.ids=i}return e}(0,ZT.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",ome);var rme={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:o}=e[0];t=e.every(i=>i.align===t)?t:void 0,o=e.every(i=>i.sizeSlug===o)?o:void 0;let n=e.filter(({url:i})=>i).map(i=>(i.width=void 0,i.height=void 0,(0,es.createBlock)("core/image",i)));return(0,es.createBlock)("core/gallery",{align:t,sizeSlug:o},n)}},{type:"shortcode",tag:"gallery",transform({named:{ids:e,columns:t=3,link:o,orderby:a,size:n}}){let i=eme(e).map(c=>parseInt(c,10)),l=Ql;return o==="post"?l=Xl:o==="file"&&(l=Yl),(0,es.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:l,randomOrder:a==="rand",...n&&{sizeSlug:n}},i.map(c=>(0,es.createBlock)("core/image",{id:c,...n&&{sizeSlug:n}})))},isMatch({named:e}){return e.ids!==void 0}},{type:"files",priority:1,isMatch(e){return e.length!==1&&e.every(t=>t.type.indexOf("image/")===0)},transform(e){let t=e.map(o=>(0,es.createBlock)("core/image",{blob:(0,qF.createBlobURL)(o)}));return(0,es.createBlock)("core/gallery",{},t)}}],to:[{type:"block",blocks:["core/image"],transform:({align:e},t)=>t.length>0?t.map(({attributes:{url:o,alt:a,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:g}})=>(0,es.createBlock)("core/image",{align:e,url:o,alt:a,caption:n,title:i,href:l,rel:s,linkClass:c,id:u,sizeSlug:m,linkDestination:p,linkTarget:d,anchor:f,className:g})):(0,es.createBlock)("core/image",{align:e})}]},ZF=rme;var{name:KF}=Ix,QF={icon:Sh,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:ZF,edit:$F,save:WF,deprecated:kF},ame=()=>D({name:KF,metadata:Ix,settings:QF});var eB={};$(eB,{init:()=>fme,metadata:()=>Mx,name:()=>Hx,settings:()=>mj});var Rx=r(B());var Yr=r(S()),Vn=r(h()),QT=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;let t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);let{customTextColor:o,customBackgroundColor:a,...n}=e;return{...n,style:t}},nme=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save({attributes:{tagName:e}}){return(0,Vn.jsx)(e,{...Yr.useInnerBlocksProps.save(Yr.useBlockProps.save())})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate:e=>{let{layout:t=null}=e;if(t?.inherit||t?.contentSize)return{...e,layout:{...t,type:"constrained"}}}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){let{tagName:t}=e;return(0,Vn.jsx)(t,{...Yr.useBlockProps.save(),children:(0,Vn.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Vn.jsx)(Yr.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:QT,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,textColor:a,customTextColor:n}=e,i=(0,Yr.getColorClassName)("background-color",t),l=(0,Yr.getColorClassName)("color",a),s=k(i,l,{"has-text-color":a||n,"has-background":t||o});return(0,Vn.jsx)("div",{className:s,style:{backgroundColor:i?void 0:o,color:l?void 0:n},children:(0,Vn.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Vn.jsx)(Yr.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:QT,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,textColor:a,customTextColor:n}=e,i=(0,Yr.getColorClassName)("background-color",t),l=(0,Yr.getColorClassName)("color",a),s=k(i,{"has-text-color":a||n,"has-background":t||o});return(0,Vn.jsx)("div",{className:s,style:{backgroundColor:i?void 0:o,color:l?void 0:n},children:(0,Vn.jsx)("div",{className:"wp-block-group__inner-container",children:(0,Vn.jsx)(Yr.InnerBlocks.Content,{})})})}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:QT,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o}=e,a=(0,Yr.getColorClassName)("background-color",t),n=k(a,{"has-background":t||o});return(0,Vn.jsx)("div",{className:n,style:{backgroundColor:a?void 0:o},children:(0,Vn.jsx)(Yr.InnerBlocks.Content,{})})}}],YF=nme;var Ex=r(z()),jn=r(S()),rj=r(F()),aj=r(B()),nj=r(E());var XF=r(z()),JF=r(S()),YT=r(B()),ej=r(U()),an=r(L()),U0=r(F()),rn=r(h()),ime=(e="group")=>({group:(0,rn.jsx)(an.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,rn.jsx)(an.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z"})}),"group-row":(0,rn.jsx)(an.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,rn.jsx)(an.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z"})}),"group-stack":(0,rn.jsx)(an.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,rn.jsx)(an.Path,{d:"M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm0 17a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Z"})}),"group-grid":(0,rn.jsx)(an.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:(0,rn.jsx)(an.Path,{d:"M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10ZM0 27a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V27Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V27Z"})})})?.[e];function tj({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:o=!1}){let{style:a,backgroundColor:n,textColor:i,fontSize:l}=e,[s,c]=(0,U0.useState)(!o&&!n&&!l&&!i&&!a&&t!=="flex"&&t!=="grid");return(0,U0.useEffect)(()=>{(o||n||l||i||a||t==="flex")&&c(!1)},[n,l,i,a,t,o]),[s,c]}function lme({name:e,onSelect:t}){let o=(0,XF.useSelect)(n=>n(ej.store).getBlockVariations(e,"block"),[e]),a=(0,JF.useBlockProps)({className:"wp-block-group__placeholder"});return(0,U0.useEffect)(()=>{o&&o.length===1&&t(o[0])},[t,o]),(0,rn.jsx)("div",{...a,children:(0,rn.jsx)(an.Placeholder,{instructions:(0,YT.__)("Group blocks together. Select a layout:"),children:(0,rn.jsx)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,YT.__)("Block variations"),children:o.map(n=>(0,rn.jsx)("li",{children:(0,rn.jsx)(an.Button,{__next40pxDefaultSize:!0,variant:"tertiary",icon:ime(n.name),iconSize:48,onClick:()=>t(n),className:"wp-block-group-placeholder__variation-button",label:`${n.title}: ${n.description}`})},n.name))})})})}var oj=lme;var Fn=r(h()),{HTMLElementControl:sme}=Q(jn.privateApis);function cme({tagName:e,onSelectTagName:t,clientId:o}){return(0,Fn.jsx)(jn.InspectorControls,{group:"advanced",children:(0,Fn.jsx)(sme,{tagName:e,onChange:t,clientId:o,options:[{label:(0,aj.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}]})})}function ume({attributes:e,name:t,setAttributes:o,clientId:a}){let{hasInnerBlocks:n,themeSupportsLayout:i}=(0,Ex.useSelect)(w=>{let{getBlock:C,getSettings:T}=w(jn.store),N=C(a);return{hasInnerBlocks:!!(N&&N.innerBlocks.length),themeSupportsLayout:T()?.supportsLayout}},[a]),{tagName:l="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,{type:m="default"}=u,p=i||m==="flex"||m==="grid",d=(0,rj.useRef)(),f=(0,jn.useBlockProps)({ref:d}),[g,v]=tj({attributes:e,usedLayoutType:m,hasInnerBlocks:n}),b;g?b=!1:n||(b=jn.InnerBlocks.ButtonBlockAppender);let y=(0,jn.useInnerBlocksProps)(p?f:{className:"wp-block-group__inner-container"},{dropZoneElement:d.current,templateLock:s,allowedBlocks:c,renderAppender:b}),{selectBlock:_}=(0,Ex.useDispatch)(jn.store),x=w=>{o(w.attributes),_(a,-1),v(!1)};return(0,Fn.jsxs)(Fn.Fragment,{children:[(0,Fn.jsx)(cme,{tagName:l,onSelectTagName:w=>o({tagName:w}),clientId:a}),g&&(0,Fn.jsxs)(nj.View,{children:[y.children,(0,Fn.jsx)(oj,{name:t,onSelect:x})]}),p&&!g&&(0,Fn.jsx)(l,{...y}),!p&&!g&&(0,Fn.jsx)(l,{...f,children:(0,Fn.jsx)("div",{...y})})]})}var ij=ume;var Mx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{__experimentalOnEnter:!0,__experimentalOnMerge:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,heading:!0,button:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},shadow:!0,spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-group-editor",style:"wp-block-group"};var Lx=r(S()),lj=r(h());function sj({attributes:{tagName:e}}){return(0,lj.jsx)(e,{...Lx.useInnerBlocksProps.save(Lx.useBlockProps.save())})}var XT=r(U()),pme={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){let t=["wide","full"],o=e.reduce((n,i)=>{let{align:l}=i.attributes;return t.indexOf(l)>t.indexOf(n)?l:n},void 0),a=e.map(n=>(0,XT.createBlock)(n.name,n.attributes,n.innerBlocks));return(0,XT.createBlock)("core/group",{align:o,layout:{type:"constrained"}},a)}}]},cj=pme;var Xr=r(B());var JT={innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Xr.__)("One.")}},{name:"core/paragraph",attributes:{content:(0,Xr.__)("Two.")}},{name:"core/paragraph",attributes:{content:(0,Xr.__)("Three.")}},{name:"core/paragraph",attributes:{content:(0,Xr.__)("Four.")}},{name:"core/paragraph",attributes:{content:(0,Xr.__)("Five.")}},{name:"core/paragraph",attributes:{content:(0,Xr.__)("Six.")}}]},dme=[{name:"group",title:(0,Xr.__)("Group"),description:(0,Xr.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],icon:hm},{name:"group-row",title:(0,Xr._x)("Row","single horizontal line"),description:(0,Xr.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:i9,example:JT},{name:"group-stack",title:(0,Xr.__)("Stack"),description:(0,Xr.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:["layout.type","layout.orientation"],icon:_9,example:JT},{name:"group-grid",title:(0,Xr.__)("Grid"),description:(0,Xr.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:["layout.type"],icon:Fi,example:JT}],uj=dme;var{name:Hx}=Mx,mj={icon:hm,example:{attributes:{layout:{type:"constrained",justifyContent:"center"},style:{spacing:{padding:{top:"4em",right:"3em",bottom:"4em",left:"3em"}}}},innerBlocks:[{name:"core/heading",attributes:{content:(0,Rx.__)("La Mancha"),textAlign:"center"}},{name:"core/paragraph",attributes:{align:"center",content:(0,Rx.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},{name:"core/spacer",attributes:{height:"10px"}},{name:"core/button",attributes:{text:(0,Rx.__)("Read more")}}],viewportWidth:600},transforms:cj,edit:ij,save:sj,deprecated:YF,variations:uj},fme=()=>D({name:Hx,metadata:Mx,settings:mj});var lB={};$(lB,{init:()=>Nme,metadata:()=>Ox,name:()=>kj,settings:()=>$x});var cu=r(B()),xj=r(U());var On=r(S()),lu=r(h()),tB={className:!1,anchor:!0},zx={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},oB=e=>{if(!e.customTextColor)return e;let t={color:{text:e.customTextColor}},{customTextColor:o,...a}=e;return{...a,style:t}},pj=["left","right","center"],Ax=e=>{let{align:t,...o}=e;return pj.includes(t)?{...o,textAlign:t}:e},gme={supports:tB,attributes:{...zx,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>oB(Ax(e)),save({attributes:e}){let{align:t,level:o,content:a,textColor:n,customTextColor:i}=e,l="h"+o,s=(0,On.getColorClassName)("color",n),c=k({[s]:s});return(0,lu.jsx)(On.RichText.Content,{className:c||void 0,tagName:l,style:{textAlign:t,color:s?void 0:i},value:a})}},hme={attributes:{...zx,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>oB(Ax(e)),save({attributes:e}){let{align:t,content:o,customTextColor:a,level:n,textColor:i}=e,l="h"+n,s=(0,On.getColorClassName)("color",i),c=k({[s]:s,[`has-text-align-${t}`]:t});return(0,lu.jsx)(On.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:a},value:o})},supports:tB},vme={supports:tB,attributes:{...zx,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>oB(Ax(e)),save({attributes:e}){let{align:t,content:o,customTextColor:a,level:n,textColor:i}=e,l="h"+n,s=(0,On.getColorClassName)("color",i),c=k({[s]:s,"has-text-color":i||a,[`has-text-align-${t}`]:t});return(0,lu.jsx)(On.RichText.Content,{className:c||void 0,tagName:l,style:{color:s?void 0:a},value:o})}},bme={supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:zx,isEligible:({align:e})=>pj.includes(e),migrate:Ax,save({attributes:e}){let{align:t,content:o,level:a}=e,n="h"+a,i=k({[`has-text-align-${t}`]:t});return(0,lu.jsx)(n,{...On.useBlockProps.save({className:i}),children:(0,lu.jsx)(On.RichText.Content,{value:o})})}},yme={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",role:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){let{textAlign:t,content:o,level:a}=e,n="h"+a,i=k({[`has-text-align-${t}`]:t});return(0,lu.jsx)(n,{...On.useBlockProps.save({className:i}),children:(0,lu.jsx)(On.RichText.Content,{value:o})})}},_me=[yme,bme,vme,hme,gme],dj=_me;var gj=r(B()),Fx=r(F()),jx=r(z()),Ta=r(S());var fj=r(z0()),rB={},xme=e=>{let t=document.createElement("div");return t.innerHTML=e,t.innerText},kme=e=>(0,fj.default)(xme(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),Vx=(e,t)=>{let o=kme(t);if(o==="")return null;delete rB[e];let a=o,n=0;for(;Object.values(rB).includes(a);)n+=1,a=o+"-"+n;return a},aB=(e,t)=>{rB[e]=t};var Js=r(h());function wme({attributes:e,setAttributes:t,mergeBlocks:o,onReplace:a,style:n,clientId:i}){let{textAlign:l,content:s,level:c,levelOptions:u,placeholder:m,anchor:p}=e,d="h"+c,f=(0,Ta.useBlockProps)({className:k({[`has-text-align-${l}`]:l}),style:n}),g=(0,Ta.useBlockEditingMode)(),{canGenerateAnchors:v}=(0,jx.useSelect)(_=>{let{getGlobalBlockCount:x,getSettings:w}=_(Ta.store);return{canGenerateAnchors:!!w().generateAnchors||x("core/table-of-contents")>0}},[]),{__unstableMarkNextChangeAsNotPersistent:b}=(0,jx.useDispatch)(Ta.store);return(0,Fx.useEffect)(()=>{if(v)return!p&&s&&(b(),t({anchor:Vx(i,s)})),aB(i,p),()=>aB(i,null)},[p,s,i,v]),(0,Js.jsxs)(Js.Fragment,{children:[g==="default"&&(0,Js.jsxs)(Ta.BlockControls,{group:"block",children:[(0,Js.jsx)(Ta.HeadingLevelDropdown,{value:c,options:u,onChange:_=>t({level:_})}),(0,Js.jsx)(Ta.AlignmentControl,{value:l,onChange:_=>{t({textAlign:_})}})]}),(0,Js.jsx)(Ta.RichText,{identifier:"content",tagName:d,value:s,onChange:_=>{let x={content:_};v&&(!p||!_||Vx(i,s)===p)&&(x.anchor=Vx(i,_)),t(x)},onMerge:o,onReplace:a,onRemove:()=>a([]),placeholder:m||(0,gj.__)("Heading"),textAlign:l,...Fx.Platform.isNative&&{deleteEnter:!0},...f})]})}var hj=wme;var Ox={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"h1,h2,h3,h4,h5,h6",role:"content"},level:{type:"number",default:2},levelOptions:{type:"array"},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"};var Ux=r(S()),nB=r(h());function vj({attributes:e}){let{textAlign:t,content:o,level:a}=e,n="h"+a,i=k({[`has-text-align-${t}`]:t});return(0,nB.jsx)(n,{...Ux.useBlockProps.save({className:i}),children:(0,nB.jsx)(Ux.RichText.Content,{value:o})})}var su=r(U());function bj(e){return Number(e.substr(1))}var Sme={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:o,anchor:a,style:n}=t,i=n?.typography?.textAlign;return(0,su.createBlock)("core/heading",{...Gs(t,"core/heading",({content:l})=>({content:l})),content:o,anchor:a,textAlign:i})})},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{let o={children:e,attributes:t?[]:["style","id"]};return{h1:o,h2:o,h3:o,h4:o,h5:o,h6:o}},transform(e){let t=(0,su.getBlockAttributes)("core/heading",e.outerHTML),{textAlign:o}=e.style||{};return t.level=bj(e.nodeName),(o==="left"||o==="center"||o==="right")&&(t.align=o),(0,su.createBlock)("core/heading",t)}},...[1,2,3,4,5,6].map(e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,su.createBlock)("core/heading",{level:e,content:t})}})),...[1,2,3,4,5,6].map(e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform:()=>(0,su.createBlock)("core/heading",{level:e})}))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map(t=>{let{content:o,textAlign:a}=t;return(0,su.createBlock)("core/paragraph",{...Gs(t,"core/paragraph",({content:n})=>({content:n})),content:o,...a&&{style:{typography:{textAlign:a}}}})})}]},yj=Sme;var G0=r(B()),Gx=r(E());var iB=r(h()),Tme=[{name:"heading",title:(0,G0.__)("Heading"),description:(0,G0.__)("Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content."),isDefault:!0,scope:["inserter","transform"],attributes:{fitText:void 0},icon:Th},{name:"stretchy-heading",title:(0,G0.__)("Stretchy Heading"),description:(0,G0.__)("Heading that resizes to fit its container."),icon:(0,iB.jsx)(Gx.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,iB.jsx)(Gx.Path,{d:"m3 18.6 6-4.7 6 4.7V5H3v13.6Zm16.2-9.8v1.5h2.2L17.7 14l1.1 1.1 3.7-3.7v2.2H24V8.8h-4.8Z"})}),attributes:{fitText:!0},scope:["inserter","transform"],isActive:e=>e.fitText===!0}],_j=Tme;var{fieldsKey:Bme,formKey:Pme}=Q(xj.privateApis),{name:kj}=Ox,$x={icon:Th,example:{attributes:{content:(0,cu.__)("Code is Poetry"),level:2,textAlign:"center"}},__experimentalLabel(e,{context:t}){let{content:o,level:a}=e,n=e?.metadata?.name,i=o?.trim().length>0;if(t==="list-view"&&(n||i))return n||o;if(t==="accessibility")return i?(0,cu.sprintf)((0,cu.__)("Level %1$s. %2$s"),a,o):(0,cu.sprintf)((0,cu.__)("Level %s. Empty."),a)},transforms:yj,deprecated:dj,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:hj,save:vj,variations:_j};window.__experimentalContentOnlyInspectorFields&&($x[Bme]=[{id:"content",label:(0,cu.__)("Content"),type:"richtext"}],$x[Pme]={fields:["content"]});var Nme=()=>D({name:kj,metadata:Ox,settings:$x});var sB={};$(sB,{init:()=>Eme,metadata:()=>Wx,name:()=>Ij,settings:()=>Dj});var Nj=r(B());var Wx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string",role:"content"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"};var Kx=r(S()),qx=r(B()),wj=r(z()),Cj=r(Y()),Zx=r(h()),Dme=e=>e.preventDefault();function Sj({attributes:e,setAttributes:t,context:o}){let a=(0,wj.useSelect)(c=>c(Cj.store).getEntityRecord("root","__unstableBase")?.home,[]),{textColor:n,backgroundColor:i,style:l}=o,s=(0,Kx.useBlockProps)({className:k("wp-block-navigation-item",{"has-text-color":!!n||!!l?.color?.text,[`has-${n}-color`]:!!n,"has-background":!!i||!!l?.color?.background,[`has-${i}-background-color`]:!!i}),style:{color:l?.color?.text,backgroundColor:l?.color?.background}});return(0,Zx.jsx)("div",{...s,children:(0,Zx.jsx)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:a,onClick:Dme,children:(0,Zx.jsx)(Kx.RichText,{identifier:"label",className:"wp-block-home-link__label",value:e.label??(0,qx.__)("Home"),onChange:c=>{t({label:c})},"aria-label":(0,qx.__)("Home link text"),placeholder:(0,qx.__)("Add home link"),withoutInteractiveFormatting:!0})})})}var Tj=r(S()),Bj=r(h());function Pj(){return(0,Bj.jsx)(Tj.InnerBlocks.Content,{})}var{name:Ij}=Wx,Dj={icon:D8,edit:Sj,save:Pj,example:{attributes:{label:(0,Nj._x)("Home Link","block example")}}},Eme=()=>D({name:Ij,metadata:Wx,settings:Dj});var mB={};$(mB,{init:()=>Hme,metadata:()=>Xx,name:()=>qj,settings:()=>Zj});var Wj=r(B());var ef=r(B()),Aj=r(F()),mu=r(S()),il=r(L());var Ej=r(F()),Qx=r(S()),Mj=r(L()),Lj=r(z()),Rj=r(B()),np=r(h()),Mme=` |
| 18 |
html,body,:root { |
| 19 |
margin: 0 !important; |
| 20 |
padding: 0 !important; |
| 21 |
overflow: visible !important; |
| 22 |
min-height: auto !important; |
| 23 |
} |
| 24 |
`;function Yx({content:e,isSelected:t}){let o=(0,Lj.useSelect)(n=>n(Qx.store).getSettings().styles,[]),a=(0,Ej.useMemo)(()=>[Mme,...(0,Qx.transformStyles)((o??[]).filter(n=>n.css))],[o]);return(0,np.jsxs)(np.Fragment,{children:[(0,np.jsx)(Mj.SandBox,{html:e,styles:a,title:(0,Rj.__)("Custom HTML Preview"),tabIndex:-1}),!t&&(0,np.jsx)("div",{className:"block-library-html__preview-overlay"})]})}var dr=r(B()),ip=r(F()),zj=r(z()),fo=r(L()),Jd=r(S());function Hj(e=""){if(!e||!e.trim())return{html:"",css:"",js:""};let t=document.implementation.createHTMLDocument("");t.body.innerHTML=e;let o=t.body.querySelector('style[data-wp-block-html="css"]'),a=o?o.textContent.trim():"";o&&o.remove();let n=t.body.querySelector('script[data-wp-block-html="js"]'),i=n?n.textContent.trim():"";return n&&n.remove(),{html:t.body.innerHTML.trim(),css:a,js:i}}function cB({html:e="",css:t="",js:o=""}){let a=[];return t.trim()&&a.push(`<style data-wp-block-html="css"> |
| 25 |
${t} |
| 26 |
</style>`),o.trim()&&a.push(`<script data-wp-block-html="js"> |
| 27 |
${o} |
| 28 |
<\/script>`),e.trim()&&a.push(e),a.join(` |
| 29 |
|
| 30 |
`)}var Ke=r(h()),{Tabs:uu}=Q(fo.privateApis);function uB({isOpen:e,onRequestClose:t,content:o,setAttributes:a}){let{html:n,css:i,js:l}=Hj(o),[s,c]=(0,ip.useState)(n),[u,m]=(0,ip.useState)(i),[p,d]=(0,ip.useState)(l),[f,g]=(0,ip.useState)(!1),[v,b]=(0,ip.useState)(!1),[y,_]=(0,ip.useState)(!1),{canUserUseUnfilteredHTML:x}=(0,zj.useSelect)(V=>({canUserUseUnfilteredHTML:V(Jd.store).getSettings().__experimentalCanUserUseUnfilteredHTML}),[]),w=!x&&(i.trim()||l.trim());if(!e)return null;let C=V=>{c(V),g(!0)},T=V=>{m(V),g(!0)},N=V=>{d(V),g(!0)},P=()=>{a({content:cB({html:s,css:x?u:"",js:x?p:""})}),g(!1)},M=()=>{g(!1),t()},R=()=>{f?b(!0):t()},H=()=>{b(!1),t()},O=()=>{b(!1)},A=()=>{P(),t()},I=()=>{_(V=>!V)};return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(fo.Modal,{title:(0,dr.__)("Edit HTML"),onRequestClose:R,className:"block-library-html__modal",size:"large",isDismissible:!1,shouldCloseOnClickOutside:!f,shouldCloseOnEsc:!f,isFullScreen:y,__experimentalHideHeader:!0,children:(0,Ke.jsx)(uu,{orientation:"horizontal",defaultTabId:"html",children:(0,Ke.jsxs)(fo.__experimentalGrid,{columns:1,templateRows:"auto 1fr auto",gap:4,style:{height:"100%"},children:[(0,Ke.jsxs)(fo.__experimentalHStack,{justify:"space-between",className:"block-library-html__modal-header",children:[(0,Ke.jsx)("div",{children:(0,Ke.jsxs)(uu.TabList,{children:[(0,Ke.jsx)(uu.Tab,{tabId:"html",children:"HTML"}),x&&(0,Ke.jsx)(uu.Tab,{tabId:"css",children:"CSS"}),x&&(0,Ke.jsx)(uu.Tab,{tabId:"js",children:(0,dr.__)("JavaScript")})]})}),(0,Ke.jsx)("div",{children:(0,Ke.jsx)(fo.Button,{__next40pxDefaultSize:!0,icon:y?b9:gm,label:(0,dr.__)("Enable/disable fullscreen"),onClick:I,variant:"tertiary"})})]}),w&&(0,Ke.jsx)(fo.Notice,{status:"warning",isDismissible:!1,className:"block-library-html__modal-notice",children:(0,dr.__)("This block contains CSS or JavaScript that will be removed when you save because you do not have permission to use unfiltered HTML.")}),(0,Ke.jsxs)(fo.__experimentalHStack,{alignment:"stretch",justify:"flex-start",spacing:4,className:"block-library-html__modal-tabs",children:[(0,Ke.jsxs)("div",{className:"block-library-html__modal-content",children:[(0,Ke.jsx)(uu.TabPanel,{tabId:"html",focusable:!1,className:"block-library-html__modal-tab",children:(0,Ke.jsx)(Jd.PlainText,{value:s,onChange:C,placeholder:(0,dr.__)("Write HTML\u2026"),"aria-label":(0,dr.__)("HTML"),className:"block-library-html__modal-editor"})}),x&&(0,Ke.jsx)(uu.TabPanel,{tabId:"css",focusable:!1,className:"block-library-html__modal-tab",children:(0,Ke.jsx)(Jd.PlainText,{value:u,onChange:T,placeholder:(0,dr.__)("Write CSS\u2026"),"aria-label":(0,dr.__)("CSS"),className:"block-library-html__modal-editor"})}),x&&(0,Ke.jsx)(uu.TabPanel,{tabId:"js",focusable:!1,className:"block-library-html__modal-tab",children:(0,Ke.jsx)(Jd.PlainText,{value:p,onChange:N,placeholder:(0,dr.__)("Write JavaScript\u2026"),"aria-label":(0,dr.__)("JavaScript"),className:"block-library-html__modal-editor"})})]}),(0,Ke.jsx)("div",{className:"block-library-html__preview",children:(0,Ke.jsx)(Yx,{content:cB({html:s,css:u,js:p})})})]}),(0,Ke.jsxs)(fo.__experimentalHStack,{alignment:"center",justify:"flex-end",spacing:4,className:"block-library-html__modal-footer",children:[(0,Ke.jsx)(fo.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:M,children:(0,dr.__)("Cancel")}),(0,Ke.jsx)(fo.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:A,children:(0,dr.__)("Update")})]})]})})}),v&&(0,Ke.jsxs)(fo.Modal,{title:(0,dr.__)("Unsaved changes"),onRequestClose:O,size:"medium",children:[(0,Ke.jsx)("p",{children:(0,dr.__)("You have unsaved changes. What would you like to do?")}),(0,Ke.jsxs)(fo.Flex,{direction:"row",justify:"flex-end",gap:2,children:[(0,Ke.jsx)(fo.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:H,children:(0,dr.__)("Discard unsaved changes")}),(0,Ke.jsx)(fo.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:O,children:(0,dr.__)("Continue editing")}),(0,Ke.jsx)(fo.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:A,children:(0,dr.__)("Update and close")})]})]})]})}var Jr=r(h());function Vj({attributes:e,setAttributes:t,isSelected:o}){let[a,n]=(0,Aj.useState)(!1),i=(0,mu.useBlockProps)({className:"block-library-html__edit"});return e.content?.trim()?(0,Jr.jsxs)("div",{...i,children:[(0,Jr.jsx)(mu.BlockControls,{children:(0,Jr.jsx)(il.ToolbarGroup,{children:(0,Jr.jsx)(il.ToolbarButton,{onClick:()=>n(!0),children:(0,ef.__)("Edit code")})})}),(0,Jr.jsx)(mu.InspectorControls,{children:(0,Jr.jsx)(il.__experimentalVStack,{className:"block-editor-block-inspector-edit-contents",expanded:!0,children:(0,Jr.jsx)(il.Button,{className:"block-editor-block-inspector-edit-contents__button",__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>n(!0),children:(0,ef.__)("Edit code")})})}),(0,Jr.jsx)(Yx,{content:e.content,isSelected:o}),(0,Jr.jsx)(uB,{isOpen:a,onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]}):(0,Jr.jsxs)("div",{...i,children:[(0,Jr.jsx)(il.Placeholder,{icon:(0,Jr.jsx)(mu.BlockIcon,{icon:ph}),label:(0,ef.__)("Custom HTML"),instructions:(0,ef.__)("Add custom HTML code and preview how it looks."),children:(0,Jr.jsx)(il.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>n(!0),children:(0,ef.__)("Edit HTML")})}),(0,Jr.jsx)(uB,{isOpen:a,onRequestClose:()=>n(!1),content:e.content,setAttributes:t})]})}var Xx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw",role:"content"}},supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-html-editor"};var Fj=r(F()),jj=r(h());function Oj({attributes:e}){return(0,jj.jsx)(Fj.RawHTML,{children:e.content})}var Uj=r(U()),Gj=r(Bm()),Rme={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,Uj.createBlock)("core/html",{content:(0,Gj.create)({html:e}).text})}]},$j=Rme;var{name:qj}=Xx,Zj={icon:M8,example:{attributes:{content:"<marquee>"+(0,Wj.__)("Welcome to the wonderful world of blocks\u2026")+"</marquee>"}},edit:Vj,save:Oj,transforms:$j},Hme=()=>D({name:qj,metadata:Xx,settings:Zj});var gB={};$(gB,{init:()=>rpe,metadata:()=>Jx,name:()=>gO,settings:()=>t5});var lp=r(B());var fO=r(U());var ct=r(S()),De=r(h()),zme={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,width:l,height:s}=e,u=(0,De.jsx)("img",{src:t,alt:o,...l||s?{width:l,height:s}:{}}),m={};return l?m={width:l}:(n==="left"||n==="right")&&(m={maxWidth:"50%"}),(0,De.jsxs)("figure",{className:n?`align${n}`:null,style:m,children:[i?(0,De.jsx)("a",{href:i,children:u}):u,!ct.RichText.isEmpty(a)&&(0,De.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a})]})}},Ame={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,width:l,height:s,id:c}=e,u=(0,De.jsx)("img",{src:t,alt:o,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,De.jsxs)("figure",{className:n?`align${n}`:null,children:[i?(0,De.jsx)("a",{href:i,children:u}):u,!ct.RichText.isEmpty(a)&&(0,De.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a})]})}},Vme={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,width:l,height:s,id:c}=e,u=k({[`align${n}`]:n,"is-resized":l||s}),m=(0,De.jsx)("img",{src:t,alt:o,className:c?`wp-image-${c}`:null,width:l,height:s});return(0,De.jsxs)("figure",{className:u,children:[i?(0,De.jsx)("a",{href:i,children:m}):m,!ct.RichText.isEmpty(a)&&(0,De.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a})]})}},Fme={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,g=l||void 0,v=k({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),b=(0,De.jsx)("img",{src:t,alt:o,className:m?`wp-image-${m}`:null,width:c,height:u,title:f}),y=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:p,rel:g,children:b}):b,!ct.RichText.isEmpty(a)&&(0,De.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a})]});return n==="left"||n==="right"||n==="center"?(0,De.jsx)("div",{...ct.useBlockProps.save(),children:(0,De.jsx)("figure",{className:v,children:y})}):(0,De.jsx)("figure",{...ct.useBlockProps.save({className:v}),children:y})}},jme={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,id:m,linkTarget:p,sizeSlug:d,title:f}=e,g=l||void 0,v=k({[`align${n}`]:n,[`size-${d}`]:d,"is-resized":c||u}),b=(0,De.jsx)("img",{src:t,alt:o,className:m?`wp-image-${m}`:null,width:c,height:u,title:f}),y=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:p,rel:g,children:b}):b,!ct.RichText.isEmpty(a)&&(0,De.jsx)(ct.RichText.Content,{tagName:"figcaption",value:a})]});return(0,De.jsx)("figure",{...ct.useBlockProps.save({className:v}),children:y})}},Ome={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate(e){let{height:t,width:o}=e;return{...e,width:typeof o=="number"?`${o}px`:o,height:typeof t=="number"?`${t}px`:t}},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:g,title:v}=e,b=l||void 0,y=(0,ct.__experimentalGetBorderClassesAndStyles)(e),_=k({[`align${n}`]:n,[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!y.className||y.style&&Object.keys(y.style).length>0}),x=k(y.className,{[`wp-image-${d}`]:!!d}),w=(0,De.jsx)("img",{src:t,alt:o,className:x||void 0,style:{...y.style,aspectRatio:m,objectFit:p},width:c,height:u,title:v}),C=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:f,rel:b,children:w}):w,!ct.RichText.isEmpty(a)&&(0,De.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,De.jsx)("figure",{...ct.useBlockProps.save({className:_}),children:C})}},Ume={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...o}){return{...o,width:`${e}px`,height:`${t}px`}},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:g,title:v}=e,b=l||void 0,y=(0,ct.__experimentalGetBorderClassesAndStyles)(e),_=k({[`align${n}`]:n,[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!y.className||y.style&&Object.keys(y.style).length>0}),x=k(y.className,{[`wp-image-${d}`]:!!d}),w=(0,De.jsx)("img",{src:t,alt:o,className:x||void 0,style:{...y.style,aspectRatio:m,objectFit:p,width:c,height:u},width:c,height:u,title:v}),C=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:f,rel:b,children:w}):w,!ct.RichText.isEmpty(a)&&(0,De.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,De.jsx)("figure",{...ct.useBlockProps.save({className:_}),children:C})}},Gme={attributes:{align:{type:"string"},behaviors:{type:"object"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"string",source:"html",selector:"figcaption",role:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...o}){if(!o.behaviors?.lightbox)return o;let{behaviors:{lightbox:{enabled:a}}}=o,n={...o,lightbox:{enabled:a}};return delete n.behaviors,n},isEligible(e){return!!e.behaviors},save({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:g,title:v}=e,b=l||void 0,y=(0,ct.__experimentalGetBorderClassesAndStyles)(e),_=k({[`align${n}`]:n,[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!y.className||y.style&&Object.keys(y.style).length>0}),x=k(y.className,{[`wp-image-${d}`]:!!d}),w=(0,De.jsx)("img",{src:t,alt:o,className:x||void 0,style:{...y.style,aspectRatio:m,objectFit:p,width:c,height:u},title:v}),C=(0,De.jsxs)(De.Fragment,{children:[i?(0,De.jsx)("a",{className:s,href:i,target:f,rel:b,children:w}):w,!ct.RichText.isEmpty(a)&&(0,De.jsx)(ct.RichText.Content,{className:(0,ct.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,De.jsx)("figure",{...ct.useBlockProps.save({className:_}),children:C})}},Kj=[Gme,Ume,Ome,jme,Fme,Vme,Ame,zme];var W0=r(Po()),$0=r(U()),lO=r(L()),rf=r(z()),Ba=r(S()),pu=r(F()),ts=r(B());var sO=r(No()),cO=r(xe());var Xj=r(Po()),ze=r(L()),of=r(xe()),ec=r(z()),yt=r(S()),qo=r(F()),Ie=r(B()),Jj=r(ko()),tf=r(U());var eO=r(No()),pB=r(Y());var ae=r(h()),{DimensionsTool:Qj,ResolutionTool:$me}=Q(yt.privateApis),Wme=[{value:"cover",label:(0,Ie._x)("Cover","Scale option for dimensions control"),help:(0,Ie.__)("Image covers the space evenly.")},{value:"contain",label:(0,Ie._x)("Contain","Scale option for dimensions control"),help:(0,Ie.__)("Image is contained without distortion.")}],qme={placement:"bottom-start"},Yj=({href:e,children:t})=>e?(0,ae.jsx)("a",{href:e,onClick:o=>o.preventDefault(),"aria-disabled":!0,style:{pointerEvents:"none",cursor:"default",display:"inline"},children:t}):t;function Zme({attributes:e,setAttributes:t,lockAltControls:o,lockAltControlsMessage:a,lockTitleControls:n,lockTitleControlsMessage:i}){let[l,s]=(0,qo.useState)(null),[c,u]=(0,qo.useState)(!1),[m,p]=(0,qo.useState)(!1);return(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(ze.ToolbarItem,{ref:s,children:d=>(0,ae.jsx)(ze.DropdownMenu,{icon:uh,label:(0,Ie.__)("More"),toggleProps:{...d,description:(0,Ie.__)("Displays more controls.")},popoverProps:qme,children:({onClose:f})=>(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(ze.MenuItem,{onClick:()=>{u(!0),f()},"aria-haspopup":"dialog",children:(0,Ie._x)("Alternative text","Alternative text for an image. Block toolbar label, a low character count is preferred.")}),(0,ae.jsx)(ze.MenuItem,{onClick:()=>{p(!0),f()},"aria-haspopup":"dialog",children:(0,Ie.__)("Title text")})]})})}),c&&(0,ae.jsx)(ze.Popover,{placement:"bottom-start",anchor:l,onClose:()=>u(!1),offset:13,variant:"toolbar",children:(0,ae.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ae.jsx)(ze.TextareaControl,{className:"wp-block-image__toolbar_content_textarea",label:(0,Ie.__)("Alternative text"),value:e.alt||"",onChange:d=>t({alt:d}),disabled:o,help:o?(0,ae.jsx)(ae.Fragment,{children:a}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(ze.ExternalLink,{href:(0,Ie.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Ie.__)("Describe the purpose of the image.")}),(0,ae.jsx)("br",{}),(0,Ie.__)("Leave empty if decorative.")]}),__nextHasNoMarginBottom:!0})})}),m&&(0,ae.jsx)(ze.Popover,{placement:"bottom-start",anchor:l,onClose:()=>p(!1),offset:13,variant:"toolbar",children:(0,ae.jsx)("div",{className:"wp-block-image__toolbar_content_textarea__container",children:(0,ae.jsx)(ze.TextControl,{__next40pxDefaultSize:!0,className:"wp-block-image__toolbar_content_textarea",__nextHasNoMarginBottom:!0,label:(0,Ie.__)("Title attribute"),value:e.title||"",onChange:d=>t({title:d}),disabled:n,help:n?(0,ae.jsx)(ae.Fragment,{children:i}):(0,ae.jsxs)(ae.Fragment,{children:[(0,Ie.__)("Describe the role of this image on the page."),(0,ae.jsx)(ze.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,Ie.__)("(Note: many devices and browsers do not display this text.)")})]})})})})]})}function tO({temporaryURL:e,attributes:t,setAttributes:o,isSingleSelected:a,insertBlocksAfter:n,onReplace:i,onSelectImage:l,onSelectURL:s,onUploadError:c,context:u,clientId:m,blockEditingMode:p,parentLayoutType:d,maxContentWidth:f}){let{url:g="",alt:v,align:b,id:y,href:_,rel:x,linkClass:w,linkDestination:C,title:T,width:N,height:P,aspectRatio:M,scale:R,linkTarget:H,sizeSlug:O,lightbox:A,metadata:I}=t,[V,W]=(0,qo.useState)(),[j,K]=(0,qo.useState)(null),[Z,te]=(0,qo.useState)({}),[X,J]=(0,qo.useState)(0),ee=(0,of.useResizeObserver)(([Se])=>{if(!j){let[ro]=Se.borderBoxSize;te({width:ro.inlineSize,height:ro.blockSize})}J(Se.target.offsetTop)}),ne=(0,qo.useCallback)(()=>{J(V?.offsetTop??0)},[V]),oe=(0,of.useMergeRefs)([W,ee]),{allowResize:ce=!0}=u,pe=(0,ec.useSelect)(Se=>y&&a?Se(pB.store).getEntityRecord("postType","attachment",y,{context:"view"}):null,[y,a]),{canInsertCover:Ne,imageEditing:Le,imageSizes:ie,maxWidth:Ee}=(0,ec.useSelect)(Se=>{let{getBlockRootClientId:ro,canInsertBlockType:zl,getSettings:Ua}=Se(yt.store),oh=ro(m),rm=Ua();return{imageEditing:rm.imageEditing,imageSizes:rm.imageSizes,maxWidth:rm.maxWidth,canInsertCover:zl("core/cover",oh)}},[m]),{getBlock:de,getSettings:re}=(0,ec.useSelect)(yt.store),{replaceBlocks:se,toggleSelection:we}=(0,ec.useDispatch)(yt.store),{createErrorNotice:fe,createSuccessNotice:mt}=(0,ec.useDispatch)(eO.store),{editEntityRecord:kt}=(0,ec.useDispatch)(pB.store),bt=(0,of.useViewportMatch)("medium"),_o=["wide","full"].includes(b),[{loadedNaturalWidth:Ye,loadedNaturalHeight:xo},si]=(0,qo.useState)({}),[q,Be]=(0,qo.useState)(!1),[He,Ve]=(0,qo.useState)(),[Fe,Yt]=(0,qo.useState)(!1),or=p==="default",Pt=p==="contentOnly",qe=ce&&or&&!_o&&bt,rr=ie.filter(({slug:Se})=>pe?.media_details?.sizes?.[Se]?.source_url).map(({name:Se,slug:ro})=>({value:ro,label:Se}));(0,qo.useEffect)(()=>{if(!dB(y,g)||!a||!re().mediaUpload){Ve();return}He||window.fetch(g.includes("?")?g:g+"?").then(Se=>Se.blob()).then(Se=>Ve(Se)).catch(()=>{})},[y,g,a,He,re]);let{naturalWidth:$r,naturalHeight:ja}=(0,qo.useMemo)(()=>({naturalWidth:V?.naturalWidth||Ye||void 0,naturalHeight:V?.naturalHeight||xo||void 0}),[Ye,xo,V?.complete]);function ma(){Yt(!0);let Se=Vc({attributes:{url:g}});Se!==void 0&&i(Se)}function Bc(Se){Yt(!1),si({loadedNaturalWidth:Se.target?.naturalWidth,loadedNaturalHeight:Se.target?.naturalHeight})}function Ml(Se){o(Se)}function Ll(Se){Se&&!ci?.enabled?o({lightbox:{enabled:!0}}):!Se&&ci?.enabled?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function Vi(){ci?.enabled&&ci?.allowEditing?o({lightbox:{enabled:!1}}):o({lightbox:void 0})}function As(Se){o({title:Se})}function nd(Se){o({alt:Se})}function Pc(Se){let ro=pe?.media_details?.sizes?.[Se]?.source_url;if(!ro)return null;o({url:ro,sizeSlug:Se})}function Te(){let{mediaUpload:Se}=re();Se&&Se({filesList:[He],onFileChange([ro]){l(ro),!(0,Xj.isBlobURL)(ro.url)&&(Ve(),mt((0,Ie.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:iu,onError(ro){fe(ro,{type:"snackbar"})}})}(0,qo.useEffect)(()=>{a||Be(!1)},[a]);let pt=y&&$r&&ja&&Le,Fo=a&&pt&&!q&&!Pt;function Oa(){se(m,(0,tf.switchToBlockType)(de(m),"core/cover"))}let Rl=(0,ze.__experimentalUseCustomUnits)({availableUnits:["px"]}),[ci]=(0,yt.useSettings)("lightbox"),Hl=!!A&&A?.enabled!==ci?.enabled||ci?.allowEditing,Tn=!!A?.enabled||!A&&!!ci?.enabled,em=G(),tm=qe&&(jT.includes(d)?(0,ae.jsx)(Qj,{value:{aspectRatio:M},onChange:({aspectRatio:Se})=>{o({aspectRatio:Se,scale:"cover"})},defaultAspectRatio:"auto",tools:["aspectRatio"]}):(0,ae.jsx)(Qj,{value:{width:N,height:P,scale:R,aspectRatio:M},onChange:({width:Se,height:ro,scale:zl,aspectRatio:Ua})=>{o({width:!Se&&ro?"auto":Se,height:ro,scale:zl,aspectRatio:Ua})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:Wme,unitsOptions:Rl})),H2=()=>{o({alt:void 0,width:void 0,height:void 0,scale:void 0,aspectRatio:void 0,lightbox:void 0}),Pc(F0)},z2=(0,ae.jsx)(yt.InspectorControls,{children:(0,ae.jsx)(ze.__experimentalToolsPanel,{label:(0,Ie.__)("Settings"),resetAll:H2,dropdownMenuProps:em,children:tm})}),Nc=I?.bindings?.__default?.source==="core/pattern-overrides",{lockUrlControls:Yg=!1,lockHrefControls:A2=!1,lockAltControls:Xg=!1,lockAltControlsMessage:Jg,lockTitleControls:Ic=!1,lockTitleControlsMessage:om,hideCaptionControls:id=!1}=(0,ec.useSelect)(Se=>{if(!a)return{};let{url:ro,alt:zl,title:Ua,caption:oh}=I?.bindings||{},rm=!!u["pattern/overrides"],YC=(0,tf.getBlockBindingsSource)(ro?.source),ld=(0,tf.getBlockBindingsSource)(zl?.source),Dc=(0,tf.getBlockBindingsSource)(Ua?.source);return{lockUrlControls:!!ro&&!YC?.canUserEditValue?.({select:Se,context:u,args:ro?.args}),lockHrefControls:rm||Nc,hideCaptionControls:!!oh,lockAltControls:!!zl&&!ld?.canUserEditValue?.({select:Se,context:u,args:zl?.args}),lockAltControlsMessage:ld?.label?(0,Ie.sprintf)((0,Ie.__)("Connected to %s"),ld.label):(0,Ie.__)("Connected to dynamic data"),lockTitleControls:!!Ua&&!Dc?.canUserEditValue?.({select:Se,context:u,args:Ua?.args}),lockTitleControlsMessage:Dc?.label?(0,Ie.sprintf)((0,Ie.__)("Connected to %s"),Dc.label):(0,Ie.__)("Connected to dynamic data")}},[Nc,u,a,I?.bindings]),V2=a&&!q&&!A2&&!Yg,co=a&&Ne&&!Pt,eh=V2||Fo||co,th=a&&!q&&!Yg&&(0,ae.jsx)(yt.BlockControls,{group:Pt?"inline":"other",children:(0,ae.jsx)(yt.MediaReplaceFlow,{mediaId:y,mediaURL:g,allowedTypes:iu,onSelect:l,onSelectURL:s,onError:c,name:g?(0,Ie.__)("Replace"):(0,Ie.__)("Add image"),onReset:()=>l(void 0)})}),_E=(0,ae.jsxs)(ae.Fragment,{children:[eh&&(0,ae.jsxs)(yt.BlockControls,{group:"block",children:[V2&&(0,ae.jsx)(yt.__experimentalImageURLInputUI,{url:_||"",onChangeUrl:Ml,linkDestination:C,mediaUrl:pe&&pe.source_url||g,mediaLink:pe&&pe.link,linkTarget:H,linkClass:w,rel:x,showLightboxSetting:Hl,lightboxEnabled:Tn,onSetLightbox:Ll,resetLightbox:Vi}),Fo&&(0,ae.jsx)(ze.ToolbarButton,{onClick:()=>Be(!0),icon:gh,label:(0,Ie.__)("Crop")}),co&&(0,ae.jsx)(ze.ToolbarButton,{icon:l7,label:(0,Ie.__)("Add text over image"),onClick:Oa})]}),a&&He&&(0,ae.jsx)(yt.BlockControls,{children:(0,ae.jsx)(ze.ToolbarGroup,{children:(0,ae.jsx)(ze.ToolbarButton,{onClick:Te,icon:js,label:(0,Ie.__)("Upload to Media Library")})})}),Pt&&(0,ae.jsx)(yt.BlockControls,{group:"block",children:(0,ae.jsx)(Zme,{attributes:t,setAttributes:o,lockAltControls:Xg,lockAltControlsMessage:Jg,lockTitleControls:Ic,lockTitleControlsMessage:om})}),(0,ae.jsx)(yt.InspectorControls,{children:(0,ae.jsxs)(ze.__experimentalToolsPanel,{label:(0,Ie.__)("Settings"),resetAll:H2,dropdownMenuProps:em,children:[a&&(0,ae.jsx)(ze.__experimentalToolsPanelItem,{label:(0,Ie.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>o({alt:void 0}),children:(0,ae.jsx)(ze.TextareaControl,{label:(0,Ie.__)("Alternative text"),value:v||"",onChange:nd,readOnly:Xg,help:Xg?(0,ae.jsx)(ae.Fragment,{children:Jg}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(ze.ExternalLink,{href:(0,Ie.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Ie.__)("Describe the purpose of the image.")}),(0,ae.jsx)("br",{}),(0,Ie.__)("Leave empty if decorative.")]}),__nextHasNoMarginBottom:!0})}),tm,!!rr.length&&(0,ae.jsx)($me,{value:O,defaultValue:F0,onChange:Pc,options:rr})]})}),(0,ae.jsx)(yt.InspectorControls,{group:"advanced",children:(0,ae.jsx)(ze.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Ie.__)("Title attribute"),value:T||"",onChange:As,readOnly:Ic,help:Ic?(0,ae.jsx)(ae.Fragment,{children:om}):(0,ae.jsxs)(ae.Fragment,{children:[(0,Ie.__)("Describe the role of this image on the page."),(0,ae.jsx)(ze.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute",children:(0,Ie.__)("(Note: many devices and browsers do not display this text.)")})]})})})]}),xE=(0,Jj.getFilename)(g),F2;v?F2=v:xE?F2=(0,Ie.sprintf)((0,Ie.__)("This image has an empty alt attribute; its file name is %s"),xE):F2=(0,Ie.__)("This image has an empty alt attribute");let QC=(0,yt.__experimentalUseBorderProps)(t),Mne=(0,yt.__experimentalGetShadowClassesAndStyles)(t),Lne=t.className?.includes("is-style-rounded"),{postType:Rne,postId:kE,queryId:Hne}=u,zne=Number.isFinite(Hne),j2=e&&Fe?(0,ae.jsx)(ze.Placeholder,{className:"wp-block-image__placeholder",withIllustration:!0,children:(0,ae.jsx)(ze.Spinner,{})}):(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)("img",{src:e||g,alt:F2,onError:ma,onLoad:Bc,ref:oe,className:QC.className,width:$r,height:ja,style:{aspectRatio:M,...j?{width:Z.width+j.width,height:Z.height+j.height}:{width:N,height:P},objectFit:R,...QC.style,...Mne.style}}),e&&(0,ae.jsx)(ze.Spinner,{})]});pt&&q?j2=(0,ae.jsx)(Yj,{href:_,children:(0,ae.jsx)(yt.__experimentalImageEditor,{id:y,url:g,...Z,naturalHeight:ja,naturalWidth:$r,onSaveImage:Se=>o(Se),onFinishEditing:()=>{Be(!1)},borderProps:Lne?void 0:QC})}):j2=(0,ae.jsx)(Yj,{href:_,children:j2});let wE;if(qe&&a&&!q&&!jT.includes(d)){let Se=M&&PF(M),ro=Z.width/Z.height,zl=$r/ja,Ua=Se||ro||zl||1,oh=$r<ja?Jl:Jl*Ua,rm=ja<$r?Jl:Jl/Ua,YC=Ee*2.5,ld=f||YC,Dc=!1,O2=!1;b==="center"?(Dc=!0,O2=!0):(0,Ie.isRTL)()?b==="left"?Dc=!0:O2=!0:b==="right"?O2=!0:Dc=!0,wE=(0,ae.jsx)(ze.ResizableBox,{ref:ne,style:{position:"absolute",inset:`${X}px 0 0 0`},size:Z,minWidth:oh,maxWidth:ld,minHeight:rm,maxHeight:ld/Ua,lockAspectRatio:Ua,enable:{top:!1,right:Dc,bottom:!0,left:O2},onResizeStart:()=>{we(!1)},onResize:(Vne,Fne,XC,U2)=>{K(U2)},onResizeStop:(Vne,Fne,XC,U2)=>{if(we(!0),K(null),te(CE=>({width:CE.width+U2.width,height:CE.height+U2.height})),f&&$r>=f&&Math.abs(XC.offsetWidth-f)<10){o({width:void 0,height:void 0});return}o({width:`${XC.offsetWidth}px`,height:"auto",aspectRatio:Ua===zl?void 0:String(Ua)})},resizeRatio:b==="center"?2:1})}if(!g&&!e)return(0,ae.jsxs)(ae.Fragment,{children:[th,I?.bindings?_E:z2]});let Ane=()=>{kt("postType",Rne,kE,{featured_media:y}),mt((0,Ie.__)("Post featured image updated."),{type:"snackbar"})};return(0,ae.jsxs)(ae.Fragment,{children:[th,_E,(0,ae.jsx)(yt.BlockSettingsMenuControls,{children:({selectedClientIds:Se})=>Se.length===1&&!zne&&kE&&y&&m===Se[0]&&(0,ae.jsx)(ze.MenuItem,{onClick:Ane,children:(0,Ie.__)("Set as featured image")})}),j2,wE,(0,ae.jsx)(Wa,{attributes:t,setAttributes:o,isSelected:a,insertBlocksAfter:n,label:(0,Ie.__)("Image caption text"),showToolbarButton:a&&(or||Pt)&&!id})]})}var oO=r(F()),rO=r(xe()),aO=r(h());function nO(){let[e,{width:t}]=(0,rO.useResizeObserver)(),o=(0,oO.useRef)();return[(0,aO.jsx)("div",{className:"wp-block","aria-hidden":"true",style:{position:"absolute",inset:0,width:"100%",height:0,margin:0},ref:o,children:e}),t]}var ll=r(h()),Kme=(e,t)=>{let o=Object.fromEntries(Object.entries(e??{}).filter(([a])=>["alt","id","link","caption"].includes(a)));return o.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,o},dB=(e,t)=>t&&!e&&!(0,W0.isBlobURL)(t);function iO(e,t){return"url"in(e?.sizes?.[t]??{})||"source_url"in(e?.media_details?.sizes?.[t]??{})}function Qme({attributes:e,setAttributes:t,isSelected:o,className:a,insertBlocksAfter:n,onReplace:i,context:l,clientId:s,__unstableParentLayout:c}){let{url:u="",caption:m,id:p,width:d,height:f,sizeSlug:g,aspectRatio:v,scale:b,align:y,metadata:_}=e,[x,w]=(0,pu.useState)(e.blob),C=(0,pu.useRef)(),T=c?.type||c?.default?.type,N=!T||T!=="flex"&&T!=="grid",[P,M]=nO(),[R,{width:H}]=(0,cO.useResizeObserver)(),O=H&&H<160,A=(0,pu.useRef)();(0,pu.useEffect)(()=>{A.current=m},[m]);let{__unstableMarkNextChangeAsNotPersistent:I,replaceBlock:V}=(0,rf.useDispatch)(Ba.store);(0,pu.useEffect)(()=>{["wide","full"].includes(y)&&(I(),t({width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}))},[I,y,t]);let{getSettings:W,getBlockRootClientId:j,getBlockName:K,canInsertBlockType:Z}=(0,rf.useSelect)(Ba.store),te=(0,Ba.useBlockEditingMode)(),{createErrorNotice:X}=(0,rf.useDispatch)(sO.store);function J(fe){X(fe,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0,blob:void 0})}function ee(fe){let mt=C.current?.ownerDocument.defaultView;if(fe.every(kt=>kt instanceof mt.File)){let kt=fe,bt=j(s);kt.some(Ye=>!GT(Ye))&&X((0,ts.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});let _o=kt.filter(Ye=>GT(Ye)).map(Ye=>(0,$0.createBlock)("core/image",{blob:(0,W0.createBlobURL)(Ye)}));if(K(bt)==="core/gallery")V(s,_o);else if(Z("core/gallery",bt)){let Ye=(0,$0.createBlock)("core/gallery",{},_o);V(s,Ye)}}}function ne(fe){if(Array.isArray(fe)){ee(fe);return}if(!fe||!fe.url){t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0,blob:void 0}),w();return}if((0,W0.isBlobURL)(fe.url)){w(fe.url);return}let{imageDefaultSize:mt}=W(),kt=F0;g&&iO(fe,g)?kt=g:iO(fe,mt)&&(kt=mt);let bt=Kme(fe,kt);if(typeof bt.caption=="string"&&bt.caption.includes(` |
| 31 |
`)&&(bt.caption=bt.caption.replace(/\n/g,"<br>")),A.current&&!bt.caption){let{caption:si,...q}=bt;bt=q}let _o;(!fe.id||fe.id!==p)&&(_o={sizeSlug:kt});let Ye=e.linkDestination;if(!Ye)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||rp){case"file":case Yd:Ye=Yd;break;case"post":case Xd:Ye=Xd;break;case FT:Ye=FT;break;case rp:Ye=rp;break}let xo;switch(Ye){case Yd:xo=fe.url;break;case Xd:xo=fe.link;break}bt.href=xo,t({blob:void 0,...bt,..._o,linkDestination:Ye}),w()}function oe(fe){fe!==u&&(t({blob:void 0,url:fe,id:void 0,sizeSlug:W().imageDefaultSize}),w())}Lc({url:x,allowedTypes:iu,onChange:ne,onError:J});let pe=dB(p,u)?u:void 0,Ne=!!u&&(0,ll.jsx)("img",{alt:(0,ts.__)("Edit image"),title:(0,ts.__)("Edit image"),className:"edit-image-preview",src:u}),Le=(0,Ba.__experimentalUseBorderProps)(e),ie=(0,Ba.__experimentalGetShadowClassesAndStyles)(e),Ee=k(a,{"is-transient":!!x,"is-resized":!!d||!!f,[`size-${g}`]:g,"has-custom-border":!!Le.className||Le.style&&Object.keys(Le.style).length>0}),de=(0,Ba.useBlockProps)({ref:C,className:Ee}),{lockUrlControls:re=!1,lockUrlControlsMessage:se}=(0,rf.useSelect)(fe=>{if(!o)return{};let mt=(0,$0.getBlockBindingsSource)(_?.bindings?.url?.source);return{lockUrlControls:!!_?.bindings?.url&&!mt?.canUserEditValue?.({select:fe,context:l,args:_?.bindings?.url?.args}),lockUrlControlsMessage:mt?.label?(0,ts.sprintf)((0,ts.__)("Connected to %s"),mt.label):(0,ts.__)("Connected to dynamic data")}},[l,o,_?.bindings?.url]);return(0,ll.jsxs)(ll.Fragment,{children:[(0,ll.jsxs)("figure",{...de,children:[(0,ll.jsx)(tO,{temporaryURL:x,attributes:e,setAttributes:t,isSingleSelected:o,insertBlocksAfter:n,onReplace:i,onSelectImage:ne,onSelectURL:oe,onUploadError:J,context:l,clientId:s,blockEditingMode:te,parentLayoutType:T,maxContentWidth:M}),(0,ll.jsx)(Ba.MediaPlaceholder,{icon:(0,ll.jsx)(Ba.BlockIcon,{icon:zc}),onSelect:ne,onSelectURL:oe,onError:J,placeholder:fe=>(0,ll.jsxs)(lO.Placeholder,{className:k("block-editor-media-placeholder",{[Le.className]:!!Le.className&&!o}),icon:!O&&(re?g7:zc),withIllustration:!o||O,label:!O&&(0,ts.__)("Image"),instructions:!re&&!O&&(0,ts.__)("Drag and drop an image, upload, or choose from your library."),style:{aspectRatio:!(d&&f)&&v?v:void 0,width:f&&v?"100%":d,height:d&&v?"100%":f,objectFit:b,...Le.style,...ie.style},children:[re&&!O&&se,!re&&!O&&fe,R]}),allowedTypes:iu,handleUpload:fe=>fe.length===1,value:{id:p,src:pe},mediaPreview:Ne,disableMediaButtons:x||u})]}),o&&N&&P]})}var uO=Qme;var Jx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight","postId","postType","queryId"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{blob:{type:"string",role:"local"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",role:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",role:"content"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},lightbox:{type:"object",enabled:{type:"boolean"}},title:{type:"string",source:"attribute",selector:"img",attribute:"title",role:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",role:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{interactivity:!0,align:["left","center","right","wide","full"],anchor:!0,color:{text:!1,background:!1},filter:{duotone:!0},spacing:{margin:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},shadow:{__experimentalSkipSerialization:!0}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",shadow:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"};var sl=r(S()),tc=r(h());function mO({attributes:e}){let{url:t,alt:o,caption:a,align:n,href:i,rel:l,linkClass:s,width:c,height:u,aspectRatio:m,scale:p,id:d,linkTarget:f,sizeSlug:g,title:v,metadata:{bindings:b={}}={}}=e,y=l||void 0,_=(0,sl.__experimentalGetBorderClassesAndStyles)(e),x=(0,sl.__experimentalGetShadowClassesAndStyles)(e),w=k({alignnone:n==="none",[`size-${g}`]:g,"is-resized":c||u,"has-custom-border":!!_.className||_.style&&Object.keys(_.style).length>0}),C=k(_.className,{[`wp-image-${d}`]:!!d}),T=(0,tc.jsx)("img",{src:t,alt:o,className:C||void 0,style:{..._.style,...x.style,aspectRatio:m,objectFit:p,width:c,height:u},title:v}),N=!sl.RichText.isEmpty(a)||b.caption||b?.__default?.source==="core/pattern-overrides",P=(0,tc.jsxs)(tc.Fragment,{children:[i?(0,tc.jsx)("a",{className:s,href:i,target:f,rel:y,children:T}):T,N&&(0,tc.jsx)(sl.RichText.Content,{className:(0,sl.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:a})]});return(0,tc.jsx)("figure",{...sl.useBlockProps.save({className:w}),children:P})}var e5=r(Po()),q0=r(U());function Xme(e,{shortcode:t}){let{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=t.content;let a=o.querySelector("img");for(;a&&a.parentNode&&a.parentNode!==o;)a=a.parentNode;return a&&a.parentNode.removeChild(a),o.innerHTML.trim()}function fB(e,t){let{body:o}=document.implementation.createHTMLDocument("");o.innerHTML=e;let{firstElementChild:a}=o;if(a&&a.nodeName==="A")return a.getAttribute(t)||void 0}var pO={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},Jme=({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...pO,a:{attributes:["href","rel","target"],classes:["*"],children:pO},figcaption:{children:e}}}}),epe={from:[{type:"raw",isMatch:e=>e.nodeName==="FIGURE"&&!!e.querySelector("img"),schema:Jme,transform:e=>{let t=e.className+" "+e.querySelector("img").className,o=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),a=e.id===""?void 0:e.id,n=o?o[1]:void 0,i=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=i?Number(i[1]):void 0,s=e.querySelector("a"),c=s&&s.href?"custom":void 0,u=s&&s.href?s.href:void 0,m=s&&s.rel?s.rel:void 0,p=s&&s.className?s.className:void 0,d=(0,q0.getBlockAttributes)("core/image",e.outerHTML,{align:n,id:l,linkDestination:c,href:u,rel:m,linkClass:p,anchor:a});return(0,e5.isBlobURL)(d.url)&&(d.blob=d.url,delete d.url),(0,q0.createBlock)("core/image",d)}},{type:"files",isMatch(e){return e.every(t=>t.type.indexOf("image/")===0)},transform(e){return e.map(o=>(0,q0.createBlock)("core/image",{blob:(0,e5.createBlobURL)(o)}))}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:Xme},href:{shortcode:(e,{shortcode:t})=>fB(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>fB(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>fB(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]},dO=epe;var{fieldsKey:tpe,formKey:ope}=Q(fO.privateApis),{name:gO}=Jx,t5={icon:zc,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,lp.__)("Mont Blanc appears\u2014still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){let o=e?.metadata?.name;if(t==="list-view"&&o)return o;if(t==="accessibility"){let{caption:a,alt:n,url:i}=e;return i?n?n+(a?". "+a:""):a||"":(0,lp.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:dO,edit:uO,save:mO,deprecated:Kj};window.__experimentalContentOnlyInspectorFields&&(t5[tpe]=[{id:"image",label:(0,lp.__)("Image"),type:"media",mapping:{id:"id",url:"url",caption:"caption",alt:"alt"},args:{allowedTypes:["image"],multiple:!1}},{id:"link",label:(0,lp.__)("Link"),type:"link",mapping:{url:"href",rel:"rel",linkTarget:"linkTarget",destination:"linkDestination"}},{id:"caption",label:(0,lp.__)("Caption"),type:"richtext"},{id:"alt",label:(0,lp.__)("Alt text"),type:"text"}],t5[ope]={fields:["image"]});var rpe=()=>D({name:gO,metadata:Jx,settings:t5});var hB={};$(hB,{init:()=>spe,metadata:()=>o5,name:()=>yO,settings:()=>_O});var o5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayContent:{type:"string",default:"excerpt",enum:["none","excerpt","full"]}},supports:{align:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"};var r5=r(S()),ea=r(L()),hO=r(Ec()),Un=r(B());var Pa=r(h()),npe=1,ipe=100;function vO({attributes:e,setAttributes:t}){let{commentsToShow:o,displayAvatar:a,displayDate:n,displayContent:i}=e,l={...e,style:{...e?.style,spacing:void 0}},s=G();return(0,Pa.jsxs)("div",{...(0,r5.useBlockProps)(),children:[(0,Pa.jsx)(r5.InspectorControls,{children:(0,Pa.jsxs)(ea.__experimentalToolsPanel,{label:(0,Un.__)("Settings"),resetAll:()=>{t({commentsToShow:5,displayAvatar:!0,displayDate:!0,displayContent:"excerpt"})},dropdownMenuProps:s,children:[(0,Pa.jsx)(ea.__experimentalToolsPanelItem,{hasValue:()=>!a,label:(0,Un.__)("Display avatar"),onDeselect:()=>t({displayAvatar:!0}),isShownByDefault:!0,children:(0,Pa.jsx)(ea.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Un.__)("Display avatar"),checked:a,onChange:()=>t({displayAvatar:!a})})}),(0,Pa.jsx)(ea.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Un.__)("Display date"),onDeselect:()=>t({displayDate:!0}),isShownByDefault:!0,children:(0,Pa.jsx)(ea.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Un.__)("Display date"),checked:n,onChange:()=>t({displayDate:!n})})}),(0,Pa.jsx)(ea.__experimentalToolsPanelItem,{hasValue:()=>i!=="excerpt",label:(0,Un.__)("Display content"),onDeselect:()=>t({displayContent:"excerpt"}),isShownByDefault:!0,children:(0,Pa.jsx)(ea.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Un.__)("Display content"),value:i,options:[{label:(0,Un.__)("No content"),value:"none"},{label:(0,Un.__)("Excerpt"),value:"excerpt"},{label:(0,Un.__)("Full content"),value:"full"}],onChange:c=>t({displayContent:c})})}),(0,Pa.jsx)(ea.__experimentalToolsPanelItem,{hasValue:()=>o!==5,label:(0,Un.__)("Number of comments"),onDeselect:()=>t({commentsToShow:5}),isShownByDefault:!0,children:(0,Pa.jsx)(ea.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Un.__)("Number of comments"),value:o,onChange:c=>t({commentsToShow:c}),min:npe,max:ipe,required:!0})})]})}),(0,Pa.jsx)(ea.Disabled,{children:(0,Pa.jsx)(hO.default,{block:"core/latest-comments",attributes:l,urlQueryArgs:{_locale:"site"}})})]})}var lpe={attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},isEligible(e){return e?.displayExcerpt===!1},migrate(e){return{...e,displayContent:e.displayExcerpt?"excerpt":"none"}}},bO=[lpe];var{name:yO}=o5,_O={icon:fh,example:{},edit:vO,deprecated:bO},spe=()=>D({name:yO,metadata:o5,settings:_O});var _B={};$(_B,{init:()=>vpe,metadata:()=>af,name:()=>BO,settings:()=>PO});var af={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var{attributes:upe}=af,xO=[{attributes:{...upe,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&typeof e=="string",save:()=>null}];var je=r(L()),Me=r(B()),nf=r(S_()),os=r(S()),Z0=r(z());var bB=r(Y()),CO=r(No()),SO=r(xe()),TO=r(F());var kO=10,wO=100,vB=6,a5=55;var he=r(h()),mpe={per_page:-1,_fields:"id,name",context:"view"},ppe={per_page:-1,has_published_posts:["post"],context:"view"},dpe=[{value:"none",icon:d6,label:(0,Me.__)("None")},{value:"left",icon:_7,label:(0,Me.__)("Left")},{value:"center",icon:b7,label:(0,Me.__)("Center")},{value:"right",icon:k7,label:(0,Me.__)("Right")}];function fpe(e,t){let o=e._embedded?.["wp:featuredmedia"]?.["0"];return{url:o?.media_details?.sizes?.[t]?.source_url??o?.source_url,alt:o?.alt_text}}function gpe(e){return e._embedded?.author?.[0]}function hpe({attributes:e,setAttributes:t,postCount:o}){let{postsToShow:a,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:g,excerptLength:v,featuredImageAlign:b,featuredImageSizeSlug:y,featuredImageSizeWidth:_,featuredImageSizeHeight:x,addLinkToFeaturedImage:w}=e,{imageSizes:C,defaultImageWidth:T,defaultImageHeight:N,categoriesList:P,authorList:M}=(0,Z0.useSelect)(I=>{let{getEntityRecords:V,getUsers:W}=I(bB.store),j=I(os.store).getSettings();return{defaultImageWidth:j.imageDimensions?.[y]?.width??0,defaultImageHeight:j.imageDimensions?.[y]?.height??0,imageSizes:j.imageSizes,categoriesList:V("taxonomy","category",mpe),authorList:W(ppe)}},[y]),R=G(),H=C.filter(({slug:I})=>I!=="full").map(({name:I,slug:V})=>({value:V,label:I})),O=P?.reduce((I,V)=>({...I,[V.name]:V}),{})??{},A=I=>{if(I.some(j=>typeof j=="string"&&!O[j]))return;let W=I.map(j=>typeof j=="string"?O[j]:j);if(W.includes(null))return!1;t({categories:W})};return(0,he.jsxs)(he.Fragment,{children:[(0,he.jsxs)(je.__experimentalToolsPanel,{label:(0,Me.__)("Post content"),resetAll:()=>t({displayPostContent:!1,displayPostContentRadio:"excerpt",excerptLength:a5}),dropdownMenuProps:R,children:[(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Me.__)("Display post content"),onDeselect:()=>t({displayPostContent:!1}),isShownByDefault:!0,children:(0,he.jsx)(je.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Me.__)("Display post content"),checked:m,onChange:I=>t({displayPostContent:I})})}),m&&(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>u!=="excerpt",label:(0,Me.__)("Content length"),onDeselect:()=>t({displayPostContentRadio:"excerpt"}),isShownByDefault:!0,children:(0,he.jsx)(je.RadioControl,{label:(0,Me.__)("Content length"),selected:u,options:[{label:(0,Me.__)("Excerpt"),value:"excerpt"},{label:(0,Me.__)("Full post"),value:"full_post"}],onChange:I=>t({displayPostContentRadio:I})})}),m&&u==="excerpt"&&(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>v!==a5,label:(0,Me.__)("Max number of words"),onDeselect:()=>t({excerptLength:a5}),isShownByDefault:!0,children:(0,he.jsx)(je.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Me.__)("Max number of words"),value:v,onChange:I=>t({excerptLength:I}),min:kO,max:wO})})]}),(0,he.jsxs)(je.__experimentalToolsPanel,{label:(0,Me.__)("Post meta"),resetAll:()=>t({displayAuthor:!1,displayPostDate:!1}),dropdownMenuProps:R,children:[(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,Me.__)("Display author name"),onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,he.jsx)(je.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Me.__)("Display author name"),checked:d,onChange:I=>t({displayAuthor:I})})}),(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!p,label:(0,Me.__)("Display post date"),onDeselect:()=>t({displayPostDate:!1}),isShownByDefault:!0,children:(0,he.jsx)(je.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Me.__)("Display post date"),checked:p,onChange:I=>t({displayPostDate:I})})})]}),(0,he.jsxs)(je.__experimentalToolsPanel,{label:(0,Me.__)("Featured image"),resetAll:()=>t({displayFeaturedImage:!1,featuredImageAlign:void 0,featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null,addLinkToFeaturedImage:!1}),dropdownMenuProps:R,children:[(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,Me.__)("Display featured image"),onDeselect:()=>t({displayFeaturedImage:!1}),isShownByDefault:!0,children:(0,he.jsx)(je.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Me.__)("Display featured image"),checked:c,onChange:I=>t({displayFeaturedImage:I})})}),c&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>y!=="thumbnail"||_!==null||x!==null,label:(0,Me.__)("Image size"),onDeselect:()=>t({featuredImageSizeSlug:"thumbnail",featuredImageSizeWidth:null,featuredImageSizeHeight:null}),isShownByDefault:!0,children:(0,he.jsx)(os.__experimentalImageSizeControl,{onChange:I=>{let V={};I.hasOwnProperty("width")&&(V.featuredImageSizeWidth=I.width),I.hasOwnProperty("height")&&(V.featuredImageSizeHeight=I.height),t(V)},slug:y,width:_,height:x,imageWidth:T,imageHeight:N,imageSizeOptions:H,imageSizeHelp:(0,Me.__)("Select the size of the source image."),onChangeImage:I=>t({featuredImageSizeSlug:I,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})})}),(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!b,label:(0,Me.__)("Image alignment"),onDeselect:()=>t({featuredImageAlign:void 0}),isShownByDefault:!0,children:(0,he.jsx)(je.__experimentalToggleGroupControl,{className:"editor-latest-posts-image-alignment-control",__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Me.__)("Image alignment"),value:b||"none",onChange:I=>t({featuredImageAlign:I!=="none"?I:void 0}),children:dpe.map(({value:I,icon:V,label:W})=>(0,he.jsx)(je.__experimentalToggleGroupControlOptionIcon,{value:I,icon:V,label:W},I))})}),(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>!!w,label:(0,Me.__)("Add link to featured image"),onDeselect:()=>t({addLinkToFeaturedImage:!1}),isShownByDefault:!0,children:(0,he.jsx)(je.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Me.__)("Add link to featured image"),checked:w,onChange:I=>t({addLinkToFeaturedImage:I})})})]})]}),(0,he.jsxs)(je.__experimentalToolsPanel,{label:(0,Me.__)("Sorting and filtering"),resetAll:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0,columns:3}),dropdownMenuProps:R,children:[(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>n!=="desc"||i!=="date"||a!==5||l?.length>0||!!s,label:(0,Me.__)("Sort and filter"),onDeselect:()=>t({order:"desc",orderBy:"date",postsToShow:5,categories:void 0,selectedAuthor:void 0}),isShownByDefault:!0,children:(0,he.jsx)(je.QueryControls,{order:n,orderBy:i,numberOfItems:a,onOrderChange:I=>t({order:I}),onOrderByChange:I=>t({orderBy:I}),onNumberOfItemsChange:I=>t({postsToShow:I}),categorySuggestions:O,onCategoryChange:A,selectedCategories:l,onAuthorChange:I=>t({selectedAuthor:I!==""?Number(I):void 0}),authorList:M??[],selectedAuthorId:s})}),f==="grid"&&(0,he.jsx)(je.__experimentalToolsPanelItem,{hasValue:()=>g!==3,label:(0,Me.__)("Columns"),onDeselect:()=>t({columns:3}),isShownByDefault:!0,children:(0,he.jsx)(je.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Me.__)("Columns"),value:g,onChange:I=>t({columns:I}),min:2,max:o?Math.min(vB,o):vB,required:!0})})]})]})}function yB({attributes:e,setAttributes:t}){let o=(0,SO.useInstanceId)(yB),{postsToShow:a,order:n,orderBy:i,categories:l,selectedAuthor:s,displayFeaturedImage:c,displayPostContentRadio:u,displayPostContent:m,displayPostDate:p,displayAuthor:d,postLayout:f,columns:g,excerptLength:v,featuredImageAlign:b,featuredImageSizeSlug:y,featuredImageSizeWidth:_,featuredImageSizeHeight:x,addLinkToFeaturedImage:w}=e,{latestPosts:C}=(0,Z0.useSelect)(I=>{let{getEntityRecords:V}=I(bB.store),W=l&&l.length>0?l.map(K=>K.id):[],j=Object.fromEntries(Object.entries({categories:W,author:s,order:n,orderby:i,per_page:a,_embed:"author,wp:featuredmedia",ignore_sticky:!0}).filter(([,K])=>typeof K<"u"));return{latestPosts:V("postType","post",j)}},[a,n,i,l,s]),{createWarningNotice:T}=(0,Z0.useDispatch)(CO.store),N=I=>{I.preventDefault(),T((0,Me.__)("Links are disabled in the editor."),{id:`block-library/core/latest-posts/redirection-prevented/${o}`,type:"snackbar"})},P=!!C?.length,M=(0,he.jsx)(os.InspectorControls,{children:(0,he.jsx)(hpe,{attributes:e,setAttributes:t,postCount:C?.length??0})}),R=(0,os.useBlockProps)({className:k({"wp-block-latest-posts__list":!0,"is-grid":f==="grid","has-dates":p,"has-author":d,[`columns-${g}`]:f==="grid"})});if(!P)return(0,he.jsxs)("div",{...R,children:[M,(0,he.jsx)(je.Placeholder,{icon:Lh,label:(0,Me.__)("Latest Posts"),children:Array.isArray(C)?(0,Me.__)("No posts found."):(0,he.jsx)(je.Spinner,{})})]});let H=C.length>a?C.slice(0,a):C,O=[{icon:ji,title:(0,Me._x)("List view","Latest posts block display setting"),onClick:()=>t({postLayout:"list"}),isActive:f==="list"},{icon:Fi,title:(0,Me._x)("Grid view","Latest posts block display setting"),onClick:()=>t({postLayout:"grid"}),isActive:f==="grid"}],A=(0,nf.getSettings)().formats.date;return(0,he.jsxs)(he.Fragment,{children:[M,(0,he.jsx)(os.BlockControls,{children:(0,he.jsx)(je.ToolbarGroup,{controls:O})}),(0,he.jsx)("ul",{...R,children:H.map(I=>{let V=I.title.rendered.trim(),W=I.excerpt.rendered,j=gpe(I),K=document.createElement("div");K.innerHTML=W,W=K.textContent||K.innerText||"";let{url:Z,alt:te}=fpe(I,y),X=k({"wp-block-latest-posts__featured-image":!0,[`align${b}`]:!!b}),J=c&&Z,ee=J&&(0,he.jsx)("img",{src:Z,alt:te,style:{maxWidth:_,maxHeight:x}}),oe=v<W.trim().split(" ").length&&I.excerpt.raw===""?(0,he.jsxs)(he.Fragment,{children:[W.trim().split(" ",v).join(" "),(0,TO.createInterpolateElement)((0,Me.sprintf)((0,Me.__)("\u2026 <a>Read more<span>: %1$s</span></a>"),V||(0,Me.__)("(no title)")),{a:(0,he.jsx)("a",{className:"wp-block-latest-posts__read-more",href:I.link,rel:"noopener noreferrer",onClick:N}),span:(0,he.jsx)("span",{className:"screen-reader-text"})})]}):W;return(0,he.jsxs)("li",{children:[J&&(0,he.jsx)("div",{className:X,children:w?(0,he.jsx)("a",{href:I.link,onClick:N,children:ee}):ee}),(0,he.jsx)("a",{className:"wp-block-latest-posts__post-title",href:I.link,dangerouslySetInnerHTML:V?{__html:V}:void 0,onClick:N,children:V?null:(0,Me.__)("(no title)")}),d&&j&&(0,he.jsx)("div",{className:"wp-block-latest-posts__post-author",children:(0,Me.sprintf)((0,Me.__)("by %s"),j.name)}),p&&I.date_gmt&&(0,he.jsx)("time",{dateTime:(0,nf.format)("c",I.date_gmt),className:"wp-block-latest-posts__post-date",children:(0,nf.dateI18n)(A,I.date_gmt)}),m&&u==="excerpt"&&(0,he.jsx)("div",{className:"wp-block-latest-posts__post-excerpt",children:oe}),m&&u==="full_post"&&(0,he.jsx)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:I.content.raw.trim()}})]},I.id)})})]})}var{name:BO}=af,PO={icon:Vh,example:{},edit:yB,deprecated:xO},vpe=()=>D({name:BO,metadata:af,settings:PO});var CB={};$(CB,{init:()=>Dpe,metadata:()=>s5,name:()=>$O,settings:()=>WO});var cf=r(B());var cl=r(S());var lf=r(U()),n5={A:"upper-alpha",a:"lower-alpha",I:"upper-roman",i:"lower-roman"};function xB(e){let t=e.getAttribute("type"),o={ordered:e.tagName==="OL",anchor:e.id===""?void 0:e.id,start:e.getAttribute("start")?parseInt(e.getAttribute("start"),10):void 0,reversed:e.hasAttribute("reversed")?!0:void 0,type:t&&n5[t]?n5[t]:void 0},a=Array.from(e.children).map(n=>{let i=Array.from(n.childNodes).filter(d=>d.nodeType!==d.TEXT_NODE||d.textContent.trim().length!==0);i.reverse();let[l,...s]=i;if(!(l?.tagName==="UL"||l?.tagName==="OL"))return(0,lf.createBlock)("core/list-item",{content:n.innerHTML});let u=s.map(d=>d.nodeType===d.TEXT_NODE?d.textContent:d.outerHTML);u.reverse();let m={content:u.join("").trim()},p=[xB(l)];return(0,lf.createBlock)("core/list-item",m,p)});return(0,lf.createBlock)("core/list",o,a)}function i5(e){let{values:t,start:o,reversed:a,ordered:n,type:i,...l}=e,s=document.createElement(n?"ol":"ul");s.innerHTML=t,o&&s.setAttribute("start",o),a&&s.setAttribute("reversed",!0),i&&s.setAttribute("type",i);let[c]=(0,lf.rawHandler)({HTML:s.outerHTML});return[{...l,...c.attributes},c.innerBlocks]}function NO(e){let{type:t}=e;return t&&n5[t]?{...e,type:n5[t]}:e}var oc=r(h()),bpe={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:o,type:a,reversed:n,start:i}=e;return(0,oc.jsx)(t?"ol":"ul",{...cl.useBlockProps.save({type:a,reversed:n,start:i}),children:(0,oc.jsx)(cl.RichText.Content,{value:o,multiline:"li"})})},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},ype={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,values:o,type:a,reversed:n,start:i}=e;return(0,oc.jsx)(t?"ol":"ul",{...cl.useBlockProps.save({type:a,reversed:n,start:i}),children:(0,oc.jsx)(cl.RichText.Content,{value:o,multiline:"li"})})},migrate:i5},_pe={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},isEligible({type:e}){return!!e},save({attributes:e}){let{ordered:t,type:o,reversed:a,start:n}=e;return(0,oc.jsx)(t?"ol":"ul",{...cl.useBlockProps.save({type:o,reversed:a,start:n}),children:(0,oc.jsx)(cl.InnerBlocks.Content,{})})},migrate:NO},xpe={attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalOnMerge:"true",__experimentalSlashInserter:!0},save({attributes:e}){let{ordered:t,type:o,reversed:a,start:n}=e;return(0,oc.jsx)(t?"ol":"ul",{...cl.useBlockProps.save({reversed:a,start:n,style:{listStyleType:t&&o!=="decimal"?o:void 0}}),children:(0,oc.jsx)(cl.InnerBlocks.Content,{})})}},IO=[xpe,_pe,ype,bpe];var ml=r(S()),l5=r(L()),du=r(z()),ul=r(B());var VO=r(U()),sp=r(F()),FO=r(wd());var Nr=r(B()),EO=r(S()),Ir=r(L()),MO=r(F());var nn=r(h()),DO=[{label:(0,Nr.__)("Numbers"),value:"decimal"},{label:(0,Nr.__)("Uppercase letters"),value:"upper-alpha"},{label:(0,Nr.__)("Lowercase letters"),value:"lower-alpha"},{label:(0,Nr.__)("Uppercase Roman numerals"),value:"upper-roman"},{label:(0,Nr.__)("Lowercase Roman numerals"),value:"lower-roman"}],kpe=({setAttributes:e,reversed:t,start:o,type:a})=>{let n=G();return(0,nn.jsx)(EO.InspectorControls,{children:MO.Platform.isNative?(0,nn.jsxs)(Ir.PanelBody,{title:(0,Nr.__)("Settings"),children:[(0,nn.jsx)(Ir.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Nr.__)("List style"),options:DO,value:a,onChange:i=>e({type:i})}),(0,nn.jsx)(Ir.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Nr.__)("Start value"),type:"number",onChange:i=>{let l=parseInt(i,10);e({start:isNaN(l)?void 0:l})},value:Number.isInteger(o)?o.toString(10):"",step:"1"}),(0,nn.jsx)(Ir.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Nr.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})]}):(0,nn.jsxs)(Ir.__experimentalToolsPanel,{label:(0,Nr.__)("Settings"),resetAll:()=>{e({type:void 0,start:void 0,reversed:void 0})},dropdownMenuProps:n,children:[(0,nn.jsx)(Ir.__experimentalToolsPanelItem,{label:(0,Nr.__)("List style"),isShownByDefault:!0,hasValue:()=>!!a,onDeselect:()=>e({type:void 0}),children:(0,nn.jsx)(Ir.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Nr.__)("List style"),options:DO,value:a||"decimal",onChange:i=>e({type:i})})}),(0,nn.jsx)(Ir.__experimentalToolsPanelItem,{label:(0,Nr.__)("Start value"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>e({start:void 0}),children:(0,nn.jsx)(Ir.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Nr.__)("Start value"),type:"number",onChange:i=>{let l=parseInt(i,10);e({start:isNaN(l)?void 0:l})},value:Number.isInteger(o)?o.toString(10):"",step:"1"})}),(0,nn.jsx)(Ir.__experimentalToolsPanelItem,{label:(0,Nr.__)("Reverse order"),isShownByDefault:!0,hasValue:()=>!!t,onDeselect:()=>e({reversed:void 0}),children:(0,nn.jsx)(Ir.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Nr.__)("Reverse order"),checked:t||!1,onChange:i=>{e({reversed:i||void 0})}})})]})})},LO=kpe;var RO=r(F()),HO=r(h());function wpe(e,t){let{ordered:o,...a}=e;return(0,HO.jsx)(o?"ol":"ul",{ref:t,...a})}var zO=(0,RO.forwardRef)(wpe);var ln=r(h()),Cpe={name:"core/list-item"},Spe=[["core/list-item"]],AO=8;function Tpe(e,t){let o=(0,du.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:n}=(0,du.useDispatch)(ml.store);(0,sp.useEffect)(()=>{if(!e.values)return;let[i,l]=i5(e);(0,FO.default)("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch(()=>{a(t,i),n(t,l)})},[e.values])}function Bpe(e){let{replaceBlocks:t,selectionChange:o}=(0,du.useDispatch)(ml.store),{getBlockRootClientId:a,getBlockAttributes:n,getBlock:i}=(0,du.useSelect)(ml.store);return(0,sp.useCallback)(()=>{let l=a(e),s=n(l),c=(0,VO.createBlock)("core/list-item",s),{innerBlocks:u}=i(e);t([l],[c,...u]),o(u[u.length-1].clientId)},[e])}function Ppe({clientId:e}){let t=Bpe(e),o=(0,du.useSelect)(a=>{let{getBlockRootClientId:n,getBlockName:i}=a(ml.store);return i(n(e))==="core/list-item"},[e]);return(0,ln.jsx)(ln.Fragment,{children:(0,ln.jsx)(l5.ToolbarButton,{icon:(0,ul.isRTL)()?wh:Ch,title:(0,ul.__)("Outdent"),description:(0,ul.__)("Outdent list item"),disabled:!o,onClick:t})})}function jO({attributes:e,setAttributes:t,clientId:o,style:a}){let{ordered:n,type:i,reversed:l,start:s}=e,c=(0,ml.useBlockProps)({style:{...sp.Platform.isNative&&a,listStyleType:n&&i!=="decimal"?i:void 0}}),u=(0,ml.useInnerBlocksProps)(c,{defaultBlock:Cpe,directInsert:!0,template:Spe,templateLock:!1,templateInsertUpdatesSelection:!0,...sp.Platform.isNative&&{marginVertical:AO,marginHorizontal:AO,renderAppender:!1},__experimentalCaptureToolbars:!0});Tpe(e,o);let m=(0,ln.jsxs)(ml.BlockControls,{group:"block",children:[(0,ln.jsx)(l5.ToolbarButton,{icon:(0,ul.isRTL)()?_h:xh,title:(0,ul.__)("Unordered"),description:(0,ul.__)("Convert to unordered list"),isActive:n===!1,onClick:()=>{t({ordered:!1})}}),(0,ln.jsx)(l5.ToolbarButton,{icon:(0,ul.isRTL)()?kh:ui,title:(0,ul.__)("Ordered"),description:(0,ul.__)("Convert to ordered list"),isActive:n===!0,onClick:()=>{t({ordered:!0})}}),(0,ln.jsx)(Ppe,{clientId:o})]});return(0,ln.jsxs)(ln.Fragment,{children:[(0,ln.jsx)(zO,{ordered:n,reversed:l,start:s,...u}),m,n&&(0,ln.jsx)(LO,{setAttributes:t,reversed:l,start:s,type:i})]})}var s5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",allowedBlocks:["core/list-item"],description:"An organized collection of items displayed in a specific order.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,role:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",default:"",role:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalOnMerge:!0,__experimentalSlashInserter:!0,interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-list:not(.wp-block-list .wp-block-list)"},editorStyle:"wp-block-list-editor",style:"wp-block-list"};var c5=r(S()),kB=r(h());function OO({attributes:e}){let{ordered:t,type:o,reversed:a,start:n}=e;return(0,kB.jsx)(t?"ol":"ul",{...c5.useBlockProps.save({reversed:a,start:n,style:{listStyleType:t&&o!=="decimal"?o:void 0}}),children:(0,kB.jsx)(c5.InnerBlocks.Content,{})})}var rc=r(U()),sf=r(Bm());function UO({phrasingContentSchema:e}){let t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach(o=>{t[o].children={li:{children:t}}}),t}function wB(e){return e.flatMap(({name:t,attributes:o,innerBlocks:a=[]})=>t==="core/list-item"?[o.content,...wB(a)]:wB(a))}var Ipe={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map(({content:o})=>(0,rc.createBlock)("core/list-item",{content:o}));else if(e.length===1){let o=(0,sf.create)({html:e[0].content});t=(0,sf.split)(o,` |
| 32 |
`).map(a=>(0,rc.createBlock)("core/list-item",{content:(0,sf.toHTMLString)({value:a})}))}return(0,rc.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:UO(e).ol,ul:UO(e).ul}),transform:xB},...["*","-"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,rc.createBlock)("core/list",{},[(0,rc.createBlock)("core/list-item",{content:t})])}})),...["1.","1)"].map(e=>({type:"prefix",prefix:e,transform(t){return(0,rc.createBlock)("core/list",{ordered:!0},[(0,rc.createBlock)("core/list-item",{content:t})])}}))],to:[...["core/paragraph","core/heading"].map(e=>({type:"block",blocks:[e],transform:(t,o)=>wB(o).map(a=>(0,rc.createBlock)(e,{content:a}))}))]},GO=Ipe;var{name:$O}=s5,WO={icon:ji,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,cf.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,cf.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,cf.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,cf.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,cf.__)("The Queen of Hearts.")}}]},transforms:GO,edit:jO,save:OO,deprecated:IO},Dpe=()=>D({name:$O,metadata:s5,settings:WO});var TB={};$(TB,{init:()=>Rpe,metadata:()=>m5,name:()=>oU,settings:()=>rU});var fu=r(B()),u5=r(S()),hu=r(L()),gu=r(F()),ZO=r(z()),KO=r(K0());var Gn=r(h()),{Badge:Epe}=Q(hu.privateApis);function QO({attributes:e,setAttributes:t,isSelected:o}){let{latex:a,mathML:n}=e,[i,l]=(0,gu.useState)(),[s,c]=(0,gu.useState)(null),[u,m]=(0,gu.useState)(),p=(0,gu.useRef)(a),{__unstableMarkNextChangeAsNotPersistent:d}=(0,ZO.useDispatch)(u5.store);(0,gu.useEffect)(()=>{import("@wordpress/latex-to-mathml").then(g=>{m(()=>g.default),p.current&&(d(),t({mathML:g.default(p.current,{displayMode:!0})}))})},[p,t,d]);let f=(0,u5.useBlockProps)({ref:l,position:"relative"});return(0,Gn.jsxs)("div",{...f,children:[n?(0,Gn.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:n}}):"\u200B",o&&(0,Gn.jsx)(hu.Popover,{placement:"bottom-start",offset:8,anchor:i,focusOnMount:!1,__unstableSlotName:"__unstable-block-tools-after",children:(0,Gn.jsx)("div",{style:{padding:"4px",minWidth:"300px"},children:(0,Gn.jsxs)(hu.__experimentalVStack,{spacing:1,children:[(0,Gn.jsx)(hu.TextareaControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,fu.__)("LaTeX math syntax"),hideLabelFromVision:!0,value:a,className:"wp-block-math__textarea-control",onChange:g=>{if(!u){t({latex:g});return}let v="";try{v=u(g,{displayMode:!0}),c(null)}catch(b){c(b.message),(0,KO.speak)((0,fu.sprintf)((0,fu.__)("Error parsing mathematical expression: %s"),b.message))}t({mathML:v,latex:g})},placeholder:(0,fu.__)("e.g., x^2, \\frac{a}{b}")}),s&&(0,Gn.jsxs)(Gn.Fragment,{children:[(0,Gn.jsx)(Epe,{intent:"error",className:"wp-block-math__error",children:(0,fu.sprintf)((0,fu.__)("Error: %s"),s)}),(0,Gn.jsx)("style",{children:".wp-block-math__error .components-badge__content{white-space:normal}"})]})]})})})]})}var m5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/math",title:"Math",category:"text",description:"Display mathematical notation using LaTeX.",keywords:["equation","formula","latex","mathematics"],textdomain:"default",supports:{html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,__experimentalDefaultControls:{fontSize:!0}}},attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}}};var YO=r(S()),SB=r(h());function XO({attributes:e}){let{latex:t,mathML:o}=e;return t?(0,SB.jsx)("div",{...YO.useBlockProps.save(),children:(0,SB.jsx)("math",{display:"block",dangerouslySetInnerHTML:{__html:o}})}):null}var JO=r(S()),eU=r(h()),Lpe={attributes:{latex:{type:"string",role:"content"},mathML:{type:"string",source:"html",selector:"math"}},save({attributes:e}){let{latex:t,mathML:o}=e;return t?(0,eU.jsx)("math",{...JO.useBlockProps.save(),display:"block",dangerouslySetInnerHTML:{__html:o}}):null}},tU=[Lpe];var{name:oU}=m5,rU={icon:K8,example:{attributes:{latex:"x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}",mathML:'<semantics><mrow><mi>x</mi><mo>=</mo><mfrac><mrow><mo lspace="0em" rspace="0em">\u2212</mo><mi>b</mi><mo>\xB1</mo><msqrt><mrow><msup><mi>b</mi><mn>2</mn></msup><mo>\u2212</mo><mn>4</mn><mi>a</mi><mi>c</mi></mrow></msqrt></mrow><mrow><mn>2</mn><mi>a</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">x = \\frac{-b \\pm \\sqrt{b^2-4ac}}{2a}</annotation></semantics>'},viewportWidth:300},edit:QO,save:XO,deprecated:tU},Rpe=()=>D({name:oU,metadata:m5,settings:rU});var RB={};$(RB,{init:()=>jpe,metadata:()=>p5,name:()=>kU,settings:()=>h5});var yU=r(B());var _U=r(S()),xU=r(U());var p5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List Item",category:"text",parent:["core/list"],allowedBlocks:["core/list"],description:"An individual item within a list.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"rich-text",source:"rich-text",selector:"li",role:"content"}},supports:{anchor:!0,className:!1,splitting:!0,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,background:!0,__experimentalDefaultControls:{text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-list > li",border:".wp-block-list:not(.wp-block-list .wp-block-list) > li"}};var as=r(S()),rs=r(B()),LB=r(L());var dU=r(xe()),fU=r(z()),gU=r(Ui());var aU=r(F()),uf=r(z()),BB=r(S()),nU=r(U());function ac(){let e=(0,uf.useRegistry)(),{moveBlocksToPosition:t,removeBlock:o,insertBlock:a,updateBlockListSettings:n}=(0,uf.useDispatch)(BB.store),{getBlockRootClientId:i,getBlockName:l,getBlockOrder:s,getBlockIndex:c,getSelectedBlockClientIds:u,getBlock:m,getBlockListSettings:p}=(0,uf.useSelect)(BB.store);function d(f){let g=i(f),v=i(g);if(v&&l(v)==="core/list-item")return v}return(0,aU.useCallback)((f=u())=>{if(Array.isArray(f)||(f=[f]),!f.length)return;let g=f[0];if(l(g)!=="core/list-item")return;let v=d(g);if(!v)return;let b=i(g),y=f[f.length-1],x=s(b).slice(c(y)+1);return e.batch(()=>{if(x.length){let w=s(g)[0];if(!w){let C=(0,nU.cloneBlock)(m(b),{},[]);w=C.clientId,a(C,0,g,!1),n(w,p(b))}t(x,b,w)}t(f,b,i(v),c(v)+1),s(b).length||o(b,!1)}),!0},[])}var iU=r(F()),d5=r(z()),PB=r(S()),Q0=r(U());function Y0(e){let{replaceBlocks:t,selectionChange:o,multiSelect:a}=(0,d5.useDispatch)(PB.store),{getBlock:n,getPreviousBlockClientId:i,getSelectionStart:l,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,d5.useSelect)(PB.store);return(0,iU.useCallback)(()=>{let m=c(),p=m?u():[e],d=p.map(y=>(0,Q0.cloneBlock)(n(y))),f=i(e),g=(0,Q0.cloneBlock)(n(f));g.innerBlocks?.length||(g.innerBlocks=[(0,Q0.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...d);let v=l(),b=s();return t([f,...p],[g]),m?a(d[0].clientId,d[d.length-1].clientId):o(d[0].clientId,b.attributeKey,b.clientId===v.clientId?v.offset:b.offset,b.offset),!0},[e])}var cp=r(U()),lU=r(F()),sU=r(xe()),cU=r(Ui()),f5=r(z()),NB=r(S());function IB(e){let{replaceBlocks:t,selectionChange:o}=(0,f5.useDispatch)(NB.store),{getBlock:a,getBlockRootClientId:n,getBlockIndex:i,getBlockName:l}=(0,f5.useSelect)(NB.store),s=(0,lU.useRef)(e);s.current=e;let c=ac();return(0,sU.useRefEffect)(u=>{function m(p){if(p.defaultPrevented||p.keyCode!==cU.ENTER)return;let{content:d,clientId:f}=s.current;if(d.length)return;if(p.preventDefault(),l(n(n(s.current.clientId)))==="core/list-item"){c();return}let v=a(n(f)),b=i(f),y=(0,cp.cloneBlock)({...v,innerBlocks:v.innerBlocks.slice(0,b)}),_=(0,cp.createBlock)((0,cp.getDefaultBlockName)()),x=[...v.innerBlocks[b].innerBlocks[0]?.innerBlocks||[],...v.innerBlocks.slice(b+1)],w=x.length?[(0,cp.cloneBlock)({...v,innerBlocks:x})]:[];t(v.clientId,[y,_,...w],1),o(_.clientId)}return u.addEventListener("keydown",m),()=>{u.removeEventListener("keydown",m)}},[])}var uU=r(xe()),X0=r(Ui()),mU=r(S()),pU=r(z());function DB(e){let{getSelectionStart:t,getSelectionEnd:o,getBlockIndex:a}=(0,pU.useSelect)(mU.store),n=Y0(e),i=ac();return(0,uU.useRefEffect)(l=>{function s(c){let{keyCode:u,shiftKey:m,altKey:p,metaKey:d,ctrlKey:f}=c;if(c.defaultPrevented||u!==X0.SPACE&&u!==X0.TAB||p||d||f)return;let g=t(),v=o();g.offset===0&&v.offset===0&&(m?u===X0.TAB&&i()&&c.preventDefault():a(e)!==0&&n()&&c.preventDefault())}return l.addEventListener("keydown",s),()=>{l.removeEventListener("keydown",s)}},[e,n])}var mf=r(z()),EB=r(S());function MB(e,t){let o=(0,mf.useRegistry)(),{getPreviousBlockClientId:a,getNextBlockClientId:n,getBlockOrder:i,getBlockRootClientId:l,getBlockName:s}=(0,mf.useSelect)(EB.store),{mergeBlocks:c,moveBlocksToPosition:u}=(0,mf.useDispatch)(EB.store),m=ac();function p(v){let b=i(v);return b.length?p(b[b.length-1]):v}function d(v){let b=l(v),y=l(b);if(y&&s(y)==="core/list-item")return y}function f(v){let b=n(v);if(b)return b;let y=d(v);if(y)return f(y)}function g(v){let b=i(v);return b.length?i(b[0])[0]:f(v)}return v=>{function b(y,_){o.batch(()=>{let[x]=i(_);x&&(a(_)===y&&!i(y).length?u([x],_,y):u(i(x),x,l(y))),c(y,_)})}if(v){let y=g(e);if(!y){t(v);return}d(y)?m(y):b(e,y)}else{let y=a(e);if(d(e))m(e);else if(y){let _=p(y);b(_,e)}else t(v)}}}var $n=r(h());function zpe({clientId:e}){let t=Y0(e),o=ac(),{canIndent:a,canOutdent:n}=(0,fU.useSelect)(i=>{let{getBlockIndex:l,getBlockRootClientId:s,getBlockName:c}=i(as.store);return{canIndent:l(e)>0,canOutdent:c(s(s(e)))==="core/list-item"}},[e]);return(0,$n.jsxs)($n.Fragment,{children:[(0,$n.jsx)(LB.ToolbarButton,{icon:(0,rs.isRTL)()?wh:Ch,title:(0,rs.__)("Outdent"),shortcut:gU.displayShortcut.shift("Tab"),description:(0,rs.__)("Outdent list item"),disabled:!n,onClick:()=>o()}),(0,$n.jsx)(LB.ToolbarButton,{icon:(0,rs.isRTL)()?p8:f8,title:(0,rs.__)("Indent"),shortcut:"Tab",description:(0,rs.__)("Indent list item"),disabled:!a,onClick:()=>t()})]})}function hU({attributes:e,setAttributes:t,clientId:o,mergeBlocks:a}){let{placeholder:n,content:i}=e,l=(0,as.useBlockProps)(),s=(0,as.useInnerBlocksProps)(l,{renderAppender:!1,__unstableDisableDropZone:!0}),c=IB({content:i,clientId:o}),u=DB(o),m=MB(o,a);return(0,$n.jsxs)($n.Fragment,{children:[(0,$n.jsxs)("li",{...s,children:[(0,$n.jsx)(as.RichText,{ref:(0,dU.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:p=>t({content:p}),value:i,"aria-label":(0,rs.__)("List text"),placeholder:n||(0,rs.__)("List"),onMerge:m}),s.children]}),(0,$n.jsx)(as.BlockControls,{group:"block",children:(0,$n.jsx)(zpe,{clientId:o})})]})}var pf=r(S()),J0=r(h());function vU({attributes:e}){return(0,J0.jsxs)("li",{...pf.useBlockProps.save(),children:[(0,J0.jsx)(pf.RichText.Content,{value:e.content}),(0,J0.jsx)(pf.InnerBlocks.Content,{})]})}var g5=r(U()),Ape={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,g5.createBlock)("core/paragraph",e),...t.map(o=>(0,g5.cloneBlock)(o))]}]},bU=Ape;var{fieldsKey:Vpe,formKey:Fpe}=Q(xU.privateApis),{name:kU}=p5,h5={icon:j8,edit:hU,save:vU,merge(e,t){return{...e,content:e.content+t.content}},transforms:bU,[Q(_U.privateApis).requiresWrapperOnCopy]:!0};window.__experimentalContentOnlyInspectorFields&&(h5[Vpe]=[{id:"content",label:(0,yU.__)("Content"),type:"richtext"}],h5[Fpe]={fields:["content"]});var jpe=()=>D({name:kU,metadata:p5,settings:h5});var HB={};$(HB,{init:()=>Upe,metadata:()=>b5,name:()=>CU,settings:()=>SU});var v5=r(S()),vu=r(L()),up=r(B());var Wn=r(h());function wU({attributes:e,setAttributes:t}){let{displayLoginAsForm:o,redirectToCurrent:a}=e,n=G();return(0,Wn.jsxs)(Wn.Fragment,{children:[(0,Wn.jsx)(v5.InspectorControls,{children:(0,Wn.jsxs)(vu.__experimentalToolsPanel,{label:(0,up.__)("Settings"),resetAll:()=>{t({displayLoginAsForm:!1,redirectToCurrent:!0})},dropdownMenuProps:n,children:[(0,Wn.jsx)(vu.__experimentalToolsPanelItem,{label:(0,up.__)("Display login as form"),isShownByDefault:!0,hasValue:()=>o,onDeselect:()=>t({displayLoginAsForm:!1}),children:(0,Wn.jsx)(vu.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,up.__)("Display login as form"),checked:o,onChange:()=>t({displayLoginAsForm:!o})})}),(0,Wn.jsx)(vu.__experimentalToolsPanelItem,{label:(0,up.__)("Redirect to current URL"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>t({redirectToCurrent:!0}),children:(0,Wn.jsx)(vu.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,up.__)("Redirect to current URL"),checked:a,onChange:()=>t({redirectToCurrent:!a})})})]})}),(0,Wn.jsx)("div",{...(0,v5.useBlockProps)({className:"logged-in"}),children:(0,Wn.jsx)("a",{href:"#login-pseudo-link",children:(0,up.__)("Log out")})})]})}var b5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},example:{viewportWidth:350},supports:{className:!0,color:{background:!0,text:!1,gradients:!0,link:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-loginout"};var{name:CU}=b5,SU={icon:G8,edit:wU},Upe=()=>D({name:CU,metadata:b5,settings:SU});var OB={};$(OB,{init:()=>pde,metadata:()=>S5,name:()=>KU,settings:()=>T5});var o1=r(B());var ZU=r(U());var Xt=r(S()),zB=r(xe());var TU=r(B()),ns="full",e1=15,BU="media",PU="attachment",NU=[["core/paragraph",{placeholder:(0,TU._x)("Content\u2026","content placeholder")}]];var ke=r(h()),y5=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${t.x*100}% ${t.y*100}%`:"50% 50%"}:{},IU=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{},mp=50,is=()=>{},DU=e=>{if(!e.customBackgroundColor)return e;let t={color:{background:e.customBackgroundColor}},{customBackgroundColor:o,...a}=e;return{...a,style:t}},df=e=>e.align?e:{...e,align:"wide"},_5={align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!1}},AB={..._5,isStackedOnMobile:{type:"boolean",default:!0},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},EU={...AB,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},mediaType:{type:"string",role:"content"}},Gpe={...EU,align:{type:"string",default:"none"},useFeaturedImage:{type:"boolean",default:!1}},VB={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},MU={...VB,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},$pe={...MU,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0}},Wpe={attributes:Gpe,supports:$pe,usesContext:["postId","postType"],save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:o,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:g}=e,v=e.mediaSizeSlug||ns,b=g||void 0,y=k({[`wp-image-${s}`]:s&&n==="image",[`size-${v}`]:s&&n==="image"}),_=i?(0,ke.jsx)("img",{src:i,alt:o,className:y||null}):null;d&&(_=(0,ke.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,ke.jsx)("video",{controls:!0,src:i})},w=k({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),C=u?IU(i,m):{},T;l!==mp&&(T=a==="right"?`auto ${l}%`:`${l}% auto`);let N={gridTemplateColumns:T};return a==="right"?(0,ke.jsxs)("div",{...Xt.useBlockProps.save({className:w,style:N}),children:[(0,ke.jsx)("div",{...Xt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,ke.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||is)()})]}):(0,ke.jsxs)("div",{...Xt.useBlockProps.save({className:w,style:N}),children:[(0,ke.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||is)()}),(0,ke.jsx)("div",{...Xt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}},qpe={attributes:EU,supports:MU,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:o,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:g}=e,v=e.mediaSizeSlug||ns,b=g||void 0,y=k({[`wp-image-${s}`]:s&&n==="image",[`size-${v}`]:s&&n==="image"}),_=(0,ke.jsx)("img",{src:i,alt:o,className:y||null});d&&(_=(0,ke.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,ke.jsx)("video",{controls:!0,src:i})},w=k({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),C=u?IU(i,m):{},T;l!==mp&&(T=a==="right"?`auto ${l}%`:`${l}% auto`);let N={gridTemplateColumns:T};return a==="right"?(0,ke.jsxs)("div",{...Xt.useBlockProps.save({className:w,style:N}),children:[(0,ke.jsx)("div",{...Xt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,ke.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||is)()})]}):(0,ke.jsxs)("div",{...Xt.useBlockProps.save({className:w,style:N}),children:[(0,ke.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||is)()}),(0,ke.jsx)("div",{...Xt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:df,isEligible(e,t,{block:o}){let{attributes:a}=o;return e.align===void 0&&!!a.className?.includes("alignwide")}},Zpe={attributes:AB,supports:VB,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:o,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:g}=e,v=e.mediaSizeSlug||ns,b=g||void 0,y=k({[`wp-image-${s}`]:s&&n==="image",[`size-${v}`]:s&&n==="image"}),_=(0,ke.jsx)("img",{src:i,alt:o,className:y||null});d&&(_=(0,ke.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,ke.jsx)("video",{controls:!0,src:i})},w=k({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),C=u?y5(i,m):{},T;l!==mp&&(T=a==="right"?`auto ${l}%`:`${l}% auto`);let N={gridTemplateColumns:T};return a==="right"?(0,ke.jsxs)("div",{...Xt.useBlockProps.save({className:w,style:N}),children:[(0,ke.jsx)("div",{...Xt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,ke.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||is)()})]}):(0,ke.jsxs)("div",{...Xt.useBlockProps.save({className:w,style:N}),children:[(0,ke.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||is)()}),(0,ke.jsx)("div",{...Xt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:df},Kpe={attributes:AB,supports:VB,save({attributes:e}){let{isStackedOnMobile:t,mediaAlt:o,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:g}=e,v=e.mediaSizeSlug||ns,b=g||void 0,y=k({[`wp-image-${s}`]:s&&n==="image",[`size-${v}`]:s&&n==="image"}),_=(0,ke.jsx)("img",{src:i,alt:o,className:y||null});d&&(_=(0,ke.jsx)("a",{className:p,href:d,target:f,rel:b,children:_}));let x={image:()=>_,video:()=>(0,ke.jsx)("video",{controls:!0,src:i})},w=k({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill":u}),C=u?y5(i,m):{},T;l!==mp&&(T=a==="right"?`auto ${l}%`:`${l}% auto`);let N={gridTemplateColumns:T};return(0,ke.jsxs)("div",{...Xt.useBlockProps.save({className:w,style:N}),children:[(0,ke.jsx)("figure",{className:"wp-block-media-text__media",style:C,children:(x[n]||is)()}),(0,ke.jsx)("div",{...Xt.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})},migrate:df},Qpe={attributes:{..._5,isStackedOnMobile:{type:"boolean",default:!0},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,zB.compose)(DU,df),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d,linkClass:f,href:g,linkTarget:v,rel:b}=e,y=b||void 0,_=(0,ke.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null});g&&(_=(0,ke.jsx)("a",{className:f,href:g,target:v,rel:y,children:_}));let x={image:()=>_,video:()=>(0,ke.jsx)("video",{controls:!0,src:s})},w=(0,Xt.getColorClassName)("background-color",t),C=k({"has-media-on-the-right":i==="right","has-background":w||o,[w]:w,"is-stacked-on-mobile":a,[`is-vertically-aligned-${m}`]:m,"is-image-fill":p}),T=p?y5(s,d):{},N;return c!==mp&&(N=i==="right"?`auto ${c}%`:`${c}% auto`),(0,ke.jsxs)("div",{className:C,style:{backgroundColor:w?void 0:o,gridTemplateColumns:N},children:[(0,ke.jsx)("figure",{className:"wp-block-media-text__media",style:T,children:(x[l]||is)()}),(0,ke.jsx)("div",{className:"wp-block-media-text__content",children:(0,ke.jsx)(Xt.InnerBlocks.Content,{})})]})}},Ype={attributes:{..._5,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,zB.compose)(DU,df),save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c,mediaId:u,verticalAlignment:m,imageFill:p,focalPoint:d}=e,f={image:()=>(0,ke.jsx)("img",{src:s,alt:n,className:u&&l==="image"?`wp-image-${u}`:null}),video:()=>(0,ke.jsx)("video",{controls:!0,src:s})},g=(0,Xt.getColorClassName)("background-color",t),v=k({"has-media-on-the-right":i==="right",[g]:g,"is-stacked-on-mobile":a,[`is-vertically-aligned-${m}`]:m,"is-image-fill":p}),b=p?y5(s,d):{},y;return c!==mp&&(y=i==="right"?`auto ${c}%`:`${c}% auto`),(0,ke.jsxs)("div",{className:v,style:{backgroundColor:g?void 0:o,gridTemplateColumns:y},children:[(0,ke.jsx)("figure",{className:"wp-block-media-text__media",style:b,children:(f[l]||is)()}),(0,ke.jsx)("div",{className:"wp-block-media-text__content",children:(0,ke.jsx)(Xt.InnerBlocks.Content,{})})]})}},Xpe={attributes:{..._5,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:df,save({attributes:e}){let{backgroundColor:t,customBackgroundColor:o,isStackedOnMobile:a,mediaAlt:n,mediaPosition:i,mediaType:l,mediaUrl:s,mediaWidth:c}=e,u={image:()=>(0,ke.jsx)("img",{src:s,alt:n}),video:()=>(0,ke.jsx)("video",{controls:!0,src:s})},m=(0,Xt.getColorClassName)("background-color",t),p=k({"has-media-on-the-right":i==="right",[m]:m,"is-stacked-on-mobile":a}),d;return c!==mp&&(d=i==="right"?`auto ${c}%`:`${c}% auto`),(0,ke.jsxs)("div",{className:p,style:{backgroundColor:m?void 0:o,gridTemplateColumns:d},children:[(0,ke.jsx)("figure",{className:"wp-block-media-text__media",children:(u[l]||is)()}),(0,ke.jsx)("div",{className:"wp-block-media-text__content",children:(0,ke.jsx)(Xt.InnerBlocks.Content,{})})]})}},LU=[Wpe,qpe,Zpe,Kpe,Qpe,Ype,Xpe];var Dr=r(B()),k5=r(z()),w5=r(F()),fr=r(S()),go=r(L()),C5=r(Po());var t1=r(Y());var ff=r(L()),ls=r(S()),HU=r(B()),zU=r(xe()),FB=r(z()),jB=r(F()),AU=r(Po()),VU=r(No());function x5(e,t){return e?{objectPosition:t?`${Math.round(t.x*100)}% ${Math.round(t.y*100)}%`:"50% 50%"}:{}}var ta=r(h()),FU=["image","video"],Jpe=()=>{},ede=(0,jB.forwardRef)(({isSelected:e,isStackedOnMobile:t,...o},a)=>{let n=(0,zU.useViewportMatch)("small","<");return(0,ta.jsx)(ff.ResizableBox,{ref:a,showHandle:e&&(!n||!t),...o})});function tde({mediaId:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:a,useFeaturedImage:n}){return(0,ta.jsx)(ls.BlockControls,{group:"other",children:(0,ta.jsx)(ls.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:FU,onSelect:o,onToggleFeaturedImage:a,useFeaturedImage:n,onReset:()=>o(void 0)})})}function RU({className:e,mediaUrl:t,onSelectMedia:o,toggleUseFeaturedImage:a}){let{createErrorNotice:n}=(0,FB.useDispatch)(VU.store),i=l=>{n(l,{type:"snackbar"})};return(0,ta.jsx)(ls.MediaPlaceholder,{icon:(0,ta.jsx)(ls.BlockIcon,{icon:Nh}),labels:{title:(0,HU.__)("Media area")},className:e,onSelect:o,onToggleFeaturedImage:a,allowedTypes:FU,onError:i,disableMediaButtons:t})}function ode(e,t){let{className:o,commitWidthChange:a,focalPoint:n,imageFill:i,isSelected:l,isStackedOnMobile:s,mediaAlt:c,mediaId:u,mediaPosition:m,mediaType:p,mediaUrl:d,mediaWidth:f,onSelectMedia:g,onWidthChange:v,enableResize:b,toggleUseFeaturedImage:y,useFeaturedImage:_,featuredImageURL:x,featuredImageAlt:w,refMedia:C}=e,T=!u&&(0,AU.isBlobURL)(d),{toggleSelection:N}=(0,FB.useDispatch)(ls.store);if(d||x||_){let P=()=>{N(!1)},M=(I,V,W)=>{v(parseInt(W.style.width))},R=(I,V,W)=>{N(!0),a(parseInt(W.style.width))},H={right:b&&m==="left",left:b&&m==="right"},O=p==="image"&&i?x5(d||x,n):{},A={image:()=>_&&x?(0,ta.jsx)("img",{ref:C,src:x,alt:w,style:O}):d&&(0,ta.jsx)("img",{ref:C,src:d,alt:c,style:O}),video:()=>(0,ta.jsx)("video",{controls:!0,ref:C,src:d})};return(0,ta.jsxs)(ede,{as:"figure",className:k(o,"editor-media-container__resizer",{"is-transient":T}),size:{width:f+"%"},minWidth:"10%",maxWidth:"100%",enable:H,onResizeStart:P,onResize:M,onResizeStop:R,axis:"x",isSelected:l,isStackedOnMobile:s,ref:t,children:[(0,ta.jsx)(tde,{onSelectMedia:g,mediaUrl:_&&x?x:d,mediaId:u,toggleUseFeaturedImage:y,useFeaturedImage:_}),(A[p]||Jpe)(),T&&(0,ta.jsx)(ff.Spinner,{}),!_&&(0,ta.jsx)(RU,{...e}),!x&&_&&(0,ta.jsx)(ff.Placeholder,{className:"wp-block-media-text--placeholder-image",style:O,withIllustration:!0})]})}return(0,ta.jsx)(RU,{...e})}var jU=(0,jB.forwardRef)(ode);var et=r(h()),{ResolutionTool:rde}=Q(fr.privateApis),OU=e=>Math.max(e1,Math.min(e,100-e1));function UU(e,t){return e?.media_details?.sizes?.[t]?.source_url}function ade({attributes:{linkDestination:e,href:t},setAttributes:o}){return a=>{if(!a||!a.url){o({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0,useFeaturedImage:!1});return}(0,C5.isBlobURL)(a.url)&&(a.type=(0,C5.getBlobTypeByURL)(a.url));let n,i;a.media_type?a.media_type==="image"?n="image":n="video":n=a.type,n==="image"&&(i=a.sizes?.large?.url||a.media_details?.sizes?.large?.source_url);let l=t;e===BU&&(l=a.url),e===PU&&(l=a.link),o({mediaAlt:a.alt,mediaId:a.id,mediaType:n,mediaUrl:i||a.url,mediaLink:a.link||void 0,href:l,focalPoint:void 0,useFeaturedImage:!1})}}function nde({image:e,value:t,onChange:o}){let{imageSizes:a}=(0,k5.useSelect)(i=>{let{getSettings:l}=i(fr.store);return{imageSizes:l().imageSizes}},[]);if(!a?.length)return null;let n=a.filter(({slug:i})=>UU(e,i)).map(({name:i,slug:l})=>({value:l,label:i}));return(0,et.jsx)(rde,{value:t,defaultValue:ns,options:n,onChange:o})}function ide({attributes:e,isSelected:t,setAttributes:o,context:{postId:a,postType:n}}){let{focalPoint:i,href:l,imageFill:s,isStackedOnMobile:c,linkClass:u,linkDestination:m,linkTarget:p,mediaAlt:d,mediaId:f,mediaPosition:g,mediaType:v,mediaUrl:b,mediaWidth:y,mediaSizeSlug:_,rel:x,verticalAlignment:w,allowedBlocks:C,useFeaturedImage:T}=e,[N]=(0,t1.useEntityProp)("postType",n,"featured_media",a),{featuredImageMedia:P}=(0,k5.useSelect)(re=>({featuredImageMedia:N&&T?re(t1.store).getEntityRecord("postType","attachment",N,{context:"view"}):void 0}),[N,T]),{image:M}=(0,k5.useSelect)(re=>({image:f&&t?re(t1.store).getEntityRecord("postType","attachment",f,{context:"view"}):null}),[t,f]),R=T?P?.source_url:"",H=T?P?.alt_text:"",O=()=>{o({imageFill:!1,mediaType:"image",mediaId:void 0,mediaUrl:void 0,mediaAlt:void 0,mediaLink:void 0,linkDestination:void 0,linkTarget:void 0,linkClass:void 0,rel:void 0,href:void 0,useFeaturedImage:!T})},A=(0,w5.useRef)(),I=re=>{let{style:se}=A.current,{x:we,y:fe}=re;se.objectPosition=`${we*100}% ${fe*100}%`},[V,W]=(0,w5.useState)(null),j=ade({attributes:e,setAttributes:o}),K=re=>{o(re)},Z=re=>{W(OU(re))},te=re=>{o({mediaWidth:OU(re)}),W(null)},X=k({"has-media-on-the-right":g==="right","is-selected":t,"is-stacked-on-mobile":c,[`is-vertically-aligned-${w}`]:w,"is-image-fill-element":s}),J=`${V||y}%`,ee=g==="right"?`1fr ${J}`:`${J} 1fr`,ne={gridTemplateColumns:ee,msGridColumns:ee},oe=re=>{o({mediaAlt:re})},ce=re=>{o({verticalAlignment:re})},pe=re=>{let se=UU(M,re);if(!se)return null;o({mediaUrl:se,mediaSizeSlug:re})},Ne=G(),Le=(0,et.jsxs)(go.__experimentalToolsPanel,{label:(0,Dr.__)("Settings"),resetAll:()=>{o({isStackedOnMobile:!0,imageFill:!1,mediaAlt:"",focalPoint:void 0,mediaWidth:50}),pe(ns)},dropdownMenuProps:Ne,children:[(0,et.jsx)(go.__experimentalToolsPanelItem,{label:(0,Dr.__)("Media width"),isShownByDefault:!0,hasValue:()=>y!==50,onDeselect:()=>o({mediaWidth:50}),children:(0,et.jsx)(go.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Dr.__)("Media width"),value:V||y,onChange:te,min:e1,max:100-e1})}),(0,et.jsx)(go.__experimentalToolsPanelItem,{label:(0,Dr.__)("Stack on mobile"),isShownByDefault:!0,hasValue:()=>!c,onDeselect:()=>o({isStackedOnMobile:!0}),children:(0,et.jsx)(go.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Dr.__)("Stack on mobile"),checked:c,onChange:()=>o({isStackedOnMobile:!c})})}),v==="image"&&(0,et.jsx)(go.__experimentalToolsPanelItem,{label:(0,Dr.__)("Crop image to fill"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({imageFill:!1}),children:(0,et.jsx)(go.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Dr.__)("Crop image to fill"),checked:!!s,onChange:()=>o({imageFill:!s})})}),s&&(b||R)&&v==="image"&&(0,et.jsx)(go.__experimentalToolsPanelItem,{label:(0,Dr.__)("Focal point"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>o({focalPoint:void 0}),children:(0,et.jsx)(go.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,Dr.__)("Focal point"),url:T&&R?R:b,value:i,onChange:re=>o({focalPoint:re}),onDragStart:I,onDrag:I})}),v==="image"&&b&&!T&&(0,et.jsx)(go.__experimentalToolsPanelItem,{label:(0,Dr.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>!!d,onDeselect:()=>o({mediaAlt:""}),children:(0,et.jsx)(go.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,Dr.__)("Alternative text"),value:d,onChange:oe,help:(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(go.ExternalLink,{href:(0,Dr.__)("https://www.w3.org/WAI/tutorials/images/decision-tree/"),children:(0,Dr.__)("Describe the purpose of the image.")}),(0,et.jsx)("br",{}),(0,Dr.__)("Leave empty if decorative.")]})})}),v==="image"&&!T&&(0,et.jsx)(nde,{image:M,value:_,onChange:pe})]}),ie=(0,fr.useBlockProps)({className:X,style:ne}),Ee=(0,fr.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:NU,allowedBlocks:C}),de=(0,fr.useBlockEditingMode)();return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(fr.InspectorControls,{children:Le}),(0,et.jsxs)(fr.BlockControls,{group:"block",children:[de==="default"&&(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(fr.BlockVerticalAlignmentControl,{onChange:ce,value:w}),(0,et.jsx)(go.ToolbarButton,{icon:G7,title:(0,Dr.__)("Show media on left"),isActive:g==="left",onClick:()=>o({mediaPosition:"left"})}),(0,et.jsx)(go.ToolbarButton,{icon:W7,title:(0,Dr.__)("Show media on right"),isActive:g==="right",onClick:()=>o({mediaPosition:"right"})})]}),v==="image"&&!T&&(0,et.jsx)(fr.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:K,linkDestination:m,mediaType:v,mediaUrl:M&&M.source_url,mediaLink:M&&M.link,linkTarget:p,linkClass:u,rel:x})]}),(0,et.jsxs)("div",{...ie,children:[g==="right"&&(0,et.jsx)("div",{...Ee}),(0,et.jsx)(jU,{className:"wp-block-media-text__media",onSelectMedia:j,onWidthChange:Z,commitWidthChange:te,refMedia:A,enableResize:de==="default",toggleUseFeaturedImage:O,focalPoint:i,imageFill:s,isSelected:t,isStackedOnMobile:c,mediaAlt:d,mediaId:f,mediaPosition:g,mediaType:v,mediaUrl:b,mediaWidth:y,useFeaturedImage:T,featuredImageURL:R,featuredImageAlt:H}),g!=="right"&&(0,et.jsx)("div",{...Ee})]})]})}var GU=ide;var S5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",role:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",role:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",role:"content"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",role:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",role:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},useFeaturedImage:{type:"boolean",default:!1}},usesContext:["postId","postType"],supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},allowedBlocks:!0},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"};var gf=r(S());var pl=r(h()),sde=50,$U=()=>{};function WU({attributes:e}){let{isStackedOnMobile:t,mediaAlt:o,mediaPosition:a,mediaType:n,mediaUrl:i,mediaWidth:l,mediaId:s,verticalAlignment:c,imageFill:u,focalPoint:m,linkClass:p,href:d,linkTarget:f,rel:g}=e,v=e.mediaSizeSlug||ns,b=g||void 0,y=k({[`wp-image-${s}`]:s&&n==="image",[`size-${v}`]:s&&n==="image"}),_=u?x5(i,m):{},x=i?(0,pl.jsx)("img",{src:i,alt:o,className:y||null,style:_}):null;d&&(x=(0,pl.jsx)("a",{className:p,href:d,target:f,rel:b,children:x}));let w={image:()=>x,video:()=>(0,pl.jsx)("video",{controls:!0,src:i})},C=k({"has-media-on-the-right":a==="right","is-stacked-on-mobile":t,[`is-vertically-aligned-${c}`]:c,"is-image-fill-element":u}),T;l!==sde&&(T=a==="right"?`auto ${l}%`:`${l}% auto`);let N={gridTemplateColumns:T};return a==="right"?(0,pl.jsxs)("div",{...gf.useBlockProps.save({className:C,style:N}),children:[(0,pl.jsx)("div",{...gf.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,pl.jsx)("figure",{className:"wp-block-media-text__media",children:(w[n]||$U)()})]}):(0,pl.jsxs)("div",{...gf.useBlockProps.save({className:C,style:N}),children:[(0,pl.jsx)("figure",{className:"wp-block-media-text__media",children:(w[n]||$U)()}),(0,pl.jsx)("div",{...gf.useInnerBlocksProps.save({className:"wp-block-media-text__content"})})]})}var pp=r(U()),cde={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:o,anchor:a})=>(0,pp.createBlock)("core/media-text",{mediaAlt:e,mediaId:o,mediaUrl:t,mediaType:"image",anchor:a})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:o})=>(0,pp.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:o,backgroundType:a,customGradient:n,customOverlayColor:i,gradient:l,id:s,overlayColor:c,style:u,textColor:m,url:p,useFeaturedImage:d},f)=>{let g={};return n?g={style:{color:{gradient:n}}}:i&&(g={style:{color:{background:i}}}),u?.color?.text&&(g.style={color:{...g.style?.color,text:u.color.text}}),(0,pp.createBlock)("core/media-text",{align:e,anchor:o,backgroundColor:c,gradient:l,mediaAlt:t,mediaId:s,mediaType:a,mediaUrl:p,textColor:m,useFeaturedImage:d,...g},f)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="image",transform:({mediaAlt:e,mediaId:t,mediaUrl:o,anchor:a})=>(0,pp.createBlock)("core/image",{alt:e,id:t,url:o,anchor:a})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||e==="video",transform:({mediaId:e,mediaUrl:t,anchor:o})=>(0,pp.createBlock)("core/video",{id:e,src:t,anchor:o})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:o,focalPoint:a,gradient:n,mediaAlt:i,mediaId:l,mediaType:s,mediaUrl:c,style:u,textColor:m,useFeaturedImage:p},d)=>{let f={};u?.color?.gradient?f.customGradient=u.color.gradient:u?.color?.background&&(f.customOverlayColor=u.color.background),u?.color?.text&&(f.style={color:{text:u.color.text}});let g={align:e,alt:i,anchor:t,backgroundType:s,dimRatio:c||p?50:100,focalPoint:a,gradient:n,id:l,overlayColor:o,textColor:m,url:c,useFeaturedImage:p,...f};return(0,pp.createBlock)("core/cover",g,d)}}]},qU=cde;var{fieldsKey:ude,formKey:mde}=Q(ZU.privateApis),{name:KU}=S5,T5={icon:Y8,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,o1.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,o1.__)("\u2014 Kobayashi Issa (\u4E00\u8336)")}}]},transforms:qU,edit:GU,save:WU,deprecated:LU};window.__experimentalContentOnlyInspectorFields&&(T5[ude]=[{id:"media",label:(0,o1.__)("Media"),type:"media",mapping:{id:"mediaId",type:"mediaType",url:"mediaUrl",link:"mediaLink"},args:{allowedTypes:["image","video"],multiple:!1}},{id:"link",label:(0,o1.__)("Link"),type:"link",mapping:{url:"href",rel:"rel",linkTarget:"linkTarget"}}],T5[mde]={fields:["media"]});var pde=()=>D({name:KU,metadata:S5,settings:T5});var UB={};$(UB,{init:()=>fde,metadata:()=>P5,name:()=>r1,settings:()=>nG});var aG=r(U());var nc=r(B()),QU=r(F()),YU=r(L()),XU=r(U()),B5=r(z()),dp=r(S()),JU=r(Qs()),hf=r(h());function eG({attributes:e,clientId:t}){let{originalName:o,originalUndelimitedContent:a}=e,n=!!a,{hasFreeformBlock:i,hasHTMLBlock:l}=(0,B5.useSelect)(d=>{let{canInsertBlockType:f,getBlockRootClientId:g}=d(dp.store);return{hasFreeformBlock:f("core/freeform",g(t)),hasHTMLBlock:f("core/html",g(t))}},[t]),{replaceBlock:s}=(0,B5.useDispatch)(dp.store);function c(){s(t,(0,XU.createBlock)("core/html",{content:a}))}let u=[],m,p=(0,hf.jsx)(YU.Button,{__next40pxDefaultSize:!0,onClick:c,variant:"primary",children:(0,nc.__)("Keep as HTML")},"convert");return n&&!i&&(!o||o==="core/freeform")?l?(m=(0,nc.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."),u.push(p)):m=(0,nc.__)("It appears you are trying to use the deprecated Classic block. You can leave this block intact, or remove it entirely. Alternatively, if you have unsaved changes, you can save them and refresh to use the Classic block."):n&&l?(m=(0,nc.sprintf)((0,nc.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'),o),u.push(p)):m=(0,nc.sprintf)((0,nc.__)('Your site doesn\u2019t include support for the "%s" block. You can leave it as-is or remove it.'),o),(0,hf.jsxs)("div",{...(0,dp.useBlockProps)({className:"has-warning"}),children:[(0,hf.jsx)(dp.Warning,{actions:u,children:m}),(0,hf.jsx)(QU.RawHTML,{children:(0,JU.safeHTML)(a)})]})}var P5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn\u2019t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,lock:!1,reusable:!1,renaming:!1,visibility:!1,interactivity:{clientNavigation:!0}}};var tG=r(F()),oG=r(h());function rG({attributes:e}){return(0,oG.jsx)(tG.RawHTML,{children:e.originalContent})}var{name:r1}=P5,nG={name:r1,__experimentalLabel(e,{context:t}){if(t==="accessibility"){let{originalName:o}=e,a=o?(0,aG.getBlockType)(o):void 0;return a?a.settings.title||o:""}},edit:eG,save:rG},fde=()=>D({name:r1,metadata:P5,settings:nG});var GB={};$(GB,{init:()=>_de,metadata:()=>I5,name:()=>fG,settings:()=>D5});var pG=r(B()),dG=r(U());var bu=r(B()),vf=r(L()),bf=r(S()),N5=r(U());var dl=r(h()),gde=(0,bu.__)("Read more");function iG({attributes:{customText:e,noTeaser:t},insertBlocksAfter:o,setAttributes:a}){let n=G();return(0,dl.jsxs)(dl.Fragment,{children:[(0,dl.jsx)(bf.InspectorControls,{children:(0,dl.jsx)(vf.__experimentalToolsPanel,{label:(0,bu.__)("Settings"),resetAll:()=>{a({noTeaser:!1})},dropdownMenuProps:n,children:(0,dl.jsx)(vf.__experimentalToolsPanelItem,{label:(0,bu.__)("Hide excerpt"),isShownByDefault:!0,hasValue:()=>t,onDeselect:()=>a({noTeaser:!1}),children:(0,dl.jsx)(vf.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,bu.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>a({noTeaser:!t}),help:i=>i?(0,bu.__)("The excerpt is hidden."):(0,bu.__)("The excerpt is visible.")})})})}),(0,dl.jsx)("div",{...(0,bf.useBlockProps)(),children:(0,dl.jsx)(bf.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,bu.__)('"Read more" text'),value:e,placeholder:gde,onChange:i=>a({customText:i}),disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,N5.createBlock)((0,N5.getDefaultBlockName)()))})})]})}var I5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string",default:"",role:"content"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-more-editor"};var lG=r(F()),sG=r(h());function cG({attributes:{customText:e,noTeaser:t}}){let o=e?`<!--more ${e}-->`:"<!--more-->";return(0,sG.jsx)(lG.RawHTML,{children:[o,t?"<!--noteaser-->":""].filter(Boolean).join(` |
| 33 |
`)})}var uG=r(U()),vde={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/more",transform(e){let{customText:t,noTeaser:o}=e.dataset,a={};return t&&(a.customText=t),o===""&&(a.noTeaser=!0),(0,uG.createBlock)("core/more",a)}}]},mG=vde;var{fieldsKey:bde,formKey:yde}=Q(dG.privateApis),{name:fG}=I5,D5={icon:o7,example:{},__experimentalLabel(e,{context:t}){let o=e?.metadata?.name;if(t==="list-view"&&o)return o;if(t==="accessibility")return e.customText},transforms:mG,edit:iG,save:cG};window.__experimentalContentOnlyInspectorFields&&(D5[bde]=[{id:"customText",label:(0,pG.__)("Content"),type:"richtext"}],D5[yde]={fields:["customText"]});var _de=()=>D({name:fG,metadata:I5,settings:D5});var gP={};$(gP,{init:()=>ufe,metadata:()=>E5,name:()=>aW,settings:()=>nW});var yk=r(B());var tW=r(z()),oW=r(Y()),rW=r(jo());var E5={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",allowedBlocks:["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu","core/loginout","core/buttons"],description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},overlay:{type:"string"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{align:["wide","full"],ariaLabel:!0,contentRole:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},interactivity:!0,renaming:!1},editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"};var so=r(F()),Xe=r(S()),vk=r(Y()),Cu=r(z()),Er=r(L()),$t=r(B()),hk=r(K0());var Z$=r(U()),K$=r(xe());var yf=r(Y()),vG=r(z());var qn={name:"core/navigation-link",attributes:{kind:"post-type",type:"page"}},gG=["core/navigation-link/page","core/navigation-link"],$B={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},hG=["postType","wp_navigation",$B];function _f(e){let t=(0,yf.useResourcePermissions)({kind:"postType",name:"wp_navigation",id:e}),{navigationMenu:o,isNavigationMenuResolved:a,isNavigationMenuMissing:n}=(0,vG.useSelect)(g=>kde(g,e),[e]),{canCreate:i,canUpdate:l,canDelete:s,isResolving:c,hasResolved:u}=t,{records:m,isResolving:p,hasResolved:d}=(0,yf.useEntityRecords)("postType","wp_navigation",$B),f=e?m?.length>1:m?.length>0;return{navigationMenu:o,isNavigationMenuResolved:a,isNavigationMenuMissing:n,navigationMenus:m,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canSwitchNavigationMenu:f,canUserCreateNavigationMenus:i,isResolvingCanUserCreateNavigationMenus:c,hasResolvedCanUserCreateNavigationMenus:u,canUserUpdateNavigationMenu:l,hasResolvedCanUserUpdateNavigationMenu:e?u:void 0,canUserDeleteNavigationMenu:s,hasResolvedCanUserDeleteNavigationMenu:e?u:void 0}}function kde(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};let{getEntityRecord:o,getEditedEntityRecord:a,hasFinishedResolution:n}=e(yf.store),i=["postType","wp_navigation",t],l=o(...i),s=a(...i),c=n("getEditedEntityRecord",i),u=s.status==="publish"||s.status==="draft";return{isNavigationMenuResolved:c,isNavigationMenuMissing:c&&(!l||!u),navigationMenu:u?s:null}}var M5=r(Y());function xf(e){let{records:t,isResolving:o,hasResolved:a}=(0,M5.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:n,isResolving:i,hasResolved:l}=(0,M5.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:s,hasResolved:c}=(0,M5.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:n,isResolvingPages:i,hasResolvedPages:l,hasPages:!!(l&&n?.length),menus:t,isResolvingMenus:o,hasResolvedMenus:a,hasMenus:!!(a&&t?.length),menuItems:s,hasResolvedMenuItems:c}}var wf=r(L()),n1=r(B());var WB=r(K0()),_G=r(F());var bG=r(B()),a1=r(h()),wde=({isVisible:e=!0})=>(0,a1.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__preview",children:(0,a1.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,a1.jsx)(Pn,{icon:_m}),(0,bG.__)("Navigation")]})}),L5=wde;var fl=r(L());var Na=r(B()),R5=r(jo()),kf=r(F()),yG=r(Y());var ki=r(h());function Cde(e,t,o){return e?o==="publish"?(0,R5.decodeEntities)(e):(0,Na.sprintf)((0,Na.__)("%1$s (%2$s)"),(0,R5.decodeEntities)(e),o):(0,Na.sprintf)((0,Na.__)("(no title %s)"),t)}function Sde({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:o,onCreateNew:a,actionLabel:n,createNavigationMenuIsSuccess:i,createNavigationMenuIsError:l}){let s=(0,Na.__)("Create from '%s'"),[c,u]=(0,kf.useState)(!1);n=n||s;let{menus:m}=xf(),{navigationMenus:p,isResolvingNavigationMenus:d,hasResolvedNavigationMenus:f,canUserCreateNavigationMenus:g,canSwitchNavigationMenu:v,isNavigationMenuMissing:b}=_f(e),[y]=(0,yG.useEntityProp)("postType","wp_navigation","title"),_=(0,kf.useMemo)(()=>p?.map(({id:A,title:I,status:V},W)=>{let j=Cde(I?.rendered,W+1,V);return{value:A,label:j,ariaLabel:(0,Na.sprintf)(n,j),disabled:c||d||!f}})||[],[p,n,d,f,c]),x=!!p?.length,w=!!m?.length,C=!!v,T=!!g,N=x&&!e,P=!x&&f,M=f&&e===null,R=e&&b,H="";return d?H=(0,Na.__)("Loading\u2026"):N||P||M||R?H=(0,Na.__)("Choose or create a Navigation Menu"):H=y,(0,kf.useEffect)(()=>{c&&(i||l)&&u(!1)},[f,i,g,l,c,M,P,N]),(0,ki.jsx)(fl.DropdownMenu,{label:H,icon:Ih,toggleProps:{size:"small"},children:({onClose:A})=>(0,ki.jsxs)(ki.Fragment,{children:[C&&x&&(0,ki.jsx)(fl.MenuGroup,{label:(0,Na.__)("Menus"),children:(0,ki.jsx)(fl.MenuItemsChoice,{value:e,onSelect:I=>{t(I),A()},choices:_})}),T&&w&&(0,ki.jsx)(fl.MenuGroup,{label:(0,Na.__)("Import Classic Menus"),children:m?.map(I=>{let V=(0,R5.decodeEntities)(I.name);return(0,ki.jsx)(fl.MenuItem,{onClick:async()=>{u(!0),await o(I),u(!1),A()},"aria-label":(0,Na.sprintf)(s,V),disabled:c||d||!f,children:V},I.id)})}),g&&(0,ki.jsx)(fl.MenuGroup,{label:(0,Na.__)("Tools"),children:(0,ki.jsx)(fl.MenuItem,{onClick:async()=>{u(!0),await a(),u(!1),A()},disabled:c||d||!f,children:(0,Na.__)("Create new Menu")})})]})})}var H5=Sde;var oa=r(h());function xG({isSelected:e,currentMenuId:t,clientId:o,canUserCreateNavigationMenus:a=!1,isResolvingCanUserCreateNavigationMenus:n,onSelectNavigationMenu:i,onSelectClassicMenu:l,onCreateEmpty:s}){let{isResolvingMenus:c,hasResolvedMenus:u}=xf();(0,_G.useEffect)(()=>{e&&(c&&(0,WB.speak)((0,n1.__)("Loading navigation block setup options\u2026")),u&&(0,WB.speak)((0,n1.__)("Navigation block setup options ready.")))},[u,c,e]);let m=c&&n;return(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsxs)(wf.Placeholder,{className:"wp-block-navigation-placeholder",children:[(0,oa.jsx)(L5,{isVisible:!e}),(0,oa.jsx)("div",{"aria-hidden":e?void 0:!0,className:"wp-block-navigation-placeholder__controls",children:(0,oa.jsxs)("div",{className:"wp-block-navigation-placeholder__actions",children:[(0,oa.jsxs)("div",{className:"wp-block-navigation-placeholder__actions__indicator",children:[(0,oa.jsx)(Pn,{icon:_m})," ",(0,n1.__)("Navigation")]}),(0,oa.jsx)("hr",{}),m&&(0,oa.jsx)(wf.Spinner,{}),(0,oa.jsx)(H5,{currentMenuId:t,clientId:o,onSelectNavigationMenu:i,onSelectClassicMenu:l}),(0,oa.jsx)("hr",{}),a&&(0,oa.jsx)(wf.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:s,children:(0,n1.__)("Start empty")})]})})]})})}var qB=r(L()),Sf=r(B()),ZB=r(S());var i1=r(E());var Cf=r(h());function ss({icon:e}){return e==="menu"?(0,Cf.jsx)(Pn,{icon:J8}):(0,Cf.jsxs)(i1.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:[(0,Cf.jsx)(i1.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,Cf.jsx)(i1.Rect,{x:"4",y:"15",width:"16",height:"1.5"})]})}var Zn=r(h());function KB({children:e,id:t,isOpen:o,isResponsive:a,onToggle:n,isHiddenByDefault:i,overlayBackgroundColor:l,overlayTextColor:s,hasIcon:c,icon:u,overlay:m,onNavigateToEntityRecord:p}){if(!a)return e;let d=k("wp-block-navigation__responsive-container",{"has-text-color":!!s.color||!!s?.class,[(0,ZB.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!l.color||l?.class,[(0,ZB.getColorClassName)("background-color",l?.slug)]:!!l?.slug,"is-menu-open":o,"hidden-by-default":i}),f={color:!s?.slug&&s?.color,backgroundColor:!l?.slug&&l?.color&&l.color},g=k("wp-block-navigation__responsive-container-open",{"always-shown":i}),v=`${t}-modal`,b={className:"wp-block-navigation__responsive-dialog",...o&&{role:"dialog","aria-modal":!0,"aria-label":(0,Sf.__)("Menu")}},y=()=>{if(m&&p){p({postId:m,postType:"wp_template_part"});return}n(!0)};return(0,Zn.jsxs)(Zn.Fragment,{children:[!o&&(0,Zn.jsxs)(qB.Button,{__next40pxDefaultSize:!0,"aria-haspopup":"true","aria-label":c&&(0,Sf.__)("Open menu"),className:g,onClick:y,children:[c&&(0,Zn.jsx)(ss,{icon:u}),!c&&(0,Sf.__)("Menu")]}),(0,Zn.jsx)("div",{className:d,style:f,id:v,children:(0,Zn.jsx)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1",children:(0,Zn.jsxs)("div",{...b,children:[(0,Zn.jsxs)(qB.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation__responsive-container-close","aria-label":c&&(0,Sf.__)("Close menu"),onClick:()=>n(!1),children:[c&&(0,Zn.jsx)(Pn,{icon:mh}),!c&&(0,Sf.__)("Close")]}),(0,Zn.jsx)("div",{className:"wp-block-navigation__responsive-container-content",id:`${v}-content`,children:e})]})})})]})}var kG=r(Y()),Tf=r(S()),wG=r(z()),CG=r(F());var QB=r(h());function SG({clientId:e,hasCustomPlaceholder:t,orientation:o,templateLock:a}){let{isImmediateParentOfSelectedBlock:n,selectedBlockHasChildren:i,isSelected:l,hasSelectedDescendant:s}=(0,wG.useSelect)(b=>{let{getBlockCount:y,hasSelectedInnerBlock:_,getSelectedBlockClientId:x}=b(Tf.store),w=x();return{isImmediateParentOfSelectedBlock:_(e,!1),selectedBlockHasChildren:!!y(w),hasSelectedDescendant:_(e,!0),isSelected:w===e}},[e]),[c,u,m]=(0,kG.useEntityBlockEditor)("postType","wp_navigation"),p=l||n&&!i,d=(0,CG.useMemo)(()=>(0,QB.jsx)(L5,{}),[]),f=!!c?.length,g=!t&&!f&&!l,v=(0,Tf.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:c,onInput:u,onChange:m,prioritizedInserterBlocks:gG,defaultBlock:qn,directInsert:!0,orientation:o,templateLock:a,renderAppender:l||n&&!i||s||p?Tf.InnerBlocks.ButtonBlockAppender:!1,placeholder:g?d:void 0,__experimentalCaptureToolbars:!0,__unstableDisableLayoutClassNames:!0});return(0,QB.jsx)("div",{...v})}var TG=r(L()),BG=r(Y()),PG=r(B()),NG=r(h());function IG(){let[e,t]=(0,BG.useEntityProp)("postType","wp_navigation","title");return(0,NG.jsx)(TG.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,PG.__)("Menu name"),value:e,onChange:t})}var MG=r(S()),YB=r(L()),LG=r(Y()),RG=r(z()),fp=r(F());function DG(e,t){return!EG(e,t,(o,a)=>{if(a?.name==="core/page-list"&&o==="innerBlocks")return!0})}var EG=(e,t,o)=>{if(e===t)return!0;if(typeof e=="object"&&e!==null&&e!==void 0&&typeof t=="object"&&t!==null&&t!==void 0){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let a in e)if(t.hasOwnProperty(a)){if(o&&o(a,e))return!0;if(!EG(e[a],t[a],o))return!1}else return!1;return!0}return!1};var HG=r(h()),Tde={};function zG({blocks:e,createNavigationMenu:t,hasSelection:o}){let a=(0,fp.useRef)();(0,fp.useEffect)(()=>{a?.current||(a.current=e)},[e]);let n=DG(a?.current,e),i=(0,fp.useContext)(YB.Disabled.Context),l=(0,MG.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:o?void 0:!1,defaultBlock:qn,directInsert:!0}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,RG.useSelect)(m=>{if(i)return Tde;let{hasFinishedResolution:p,isSavingEntityRecord:d}=m(LG.store);return{isSaving:d("postType","wp_navigation"),hasResolvedAllNavigationMenus:p("getEntityRecords",hG)}},[i]);return(0,fp.useEffect)(()=>{i||s||!c||!o||!n||t(null,e)},[e,t,i,s,c,n,o]),(0,HG.jsx)(s?YB.Disabled:"div",{...l})}var A5=r(L()),V5=r(Y()),AG=r(z()),VG=r(F()),z5=r(B()),gp=r(h());function FG({onDelete:e}){let[t,o]=(0,VG.useState)(!1),a=(0,V5.useEntityId)("postType","wp_navigation"),{deleteEntityRecord:n}=(0,AG.useDispatch)(V5.store);return(0,gp.jsxs)(gp.Fragment,{children:[(0,gp.jsx)(A5.Button,{__next40pxDefaultSize:!0,className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{o(!0)},children:(0,z5.__)("Delete menu")}),t&&(0,gp.jsx)(A5.__experimentalConfirmDialog,{isOpen:!0,onConfirm:()=>{n("postType","wp_navigation",a,{force:!0}),e()},onCancel:()=>{o(!1)},confirmButtonText:(0,z5.__)("Delete"),size:"medium",children:(0,z5.__)("Are you sure you want to delete this Navigation Menu?")})]})}var l1=r(F()),jG=r(z()),OG=r(No());function Bde({name:e,message:t=""}={}){let o=(0,l1.useRef)(),{createWarningNotice:a,removeNotice:n}=(0,jG.useDispatch)(OG.store),i=(0,l1.useCallback)(s=>{o.current||(o.current=e,a(s||t,{id:o.current,type:"snackbar"}))},[o,a,t,e]),l=(0,l1.useCallback)(()=>{o.current&&(n(o.current),o.current=null)},[o,n]);return[i,l]}var F5=Bde;var cs=r(L()),yu=r(B());var Kn=r(h());function UG({setAttributes:e,hasIcon:t,icon:o}){return(0,Kn.jsxs)(Kn.Fragment,{children:[(0,Kn.jsx)(cs.__experimentalToolsPanelItem,{label:(0,yu.__)("Show icon button"),isShownByDefault:!0,hasValue:()=>!t,onDeselect:()=>e({hasIcon:!0}),children:(0,Kn.jsx)(cs.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,yu.__)("Show icon button"),help:(0,yu.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:a=>e({hasIcon:a}),checked:t})}),(0,Kn.jsx)(cs.__experimentalToolsPanelItem,{label:(0,yu.__)("Icon"),isShownByDefault:!0,hasValue:()=>o!=="handle",onDeselect:()=>e({icon:"handle"}),children:(0,Kn.jsxs)(cs.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,yu.__)("Icon"),value:o,onChange:a=>e({icon:a}),isBlock:!0,children:[(0,Kn.jsx)(cs.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,yu.__)("handle"),label:(0,Kn.jsx)(ss,{icon:"handle"})}),(0,Kn.jsx)(cs.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,yu.__)("menu"),label:(0,Kn.jsx)(ss,{icon:"menu"})})]})})]})}var $5=r(L()),qG=r(B());var s1=r(F()),GG=r(Y()),Bf=r(L()),hl=r(B()),XB=r(jo());function gl(e,t){return e&&t?e+"//"+t:null}var _u=r(h());function Pde(e){if(!e||typeof e!="string")return null;let t=e.split("//");return t.length!==2?null:{theme:t[0],slug:t[1]}}function $G({overlay:e,setAttributes:t,onNavigateToEntityRecord:o}){let{records:a,isResolving:n,hasResolved:i}=(0,GG.useEntityRecords)("postType","wp_template_part",{per_page:-1}),l=(0,s1.useMemo)(()=>a?a.filter(f=>f.area==="overlay"):[],[a]),s=(0,s1.useMemo)(()=>{let f=[{label:(0,hl.__)("None (default)"),value:""}];if(!i||n)return f;let g=l.map(v=>{let b=gl(v.theme,v.slug);return{label:v.title?.rendered?(0,XB.decodeEntities)(v.title.rendered):v.slug,value:b}});return[...f,...g]},[l,i,n]),c=(0,s1.useMemo)(()=>Pde(e),[e]),u=(0,s1.useMemo)(()=>!e||!l?null:l.find(f=>gl(f.theme,f.slug)===e),[e,l]),m=f=>{t({overlay:f||void 0})},p=()=>{!e||!o||o({postId:e,postType:"wp_template_part"})},d=!e||!c||!o||n;return n&&!i?(0,_u.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,_u.jsx)(Bf.Spinner,{}),(0,_u.jsx)("p",{children:(0,hl.__)("Loading overlays\u2026")})]}):(0,_u.jsxs)("div",{className:"wp-block-navigation__overlay-selector",children:[(0,_u.jsx)(Bf.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,hl.__)("Overlay template"),value:e||"",options:s,onChange:m,disabled:n,accessibleWhenDisabled:!0,help:l.length===0&&i?(0,hl.__)("No overlays found."):(0,hl.__)("Select an overlay to use for the navigation.")}),e&&(0,_u.jsx)(Bf.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:p,disabled:d,accessibleWhenDisabled:!0,"aria-label":u?(0,hl.sprintf)((0,hl.__)("Edit overlay: %s"),u.title?.rendered?(0,XB.decodeEntities)(u.title.rendered):u.slug):(0,hl.__)("Edit overlay"),className:"wp-block-navigation__overlay-edit-button",children:(0,hl.__)("Edit")})]})}var Pf=r(L()),hp=r(B()),Nf=r(h());function j5({overlayMenu:e,setAttributes:t}){return(0,Nf.jsxs)(Pf.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,hp.__)("Overlay Visibility"),"aria-label":(0,hp.__)("Configure overlay visibility"),value:e,help:(0,hp.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:o=>t({overlayMenu:o}),isBlock:!0,children:[(0,Nf.jsx)(Pf.__experimentalToggleGroupControlOption,{value:"never",label:(0,hp.__)("Off")}),(0,Nf.jsx)(Pf.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,hp.__)("Mobile")}),(0,Nf.jsx)(Pf.__experimentalToggleGroupControlOption,{value:"always",label:(0,hp.__)("Always")})]})}var U5=r(L()),O5=r(B());var lc=r(L()),If=r(B());var ic=r(h());function WG({hasIcon:e,icon:t,setAttributes:o}){return(0,ic.jsxs)(lc.__experimentalVStack,{spacing:4,children:[(0,ic.jsx)(lc.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,If.__)("Show icon button"),help:(0,If.__)("Configure the visual appearance of the button that toggles the overlay menu."),onChange:a=>o({hasIcon:a}),checked:e}),(0,ic.jsxs)(lc.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"wp-block-navigation__overlay-menu-icon-toggle-group",label:(0,If.__)("Icon"),value:t,onChange:a=>o({icon:a}),isBlock:!0,children:[(0,ic.jsx)(lc.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,If.__)("handle"),label:(0,ic.jsx)(ss,{icon:"handle"})}),(0,ic.jsx)(lc.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,If.__)("menu"),label:(0,ic.jsx)(ss,{icon:"menu"})})]})]})}var ra=r(h());function G5({isResponsive:e,overlayMenuPreview:t,setOverlayMenuPreview:o,hasIcon:a,icon:n,setAttributes:i,overlayMenuPreviewClasses:l,overlayMenuPreviewId:s,containerStyle:c}){return e?(0,ra.jsxs)(ra.Fragment,{children:[(0,ra.jsxs)(U5.Button,{__next40pxDefaultSize:!0,className:l,onClick:()=>o(!t),"aria-label":(0,O5.__)("Overlay menu controls"),"aria-controls":s,"aria-expanded":t,children:[a&&(0,ra.jsxs)(ra.Fragment,{children:[(0,ra.jsx)(ss,{icon:n}),(0,ra.jsx)(Pn,{icon:mh})]}),!a&&(0,ra.jsxs)(ra.Fragment,{children:[(0,ra.jsx)("span",{children:(0,O5.__)("Menu")}),(0,ra.jsx)("span",{children:(0,O5.__)("Close")})]})]}),t&&(0,ra.jsx)(U5.__experimentalVStack,{id:s,spacing:4,style:c,children:(0,ra.jsx)(WG,{hasIcon:a,icon:n,setAttributes:i})})]}):null}var vp=r(h());function ZG({overlayMenu:e,overlay:t,setAttributes:o,onNavigateToEntityRecord:a,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u,isResponsive:m}){return(0,vp.jsx)($5.PanelBody,{title:(0,qG.__)("Overlay"),initialOpen:!0,children:(0,vp.jsxs)($5.__experimentalVStack,{spacing:4,children:[(0,vp.jsx)(j5,{overlayMenu:e,setAttributes:o}),e!=="never"&&(0,vp.jsx)(G5,{isResponsive:m,overlayMenuPreview:n,setOverlayMenuPreview:i,hasIcon:l,icon:s,setAttributes:o,overlayMenuPreviewClasses:c,overlayMenuPreviewId:u}),e!=="never"&&(0,vp.jsx)($G,{overlay:t,setAttributes:o,onNavigateToEntityRecord:a})]})})}var K5=r(z()),eP=r(Y()),Ef=r(F()),us=r(B());var c1=r(U()),YG=r(eu());var JB=r(F()),W5=r(S()),KG=r(z()),QG=r(Y());function Df(e){if(e===void 0)throw new Error('buildNavigationLinkEntityBinding requires a kind parameter. Only "post-type" and "taxonomy" are supported.');if(e!=="post-type"&&e!=="taxonomy")throw new Error(`Invalid kind "${e}" provided to buildNavigationLinkEntityBinding. Only 'post-type' and 'taxonomy' are supported.`);return{url:{source:e==="taxonomy"?"core/term-data":"core/post-data",args:{field:"link"}}}}function Qn({clientId:e,attributes:t}){let{updateBlockBindings:o}=(0,W5.useBlockBindingsUtils)(e),{metadata:a,id:n,kind:i,type:l}=t,s=(0,W5.useBlockEditingMode)(),c=!!a?.bindings?.url&&!!n,u=i==="post-type"?"core/post-data":"core/term-data",m=c&&a?.bindings?.url?.source===u,p=(0,KG.useSelect)(g=>{if(!m||!n)return!1;let v=i==="post-type",b=i==="taxonomy";if(!v&&!b)return!1;if(s==="disabled")return!0;let{getEntityRecord:y,hasFinishedResolution:_}=g(QG.store),x=b?"taxonomy":"postType",w=l==="tag"?"post_tag":l,C=y(x,w,n);return _("getEntityRecord",[x,w,n])?C!==void 0:!0},[i,l,n,m,s]),d=(0,JB.useCallback)(()=>{c&&o({url:void 0})},[o,c]),f=(0,JB.useCallback)(g=>{let v=g?.kind??i;if(v)try{let b=Df(v);o(b)}catch(b){console.warn("Failed to create entity binding:",b.message)}},[o,i]);return{hasUrlBinding:m,isBoundEntityAvailable:p,clearBinding:d,createBinding:f}}function XG(e){if(!e)return null;let t=Ide(e),o=JG(t);return(0,YG.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",o,e)}function JG(e,t=0){let o={};return{innerBlocks:[...e].sort((i,l)=>i.menu_order-l.menu_order).map(i=>{if(i.type==="block"){let[p]=(0,c1.parse)(i.content.raw);return p||(0,c1.createBlock)("core/freeform",{content:i.content})}let l=i.children?.length?"core/navigation-submenu":"core/navigation-link",s=Nde(i,l,t),{innerBlocks:c=[],mapping:u={}}=i.children?.length?JG(i.children,t+1):{};o={...o,...u};let m=(0,c1.createBlock)(l,s,c);return o[i.id]=m.clientId,m}),mapping:o}}function Nde({title:e,xfn:t,classes:o,attr_title:a,object:n,object_id:i,description:l,url:s,type:c,target:u},m,p){n&&n==="post_tag"&&(n="tag");let d=c?.replace("_","-")||"custom";return{label:e?.rendered||"",...n?.length&&{type:n},kind:d,url:s||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...o?.length&&o.join(" ").trim()&&{className:o.join(" ").trim()},...a?.length&&{title:a},...i&&(d==="post-type"||d==="taxonomy")&&{id:i,metadata:{bindings:Df(d)}},...l?.length&&{description:l},...u==="_blank"&&{opensInNewTab:!0},...m==="core/navigation-submenu"&&{isTopLevelItem:p===0},...m==="core/navigation-link"&&{isTopLevelLink:p===0}}}function Ide(e,t="id",o="parent"){let a=Object.create(null),n=[];for(let i of e)a[i[t]]={...i,children:[]},i[o]?(a[i[o]]=a[i[o]]||{},a[i[o]].children=a[i[o]].children||[],a[i[o]].children.push(a[i[t]])):n.push(a[i[t]]);return n}var tP="success",Z5="error",Q5="pending",Dde="idle",q5=null;function Ede(e,{throwOnError:t=!1}={}){let o=(0,K5.useRegistry)(),{editEntityRecord:a}=(0,K5.useDispatch)(eP.store),[n,i]=(0,Ef.useState)(Dde),[l,s]=(0,Ef.useState)(null),c=(0,Ef.useCallback)(async(m,p,d="publish")=>{let f,g;try{g=await o.resolveSelect(eP.store).getMenuItems({menus:m,per_page:-1,context:"view"})}catch(b){throw new Error((0,us.sprintf)((0,us.__)('Unable to fetch classic menu "%s" from API.'),p),{cause:b})}if(g===null)throw new Error((0,us.sprintf)((0,us.__)('Unable to fetch classic menu "%s" from API.'),p));let{innerBlocks:v}=XG(g);try{f=await e(p,v,d),await a("postType","wp_navigation",f.id,{status:"publish"},{throwOnError:!0})}catch(b){throw new Error((0,us.sprintf)((0,us.__)('Unable to create Navigation Menu "%s".'),p),{cause:b})}return f},[e,a,o]);return{convert:(0,Ef.useCallback)(async(m,p,d)=>{if(q5!==m){if(q5=m,!m||!p){s("Unable to convert menu. Missing menu details."),i(Z5);return}return i(Q5),s(null),await c(m,p,d).then(f=>(i(tP),q5=null,f)).catch(f=>{if(s(f?.message),i(Z5),q5=null,t)throw new Error((0,us.sprintf)((0,us.__)('Unable to create Navigation Menu "%s".'),p),{cause:f})})}},[c,t]),status:n,error:l}}var e$=Ede;var p$=r(U()),d$=r(Y()),f$=r(z()),Lf=r(F());var n$=r(L()),i$=r(Y()),l$=r(z()),Y5=r(F()),u1=r(B());var t$=r(S()),o$=r(Y()),r$=r(z());var Mf=e=>e==="header"?P8:e==="footer"?u8:e==="sidebar"?f9:e==="overlay"?gd:e==="menu"?gd:Zh;function a$(e){return(0,r$.useSelect)(t=>{if(!e)return;let{getBlock:o,getBlockParentsByBlockName:a}=t(t$.store),i=a(e,"core/template-part",!0);if(!i?.length)return;let{getCurrentTheme:l,getEditedEntityRecord:s}=t(o$.store),c=l(),m=(c?.default_template_part_areas||[]).map(p=>({...p,icon:Mf(p.icon)}));for(let p of i){let d=o(p),{theme:f=c?.stylesheet,slug:g}=d.attributes,v=gl(f,g),b=s("postType","wp_template_part",v);if(b?.area)return m.find(y=>y.area!=="uncategorized"&&y.area===b.area)?.label}},[e])}var Mde=["postType","wp_navigation",{status:"draft",per_page:-1}],Lde=["postType","wp_navigation",{per_page:-1,status:"publish"}];function s$(e){let t=(0,Y5.useContext)(n$.Disabled.Context),o=a$(t?void 0:e),a=(0,l$.useRegistry)();return(0,Y5.useCallback)(async()=>{if(t)return"";let{getEntityRecords:n}=a.resolveSelect(i$.store),[i,l]=await Promise.all([n(...Mde),n(...Lde)]),s=o?(0,u1.sprintf)((0,u1.__)("%s menu"),o):(0,u1.__)("Menu"),c=[...i,...l].reduce((m,p)=>p?.title?.raw?.startsWith(s)?m+1:m,0);return(c>0?`${s} ${c+1}`:s)||""},[t,o,a])}var c$="success",X5="error",u$="pending",m$="idle";function g$(e){let[t,o]=(0,Lf.useState)(m$),[a,n]=(0,Lf.useState)(null),[i,l]=(0,Lf.useState)(null),{saveEntityRecord:s,editEntityRecord:c}=(0,f$.useDispatch)(d$.store),u=s$(e);return{create:(0,Lf.useCallback)(async(p=null,d=[],f)=>{if(p&&typeof p!="string")throw l("Invalid title supplied when creating Navigation Menu."),o(X5),new Error("Value of supplied title argument was not a string.");o(u$),n(null),l(null),p||(p=await u().catch(v=>{throw l(v?.message),o(X5),new Error("Failed to create title when saving new Navigation Menu.",{cause:v})}));let g={title:p,content:(0,p$.serialize)(d),status:f};return s("postType","wp_navigation",g).then(v=>(n(v),o(c$),f!=="publish"&&c("postType","wp_navigation",v.id,{status:"publish"}),v)).catch(v=>{throw l(v?.message),o(X5),new Error("Unable to save new Navigation Menu",{cause:v})})},[s,c,u]),status:t,value:a,error:i,isIdle:t===m$,isPending:t===u$,isSuccess:t===c$,isError:t===X5}}var h$=r(z()),v$=r(S()),Rde=[];function b$(e){return(0,h$.useSelect)(t=>{let{getBlock:o,getBlocks:a,hasSelectedInnerBlock:n}=t(v$.store),i=o(e).innerBlocks,l=!!i?.length,s=l?Rde:a(e);return{innerBlocks:l?i:s,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:i,controlledInnerBlocks:s,isInnerBlockSelected:n(e,!0)}},[e])}function oP(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function rP(e,t,o){if(!e)return;t(oP(e).color);let a=e,n=oP(a).backgroundColor;for(;n==="rgba(0, 0, 0, 0)"&&a.parentNode&&a.parentNode.nodeType===a.parentNode.ELEMENT_NODE;)a=a.parentNode,n=oP(a).backgroundColor;o(n)}function bp(e,t){let{textColor:o,customTextColor:a,backgroundColor:n,customBackgroundColor:i,overlayTextColor:l,customOverlayTextColor:s,overlayBackgroundColor:c,customOverlayBackgroundColor:u,style:m}=e,p={};return t&&s?p.customTextColor=s:t&&l?p.textColor=l:a?p.customTextColor=a:o?p.textColor=o:m?.color?.text&&(p.customTextColor=m.color.text),t&&u?p.customBackgroundColor=u:t&&c?p.backgroundColor=c:i?p.customBackgroundColor=i:n?p.backgroundColor=n:m?.color?.background&&(p.customTextColor=m.color.background),p}function J5(e){return{className:k("wp-block-navigation__submenu-container",{"has-text-color":!!(e.textColor||e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!!(e.backgroundColor||e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var y$=r(ko()),ek=r(L()),_$=r(B()),x$=r(h()),Hde=({className:e="",disabled:t,isMenuItem:o=!1})=>{let a=ek.Button;return o&&(a=ek.MenuItem),(0,x$.jsx)(a,{variant:"link",disabled:t,className:e,href:(0,y$.addQueryArgs)("edit.php",{post_type:"wp_navigation"}),children:(0,_$.__)("Manage menus")})},k$=Hde;var yp=r(S()),wu=r(L()),pk=r(z()),pc=r(B());var w$=r(S()),ok=r(L()),C$=r(B()),rk=r(F()),tk=r(h());function zde({onCreateNew:e,isNotice:t=!1}){let[o,a]=(0,rk.useState)(!1),n=()=>{a(!0),e()},i=(0,rk.createInterpolateElement)((0,C$.__)("Navigation Menu has been deleted or is unavailable. <button>Create a new Menu?</button>"),{button:(0,tk.jsx)(ok.Button,{__next40pxDefaultSize:!0,onClick:n,variant:"link",disabled:o,accessibleWhenDisabled:!0})});return t?(0,tk.jsx)(ok.Notice,{status:"warning",isDismissible:!1,children:i}):(0,tk.jsx)(w$.Warning,{children:i})}var ak=zde;var aP=r(U());var ms=r(L()),m1=r(z()),xu=r(B()),Rf=r(S());var Yn=r(h()),Ade={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},Vde=["core/navigation-link","core/navigation-submenu"];function Fde({block:e,onClose:t,expandedState:o,expand:a,setInsertedBlock:n}){let{insertBlock:i,replaceBlock:l,replaceInnerBlocks:s}=(0,m1.useDispatch)(Rf.store),c=e.clientId,u=!Vde.includes(e.name);return(0,Yn.jsx)(ms.MenuItem,{icon:pm,disabled:u,onClick:()=>{let p=(0,aP.createBlock)(qn.name,qn.attributes);if(e.name==="core/navigation-submenu")i(p,e.innerBlocks.length,c,!1);else{let d=(0,aP.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(c,d),s(d.clientId,[p],!1)}n(p),o[e.clientId]||a(e.clientId),t()},children:(0,xu.__)("Add submenu link")})}function S$(e){let{block:t}=e,{clientId:o}=t,{moveBlocksDown:a,moveBlocksUp:n,removeBlocks:i}=(0,m1.useDispatch)(Rf.store),l=(0,xu.sprintf)((0,xu.__)("Remove %s"),(0,Rf.BlockTitle)({clientId:o,maximumLength:25})),s=(0,m1.useSelect)(c=>{let{getBlockRootClientId:u}=c(Rf.store);return u(o)},[o]);return(0,Yn.jsx)(ms.DropdownMenu,{icon:Ih,label:(0,xu.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Ade,noIcons:!0,...e,children:({onClose:c})=>(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsxs)(ms.MenuGroup,{children:[(0,Yn.jsx)(ms.MenuItem,{icon:A6,onClick:()=>{n([o],s),c()},children:(0,xu.__)("Move up")}),(0,Yn.jsx)(ms.MenuItem,{icon:uh,onClick:()=>{a([o],s),c()},children:(0,xu.__)("Move down")}),(0,Yn.jsx)(Fde,{block:t,onClose:c,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})]}),(0,Yn.jsx)(ms.MenuGroup,{children:(0,Yn.jsx)(ms.MenuItem,{onClick:()=>{i([o],!1),c()},children:l})})]})})}var Zo=r(L()),Mt=r(B()),cc=r(F()),P$=r(xe()),N$=r(ko()),I$=r(Qs());var D$=r(z()),E$=r(S());var nP=r(B$()),p1=r(ko()),jde=(e,t)=>{if(!e||!t)return!1;let o=g=>g?g.replace(/\/+$/,""):"",a=(g,v=null)=>{try{let b=v||(typeof window<"u"?window.location.origin:"https://wordpress.org");return new URL(g,b)}catch{return null}},n=a(e);if(!n)return!0;let i=a(t,e);if(!i)return!0;let l=n.hostname,s=i.hostname,c=o((0,p1.getPath)(n.toString())),u=o((0,p1.getPath)(i.toString()));if(l!==s||c!==u)return!0;let m=n.searchParams.get("p"),p=i.searchParams.get("p");if(m&&p&&m!==p)return!0;let d=n.searchParams.get("page_id"),f=i.searchParams.get("page_id");return!!(d&&f&&d!==f||m&&f||d&&p)},sc=(e={},t,o={})=>{let{label:a="",kind:n="",type:i=""}=o,{title:l="",label:s="",url:c,opensInNewTab:u,id:m,kind:p=n,type:d=i}=e,f=l||s,g=f.replace(/http(s?):\/\//gi,""),v=c?.replace(/http(s?):\/\//gi,"")??"",y=f&&f!==a&&g!==v?(0,nP.escapeHTML)(f):a||(0,nP.escapeHTML)(v),_=d==="post_tag"?"tag":d.replace("-","_"),x=["post","page","tag","category"].indexOf(_)>-1,C=!p&&!x||p==="custom"?"custom":p,T={...c!==void 0?{url:c&&encodeURI((0,p1.safeDecodeURI)(c))}:{},...y&&{label:y},...u!==void 0&&{opensInNewTab:u},...C&&{kind:C},..._&&_!=="URL"&&{type:_}};c&&!m&&o.id?jde(o.url,c)&&(T.id=void 0,T.kind="custom",T.type="custom"):m&&Number.isInteger(m)?T.id=m:o.id&&(T.kind=C,T.type=_),t(T);let N="id"in T?T.id:o.id,P="kind"in T?T.kind:o.kind;return{isEntityLink:!!N&&P!=="custom",attributes:T}};var gr=r(h());function M$(e,t){if(t==="post-type")switch(e){case"post":return(0,Mt.__)("post");case"page":return(0,Mt.__)("page");default:return e||(0,Mt.__)("post")}if(t==="taxonomy")switch(e){case"category":return(0,Mt.__)("category");case"tag":return(0,Mt.__)("tag");default:return e||(0,Mt.__)("term")}return e||(0,Mt.__)("item")}function Hf({attributes:e,setAttributes:t,clientId:o}){let{label:a,url:n,description:i,rel:l,opensInNewTab:s}=e,c=(0,cc.useRef)(n),u=G(),m=(0,cc.useRef)(),p=(0,cc.useRef)(!1),d=(0,P$.useInstanceId)(Hf,"link-input"),f=`${d}__help`,[g,v]=(0,cc.useState)(n);(0,cc.useEffect)(()=>{v(n),c.current=n},[n]);let{hasUrlBinding:b,isBoundEntityAvailable:y,clearBinding:_}=Qn({clientId:o,attributes:e}),{updateBlockAttributes:x}=(0,D$.useDispatch)(E$.store),w=()=>{_(),x(o,{url:c.current,id:void 0})};return(0,cc.useEffect)(()=>{!b&&p.current&&m.current?.select(),p.current=!1},[b]),(0,gr.jsxs)(Zo.__experimentalToolsPanel,{label:(0,Mt.__)("Settings"),resetAll:()=>{t({label:"",url:"",description:"",rel:"",opensInNewTab:!1})},dropdownMenuProps:u,children:[(0,gr.jsx)(Zo.__experimentalToolsPanelItem,{hasValue:()=>!!a,label:(0,Mt.__)("Text"),onDeselect:()=>t({label:""}),isShownByDefault:!0,children:(0,gr.jsx)(Zo.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Mt.__)("Text"),value:a?(0,I$.__unstableStripHTML)(a):"",onChange:C=>{t({label:C})},autoComplete:"off"})}),(0,gr.jsx)(Zo.__experimentalToolsPanelItem,{hasValue:()=>!!n,label:(0,Mt.__)("Link"),onDeselect:()=>t({url:""}),isShownByDefault:!0,children:(0,gr.jsx)(Zo.__experimentalInputControl,{ref:m,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,id:d,label:(0,Mt.__)("Link"),value:b&&!y?"":g?(0,N$.safeDecodeURI)(g):"",autoComplete:"off",type:"url",disabled:b,"aria-invalid":b&&!y?"true":void 0,"aria-describedby":f,className:b&&!y?"navigation-link-control__input-with-error-suffix":void 0,onChange:C=>{y||v(C)},onFocus:()=>{y||(c.current=n)},onBlur:()=>{if(y)return;let C=g||c.current;v(C),sc({url:C},t,{...e,url:c.current})},help:b&&!y?(0,gr.jsx)(Ode,{id:f,type:e.type,kind:e.kind}):y&&(0,gr.jsx)(L$,{type:e.type,kind:e.kind}),suffix:b&&(0,gr.jsx)(Zo.Button,{icon:bm,onClick:()=>{w(),p.current=!0},"aria-describedby":f,showTooltip:!0,label:(0,Mt.__)("Unsync and edit"),__next40pxDefaultSize:!0,className:b&&!y?"navigation-link-control__error-suffix-button":void 0})})}),(0,gr.jsx)(Zo.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Mt.__)("Open in new tab"),onDeselect:()=>t({opensInNewTab:!1}),isShownByDefault:!0,children:(0,gr.jsx)(Zo.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,Mt.__)("Open in new tab"),checked:s,onChange:C=>t({opensInNewTab:C})})}),(0,gr.jsx)(Zo.__experimentalToolsPanelItem,{hasValue:()=>!!i,label:(0,Mt.__)("Description"),onDeselect:()=>t({description:""}),isShownByDefault:!0,children:(0,gr.jsx)(Zo.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,Mt.__)("Description"),value:i||"",onChange:C=>{t({description:C})},help:(0,Mt.__)("The description will be displayed in the menu if the current theme supports it.")})}),(0,gr.jsx)(Zo.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,Mt.__)("Rel attribute"),onDeselect:()=>t({rel:""}),isShownByDefault:!0,children:(0,gr.jsx)(Zo.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Mt.__)("Rel attribute"),value:l||"",onChange:C=>{t({rel:C})},autoComplete:"off",help:(0,Mt.__)("The relationship of the linked URL as space-separated link types.")})})]})}function L$({type:e,kind:t}){let o=M$(e,t);return(0,Mt.sprintf)((0,Mt.__)("Synced with the selected %s."),o)}function nk({type:e,kind:t}){let o=M$(e,t);return(0,Mt.sprintf)((0,Mt.__)("Synced %s is missing. Please update or remove this link."),o)}function Ode({id:e,type:t,kind:o}){return(0,gr.jsx)("span",{id:e,className:"navigation-link-control__error-text",children:(0,gr.jsx)(nk,{type:t,kind:o})})}var V$=r(Qs()),uc=r(L()),g1=r(B()),mk=r(S()),Ia=r(F()),F$=r(Y());var mP=r(xe());var sn=r(L()),Xn=r(B()),f1=r(z()),ck=r(Y()),R$=r(No()),lP=r(jo()),sP=r(F());var ik=r(L()),lk=r(B());var d1=r(xe()),ku=r(h());function Ude({className:e,onBack:t}){return(0,ku.jsx)(ik.Button,{className:e,icon:(0,lk.isRTL)()?H6:L6,onClick:o=>{o.preventDefault(),t()},size:"small",children:(0,lk.__)("Back")})}function iP({className:e,title:t,description:o,onBack:a,children:n}){let i=(0,d1.useInstanceId)(iP,"link-ui-dialog-title"),l=(0,d1.useInstanceId)(iP,"link-ui-dialog-description"),s=(0,d1.useFocusOnMount)("firstElement"),c=`${e}__back`;return(0,ku.jsxs)("div",{className:e,role:"dialog","aria-labelledby":i,"aria-describedby":l,ref:s,children:[(0,ku.jsxs)(ik.VisuallyHidden,{children:[(0,ku.jsx)("h2",{id:i,children:t}),(0,ku.jsx)("p",{id:l,children:o})]}),(0,ku.jsx)(Ude,{className:c,onBack:a}),n]})}var sk=iP;var wi=r(h());function H$({postType:e,onBack:t,onPageCreated:o,initialTitle:a=""}){let[n,i]=(0,sP.useState)(a),[l,s]=(0,sP.useState)(!1),c=n.trim().length>0,{lastError:u,isSaving:m}=(0,f1.useSelect)(b=>({lastError:b(ck.store).getLastEntitySaveError("postType",e),isSaving:b(ck.store).isSavingEntityRecord("postType",e)}),[e]),{saveEntityRecord:p}=(0,f1.useDispatch)(ck.store),{createSuccessNotice:d,createErrorNotice:f}=(0,f1.useDispatch)(R$.store);async function g(b){if(b.preventDefault(),!(m||!c))try{let y=await p("postType",e,{title:n,status:l?"publish":"draft"},{throwOnError:!0});if(y){let _={id:y.id,type:e,title:(0,lP.decodeEntities)(y.title.rendered),url:y.link,kind:"post-type"};d((0,Xn.sprintf)((0,Xn.__)("%s page created successfully."),(0,lP.decodeEntities)(y.title.rendered)),{type:"snackbar",id:"page-created-success"}),o(_)}}catch{f((0,Xn.__)("Failed to create page. Please try again."),{type:"snackbar",id:"page-created-error"})}}let v=m||!c;return(0,wi.jsx)(sk,{className:"link-ui-page-creator",title:(0,Xn.__)("Create page"),description:(0,Xn.__)("Create a new page to add to your Navigation."),onBack:t,children:(0,wi.jsx)(sn.__experimentalVStack,{className:"link-ui-page-creator__inner",spacing:4,children:(0,wi.jsx)("form",{onSubmit:g,children:(0,wi.jsxs)(sn.__experimentalVStack,{spacing:4,children:[(0,wi.jsx)(sn.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Xn.__)("Title"),onChange:i,placeholder:(0,Xn.__)("No title"),value:n}),(0,wi.jsx)(sn.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,Xn.__)("Publish immediately"),help:(0,Xn.__)("If unchecked, the page will be created as a draft."),checked:l,onChange:s}),u&&(0,wi.jsx)(sn.Notice,{status:"error",isDismissible:!1,children:u.message}),(0,wi.jsxs)(sn.__experimentalHStack,{spacing:2,justify:"flex-end",children:[(0,wi.jsx)(sn.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,disabled:m,accessibleWhenDisabled:!0,children:(0,Xn.__)("Cancel")}),(0,wi.jsx)(sn.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:m,"aria-disabled":v,children:(0,Xn.__)("Create page")})]})]})})})})}var cP=r(B()),z$=r(z()),uk=r(S());var uP=r(h()),{PrivateQuickInserter:Gde}=Q(uk.privateApis);function $de({clientId:e,onBack:t,onBlockInsert:o}){let{rootBlockClientId:a}=(0,z$.useSelect)(n=>{let{getBlockRootClientId:i}=n(uk.store);return{rootBlockClientId:i(e)}},[e]);return e?(0,uP.jsx)(sk,{className:"link-ui-block-inserter",title:(0,cP.__)("Add block"),description:(0,cP.__)("Choose a block to add to your Navigation."),onBack:t,children:(0,uP.jsx)(Gde,{rootClientId:a,clientId:e,isAppender:!1,prioritizePatterns:!1,selectBlockOnInsert:!o,onSelect:o||void 0,hasSearch:!1})}):null}var A$=$de;var cn=r(h());function Wde(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return t==="taxonomy"?{type:"term",subtype:e}:t==="post-type"?{type:"post",subtype:e}:{initialSuggestionsSearchOptions:{type:"post",subtype:"page",perPage:20}}}}function qde(e,t){let{label:o,url:a,opensInNewTab:n,type:i,kind:l,id:s}=e.link,{clientId:c}=e,u=i||"page",[m,p]=(0,Ia.useState)(!1),[d,f]=(0,Ia.useState)(!1),[g,v]=(0,Ia.useState)(!1),[b,y]=(0,Ia.useState)(!1),_=(0,F$.useResourcePermissions)({kind:"postType",name:u}),{isBoundEntityAvailable:x}=Qn({clientId:c,attributes:e.link}),w=(0,Ia.useMemo)(()=>({url:a,opensInNewTab:n,title:o&&(0,V$.__unstableStripHTML)(o),kind:l,type:i,id:s}),[o,n,a,l,i,s]),C=M=>{e.onChange(M),f(!1)},T=(0,mP.useInstanceId)(mc,"link-ui-link-control__title"),N=(0,mP.useInstanceId)(mc,"link-ui-link-control__description"),P=(0,mk.useBlockEditingMode)();return(0,cn.jsxs)(uc.Popover,{ref:t,placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0,children:[!m&&!d&&(0,cn.jsxs)("div",{role:"dialog","aria-labelledby":T,"aria-describedby":N,children:[(0,cn.jsxs)(uc.VisuallyHidden,{children:[(0,cn.jsx)("h2",{id:T,children:(0,g1.__)("Add link")}),(0,cn.jsx)("p",{id:N,children:(0,g1.__)("Search for and add a link to your Navigation.")})]}),(0,cn.jsx)(mk.LinkControl,{hasTextControl:!0,hasRichPreviews:!0,value:w,showInitialSuggestions:!0,withCreateSuggestion:!1,noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:Wde(i,l),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,handleEntities:x,renderControlBottom:()=>w?.url?.length?null:(0,cn.jsx)(Zde,{focusAddBlockButton:g,focusAddPageButton:b,setAddingBlock:()=>{p(!0),v(!1)},setAddingPage:()=>{f(!0),y(!1)},canAddPage:_?.canCreate&&i==="page",canAddBlock:P==="default"})})]}),m&&(0,cn.jsx)(A$,{clientId:e.clientId,onBack:()=>{p(!1),v(!0),y(!1)},onBlockInsert:e?.onBlockInsert}),d&&(0,cn.jsx)(H$,{postType:u,onBack:()=>{f(!1),y(!0),v(!1)},onPageCreated:C,initialTitle:w?.url||""})]})}var mc=(0,Ia.forwardRef)(qde),Zde=({setAddingBlock:e,setAddingPage:t,focusAddBlockButton:o,focusAddPageButton:a,canAddPage:n,canAddBlock:i})=>{let l="listbox",s=(0,Ia.useRef)(),c=(0,Ia.useRef)();return(0,Ia.useEffect)(()=>{o&&s.current?.focus()},[o]),(0,Ia.useEffect)(()=>{a&&c.current?.focus()},[a]),!n&&!i?null:(0,cn.jsxs)(uc.__experimentalVStack,{spacing:0,className:"link-ui-tools",children:[n&&(0,cn.jsx)(uc.Button,{__next40pxDefaultSize:!0,ref:c,icon:Bb,onClick:u=>{u.preventDefault(),t(!0)},"aria-haspopup":l,children:(0,g1.__)("Create page")}),i&&(0,cn.jsx)(uc.Button,{__next40pxDefaultSize:!0,ref:s,icon:Bb,onClick:u=>{u.preventDefault(),e(!0)},"aria-haspopup":l,children:(0,g1.__)("Add block")})]})};var j$=r(F()),O$=r(z()),U$=r(S());function pP({clientId:e,attributes:t,setAttributes:o}){let{updateBlockAttributes:a}=(0,O$.useDispatch)(U$.store),{hasUrlBinding:n,createBinding:i,clearBinding:l}=Qn({clientId:e,attributes:t});return(0,j$.useCallback)(s=>{if(!s)return;let c={url:s.url,kind:s.kind,type:s.type,id:s.id};if((!t.url||!t.label)&&(c.title=s.title),!s.id&&n)l(),a(e,{url:s.url,kind:"custom",type:"custom",id:void 0});else{let{isEntityLink:m,attributes:p}=sc(c,o,t);m?i(p):l()}},[t,e,n,i,l,o,a])}var un=r(h()),Kde=(0,pc.__)("Switch to '%s'"),Qde=["core/navigation-link","core/navigation-submenu"],{PrivateListView:Yde}=Q(yp.privateApis);function Xde({block:e,insertedBlock:t,setInsertedBlock:o}){let{updateBlockAttributes:a,removeBlock:n}=(0,pk.useDispatch)(yp.store),i=Qde?.includes(t?.name),l=t?.clientId===e.clientId,s=i&&l,{createBinding:c,clearBinding:u}=Qn({clientId:t?.clientId,attributes:t?.attributes||{}});if(!s)return null;let m=()=>{!t?.attributes?.url&&t?.clientId&&n(t.clientId,!1),o(null)},p=f=>g=>{f&&a(f,g)},d=f=>{t?.clientId&&f&&n(t.clientId,!1),o(f)};return(0,un.jsx)(mc,{clientId:t?.clientId,link:t?.attributes,onBlockInsert:d,onClose:()=>{m()},onChange:f=>{let{isEntityLink:g,attributes:v}=sc(f,p(t?.clientId),t?.attributes);g?c(v):u(),o(null)}})}var Jde=({clientId:e,currentMenuId:t,isLoading:o,isNavigationMenuMissing:a,onCreateNew:n})=>{let i=(0,pk.useSelect)(c=>!!c(yp.store).getBlockCount(e),[e]),{navigationMenu:l}=_f(t);if(t&&a)return(0,un.jsx)(ak,{onCreateNew:n,isNotice:!0});if(o)return(0,un.jsx)(wu.Spinner,{});let s=l?(0,pc.sprintf)((0,pc.__)("Structure for Navigation Menu: %s"),l?.title||(0,pc.__)("Untitled menu")):(0,pc.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,un.jsxs)("div",{className:"wp-block-navigation__menu-inspector-controls",children:[!i&&(0,un.jsx)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message",children:(0,pc.__)("This Navigation Menu is empty.")}),(0,un.jsx)(Yde,{rootClientId:e,isExpanded:!0,description:s,showAppender:!0,blockSettingsMenu:S$,additionalBlockContent:Xde})]})},efe=e=>{let{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,currentMenuId:a=null,onCreateNew:n,onSelectClassicMenu:i,onSelectNavigationMenu:l,isManageMenusButtonDisabled:s,blockEditingMode:c}=e;return(0,un.jsx)(yp.InspectorControls,{group:"list",children:(0,un.jsxs)(wu.PanelBody,{title:null,children:[(0,un.jsxs)(wu.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header",children:[(0,un.jsx)(wu.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2,children:(0,pc.__)("Menu")}),c==="default"&&(0,un.jsx)(H5,{currentMenuId:a,onSelectClassicMenu:i,onSelectNavigationMenu:l,onCreateNew:n,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:o,actionLabel:Kde,isManageMenusButtonDisabled:s})]}),(0,un.jsx)(Jde,{...e})]})})},dk=efe;var G$=r(L()),dP=r(h());function fk({id:e,children:t}){return(0,dP.jsx)(G$.VisuallyHidden,{children:(0,dP.jsx)("div",{id:e,className:"wp-block-navigation__description",children:t})})}var $$=r(Y()),gk=r(B());var W$=r(h());function q$({id:e}){let[t]=(0,$$.useEntityProp)("postType","wp_navigation","title"),o=(0,gk.sprintf)((0,gk.__)('Navigation Menu: "%s"'),t);return(0,W$.jsx)(fk,{id:e,children:o})}var me=r(h());function tfe({clientId:e}){let{insertBlock:t}=(0,Cu.useDispatch)(Xe.store),{getBlockCount:o}=(0,Cu.useSelect)(Xe.store),a=(0,so.useCallback)(()=>{let n=o(e),i=(0,Z$.createBlock)(qn.name,{kind:qn.attributes.kind,type:qn.attributes.type});t(i,n,e)},[e,t,o]);return(0,me.jsx)(Xe.BlockControls,{children:(0,me.jsx)(Er.ToolbarGroup,{children:(0,me.jsx)(Er.ToolbarButton,{name:"add-page",icon:Fs,onClick:a,children:(0,$t.__)("Add page")})})})}function ofe({textColor:e,setTextColor:t,backgroundColor:o,setBackgroundColor:a,overlayTextColor:n,setOverlayTextColor:i,overlayBackgroundColor:l,setOverlayBackgroundColor:s,clientId:c,navRef:u}){let[m,p]=(0,so.useState)(),[d,f]=(0,so.useState)(),[g,v]=(0,so.useState)(),[b,y]=(0,so.useState)(),_=so.Platform.OS==="web";(0,so.useEffect)(()=>{if(!_)return;rP(u.current,f,p);let w=u.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');w&&(n.color||l.color)&&rP(w,y,v)},[_,n.color,l.color,u]);let x=(0,Xe.__experimentalUseMultipleOriginColorsAndGradients)();return x.hasColorsOrGradients?(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Xe.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:e.color,label:(0,$t.__)("Text"),onColorChange:t,resetAllFilter:()=>t(),clearable:!0,enableAlpha:!0},{colorValue:o.color,label:(0,$t.__)("Background"),onColorChange:a,resetAllFilter:()=>a(),clearable:!0,enableAlpha:!0},{colorValue:n.color,label:(0,$t.__)("Submenu & overlay text"),onColorChange:i,resetAllFilter:()=>i(),clearable:!0,enableAlpha:!0},{colorValue:l.color,label:(0,$t.__)("Submenu & overlay background"),onColorChange:s,resetAllFilter:()=>s(),clearable:!0,enableAlpha:!0}],panelId:c,...x,gradients:[],disableCustomGradients:!0}),_&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Xe.ContrastChecker,{backgroundColor:m,textColor:d}),(0,me.jsx)(Xe.ContrastChecker,{backgroundColor:g,textColor:b})]})]}):null}function rfe({attributes:e,setAttributes:t,clientId:o,isSelected:a,className:n,backgroundColor:i,setBackgroundColor:l,textColor:s,setTextColor:c,overlayBackgroundColor:u,setOverlayBackgroundColor:m,overlayTextColor:p,setOverlayTextColor:d,hasSubmenuIndicatorSetting:f=!0,customPlaceholder:g=null,__unstableLayoutClassNames:v}){let{openSubmenusOnClick:b,overlayMenu:y,overlay:_,showSubmenuIcon:x,templateLock:w,layout:{justifyContent:C,orientation:T="horizontal",flexWrap:N="wrap"}={},hasIcon:P,icon:M="handle"}=e,R=e.ref,H=(0,so.useCallback)(co=>{t({ref:co})},[t]),O=`navigationMenu/${R}`,A=(0,Xe.useHasRecursion)(O),I=(0,Xe.useBlockEditingMode)(),{onNavigateToEntityRecord:V}=(0,Cu.useSelect)(co=>{let{getSettings:eh}=co(Xe.store);return{onNavigateToEntityRecord:eh()?.onNavigateToEntityRecord}},[]),W=typeof window<"u"&&window.__experimentalNavigationOverlays===!0,{menus:j}=xf(),[K,Z]=F5({name:"block-library/core/navigation/status"}),[te,X]=F5({name:"block-library/core/navigation/classic-menu-conversion"}),[J,ee]=F5({name:"block-library/core/navigation/permissions/update"}),{create:ne,status:oe,error:ce,value:pe,isPending:Ne,isSuccess:Le,isError:ie}=g$(o),Ee=async()=>{await ne("")},{hasUncontrolledInnerBlocks:de,uncontrolledInnerBlocks:re,isInnerBlockSelected:se,innerBlocks:we}=b$(o),fe=!!we.find(co=>co.name==="core/navigation-submenu"),{replaceInnerBlocks:mt,selectBlock:kt,__unstableMarkNextChangeAsNotPersistent:bt}=(0,Cu.useDispatch)(Xe.store),[_o,Ye]=(0,so.useState)(!1),[xo,si]=(0,so.useState)(!1),{hasResolvedNavigationMenus:q,isNavigationMenuResolved:Be,isNavigationMenuMissing:He,canUserUpdateNavigationMenu:Ve,hasResolvedCanUserUpdateNavigationMenu:Fe,canUserDeleteNavigationMenu:Yt,hasResolvedCanUserDeleteNavigationMenu:or,canUserCreateNavigationMenus:Pt,isResolvingCanUserCreateNavigationMenus:qe,hasResolvedCanUserCreateNavigationMenus:rr}=_f(R),$r=q&&He,{convert:ja,status:ma,error:Bc}=e$(ne),Ml=ma===Q5,Ll=(0,so.useCallback)((co,eh={focusNavigationBlock:!1})=>{let{focusNavigationBlock:th}=eh;H(co),th&&kt(o)},[kt,o,H]),Vi=!He&&Be,As=de&&!Vi,{getNavigationFallbackId:nd}=Q((0,Cu.useSelect)(vk.store)),Pc=R||As?null:nd();(0,so.useEffect)(()=>{R||As||!Pc||(bt(),H(Pc))},[R,H,As,Pc,bt]);let Te=(0,so.useRef)(),pt="nav",Fo=!R&&!Ne&&!Ml&&q&&j?.length===0&&!de,Oa=!q||Ne||Ml||!!(R&&!Vi&&!Ml),Rl=e.style?.typography?.textDecoration,ci=(0,Cu.useSelect)(co=>co(Xe.store).__unstableHasActiveBlockOverlayActive(o),[o]),Hl=y!=="never",Tn=(0,Xe.useBlockProps)({ref:Te,className:k(n,{"items-justified-right":C==="right","items-justified-space-between":C==="space-between","items-justified-left":C==="left","items-justified-center":C==="center","is-vertical":T==="vertical","no-wrap":N==="nowrap","is-responsive":Hl,"has-text-color":!!s.color||!!s?.class,[(0,Xe.getColorClassName)("color",s?.slug)]:!!s?.slug,"has-background":!!i.color||i.class,[(0,Xe.getColorClassName)("background-color",i?.slug)]:!!i?.slug,[`has-text-decoration-${Rl}`]:Rl,"block-editor-block-content-overlay":ci},v),style:{color:!s?.slug&&s?.color,backgroundColor:!i?.slug&&i?.color}}),em=async co=>ja(co.id,co.name,"draft"),tm=co=>{Ll(co)};(0,so.useEffect)(()=>{Z(),Ne&&(0,hk.speak)((0,$t.__)("Creating Navigation Menu.")),Le&&(Ll(pe?.id,{focusNavigationBlock:!0}),K((0,$t.__)("Navigation Menu successfully created."))),ie&&K((0,$t.__)("Failed to create Navigation Menu."))},[oe,ce,pe?.id,ie,Le,Ne,Ll,Z,K]),(0,so.useEffect)(()=>{X(),ma===Q5&&(0,hk.speak)((0,$t.__)("Classic menu importing.")),ma===tP&&(te((0,$t.__)("Classic menu imported successfully.")),Ll(pe?.id,{focusNavigationBlock:!0})),ma===Z5&&te((0,$t.__)("Classic menu import failed."))},[ma,Bc,X,te,pe?.id,Ll]),(0,so.useEffect)(()=>{!a&&!se&&ee(),(a||se)&&(R&&!$r&&Fe&&!Ve&&J((0,$t.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),!R&&rr&&!Pt&&J((0,$t.__)("You do not have permission to create Navigation Menus.")))},[a,se,Ve,Fe,Pt,rr,R,ee,J,$r]);let H2=Pt||Ve,z2=k("wp-block-navigation__overlay-menu-preview",{open:xo}),Nc=!x&&!b?(0,$t.__)('The current menu options offer reduced accessibility for users and are not recommended. Enabling either "Open on Click" or "Show arrow" offers enhanced accessibility by allowing keyboard users to browse submenus selectively.'):"",Yg=(0,so.useRef)(!0);(0,so.useEffect)(()=>{!Yg.current&&Nc&&(0,hk.speak)(Nc),Yg.current=!1},[Nc]);let A2=(0,K$.useInstanceId)(UG,"overlay-menu-preview"),Xg=G(),Jg=(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(Xe.InspectorControls,{children:f&&(0,me.jsxs)(Er.__experimentalToolsPanel,{label:(0,$t.__)("Display"),resetAll:()=>{t({showSubmenuIcon:!0,openSubmenusOnClick:!1,overlayMenu:"mobile",hasIcon:!0,icon:"handle"})},dropdownMenuProps:Xg,children:[!W&&(0,me.jsxs)(me.Fragment,{children:[Hl&&(0,me.jsx)(G5,{isResponsive:Hl,overlayMenuPreview:xo,setOverlayMenuPreview:si,hasIcon:P,icon:M,setAttributes:t,overlayMenuPreviewClasses:z2,overlayMenuPreviewId:A2,containerStyle:{gridColumn:"span 2"}}),(0,me.jsx)(Er.__experimentalToolsPanelItem,{hasValue:()=>y!=="mobile",label:(0,$t.__)("Overlay Visibility"),onDeselect:()=>t({overlayMenu:"mobile"}),isShownByDefault:!0,children:(0,me.jsx)(j5,{overlayMenu:y,setAttributes:t})})]}),fe&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("h3",{className:"wp-block-navigation__submenu-header",children:(0,$t.__)("Submenus")}),(0,me.jsx)(Er.__experimentalToolsPanelItem,{hasValue:()=>b,label:(0,$t.__)("Open on click"),onDeselect:()=>t({openSubmenusOnClick:!1,showSubmenuIcon:!0}),isShownByDefault:!0,children:(0,me.jsx)(Er.ToggleControl,{__nextHasNoMarginBottom:!0,checked:b,onChange:co=>{t({openSubmenusOnClick:co,...co&&{showSubmenuIcon:!0}})},label:(0,$t.__)("Open on click")})}),(0,me.jsx)(Er.__experimentalToolsPanelItem,{hasValue:()=>!x,label:(0,$t.__)("Show arrow"),onDeselect:()=>t({showSubmenuIcon:!0}),isDisabled:e.openSubmenusOnClick,isShownByDefault:!0,children:(0,me.jsx)(Er.ToggleControl,{__nextHasNoMarginBottom:!0,checked:x,onChange:co=>{t({showSubmenuIcon:co})},disabled:e.openSubmenusOnClick,label:(0,$t.__)("Show arrow")})}),Nc&&(0,me.jsx)(Er.Notice,{spokenMessage:null,status:"warning",isDismissible:!1,className:"wp-block-navigation__submenu-accessibility-notice",children:Nc})]})]})}),W&&(0,me.jsx)(Xe.InspectorControls,{children:(0,me.jsx)(ZG,{overlayMenu:y,overlay:_,setAttributes:t,onNavigateToEntityRecord:V,overlayMenuPreview:xo,setOverlayMenuPreview:si,hasIcon:P,icon:M,overlayMenuPreviewClasses:z2,overlayMenuPreviewId:A2,isResponsive:Hl})}),(0,me.jsx)(Xe.InspectorControls,{group:"color",children:(0,me.jsx)(ofe,{textColor:s,setTextColor:c,backgroundColor:i,setBackgroundColor:l,overlayTextColor:p,setOverlayTextColor:d,overlayBackgroundColor:u,setOverlayBackgroundColor:m,clientId:o,navRef:Te})})]}),Ic=`${o}-desc`,om=y==="always",id=!H2||!q;if(As&&!Ne)return(0,me.jsxs)(pt,{...Tn,"aria-describedby":Fo?void 0:Ic,children:[(0,me.jsx)(fk,{id:Ic,children:(0,$t.__)("Unsaved Navigation Menu.")}),(0,me.jsx)(dk,{clientId:o,createNavigationMenuIsSuccess:Le,createNavigationMenuIsError:ie,currentMenuId:R,isNavigationMenuMissing:He,isManageMenusButtonDisabled:id,onCreateNew:Ee,onSelectClassicMenu:em,onSelectNavigationMenu:tm,isLoading:Oa,blockEditingMode:I}),I==="default"&&Jg,(0,me.jsx)(KB,{id:o,onToggle:Ye,isOpen:_o,hasIcon:P,icon:M,isResponsive:Hl,isHiddenByDefault:om,overlayBackgroundColor:u,overlayTextColor:p,overlay:_,onNavigateToEntityRecord:V,children:(0,me.jsx)(zG,{createNavigationMenu:ne,blocks:re,hasSelection:a||se})})]});if(R&&He)return(0,me.jsxs)(pt,{...Tn,children:[(0,me.jsx)(dk,{clientId:o,createNavigationMenuIsSuccess:Le,createNavigationMenuIsError:ie,currentMenuId:R,isNavigationMenuMissing:He,isManageMenusButtonDisabled:id,onCreateNew:Ee,onSelectClassicMenu:em,onSelectNavigationMenu:tm,isLoading:Oa,blockEditingMode:I}),(0,me.jsx)(ak,{onCreateNew:Ee})]});if(Vi&&A)return(0,me.jsx)("div",{...Tn,children:(0,me.jsx)(Xe.Warning,{children:(0,$t.__)("Block cannot be rendered inside itself.")})});let V2=g||xG;return Fo&&g?(0,me.jsx)(pt,{...Tn,children:(0,me.jsx)(V2,{isSelected:a,currentMenuId:R,clientId:o,canUserCreateNavigationMenus:Pt,isResolvingCanUserCreateNavigationMenus:qe,onSelectNavigationMenu:tm,onSelectClassicMenu:em,onCreateEmpty:Ee})}):(0,me.jsx)(vk.EntityProvider,{kind:"postType",type:"wp_navigation",id:R,children:(0,me.jsxs)(Xe.RecursionProvider,{uniqueId:O,children:[(0,me.jsx)(dk,{clientId:o,createNavigationMenuIsSuccess:Le,createNavigationMenuIsError:ie,currentMenuId:R,isNavigationMenuMissing:He,isManageMenusButtonDisabled:id,onCreateNew:Ee,onSelectClassicMenu:em,onSelectNavigationMenu:tm,isLoading:Oa,blockEditingMode:I}),I==="default"&&Jg,I==="contentOnly"&&Vi&&(0,me.jsx)(tfe,{clientId:o}),I==="default"&&Vi&&(0,me.jsxs)(Xe.InspectorControls,{group:"advanced",children:[Fe&&Ve&&(0,me.jsx)(IG,{}),or&&Yt&&(0,me.jsx)(FG,{onDelete:()=>{mt(o,[]),K((0,$t.__)("Navigation Menu successfully deleted."))}}),(0,me.jsx)(k$,{disabled:id,className:"wp-block-navigation-manage-menus-button"})]}),(0,me.jsxs)(pt,{...Tn,"aria-describedby":!Fo&&!Oa?Ic:void 0,children:[Oa&&!om&&(0,me.jsx)("div",{className:"wp-block-navigation__loading-indicator-container",children:(0,me.jsx)(Er.Spinner,{className:"wp-block-navigation__loading-indicator"})}),(!Oa||om)&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(q$,{id:Ic}),(0,me.jsx)(KB,{id:o,onToggle:Ye,hasIcon:P,icon:M,isOpen:_o,isResponsive:Hl,isHiddenByDefault:om,overlayBackgroundColor:u,overlayTextColor:p,overlay:_,onNavigateToEntityRecord:V,children:Vi&&(0,me.jsx)(SG,{clientId:o,hasCustomPlaceholder:!!g,templateLock:w,orientation:T})})]})]})]})})}var Q$=(0,Xe.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})(rfe);var Y$=r(S()),X$=r(h());function J$({attributes:e}){if(!e.ref)return(0,X$.jsx)(Y$.InnerBlocks.Content,{})}var _p=r(S()),zf=r(xe());var xp=r(h()),fP={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Af=({navigationMenuId:e,...t})=>({...t,ref:e}),bk=e=>{if(e.layout)return e;let{itemsJustification:t,orientation:o,...a}=e;return(t||o)&&Object.assign(a,{layout:{type:"flex",...t&&{justifyContent:t},...o&&{orientation:o}}}),a},afe={attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save(){return(0,xp.jsx)(_p.InnerBlocks.Content,{})},isEligible:({navigationMenuId:e})=>!!e,migrate:Af},nfe={attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,xp.jsx)(_p.InnerBlocks.Content,{})},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,zf.compose)(Af,bk)},ife={attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,xp.jsx)(_p.InnerBlocks.Content,{})},migrate:(0,zf.compose)(Af,bk,Nt),isEligible({style:e}){return e?.typography?.fontFamily}},lfe=function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}},sfe=function(e){return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(e.style.typography??{}).map(([t,o])=>{let a=fP[t];if(a&&o.startsWith(a)){let n=o.slice(a.length);return t==="textDecoration"&&n==="strikethrough"?[t,"line-through"]:[t,n]}return[t,o]}))}}},cfe=[afe,nfe,ife,{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible(e){return e.isResponsive},migrate:(0,zf.compose)(Af,bk,Nt,lfe),save(){return(0,xp.jsx)(_p.InnerBlocks.Content,{})}},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save(){return(0,xp.jsx)(_p.InnerBlocks.Content,{})},isEligible(e){if(!e.style||!e.style.typography)return!1;for(let t in fP){let o=e.style.typography[t];if(o&&o.startsWith(fP[t]))return!0}return!1},migrate:(0,zf.compose)(Af,bk,Nt,sfe)},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible(e){return e.rgbTextColor||e.rgbBackgroundColor},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,zf.compose)(Af,e=>{let{rgbTextColor:t,rgbBackgroundColor:o,...a}=e;return{...a,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}}),save(){return(0,xp.jsx)(_p.InnerBlocks.Content,{})}}],eW=cfe;var{name:aW}=E5,nW={icon:_m,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,yk.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,yk.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,yk.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Q$,save:J$,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,tW.select)(oW.store).getEditedEntityRecord("postType","wp_navigation",e);if(t?.title)return(0,rW.decodeEntities)(t.title)},deprecated:eW},ufe=()=>D({name:aW,metadata:E5,settings:nW});var vP={};$(vP,{init:()=>xfe,metadata:()=>_k,name:()=>vW,settings:()=>Sk});var h1=r(B());var dW=r(S()),fW=r(eu()),gW=r(U());var _k={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};var xk=r(U()),Vf=r(z()),kp=r(L()),kk=r(Ui()),mn=r(B()),Ko=r(S()),wk=r(ko()),Mr=r(F()),iW=r(jo());var lW=r(Y()),Ck=r(xe());var Lt=r(h()),pfe={name:"core/navigation-link"},dfe=["core/navigation-link","core/navigation-submenu"],ffe=e=>{let[t,o]=(0,Mr.useState)(!1);return(0,Mr.useEffect)(()=>{let{ownerDocument:a}=e.current;function n(s){l(s)}function i(){o(!1)}function l(s){e.current.contains(s.target)?o(!0):o(!1)}return a.addEventListener("dragstart",n),a.addEventListener("dragend",i),a.addEventListener("dragenter",l),()=>{a.removeEventListener("dragstart",n),a.removeEventListener("dragend",i),a.removeEventListener("dragenter",l)}},[e]),t},gfe=(e,t,o,a)=>{let n=e==="post-type"||t==="post"||t==="page",i=Number.isInteger(o),l=(0,Ko.useBlockEditingMode)(),{postStatus:s,isDeleted:c}=(0,Vf.useSelect)(p=>{if(!n)return{postStatus:null,isDeleted:!1};if(l==="disabled"||!a)return{postStatus:null,isDeleted:!1};let{getEntityRecord:d,hasFinishedResolution:f}=p(lW.store),g=d("postType",t,o),b=f("getEntityRecord",["postType",t,o])&&g===void 0;return{postStatus:g?.status,isDeleted:b}},[n,l,a,t,o]);return[n&&i&&(c||s&&s==="trash"),s==="draft"]};function hfe(e){let t="";switch(e){case"post":t=(0,mn.__)("Select post");break;case"page":t=(0,mn.__)("Select page");break;case"category":t=(0,mn.__)("Select category");break;case"tag":t=(0,mn.__)("Select tag");break;default:t=(0,mn.__)("Add link")}return t}function hP({attributes:e,isSelected:t,setAttributes:o,insertBlocksAfter:a,mergeBlocks:n,onReplace:i,context:l,clientId:s}){let{id:c,label:u,type:m,url:p,description:d,kind:f,metadata:g}=e,{maxNestingLevel:v}=l,{replaceBlock:b,__unstableMarkNextChangeAsNotPersistent:y,selectBlock:_}=(0,Vf.useDispatch)(Ko.store),[x,w]=(0,Mr.useState)(t&&!p),[C,T]=(0,Mr.useState)(null),N=(0,Mr.useRef)(null),P=ffe(N),M=(0,mn.__)("Add label\u2026"),R=(0,Mr.useRef)(),H=(0,Mr.useRef)(),O=(0,Mr.useRef)(u===void 0),A=(0,Mr.useRef)(!1),{isAtMaxNesting:I,isTopLevelLink:V,isParentOfSelectedBlock:W,hasChildren:j,validateLinkStatus:K,parentBlockClientId:Z,isSubmenu:te}=(0,Vf.useSelect)(q=>{let{getBlockCount:Be,getBlockName:He,getBlockRootClientId:Ve,hasSelectedInnerBlock:Fe,getBlockParentsByBlockName:Yt,getSelectedBlockClientId:or}=q(Ko.store),Pt=Ve(s),qe=He(Pt),rr=qe==="core/navigation",$r=or(),ja=rr?Pt:Yt(s,"core/navigation")[0],ma=qe==="core/navigation-submenu"?Pt:ja,Bc=$r===ja||Fe(ja,!0);return{isAtMaxNesting:Yt(s,dfe).length>=v,isTopLevelLink:rr,isParentOfSelectedBlock:Fe(s,!0),hasChildren:!!Be(s),validateLinkStatus:Bc,parentBlockClientId:ma,isSubmenu:qe==="core/navigation-submenu"}},[s,v]),{getBlocks:X}=(0,Vf.useSelect)(Ko.store),{hasUrlBinding:J,isBoundEntityAvailable:ee}=Qn({clientId:s,attributes:e}),ne=pP({clientId:s,attributes:e,setAttributes:o}),[oe,ce]=gfe(f,m,c,K),pe=(0,Mr.useCallback)(()=>{let q=X(s);q.length===0&&(q=[(0,xk.createBlock)("core/navigation-link")],_(q[0].clientId));let Be=(0,xk.createBlock)("core/navigation-submenu",e,q);b(s,Be)},[X,s,_,b,e]);(0,Mr.useEffect)(()=>{O.current&&t&&_(Z)},[]),(0,Mr.useEffect)(()=>{j&&(y(),pe())},[j,y,pe]),(0,Mr.useEffect)(()=>{if(!(!O.current||!p||!x)){if(O.current=!1,(0,wk.isURL)((0,wk.prependHTTP)(u))&&/^.+\.[a-z]+/.test(u))Ne();else if(_(s,null),te){let q=X(Z);q.length===1&&q[0].clientId===s&&(A.current=!0)}}},[p,x,O,u]);function Ne(){R.current.focus();let{ownerDocument:q}=R.current,{defaultView:Be}=q,He=Be.getSelection(),Ve=q.createRange();Ve.selectNodeContents(R.current),He.removeAllRanges(),He.addRange(Ve)}function Le(){o({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),w(!1)}let{textColor:ie,customTextColor:Ee,backgroundColor:de,customBackgroundColor:re}=bp(l,!V);function se(q){kk.isKeyboardEvent.primary(q,"k")&&(q.preventDefault(),q.stopPropagation(),w(!0))}let we=(0,Ck.useInstanceId)(hP),fe=J&&!ee,mt=fe?(0,mn.sprintf)("navigation-link-edit-%d-desc",we):void 0,kt=(0,Ko.useBlockProps)({ref:(0,Ck.useMergeRefs)([T,N]),className:k("wp-block-navigation-item",{"is-editing":t||W,"is-dragging-within":P,"has-link":!!p,"has-child":j,"has-text-color":!!ie||!!Ee,[(0,Ko.getColorClassName)("color",ie)]:!!ie,"has-background":!!de||re,[(0,Ko.getColorClassName)("background-color",de)]:!!de}),"aria-describedby":mt,"aria-invalid":fe,style:{color:!ie&&Ee,backgroundColor:!de&&re},onKeyDown:se}),bt=(0,Ko.useInnerBlocksProps)({...kt,className:"remove-outline"},{defaultBlock:pfe,directInsert:!0,renderAppender:!1}),_o=!p&&!(J&&ee)||oe||ce||J&&!ee;_o&&(kt.onClick=()=>{w(!0)});let Ye=k("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":_o}),xo=hfe(m),si=`(${oe?(0,mn.__)("Invalid"):(0,mn.__)("Draft")})`;return(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)(Ko.BlockControls,{children:(0,Lt.jsxs)(kp.ToolbarGroup,{children:[(0,Lt.jsx)(kp.ToolbarButton,{name:"link",icon:Nn,title:(0,mn.__)("Link"),shortcut:kk.displayShortcut.primary("k"),onClick:()=>{w(!0)}}),!I&&(0,Lt.jsx)(kp.ToolbarButton,{name:"submenu",icon:pm,title:(0,mn.__)("Add submenu"),onClick:pe})]})}),(0,Lt.jsx)(Ko.InspectorControls,{children:(0,Lt.jsx)(Hf,{attributes:e,setAttributes:o,clientId:s})}),(0,Lt.jsxs)("div",{...kt,children:[fe&&(0,Lt.jsx)(kp.VisuallyHidden,{id:mt,children:(0,Lt.jsx)(nk,{type:m,kind:f})}),(0,Lt.jsxs)("a",{className:Ye,children:[!p&&!g?.bindings?.url?(0,Lt.jsx)("div",{className:"wp-block-navigation-link__placeholder-text",children:(0,Lt.jsx)("span",{children:xo})}):(0,Lt.jsxs)(Lt.Fragment,{children:[!oe&&!ce&&(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)(Ko.RichText,{ref:R,identifier:"label",className:"wp-block-navigation-item__label",value:u,onChange:q=>o({label:q}),onMerge:n,onReplace:i,__unstableOnSplitAtEnd:()=>a((0,xk.createBlock)("core/navigation-link")),"aria-label":(0,mn.__)("Navigation link text"),placeholder:M,withoutInteractiveFormatting:!0}),d&&(0,Lt.jsx)("span",{className:"wp-block-navigation-item__description",children:d})]}),(oe||ce)&&(0,Lt.jsx)("div",{className:k("wp-block-navigation-link__placeholder-text","wp-block-navigation-link__label",{"is-invalid":oe,"is-draft":ce}),children:(0,Lt.jsx)("span",{children:`${(0,iW.decodeEntities)(u)} ${oe||ce?si:""}`.trim()})})]}),x&&(0,Lt.jsx)(mc,{ref:H,clientId:s,link:e,onClose:()=>{if(w(!1),!p&&!J){i([]);return}if(A.current&&(A.current=!1,N.current?.nextElementSibling)){let q=N.current.nextElementSibling.querySelector(".block-editor-button-block-appender");q&&q.focus()}},anchor:C,onRemove:Le,onChange:ne})]}),(0,Lt.jsx)("div",{...bt})]})]})}var sW=r(S()),cW=r(h());function uW(){return(0,cW.jsx)(sW.InnerBlocks.Content,{})}function vfe(e){switch(e){case"post":return Vh;case"page":return Fs;case"tag":return Xh;case"category":return Hc;default:return i8}}function mW(e,t){if(t!=="core/navigation-link")return e;if(e.variations){let o=(n,i)=>n.type===i.type,a=e.variations.map(n=>({...n,...!n.icon&&{icon:vfe(n.name)},...!n.isActive&&{isActive:o}}));return{...e,variations:a}}return e}var Lr=r(U()),bfe={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,Lr.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,Lr.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Lr.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Lr.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,Lr.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,Lr.createBlock)("core/navigation-link")},{type:"block",blocks:["core/buttons"],transform:()=>(0,Lr.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,Lr.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,Lr.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,Lr.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,Lr.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,Lr.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,Lr.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,Lr.createBlock)("core/page-list")},{type:"block",blocks:["core/buttons"],transform:({label:e,url:t,rel:o,title:a,opensInNewTab:n})=>(0,Lr.createBlock)("core/buttons",{},[(0,Lr.createBlock)("core/button",{text:e,url:t,rel:o,title:a,linkTarget:n?"_blank":void 0})])}]},pW=bfe;var hW=r(h()),{fieldsKey:yfe,formKey:_fe}=Q(gW.privateApis),{name:vW}=_k,Sk={icon:hh,__experimentalLabel:({label:e})=>e,merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:hP,save:uW,example:{attributes:{label:(0,h1._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible(e){return e.nofollow},attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate({nofollow:e,...t}){return{rel:e?"nofollow":"",...t}},save(){return(0,hW.jsx)(dW.InnerBlocks.Content,{})}}],transforms:pW};window.__experimentalContentOnlyInspectorFields&&(Sk[yfe]=[{id:"label",label:(0,h1.__)("Label"),type:"richtext"},{id:"link",label:(0,h1.__)("Link"),type:"link",mapping:{href:"url",rel:"rel"}}],Sk[_fe]={fields:["label"]});var xfe=()=>((0,fW.addFilter)("blocks.registerBlockType","core/navigation-link",mW),D({name:vW,metadata:_k,settings:Sk}));var yP={};$(yP,{init:()=>Bfe,metadata:()=>Tk,name:()=>PW,settings:()=>Ek});var b1=r(B()),BW=r(U());var Tk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string",role:"content"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string",role:"content"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"};var Pk=r(z()),v1=r(L()),Nk=r(Ui()),Ff=r(B()),Do=r(S()),Ik=r(ko()),Jn=r(F());var _W=r(K0()),xW=r(U()),Dk=r(xe());var Bk=r(L()),bP=r(h()),bW=()=>(0,bP.jsx)(Bk.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,bP.jsx)(Bk.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Qo=r(h()),yW=["core/navigation-link","core/navigation-submenu","core/page-list"],wfe=e=>{let[t,o]=(0,Jn.useState)(!1);return(0,Jn.useEffect)(()=>{let{ownerDocument:a}=e.current;function n(s){l(s)}function i(){o(!1)}function l(s){e.current.contains(s.target)?o(!0):o(!1)}return a.addEventListener("dragstart",n),a.addEventListener("dragend",i),a.addEventListener("dragenter",l),()=>{a.removeEventListener("dragstart",n),a.removeEventListener("dragend",i),a.removeEventListener("dragenter",l)}},[]),t};function kW({attributes:e,isSelected:t,setAttributes:o,mergeBlocks:a,onReplace:n,context:i,clientId:l}){let{label:s,url:c,description:u}=e,{showSubmenuIcon:m,maxNestingLevel:p,openSubmenusOnClick:d}=i,g=(0,Do.useBlockEditingMode)()!=="default"?!0:d,{clearBinding:v,createBinding:b}=Qn({clientId:l,attributes:e}),{__unstableMarkNextChangeAsNotPersistent:y,replaceBlock:_}=(0,Pk.useDispatch)(Do.store),[x,w]=(0,Jn.useState)(!1),[C,T]=(0,Jn.useState)(null),N=(0,Jn.useRef)(null),P=wfe(N),M=(0,Ff.__)("Add text\u2026"),R=(0,Jn.useRef)(),{parentCount:H,isParentOfSelectedBlock:O,isImmediateParentOfSelectedBlock:A,hasChildren:I,selectedBlockHasChildren:V,onlyDescendantIsEmptyLink:W}=(0,Pk.useSelect)(de=>{let{hasSelectedInnerBlock:re,getSelectedBlockClientId:se,getBlockParentsByBlockName:we,getBlock:fe,getBlockCount:mt,getBlockOrder:kt}=de(Do.store),bt,_o=se(),Ye=kt(_o);if(Ye?.length===1){let xo=fe(Ye[0]);bt=xo?.name==="core/navigation-link"&&!xo?.attributes?.label}return{parentCount:we(l,"core/navigation-submenu").length,isParentOfSelectedBlock:re(l,!0),isImmediateParentOfSelectedBlock:re(l,!1),hasChildren:!!mt(l),selectedBlockHasChildren:!!Ye?.length,onlyDescendantIsEmptyLink:bt}},[l]),j=(0,Dk.usePrevious)(I);(0,Jn.useEffect)(()=>{!g&&!c&&w(!0)},[]),(0,Jn.useEffect)(()=>{t||w(!1)},[t]),(0,Jn.useEffect)(()=>{x&&c&&(0,Ik.isURL)((0,Ik.prependHTTP)(s))&&/^.+\.[a-z]+/.test(s)&&K()},[c]);function K(){R.current.focus();let{ownerDocument:de}=R.current,{defaultView:re}=de,se=re.getSelection(),we=de.createRange();we.selectNodeContents(R.current),se.removeAllRanges(),se.addRange(we)}let{textColor:Z,customTextColor:te,backgroundColor:X,customBackgroundColor:J}=bp(i,H>0);function ee(de){Nk.isKeyboardEvent.primary(de,"k")&&(de.preventDefault(),de.stopPropagation(),w(!0))}let ne=(0,Do.useBlockProps)({ref:(0,Dk.useMergeRefs)([T,N]),className:k("wp-block-navigation-item",{"is-editing":t||O,"is-dragging-within":P,"has-link":!!c,"has-child":I,"has-text-color":!!Z||!!te,[(0,Do.getColorClassName)("color",Z)]:!!Z,"has-background":!!X||J,[(0,Do.getColorClassName)("background-color",X)]:!!X,"open-on-click":g}),style:{color:!Z&&te,backgroundColor:!X&&J},onKeyDown:ee}),oe=bp(i,!0),ce=H>=p?yW.filter(de=>de!=="core/navigation-submenu"):yW,pe=J5(oe),Ne=(0,Do.useInnerBlocksProps)(pe,{allowedBlocks:ce,defaultBlock:qn,directInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:t||A&&!V||I?Do.InnerBlocks.ButtonBlockAppender:!1}),Le=g?"button":"a";function ie(){let de=(0,xW.createBlock)("core/navigation-link",e);_(l,de)}(0,Jn.useEffect)(()=>{!I&&j&&(y(),ie())},[I,j]);let Ee=!V||W;return(0,Qo.jsxs)(Qo.Fragment,{children:[(0,Qo.jsx)(Do.BlockControls,{children:(0,Qo.jsxs)(v1.ToolbarGroup,{children:[!g&&(0,Qo.jsx)(v1.ToolbarButton,{name:"link",icon:Nn,title:(0,Ff.__)("Link"),shortcut:Nk.displayShortcut.primary("k"),onClick:()=>{w(!0)}}),(0,Qo.jsx)(v1.ToolbarButton,{name:"revert",icon:o9,title:(0,Ff.__)("Convert to Link"),onClick:ie,className:"wp-block-navigation__submenu__revert",disabled:!Ee})]})}),(0,Qo.jsx)(Do.InspectorControls,{children:(0,Qo.jsx)(Hf,{attributes:e,setAttributes:o,clientId:l})}),(0,Qo.jsxs)("div",{...ne,children:[(0,Qo.jsxs)(Le,{className:"wp-block-navigation-item__content",children:[(0,Qo.jsx)(Do.RichText,{ref:R,identifier:"label",className:"wp-block-navigation-item__label",value:s,onChange:de=>o({label:de}),onMerge:a,onReplace:n,"aria-label":(0,Ff.__)("Navigation link text"),placeholder:M,withoutInteractiveFormatting:!0,onClick:()=>{!g&&!c&&w(!0)}}),u&&(0,Qo.jsx)("span",{className:"wp-block-navigation-item__description",children:u}),!g&&x&&(0,Qo.jsx)(mc,{clientId:l,link:e,onClose:()=>{w(!1)},anchor:C,onRemove:()=>{o({url:""}),(0,_W.speak)((0,Ff.__)("Link removed."),"assertive")},onChange:de=>{let{isEntityLink:re,attributes:se}=sc(de,o,e);re?b(se):v()}})]}),(m||g)&&(0,Qo.jsx)("span",{className:"wp-block-navigation__submenu-icon",children:(0,Qo.jsx)(bW,{})}),(0,Qo.jsx)("div",{...Ne})]})]})}var wW=r(S()),CW=r(h());function SW(){return(0,CW.jsx)(wW.InnerBlocks.Content,{})}var wp=r(U()),Cfe={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:e=>(0,wp.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,wp.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,wp.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,wp.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,wp.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>t?.innerBlocks?.length===0,transform:()=>(0,wp.createBlock)("core/search")}]},TW=Cfe;var{fieldsKey:Sfe,formKey:Tfe}=Q(BW.privateApis),{name:PW}=Tk,Ek={icon:({context:e})=>e==="list-view"?Fs:pm,__experimentalLabel(e,{context:t}){let{label:o}=e,a=e?.metadata?.name;return t==="list-view"&&(a||o)&&e?.metadata?.name||o},edit:kW,example:{attributes:{label:(0,b1._x)("About","Example link text for Navigation Submenu"),type:"page"}},save:SW,transforms:TW};window.__experimentalContentOnlyInspectorFields&&(Ek[Sfe]=[{id:"label",label:(0,b1.__)("Label"),type:"richtext"},{id:"link",label:(0,b1.__)("Link"),type:"link",mapping:{href:"url",rel:"rel"}}],Ek[Tfe]={fields:["label"]});var Bfe=()=>D({name:PW,metadata:Tk,settings:Ek});var xP={};$(xP,{init:()=>Ife,metadata:()=>Mk,name:()=>zW,settings:()=>AW});var NW=r(B()),IW=r(S()),_P=r(h());function DW(){return(0,_P.jsx)("div",{...(0,IW.useBlockProps)(),children:(0,_P.jsx)("span",{children:(0,NW.__)("Page break")})})}var Mk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-nextpage-editor"};var EW=r(F()),MW=r(h());function LW(){return(0,MW.jsx)(EW.RawHTML,{children:"<!--nextpage-->"})}var RW=r(U()),Nfe={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&e.dataset.block==="core/nextpage",transform(){return(0,RW.createBlock)("core/nextpage",{})}}]},HW=Nfe;var{name:zW}=Mk,AW={icon:c7,example:{},transforms:HW,edit:DW,save:LW},Ife=()=>D({name:zW,metadata:Mk,settings:AW});var wP={};$(wP,{init:()=>Rfe,metadata:()=>Lk,name:()=>$W,settings:()=>WW});var Lk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pattern",title:"Pattern Placeholder",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1,renaming:!1,visibility:!1,interactivity:{clientNavigation:!0}},textdomain:"default",attributes:{slug:{type:"string"}}};var OW=r(U()),Su=r(z()),Hk=r(F()),Tu=r(S()),UW=r(Y()),zk=r(B());var VW=r(z()),kP=new WeakMap;function FW(){let e=(0,VW.useRegistry)();if(!kP.has(e)){let t=new Map;kP.set(e,Efe.bind(null,t))}return kP.get(e)}function Efe(e,{name:t,blocks:o}){let a=[...o];for(;a.length;){let n=a.shift();for(let i of n.innerBlocks??[])a.unshift(i);n.name==="core/pattern"&&Mfe(e,t,n.attributes.slug)}}function Mfe(e,t,o){if(e.has(t)||e.set(t,new Set),e.get(t).add(o),jW(e,t))throw new TypeError(`Pattern ${t} has a circular dependency and cannot be rendered.`)}function jW(e,t,o=new Set,a=new Set){o.add(t),a.add(t);let n=e.get(t)??new Set;for(let i of n)if(o.has(i)){if(a.has(i))return!0}else if(jW(e,i,o,a))return!0;return a.delete(t),!1}var Rk=r(h()),Lfe=({attributes:e,clientId:t})=>{let o=(0,Su.useRegistry)(),a=(0,Su.useSelect)(v=>v(Tu.store).__experimentalGetParsedPattern(e.slug),[e.slug]),n=(0,Su.useSelect)(v=>v(UW.store).getCurrentTheme()?.stylesheet,[]),{replaceBlocks:i,setBlockEditingMode:l,__unstableMarkNextChangeAsNotPersistent:s}=(0,Su.useDispatch)(Tu.store),{getBlockRootClientId:c,getBlockEditingMode:u}=(0,Su.useSelect)(Tu.store),[m,p]=(0,Hk.useState)(!1),d=FW();function f(v){return v.innerBlocks.find(b=>b.name==="core/template-part")&&(v.innerBlocks=v.innerBlocks.map(b=>(b.name==="core/template-part"&&b.attributes.theme===void 0&&(b.attributes.theme=n),b))),v.name==="core/template-part"&&v.attributes.theme===void 0&&(v.attributes.theme=n),v}(0,Hk.useEffect)(()=>{if(!m&&a?.blocks){try{d(a)}catch{p(!0);return}window.queueMicrotask(()=>{let v=c(t),b=a.blocks.map(_=>(0,OW.cloneBlock)(f(_)));b.length===1&&a.categories?.length>0&&(b[0].attributes={...b[0].attributes,metadata:{...b[0].attributes.metadata,categories:a.categories,patternName:a.name,name:b[0].attributes.metadata.name||a.title}});let y=u(v);o.batch(()=>{s(),l(v,"default"),s(),i(t,b),s(),l(v,y)})})}},[t,m,a,s,i,u,l,c]);let g=(0,Tu.useBlockProps)();return m?(0,Rk.jsx)("div",{...g,children:(0,Rk.jsx)(Tu.Warning,{children:(0,zk.sprintf)((0,zk.__)('Pattern "%s" cannot be rendered inside itself.'),a?.name)})}):(0,Rk.jsx)("div",{...g})},GW=Lfe;var{name:$W}=Lk,WW={edit:GW},Rfe=()=>D({name:$W,metadata:Lk,settings:WW});var BP={};$(BP,{init:()=>Ffe,metadata:()=>Ak,name:()=>oq,settings:()=>rq});var Ak={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",allowedBlocks:["core/page-list-item"],description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},color:{text:!0,background:!0,link:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{padding:!1,margin:!1}},contentRole:!0},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var JW=r(U()),ia=r(S()),na=r(L()),aa=r(B()),vl=r(F()),eq=r(Y()),Fk=r(z());var CP=r(U()),qW=r(z()),ZW=r(S());function zfe(e=[]){let t="post-type",o={},a=[];return e.forEach(({id:n,title:i,link:l,type:s,parent:c})=>{let u=o[n]?.innerBlocks??[];o[n]=(0,CP.createBlock)("core/navigation-link",{id:n,label:i.rendered,url:l,type:s,kind:t,metadata:{bindings:Df(t)}},u),c?(o[c]||(o[c]={innerBlocks:[]}),o[c].innerBlocks.push(o[n])):a.push(o[n])}),a}function KW(e,t){for(let o of e){if(o.attributes.id===t)return o;if(o.innerBlocks&&o.innerBlocks.length){let a=KW(o.innerBlocks,t);if(a)return a}}return null}function Afe(e=[],t=null){let o=zfe(e);if(t){let n=KW(o,t);n&&n.innerBlocks&&(o=n.innerBlocks)}let a=n=>{n.forEach((i,l,s)=>{let{attributes:c,innerBlocks:u}=i;if(u.length!==0){a(u);let m=(0,CP.createBlock)("core/navigation-submenu",c,u);s[l]=m}})};return a(o),o}function QW({clientId:e,pages:t,parentClientId:o,parentPageID:a}){let{replaceBlock:n,selectBlock:i}=(0,qW.useDispatch)(ZW.store);return()=>{let l=Afe(t,a);n(e,l),i(o)}}var _1=r(L()),SP=r(xe()),y1=r(B()),Cp=r(h()),TP=(0,y1.__)("This Navigation Menu displays your website's pages. Editing it will enable you to add, delete, or reorder pages. However, new pages will no longer be added automatically.");function Vk({onClick:e,onClose:t,disabled:o}){return(0,Cp.jsxs)(_1.Modal,{onRequestClose:t,title:(0,y1.__)("Edit Page List"),className:"wp-block-page-list-modal",aria:{describedby:(0,SP.useInstanceId)(Vk,"wp-block-page-list-modal__description")},children:[(0,Cp.jsx)("p",{id:(0,SP.useInstanceId)(Vk,"wp-block-page-list-modal__description"),children:TP}),(0,Cp.jsxs)("div",{className:"wp-block-page-list-modal-buttons",children:[(0,Cp.jsx)(_1.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:t,children:(0,y1.__)("Cancel")}),(0,Cp.jsx)(_1.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:o,onClick:e,children:(0,y1.__)("Edit")})]})]})}var ht=r(h()),YW=100,XW=()=>{};function Vfe({blockProps:e,innerBlocksProps:t,hasResolvedPages:o,blockList:a,pages:n,parentPageID:i}){if(!o)return(0,ht.jsx)("div",{...e,children:(0,ht.jsx)("div",{className:"wp-block-page-list__loading-indicator-container",children:(0,ht.jsx)(na.Spinner,{className:"wp-block-page-list__loading-indicator"})})});if(n===null)return(0,ht.jsx)("div",{...e,children:(0,ht.jsx)(na.Notice,{status:"warning",isDismissible:!1,children:(0,aa.__)("Page List: Cannot retrieve Pages.")})});if(n.length===0)return(0,ht.jsx)("div",{...e,children:(0,ht.jsx)(na.Notice,{status:"info",isDismissible:!1,children:(0,aa.__)("Page List: Cannot retrieve Pages.")})});if(a.length===0){let l=n.find(s=>s.id===i);return l?.title?.rendered?(0,ht.jsx)("div",{...e,children:(0,ht.jsx)(ia.Warning,{children:(0,aa.sprintf)((0,aa.__)('Page List: "%s" page has no children.'),l.title.rendered)})}):(0,ht.jsx)("div",{...e,children:(0,ht.jsx)(na.Notice,{status:"warning",isDismissible:!1,children:(0,aa.__)("Page List: Cannot retrieve Pages.")})})}if(n.length>0)return(0,ht.jsx)("ul",{...t})}function tq({context:e,clientId:t,attributes:o,setAttributes:a}){let{parentPageID:n}=o,[i,l]=(0,vl.useState)(!1),s=(0,vl.useCallback)(()=>l(!0),[]),c=()=>l(!1),u=G(),{records:m,hasResolved:p}=(0,eq.useEntityRecords)("postType","page",{per_page:YW,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),d="showSubmenuIcon"in e&&m?.length>0&&m?.length<=YW,f=(0,vl.useMemo)(()=>m===null?new Map:m.sort((R,H)=>R.menu_order===H.menu_order?R.title.rendered.localeCompare(H.title.rendered):R.menu_order-H.menu_order).reduce((R,H)=>{let{parent:O}=H;return R.has(O)?R.get(O).push(H):R.set(O,[H]),R},new Map),[m]),g=(0,ia.useBlockProps)({className:k("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,ia.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,ia.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),v=(0,vl.useMemo)(function M(R=0,H=0){let O=f.get(R);return O?.length?O.reduce((A,I)=>{let V=f.has(I.id),W={value:I.id,label:"\u2014 ".repeat(H)+I.title.rendered,rawName:I.title.rendered};return A.push(W),V&&A.push(...M(I.id,H+1)),A},[]):[]},[f]),b=(0,vl.useMemo)(function M(R=n){let H=f.get(R);return H?.length?H.reduce((O,A)=>{let I=f.has(A.id),V={id:A.id,label:A.title?.rendered?.trim()!==""?A.title?.rendered:(0,aa.__)("(no title)"),title:A.title?.rendered?.trim()!==""?A.title?.rendered:(0,aa.__)("(no title)"),link:A.url,hasChildren:I},W=null,j=M(A.id);return W=(0,JW.createBlock)("core/page-list-item",V,j),O.push(W),O},[]):[]},[f,n]),{isNested:y,hasSelectedChild:_,parentClientId:x,hasDraggedChild:w,isChildOfNavigation:C}=(0,Fk.useSelect)(M=>{let{getBlockParentsByBlockName:R,hasSelectedInnerBlock:H,hasDraggedInnerBlock:O}=M(ia.store),A=R(t,"core/navigation-submenu",!0),I=R(t,"core/navigation",!0);return{isNested:A.length>0,isChildOfNavigation:I.length>0,hasSelectedChild:H(t,!0),hasDraggedChild:O(t,!0),parentClientId:I[0]}},[t]),T=QW({clientId:t,pages:m,parentClientId:x,parentPageID:n}),N=(0,ia.useInnerBlocksProps)(g,{renderAppender:!1,__unstableDisableDropZone:!0,templateLock:C?!1:"all",onInput:XW,onChange:XW,value:b}),{selectBlock:P}=(0,Fk.useDispatch)(ia.store);return(0,vl.useEffect)(()=>{(_||w)&&(s(),P(x))},[_,w,x,P,s]),(0,vl.useEffect)(()=>{a({isNested:y})},[y,a]),(0,ht.jsxs)(ht.Fragment,{children:[(v.length>0||d)&&(0,ht.jsx)(ia.InspectorControls,{children:(0,ht.jsxs)(na.__experimentalToolsPanel,{label:(0,aa.__)("Settings"),resetAll:()=>{a({parentPageID:0})},dropdownMenuProps:u,children:[v.length>0&&(0,ht.jsx)(na.__experimentalToolsPanelItem,{label:(0,aa.__)("Parent Page"),hasValue:()=>n!==0,onDeselect:()=>a({parentPageID:0}),isShownByDefault:!0,children:(0,ht.jsx)(na.ComboboxControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:"editor-page-attributes__parent",label:(0,aa.__)("Parent"),value:n,options:v,onChange:M=>a({parentPageID:M??0}),help:(0,aa.__)("Choose a page to show only its subpages.")})}),d&&(0,ht.jsxs)("div",{style:{gridColumn:"1 / -1"},children:[(0,ht.jsx)("p",{children:TP}),(0,ht.jsx)(na.Button,{__next40pxDefaultSize:!0,variant:"primary",accessibleWhenDisabled:!0,disabled:!p,onClick:T,children:(0,aa.__)("Edit")})]})]})}),d&&(0,ht.jsxs)(ht.Fragment,{children:[(0,ht.jsx)(ia.BlockControls,{group:"other",children:(0,ht.jsx)(na.ToolbarButton,{title:(0,aa.__)("Edit"),onClick:s,children:(0,aa.__)("Edit")})}),i&&(0,ht.jsx)(Vk,{onClick:T,onClose:c,disabled:!p})]}),(0,ht.jsx)(Vfe,{blockProps:g,innerBlocksProps:N,hasResolvedPages:p,blockList:b,pages:m,parentPageID:n})]})}var{name:oq}=Ak,rq={icon:u7,example:{},edit:tq},Ffe=()=>D({name:oq,metadata:Ak,settings:rq});var MP={};$(MP,{init:()=>Ufe,metadata:()=>jk,name:()=>iq,settings:()=>lq});var jk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list-item",title:"Page List Item",category:"widgets",parent:["core/page-list"],description:"Displays a page inside a list of all pages.",keywords:["page","menu","navigation"],textdomain:"default",attributes:{id:{type:"number"},label:{type:"string"},title:{type:"string"},link:{type:"string"},hasChildren:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,lock:!1,inserter:!1,__experimentalToolbar:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"};var Uk=r(S()),aq=r(z()),IP=r(Y()),DP=r(F()),EP=r(Qs());var Ok=r(L()),PP=r(h()),NP=()=>(0,PP.jsx)(Ok.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,PP.jsx)(Ok.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})});var Rr=r(h());function Ofe(){return(0,aq.useSelect)(e=>{if(!e(IP.store).canUser("read",{kind:"root",name:"site"}))return;let o=e(IP.store).getEntityRecord("root","site");return o?.show_on_front==="page"&&o?.page_on_front},[])}function nq({context:e,attributes:t}){let{id:o,label:a,link:n,hasChildren:i,title:l}=t,s="showSubmenuIcon"in e,c=Ofe(),u=bp(e,!0),m=J5(u),p=(0,Uk.useBlockProps)(m,{className:"wp-block-pages-list__item"}),d=(0,Uk.useInnerBlocksProps)(p);return(0,Rr.jsxs)("li",{className:k("wp-block-pages-list__item",{"has-child":i,"wp-block-navigation-item":s,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":o===c}),children:[i&&e.openSubmenusOnClick?(0,Rr.jsxs)(Rr.Fragment,{children:[(0,Rr.jsx)("button",{type:"button",className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false",children:(0,Rr.jsx)(DP.RawHTML,{children:(0,EP.safeHTML)(a)})}),(0,Rr.jsx)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon",children:(0,Rr.jsx)(NP,{})})]}):(0,Rr.jsx)("a",{className:k("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":s}),href:n,children:(0,Rr.jsx)(DP.RawHTML,{children:(0,EP.safeHTML)(l)})}),i&&(0,Rr.jsxs)(Rr.Fragment,{children:[!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,Rr.jsx)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false",type:"button",children:(0,Rr.jsx)(NP,{})}),(0,Rr.jsx)("ul",{...d})]})]},o)}var{name:iq}=jk,lq={__experimentalLabel:({label:e})=>e,icon:Fs,example:{},edit:nq},Ufe=()=>D({name:iq,metadata:jk,settings:lq});var jP={};$(jP,{init:()=>Xfe,metadata:()=>Wk,name:()=>Xk,settings:()=>Yk});var Qk=r(B());var Tq=r(U());var sq=r(F()),Yo=r(S()),LP=r(B()),ps=r(h()),jf={className:!1},RP={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},Gk=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;let t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});let{customTextColor:o,customBackgroundColor:a,customFontSize:n,...i}=e;return{...i,style:t}},Of=e=>{let{align:t,...o}=e;return t?{...o,style:{...e.style,typography:{...e.style?.typography,textAlign:t}}}:e},{style:vHe,...x1}=RP,Gfe=[{supports:{className:!1,typography:{fontSize:!0}},attributes:RP,isEligible(e){return!!e.align||!!e.className?.match(/\bhas-text-align-(left|center|right)\b/)},save({attributes:e}){let{align:t,content:o,dropCap:a,direction:n}=e,i=k({"has-drop-cap":t===((0,LP.isRTL)()?"left":"right")||t==="center"?!1:a,[`has-text-align-${t}`]:t});return(0,ps.jsx)("p",{...Yo.useBlockProps.save({className:i,dir:n}),children:(0,ps.jsx)(Yo.RichText.Content,{value:o})})},migrate:Of},{supports:jf,attributes:{...x1,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Of,save({attributes:e}){let{align:t,content:o,dropCap:a,direction:n}=e,i=k({"has-drop-cap":t===((0,LP.isRTL)()?"left":"right")||t==="center"?!1:a,[`has-text-align-${t}`]:t});return(0,ps.jsx)("p",{...Yo.useBlockProps.save({className:i,dir:n}),children:(0,ps.jsx)(Yo.RichText.Content,{value:o})})}},{supports:jf,attributes:{...x1,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return Gk(Of(e))},save({attributes:e}){let{align:t,content:o,dropCap:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,Yo.getColorClassName)("color",i),d=(0,Yo.getColorClassName)("background-color",n),f=(0,Yo.getFontSizeClass)(c),g=k({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":a,[`has-text-align-${t}`]:t,[f]:f,[p]:p,[d]:d}),v={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u};return(0,ps.jsx)(Yo.RichText.Content,{tagName:"p",style:v,className:g||void 0,value:o,dir:m})}},{supports:jf,attributes:{...x1,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate(e){return Gk(Of(e))},save({attributes:e}){let{align:t,content:o,dropCap:a,backgroundColor:n,textColor:i,customBackgroundColor:l,customTextColor:s,fontSize:c,customFontSize:u,direction:m}=e,p=(0,Yo.getColorClassName)("color",i),d=(0,Yo.getColorClassName)("background-color",n),f=(0,Yo.getFontSizeClass)(c),g=k({"has-text-color":i||s,"has-background":n||l,"has-drop-cap":a,[f]:f,[p]:p,[d]:d}),v={backgroundColor:d?void 0:l,color:p?void 0:s,fontSize:f?void 0:u,textAlign:t};return(0,ps.jsx)(Yo.RichText.Content,{tagName:"p",style:v,className:g||void 0,value:o,dir:m})}},{supports:jf,attributes:{...x1,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate(e){return Gk(Of(e))},save({attributes:e}){let{width:t,align:o,content:a,dropCap:n,backgroundColor:i,textColor:l,customBackgroundColor:s,customTextColor:c,fontSize:u,customFontSize:m}=e,p=(0,Yo.getColorClassName)("color",l),d=(0,Yo.getColorClassName)("background-color",i),f=u&&`is-${u}-text`,g=k({[`align${t}`]:t,"has-background":i||s,"has-drop-cap":n,[f]:f,[p]:p,[d]:d}),v={backgroundColor:d?void 0:s,color:p?void 0:c,fontSize:f?void 0:m,textAlign:o};return(0,ps.jsx)(Yo.RichText.Content,{tagName:"p",style:v,className:g||void 0,value:a})}},{supports:jf,attributes:{...x1,fontSize:{type:"number"}},save({attributes:e}){let{width:t,align:o,content:a,dropCap:n,backgroundColor:i,textColor:l,fontSize:s}=e,c=k({[`align${t}`]:t,"has-background":i,"has-drop-cap":n});return(0,ps.jsx)("p",{style:{backgroundColor:i,color:l,fontSize:s,textAlign:o},className:c||void 0,children:a})},migrate(e){return Gk(Of({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&e.textColor[0]==="#"?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&e.backgroundColor[0]==="#"?e.backgroundColor:void 0}))}},{supports:jf,attributes:{...RP,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,ps.jsx)(sq.RawHTML,{children:e.content})},migrate:e=>e}],cq=Gfe;var pn=r(B()),$f=r(L()),dn=r(S()),yq=r(U());var uq=r(F()),mq=r(xe()),pq=r(Ui()),Uf=r(z()),HP=r(S()),Gf=r(U());function dq(e){let{batch:t}=(0,Uf.useRegistry)(),{moveBlocksToPosition:o,replaceInnerBlocks:a,duplicateBlocks:n,insertBlock:i}=(0,Uf.useDispatch)(HP.store),{getBlockRootClientId:l,getBlockIndex:s,getBlockOrder:c,getBlockName:u,getBlock:m,getNextBlockClientId:p,canInsertBlockType:d}=(0,Uf.useSelect)(HP.store),f=(0,uq.useRef)(e);return f.current=e,(0,mq.useRefEffect)(g=>{function v(b){if(b.defaultPrevented||b.keyCode!==pq.ENTER)return;let{content:y,clientId:_}=f.current;if(y.length)return;let x=l(_);if(!(0,Gf.hasBlockSupport)(u(x),"__experimentalOnEnter",!1))return;let w=c(x),C=w.indexOf(_);if(C===w.length-1){let P=x;for(;!d(u(_),l(P));)P=l(P);typeof P=="string"&&(b.preventDefault(),o([_],x,l(P),s(P)+1));return}let T=(0,Gf.getDefaultBlockName)();if(!d(T,l(x)))return;b.preventDefault();let N=m(x);t(()=>{n([x]);let P=s(x);a(x,N.innerBlocks.slice(0,C)),a(p(x),N.innerBlocks.slice(C+1)),i((0,Gf.createBlock)(T),P+1,l(x),!0)})}return g.addEventListener("keydown",v),()=>{g.removeEventListener("keydown",v)}},[])}var fq=r(xe()),$k=r(F()),gq=r(wd()),hq=r(z()),vq=r(S());function bq(e,t,o){let{__unstableMarkNextChangeAsNotPersistent:a}=(0,hq.useDispatch)(vq.store),n=(0,fq.useEvent)(()=>{(0,gq.default)("align attribute in paragraph block",{alternative:"style.typography.textAlign",since:"7.0"}),a(),o({style:{...t,typography:{...t?.typography,textAlign:e}}})}),i=(0,$k.useRef)();(0,$k.useEffect)(()=>{e!==i.current&&(i.current=e,n())},[e,n])}var ei=r(h());function $fe({direction:e,setDirection:t}){return(0,pn.isRTL)()&&(0,ei.jsx)($f.ToolbarButton,{icon:_8,title:(0,pn._x)("Left to right","editor button"),isActive:e==="ltr",onClick:()=>{t(e==="ltr"?void 0:"ltr")}})}function zP(e){return e===((0,pn.isRTL)()?"left":"right")||e==="center"}function Wfe({clientId:e,attributes:t,setAttributes:o,name:a}){let[n]=(0,dn.useSettings)("typography.dropCap");if(!n)return null;let{style:i,dropCap:l}=t,s=i?.typography?.textAlign,c;zP(s)?c=(0,pn.__)("Not available for aligned text."):l?c=(0,pn.__)("Showing large initial letter."):c=(0,pn.__)("Show a large initial letter.");let u=(0,yq.getBlockSupport)(a,"typography.defaultControls.dropCap",!1);return(0,ei.jsx)(dn.InspectorControls,{group:"typography",children:(0,ei.jsx)($f.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,pn.__)("Drop cap"),isShownByDefault:u,onDeselect:()=>o({dropCap:!1}),resetAllFilter:()=>({dropCap:!1}),panelId:e,children:(0,ei.jsx)($f.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,pn.__)("Drop cap"),checked:!!l,onChange:()=>o({dropCap:!l}),help:c,disabled:zP(s)})})})}function qfe({attributes:e,mergeBlocks:t,onReplace:o,onRemove:a,setAttributes:n,clientId:i,isSelected:l,name:s}){let{content:c,direction:u,dropCap:m,placeholder:p,style:d}=e,f=d?.typography?.textAlign;bq(e.align,d,n);let g=(0,dn.useBlockProps)({ref:dq({clientId:i,content:c}),className:k({"has-drop-cap":zP(f)?!1:m}),style:{direction:u}}),v=(0,dn.useBlockEditingMode)();return(0,ei.jsxs)(ei.Fragment,{children:[v==="default"&&(0,ei.jsx)(dn.BlockControls,{group:"block",children:(0,ei.jsx)($fe,{direction:u,setDirection:b=>n({direction:b})})}),l&&(0,ei.jsx)(Wfe,{name:s,clientId:i,attributes:e,setAttributes:n}),(0,ei.jsx)(dn.RichText,{identifier:"content",tagName:"p",...g,value:c,onChange:b=>n({content:b}),onMerge:t,onReplace:o,onRemove:a,"aria-label":dn.RichText.isEmpty(c)?(0,pn.__)("Empty block; start writing or type forward slash to choose a block"):(0,pn.__)("Block: Paragraph"),"data-empty":dn.RichText.isEmpty(c),placeholder:p||(0,pn.__)("Type / to choose a block"),"data-custom-placeholder":p?!0:void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0})]})}var _q=qfe;var AP="core/paragraph";var Wk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:AP,title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{splitting:!0,anchor:!0,className:!1,__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,textAlign:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,fitText:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};var qk=r(S()),kq=r(B()),VP=r(h());function wq({attributes:e}){let{content:t,dropCap:o,direction:a,style:n}=e,i=n?.typography?.textAlign,l=k({"has-drop-cap":i===((0,kq.isRTL)()?"left":"right")||i==="center"?!1:o});return(0,VP.jsx)("p",{...qk.useBlockProps.save({className:l,dir:a}),children:(0,VP.jsx)(qk.RichText.Content,{value:t})})}var Zk=r(U());var Zfe={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){let t=(0,Zk.getBlockAttributes)(AP,e.outerHTML),{textAlign:o}=e.style||{};return(o==="left"||o==="center"||o==="right")&&(t.style={...t.style,typography:{...t.style?.typography,textAlign:o}}),(0,Zk.createBlock)(AP,t)}}]},Cq=Zfe;var k1=r(B()),Kk=r(E());var FP=r(h()),Kfe=[{name:"paragraph",title:(0,k1.__)("Paragraph"),description:(0,k1.__)("Start with the basic building block of all narrative."),isDefault:!0,scope:["block","inserter","transform"],attributes:{fitText:void 0},icon:Mh},{name:"stretchy-paragraph",title:(0,k1.__)("Stretchy Paragraph"),description:(0,k1.__)("Paragraph that resizes to fit its container."),icon:(0,FP.jsx)(Kk.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,FP.jsx)(Kk.Path,{d:"M3 9c0 2.8 2.2 5 5 5v-.2V20h1.5V5.5H12V20h1.5V5.5h3V4H8C5.2 4 3 6.2 3 9Zm16.2-.2v1.5h2.2L17.7 14l1.1 1.1 3.7-3.7v2.2H24V8.8h-4.8Z"})}),attributes:{fitText:!0},scope:["inserter","transform"],isActive:e=>e.fitText===!0}],Sq=Kfe;var{fieldsKey:Qfe,formKey:Yfe}=Q(Tq.privateApis),{name:Xk}=Wk,Yk={icon:Mh,example:{attributes:{content:(0,Qk.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},__experimentalLabel(e,{context:t}){let o=e?.metadata?.name;if(t==="list-view"&&o)return o;if(t==="accessibility"){if(o)return o;let{content:a}=e;return!a||a.length===0?(0,Qk.__)("Empty"):a}},transforms:Cq,deprecated:cq,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:_q,save:wq,variations:Sq};window.__experimentalContentOnlyInspectorFields&&(Yk[Qfe]=[{id:"content",label:(0,Qk.__)("Content"),type:"richtext"}],Yk[Yfe]={fields:["content"]});var Xfe=()=>D({name:Xk,metadata:Wk,settings:Yk});var UP={};$(UP,{init:()=>rge,metadata:()=>Jk,name:()=>Iq,settings:()=>Dq});var Nq=r(B());var Jk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Author",category:"theme",description:"Display post author details such as name, avatar, and bio.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},filter:{duotone:!0}},selectors:{filter:{duotone:".wp-block-post-author .wp-block-post-author__avatar img"}},editorStyle:"wp-block-post-author-editor",style:"wp-block-post-author"};var bl=r(S()),Hr=r(L()),Bq=r(xe()),e4=r(Y()),w1=r(z()),t4=r(F()),OP=r(jo()),So=r(B());var ft=r(h()),ege={who:"authors",per_page:100,_fields:"id,name",context:"view"};function tge({value:e,onChange:t}){let[o,a]=(0,t4.useState)(""),{authors:n,isLoading:i}=(0,w1.useSelect)(s=>{let{getUsers:c,isResolving:u}=s(e4.store),m={...ege};return o&&(m.search=o,m.search_columns=["name"]),{authors:c(m),isLoading:u("getUsers",[m])}},[o]),l=(0,t4.useMemo)(()=>{let s=(n??[]).map(m=>({value:m.id,label:(0,OP.decodeEntities)(m.name)})),c=s.findIndex(m=>e?.id===m.value),u=[];return c<0&&e?u=[{value:e.id,label:(0,OP.decodeEntities)(e.name)}]:c<0&&!e&&(u=[{value:0,label:(0,So.__)("(No author)")}]),[...u,...s]},[n,e]);return(0,ft.jsx)(Hr.ComboboxControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,So.__)("Author"),options:l,value:e?.id,onFilterValueChange:(0,Bq.debounce)(a,300),onChange:t,allowReset:!1,isLoading:i})}function oge({isSelected:e,context:{postType:t,postId:o,queryId:a},attributes:n,setAttributes:i}){let l=Number.isFinite(a),s=G(),c=rh(),{authorDetails:u,canAssignAuthor:m,supportsAuthor:p}=(0,w1.useSelect)(M=>{let{getEditedEntityRecord:R,getUser:H,getPostType:O}=M(e4.store),A=R("postType",t,o),I=A?.author;return{authorDetails:I?H(I,{context:"view"}):null,supportsAuthor:O(t)?.supports?.author??!1,canAssignAuthor:!!A?._links?.["wp:action-assign-author"]}},[t,o]),{editEntityRecord:d}=(0,w1.useDispatch)(e4.store),{textAlign:f,showAvatar:g,showBio:v,byline:b,isLink:y,linkTarget:_,avatarSize:x}=n,w=[],C=u?.name||(0,So.__)("Post Author");u?.avatar_urls&&Object.keys(u.avatar_urls).forEach(M=>{w.push({value:M,label:`${M} x ${M}`})});let T=(0,bl.useBlockProps)({className:k({[`has-text-align-${f}`]:f})}),N=M=>{d("postType",t,o,{author:M})},P=!!o&&!l&&m;return!p&&t!==void 0?(0,ft.jsx)("div",{...T,children:(0,So.sprintf)((0,So.__)("This post type (%s) does not support the author."),t)}):(0,ft.jsxs)(ft.Fragment,{children:[(0,ft.jsx)(bl.InspectorControls,{children:(0,ft.jsxs)(Hr.__experimentalToolsPanel,{label:(0,So.__)("Settings"),resetAll:()=>{i({avatarSize:48,showAvatar:!0,isLink:!1,linkTarget:"_self"})},dropdownMenuProps:s,children:[P&&(0,ft.jsx)("div",{style:{gridColumn:"1 / -1"},children:(0,ft.jsx)(tge,{value:u,onChange:N})}),(0,ft.jsx)(Hr.__experimentalToolsPanelItem,{label:(0,So.__)("Show avatar"),isShownByDefault:!0,hasValue:()=>!g,onDeselect:()=>i({showAvatar:!0}),children:(0,ft.jsx)(Hr.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,So.__)("Show avatar"),checked:g,onChange:()=>i({showAvatar:!g})})}),g&&(0,ft.jsx)(Hr.__experimentalToolsPanelItem,{label:(0,So.__)("Avatar size"),isShownByDefault:!0,hasValue:()=>x!==48,onDeselect:()=>i({avatarSize:48}),children:(0,ft.jsx)(Hr.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,So.__)("Avatar size"),value:x,options:w,onChange:M=>{i({avatarSize:Number(M)})}})}),(0,ft.jsx)(Hr.__experimentalToolsPanelItem,{label:(0,So.__)("Show bio"),isShownByDefault:!0,hasValue:()=>!!v,onDeselect:()=>i({showBio:void 0}),children:(0,ft.jsx)(Hr.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,So.__)("Show bio"),checked:!!v,onChange:()=>i({showBio:!v})})}),(0,ft.jsx)(Hr.__experimentalToolsPanelItem,{label:(0,So.__)("Link author name to author page"),isShownByDefault:!0,hasValue:()=>!!y,onDeselect:()=>i({isLink:!1}),children:(0,ft.jsx)(Hr.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,So.__)("Link author name to author page"),checked:y,onChange:()=>i({isLink:!y})})}),y&&(0,ft.jsx)(Hr.__experimentalToolsPanelItem,{label:(0,So.__)("Link target"),isShownByDefault:!0,hasValue:()=>_!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,ft.jsx)(Hr.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,So.__)("Open in new tab"),onChange:M=>i({linkTarget:M?"_blank":"_self"}),checked:_==="_blank"})})]})}),(0,ft.jsx)(bl.BlockControls,{group:"block",children:(0,ft.jsx)(bl.AlignmentControl,{value:f,onChange:M=>{i({textAlign:M})}})}),(0,ft.jsxs)("div",{...T,children:[g&&(0,ft.jsx)("div",{className:"wp-block-post-author__avatar",children:(0,ft.jsx)("img",{width:x,src:u?.avatar_urls?.[x]||c,alt:u?.name||(0,So.__)("Default Avatar")})}),(0,ft.jsxs)("div",{className:"wp-block-post-author__content",children:[(!bl.RichText.isEmpty(b)||e)&&(0,ft.jsx)(bl.RichText,{identifier:"byline",className:"wp-block-post-author__byline","aria-label":(0,So.__)("Post author byline text"),placeholder:(0,So.__)("Write byline\u2026"),value:b,onChange:M=>i({byline:M})}),(0,ft.jsx)("p",{className:"wp-block-post-author__name",children:y?(0,ft.jsx)("a",{href:"#post-author-pseudo-link",onClick:M=>M.preventDefault(),children:C}):C}),v&&(0,ft.jsx)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:u?.description}})]})]})]})}var Pq=oge;var{name:Iq}=Jk,Dq={icon:km,example:{viewportWidth:350,attributes:{showBio:!0,byline:(0,Nq.__)("Posted by")}},edit:Pq},rge=()=>D({name:Iq,metadata:Jk,settings:Dq});var $P={};$($P,{init:()=>lge,metadata:()=>o4,name:()=>Hq,settings:()=>zq});var o4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-name",title:"Author Name",category:"theme",description:"The author name.",textdomain:"default",attributes:{textAlign:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},usesContext:["postType","postId"],example:{viewportWidth:350},supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-author-name"};var Pu=r(S()),Eq=r(z()),ds=r(B()),Mq=r(Y()),Bu=r(L());var Da=r(h());function nge({context:{postType:e,postId:t},attributes:{textAlign:o,isLink:a,linkTarget:n},setAttributes:i}){let{authorName:l,supportsAuthor:s}=(0,Eq.useSelect)(d=>{let{getEditedEntityRecord:f,getUser:g,getPostType:v}=d(Mq.store),b=f("postType",e,t)?.author;return{authorName:b?g(b):null,supportsAuthor:v(e)?.supports?.author??!1}},[e,t]),c=(0,Pu.useBlockProps)({className:k({[`has-text-align-${o}`]:o})}),u=l?.name||(0,ds.__)("Author Name"),m=a?(0,Da.jsx)("a",{href:"#author-pseudo-link",onClick:d=>d.preventDefault(),className:"wp-block-post-author-name__link",children:u}):u,p=G();return(0,Da.jsxs)(Da.Fragment,{children:[(0,Da.jsx)(Pu.BlockControls,{group:"block",children:(0,Da.jsx)(Pu.AlignmentControl,{value:o,onChange:d=>{i({textAlign:d})}})}),(0,Da.jsx)(Pu.InspectorControls,{children:(0,Da.jsxs)(Bu.__experimentalToolsPanel,{label:(0,ds.__)("Settings"),resetAll:()=>{i({isLink:!1,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,Da.jsx)(Bu.__experimentalToolsPanelItem,{label:(0,ds.__)("Link to author archive"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>i({isLink:!1}),children:(0,Da.jsx)(Bu.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ds.__)("Link to author archive"),onChange:()=>i({isLink:!a}),checked:a})}),a&&(0,Da.jsx)(Bu.__experimentalToolsPanelItem,{label:(0,ds.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>n!=="_self",onDeselect:()=>i({linkTarget:"_self"}),children:(0,Da.jsx)(Bu.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ds.__)("Open in new tab"),onChange:d=>i({linkTarget:d?"_blank":"_self"}),checked:n==="_blank"})})]})}),(0,Da.jsx)("div",{...c,children:!s&&e!==void 0?(0,ds.sprintf)((0,ds.__)("This post type (%s) does not support the author."),e):m})]})}var Lq=nge;var GP=r(U()),ige={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,GP.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,GP.createBlock)("core/post-author",{textAlign:e})}]},Rq=ige;var{name:Hq}=o4,zq={icon:km,transforms:Rq,edit:Lq},lge=()=>D({name:Hq,metadata:o4,settings:zq});var WP={};$(WP,{init:()=>uge,metadata:()=>r4,name:()=>Oq,settings:()=>Uq});var r4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-biography",title:"Author Biography",category:"theme",description:"The author biography.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postType","postId"],example:{viewportWidth:350},supports:{spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-author-biography"};var Wf=r(S()),Aq=r(z()),Vq=r(B()),Fq=r(Y()),Nu=r(h());function cge({context:{postType:e,postId:t},attributes:{textAlign:o},setAttributes:a}){let{authorDetails:n}=(0,Aq.useSelect)(s=>{let{getEditedEntityRecord:c,getUser:u}=s(Fq.store),m=c("postType",e,t)?.author;return{authorDetails:m?u(m):null}},[e,t]),i=(0,Wf.useBlockProps)({className:k({[`has-text-align-${o}`]:o})}),l=n?.description||(0,Vq.__)("Author Biography");return(0,Nu.jsxs)(Nu.Fragment,{children:[(0,Nu.jsx)(Wf.BlockControls,{group:"block",children:(0,Nu.jsx)(Wf.AlignmentControl,{value:o,onChange:s=>{a({textAlign:s})}})}),(0,Nu.jsx)("div",{...i,dangerouslySetInnerHTML:{__html:l}})]})}var jq=cge;var{name:Oq}=r4,Uq={icon:km,edit:jq},uge=()=>D({name:Oq,metadata:r4,settings:Uq});var qP={};$(qP,{init:()=>dge,metadata:()=>a4,name:()=>Zq,settings:()=>Kq});var a4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comment",title:"Comment (deprecated)",category:"theme",allowedBlocks:["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],description:"This block is deprecated. Please use the Comments block instead.",textdomain:"default",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1,inserter:!1,interactivity:{clientNavigation:!0}}};var C1=r(B()),qf=r(L()),Gq=r(F());var n4=r(S()),Sp=r(h()),pge=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function $q({attributes:{commentId:e},setAttributes:t}){let[o,a]=(0,Gq.useState)(e),n=(0,n4.useBlockProps)(),i=(0,n4.useInnerBlocksProps)(n,{template:pge});return e?(0,Sp.jsx)("div",{...i}):(0,Sp.jsx)("div",{...n,children:(0,Sp.jsxs)(qf.Placeholder,{icon:_6,label:(0,C1._x)("Post Comment","block title"),instructions:(0,C1.__)("To show a comment, input the comment ID."),children:[(0,Sp.jsx)(qf.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:e,onChange:l=>a(parseInt(l))}),(0,Sp.jsx)(qf.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t({commentId:o})},children:(0,C1.__)("Save")})]})})}var i4=r(S()),Wq=r(h());function qq(){let e=i4.useBlockProps.save(),t=i4.useInnerBlocksProps.save(e);return(0,Wq.jsx)("div",{...t})}var{name:Zq}=a4,Kq={icon:fh,edit:$q,save:qq},dge=()=>D({name:Zq,metadata:a4,settings:Kq});var ZP={};$(ZP,{init:()=>hge,metadata:()=>l4,name:()=>tZ,settings:()=>oZ});var l4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-count",title:"Comments Count",category:"theme",description:"Display a post's comments count.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId"],example:{viewportWidth:350},supports:{html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-post-comments-count"};var Zf=r(S()),s4=r(F()),Qq=r(C0()),Yq=r(ko()),Iu=r(h());function Xq({attributes:e,context:t,setAttributes:o}){let{textAlign:a}=e,{postId:n}=t,[i,l]=(0,s4.useState)(),s=(0,Zf.useBlockProps)({className:k({[`has-text-align-${a}`]:a})});(0,s4.useEffect)(()=>{if(!n)return;let m=n;(0,Qq.default)({path:(0,Yq.addQueryArgs)("/wp/v2/comments",{post:n}),parse:!1}).then(p=>{m===n&&l(p.headers.get("X-WP-Total"))})},[n]);let c=n&&i!==void 0,u={...s.style,textDecoration:c?s.style?.textDecoration:void 0};return(0,Iu.jsxs)(Iu.Fragment,{children:[(0,Iu.jsx)(Zf.BlockControls,{group:"block",children:(0,Iu.jsx)(Zf.AlignmentControl,{value:a,onChange:m=>{o({textAlign:m})}})}),(0,Iu.jsx)("div",{...s,style:u,children:c?i:"0"})]})}var Jq=r(U()),gge={to:[{type:"block",blocks:["core/post-comments-link"],transform:({textAlign:e})=>(0,Jq.createBlock)("core/post-comments-link",{textAlign:e})}]},eZ=gge;var{name:tZ}=l4,oZ={icon:Rh,edit:Xq,transforms:eZ},hge=()=>D({name:tZ,metadata:l4,settings:oZ});var QP={};$(QP,{init:()=>bge,metadata:()=>c4,name:()=>nZ,settings:()=>iZ});var c4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-form",title:"Comments Form",category:"theme",description:"Display a post's comments form.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-post-comments-form-editor",style:["wp-block-post-comments-form","wp-block-buttons","wp-block-button"],example:{attributes:{textAlign:"center"}}};var Kf=r(S()),rZ=r(L()),aZ=r(xe()),u4=r(B());var fs=r(h());function KP({attributes:e,context:t,setAttributes:o}){let{textAlign:a}=e,{postId:n,postType:i}=t,l=(0,aZ.useInstanceId)(KP),s=(0,u4.sprintf)("comments-form-edit-%d-desc",l),c=(0,Kf.useBlockProps)({className:k({[`has-text-align-${a}`]:a}),"aria-describedby":s});return(0,fs.jsxs)(fs.Fragment,{children:[(0,fs.jsx)(Kf.BlockControls,{group:"block",children:(0,fs.jsx)(Kf.AlignmentControl,{value:a,onChange:u=>{o({textAlign:u})}})}),(0,fs.jsxs)("div",{...c,children:[(0,fs.jsx)(b_,{postId:n,postType:i}),(0,fs.jsx)(rZ.VisuallyHidden,{id:s,children:(0,u4.__)("Comments form disabled in editor.")})]})]})}var{name:nZ}=c4,iZ={icon:B7,edit:KP},bge=()=>D({name:nZ,metadata:c4,settings:iZ});var YP={};$(YP,{init:()=>kge,metadata:()=>m4,name:()=>fZ,settings:()=>gZ});var m4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-link",title:"Comments Link",category:"theme",description:"Displays the link to the current post comments.",textdomain:"default",usesContext:["postType","postId"],attributes:{textAlign:{type:"string"}},example:{viewportWidth:350},supports:{html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-comments-link"};var Qf=r(S()),p4=r(F()),lZ=r(z()),sZ=r(C0()),cZ=r(ko()),Tp=r(B()),uZ=r(Y()),gs=r(h());function _ge({context:e,attributes:t,setAttributes:o}){let{textAlign:a}=t,{postType:n,postId:i}=e,[l,s]=(0,p4.useState)(),c=(0,Qf.useBlockProps)({className:k({[`has-text-align-${a}`]:a})});(0,p4.useEffect)(()=>{if(!i)return;let p=i;(0,sZ.default)({path:(0,cZ.addQueryArgs)("/wp/v2/comments",{post:i}),parse:!1}).then(d=>{p===i&&s(d.headers.get("X-WP-Total"))})},[i]);let u=(0,lZ.useSelect)(p=>p(uZ.store).getEditedEntityRecord("postType",n,i),[n,i]),m;if(l!==void 0){let p=parseInt(l);p===0?m=(0,Tp.__)("No comments"):m=(0,Tp.sprintf)((0,Tp._n)("%s comment","%s comments",p),p.toLocaleString())}return(0,gs.jsxs)(gs.Fragment,{children:[(0,gs.jsx)(Qf.BlockControls,{group:"block",children:(0,gs.jsx)(Qf.AlignmentControl,{value:a,onChange:p=>{o({textAlign:p})}})}),(0,gs.jsx)("div",{...c,children:u?.link&&m!==void 0?(0,gs.jsx)("a",{href:u?.link+"#comments",onClick:p=>p.preventDefault(),children:m}):(0,gs.jsx)("a",{href:"#post-comments-link-pseudo-link",onClick:p=>p.preventDefault(),children:(0,Tp.__)("No comments")})})]})}var mZ=_ge;var pZ=r(U()),xge={to:[{type:"block",blocks:["core/post-comments-count"],transform:({textAlign:e})=>(0,pZ.createBlock)("core/post-comments-count",{textAlign:e})}]},dZ=xge;var{name:fZ}=m4,gZ={edit:mZ,icon:Rh,transforms:dZ},kge=()=>D({name:fZ,metadata:m4,settings:gZ});var XP={};$(XP,{init:()=>Dge,metadata:()=>d4,name:()=>_Z,settings:()=>xZ});var d4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{tagName:{type:"string",default:"div"}},example:{viewportWidth:350},supports:{align:["wide","full"],html:!1,layout:!0,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},dimensions:{minHeight:!0},spacing:{blockGap:!0,padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!1,text:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-content",editorStyle:"wp-block-post-content-editor"};var Bp=r(B()),Eo=r(S()),hZ=r(U()),Yf=r(Y()),vZ=r(z()),bZ=r(F());var Wt=r(h()),{HTMLElementControl:Cge}=Q(Eo.privateApis);function Sge({parentLayout:e,layoutClassNames:t,userCanEdit:o,postType:a,postId:n,tagName:i="div"}){let[,,l]=(0,Yf.useEntityProp)("postType",a,"content",n),s=(0,Eo.useBlockProps)({className:t}),c=(0,bZ.useMemo)(()=>l?.raw?(0,hZ.parse)(l.raw):[],[l?.raw]),u=(0,Eo.__experimentalUseBlockPreview)({blocks:c,props:s,layout:e});return o?(0,Wt.jsx)("div",{...u}):l?.protected?(0,Wt.jsx)(i,{...s,children:(0,Wt.jsx)(Eo.Warning,{children:(0,Bp.__)("This content is password protected.")})}):(0,Wt.jsx)(i,{...s,dangerouslySetInnerHTML:{__html:l?.rendered}})}function Tge({context:e={},tagName:t="div"}){let{postType:o,postId:a}=e,[n,i,l]=(0,Yf.useEntityBlockEditor)("postType",o,{id:a}),c=!!(0,vZ.useSelect)(p=>p(Yf.store).getEntityRecord("postType",o,a),[o,a])?.content?.raw||n?.length,u=[["core/paragraph"]],m=(0,Eo.useInnerBlocksProps)((0,Eo.useBlockProps)({className:"entry-content"}),{value:n,onInput:i,onChange:l,template:c?void 0:u});return(0,Wt.jsx)(t,{...m})}function Bge(e){let{context:{queryId:t,postType:o,postId:a}={},layoutClassNames:n,tagName:i}=e,l=W2("postType",o,a);if(l===void 0)return null;let s=Number.isFinite(t);return l&&!s?(0,Wt.jsx)(Tge,{...e}):(0,Wt.jsx)(Sge,{parentLayout:e.parentLayout,layoutClassNames:n,userCanEdit:l,postType:o,postId:a,tagName:i})}function Pge({layoutClassNames:e}){let t=(0,Eo.useBlockProps)({className:e});return(0,Wt.jsxs)("div",{...t,children:[(0,Wt.jsx)("p",{children:(0,Bp.__)("This is the Content block, it will display all the blocks in any single post or page.")}),(0,Wt.jsx)("p",{children:(0,Bp.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")}),(0,Wt.jsx)("p",{children:(0,Bp.__)("If there are any Custom Post Types registered at your site, the Content block can display the contents of those entries as well.")})]})}function Nge(){let e=(0,Eo.useBlockProps)();return(0,Wt.jsx)("div",{...e,children:(0,Wt.jsx)(Eo.Warning,{children:(0,Bp.__)("Block cannot be rendered inside itself.")})})}function Ige({tagName:e,onSelectTagName:t,clientId:o}){return(0,Wt.jsx)(Eo.InspectorControls,{group:"advanced",children:(0,Wt.jsx)(Cge,{tagName:e,onChange:t,clientId:o,options:[{label:(0,Bp.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"}]})})}function yZ({context:e,attributes:{tagName:t="div"},setAttributes:o,clientId:a,__unstableLayoutClassNames:n,__unstableParentLayout:i}){let{postId:l,postType:s}=e,c=(0,Eo.useHasRecursion)(l);return l&&s&&c?(0,Wt.jsx)(Nge,{}):(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsx)(Ige,{tagName:t,onSelectTagName:m=>{o({tagName:m})},clientId:a}),(0,Wt.jsx)(Eo.RecursionProvider,{uniqueId:l,children:l&&s?(0,Wt.jsx)(Bge,{context:e,parentLayout:i,layoutClassNames:n}):(0,Wt.jsx)(Pge,{layoutClassNames:n})})]})}var{name:_Z}=d4,xZ={icon:D7,edit:yZ},Dge=()=>D({name:_Z,metadata:d4,settings:xZ});var JP={};$(JP,{init:()=>Age,metadata:()=>f4,name:()=>PZ,settings:()=>NZ});var f4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-date",title:"Date",category:"theme",description:"Display a custom date.",textdomain:"default",attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var kZ=r(Y()),Xf=r(F()),Pp=r(S_()),la=r(S()),ti=r(L()),Ea=r(B());var wZ=r(Ui()),S1=r(z()),CZ=r(U());var Mo=r(h());function SZ({attributes:e,context:{postType:t,queryId:o},setAttributes:a,name:n}){let{datetime:i,textAlign:l,format:s,isLink:c}=e,u=(0,la.useBlockProps)({className:k({[`has-text-align-${l}`]:l})}),m=G(),[p,d]=(0,Xf.useState)(null),f=(0,Xf.useMemo)(()=>({anchor:p}),[p]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,S1.useDispatch)(la.store);(0,Xf.useEffect)(()=>{i===void 0&&(g(),a({datetime:new Date}))},[i]);let v=Number.isFinite(o),b=(0,Pp.getSettings)(),{postType:y,siteFormat:_=b.formats.date,siteTimeFormat:x=b.formats.time}=(0,S1.useSelect)(N=>{let{getPostType:P,getEntityRecord:M}=N(kZ.store),R=M("root","site");return{siteFormat:R?.date_format,siteTimeFormat:R?.time_format,postType:t?P(t):null}},[t]),w=(0,S1.useSelect)(N=>N(CZ.store).getActiveBlockVariation(n,e)?.name,[n,e]),C=(0,la.useBlockEditingMode)(),T=(0,Mo.jsx)("time",{dateTime:(0,Pp.dateI18n)("c",i),ref:d,children:s==="human-diff"?(0,Pp.humanTimeDiff)(i):(0,Pp.dateI18n)(s||_,i)});return c&&i&&(T=(0,Mo.jsx)("a",{href:"#post-date-pseudo-link",onClick:N=>N.preventDefault(),children:T})),(0,Mo.jsxs)(Mo.Fragment,{children:[(C==="default"||!v)&&(0,Mo.jsxs)(la.BlockControls,{group:"block",children:[(0,Mo.jsx)(la.AlignmentControl,{value:l,onChange:N=>{a({textAlign:N})}}),w!=="post-date-modified"&&(!v||!w)&&(0,Mo.jsx)(ti.ToolbarGroup,{children:(0,Mo.jsx)(ti.Dropdown,{popoverProps:f,renderContent:({onClose:N})=>(0,Mo.jsx)(la.__experimentalPublishDateTimePicker,{title:w==="post-date"?(0,Ea.__)("Publish Date"):(0,Ea.__)("Date"),currentDate:i,onChange:P=>a({datetime:P}),is12Hour:Mge(x),onClose:N,dateOrder:(0,Ea._x)("dmy","date order")}),renderToggle:({isOpen:N,onToggle:P})=>{let M=R=>{!N&&R.keyCode===wZ.DOWN&&(R.preventDefault(),P())};return(0,Mo.jsx)(ti.ToolbarButton,{"aria-expanded":N,icon:xm,title:(0,Ea.__)("Change Date"),onClick:P,onKeyDown:M})}})})]}),(0,Mo.jsx)(la.InspectorControls,{children:(0,Mo.jsxs)(ti.__experimentalToolsPanel,{label:(0,Ea.__)("Settings"),resetAll:()=>{a({datetime:void 0,format:void 0,isLink:!1})},dropdownMenuProps:m,children:[(0,Mo.jsx)(ti.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Ea.__)("Date Format"),onDeselect:()=>a({format:void 0}),isShownByDefault:!0,children:(0,Mo.jsx)(la.__experimentalDateFormatPicker,{format:s,defaultFormat:_,onChange:N=>a({format:N})})}),(0,Mo.jsx)(ti.__experimentalToolsPanelItem,{hasValue:()=>c!==!1,label:y?.labels.singular_name?(0,Ea.sprintf)((0,Ea.__)("Link to %s"),y.labels.singular_name.toLowerCase()):(0,Ea.__)("Link to post"),onDeselect:()=>a({isLink:!1}),isShownByDefault:!0,children:(0,Mo.jsx)(ti.ToggleControl,{__nextHasNoMarginBottom:!0,label:y?.labels.singular_name?(0,Ea.sprintf)((0,Ea.__)("Link to %s"),y.labels.singular_name.toLowerCase()):(0,Ea.__)("Link to post"),onChange:()=>a({isLink:!c}),checked:c})})]})}),(0,Mo.jsx)("div",{...u,children:T})]})}function Mge(e){return/(?:^|[^\\])[aAgh]/.test(e)}var Lge={attributes:{datetime:{type:"string",role:"content"},textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({metadata:{bindings:{datetime:{source:e,args:{key:t,...o}},...a},...n},...i}){return{metadata:{bindings:{datetime:{source:e,args:{field:t,...o}},...a},...n},...i}},isEligible(e){return e?.metadata?.bindings?.datetime?.source==="core/post-data"&&!!e?.metadata?.bindings?.datetime?.args?.key}},Rge={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1,role:"content"},displayType:{type:"string",default:"date"}},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},save(){return null},migrate({className:e,displayType:t,metadata:o,...a}){if(t==="date"||t==="modified")return t==="modified"&&(e=k(e,"wp-block-post-date__modified-date")),{...a,className:e,metadata:{...o,bindings:{datetime:{source:"core/post-data",args:{field:t}}}}}},isEligible(e){return!e.datetime&&!e?.metadata?.bindings?.datetime}},Hge={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},TZ=[Lge,Rge,Hge];var T1=r(B()),zge=[{name:"post-date",title:(0,T1.__)("Post Date"),description:(0,T1.__)("Display a post's publish date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}},scope:["inserter","transform"],isActive:e=>e?.metadata?.bindings?.datetime?.source==="core/post-data"&&e?.metadata?.bindings?.datetime?.args?.field==="date"},{name:"post-date-modified",title:(0,T1.__)("Modified Date"),description:(0,T1.__)("Display a post's last updated date."),attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"modified"}}}},className:"wp-block-post-date__modified-date"},scope:["inserter","transform"],isActive:e=>e?.metadata?.bindings?.datetime?.source==="core/post-data"&&e?.metadata?.bindings?.datetime?.args?.field==="modified"}],BZ=zge;var{name:PZ}=f4,NZ={icon:Ah,edit:SZ,deprecated:TZ,variations:BZ},Age=()=>D({name:PZ,metadata:f4,settings:NZ});var tN={};$(tN,{init:()=>jge,metadata:()=>g4,name:()=>RZ,settings:()=>HZ});var g4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-excerpt",title:"Excerpt",category:"theme",description:"Display the excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string",role:"content"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"};var h4=r(Y()),DZ=r(F()),zr=r(S()),dc=r(L()),Ma=r(B()),EZ=r(z());var Ft=r(h()),IZ="\u2026";function MZ({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:o,excerptLength:a},setAttributes:n,isSelected:i,context:{postId:l,postType:s,queryId:c}}){let m=(0,zr.useBlockEditingMode)()==="default",p=Number.isFinite(c),d=W2("postType",s,l),[f,g,{rendered:v,protected:b}={}]=(0,h4.useEntityProp)("postType",s,"excerpt",l),y=G(),_=(0,EZ.useSelect)(A=>s==="page"?!0:!!A(h4.store).getPostType(s)?.supports?.excerpt,[s]),x=d&&!p&&_,w=(0,zr.useBlockProps)({className:k({[`has-text-align-${e}`]:e})}),C=(0,Ma._x)("words","Word count type. Do not translate!"),T=(0,DZ.useMemo)(()=>{if(!v)return"";let A=new window.DOMParser().parseFromString(v,"text/html");return A.body.textContent||A.body.innerText||""},[v]);if(!s||!l)return(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(zr.BlockControls,{children:(0,Ft.jsx)(zr.AlignmentToolbar,{value:e,onChange:A=>n({textAlign:A})})}),(0,Ft.jsx)("div",{...w,children:(0,Ft.jsx)("p",{children:(0,Ma.__)("This block will display the excerpt.")})})]});if(b&&!d)return(0,Ft.jsx)("div",{...w,children:(0,Ft.jsx)(zr.Warning,{children:(0,Ma.__)("The content is currently protected and does not have the available excerpt.")})});let N=(0,Ft.jsx)(zr.RichText,{identifier:"moreText",className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Ma.__)("\u201CRead more\u201D link text"),placeholder:(0,Ma.__)('Add "read more" link text'),value:t,onChange:A=>n({moreText:A}),withoutInteractiveFormatting:!0}),P=k("wp-block-post-excerpt__excerpt",{"is-inline":!o}),M=(f||T).trim(),R="";if(C==="words")R=M.split(" ",a).join(" ");else if(C==="characters_excluding_spaces"){let A=M.split("",a).join(""),I=A.length-A.replaceAll(" ","").length;R=M.split("",a+I).join("")}else C==="characters_including_spaces"&&(R=M.split("",a).join(""));let H=R!==M,O=x?(0,Ft.jsx)(zr.RichText,{className:P,"aria-label":(0,Ma.__)("Excerpt text"),value:i?M:(H?R+IZ:M)||(0,Ma.__)("No excerpt found"),onChange:g,tagName:"p"}):(0,Ft.jsx)("p",{className:P,children:H?R+IZ:M||(0,Ma.__)("No excerpt found")});return(0,Ft.jsxs)(Ft.Fragment,{children:[m&&(0,Ft.jsx)(zr.BlockControls,{children:(0,Ft.jsx)(zr.AlignmentToolbar,{value:e,onChange:A=>n({textAlign:A})})}),(0,Ft.jsx)(zr.InspectorControls,{children:(0,Ft.jsxs)(dc.__experimentalToolsPanel,{label:(0,Ma.__)("Settings"),resetAll:()=>{n({showMoreOnNewLine:!0,excerptLength:55})},dropdownMenuProps:y,children:[(0,Ft.jsx)(dc.__experimentalToolsPanelItem,{hasValue:()=>o!==!0,label:(0,Ma.__)("Show link on new line"),onDeselect:()=>n({showMoreOnNewLine:!0}),isShownByDefault:!0,children:(0,Ft.jsx)(dc.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ma.__)("Show link on new line"),checked:o,onChange:A=>n({showMoreOnNewLine:A})})}),(0,Ft.jsx)(dc.__experimentalToolsPanelItem,{hasValue:()=>a!==55,label:(0,Ma.__)("Max number of words"),onDeselect:()=>n({excerptLength:55}),isShownByDefault:!0,children:(0,Ft.jsx)(dc.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Ma.__)("Max number of words"),value:a,onChange:A=>{n({excerptLength:A})},min:"10",max:"100"})})]})}),(0,Ft.jsxs)("div",{...w,children:[O,!o&&" ",o?(0,Ft.jsx)("p",{className:"wp-block-post-excerpt__more-text",children:N}):N]})]})}var eN=r(U()),Fge={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,eN.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,eN.createBlock)("core/post-content")}]},LZ=Fge;var{name:RZ}=g4,HZ={icon:M7,transforms:LZ,edit:MZ},jge=()=>D({name:RZ,metadata:g4,settings:HZ});var aN={};$(aN,{init:()=>Qge,metadata:()=>v4,name:()=>KZ,settings:()=>QZ});var v4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1,role:"content"},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:"",role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"},useFirstImageFromPost:{type:"boolean",default:!1}},usesContext:["postId","postType","queryId"],example:{viewportWidth:350},supports:{align:["left","right","center","wide","full"],color:{text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},filter:{duotone:!0},shadow:{__experimentalSkipSerialization:!0},html:!1,spacing:{margin:!0,padding:!0},interactivity:{clientNavigation:!0}},selectors:{border:".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay",shadow:".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder",filter:{duotone:".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before"}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"};var $Z=r(Po()),B1=r(Y()),P1=r(z()),Xo=r(L()),ho=r(S()),Lu=r(F()),br=r(B());var WZ=r(No());var sa=r(B()),vr=r(L()),zZ=r(S()),hr=r(h()),Uge=(0,hr.jsxs)(hr.Fragment,{children:[(0,hr.jsx)(vr.__experimentalToggleGroupControlOption,{value:"cover",label:(0,sa._x)("Cover","Scale option for Image dimension control")}),(0,hr.jsx)(vr.__experimentalToggleGroupControlOption,{value:"contain",label:(0,sa._x)("Contain","Scale option for Image dimension control")}),(0,hr.jsx)(vr.__experimentalToggleGroupControlOption,{value:"fill",label:(0,sa._x)("Fill","Scale option for Image dimension control")})]}),oN="cover",Gge={cover:(0,sa.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,sa.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,sa.__)("Image will be stretched and distorted to completely fill the space.")},$ge=({clientId:e,attributes:{aspectRatio:t,width:o,height:a,scale:n},setAttributes:i})=>{let[l,s,c,u]=(0,zZ.useSettings)("spacing.units","dimensions.aspectRatios.default","dimensions.aspectRatios.theme","dimensions.defaultAspectRatios"),m=(0,vr.__experimentalUseCustomUnits)({availableUnits:l||["px","%","vw","em","rem"]}),p=(y,_)=>{let x=parseFloat(_);isNaN(x)&&_||i({[y]:x<0?"0":_})},d=(0,sa._x)("Scale","Image scaling options"),f=a||t&&t!=="auto",g=c?.map(({name:y,ratio:_})=>({label:y,value:_})),v=s?.map(({name:y,ratio:_})=>({label:y,value:_})),b=[{label:(0,sa._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},...u?v:[],...g||[]];return(0,hr.jsxs)(hr.Fragment,{children:[(0,hr.jsx)(vr.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,sa.__)("Aspect ratio"),onDeselect:()=>i({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e,children:(0,hr.jsx)(vr.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,sa.__)("Aspect ratio"),value:t,options:b,onChange:y=>i({aspectRatio:y})})}),(0,hr.jsx)(vr.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!a,label:(0,sa.__)("Height"),onDeselect:()=>i({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e,children:(0,hr.jsx)(vr.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,sa.__)("Height"),labelPosition:"top",value:a||"",min:0,onChange:y=>p("height",y),units:m})}),(0,hr.jsx)(vr.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,sa.__)("Width"),onDeselect:()=>i({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e,children:(0,hr.jsx)(vr.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,sa.__)("Width"),labelPosition:"top",value:o||"",min:0,onChange:y=>p("width",y),units:m})}),f&&(0,hr.jsx)(vr.__experimentalToolsPanelItem,{hasValue:()=>!!n&&n!==oN,label:d,onDeselect:()=>i({scale:oN}),resetAllFilter:()=>({scale:oN}),isShownByDefault:!0,panelId:e,children:(0,hr.jsx)(vr.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:d,value:n,help:Gge[n],onChange:y=>i({scale:y}),isBlock:!0,children:Uge})})]})},AZ=$ge;var y4=r(L()),Eu=r(S()),VZ=r(xe()),b4=r(B()),Du=r(h()),Wge=({clientId:e,attributes:t,setAttributes:o,overlayColor:a,setOverlayColor:n})=>{let{dimRatio:i}=t,{gradientValue:l,setGradient:s}=(0,Eu.__experimentalUseGradient)(),c=(0,Eu.__experimentalUseMultipleOriginColorsAndGradients)();return c.hasColorsOrGradients?(0,Du.jsxs)(Du.Fragment,{children:[(0,Du.jsx)(Eu.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:a.color,gradientValue:l,label:(0,b4.__)("Overlay"),onColorChange:n,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0}),clearable:!0}],panelId:e,...c}),(0,Du.jsx)(y4.__experimentalToolsPanelItem,{hasValue:()=>i!==void 0,label:(0,b4.__)("Overlay opacity"),onDeselect:()=>o({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e,children:(0,Du.jsx)(y4.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,b4.__)("Overlay opacity"),value:i,onChange:u=>o({dimRatio:u}),min:0,max:100,step:10,required:!0,__next40pxDefaultSize:!0})})]}):null},FZ=(0,VZ.compose)([(0,Eu.withColors)({overlayColor:"background-color"})])(Wge);var Mu=r(S()),OZ=r(xe());function jZ(e){return e===void 0?null:"has-background-dim-"+10*Math.round(e/10)}var UZ=r(h()),qge=({attributes:e,overlayColor:t})=>{let{dimRatio:o}=e,{gradientClass:a,gradientValue:n}=(0,Mu.__experimentalUseGradient)(),i=(0,Mu.__experimentalUseMultipleOriginColorsAndGradients)(),l=(0,Mu.__experimentalUseBorderProps)(e),s={backgroundColor:t.color,backgroundImage:n,...l.style};return!i.hasColorsOrGradients||!o?null:(0,UZ.jsx)("span",{"aria-hidden":"true",className:k("wp-block-post-featured-image__overlay",jZ(o),{[t.class]:t.class,"has-background-dim":o!==void 0,"has-background-gradient":n,[a]:a},l.className),style:s})},rN=(0,OZ.compose)([(0,Mu.withColors)({overlayColor:"background-color"})])(qge);var Ue=r(h()),GZ=["image"],{ResolutionTool:Zge}=Q(ho.privateApis),qZ="full";function Kge({image:e,value:t,onChange:o}){let{imageSizes:a}=(0,P1.useSelect)(i=>{let{getSettings:l}=i(ho.store);return{imageSizes:l().imageSizes}},[]);if(!a?.length)return null;let n=a.filter(({slug:i})=>e?.media_details?.sizes?.[i]?.source_url).map(({name:i,slug:l})=>({value:l,label:i}));return(0,Ue.jsx)(Zge,{value:t,defaultValue:qZ,options:n,onChange:o})}function ZZ({clientId:e,attributes:t,setAttributes:o,context:{postId:a,postType:n,queryId:i}}){let l=Number.isFinite(i),{isLink:s,aspectRatio:c,height:u,width:m,scale:p,sizeSlug:d,rel:f,linkTarget:g,useFirstImageFromPost:v}=t,[b,y]=(0,Lu.useState)(),[_,x]=(0,B1.useEntityProp)("postType",n,"featured_media",a),[w]=(0,B1.useEntityProp)("postType",n,"content",a),C=(0,Lu.useMemo)(()=>{if(_)return _;if(!v)return;let ne=/<!--\s+wp:(?:core\/)?image\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*)?}\s+)?-->/.exec(w);return ne?.groups?.attrs&&JSON.parse(ne.groups.attrs)?.id},[_,v,w]),{media:T,postType:N,postPermalink:P}=(0,P1.useSelect)(ne=>{let{getEntityRecord:oe,getPostType:ce,getEditedEntityRecord:pe}=ne(B1.store);return{media:C&&oe("postType","attachment",C,{context:"view"}),postType:n&&ce(n),postPermalink:pe("postType",n,a)?.link}},[C,n,a]),M=T?.media_details?.sizes?.[d]?.source_url||T?.source_url,R=(0,ho.useBlockProps)({style:{width:m,height:u,aspectRatio:c},className:k({"is-transient":b})}),H=(0,ho.__experimentalUseBorderProps)(t),O=(0,ho.__experimentalGetShadowClassesAndStyles)(t),A=(0,ho.useBlockEditingMode)(),I=ne=>(0,Ue.jsx)(Xo.Placeholder,{className:k("block-editor-media-placeholder",H.className),withIllustration:!0,style:{height:!!c&&"100%",width:!!c&&"100%",...H.style,...O.style},children:ne}),V=ne=>{ne?.id&&x(ne.id),ne?.url&&(0,$Z.isBlobURL)(ne.url)&&y(ne.url)},W=()=>{o({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:void 0}),x(0)};(0,Lu.useEffect)(()=>{M&&b&&y()},[M,b]);let{createErrorNotice:j}=(0,P1.useDispatch)(WZ.store),K=ne=>{j(ne,{type:"snackbar"}),y()},Z=G(),te=A==="default"&&(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)(ho.InspectorControls,{group:"color",children:(0,Ue.jsx)(FZ,{attributes:t,setAttributes:o,clientId:e})}),(0,Ue.jsx)(ho.InspectorControls,{group:"dimensions",children:(0,Ue.jsx)(AZ,{clientId:e,attributes:t,setAttributes:o,media:T})}),(C||l||!a)&&(0,Ue.jsx)(ho.InspectorControls,{children:(0,Ue.jsxs)(Xo.__experimentalToolsPanel,{label:(0,br.__)("Settings"),resetAll:()=>{o({isLink:!1,linkTarget:"_self",rel:"",sizeSlug:qZ})},dropdownMenuProps:Z,children:[(0,Ue.jsx)(Xo.__experimentalToolsPanelItem,{label:N?.labels.singular_name?(0,br.sprintf)((0,br.__)("Link to %s"),N.labels.singular_name):(0,br.__)("Link to post"),isShownByDefault:!0,hasValue:()=>!!s,onDeselect:()=>o({isLink:!1}),children:(0,Ue.jsx)(Xo.ToggleControl,{__nextHasNoMarginBottom:!0,label:N?.labels.singular_name?(0,br.sprintf)((0,br.__)("Link to %s"),N.labels.singular_name):(0,br.__)("Link to post"),onChange:()=>o({isLink:!s}),checked:s})}),s&&(0,Ue.jsx)(Xo.__experimentalToolsPanelItem,{label:(0,br.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>g!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,Ue.jsx)(Xo.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,br.__)("Open in new tab"),onChange:ne=>o({linkTarget:ne?"_blank":"_self"}),checked:g==="_blank"})}),s&&(0,Ue.jsx)(Xo.__experimentalToolsPanelItem,{label:(0,br.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!f,onDeselect:()=>o({rel:""}),children:(0,Ue.jsx)(Xo.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,br.__)("Link relation"),help:(0,Lu.createInterpolateElement)((0,br.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Ue.jsx)(Xo.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f,onChange:ne=>o({rel:ne})})}),!!T&&(0,Ue.jsx)(Kge,{image:T,value:d,onChange:ne=>o({sizeSlug:ne})})]})})]}),X;if(!C&&(l||!a))return(0,Ue.jsxs)(Ue.Fragment,{children:[te,(0,Ue.jsxs)("div",{...R,children:[s?(0,Ue.jsx)("a",{href:P,target:g,children:I()}):I(),(0,Ue.jsx)(rN,{attributes:t,setAttributes:o,clientId:e})]})]});let J=(0,br.__)("Add a featured image"),ee={...H.style,...O.style,height:c?"100%":u,width:!!c&&"100%",objectFit:!!(u||c)&&p};return!C&&!b?X=(0,Ue.jsx)(ho.MediaPlaceholder,{onSelect:V,accept:"image/*",allowedTypes:GZ,onError:K,placeholder:I,mediaLibraryButton:({open:ne})=>(0,Ue.jsx)(Xo.Button,{__next40pxDefaultSize:!0,icon:js,variant:"primary",label:J,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{ne()}})}):X=!T&&!b?I():(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)("img",{className:H.className,src:b||M,alt:T&&T?.alt_text?(0,br.sprintf)((0,br.__)("Featured image: %s"),T.alt_text):(0,br.__)("Featured image"),style:ee}),b&&(0,Ue.jsx)(Xo.Spinner,{})]}),(0,Ue.jsxs)(Ue.Fragment,{children:[!b&&te,!!T&&!l&&(0,Ue.jsx)(ho.BlockControls,{group:"other",children:(0,Ue.jsx)(ho.MediaReplaceFlow,{mediaId:C,mediaURL:M,allowedTypes:GZ,accept:"image/*",onSelect:V,onError:K,onReset:W})}),(0,Ue.jsxs)("figure",{...R,children:[s?(0,Ue.jsx)("a",{href:P,target:g,children:X}):X,(0,Ue.jsx)(rN,{attributes:t,setAttributes:o,clientId:e})]})]})}var{name:KZ}=v4,QZ={icon:R7,edit:ZZ},Qge=()=>D({name:KZ,metadata:v4,settings:QZ});var nN={};$(nN,{init:()=>Xge,metadata:()=>_4,name:()=>rK,settings:()=>aK});var oK=r(B());var _4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string",role:"content"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"},taxonomy:{type:"string",default:""}},usesContext:["postType"],supports:{reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-post-navigation-link"};var Ar=r(L()),oi=r(S()),Jt=r(B()),YZ=r(z()),XZ=r(Y());var qt=r(h());function JZ({context:{postType:e},attributes:{type:t,label:o,showTitle:a,textAlign:n,linkLabel:i,arrow:l,taxonomy:s},setAttributes:c}){let m=(0,oi.useBlockEditingMode)()==="default",p=t==="next",d=p?(0,Jt.__)("Next"):(0,Jt.__)("Previous"),g={none:"",arrow:p?"\u2192":"\u2190",chevron:p?"\xBB":"\xAB"}[l];a&&(d=p?(0,Jt.__)("Next: "):(0,Jt.__)("Previous: "));let v=p?(0,Jt.__)("Next post"):(0,Jt.__)("Previous post"),b=(0,oi.useBlockProps)({className:k({[`has-text-align-${n}`]:n})}),y=(0,YZ.useSelect)(w=>{let{getTaxonomies:C}=w(XZ.store);return C({type:e,per_page:-1})},[e]),_=()=>{let w={label:(0,Jt.__)("Unfiltered"),value:""},C=(y??[]).filter(({visibility:T})=>!!T?.publicly_queryable).map(T=>({value:T.slug,label:T.name}));return[w,...C]},x=G();return(0,qt.jsxs)(qt.Fragment,{children:[(0,qt.jsx)(oi.InspectorControls,{children:(0,qt.jsxs)(Ar.__experimentalToolsPanel,{label:(0,Jt.__)("Settings"),resetAll:()=>{c({showTitle:!1,linkLabel:!1,arrow:"none"})},dropdownMenuProps:x,children:[(0,qt.jsx)(Ar.__experimentalToolsPanelItem,{label:(0,Jt.__)("Display the title as a link"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>c({showTitle:!1}),children:(0,qt.jsx)(Ar.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Jt.__)("Display the title as a link"),help:(0,Jt.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!a,onChange:()=>c({showTitle:!a})})}),a&&(0,qt.jsx)(Ar.__experimentalToolsPanelItem,{label:(0,Jt.__)("Include the label as part of the link"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>c({linkLabel:!1}),children:(0,qt.jsx)(Ar.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Jt.__)("Include the label as part of the link"),checked:!!i,onChange:()=>c({linkLabel:!i})})}),(0,qt.jsx)(Ar.__experimentalToolsPanelItem,{label:(0,Jt.__)("Arrow"),isShownByDefault:!0,hasValue:()=>l!=="none",onDeselect:()=>c({arrow:"none"}),children:(0,qt.jsxs)(Ar.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Jt.__)("Arrow"),value:l,onChange:w=>{c({arrow:w})},help:(0,Jt.__)("A decorative arrow for the next and previous link."),isBlock:!0,children:[(0,qt.jsx)(Ar.__experimentalToggleGroupControlOption,{value:"none",label:(0,Jt._x)("None","Arrow option for Next/Previous link")}),(0,qt.jsx)(Ar.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Jt._x)("Arrow","Arrow option for Next/Previous link")}),(0,qt.jsx)(Ar.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Jt._x)("Chevron","Arrow option for Next/Previous link")})]})})]})}),(0,qt.jsx)(oi.InspectorControls,{group:"advanced",children:(0,qt.jsx)(Ar.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Jt.__)("Filter by taxonomy"),value:s,options:_(),onChange:w=>c({taxonomy:w}),help:(0,Jt.__)("Only link to posts that have the same taxonomy terms as the current post. For example the same tags or categories.")})}),m&&(0,qt.jsx)(oi.BlockControls,{children:(0,qt.jsx)(oi.AlignmentToolbar,{value:n,onChange:w=>{c({textAlign:w})}})}),(0,qt.jsxs)("div",{...b,children:[!p&&g&&(0,qt.jsx)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${l}`,children:g}),(0,qt.jsx)(oi.RichText,{tagName:"a",identifier:"label","aria-label":v,placeholder:d,value:o,withoutInteractiveFormatting:!0,onChange:w=>c({label:w})}),a&&(0,qt.jsx)("a",{href:"#post-navigation-pseudo-link",onClick:w=>w.preventDefault(),children:(0,Jt.__)("An example title")}),p&&g&&(0,qt.jsx)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${l}`,"aria-hidden":!0,children:g})]})]})}var Np=r(B());var eK=[{name:"post-previous",title:(0,Np.__)("Previous Post"),description:(0,Np.__)("Displays the post link that precedes the current post."),icon:O7,attributes:{type:"previous"},scope:["inserter","transform"],example:{attributes:{label:(0,Np.__)("Previous post"),arrow:"arrow"}}},{isDefault:!0,name:"post-next",title:(0,Np.__)("Next Post"),description:(0,Np.__)("Displays the post link that follows the current post."),icon:n7,attributes:{type:"next"},scope:["inserter","transform"],example:{attributes:{label:(0,Np.__)("Next post"),arrow:"arrow"}}}];eK.forEach(e=>{e.isActive||(e.isActive=(t,o)=>t.type===o.type)});var tK=eK;var{name:rK}=_4,aK={edit:JZ,variations:tK,example:{attributes:{label:(0,oK.__)("Next post"),arrow:"arrow"}}},Xge=()=>D({name:rK,metadata:_4,settings:aK});var iN={};$(iN,{init:()=>ahe,metadata:()=>x4,name:()=>mK,settings:()=>pK});var x4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",ancestor:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","displayLayout","templateSlug","previewPostType","enhancedPagination","postType"],supports:{reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"};var Jf=r(F()),nK=r(z()),N1=r(B()),Ci=r(S()),k4=r(L()),iK=r(Y());var ca=r(h()),ehe=[["core/post-title"],["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],["core/post-excerpt"]];function the({classList:e}){let t=(0,Ci.useInnerBlocksProps)({className:k("wp-block-post",e)},{template:ehe,__unstableDisableLayoutClassNames:!0});return(0,ca.jsx)("li",{...t})}function ohe({blocks:e,blockContextId:t,classList:o,isHidden:a,setActiveBlockContextId:n}){let i=(0,Ci.__experimentalUseBlockPreview)({blocks:e,props:{className:k("wp-block-post",o)}}),l=()=>{n(t)};return(0,ca.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:a?"none":void 0}})}var rhe=(0,Jf.memo)(ohe);function lK({setAttributes:e,clientId:t,context:{query:{perPage:o,offset:a=0,postType:n,order:i,orderBy:l,author:s,search:c,exclude:u,sticky:m,inherit:p,taxQuery:d,parents:f,pages:g,format:v,...b}={},templateSlug:y,previewPostType:_},attributes:{layout:x},__unstableLayoutClassNames:w}){let{type:C,columnCount:T=3}=x||{},[N,P]=(0,Jf.useState)(),{posts:M,blocks:R}=(0,nK.useSelect)(V=>{let{getEntityRecords:W,getTaxonomies:j}=V(iK.store),{getBlocks:K}=V(Ci.store),Z=p&&y?.startsWith("category-")&&W("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:y.replace("category-","")}),te=p&&y?.startsWith("tag-")&&W("taxonomy","post_tag",{context:"view",per_page:1,_fields:["id"],slug:y.replace("tag-","")}),X={offset:a||0,order:i,orderby:l};if(d&&!p){let ne=j({type:n,per_page:-1,context:"view"}),oe=Object.entries(d).reduce((ce,[pe,Ne])=>{let Le=ne?.find(({slug:ie})=>ie===pe);return Le?.rest_base&&(ce[Le?.rest_base]=Ne),ce},{});Object.keys(oe).length&&Object.assign(X,oe)}o&&(X.per_page=o),s&&(X.author=s),c&&(X.search=c),u?.length&&(X.exclude=u),f?.length&&(X.parent=f),v?.length&&(X.format=v),["exclude","only"].includes(m)&&(X.sticky=m==="only"),["","ignore"].includes(m)&&(delete X.sticky,X.ignore_sticky=m==="ignore");let J=n;return p&&(y?.startsWith("archive-")?(X.postType=y.replace("archive-",""),J=X.postType):Z?X.categories=Z[0]?.id:te?X.tags=te[0]?.id:y?.startsWith("taxonomy-post_format")&&(X.format=y.replace("taxonomy-post_format-post-format-",""))),{posts:W("postType",_||J,{...X,...b}),blocks:K(t)}},[o,a,i,l,t,s,c,n,u,m,p,y,d,f,v,b,_]),H=(0,Jf.useMemo)(()=>M?.map(V=>({postType:V.type,postId:V.id,classList:V.class_list??""})),[M]),O=(0,Ci.useBlockProps)({className:k(w,{[`columns-${T}`]:C==="grid"&&T})});if(!M)return(0,ca.jsx)("p",{...O,children:(0,ca.jsx)(k4.Spinner,{})});if(!M.length)return(0,ca.jsxs)("p",{...O,children:[" ",(0,N1.__)("No results found.")]});let A=V=>e({layout:{...x,...V}}),I=[{icon:ji,title:(0,N1._x)("List view","Post template block display setting"),onClick:()=>A({type:"default"}),isActive:C==="default"||C==="constrained"},{icon:Fi,title:(0,N1._x)("Grid view","Post template block display setting"),onClick:()=>A({type:"grid",columnCount:T}),isActive:C==="grid"}];return(0,ca.jsxs)(ca.Fragment,{children:[(0,ca.jsx)(Ci.BlockControls,{children:(0,ca.jsx)(k4.ToolbarGroup,{controls:I})}),(0,ca.jsx)("ul",{...O,children:H&&H.map(V=>(0,ca.jsxs)(Ci.BlockContextProvider,{value:V,children:[V.postId===(N||H[0]?.postId)?(0,ca.jsx)(the,{classList:V.classList}):null,(0,ca.jsx)(rhe,{blocks:R,blockContextId:V.postId,classList:V.classList,setActiveBlockContextId:P,isHidden:V.postId===(N||H[0]?.postId)})]},V.postId))})]})}var sK=r(S()),cK=r(h());function uK(){return(0,cK.jsx)(sK.InnerBlocks.Content,{})}var{name:mK}=x4,pK={icon:vm,edit:lK,save:uK},ahe=()=>D({name:mK,metadata:x4,settings:pK});var lN={};$(lN,{init:()=>she,metadata:()=>w4,name:()=>wK,settings:()=>CK});var kK=r(eu());var w4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:"",role:"content"},suffix:{type:"string",default:"",role:"content"}},usesContext:["postId","postType"],example:{viewportWidth:350},supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-terms"};var La=r(S()),C4=r(U()),S4=r(L()),vK=r(z()),bK=r(jo()),Ru=r(B()),yK=r(Y());var dK=r(Y()),fK=r(z()),ihe=[];function gK({postId:e,term:t}){let{slug:o}=t;return(0,fK.useSelect)(a=>{if(!t?.visibility?.publicly_queryable)return{postTerms:ihe,isLoading:!1,hasPostTerms:!1};let{getEntityRecords:i,isResolving:l}=a(dK.store),s=["taxonomy",o,{post:e,per_page:-1,context:"view"}],c=i(...s);return{postTerms:c,isLoading:l("getEntityRecords",s),hasPostTerms:!!c?.length}},[e,t?.visibility?.publicly_queryable,o])}var yr=r(h()),hK=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];function _K({attributes:e,clientId:t,context:o,isSelected:a,setAttributes:n,insertBlocksAfter:i}){let{term:l,textAlign:s,separator:c,prefix:u,suffix:m}=e,{postId:p,postType:d}=o,g=(0,La.useBlockEditingMode)()==="default",v=(0,vK.useSelect)(T=>{if(!l)return{};let{getTaxonomy:N}=T(yK.store),P=N(l);return P?.visibility?.publicly_queryable?P:{}},[l]),{postTerms:b,hasPostTerms:y,isLoading:_}=gK({postId:p,term:v}),x=p&&d,w=(0,La.useBlockDisplayInformation)(t),C=(0,La.useBlockProps)({className:k({[`has-text-align-${s}`]:s,[`taxonomy-${l}`]:l})});return(0,yr.jsxs)(yr.Fragment,{children:[g&&(0,yr.jsx)(La.BlockControls,{children:(0,yr.jsx)(La.AlignmentToolbar,{value:s,onChange:T=>{n({textAlign:T})}})}),(0,yr.jsx)(La.InspectorControls,{group:"advanced",children:(0,yr.jsx)(S4.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,Ru.__)("Separator"),value:c||"",onChange:T=>{n({separator:T})},help:(0,Ru.__)("Enter character(s) used to separate terms.")})}),(0,yr.jsxs)("div",{...C,children:[_&&x&&(0,yr.jsx)(S4.Spinner,{}),!_&&(a||u)&&(0,yr.jsx)(La.RichText,{identifier:"prefix",allowedFormats:hK,className:"wp-block-post-terms__prefix","aria-label":(0,Ru.__)("Prefix"),placeholder:(0,Ru.__)("Prefix")+" ",value:u,onChange:T=>n({prefix:T}),tagName:"span"}),(!x||!l)&&(0,yr.jsx)("span",{children:w.title}),x&&!_&&y&&b.map(T=>(0,yr.jsx)("a",{href:T.link,onClick:N=>N.preventDefault(),rel:"tag",children:(0,bK.decodeEntities)(T.name)},T.id)).reduce((T,N)=>(0,yr.jsxs)(yr.Fragment,{children:[T,(0,yr.jsx)("span",{className:"wp-block-post-terms__separator",children:c||" "}),N]})),x&&!_&&!y&&(v?.labels?.no_terms||(0,Ru.__)("Term items not found.")),!_&&(a||m)&&(0,yr.jsx)(La.RichText,{identifier:"suffix",allowedFormats:hK,className:"wp-block-post-terms__suffix","aria-label":(0,Ru.__)("Suffix"),placeholder:" "+(0,Ru.__)("Suffix"),value:m,onChange:T=>n({suffix:T}),tagName:"span",__unstableOnSplitAtEnd:()=>i((0,C4.createBlock)((0,C4.getDefaultBlockName)()))})]})]})}var lhe={category:fd,post_tag:A7};function xK(e,t){if(t!=="core/post-terms")return e;let o=e.variations.map(a=>({...a,icon:lhe[a.name]??fd}));return{...e,variations:o}}var{name:wK}=w4,CK={icon:fd,edit:_K},she=()=>((0,kK.addFilter)("blocks.registerBlockType","core/template-part",xK),D({name:wK,metadata:w4,settings:CK}));var sN={};$(sN,{init:()=>phe,metadata:()=>T4,name:()=>EK,settings:()=>MK});var T4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-time-to-read",title:"Time to Read",category:"theme",description:"Show minutes required to finish reading the post. Can also show a word count.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},displayAsRange:{type:"boolean",default:!0},displayMode:{type:"string",default:"time"},averageReadingSpeed:{type:"number",default:189}},supports:{color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}}};var ua=r(B()),BK=r(F()),Hu=r(S()),eg=r(L()),PK=r(U()),B4=r(Y()),NK=r(TK());var Si=r(h());function uhe({attributes:e,setAttributes:t,context:o}){let{textAlign:a,displayAsRange:n,displayMode:i,averageReadingSpeed:l}=e,{postId:s,postType:c}=o,u=G(),[m]=(0,B4.useEntityProp)("postType",c,"content",s),[p]=(0,B4.useEntityBlockEditor)("postType",c,{id:s}),d=(0,BK.useMemo)(()=>{let g;m instanceof Function?g=m({blocks:p}):p?g=(0,PK.__unstableSerializeAndClean)(p):g=m;let v=(0,ua._x)("words","Word count type. Do not translate!"),b=(0,NK.count)(g||"",v);if(i==="time"){if(n){let _=Math.max(1,Math.round(b/l*1.2)),x=Math.max(1,Math.round(b/l*.8));x===_&&(_=_+1);let w=(0,ua._x)("%1$s\u2013%2$s minutes","Range of minutes to read");return(0,ua.sprintf)(w,x,_)}let y=Math.max(1,Math.round(b/l));return(0,ua.sprintf)((0,ua._n)("%s minute","%s minutes",y),y)}if(i==="words")return v==="words"?(0,ua.sprintf)((0,ua._n)("%s word","%s words",b),b.toLocaleString()):(0,ua.sprintf)((0,ua._n)("%s character","%s characters",b),b.toLocaleString())},[m,p,n,i,l]),f=(0,Hu.useBlockProps)({className:k({[`has-text-align-${a}`]:a})});return(0,Si.jsxs)(Si.Fragment,{children:[(0,Si.jsx)(Hu.BlockControls,{group:"block",children:(0,Si.jsx)(Hu.AlignmentControl,{value:a,onChange:g=>{t({textAlign:g})}})}),i==="time"&&(0,Si.jsx)(Hu.InspectorControls,{children:(0,Si.jsx)(eg.__experimentalToolsPanel,{label:(0,ua.__)("Settings"),resetAll:()=>{t({displayAsRange:!0})},dropdownMenuProps:u,children:(0,Si.jsx)(eg.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,ua._x)("Display as range","Turns reading time range display on or off"),hasValue:()=>!n,onDeselect:()=>{t({displayAsRange:!0})},children:(0,Si.jsx)(eg.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,ua.__)("Display as range"),checked:!!n,onChange:()=>t({displayAsRange:!n})})})})}),(0,Si.jsx)("div",{...f,children:d})]})}var IK=uhe;var I1=r(B());var mhe=[{name:"time-to-read",title:(0,I1.__)("Time to Read"),description:(0,I1.__)("Show minutes required to finish reading the post."),attributes:{displayMode:"time"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="time",icon:r0,isDefault:!0},{name:"word-count",title:(0,I1.__)("Word Count"),description:(0,I1.__)("Show the number of words in the post."),attributes:{displayMode:"words"},scope:["inserter","transform"],isActive:e=>e?.displayMode==="words",icon:Z9}],DK=mhe;var{name:EK}=T4,MK={icon:r0,edit:IK,variations:DK,example:{}},phe=()=>D({name:EK,metadata:T4,settings:MK});var cN={};$(cN,{init:()=>ghe,metadata:()=>P4,name:()=>AK,settings:()=>VK});var P4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-title",title:"Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},levelOptions:{type:"array"},isLink:{type:"boolean",default:!1,role:"content"},rel:{type:"string",attribute:"rel",default:"",role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},example:{viewportWidth:350},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-post-title"};var Ra=r(S()),ri=r(L()),fn=r(B()),N4=r(U()),D1=r(Y()),LK=r(z()),RK=r(F());var Ct=r(h());function HK({attributes:{level:e,levelOptions:t,textAlign:o,isLink:a,rel:n,linkTarget:i},setAttributes:l,context:{postType:s,postId:c,queryId:u},insertBlocksAfter:m}){let p=e===0?"p":`h${e}`,d=Number.isFinite(u),f=(0,LK.useSelect)(N=>d?!1:N(D1.store).canUser("update",{kind:"postType",name:s,id:c}),[d,s,c]),[g="",v,b]=(0,D1.useEntityProp)("postType",s,"title",c),[y]=(0,D1.useEntityProp)("postType",s,"link",c),_=()=>{m((0,N4.createBlock)((0,N4.getDefaultBlockName)()))},x=(0,Ra.useBlockProps)({className:k({[`has-text-align-${o}`]:o})}),w=(0,Ra.useBlockEditingMode)(),C=G(),T=(0,Ct.jsx)(p,{...x,children:(0,fn.__)("Title")});return s&&c&&(T=f?(0,Ct.jsx)(Ra.PlainText,{tagName:p,placeholder:(0,fn.__)("(no title)"),value:g,onChange:v,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...x}):(0,Ct.jsx)(p,{...x,dangerouslySetInnerHTML:{__html:b?.rendered||(0,fn.__)("(no title)")}})),a&&s&&c&&(T=f?(0,Ct.jsx)(p,{...x,children:(0,Ct.jsx)(Ra.PlainText,{tagName:"a",href:y,target:i,rel:n,placeholder:g.length?null:(0,fn.__)("(no title)"),value:g,onChange:v,__experimentalVersion:2,__unstableOnSplitAtEnd:_})}):(0,Ct.jsx)(p,{...x,children:(0,Ct.jsx)("a",{href:y,target:i,rel:n,onClick:N=>N.preventDefault(),dangerouslySetInnerHTML:{__html:b?.rendered||(0,fn.__)("(no title)")}})})),(0,Ct.jsxs)(Ct.Fragment,{children:[w==="default"&&(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsxs)(Ra.BlockControls,{group:"block",children:[(0,Ct.jsx)(Ra.HeadingLevelDropdown,{value:e,options:t,onChange:N=>l({level:N})}),(0,Ct.jsx)(Ra.AlignmentControl,{value:o,onChange:N=>{l({textAlign:N})}})]}),(0,Ct.jsx)(Ra.InspectorControls,{children:(0,Ct.jsxs)(ri.__experimentalToolsPanel,{label:(0,fn.__)("Settings"),resetAll:()=>{l({rel:"",linkTarget:"_self",isLink:!1})},dropdownMenuProps:C,children:[(0,Ct.jsx)(ri.__experimentalToolsPanelItem,{label:(0,fn.__)("Make title a link"),isShownByDefault:!0,hasValue:()=>a,onDeselect:()=>l({isLink:!1}),children:(0,Ct.jsx)(ri.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,fn.__)("Make title a link"),onChange:()=>l({isLink:!a}),checked:a})}),a&&(0,Ct.jsxs)(Ct.Fragment,{children:[(0,Ct.jsx)(ri.__experimentalToolsPanelItem,{label:(0,fn.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>i==="_blank",onDeselect:()=>l({linkTarget:"_self"}),children:(0,Ct.jsx)(ri.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,fn.__)("Open in new tab"),onChange:N=>l({linkTarget:N?"_blank":"_self"}),checked:i==="_blank"})}),(0,Ct.jsx)(ri.__experimentalToolsPanelItem,{label:(0,fn.__)("Link relation"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>l({rel:""}),children:(0,Ct.jsx)(ri.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,fn.__)("Link relation"),help:(0,RK.createInterpolateElement)((0,fn.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Ct.jsx)(ri.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:n,onChange:N=>l({rel:N})})})]})]})})]}),T]})}var fhe={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save(){return null},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},zK=[fhe];var{name:AK}=P4,VK={icon:Oi,edit:HK,deprecated:zK},ghe=()=>D({name:AK,metadata:P4,settings:VK});var dN={};$(dN,{init:()=>_he,metadata:()=>E4,name:()=>$K,settings:()=>L4});var pN=r(B());var GK=r(U());var uN=r(B()),I4=r(S()),D4=r(U()),FK=r(h());function jK({attributes:e,mergeBlocks:t,setAttributes:o,onRemove:a,insertBlocksAfter:n,style:i}){let{content:l}=e,s=(0,I4.useBlockProps)({style:i});return(0,FK.jsx)(I4.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:c=>{o({content:c})},onRemove:a,"aria-label":(0,uN.__)("Preformatted text"),placeholder:(0,uN.__)("Write preformatted text\u2026"),onMerge:t,...s,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,D4.createBlock)((0,D4.getDefaultBlockName)()))})}var E4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-preformatted"};var M4=r(S()),mN=r(h());function OK({attributes:e}){let{content:t}=e;return(0,mN.jsx)("pre",{...M4.useBlockProps.save(),children:(0,mN.jsx)(M4.RichText.Content,{value:t})})}var E1=r(U()),vhe={from:[{type:"block",blocks:["core/code","core/paragraph","core/verse"],transform:({content:e,anchor:t})=>(0,E1.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>e.nodeName==="PRE"&&!(e.children.length===1&&e.firstChild.nodeName==="CODE"),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,E1.createBlock)("core/paragraph",e)},{type:"block",blocks:["core/code"],transform:e=>(0,E1.createBlock)("core/code",e)},{type:"block",blocks:["core/verse"],transform:e=>(0,E1.createBlock)("core/verse",e)}]},UK=vhe;var{fieldsKey:bhe,formKey:yhe}=Q(GK.privateApis),{name:$K}=E4,L4={icon:F7,example:{attributes:{content:(0,pN.__)(`EXT. XANADU - FAINT DAWN - 1940 (MINIATURE) |
| 34 |
Window, very small in the distance, illuminated. |
| 35 |
All around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;`)}},transforms:UK,edit:jK,save:OK,merge(e,t){return{content:e.content+` |
| 36 |
|
| 37 |
`+t.content}}};window.__experimentalContentOnlyInspectorFields&&(L4[bhe]=[{id:"content",label:(0,pN.__)("Content"),type:"richtext"}],L4[yhe]={fields:["content"]});var _he=()=>D({name:$K,metadata:E4,settings:L4});var fN={};$(fN,{init:()=>Mhe,metadata:()=>H4,name:()=>oQ,settings:()=>z4});var R1=r(B());var tQ=r(U());var it=r(S()),qK=r(z());var Ip="is-style-solid-color";var eo=r(h()),M1={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function WK(e){if(!e)return;let t=e.match(/border-color:([^;]+)[;]?/);if(t&&t[1])return t[1]}function Dp(e){e=e||"<p></p>";let o=`</p>${e}<p>`.split("</p><p>");return o.shift(),o.pop(),o.join("<br>")}var xhe={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,citation:o,value:a}=e,n=!it.RichText.isEmpty(o);return(0,eo.jsx)("figure",{...it.useBlockProps.save({className:k({[`has-text-align-${t}`]:t})}),children:(0,eo.jsxs)("blockquote",{children:[(0,eo.jsx)(it.RichText.Content,{value:a,multiline:!0}),n&&(0,eo.jsx)(it.RichText.Content,{tagName:"cite",value:o})]})})},migrate({value:e,...t}){return{value:Dp(e),...t}}},khe={attributes:{...M1},save({attributes:e}){let{mainColor:t,customMainColor:o,customTextColor:a,textColor:n,value:i,citation:l,className:s}=e,c=s?.includes(Ip),u,m;if(c){let g=(0,it.getColorClassName)("background-color",t);u=k({"has-background":g||o,[g]:g}),m={backgroundColor:g?void 0:o}}else o&&(m={borderColor:o});let p=(0,it.getColorClassName)("color",n),d=k({"has-text-color":n||a,[p]:p}),f=p?void 0:{color:a};return(0,eo.jsx)("figure",{...it.useBlockProps.save({className:u,style:m}),children:(0,eo.jsxs)("blockquote",{className:d,style:f,children:[(0,eo.jsx)(it.RichText.Content,{value:i,multiline:!0}),!it.RichText.isEmpty(l)&&(0,eo.jsx)(it.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:a,customTextColor:n,...i}){let l=t?.includes(Ip),s;return a&&(l?s={color:{background:a}}:s={border:{color:a}}),n&&s&&(s.color={...s.color,text:n}),{value:Dp(e),className:t,backgroundColor:l?o:void 0,borderColor:l?void 0:o,textAlign:l?"left":void 0,style:s,...i}}},whe={attributes:{...M1,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){let{mainColor:t,customMainColor:o,textColor:a,customTextColor:n,value:i,citation:l,className:s,figureStyle:c}=e,u=s?.includes(Ip),m,p;if(u){let v=(0,it.getColorClassName)("background-color",t);m=k({"has-background":v||o,[v]:v}),p={backgroundColor:v?void 0:o}}else o?p={borderColor:o}:t&&(p={borderColor:WK(c)});let d=(0,it.getColorClassName)("color",a),f=(a||n)&&k("has-text-color",{[d]:d});return(0,eo.jsx)("figure",{className:m,style:p,children:(0,eo.jsxs)("blockquote",{className:f,style:d?void 0:{color:n},children:[(0,eo.jsx)(it.RichText.Content,{value:i,multiline:!0}),!it.RichText.isEmpty(l)&&(0,eo.jsx)(it.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,figureStyle:o,mainColor:a,customMainColor:n,customTextColor:i,...l}){let s=t?.includes(Ip),c;if(n&&(s?c={color:{background:n}}:c={border:{color:n}}),i&&c&&(c.color={...c.color,text:i}),!s&&a&&o){let u=WK(o);if(u)return{value:Dp(e),...l,className:t,style:{border:{color:u}}}}return{value:Dp(e),className:t,backgroundColor:s?a:void 0,borderColor:s?void 0:a,textAlign:s?"left":void 0,style:c,...l}}},Che={attributes:M1,save({attributes:e}){let{mainColor:t,customMainColor:o,textColor:a,customTextColor:n,value:i,citation:l,className:s}=e,c=s?.includes(Ip),u,m;if(c)u=(0,it.getColorClassName)("background-color",t),u||(m={backgroundColor:o});else if(o)m={borderColor:o};else if(t){let g=(0,qK.select)(it.store).getSettings().colors??[];m={borderColor:(0,it.getColorObjectByAttributeValues)(g,t).color}}let p=(0,it.getColorClassName)("color",a),d=a||n?k("has-text-color",{[p]:p}):void 0;return(0,eo.jsx)("figure",{className:u,style:m,children:(0,eo.jsxs)("blockquote",{className:d,style:p?void 0:{color:n},children:[(0,eo.jsx)(it.RichText.Content,{value:i,multiline:!0}),!it.RichText.isEmpty(l)&&(0,eo.jsx)(it.RichText.Content,{tagName:"cite",value:l})]})})},migrate({value:e,className:t,mainColor:o,customMainColor:a,customTextColor:n,...i}){let l=t?.includes(Ip),s={};return a&&(l?s={color:{background:a}}:s={border:{color:a}}),n&&s&&(s.color={...s.color,text:n}),{value:Dp(e),className:t,backgroundColor:l?o:void 0,borderColor:l?void 0:o,textAlign:l?"left":void 0,style:s,...i}}},She={attributes:{...M1},save({attributes:e}){let{value:t,citation:o}=e;return(0,eo.jsxs)("blockquote",{children:[(0,eo.jsx)(it.RichText.Content,{value:t,multiline:!0}),!it.RichText.isEmpty(o)&&(0,eo.jsx)(it.RichText.Content,{tagName:"cite",value:o})]})},migrate({value:e,...t}){return{value:Dp(e),...t}}},The={attributes:{...M1,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){let{value:t,citation:o,align:a}=e;return(0,eo.jsxs)("blockquote",{className:`align${a}`,children:[(0,eo.jsx)(it.RichText.Content,{value:t,multiline:!0}),!it.RichText.isEmpty(o)&&(0,eo.jsx)(it.RichText.Content,{tagName:"footer",value:o})]})},migrate({value:e,...t}){return{value:Dp(e),...t}}},ZK=[xhe,khe,whe,Che,She,The];var L1=r(B()),hs=r(S()),R4=r(U()),YK=r(F());var KK="figure";var QK="blockquote";var yl=r(h()),Bhe=YK.Platform.OS==="web";function Phe({attributes:e,setAttributes:t,isSelected:o,insertBlocksAfter:a}){let{textAlign:n,citation:i,value:l}=e,s=(0,hs.useBlockProps)({className:k({[`has-text-align-${n}`]:n})}),c=!hs.RichText.isEmpty(i)||o;return(0,yl.jsxs)(yl.Fragment,{children:[(0,yl.jsx)(hs.BlockControls,{group:"block",children:(0,yl.jsx)(hs.AlignmentControl,{value:n,onChange:u=>{t({textAlign:u})}})}),(0,yl.jsx)(KK,{...s,children:(0,yl.jsxs)(QK,{children:[(0,yl.jsx)(hs.RichText,{identifier:"value",tagName:"p",value:l,onChange:u=>t({value:u}),"aria-label":(0,L1.__)("Pullquote text"),placeholder:(0,L1.__)("Add quote"),textAlign:"center"}),c&&(0,yl.jsx)(hs.RichText,{identifier:"citation",tagName:Bhe?"cite":void 0,style:{display:"block"},value:i,"aria-label":(0,L1.__)("Pullquote citation text"),placeholder:(0,L1.__)("Add citation"),onChange:u=>t({citation:u}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>a((0,R4.createBlock)((0,R4.getDefaultBlockName)()))})]})})]})}var XK=Phe;var H4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote (deprecated)",category:"text",description:"This block is deprecated. Please use the Quote block instead.",textdomain:"default",attributes:{value:{type:"rich-text",source:"rich-text",selector:"p",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},inserter:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"};var tg=r(S()),og=r(h());function JK({attributes:e}){let{textAlign:t,citation:o,value:a}=e,n=!tg.RichText.isEmpty(o);return(0,og.jsx)("figure",{...tg.useBlockProps.save({className:k({[`has-text-align-${t}`]:t})}),children:(0,og.jsxs)("blockquote",{children:[(0,og.jsx)(tg.RichText.Content,{tagName:"p",value:a}),n&&(0,og.jsx)(tg.RichText.Content,{tagName:"cite",value:o})]})})}var Ep=r(U()),Ihe={to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{let o=[];return e&&o.push((0,Ep.createBlock)("core/paragraph",{content:e})),t&&o.push((0,Ep.createBlock)("core/paragraph",{content:t})),o.length===0?(0,Ep.createBlock)("core/paragraph",{content:""}):o}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,Ep.createBlock)("core/heading",{content:t});let o=(0,Ep.createBlock)("core/heading",{content:e});return t?[o,(0,Ep.createBlock)("core/heading",{content:t})]:o}}]},eQ=Ihe;var{fieldsKey:Dhe,formKey:Ehe}=Q(tQ.privateApis),{name:oQ}=H4,z4={icon:Z7,example:{attributes:{value:(0,R1.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,R1.__)("Matt Mullenweg")}},transforms:eQ,edit:XK,save:JK,deprecated:ZK};window.__experimentalContentOnlyInspectorFields&&(z4[Dhe]=[{id:"value",label:(0,R1.__)("Content"),type:"richtext"},{id:"citation",label:(0,R1.__)("Citation"),type:"richtext"}],z4[Ehe]={fields:["value"]});var Mhe=()=>D({name:oQ,metadata:H4,settings:z4});var PN={};$(PN,{init:()=>u0e,metadata:()=>A4,name:()=>MY,settings:()=>LY});var A4={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",keywords:["posts","list","blog","blogs","custom post types"],textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[],format:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"},enhancedPagination:{type:"boolean",default:!1}},usesContext:["templateSlug"],providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout",enhancedPagination:"enhancedPagination"},supports:{align:["wide","full"],html:!1,layout:!0,interactivity:!0,contentRole:!0},editorStyle:"wp-block-query-editor"};var vY=r(z()),bY=r(F()),yY=r(S());var K4=r(z()),pY=r(xe()),U1=r(F()),hn=r(S()),dY=r(B()),fY=r(Y());var dQ=r(L()),O4=r(B());var vs=r(z()),Lp=r(F()),H1=r(Y()),V4=r(S()),rQ=r(jo()),Mp=r(B()),fc=r(U()),z1=e=>{let t=e?.reduce((o,a)=>{let{mapById:n,mapByName:i,names:l}=o;return n[a.id]=a,i[a.name]=a,l.push(a.name),o},{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},Rhe=(e,t)=>{let o=t.split("."),a=e;return o.forEach(n=>{a=a?.[n]}),a},gN=(e,t)=>(e||[]).map(o=>({...o,name:(0,rQ.decodeEntities)(Rhe(o,t))})),aQ=()=>{let e=(0,vs.useSelect)(n=>{let{getPostTypes:i}=n(H1.store),l=["attachment"];return i({per_page:-1})?.filter(({viewable:c,slug:u})=>c&&!l.includes(u))},[]),t=(0,Lp.useMemo)(()=>{if(e?.length)return e.reduce((n,i)=>(n[i.slug]=i.taxonomies,n),{})},[e]),o=(0,Lp.useMemo)(()=>(e||[]).map(({labels:n,slug:i})=>({label:n.singular_name,value:i})),[e]),a=(0,Lp.useMemo)(()=>e?.length?e.reduce((n,i)=>(n[i.slug]=i.supports?.["post-formats"]||!1,n),{}):{},[e]);return{postTypesTaxonomiesMap:t,postTypesSelectOptions:o,postTypeFormatSupportMap:a}},F4=e=>{let t=(0,vs.useSelect)(o=>{let{getTaxonomies:a,getPostType:n}=o(H1.store);return n(e)?.taxonomies?.length>0?a({type:e,per_page:-1}):[]},[e]);return(0,Lp.useMemo)(()=>t?.filter(({visibility:o})=>!!o?.publicly_queryable),[t])};function nQ(e){return(0,vs.useSelect)(t=>{let o=t(H1.store).getPostType(e);return o?.viewable&&o?.hierarchical},[e])}function iQ(e){let t=(0,vs.useSelect)(o=>!!o(H1.store).getPostType(e)?.supports?.["page-attributes"],[e]);return(0,Lp.useMemo)(()=>{let o=[{label:(0,Mp.__)("Newest to oldest"),value:"date/desc"},{label:(0,Mp.__)("Oldest to newest"),value:"date/asc"},{label:(0,Mp.__)("A \u2192 Z"),value:"title/asc"},{label:(0,Mp.__)("Z \u2192 A"),value:"title/desc"}];return t&&o.push({label:(0,Mp.__)("Ascending by order"),value:"menu_order/asc"},{label:(0,Mp.__)("Descending by order"),value:"menu_order/desc"}),o},[t])}function lQ(e){return(0,vs.useSelect)(t=>t(fc.store).getActiveBlockVariation("core/query",e)?.allowedControls,[e])}function ai(e,t){return e?e.includes(t):!0}var sQ=(e,t)=>{let{query:{postType:o,inherit:a},namespace:n}=t,i=e.map(c=>(0,fc.cloneBlock)(c)),l=[],s=[...i];for(;s.length>0;){let c=s.shift();c.name==="core/query"&&(c.attributes.query={...c.attributes.query,postType:o,inherit:a},n&&(c.attributes.namespace=n),l.push(c.clientId)),c.innerBlocks?.forEach(u=>{s.push(u)})}return{newBlocks:i,queryClientIds:l}};function cQ(e,t){return(0,vs.useSelect)(o=>{let a=o(fc.store).getActiveBlockVariation("core/query",t)?.name;if(!a)return"core/query";let{getBlockRootClientId:n,getPatternsByBlockTypes:i}=o(V4.store),l=n(e);return i(`core/query/${a}`,l).length>0?`core/query/${a}`:"core/query"},[e,t])}function uQ(e){let{activeVariationName:t,blockVariations:o}=(0,vs.useSelect)(n=>{let{getActiveBlockVariation:i,getBlockVariations:l}=n(fc.store);return{activeVariationName:i("core/query",e)?.name,blockVariations:l("core/query","block")}},[e]);return(0,Lp.useMemo)(()=>{let n=l=>!l.attributes?.namespace;if(!t)return o.filter(n);let i=o.filter(l=>l.attributes?.namespace?.includes(t));return i.length?i:o.filter(n)},[t,o])}var mQ=(e,t)=>(0,vs.useSelect)(o=>{let{getBlockRootClientId:a,getPatternsByBlockTypes:n}=o(V4.store),i=a(e);return n(t,i)},[t,e]),j4=e=>(0,vs.useSelect)(t=>{let{getClientIdsOfDescendants:o,getBlockName:a}=t(V4.store);return o(e).some(n=>{let i=a(n),l=Object.is((0,fc.getBlockSupport)(i,"interactivity"),!0),s=(0,fc.getBlockSupport)(i,"interactivity.clientNavigation");return!l&&!s})},[e]);function pQ(e){if(!e)return{isSingular:!0};let t=!1,o=e==="wp"?"custom":e,a=["404","blank","single","page","custom"],n=e.includes("-")?e.split("-",1)[0]:e;return(e.includes("-")?e.split("-").slice(1).join("-"):"")&&(o=n),t=a.includes(o),{isSingular:t,templateType:o}}var A1=r(h());function fQ({enhancedPagination:e,setAttributes:t,clientId:o}){let a=j4(o),n=(0,O4.__)("Reload the full page\u2014instead of just the posts list\u2014when visitors navigate between pages.");return a&&(n=(0,O4.__)("Enhancement disabled because there are non-compatible blocks inside the Query block.")),(0,A1.jsx)(A1.Fragment,{children:(0,A1.jsx)(dQ.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,O4.__)("Reload full page"),help:n,checked:!e,disabled:a,onChange:i=>{t({enhancedPagination:!i})}})})}var ut=r(L()),oY=r(z()),rY=r(Y()),to=r(B()),aY=r(xe()),G4=r(F());var gQ=r(L()),rg=r(B()),hQ=r(h()),Hhe=[{label:(0,rg.__)("Newest to oldest"),value:"date/desc"},{label:(0,rg.__)("Oldest to newest"),value:"date/asc"},{label:(0,rg.__)("A \u2192 Z"),value:"title/asc"},{label:(0,rg.__)("Z \u2192 A"),value:"title/desc"}];function zhe({order:e,orderBy:t,orderByOptions:o=Hhe,onChange:a}){return(0,hQ.jsx)(gQ.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,rg.__)("Order by"),value:`${t}/${e}`,options:o,onChange:n=>{let[i,l]=n.split("/");a({order:l,orderBy:i})}})}var vQ=zhe;var bQ=r(B()),yQ=r(L()),_Q=r(z()),xQ=r(Y());var kQ=r(h()),Ahe={who:"authors",per_page:-1,_fields:"id,name",context:"view"};function Vhe({value:e,onChange:t}){let o=(0,_Q.useSelect)(c=>{let{getUsers:u}=c(xQ.store);return u(Ahe)},[]);if(!o)return null;let a=z1(o),i=(e?e.toString().split(","):[]).reduce((c,u)=>{let m=a.mapById[u];return m&&c.push({id:u,value:m.name}),c},[]),l=(c,u)=>{let m=u?.id||c[u]?.id;if(m)return m},s=c=>{let u=Array.from(c.reduce((m,p)=>{let d=l(a.mapByName,p);return d&&m.add(d),m},new Set));t({author:u.join(",")})};return(0,kQ.jsx)(yQ.FormTokenField,{label:(0,bQ.__)("Authors"),value:i,suggestions:a.names,onChange:s,__experimentalShowHowTo:!1,__next40pxDefaultSize:!0})}var wQ=Vhe;var SQ=r(B()),TQ=r(L()),hN=r(z()),vN=r(Y()),gc=r(F()),BQ=r(xe());var PQ=r(h()),Rp=[],CQ={order:"asc",_fields:"id,title",context:"view"};function Fhe({parents:e,postType:t,onChange:o}){let[a,n]=(0,gc.useState)(""),[i,l]=(0,gc.useState)(Rp),[s,c]=(0,gc.useState)(Rp),u=(0,BQ.useDebounce)(n,250),{searchResults:m,searchHasResolved:p}=(0,hN.useSelect)(b=>{if(!a)return{searchResults:Rp,searchHasResolved:!0};let{getEntityRecords:y,hasFinishedResolution:_}=b(vN.store),x=["postType",t,{...CQ,search:a,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:y(...x),searchHasResolved:_("getEntityRecords",x)}},[a,t,e]),d=(0,hN.useSelect)(b=>{if(!e?.length)return Rp;let{getEntityRecords:y}=b(vN.store);return y("postType",t,{...CQ,include:e,per_page:e.length})},[e,t]);(0,gc.useEffect)(()=>{if(e?.length||l(Rp),!d?.length)return;let b=z1(gN(d,"title.rendered")),y=e.reduce((_,x)=>{let w=b.mapById[x];return w&&_.push({id:x,value:w.name}),_},[]);l(y)},[e,d]);let f=(0,gc.useMemo)(()=>m?.length?z1(gN(m,"title.rendered")):Rp,[m]);(0,gc.useEffect)(()=>{p&&c(f.names)},[f.names,p]);let g=(b,y)=>{let _=y?.id||b?.[y]?.id;if(_)return _},v=b=>{let y=Array.from(b.reduce((_,x)=>{let w=g(f.mapByName,x);return w&&_.add(w),_},new Set));c(Rp),o({parents:y})};return(0,PQ.jsx)(TQ.FormTokenField,{__next40pxDefaultSize:!0,label:(0,SQ.__)("Parents"),value:i,onInputChange:u,suggestions:s,onChange:v,__experimentalShowHowTo:!1})}var NQ=Fhe;var U4=r(L()),bN=r(z()),yN=r(Y()),Hp=r(F()),DQ=r(xe()),EQ=r(jo());var V1=r(h()),ag=[],IQ={order:"asc",_fields:"id,name",context:"view"},jhe=(e,t)=>{let o=t?.id||e?.find(n=>n.name===t)?.id;if(o)return o;let a=t.toLocaleLowerCase();return e?.find(n=>n.name.toLocaleLowerCase()===a)?.id};function MQ({onChange:e,query:t}){let{postType:o,taxQuery:a}=t,n=F4(o);return!n||n.length===0?null:(0,V1.jsx)(U4.__experimentalVStack,{spacing:4,children:n.map(i=>{let l=a?.[i.slug]||[];return(0,V1.jsx)(Ohe,{taxonomy:i,termIds:l,onChange:c=>e({taxQuery:{...a,[i.slug]:c}})},i.slug)})})}function Ohe({taxonomy:e,termIds:t,onChange:o}){let[a,n]=(0,Hp.useState)(""),[i,l]=(0,Hp.useState)(ag),[s,c]=(0,Hp.useState)(ag),u=(0,DQ.useDebounce)(n,250),{searchResults:m,searchHasResolved:p}=(0,bN.useSelect)(g=>{if(!a)return{searchResults:ag,searchHasResolved:!0};let{getEntityRecords:v,hasFinishedResolution:b}=g(yN.store),y=["taxonomy",e.slug,{...IQ,search:a,orderby:"name",exclude:t,per_page:20}];return{searchResults:v(...y),searchHasResolved:b("getEntityRecords",y)}},[a,e.slug,t]),d=(0,bN.useSelect)(g=>{if(!t?.length)return ag;let{getEntityRecords:v}=g(yN.store);return v("taxonomy",e.slug,{...IQ,include:t,per_page:t.length})},[e.slug,t]);(0,Hp.useEffect)(()=>{if(t?.length||l(ag),!d?.length)return;let g=t.reduce((v,b)=>{let y=d.find(_=>_.id===b);return y&&v.push({id:b,value:y.name}),v},[]);l(g)},[t,d]),(0,Hp.useEffect)(()=>{p&&c(m.map(g=>g.name))},[m,p]);let f=g=>{let v=new Set;for(let b of g){let y=jhe(m,b);y&&v.add(y)}c(ag),o(Array.from(v))};return(0,V1.jsx)("div",{className:"block-library-query-inspector__taxonomy-control",children:(0,V1.jsx)(U4.FormTokenField,{label:e.name,value:i,onInputChange:u,suggestions:s,displayTransform:EQ.decodeEntities,onChange:f,__experimentalShowHowTo:!1,__next40pxDefaultSize:!0})})}var LQ=r(L()),RQ=r(z()),HQ=r(Y()),Ti=r(B()),zQ=r(h()),Uhe=[{value:"aside",label:(0,Ti.__)("Aside")},{value:"audio",label:(0,Ti.__)("Audio")},{value:"chat",label:(0,Ti.__)("Chat")},{value:"gallery",label:(0,Ti.__)("Gallery")},{value:"image",label:(0,Ti.__)("Image")},{value:"link",label:(0,Ti.__)("Link")},{value:"quote",label:(0,Ti.__)("Quote")},{value:"standard",label:(0,Ti.__)("Standard")},{value:"status",label:(0,Ti.__)("Status")},{value:"video",label:(0,Ti.__)("Video")}].sort((e,t)=>{let o=e.label.toUpperCase(),a=t.label.toUpperCase();return o<a?-1:o>a?1:0});function Ghe(e,t){return e.map(o=>t.find(a=>a.label.toLocaleLowerCase()===o.toLocaleLowerCase())?.value).filter(Boolean)}function AQ({onChange:e,query:{format:t}}){let o=Array.isArray(t)?t:[t],{supportedFormats:a}=(0,RQ.useSelect)(s=>({supportedFormats:s(HQ.store).getThemeSupports().formats}),[]),n=Uhe.filter(s=>a.includes(s.value)),i=o.map(s=>n.find(c=>c.value===s)?.label).filter(Boolean),l=n.filter(s=>!o.includes(s.value)).map(s=>s.label);return(0,zQ.jsx)(LQ.FormTokenField,{label:(0,Ti.__)("Formats"),value:i,suggestions:l,onChange:s=>{e({format:Ghe(s,n)})},__experimentalShowHowTo:!1,__experimentalExpandOnFocus:!0,__next40pxDefaultSize:!0})}var VQ=r(L()),zp=r(B()),FQ=r(h()),$he=[{label:(0,zp.__)("Include"),value:""},{label:(0,zp.__)("Ignore"),value:"ignore"},{label:(0,zp.__)("Exclude"),value:"exclude"},{label:(0,zp.__)("Only"),value:"only"}];function jQ({value:e,onChange:t}){return(0,FQ.jsx)(VQ.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,zp.__)("Sticky posts"),options:$he,value:e,onChange:t,help:(0,zp.__)("Sticky posts always appear first, regardless of their publish date.")})}var GQ=r(L()),$Q=r(B()),WQ=r(h()),OQ=1,UQ=100,Whe=({perPage:e,offset:t=0,onChange:o})=>(0,WQ.jsx)(GQ.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,$Q.__)("Items per page"),min:OQ,max:UQ,onChange:a=>{isNaN(a)||a<OQ||a>UQ||o({perPage:a,offset:t})},value:parseInt(e,10)}),qQ=Whe;var KQ=r(L()),QQ=r(B()),YQ=r(h()),ZQ=0,qhe=100,Zhe=({offset:e=0,onChange:t})=>(0,YQ.jsx)(KQ.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,QQ.__)("Offset"),value:e,min:ZQ,onChange:o=>{isNaN(o)||o<ZQ||o>qhe||t({offset:o})}}),XQ=Zhe;var JQ=r(L()),_N=r(B()),eY=r(h()),Khe=({pages:e,onChange:t})=>(0,eY.jsx)(JQ.__experimentalNumberControl,{__next40pxDefaultSize:!0,label:(0,_N.__)("Max pages to show"),value:e,min:0,onChange:o=>{isNaN(o)||o<0||t({pages:o})},help:(0,_N.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")}),tY=Khe;var $e=r(h());function nY(e){let{attributes:t,setQuery:o,isSingular:a}=e,{query:n}=t,{order:i,orderBy:l,author:s,pages:c,postType:u,perPage:m,offset:p,sticky:d,inherit:f,taxQuery:g,parents:v,format:b}=n,y=lQ(t),_=u==="post",{postTypesTaxonomiesMap:x,postTypesSelectOptions:w,postTypeFormatSupportMap:C}=aQ(),T=F4(u),N=nQ(u),P=re=>{let se={postType:re},we=x[re],fe=Object.entries(g||{}).reduce((kt,[bt,_o])=>(we.includes(bt)&&(kt[bt]=_o),kt),{});se.taxQuery=Object.keys(fe).length?fe:void 0,re!=="post"&&(se.sticky=""),se.parents=[],C[re]||(se.format=[]),o(se)},[M,R]=(0,G4.useState)(n.search),H=(0,G4.useMemo)(()=>(0,aY.debounce)(re=>{o({search:re})},250),[o]),O=iQ(u),A=ai(y,"inherit"),I=!f&&ai(y,"postType"),V=(0,to.__)("Post type"),W=(0,to.__)("Select the type of content to display: posts, pages, or custom post types."),j=!f&&ai(y,"order"),K=!f&&_&&ai(y,"sticky"),Z=A||I||j||K,te=!!T?.length&&ai(y,"taxQuery"),X=ai(y,"author"),J=ai(y,"search"),ee=ai(y,"parents")&&N,ne=C[u],oe=(0,oY.useSelect)(re=>{if(!ne||!ai(y,"format"))return!1;let se=re(rY.store).getThemeSupports();return se.formats&&se.formats.length>0&&se.formats.some(we=>we!=="standard")},[y,ne]),ce=te||X||J||ee||oe,pe=G(),Ne=ai(y,"postCount"),Le=ai(y,"offset"),ie=ai(y,"pages"),Ee=Ne||Le||ie,de=a&&f;return(0,$e.jsxs)($e.Fragment,{children:[Z&&(0,$e.jsxs)(ut.__experimentalToolsPanel,{label:(0,to.__)("Settings"),resetAll:()=>{o({postType:"post",order:"desc",orderBy:"date",sticky:"",inherit:!0})},dropdownMenuProps:pe,children:[A&&(0,$e.jsx)(ut.__experimentalToolsPanelItem,{hasValue:()=>!f,label:(0,to.__)("Query type"),onDeselect:()=>o({inherit:!0}),isShownByDefault:!0,children:(0,$e.jsxs)(ut.__experimentalVStack,{spacing:4,children:[(0,$e.jsxs)(ut.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,to.__)("Query type"),isBlock:!0,onChange:re=>{o({inherit:re==="default"})},help:f?(0,to.__)("Display a list of posts or custom post types based on the current template."):(0,to.__)("Display a list of posts or custom post types based on specific criteria."),value:f?"default":"custom",children:[(0,$e.jsx)(ut.__experimentalToggleGroupControlOption,{value:"default",label:(0,to.__)("Default")}),(0,$e.jsx)(ut.__experimentalToggleGroupControlOption,{value:"custom",label:(0,to.__)("Custom")})]}),de&&(0,$e.jsx)(ut.Notice,{status:"warning",isDismissible:!1,children:(0,to.__)("Cannot inherit the current template query when placed inside the singular content (e.g., post, page, 404, blank).")})]})}),I&&(0,$e.jsx)(ut.__experimentalToolsPanelItem,{hasValue:()=>u!=="post",label:V,onDeselect:()=>P("post"),isShownByDefault:!0,children:w.length>2?(0,$e.jsx)(ut.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:w,value:u,label:V,onChange:P,help:W}):(0,$e.jsx)(ut.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,isBlock:!0,value:u,label:V,onChange:P,help:W,children:w.map(re=>(0,$e.jsx)(ut.__experimentalToggleGroupControlOption,{value:re.value,label:re.label},re.value))})}),j&&(0,$e.jsx)(ut.__experimentalToolsPanelItem,{hasValue:()=>i!=="desc"||l!=="date",label:(0,to.__)("Order by"),onDeselect:()=>o({order:"desc",orderBy:"date"}),isShownByDefault:!0,children:(0,$e.jsx)(vQ,{order:i,orderBy:l,orderByOptions:O,onChange:o})}),K&&(0,$e.jsx)(ut.__experimentalToolsPanelItem,{hasValue:()=>!!d,label:(0,to.__)("Sticky posts"),onDeselect:()=>o({sticky:""}),isShownByDefault:!0,children:(0,$e.jsx)(jQ,{value:d,onChange:re=>o({sticky:re})})})]}),!f&&Ee&&(0,$e.jsxs)(ut.__experimentalToolsPanel,{className:"block-library-query-toolspanel__display",label:(0,to.__)("Display"),resetAll:()=>{o({offset:0,pages:0})},dropdownMenuProps:pe,children:[(0,$e.jsx)(ut.__experimentalToolsPanelItem,{label:(0,to.__)("Items per page"),hasValue:()=>m>0,children:(0,$e.jsx)(qQ,{perPage:m,offset:p,onChange:o})}),(0,$e.jsx)(ut.__experimentalToolsPanelItem,{label:(0,to.__)("Offset"),hasValue:()=>p>0,onDeselect:()=>o({offset:0}),children:(0,$e.jsx)(XQ,{offset:p,onChange:o})}),(0,$e.jsx)(ut.__experimentalToolsPanelItem,{label:(0,to.__)("Max pages to show"),hasValue:()=>c>0,onDeselect:()=>o({pages:0}),children:(0,$e.jsx)(tY,{pages:c,onChange:o})})]}),!f&&ce&&(0,$e.jsxs)(ut.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,to.__)("Filters"),resetAll:()=>{o({author:"",parents:[],search:"",taxQuery:null,format:[]}),R("")},dropdownMenuProps:pe,children:[te&&(0,$e.jsx)(ut.__experimentalToolsPanelItem,{label:(0,to.__)("Taxonomies"),hasValue:()=>Object.values(g||{}).some(re=>!!re.length),onDeselect:()=>o({taxQuery:null}),children:(0,$e.jsx)(MQ,{onChange:o,query:n})}),X&&(0,$e.jsx)(ut.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,to.__)("Authors"),onDeselect:()=>o({author:""}),children:(0,$e.jsx)(wQ,{value:s,onChange:o})}),J&&(0,$e.jsx)(ut.__experimentalToolsPanelItem,{hasValue:()=>!!M,label:(0,to.__)("Keyword"),onDeselect:()=>{o({search:""}),R("")},children:(0,$e.jsx)(ut.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,to.__)("Keyword"),value:M,onChange:re=>{H(re),R(re)}})}),ee&&(0,$e.jsx)(ut.__experimentalToolsPanelItem,{hasValue:()=>!!v?.length,label:(0,to.__)("Parents"),onDeselect:()=>o({parents:[]}),children:(0,$e.jsx)(NQ,{parents:v,postType:u,onChange:o})}),oe&&(0,$e.jsx)(ut.__experimentalToolsPanelItem,{hasValue:()=>!!b?.length,label:(0,to.__)("Formats"),onDeselect:()=>o({format:[]}),children:(0,$e.jsx)(AQ,{onChange:o,query:n})})]})]})}var ig=r(L()),F1=r(B()),$4=r(F());var ng=r(h()),iY="wp-block-query-enhanced-pagination-modal__description";function lY({clientId:e,attributes:{enhancedPagination:t},setAttributes:o}){let[a,n]=(0,$4.useState)(!1),i=j4(e);(0,$4.useEffect)(()=>{t&&i&&(o({enhancedPagination:!1}),n(!0))},[t,i,o]);let l=()=>{n(!1)},s=(0,F1.__)("Currently, avoiding full page reloads is not possible when non-interactive or non-client Navigation compatible blocks from plugins are present inside the Query block.")+" "+(0,F1.__)('If you still want to prevent full page reloads, remove that block, then disable "Reload full page" again in the Query Block settings.');return a&&(0,ng.jsx)(ig.Modal,{title:(0,F1.__)("Query block: Reload full page enabled"),className:"wp-block-query__enhanced-pagination-modal",aria:{describedby:iY},role:"alertdialog",focusOnMount:"firstElement",isDismissible:!1,onRequestClose:l,children:(0,ng.jsxs)(ig.__experimentalVStack,{alignment:"right",spacing:5,children:[(0,ng.jsx)("span",{id:iY,children:s}),(0,ng.jsx)(ig.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:l,children:(0,F1.__)("OK")})]})})}var zu=r(L()),kN=r(B());var lg=r(F()),uY=r(z()),q4=r(L()),sg=r(S()),W4=r(B());var cY=r(z0());function sY(e=""){return e=(0,cY.default)(e),e=e.trim().toLowerCase(),e}function Qhe(e,t){let o=sY(t),a=sY(e.title),n=0;return o===a?n+=30:a.startsWith(o)?n+=20:o.split(" ").every(s=>a.includes(s))&&(n+=10),n}function j1(e=[],t=""){if(!t)return e;let o=e.map(a=>[a,Qhe(a,t)]).filter(([,a])=>a>0);return o.sort(([,a],[,n])=>n-a),o.map(([a])=>a)}var hc=r(h());function mY({clientId:e,attributes:t,setIsPatternSelectionModalOpen:o}){return(0,hc.jsx)(q4.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,W4.__)("Choose a pattern"),onRequestClose:()=>o(!1),isFullScreen:!0,children:(0,hc.jsx)(xN,{clientId:e,attributes:t})})}function O1(e,t){let o=cQ(e,t),a=mQ(e,o);return(0,lg.useMemo)(()=>a.filter(i=>i.blocks?.[0]?.name===o),[a,o])}function xN({clientId:e,attributes:t,showTitlesAsTooltip:o=!1,showSearch:a=!0}){let[n,i]=(0,lg.useState)(""),{replaceBlock:l,selectBlock:s}=(0,uY.useDispatch)(sg.store),c=O1(e,t),u=(0,lg.useMemo)(()=>({previewPostType:t.query.postType}),[t.query.postType]),m=(0,lg.useMemo)(()=>j1(c,n),[c,n]),p=(d,f)=>{let{newBlocks:g,queryClientIds:v}=sQ(f,t);l(e,g),v[0]&&s(v[0])};return(0,hc.jsxs)("div",{className:"block-library-query-pattern__selection-content",children:[a&&(0,hc.jsx)("div",{className:"block-library-query-pattern__selection-search",children:(0,hc.jsx)(q4.SearchControl,{__nextHasNoMarginBottom:!0,onChange:i,value:n,label:(0,W4.__)("Search"),placeholder:(0,W4.__)("Search")})}),(0,hc.jsx)(sg.BlockContextProvider,{value:u,children:(0,hc.jsx)(sg.__experimentalBlockPatternsList,{blockPatterns:m,onClickPattern:p,showTitlesAsTooltip:o})})]})}var cg=r(h());function Z4({clientId:e,attributes:t,hasInnerBlocks:o}){if(!O1(e,t).length)return null;let n=o?(0,kN.__)("Change design"):(0,kN.__)("Choose pattern");return(0,cg.jsx)(zu.ToolbarGroup,{className:"wp-block-template-part__block-control-group",children:(0,cg.jsx)(zu.__experimentalDropdownContentWrapper,{children:(0,cg.jsx)(zu.Dropdown,{contentClassName:"block-editor-block-settings-menu__popover",focusOnMount:"firstElement",expandOnMobile:!0,renderToggle:({isOpen:i,onToggle:l})=>(0,cg.jsx)(zu.ToolbarButton,{"aria-haspopup":"true","aria-expanded":i,onClick:l,children:n}),renderContent:()=>(0,cg.jsx)(xN,{clientId:e,attributes:t,showSearch:!1,showTitlesAsTooltip:!0})})})})}var gn=r(h()),{HTMLElementControl:Yhe}=Q(hn.privateApis),Xhe=3,Jhe=[["core/post-template"]];function wN({attributes:e,setAttributes:t,clientId:o,context:a,name:n}){let{queryId:i,query:l,enhancedPagination:s,tagName:c="div",query:{inherit:u}={}}=e,{templateSlug:m}=a,{isSingular:p}=pQ(m),{__unstableMarkNextChangeAsNotPersistent:d}=(0,K4.useDispatch)(hn.store),f=(0,pY.useInstanceId)(wN),g=(0,hn.useBlockProps)(),v=(0,hn.useInnerBlocksProps)(g,{template:Jhe}),{postsPerPage:b}=(0,K4.useSelect)(_=>{let{getSettings:x}=_(hn.store),{getEntityRecord:w,getEntityRecordEdits:C,canUser:T}=_(fY.store),N=T("read",{kind:"root",name:"site"})?+w("root","site")?.posts_per_page:+x().postsPerPage;return{postsPerPage:+C("root","site")?.posts_per_page||N||Xhe}},[]),y=(0,U1.useCallback)(_=>t(x=>({query:{...x.query,..._}})),[t]);return(0,U1.useEffect)(()=>{let _={};(u&&l.perPage!==b||!l.perPage&&b)&&(_.perPage=b),Object.keys(_).length&&(d(),y(_))},[l.perPage,u,b,d,y]),(0,U1.useEffect)(()=>{Number.isFinite(i)||(d(),t({queryId:f}))},[i,f,d,t]),(0,gn.jsxs)(gn.Fragment,{children:[(0,gn.jsx)(hn.BlockControls,{children:(0,gn.jsx)(Z4,{clientId:o,attributes:e,hasInnerBlocks:!0})}),(0,gn.jsx)(lY,{attributes:e,setAttributes:t,clientId:o}),(0,gn.jsx)(hn.InspectorControls,{children:(0,gn.jsx)(nY,{name:n,attributes:e,setQuery:y,setAttributes:t,clientId:o,isSingular:p})}),(0,gn.jsxs)(hn.InspectorControls,{group:"advanced",children:[(0,gn.jsx)(Yhe,{tagName:c,onChange:_=>t({tagName:_}),clientId:o,options:[{label:(0,dY.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]}),(0,gn.jsx)(fQ,{enhancedPagination:s,setAttributes:t,clientId:o})]}),(0,gn.jsx)(c,{...v})]})}var Y4=r(z()),X4=r(U()),CN=r(F()),vc=r(S()),G1=r(L()),Q4=r(B()),gY=r(xe());var _l=r(h());function hY({attributes:e,clientId:t,name:o,openPatternSelectionModal:a}){let[n,i]=(0,CN.useState)(!1),[l,s]=(0,CN.useState)(0),c=(0,gY.useResizeObserver)(([y])=>{s(y.contentRect.width)}),m=l>0&&l<160,{blockType:p,activeBlockVariation:d}=(0,Y4.useSelect)(y=>{let{getActiveBlockVariation:_,getBlockType:x}=y(X4.store);return{blockType:x(o),activeBlockVariation:_(o,e)}},[o,e]),f=!!O1(t,e).length,g=d?.icon?.src||d?.icon||p?.icon?.src,v=d?.title||p?.title,b=(0,vc.useBlockProps)({ref:c});return n?(0,_l.jsx)(e0e,{clientId:t,attributes:e,icon:g,label:v}):(0,_l.jsxs)("div",{...b,children:[(0,_l.jsx)(vc.BlockControls,{children:(0,_l.jsx)(Z4,{clientId:t,attributes:e,hasInnerBlocks:!1})}),(0,_l.jsxs)(G1.Placeholder,{className:"block-editor-media-placeholder",icon:!m&&g,label:!m&&v,instructions:!m&&(0,Q4.__)("Choose a pattern for the query loop or start blank."),withIllustration:m,children:[!!f&&!m&&(0,_l.jsx)(G1.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:a,children:(0,Q4.__)("Choose")}),!m&&(0,_l.jsx)(G1.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{i(!0)},children:(0,Q4.__)("Start blank")})]})]})}function e0e({clientId:e,attributes:t,icon:o,label:a}){let n=uQ(t),{replaceInnerBlocks:i}=(0,Y4.useDispatch)(vc.store),l=(0,vc.useBlockProps)();return(0,_l.jsx)("div",{...l,children:(0,_l.jsx)(vc.__experimentalBlockVariationPicker,{icon:o,label:a,variations:n,onSelect:s=>{s.innerBlocks&&i(e,(0,X4.createBlocksFromInnerBlocksTemplate)(s.innerBlocks),!1)}})})}var Ap=r(h()),t0e=e=>{let{clientId:t,attributes:o}=e,[a,n]=(0,bY.useState)(!1),l=(0,vY.useSelect)(s=>!!s(yY.store).getBlocks(t).length,[t])?wN:hY;return(0,Ap.jsxs)(Ap.Fragment,{children:[(0,Ap.jsx)(l,{...e,openPatternSelectionModal:()=>n(!0)}),a&&(0,Ap.jsx)(mY,{clientId:t,attributes:o,setIsPatternSelectionModalOpen:n})]})},_Y=t0e;var J4=r(S()),xY=r(h());function kY({attributes:{tagName:e="div"}}){let t=J4.useBlockProps.save(),o=J4.useInnerBlocksProps.save(t);return(0,xY.jsx)(e,{...o})}var $1=r(B());var bs=r(L()),bc=r(h()),wY=(0,bc.jsx)(bs.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,bc.jsx)(bs.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})}),CY=(0,bc.jsx)(bs.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,bc.jsx)(bs.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})}),SY=(0,bc.jsx)(bs.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,bc.jsx)(bs.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})}),TY=(0,bc.jsx)(bs.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,bc.jsx)(bs.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})});var SN=["core/post-date",{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}],o0e=[{name:"title-date",title:(0,$1.__)("Title & Date"),icon:wY,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],SN]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,$1.__)("Title & Excerpt"),icon:CY,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,$1.__)("Title, Date, & Excerpt"),icon:SY,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-title"],SN,["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,$1.__)("Image, Date, & Title"),icon:TY,attributes:{},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],SN,["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}],BY=o0e;var e3=r(U()),vn=r(S());var ug=r(h()),{cleanEmptyObject:TN}=Q(vn.privateApis),PY=e=>{let{query:t}=e,{categoryIds:o,tagIds:a,...n}=t;return(t.categoryIds?.length||t.tagIds?.length)&&(n.taxQuery={category:t.categoryIds?.length?t.categoryIds:void 0,post_tag:t.tagIds?.length?t.tagIds:void 0}),{...e,query:n}},NY=(e,t)=>{let{style:o,backgroundColor:a,gradient:n,textColor:i,...l}=e;if(!(a||n||i||o?.color||o?.elements?.link))return[e,t];if(o&&(l.style=TN({...o,color:void 0,elements:{...o.elements,link:void 0}})),r0e(t)){let u=t[0],p=o?.color||o?.elements?.link||u.attributes.style?TN({...u.attributes.style,color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0}):void 0,d=(0,e3.createBlock)("core/group",{...u.attributes,backgroundColor:a,gradient:n,textColor:i,style:p},u.innerBlocks);return[l,[d]]}let c=(0,e3.createBlock)("core/group",{backgroundColor:a,gradient:n,textColor:i,style:TN({color:o?.color,elements:o?.elements?.link?{link:o?.elements?.link}:void 0})},t);return[l,[c]]},r0e=(e=[])=>e.length===1&&e[0].name==="core/group",BN=e=>{let{layout:t=null}=e;if(!t)return e;let{inherit:o=null,contentSize:a=null,...n}=t;return o||a?{...e,layout:{...n,contentSize:a,type:"constrained"}}:e},IY=(e=[])=>{let t=null;for(let o of e)if(o.name==="core/post-template"){t=o;break}else o.innerBlocks.length&&(t=IY(o.innerBlocks));return t},DY=(e=[],t)=>(e.forEach((o,a)=>{o.name==="core/post-template"?e.splice(a,1,t):o.innerBlocks.length&&(o.innerBlocks=DY(o.innerBlocks,t))}),e),W1=(e,t)=>{let{displayLayout:o=null,...a}=e;if(!o)return[e,t];let n=IY(t);if(!n)return[e,t];let{type:i,columns:l}=o,s=i==="flex"?"grid":"default",c=(0,e3.createBlock)("core/post-template",{...n.attributes,layout:{type:s,...l&&{columnCount:l}}},n.innerBlocks);return[a,DY(t,c)]},a0e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e,t){let o=PY(e),{layout:a,...n}=o,i={...n,displayLayout:o.layout};return W1(i,t)},save(){return(0,ug.jsx)(vn.InnerBlocks.Content,{})}},n0e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){let o=PY(e),[a,n]=NY(o,t),i=BN(a);return W1(i,n)},save({attributes:{tagName:e="div"}}){let t=vn.useBlockProps.save(),o=vn.useInnerBlocksProps.save(t);return(0,ug.jsx)(e,{...o})}},i0e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){let{style:t,backgroundColor:o,gradient:a,textColor:n}=e;return o||a||n||t?.color||t?.elements?.link},migrate(e,t){let[o,a]=NY(e,t),n=BN(o);return W1(n,a)},save({attributes:{tagName:e="div"}}){let t=vn.useBlockProps.save(),o=vn.useInnerBlocksProps.save(t);return(0,ug.jsx)(e,{...o})}},l0e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){let t=vn.useBlockProps.save(),o=vn.useInnerBlocksProps.save(t);return(0,ug.jsx)(e,{...o})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&e?.type!=="constrained",migrate(e,t){let o=BN(e);return W1(o,t)}},s0e={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){let t=vn.useBlockProps.save(),o=vn.useInnerBlocksProps.save(t);return(0,ug.jsx)(e,{...o})},isEligible:({displayLayout:e})=>!!e,migrate:W1},c0e=[s0e,l0e,i0e,n0e,a0e],EY=c0e;var{name:MY}=A4,LY={icon:ym,edit:_Y,example:{viewportWidth:650,attributes:{namespace:"core/posts-list",query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},innerBlocks:[{name:"core/post-template",attributes:{layout:{type:"grid",columnCount:2}},innerBlocks:[{name:"core/post-title"},{name:"core/post-date",attributes:{metadata:{bindings:{datetime:{source:"core/post-data",args:{field:"date"}}}}}},{name:"core/post-excerpt"}]}]},save:kY,variations:BY,deprecated:EY},u0e=()=>D({name:MY,metadata:A4,settings:LY});var NN={};$(NN,{init:()=>d0e,metadata:()=>t3,name:()=>OY,settings:()=>UY});var jY=r(B());var t3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No Results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",ancestor:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var o3=r(S()),RY=r(B()),HY=r(h()),p0e=[["core/paragraph",{placeholder:(0,RY.__)("Add text or blocks that will display when a query returns no results.")}]];function zY(){let e=(0,o3.useBlockProps)(),t=(0,o3.useInnerBlocksProps)(e,{template:p0e});return(0,HY.jsx)("div",{...t})}var AY=r(S()),VY=r(h());function FY(){return(0,VY.jsx)(AY.InnerBlocks.Content,{})}var{name:OY}=t3,UY={icon:ym,edit:zY,save:FY,example:{innerBlocks:[{name:"core/paragraph",attributes:{content:(0,jY.__)("No posts were found.")}}]}},d0e=()=>D({name:OY,metadata:t3,settings:UY});var EN={};$(EN,{init:()=>v0e,metadata:()=>r3,name:()=>eX,settings:()=>tX});var r3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination",title:"Pagination",category:"theme",ancestor:["core/query"],allowedBlocks:["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"},showLabel:{type:"boolean",default:!0}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow",showLabel:"showLabel"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"};var a3=r(B()),yc=r(S()),n3=r(z()),q1=r(L()),ZY=r(F());var Vp=r(B()),mg=r(L()),pg=r(h());function GY({value:e,onChange:t}){return(0,pg.jsxs)(mg.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Vp.__)("Arrow"),value:e,onChange:t,help:(0,Vp.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0,children:[(0,pg.jsx)(mg.__experimentalToggleGroupControlOption,{value:"none",label:(0,Vp._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,pg.jsx)(mg.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Vp._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,pg.jsx)(mg.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Vp._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")})]})}var IN=r(B()),$Y=r(L()),WY=r(h());function qY({value:e,onChange:t}){return(0,WY.jsx)($Y.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,IN.__)("Show label text"),help:(0,IN.__)('Make label text visible, e.g. "Next Page".'),onChange:t,checked:e===!0})}var Bi=r(h()),g0e=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]];function KY({attributes:{paginationArrow:e,showLabel:t},setAttributes:o,clientId:a}){let n=(0,n3.useSelect)(u=>{let{getBlocks:m}=u(yc.store);return m(a)?.find(d=>["core/query-pagination-next","core/query-pagination-previous"].includes(d.name))},[a]),{__unstableMarkNextChangeAsNotPersistent:i}=(0,n3.useDispatch)(yc.store),l=G(),s=(0,yc.useBlockProps)(),c=(0,yc.useInnerBlocksProps)(s,{template:g0e});return(0,ZY.useEffect)(()=>{e==="none"&&!t&&(i(),o({showLabel:!0}))},[e,o,t,i]),(0,Bi.jsxs)(Bi.Fragment,{children:[n&&(0,Bi.jsx)(yc.InspectorControls,{children:(0,Bi.jsxs)(q1.__experimentalToolsPanel,{label:(0,a3.__)("Settings"),resetAll:()=>{o({paginationArrow:"none",showLabel:!0})},dropdownMenuProps:l,children:[(0,Bi.jsx)(q1.__experimentalToolsPanelItem,{hasValue:()=>e!=="none",label:(0,a3.__)("Pagination arrow"),onDeselect:()=>o({paginationArrow:"none"}),isShownByDefault:!0,children:(0,Bi.jsx)(GY,{value:e,onChange:u=>{o({paginationArrow:u})}})}),e!=="none"&&(0,Bi.jsx)(q1.__experimentalToolsPanelItem,{hasValue:()=>!t,label:(0,a3.__)("Show text"),onDeselect:()=>o({showLabel:!0}),isShownByDefault:!0,children:(0,Bi.jsx)(qY,{value:t,onChange:u=>{o({showLabel:u})}})})]})}),(0,Bi.jsx)("nav",{...c})]})}var QY=r(S()),YY=r(h());function XY(){return(0,YY.jsx)(QY.InnerBlocks.Content,{})}var i3=r(S()),DN=r(h()),h0e=[{save(){return(0,DN.jsx)("div",{...i3.useBlockProps.save(),children:(0,DN.jsx)(i3.InnerBlocks.Content,{})})}}],JY=h0e;var{name:eX}=r3,tX={icon:Uh,edit:KY,save:XY,deprecated:JY},v0e=()=>D({name:eX,metadata:r3,settings:tX});var LN={};$(LN,{init:()=>_0e,metadata:()=>l3,name:()=>rX,settings:()=>aX});var l3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var MN=r(B()),s3=r(S()),Z1=r(h()),y0e={none:"",arrow:"\u2192",chevron:"\xBB"};function oX({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:a}}){let n=y0e[o];return(0,Z1.jsxs)("a",{href:"#pagination-next-pseudo-link",onClick:i=>i.preventDefault(),...(0,s3.useBlockProps)(),children:[a&&(0,Z1.jsx)(s3.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,MN.__)("Next page link"),placeholder:(0,MN.__)("Next Page"),value:e,onChange:i=>t({label:i})}),n&&(0,Z1.jsx)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${o}`,"aria-hidden":!0,children:n})]})}var{name:rX}=l3,aX={icon:Fh,edit:oX},_0e=()=>D({name:rX,metadata:l3,settings:aX});var RN={};$(RN,{init:()=>w0e,metadata:()=>c3,name:()=>iX,settings:()=>lX});var c3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination.",textdomain:"default",attributes:{midSize:{type:"number",default:2}},usesContext:["queryId","query","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-query-pagination-numbers-editor"};var Q1=r(B()),u3=r(S()),dg=r(L());var ni=r(h()),K1=(e,t="a",o="")=>(0,ni.jsx)(t,{className:`page-numbers ${o}`,children:e},e),k0e=e=>{let t=[];for(let o=1;o<=e;o++)t.push(K1(o));t.push(K1(e+1,"span","current"));for(let o=1;o<=e;o++)t.push(K1(e+1+o));return t.push(K1("...","span","dots")),t.push(K1(e*2+3)),(0,ni.jsx)(ni.Fragment,{children:t})};function nX({attributes:e,setAttributes:t}){let{midSize:o}=e,a=k0e(parseInt(o,10)),n=G();return(0,ni.jsxs)(ni.Fragment,{children:[(0,ni.jsx)(u3.InspectorControls,{children:(0,ni.jsx)(dg.__experimentalToolsPanel,{label:(0,Q1.__)("Settings"),resetAll:()=>t({midSize:2}),dropdownMenuProps:n,children:(0,ni.jsx)(dg.__experimentalToolsPanelItem,{label:(0,Q1.__)("Number of links"),hasValue:()=>o!==2,onDeselect:()=>t({midSize:2}),isShownByDefault:!0,children:(0,ni.jsx)(dg.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Q1.__)("Number of links"),help:(0,Q1.__)("Specify how many links can appear before and after the current page number. Links to the first, current and last page are always visible."),value:o,onChange:i=>{t({midSize:parseInt(i,10)})},min:0,max:5,withInputField:!1})})})}),(0,ni.jsx)("div",{...(0,u3.useBlockProps)(),children:a})]})}var{name:iX}=c3,lX={icon:jh,edit:nX,example:{}},w0e=()=>D({name:iX,metadata:c3,settings:lX});var zN={};$(zN,{init:()=>T0e,metadata:()=>m3,name:()=>cX,settings:()=>uX});var m3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel","enhancedPagination"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}}};var HN=r(B()),p3=r(S()),Y1=r(h()),S0e={none:"",arrow:"\u2190",chevron:"\xAB"};function sX({attributes:{label:e},setAttributes:t,context:{paginationArrow:o,showLabel:a}}){let n=S0e[o];return(0,Y1.jsxs)("a",{href:"#pagination-previous-pseudo-link",onClick:i=>i.preventDefault(),...(0,p3.useBlockProps)(),children:[n&&(0,Y1.jsx)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${o}`,"aria-hidden":!0,children:n}),a&&(0,Y1.jsx)(p3.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,HN.__)("Previous page link"),placeholder:(0,HN.__)("Previous Page"),value:e,onChange:i=>t({label:i})})]})}var{name:cX}=m3,uX={icon:Oh,edit:sX},T0e=()=>D({name:cX,metadata:m3,settings:uX});var jN={};$(jN,{init:()=>I0e,metadata:()=>d3,name:()=>bX,settings:()=>yX});var d3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},levelOptions:{type:"array"},showPrefix:{type:"boolean",default:!0},showSearchTerm:{type:"boolean",default:!0}},example:{attributes:{type:"search"}},usesContext:["query"],supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-query-title"};var bn=r(S()),Pi=r(L()),Rt=r(B());var AN=r(Y()),VN=r(z());function mX(){let e=(0,VN.useSelect)(l=>{let{getCurrentPostId:s,getCurrentPostType:c,getCurrentTemplateId:u}=l("core/editor"),m=c(),p=u()||(m==="wp_template"?s():null);return p?l(AN.store).getEditedEntityRecord("postType","wp_template",p)?.slug:null},[]),t=e?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),o,a,n=!1,i;if(t)t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],a=t[7]),o=o==="tag"?"post_tag":o;else{let l=e?.match(/^(author)$|^author-(.+)$/);l&&(n=!0,l[2]&&(i=l[2]))}return(0,VN.useSelect)(l=>{let{getEntityRecords:s,getTaxonomy:c,getAuthors:u}=l(AN.store),m,p;if(o&&(m=c(o)?.labels?.singular_name),a){let d=s("taxonomy",o,{slug:a,per_page:1});d&&d[0]&&(p=d[0].name)}if(n&&(m="Author",i)){let d=u({slug:i});d&&d[0]&&(p=d[0].name)}return{archiveTypeLabel:m,archiveNameLabel:p}},[i,n,o,a])}var pX=r(Y()),FN=r(z());function dX(e){let t=(0,FN.useSelect)(o=>{let{getCurrentPostType:a}=o("core/editor");return a()},[]);return(0,FN.useSelect)(o=>{let{getPostType:a}=o(pX.store),i=a(e||t);return{postTypeLabel:i?i.labels.singular_name:""}},[e,t])}var gt=r(h()),P0e=["archive","search","post-type"];function fX({attributes:{type:e,level:t,levelOptions:o,textAlign:a,showPrefix:n,showSearchTerm:i},setAttributes:l,context:{query:s}}){let{archiveTypeLabel:c,archiveNameLabel:u}=mX(),{postTypeLabel:m}=dX(s?.postType),p=G(),d=t===0?"p":`h${t}`,f=(0,bn.useBlockProps)({className:k("wp-block-query-title__placeholder",{[`has-text-align-${a}`]:a})});if(!P0e.includes(e))return(0,gt.jsx)("div",{...f,children:(0,gt.jsx)(bn.Warning,{children:(0,Rt.__)("Provided type is not supported.")})});let g;if(e==="archive"){let v;c?n?u?v=(0,Rt.sprintf)((0,Rt._x)("%1$s: %2$s","archive label"),c,u):v=(0,Rt.sprintf)((0,Rt.__)("%s: Name"),c):u?v=u:v=(0,Rt.sprintf)((0,Rt.__)("%s name"),c):v=n?(0,Rt.__)("Archive type: Name"):(0,Rt.__)("Archive title"),g=(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(bn.InspectorControls,{children:(0,gt.jsx)(Pi.__experimentalToolsPanel,{label:(0,Rt.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,gt.jsx)(Pi.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Rt.__)("Show archive type in title"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,gt.jsx)(Pi.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Rt.__)("Show archive type in title"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,gt.jsx)(d,{...f,children:v})]})}if(e==="search"&&(g=(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(bn.InspectorControls,{children:(0,gt.jsx)(Pi.__experimentalToolsPanel,{label:(0,Rt.__)("Settings"),resetAll:()=>l({showSearchTerm:!0}),dropdownMenuProps:p,children:(0,gt.jsx)(Pi.__experimentalToolsPanelItem,{hasValue:()=>!i,label:(0,Rt.__)("Show search term in title"),onDeselect:()=>l({showSearchTerm:!0}),isShownByDefault:!0,children:(0,gt.jsx)(Pi.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Rt.__)("Show search term in title"),onChange:()=>l({showSearchTerm:!i}),checked:i})})})}),(0,gt.jsx)(d,{...f,children:i?(0,Rt.__)("Search results for: \u201Csearch term\u201D"):(0,Rt.__)("Search results")})]})),e==="post-type"){let v;m?n?v=(0,Rt.sprintf)((0,Rt.__)('Post Type: "%s"'),m):v=m:v=n?(0,Rt.__)("Post Type: Name"):(0,Rt.__)("Name"),g=(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsx)(bn.InspectorControls,{children:(0,gt.jsx)(Pi.__experimentalToolsPanel,{label:(0,Rt.__)("Settings"),resetAll:()=>l({showPrefix:!0}),dropdownMenuProps:p,children:(0,gt.jsx)(Pi.__experimentalToolsPanelItem,{hasValue:()=>!n,label:(0,Rt.__)("Show post type label"),onDeselect:()=>l({showPrefix:!0}),isShownByDefault:!0,children:(0,gt.jsx)(Pi.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Rt.__)("Show post type label"),onChange:()=>l({showPrefix:!n}),checked:n})})})}),(0,gt.jsx)(d,{...f,children:v})]})}return(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.jsxs)(bn.BlockControls,{group:"block",children:[(0,gt.jsx)(bn.HeadingLevelDropdown,{value:t,options:o,onChange:v=>l({level:v})}),(0,gt.jsx)(bn.AlignmentControl,{value:a,onChange:v=>{l({textAlign:v})}})]}),g]})}var Fp=r(B());var gX=[{isDefault:!0,name:"archive-title",title:(0,Fp.__)("Archive Title"),description:(0,Fp.__)("Display the archive title based on the queried object."),icon:Oi,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,Fp.__)("Search Results Title"),description:(0,Fp.__)("Display the search results title based on the queried object."),icon:Oi,attributes:{type:"search"},scope:["inserter"]},{isDefault:!1,name:"post-type-label",title:(0,Fp.__)("Post Type Label"),description:(0,Fp.__)("Display the post type label based on the queried object."),icon:Oi,attributes:{type:"post-type"},scope:["inserter"]}];gX.forEach(e=>{e.isActive||(e.isActive=(t,o)=>t.type===o.type)});var hX=gX;var N0e={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save(){return null},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},vX=[N0e];var{name:bX}=d3,yX={icon:Oi,edit:fX,variations:hX,deprecated:vX},I0e=()=>D({name:bX,metadata:d3,settings:yX});var GN={};$(GN,{init:()=>E0e,metadata:()=>f3,name:()=>kX,settings:()=>wX});var f3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-total",title:"Query Total",category:"theme",ancestor:["core/query"],description:"Display the total number of results in a query.",textdomain:"default",attributes:{displayType:{type:"string",default:"total-results"}},usesContext:["queryId","query"],supports:{align:["wide","full"],html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-query-total"};var g3=r(S()),h3=r(L()),fg=r(B());var Au=r(L()),jp=r(h()),ON=(0,jp.jsx)(Au.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,jp.jsx)(Au.Path,{d:"M4 11h4v2H4v-2zm6 0h6v2h-6v-2zm8 0h2v2h-2v-2z"})}),UN=(0,jp.jsx)(Au.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,jp.jsx)(Au.Path,{d:"M4 13h2v-2H4v2zm4 0h10v-2H8v2zm12 0h2v-2h-2v2z"})}),_X=(0,jp.jsx)(Au.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false",children:(0,jp.jsx)(Au.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12Zm-7-6-4.1 5h8.8v-3h-1.5v1.5h-4.2l2.9-3.5-2.9-3.5h4.2V10h1.5V7H7.4l4.1 5Z"})});var xl=r(h());function xX({attributes:e,setAttributes:t}){let{displayType:o}=e,a=(0,g3.useBlockProps)(),n=()=>{switch(o){case"total-results":return ON;case"range-display":return UN}},i=[{role:"menuitemradio",title:(0,fg.__)("Total results"),isActive:o==="total-results",icon:ON,onClick:()=>{t({displayType:"total-results"})}},{role:"menuitemradio",title:(0,fg.__)("Range display"),isActive:o==="range-display",icon:UN,onClick:()=>{t({displayType:"range-display"})}}],l=(0,xl.jsx)(g3.BlockControls,{children:(0,xl.jsx)(h3.ToolbarGroup,{children:(0,xl.jsx)(h3.ToolbarDropdownMenu,{icon:n(),label:(0,fg.__)("Change display type"),controls:i})})});return(0,xl.jsxs)("div",{...a,children:[l,o==="total-results"?(0,xl.jsx)(xl.Fragment,{children:(0,fg.__)("12 results found")}):o==="range-display"?(0,xl.jsx)(xl.Fragment,{children:(0,fg.__)("Displaying 1 \u2013 10 of 12")}):null]})}var{name:kX}=f3,wX={icon:_X,edit:xX},E0e=()=>D({name:kX,metadata:f3,settings:wX});var WN={};$(WN,{init:()=>U0e,metadata:()=>_3,name:()=>DX,settings:()=>EX});var $N=r(B());var X1=r(U()),Lo=r(S()),Vr=r(h()),Vu=e=>{let{value:t,...o}=e;return[{...o},t?(0,X1.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map(({content:a})=>(0,X1.createBlock)("core/paragraph",{content:a})):(0,X1.createBlock)("core/paragraph")]},CX=["left","right","center"],Op=(e,t)=>{let{align:o,...a}=e;return[CX.includes(o)?{...a,textAlign:o}:e,t]},M0e=(e,t)=>[{...e,className:e.className?e.className+" is-style-large":"is-style-large"},t],L0e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},isEligible:({align:e})=>CX.includes(e),save({attributes:e}){let{align:t,citation:o}=e,a=k({[`has-text-align-${t}`]:t});return(0,Vr.jsxs)("blockquote",{...Lo.useBlockProps.save({className:a}),children:[(0,Vr.jsx)(Lo.InnerBlocks.Content,{}),!Lo.RichText.isEmpty(o)&&(0,Vr.jsx)(Lo.RichText.Content,{tagName:"cite",value:o})]})},migrate:Op},R0e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",role:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){let{align:t,value:o,citation:a}=e,n=k({[`has-text-align-${t}`]:t});return(0,Vr.jsxs)("blockquote",{...Lo.useBlockProps.save({className:n}),children:[(0,Vr.jsx)(Lo.RichText.Content,{multiline:!0,value:o}),!Lo.RichText.isEmpty(a)&&(0,Vr.jsx)(Lo.RichText.Content,{tagName:"cite",value:a})]})},migrate(e){return Op(...Vu(e))}},H0e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate(e){return Op(...Vu(e))},save({attributes:e}){let{align:t,value:o,citation:a}=e;return(0,Vr.jsxs)("blockquote",{style:{textAlign:t||null},children:[(0,Vr.jsx)(Lo.RichText.Content,{multiline:!0,value:o}),!Lo.RichText.isEmpty(a)&&(0,Vr.jsx)(Lo.RichText.Content,{tagName:"cite",value:a})]})}},z0e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(e.style===2){let{style:t,...o}=e;return Op(...M0e(...Vu(o)))}return Op(...Vu(e))},save({attributes:e}){let{align:t,value:o,citation:a,style:n}=e;return(0,Vr.jsxs)("blockquote",{className:n===2?"is-large":"",style:{textAlign:t||null},children:[(0,Vr.jsx)(Lo.RichText.Content,{multiline:!0,value:o}),!Lo.RichText.isEmpty(a)&&(0,Vr.jsx)(Lo.RichText.Content,{tagName:"cite",value:a})]})}},A0e={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){let{style:t,...o}=e;return Op(...Vu(o))}return Op(...Vu(e))},save({attributes:e}){let{align:t,value:o,citation:a,style:n}=e;return(0,Vr.jsxs)("blockquote",{className:`blocks-quote-style-${n}`,style:{textAlign:t||null},children:[(0,Vr.jsx)(Lo.RichText.Content,{multiline:!0,value:o}),!Lo.RichText.isEmpty(a)&&(0,Vr.jsx)(Lo.RichText.Content,{tagName:"footer",value:a})]})}},SX=[L0e,R0e,H0e,z0e,A0e];var J1=r(B()),ys=r(S()),TX=r(L()),b3=r(z()),y3=r(F()),BX=r(wd());var _c=r(h()),v3=y3.Platform.OS==="web",V0e=[["core/paragraph",{}]],F0e=(e,t)=>{let o=(0,b3.useRegistry)(),{updateBlockAttributes:a,replaceInnerBlocks:n}=(0,b3.useDispatch)(ys.store);(0,y3.useEffect)(()=>{if(!e.value)return;let[i,l]=Vu(e);(0,BX.default)("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),o.batch(()=>{a(t,i),n(t,l)})},[e.value])};function PX({attributes:e,setAttributes:t,insertBlocksAfter:o,clientId:a,className:n,style:i,isSelected:l}){let{textAlign:s,allowedBlocks:c}=e;F0e(e,a);let u=(0,ys.useBlockProps)({className:k(n,{[`has-text-align-${s}`]:s}),...!v3&&{style:i}}),m=(0,ys.useInnerBlocksProps)(u,{template:V0e,templateInsertUpdatesSelection:!0,__experimentalCaptureToolbars:!0,renderAppender:!1,allowedBlocks:c});return(0,_c.jsxs)(_c.Fragment,{children:[(0,_c.jsx)(ys.BlockControls,{group:"block",children:(0,_c.jsx)(ys.AlignmentControl,{value:s,onChange:p=>{t({textAlign:p})}})}),(0,_c.jsxs)(TX.BlockQuotation,{...m,children:[m.children,(0,_c.jsx)(Wa,{attributeKey:"citation",tagName:v3?"cite":"p",style:v3&&{display:"block"},isSelected:l,attributes:e,setAttributes:t,__unstableMobileNoFocusOnMount:!0,icon:a0,label:(0,J1.__)("Quote citation"),placeholder:(0,J1.__)("Add citation"),addLabel:(0,J1.__)("Add citation"),removeLabel:(0,J1.__)("Remove citation"),excludeElementClassName:!0,className:"wp-block-quote__citation",insertBlocksAfter:o,...v3?{}:{textAlign:s}})]})]})}var _3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." \u2014 Julio Cort\xE1zar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",role:"content"},citation:{type:"rich-text",source:"rich-text",selector:"cite",role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],html:!1,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},__experimentalOnEnter:!0,__experimentalOnMerge:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,heading:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:{allowEditing:!1},spacing:{blockGap:!0,padding:!0,margin:!0},interactivity:{clientNavigation:!0},allowedBlocks:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"};var Up=r(S()),e2=r(h());function NX({attributes:e}){let{textAlign:t,citation:o}=e,a=k({[`has-text-align-${t}`]:t});return(0,e2.jsxs)("blockquote",{...Up.useBlockProps.save({className:a}),children:[(0,e2.jsx)(Up.InnerBlocks.Content,{}),!Up.RichText.isEmpty(o)&&(0,e2.jsx)(Up.RichText.Content,{tagName:"cite",value:o})]})}var x3=r(S()),Ni=r(U()),O0e={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,align:t,citation:o,anchor:a,fontSize:n,style:i})=>(0,Ni.createBlock)("core/quote",{align:t,citation:o,anchor:a,fontSize:n,style:i},[(0,Ni.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,Ni.createBlock)("core/quote",{},[(0,Ni.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,Ni.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>e.length===1?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some(({name:t})=>t==="core/quote"),__experimentalConvert:e=>(0,Ni.createBlock)("core/quote",{},e.map(t=>(0,Ni.createBlock)(t.name,t.attributes,t.innerBlocks)))}],to:[{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>x3.RichText.isEmpty(e)?t:[...t,(0,Ni.createBlock)("core/paragraph",{content:e})]},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},o)=>(0,Ni.createBlock)("core/group",{anchor:t},x3.RichText.isEmpty(e)?o:[...o,(0,Ni.createBlock)("core/paragraph",{content:e})])}],ungroup:({citation:e},t)=>x3.RichText.isEmpty(e)?t:[...t,(0,Ni.createBlock)("core/paragraph",{content:e})]},IX=O0e;var{name:DX}=_3,EX={icon:e9,example:{attributes:{citation:(0,$N.__)("Julio Cort\xE1zar")},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,$N.__)("In quoting others, we cite ourselves.")}}]},transforms:IX,edit:PX,save:NX,deprecated:SX},U0e=()=>D({name:DX,metadata:_3,settings:EX});var qN={};$(qN,{init:()=>t1e,metadata:()=>k3,name:()=>UX,settings:()=>GX});var FX=r(Y()),jX=r(z()),OX=r(jo());var k3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Reuse this design across your site.",keywords:["reusable"],textdomain:"default",attributes:{ref:{type:"number"},content:{type:"object",default:{}}},providesContext:{"pattern/overrides":"content"},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1,interactivity:{clientNavigation:!0}}};var o2=r(z()),r2=r(F()),gg=r(Y()),_s=r(L()),t2=r(B()),vo=r(S()),HX=r(LX()),zX=r(U());var oo=r(h()),{useLayoutClasses:$0e}=Q(vo.privateApis),{hasOverridableBlocks:W0e}=Q(HX.privateApis),q0e=["full","wide","left","right"],Z0e=(e,t)=>{let o=(0,r2.useRef)();return(0,r2.useMemo)(()=>{if(!e?.length)return{};let a=o.current;if(a===void 0){let i=t?.type==="constrained",l=e.some(s=>q0e.includes(s.attributes.align));a=i&&l?"full":null,o.current=a}return{alignment:a,layout:a?t:void 0}},[e,t])};function K0e(){let e=(0,vo.useBlockProps)();return(0,oo.jsx)("div",{...e,children:(0,oo.jsx)(vo.Warning,{children:(0,t2.__)("Block cannot be rendered inside itself.")})})}var RX=()=>{};function AX(e){let{ref:t}=e.attributes;return(0,vo.useHasRecursion)(t)?(0,oo.jsx)(K0e,{}):(0,oo.jsx)(vo.RecursionProvider,{uniqueId:t,children:(0,oo.jsx)(Y0e,{...e})})}function Q0e({recordId:e,canOverrideBlocks:t,hasContent:o,handleEditOriginal:a,resetContent:n}){let i=(0,o2.useSelect)(l=>!!l(gg.store).canUser("update",{kind:"postType",name:"wp_block",id:e}),[e]);return(0,oo.jsxs)(oo.Fragment,{children:[i&&!!a&&(0,oo.jsx)(vo.BlockControls,{group:"other",children:(0,oo.jsx)(_s.ToolbarGroup,{children:(0,oo.jsx)(_s.ToolbarButton,{onClick:a,children:(0,t2.__)("Edit original")})})}),t&&(0,oo.jsx)(vo.BlockControls,{group:"other",children:(0,oo.jsx)(_s.ToolbarGroup,{children:(0,oo.jsx)(_s.ToolbarButton,{onClick:n,disabled:!o,children:(0,t2.__)("Reset")})})})]})}function Y0e({name:e,attributes:{ref:t,content:o},__unstableParentLayout:a,setAttributes:n}){let{record:i,hasResolved:l}=(0,gg.useEntityRecord)("postType","wp_block",t),[s]=(0,gg.useEntityBlockEditor)("postType","wp_block",{id:t}),c=l&&!i,{__unstableMarkLastChangeAsPersistent:u}=(0,o2.useDispatch)(vo.store),{onNavigateToEntityRecord:m,hasPatternOverridesSource:p}=(0,o2.useSelect)(C=>{let{getSettings:T}=C(vo.store);return{onNavigateToEntityRecord:T().onNavigateToEntityRecord,hasPatternOverridesSource:!!(0,zX.getBlockBindingsSource)("core/pattern-overrides")}},[]),d=(0,r2.useMemo)(()=>p&&W0e(s),[p,s]),{alignment:f,layout:g}=Z0e(s,a),v=$0e({layout:g},e),b=(0,vo.useBlockProps)({className:k("block-library-block__reusable-block-container",g&&v,{[`align${f}`]:f})}),y=(0,vo.useInnerBlocksProps)(b,{layout:g,value:s,onInput:RX,onChange:RX,renderAppender:s?.length?void 0:vo.InnerBlocks.ButtonBlockAppender}),_=()=>{m({postId:t,postType:"wp_block"})},x=()=>{o&&(u(),n({content:void 0}))},w=null;return c&&(w=(0,oo.jsx)(vo.Warning,{children:(0,t2.__)("Block has been deleted or is unavailable.")})),l||(w=(0,oo.jsx)(_s.Placeholder,{children:(0,oo.jsx)(_s.Spinner,{})})),(0,oo.jsxs)(oo.Fragment,{children:[l&&!c&&(0,oo.jsx)(Q0e,{recordId:t,canOverrideBlocks:d,hasContent:!!o,handleEditOriginal:m?_:void 0,resetContent:x}),w===null?(0,oo.jsx)("div",{...y}):(0,oo.jsx)("div",{...b,children:w})]})}var X0e=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,J0e={attributes:{ref:{type:"number"},content:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible({content:e}){return!!e&&Object.keys(e).every(t=>e[t].values&&X0e(e[t].values))},migrate(e){let{content:t,...o}=e;if(t&&Object.keys(t).length){let a={...t};for(let n in t)a[n]=t[n].values;return{...o,content:a}}return e}},e1e={attributes:{ref:{type:"number"},overrides:{type:"object"}},supports:{customClassName:!1,html:!1,inserter:!1,renaming:!1},isEligible({overrides:e}){return!!e},migrate(e){let{overrides:t,...o}=e,a={};return Object.keys(t).forEach(n=>{a[n]=t[n]}),{...o,content:a}}},VX=[J0e,e1e];var{name:UX}=k3,GX={deprecated:VX,edit:AX,icon:w9,__experimentalLabel:({ref:e})=>{if(!e)return;let t=(0,jX.select)(FX.store).getEditedEntityRecord("postType","wp_block",e);if(t?.title)return(0,OX.decodeEntities)(t.title)}},t1e=()=>D({name:UX,metadata:k3,settings:GX});var ZN={};$(ZN,{init:()=>r1e,metadata:()=>w3,name:()=>qX,settings:()=>ZX});var WX=r(B());var w3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string",role:"content"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-read-more"};var vg=r(S()),bg=r(L()),C3=r(U()),hg=r(B());var xs=r(h());function $X({attributes:{content:e,linkTarget:t},setAttributes:o,insertBlocksAfter:a}){let n=(0,vg.useBlockProps)(),i=G();return(0,xs.jsxs)(xs.Fragment,{children:[(0,xs.jsx)(vg.InspectorControls,{children:(0,xs.jsx)(bg.__experimentalToolsPanel,{label:(0,hg.__)("Settings"),resetAll:()=>o({linkTarget:"_self"}),dropdownMenuProps:i,children:(0,xs.jsx)(bg.__experimentalToolsPanelItem,{label:(0,hg.__)("Open in new tab"),isShownByDefault:!0,hasValue:()=>t!=="_self",onDeselect:()=>o({linkTarget:"_self"}),children:(0,xs.jsx)(bg.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,hg.__)("Open in new tab"),onChange:l=>o({linkTarget:l?"_blank":"_self"}),checked:t==="_blank"})})})}),(0,xs.jsx)(vg.RichText,{identifier:"content",tagName:"a","aria-label":(0,hg.__)("\u201CRead more\u201D link text"),placeholder:(0,hg.__)("Read more"),value:e,onChange:l=>o({content:l}),__unstableOnSplitAtEnd:()=>a((0,C3.createBlock)((0,C3.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...n})]})}var{name:qX}=w3,ZX={icon:Nn,edit:$X,example:{attributes:{content:(0,WX.__)("Read more")}}},r1e=()=>D({name:qX,metadata:w3,settings:ZX});var KN={};$(KN,{init:()=>l1e,metadata:()=>S3,name:()=>XX,settings:()=>JX});var S3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:"",role:"content"},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55},openInNewTab:{type:"boolean",default:!1},rel:{type:"string"}},supports:{align:!0,html:!1,interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{padding:!1,margin:!1}},color:{background:!0,text:!0,gradients:!0,link:!0}},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"};var Gp=r(S()),lt=r(L()),T3=r(F());var jt=r(B()),KX=r(ko()),QX=r(Ec());var tt=r(h()),n1e=1,i1e=20;function YX({attributes:e,setAttributes:t}){let[o,a]=(0,T3.useState)(!e.feedURL),{blockLayout:n,columns:i,displayAuthor:l,displayDate:s,displayExcerpt:c,excerptLength:u,feedURL:m,itemsToShow:p,openInNewTab:d,rel:f}=e,g=G();function v(C){return()=>{let T=e[C];t({[C]:!T})}}function b(C){C.preventDefault(),m&&(t({feedURL:(0,KX.prependHTTP)(m)}),a(!1))}let y=(0,Gp.useBlockProps)(),_=(0,jt.__)("RSS URL");if(o)return(0,tt.jsx)("div",{...y,children:(0,tt.jsx)(lt.Placeholder,{icon:Gh,label:_,instructions:(0,jt.__)("Display entries from any RSS or Atom feed."),children:(0,tt.jsxs)("form",{onSubmit:b,className:"wp-block-rss__placeholder-form",children:[(0,tt.jsx)(lt.__experimentalInputControl,{__next40pxDefaultSize:!0,label:_,type:"url",hideLabelFromVision:!0,placeholder:(0,jt.__)("Enter URL here\u2026"),value:m,onChange:C=>t({feedURL:C}),className:"wp-block-rss__placeholder-input"}),(0,tt.jsx)(lt.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,jt.__)("Apply")})]})})});let x=[{icon:xm,title:(0,jt.__)("Edit RSS URL"),onClick:()=>a(!0)},{icon:ji,title:(0,jt._x)("List view","RSS block display setting"),onClick:()=>t({blockLayout:"list"}),isActive:n==="list"},{icon:Fi,title:(0,jt._x)("Grid view","RSS block display setting"),onClick:()=>t({blockLayout:"grid"}),isActive:n==="grid"}],w={...e,style:{...e?.style,border:void 0,spacing:void 0}};return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Gp.BlockControls,{children:(0,tt.jsx)(lt.ToolbarGroup,{controls:x})}),(0,tt.jsx)(Gp.InspectorControls,{children:(0,tt.jsxs)(lt.__experimentalToolsPanel,{label:(0,jt.__)("Settings"),resetAll:()=>{t({itemsToShow:5,displayAuthor:!1,displayDate:!1,displayExcerpt:!1,excerptLength:55,columns:2,openInNewTab:!1})},dropdownMenuProps:g,children:[(0,tt.jsx)(lt.__experimentalToolsPanelItem,{label:(0,jt.__)("Number of items"),hasValue:()=>p!==5,onDeselect:()=>t({itemsToShow:5}),isShownByDefault:!0,children:(0,tt.jsx)(lt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,jt.__)("Number of items"),value:p,onChange:C=>t({itemsToShow:C}),min:n1e,max:i1e,required:!0})}),(0,tt.jsx)(lt.__experimentalToolsPanelItem,{label:(0,jt.__)("Display author"),hasValue:()=>!!l,onDeselect:()=>t({displayAuthor:!1}),isShownByDefault:!0,children:(0,tt.jsx)(lt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,jt.__)("Display author"),checked:l,onChange:v("displayAuthor")})}),(0,tt.jsx)(lt.__experimentalToolsPanelItem,{label:(0,jt.__)("Display date"),hasValue:()=>!!s,onDeselect:()=>t({displayDate:!1}),isShownByDefault:!0,children:(0,tt.jsx)(lt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,jt.__)("Display date"),checked:s,onChange:v("displayDate")})}),(0,tt.jsx)(lt.__experimentalToolsPanelItem,{label:(0,jt.__)("Display excerpt"),hasValue:()=>!!c,onDeselect:()=>t({displayExcerpt:!1}),isShownByDefault:!0,children:(0,tt.jsx)(lt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,jt.__)("Display excerpt"),checked:c,onChange:v("displayExcerpt")})}),c&&(0,tt.jsx)(lt.__experimentalToolsPanelItem,{label:(0,jt.__)("Max number of words in excerpt"),hasValue:()=>u!==55,onDeselect:()=>t({excerptLength:55}),isShownByDefault:!0,children:(0,tt.jsx)(lt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,jt.__)("Max number of words in excerpt"),value:u,onChange:C=>t({excerptLength:C}),min:10,max:100,required:!0})}),n==="grid"&&(0,tt.jsx)(lt.__experimentalToolsPanelItem,{label:(0,jt.__)("Columns"),hasValue:()=>i!==2,onDeselect:()=>t({columns:2}),isShownByDefault:!0,children:(0,tt.jsx)(lt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,jt.__)("Columns"),value:i,onChange:C=>t({columns:C}),min:2,max:6,required:!0})}),(0,tt.jsx)(lt.__experimentalToolsPanelItem,{label:(0,jt.__)("Open links in new tab"),hasValue:()=>!!d,onDeselect:()=>t({openInNewTab:!1}),isShownByDefault:!0,children:(0,tt.jsx)(lt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,jt.__)("Open links in new tab"),checked:d,onChange:C=>t({openInNewTab:C})})})]})}),(0,tt.jsx)(Gp.InspectorControls,{group:"advanced",children:(0,tt.jsx)(lt.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,jt.__)("Link relation"),help:(0,T3.createInterpolateElement)((0,jt.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,tt.jsx)(lt.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:f||"",onChange:C=>t({rel:C})})}),(0,tt.jsx)("div",{...y,children:(0,tt.jsx)(lt.Disabled,{children:(0,tt.jsx)(QX.default,{block:"core/rss",attributes:w})})})]})}var{name:XX}=S3,JX={icon:Gh,example:{attributes:{feedURL:"https://wordpress.org"}},edit:YX},l1e=()=>D({name:XX,metadata:S3,settings:JX});var tI={};$(tI,{init:()=>p1e,metadata:()=>B3,name:()=>lJ,settings:()=>N3});var yg=r(B());var iJ=r(U());var B3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",role:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",role:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",role:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}},isSearchFieldHidden:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},interactivity:!0,typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},spacing:{margin:!0},html:!1},editorStyle:"wp-block-search-editor",style:"wp-block-search"};var Ro=r(S()),P3=r(z()),$p=r(F()),Kt=r(L()),oJ=r(xe());var Zt=r(B()),rJ=r(Qs());var QN=50,YN=350,XN=220;function JN(e){return e==="%"}var _t=r(h()),eJ="4px",tJ=[25,50,75,100];function aJ({className:e,attributes:t,setAttributes:o,toggleSelection:a,isSelected:n,clientId:i}){let{label:l,showLabel:s,placeholder:c,width:u,widthUnit:m,align:p,buttonText:d,buttonPosition:f,buttonUseIcon:g,isSearchFieldHidden:v,style:b}=t,y=(0,P3.useSelect)(ie=>{let{getBlockParentsByBlockName:Ee,wasBlockJustInserted:de}=ie(Ro.store);return!!Ee(i,"core/navigation")?.length&&de(i)},[i]),{__unstableMarkNextChangeAsNotPersistent:_}=(0,P3.useDispatch)(Ro.store);(0,$p.useEffect)(()=>{y&&(_(),o({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))},[_,y,o]);let x=b?.border?.radius,w=(0,Ro.__experimentalUseBorderProps)(t);typeof x=="number"&&(w={...w,style:{...w.style,borderRadius:`${x}px`}});let C=(0,Ro.__experimentalUseColorProps)(t),[T,N]=(0,Ro.useSettings)("typography.fluid","layout"),P=(0,Ro.getTypographyClassesAndStyles)(t,{typography:{fluid:T},layout:{wideSize:N?.wideSize}}),R=`wp-block-search__width-${(0,oJ.useInstanceId)(Kt.__experimentalUnitControl)}`,H=f==="button-inside",O=f==="button-outside",A=f==="no-button",I=f==="button-only",V=(0,$p.useRef)(),W=(0,$p.useRef)(),j=(0,Kt.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":QN,px:YN}});(0,$p.useEffect)(()=>{I&&!n&&o({isSearchFieldHidden:!0})},[I,n,o]),(0,$p.useEffect)(()=>{!I||!n||o({isSearchFieldHidden:!1})},[I,n,o,u]);let K=()=>k(e,H?"wp-block-search__button-inside":void 0,O?"wp-block-search__button-outside":void 0,A?"wp-block-search__no-button":void 0,I?"wp-block-search__button-only":void 0,!g&&!A?"wp-block-search__text-button":void 0,g&&!A?"wp-block-search__icon-button":void 0,I&&v?"wp-block-search__searchfield-hidden":void 0),Z=[{label:(0,Zt.__)("Button outside"),value:"button-outside"},{label:(0,Zt.__)("Button inside"),value:"button-inside"},{label:(0,Zt.__)("No button"),value:"no-button"},{label:(0,Zt.__)("Button only"),value:"button-only"}],te=()=>I?{}:{right:p!=="right",left:p==="right"},X=()=>{let ie=k("wp-block-search__input",H?void 0:w.className,P.className),Ee={...H?{borderRadius:w.style?.borderRadius,borderTopLeftRadius:w.style?.borderTopLeftRadius,borderTopRightRadius:w.style?.borderTopRightRadius,borderBottomLeftRadius:w.style?.borderBottomLeftRadius,borderBottomRightRadius:w.style?.borderBottomRightRadius}:w.style,...P.style,textDecoration:void 0};return(0,_t.jsx)("input",{type:"search",className:ie,style:Ee,"aria-label":(0,Zt.__)("Optional placeholder text"),placeholder:c?void 0:(0,Zt.__)("Optional placeholder\u2026"),value:c,onChange:de=>o({placeholder:de.target.value}),ref:V})},J=()=>{let ie=k("wp-block-search__button",C.className,P.className,H?void 0:w.className,g?"has-icon":void 0,(0,Ro.__experimentalGetElementClassName)("button")),Ee={...C.style,...P.style,...H?{borderRadius:w.style?.borderRadius,borderTopLeftRadius:w.style?.borderTopLeftRadius,borderTopRightRadius:w.style?.borderTopRightRadius,borderBottomLeftRadius:w.style?.borderBottomLeftRadius,borderBottomRightRadius:w.style?.borderBottomRightRadius}:w.style},de=()=>{I&&o({isSearchFieldHidden:!v})};return(0,_t.jsxs)(_t.Fragment,{children:[g&&(0,_t.jsx)("button",{type:"button",className:ie,style:Ee,"aria-label":d?(0,rJ.__unstableStripHTML)(d):(0,Zt.__)("Search"),onClick:de,ref:W,children:(0,_t.jsx)(Pn,{icon:$h})}),!g&&(0,_t.jsx)(Ro.RichText,{identifier:"buttonText",className:ie,style:Ee,"aria-label":(0,Zt.__)("Button text"),placeholder:(0,Zt.__)("Add button text\u2026"),withoutInteractiveFormatting:!0,value:d,onChange:re=>o({buttonText:re}),onClick:de})]})},ee=G(),ne=(0,_t.jsx)(_t.Fragment,{children:(0,_t.jsx)(Ro.InspectorControls,{children:(0,_t.jsxs)(Kt.__experimentalToolsPanel,{label:(0,Zt.__)("Settings"),resetAll:()=>{o({width:void 0,widthUnit:void 0,showLabel:!0,buttonUseIcon:!1,buttonPosition:"button-outside",isSearchFieldHidden:!1})},dropdownMenuProps:ee,children:[(0,_t.jsx)(Kt.__experimentalToolsPanelItem,{hasValue:()=>!s,label:(0,Zt.__)("Show label"),onDeselect:()=>{o({showLabel:!0})},isShownByDefault:!0,children:(0,_t.jsx)(Kt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:s,label:(0,Zt.__)("Show label"),onChange:ie=>o({showLabel:ie})})}),(0,_t.jsx)(Kt.__experimentalToolsPanelItem,{hasValue:()=>f!=="button-outside",label:(0,Zt.__)("Button position"),onDeselect:()=>{o({buttonPosition:"button-outside",isSearchFieldHidden:!1})},isShownByDefault:!0,children:(0,_t.jsx)(Kt.SelectControl,{value:f,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Zt.__)("Button position"),onChange:ie=>{o({buttonPosition:ie,isSearchFieldHidden:ie==="button-only"})},options:Z})}),f!=="no-button"&&(0,_t.jsx)(Kt.__experimentalToolsPanelItem,{hasValue:()=>!!g,label:(0,Zt.__)("Use button with icon"),onDeselect:()=>{o({buttonUseIcon:!1})},isShownByDefault:!0,children:(0,_t.jsx)(Kt.ToggleControl,{__nextHasNoMarginBottom:!0,checked:g,label:(0,Zt.__)("Use button with icon"),onChange:ie=>o({buttonUseIcon:ie})})}),(0,_t.jsx)(Kt.__experimentalToolsPanelItem,{hasValue:()=>!!u,label:(0,Zt.__)("Width"),onDeselect:()=>{o({width:void 0,widthUnit:void 0})},isShownByDefault:!0,children:(0,_t.jsxs)(Kt.__experimentalVStack,{children:[(0,_t.jsx)(Kt.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,Zt.__)("Width"),id:R,min:JN(m)?0:XN,max:JN(m)?100:void 0,step:1,onChange:ie=>{let Ee=ie===""?void 0:parseInt(ie,10);o({width:Ee})},onUnitChange:ie=>{o({width:ie==="%"?QN:YN,widthUnit:ie})},__unstableInputWidth:"80px",value:`${u}${m}`,units:j}),(0,_t.jsx)(Kt.__experimentalToggleGroupControl,{label:(0,Zt.__)("Percentage Width"),value:tJ.includes(u)&&m==="%"?u:void 0,hideLabelFromVision:!0,onChange:ie=>{o({width:ie,widthUnit:"%"})},isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:tJ.map(ie=>(0,_t.jsx)(Kt.__experimentalToggleGroupControlOption,{value:ie,label:(0,Zt.sprintf)((0,Zt.__)("%d%%"),ie)},ie))})]})})]})})}),oe=ie=>ie!==void 0&&parseInt(ie,10)!==0,ce=ie=>oe(ie)?`calc(${ie} + ${eJ})`:void 0,pe=()=>{let ie=H?w.style:{borderRadius:w.style?.borderRadius,borderTopLeftRadius:w.style?.borderTopLeftRadius,borderTopRightRadius:w.style?.borderTopRightRadius,borderBottomLeftRadius:w.style?.borderBottomLeftRadius,borderBottomRightRadius:w.style?.borderBottomRightRadius};if(H){if(typeof x=="object"){let{borderTopLeftRadius:de,borderTopRightRadius:re,borderBottomLeftRadius:se,borderBottomRightRadius:we}=w.style;return{...ie,borderTopLeftRadius:ce(de),borderTopRightRadius:ce(re),borderBottomLeftRadius:ce(se),borderBottomRightRadius:ce(we)}}let Ee=Number.isInteger(x)?`${x}px`:x;ie.borderRadius=`calc(${Ee} + ${eJ})`}return ie},Ne=(0,Ro.useBlockProps)({className:K(),style:{...P.style,textDecoration:void 0}}),Le=k("wp-block-search__label",P.className);return(0,_t.jsxs)("div",{...Ne,children:[ne,s&&(0,_t.jsx)(Ro.RichText,{identifier:"label",className:Le,"aria-label":(0,Zt.__)("Label text"),placeholder:(0,Zt.__)("Add label\u2026"),withoutInteractiveFormatting:!0,value:l,onChange:ie=>o({label:ie}),style:P.style}),(0,_t.jsxs)(Kt.ResizableBox,{size:{width:u===void 0?"auto":`${u}${m}`,height:"auto"},className:k("wp-block-search__inside-wrapper",H?w.className:void 0),style:pe(),minWidth:XN,enable:te(),onResizeStart:(ie,Ee,de)=>{o({width:parseInt(de.offsetWidth,10),widthUnit:"px"}),a(!1)},onResizeStop:(ie,Ee,de,re)=>{o({width:parseInt(u+re.width,10)}),a(!0)},showHandle:n,children:[(H||O||I)&&(0,_t.jsxs)(_t.Fragment,{children:[X(),J()]}),A&&X()]})]})}var eI=r(B()),c1e=[{name:"default",isDefault:!0,attributes:{buttonText:(0,eI.__)("Search"),label:(0,eI.__)("Search")}}],nJ=c1e;var{fieldsKey:u1e,formKey:m1e}=Q(iJ.privateApis),{name:lJ}=B3,N3={icon:$h,example:{attributes:{buttonText:(0,yg.__)("Search"),label:(0,yg.__)("Search")},viewportWidth:400},variations:nJ,edit:aJ};window.__experimentalContentOnlyInspectorFields&&(N3[u1e]=[{id:"label",label:(0,yg.__)("Label"),type:"richtext",shownByDefault:!0},{id:"buttonText",label:(0,yg.__)("Button text"),type:"richtext"},{id:"placeholder",label:(0,yg.__)("Placeholder"),type:"richtext"}],N3[m1e]={fields:["label"]});var p1e=()=>D({name:lJ,metadata:B3,settings:N3});var rI={};$(rI,{init:()=>v1e,metadata:()=>D3,name:()=>hJ,settings:()=>vJ});var Fu=r(S()),I3=r(L()),n2=r(B());var a2=r(F()),sJ=r(xe());function cJ(e,t,o){let[a,n]=(0,a2.useState)(!1),i=(0,sJ.usePrevious)(t);(0,a2.useEffect)(()=>{e==="css"&&!t&&!i&&n(!0)},[t,i,e]),(0,a2.useEffect)(()=>{e==="css"&&(a&&t||i&&t!==i)&&(o({opacity:"alpha-channel"}),n(!1))},[a,t,i])}var xc=r(h()),d1e=({tagName:e,setAttributes:t})=>(0,xc.jsx)(I3.SelectControl,{label:(0,n2.__)("HTML element"),value:e,onChange:o=>t({tagName:o}),options:[{label:(0,n2.__)("Default (<hr>)"),value:"hr"},{label:"<div>",value:"div"}],help:e==="hr"?(0,n2.__)("Only select <hr> if the separator conveys important information and should be announced by screen readers."):(0,n2.__)("The <div> element should only be used if the block is a design element with no semantic meaning."),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0});function uJ({attributes:e,setAttributes:t}){let{backgroundColor:o,opacity:a,style:n,tagName:i}=e,l=(0,Fu.__experimentalUseColorProps)(e),s=l?.style?.backgroundColor,c=!!n?.color?.background;cJ(a,s,t);let u=(0,Fu.getColorClassName)("color",o),m=k({"has-text-color":o||s,[u]:u,"has-css-opacity":a==="css","has-alpha-channel-opacity":a==="alpha-channel"},l.className);return(0,xc.jsxs)(xc.Fragment,{children:[(0,xc.jsx)(Fu.InspectorControls,{group:"advanced",children:(0,xc.jsx)(d1e,{tagName:i,setAttributes:t})}),(0,xc.jsx)(i==="hr"?I3.HorizontalRule:i,{...(0,Fu.useBlockProps)({className:m,style:c?{color:s,backgroundColor:s}:void 0})})]})}var D3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"},tagName:{type:"string",enum:["hr","div"],default:"hr"}},supports:{anchor:!0,align:["center","wide","full"],color:{enableContrastChecker:!1,__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{margin:["top","bottom"]},interactivity:{clientNavigation:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"};var _g=r(S()),mJ=r(h());function pJ({attributes:e}){let{backgroundColor:t,style:o,opacity:a,tagName:n}=e,i=o?.color?.background,l=(0,_g.__experimentalGetColorClassesAndStyles)(e),s=(0,_g.getColorClassName)("color",t),c=k({"has-text-color":t||i,[s]:s,"has-css-opacity":a==="css","has-alpha-channel-opacity":a==="alpha-channel"},l.className),u={backgroundColor:l?.style?.backgroundColor,color:s?void 0:i};return(0,mJ.jsx)(n,{..._g.useBlockProps.save({className:c,style:u})})}var oI=r(U()),g1e={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,oI.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}],to:[{type:"block",blocks:["core/spacer"],transform:({anchor:e})=>(0,oI.createBlock)("core/spacer",{anchor:e||""})}]},dJ=g1e;var i2=r(S()),fJ=r(h()),h1e={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){let{color:t,customColor:o}=e,a=(0,i2.getColorClassName)("background-color",t),n=(0,i2.getColorClassName)("color",t),i=k({"has-text-color has-background":t||o,[a]:a,[n]:n}),l={backgroundColor:a?void 0:o,color:n?void 0:o};return(0,fJ.jsx)("hr",{...i2.useBlockProps.save({className:i,style:l})})},migrate(e){let{color:t,customColor:o,...a}=e;return{...a,backgroundColor:t||void 0,opacity:"css",style:o?{color:{background:o}}:void 0,tagName:"hr"}}},gJ=[h1e];var{name:hJ}=D3,vJ={icon:u9,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:dJ,edit:uJ,save:pJ,deprecated:gJ},v1e=()=>D({name:hJ,metadata:D3,settings:vJ});var nI={};$(nI,{init:()=>_1e,metadata:()=>H3,name:()=>TJ,settings:()=>BJ});var E3=r(B()),L3=r(S()),bJ=r(xe()),yJ=r(L());var M3=r(h());function aI({attributes:e,setAttributes:t}){let a=`blocks-shortcode-input-${(0,bJ.useInstanceId)(aI)}`;return(0,M3.jsx)("div",{...(0,L3.useBlockProps)(),children:(0,M3.jsx)(yJ.Placeholder,{icon:qh,label:(0,E3.__)("Shortcode"),children:(0,M3.jsx)(L3.PlainText,{className:"blocks-shortcode__textarea",id:a,value:e.text,"aria-label":(0,E3.__)("Shortcode text"),placeholder:(0,E3.__)("Write shortcode here\u2026"),onChange:n=>t({text:n})})})})}var _J=r(F()),xJ=r(h());function kJ({attributes:e}){return(0,xJ.jsx)(_J.RawHTML,{children:e.text})}var R3=r(CJ()),b1e={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,R3.removep)((0,R3.autop)(t))}},priority:20}]},SJ=b1e;var H3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"raw",role:"content"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"};var{name:TJ}=H3,BJ={icon:qh,transforms:SJ,edit:aI,save:kJ},_1e=()=>D({name:TJ,metadata:H3,settings:BJ});var sI={};$(sI,{init:()=>C1e,metadata:()=>z3,name:()=>HJ,settings:()=>zJ});var z3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display an image to represent this site. Update this block and the changes apply everywhere.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{html:!1,align:!0,alignWide:!1,color:{text:!1,background:!1},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0},filter:{duotone:!0}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],selectors:{filter:{duotone:".wp-block-site-logo img, .wp-block-site-logo .components-placeholder__illustration, .wp-block-site-logo .components-placeholder::before"}},editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"};var lI=r(Po()),ks=r(F()),Ho=r(B()),Ae=r(L()),IJ=r(xe()),zo=r(S()),ju=r(z()),xg=r(Y());var DJ=r(No());var ve=r(h()),iI=["image"],EJ="image/*",k1e=({alt:e,attributes:{align:t,width:o,height:a,isLink:n,linkTarget:i,shouldSyncIcon:l},isSelected:s,setAttributes:c,setLogo:u,logoUrl:m,siteUrl:p,logoId:d,iconId:f,setIcon:g,canUserEdit:v})=>{let b=(0,IJ.useViewportMatch)("medium"),_=!["wide","full"].includes(t)&&b,[{naturalWidth:x,naturalHeight:w},C]=(0,ks.useState)({}),[T,N]=(0,ks.useState)(!1),{toggleSelection:P}=(0,ju.useDispatch)(zo.store),M=G(),H=(0,zo.useBlockEditingMode)()==="contentOnly",{imageEditing:O,maxWidth:A,title:I}=(0,ju.useSelect)(se=>{let we=se(zo.store).getSettings();return{title:se(xg.store).getEntityRecord("root","__unstableBase")?.name,imageEditing:we.imageEditing,maxWidth:we.maxWidth}},[]);(0,ks.useEffect)(()=>{l&&d!==f&&c({shouldSyncIcon:!1})},[]),(0,ks.useEffect)(()=>{s||N(!1)},[s]);function V(){P(!1)}function W(){P(!0)}let j=(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)("img",{className:"custom-logo",src:m,alt:e,onLoad:se=>{C({naturalWidth:se.target.naturalWidth,naturalHeight:se.target.naturalHeight})}}),(0,lI.isBlobURL)(m)&&(0,ve.jsx)(Ae.Spinner,{})]}),K=j;if(n&&(K=(0,ve.jsx)("a",{href:p,className:"custom-logo-link",rel:"home",title:I,onClick:se=>se.preventDefault(),children:j})),!_||!x||!w)return(0,ve.jsx)("div",{style:{width:o,height:a},children:K});let Z=120,te=o||Z,X=x/w,J=te/X,ee=x<w?Jl:Math.ceil(Jl*X),ne=w<x?Jl:Math.ceil(Jl/X),oe=A*2.5,ce=!1,pe=!1;t==="center"?(ce=!0,pe=!0):(0,Ho.isRTL)()?t==="left"?ce=!0:pe=!0:t==="right"?pe=!0:ce=!0;let Ne=d&&x&&w&&O,Le=!H,ie;Ne&&T?ie=(0,ve.jsx)(zo.__experimentalImageEditor,{id:d,url:m,width:te,height:J,naturalHeight:w,naturalWidth:x,onSaveImage:se=>{u(se.id)},onFinishEditing:()=>{N(!1)}}):ie=(0,ve.jsx)(Ae.ResizableBox,{size:{width:te,height:J},showHandle:s&&Le,minWidth:ee,maxWidth:oe,minHeight:ne,maxHeight:oe/X,lockAspectRatio:!0,enable:{top:!1,right:ce,bottom:!0,left:pe},onResizeStart:V,onResizeStop:(se,we,fe,mt)=>{W(),c({width:parseInt(te+mt.width,10),height:parseInt(J+mt.height,10)})},children:K});let de=!window?.__experimentalUseCustomizerSiteLogoUrl?p+"/wp-admin/options-general.php":p+"/wp-admin/customize.php?autofocus[section]=title_tagline",re=(0,ks.createInterpolateElement)((0,Ho.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,ve.jsx)("a",{href:de,target:"_blank",rel:"noopener noreferrer"})});return(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(zo.InspectorControls,{children:(0,ve.jsxs)(Ae.__experimentalToolsPanel,{label:(0,Ho.__)("Settings"),dropdownMenuProps:M,children:[(0,ve.jsx)(Ae.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!o,label:(0,Ho.__)("Image width"),onDeselect:()=>c({width:void 0}),children:(0,ve.jsx)(Ae.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Ho.__)("Image width"),onChange:se=>c({width:se}),min:ee,max:oe,initialPosition:Math.min(Z,oe),value:o||"",disabled:!_})}),(0,ve.jsx)(Ae.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!n,label:(0,Ho.__)("Link image to home"),onDeselect:()=>c({isLink:!0}),children:(0,ve.jsx)(Ae.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ho.__)("Link image to home"),onChange:()=>c({isLink:!n}),checked:n})}),n&&(0,ve.jsx)(Ae.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>i==="_blank",label:(0,Ho.__)("Open in new tab"),onDeselect:()=>c({linkTarget:"_self"}),children:(0,ve.jsx)(Ae.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ho.__)("Open in new tab"),onChange:se=>c({linkTarget:se?"_blank":"_self"}),checked:i==="_blank"})}),v&&(0,ve.jsx)(Ae.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!l,label:(0,Ho.__)("Use as Site Icon"),onDeselect:()=>{c({shouldSyncIcon:!1}),g(void 0)},children:(0,ve.jsx)(Ae.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ho.__)("Use as Site Icon"),onChange:se=>{c({shouldSyncIcon:se}),g(se?d:void 0)},checked:!!l,help:re})})]})}),Ne&&!T&&Le&&(0,ve.jsx)(zo.BlockControls,{group:"block",children:(0,ve.jsx)(Ae.ToolbarButton,{onClick:()=>N(!0),icon:gh,label:(0,Ho.__)("Crop")})}),ie]})};function PJ({mediaURL:e,...t}){return(0,ve.jsx)(zo.MediaReplaceFlow,{...t,mediaURL:e,allowedTypes:iI,accept:EJ})}var NJ=({media:e,itemGroupProps:t})=>{let{alt_text:o,source_url:a,slug:n,media_details:i}=e??{},l=i?.sizes?.full?.file||n;return(0,ve.jsx)(Ae.__experimentalItemGroup,{...t,as:"span",children:(0,ve.jsxs)(Ae.__experimentalHStack,{justify:"flex-start",as:"span",children:[(0,ve.jsx)("img",{src:a,alt:o}),(0,ve.jsx)(Ae.FlexItem,{as:"span",children:(0,ve.jsx)(Ae.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title",children:l})})]})})};function MJ({attributes:e,className:t,setAttributes:o,isSelected:a}){let{width:n,shouldSyncIcon:i}=e,{siteLogoId:l,canUserEdit:s,url:c,siteIconId:u,mediaItemData:m,isRequestingMediaItem:p}=(0,ju.useSelect)(Z=>{let{canUser:te,getEntityRecord:X,getEditedEntityRecord:J}=Z(xg.store),ee=te("update",{kind:"root",name:"site"}),ne=ee?J("root","site"):void 0,oe=X("root","__unstableBase"),ce=ee?ne?.site_logo:oe?.site_logo,pe=ne?.site_icon,Ne=ce&&Z(xg.store).getEntityRecord("postType","attachment",ce,{context:"view"}),Le=!!ce&&!Z(xg.store).hasFinishedResolution("getEntityRecord",["postType","attachment",ce,{context:"view"}]);return{siteLogoId:ce,canUserEdit:ee,url:oe?.home,mediaItemData:Ne,isRequestingMediaItem:Le,siteIconId:pe}},[]),{getSettings:d}=(0,ju.useSelect)(zo.store),[f,g]=(0,ks.useState)(),v=G(),{editEntityRecord:b}=(0,ju.useDispatch)(xg.store),y=(Z,te=!1)=>{(i||te)&&_(Z),b("root","site",void 0,{site_logo:Z})},_=Z=>b("root","site",void 0,{site_icon:Z??null}),{alt_text:x,source_url:w}=m??{},C=Z=>{if(i===void 0){let te=!u;o({shouldSyncIcon:te}),T(Z,te);return}T(Z)},T=(Z,te=!1)=>{if(Z){if(!Z.id&&Z.url){g(Z.url),y(void 0);return}y(Z.id,te)}},N=()=>{y(null),o({width:void 0})},{createErrorNotice:P}=(0,ju.useDispatch)(DJ.store),M=Z=>{P(Z,{type:"snackbar"}),g()},R=Z=>{d().mediaUpload({allowedTypes:iI,filesList:Z,onFileChange([te]){if((0,lI.isBlobURL)(te?.url)){g(te.url);return}C(te)},onError:M,multiple:!1})},H={mediaURL:w,name:w?(0,Ho.__)("Replace"):(0,Ho.__)("Choose logo"),onSelect:T,onError:M,onReset:N},O=s&&(0,ve.jsx)(zo.BlockControls,{group:"other",children:(0,ve.jsx)(PJ,{...H})}),A,I=l===void 0||p;I&&(A=(0,ve.jsx)(Ae.Spinner,{})),(0,ks.useEffect)(()=>{w&&f&&g()},[w,f]),(w||f)&&(A=(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(k1e,{alt:x,attributes:e,className:t,isSelected:a,setAttributes:o,logoUrl:f||w,setLogo:y,logoId:m?.id||l,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}),s&&(0,ve.jsx)(Ae.DropZone,{onFilesDrop:R})]}));let V=Z=>{let te=k("block-editor-media-placeholder",t);return(0,ve.jsx)(Ae.Placeholder,{className:te,preview:A,withIllustration:!0,style:{width:n},children:Z})},W=k(t,{"is-default-size":!n,"is-transient":f}),j=(0,zo.useBlockProps)({className:W}),K=(s||w)&&(0,ve.jsx)(zo.InspectorControls,{children:(0,ve.jsx)(Ae.__experimentalToolsPanel,{label:(0,Ho.__)("Media"),dropdownMenuProps:v,children:s?(0,ve.jsx)(Ae.__experimentalToolsPanelItem,{hasValue:()=>!!w,label:(0,Ho.__)("Logo"),isShownByDefault:!0,children:(0,ve.jsxs)("div",{className:"block-library-site-logo__inspector-media-replace-container",children:[(0,ve.jsx)(PJ,{...H,name:w?(0,ve.jsx)(NJ,{media:m}):(0,Ho.__)("Choose logo"),renderToggle:Z=>(0,ve.jsx)(Ae.Button,{...Z,__next40pxDefaultSize:!0,children:f?(0,ve.jsx)(Ae.Spinner,{}):Z.children})}),(0,ve.jsx)(Ae.DropZone,{onFilesDrop:R})]})}):(0,ve.jsx)("div",{className:"block-library-site-logo__inspector-media-replace-container",style:{gridColumn:"1 / -1"},children:(0,ve.jsx)(NJ,{media:m,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}})})})});return(0,ve.jsxs)("div",{...j,children:[O,K,(!!w||!!f)&&A,(I||!f&&!w&&!s)&&(0,ve.jsx)(Ae.Placeholder,{className:"site-logo_placeholder",withIllustration:!0,children:I&&(0,ve.jsx)("span",{className:"components-placeholder__preview",children:(0,ve.jsx)(Ae.Spinner,{})})}),!I&&!f&&!w&&s&&(0,ve.jsx)(zo.MediaPlaceholder,{onSelect:C,accept:EJ,allowedTypes:iI,onError:M,placeholder:V,mediaLibraryButton:({open:Z})=>(0,ve.jsx)(Ae.Button,{__next40pxDefaultSize:!0,icon:js,variant:"primary",label:(0,Ho.__)("Choose logo"),showTooltip:!0,tooltipPosition:"middle right",onClick:()=>{Z()}})})]})}var LJ=r(U()),w1e={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,LJ.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]},RJ=w1e;var{name:HJ}=z3,zJ={icon:h9,example:{},edit:MJ,transforms:RJ},C1e=()=>D({name:HJ,metadata:z3,settings:zJ});var mI={};$(mI,{init:()=>B1e,metadata:()=>A3,name:()=>jJ,settings:()=>OJ});var A3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what this site is about. This is important for search results, sharing on social media, and gives overall clarity to visitors.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"},level:{type:"number",default:0},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]}},example:{viewportWidth:350,attributes:{textAlign:"center"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},contentRole:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorStyle:"wp-block-site-tagline-editor",style:"wp-block-site-tagline"};var F3=r(z()),cI=r(Y()),Cs=r(S()),V3=r(B()),j3=r(U()),ws=r(h());function AJ({attributes:e,setAttributes:t,insertBlocksAfter:o}){let{textAlign:a,level:n,levelOptions:i}=e,{canUserEdit:l,tagline:s}=(0,F3.useSelect)(f=>{let{canUser:g,getEntityRecord:v,getEditedEntityRecord:b}=f(cI.store),y=g("update",{kind:"root",name:"site"}),_=y?b("root","site"):{},x=v("root","__unstableBase");return{canUserEdit:y,tagline:y?_?.description:x?.description}},[]),c=n===0?"p":`h${n}`,{editEntityRecord:u}=(0,F3.useDispatch)(cI.store);function m(f){u("root","site",void 0,{description:f})}let p=(0,Cs.useBlockProps)({className:k({[`has-text-align-${a}`]:a,"wp-block-site-tagline__placeholder":!l&&!s})}),d=l?(0,ws.jsx)(Cs.RichText,{allowedFormats:[],onChange:m,"aria-label":(0,V3.__)("Site tagline text"),placeholder:(0,V3.__)("Write site tagline\u2026"),tagName:c,value:s,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,j3.createBlock)((0,j3.getDefaultBlockName)())),...p}):(0,ws.jsx)(c,{...p,children:s||(0,V3.__)("Site Tagline placeholder")});return(0,ws.jsxs)(ws.Fragment,{children:[(0,ws.jsxs)(Cs.BlockControls,{group:"block",children:[(0,ws.jsx)(Cs.HeadingLevelDropdown,{value:n,options:i,onChange:f=>t({level:f})}),(0,ws.jsx)(Cs.AlignmentControl,{onChange:f=>t({textAlign:f}),value:a})]}),d]})}var O3=r(L()),uI=r(h()),VJ=(0,uI.jsx)(O3.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",children:(0,uI.jsx)(O3.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"})});var T1e={attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},FJ=[T1e];var{name:jJ}=A3,OJ={icon:VJ,edit:AJ,deprecated:FJ},B1e=()=>D({name:jJ,metadata:A3,settings:OJ});var fI={};$(fI,{init:()=>D1e,metadata:()=>U3,name:()=>qJ,settings:()=>ZJ});var U3={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it\u2019s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},levelOptions:{type:"array",default:[0,1,2,3,4,5,6]},textAlign:{type:"string"},isLink:{type:"boolean",default:!0,role:"content"},linkTarget:{type:"string",default:"_self",role:"content"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"};var G3=r(z()),pI=r(Y()),Ss=r(B()),yn=r(S()),Ou=r(L()),$3=r(U()),dI=r(jo());var Jo=r(h());function UJ({attributes:e,setAttributes:t,insertBlocksAfter:o}){let{level:a,levelOptions:n,textAlign:i,isLink:l,linkTarget:s}=e,{canUserEdit:c,title:u}=(0,G3.useSelect)(y=>{let{canUser:_,getEntityRecord:x,getEditedEntityRecord:w}=y(pI.store),C=_("update",{kind:"root",name:"site"}),T=C?w("root","site"):{},N=x("root","__unstableBase");return{canUserEdit:C,title:C?T?.title:N?.name}},[]),{editEntityRecord:m}=(0,G3.useDispatch)(pI.store),p=G(),d=(0,yn.useBlockEditingMode)();function f(y){m("root","site",void 0,{title:y.trim()})}let g=a===0?"p":`h${a}`,v=(0,yn.useBlockProps)({className:k({[`has-text-align-${i}`]:i,"wp-block-site-title__placeholder":!c&&!u})}),b=c?(0,Jo.jsx)(g,{...v,children:(0,Jo.jsx)(yn.RichText,{tagName:l?"a":"span",href:l?"#site-title-pseudo-link":void 0,"aria-label":(0,Ss.__)("Site title text"),placeholder:(0,Ss.__)("Write site title\u2026"),value:u,onChange:f,allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>o((0,$3.createBlock)((0,$3.getDefaultBlockName)()))})}):(0,Jo.jsx)(g,{...v,children:l?(0,Jo.jsx)("a",{href:"#site-title-pseudo-link",onClick:y=>y.preventDefault(),children:(0,dI.decodeEntities)(u)||(0,Ss.__)("Site Title placeholder")}):(0,Jo.jsx)("span",{children:(0,dI.decodeEntities)(u)||(0,Ss.__)("Site Title placeholder")})});return(0,Jo.jsxs)(Jo.Fragment,{children:[d==="default"&&(0,Jo.jsxs)(yn.BlockControls,{group:"block",children:[(0,Jo.jsx)(yn.HeadingLevelDropdown,{value:a,options:n,onChange:y=>t({level:y})}),(0,Jo.jsx)(yn.AlignmentControl,{value:i,onChange:y=>{t({textAlign:y})}})]}),(0,Jo.jsx)(yn.InspectorControls,{children:(0,Jo.jsxs)(Ou.__experimentalToolsPanel,{label:(0,Ss.__)("Settings"),resetAll:()=>{t({isLink:!0,linkTarget:"_self"})},dropdownMenuProps:p,children:[(0,Jo.jsx)(Ou.__experimentalToolsPanelItem,{hasValue:()=>!l,label:(0,Ss.__)("Make title link to home"),onDeselect:()=>t({isLink:!0}),isShownByDefault:!0,children:(0,Jo.jsx)(Ou.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ss.__)("Make title link to home"),onChange:()=>t({isLink:!l}),checked:l})}),l&&(0,Jo.jsx)(Ou.__experimentalToolsPanelItem,{hasValue:()=>s!=="_self",label:(0,Ss.__)("Open in new tab"),onDeselect:()=>t({linkTarget:"_self"}),isShownByDefault:!0,children:(0,Jo.jsx)(Ou.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Ss.__)("Open in new tab"),onChange:y=>t({linkTarget:y?"_blank":"_self"}),checked:s==="_blank"})})]})}),b]})}var N1e={attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},GJ=[N1e];var $J=r(U()),I1e={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,$J.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]},WJ=I1e;var{name:qJ}=U3,ZJ={icon:q8,example:{viewportWidth:350,attributes:{textAlign:"center"}},edit:UJ,transforms:WJ,deprecated:GJ},D1e=()=>D({name:qJ,metadata:U3,settings:ZJ});var mD={};$(mD,{init:()=>z1e,metadata:()=>jw,name:()=>Kee,settings:()=>Ow});var uD=r(B());var Zee=r(U());var kg=r(Ui()),Fw=r(z()),Ha=r(S()),Wp=r(F()),Ao=r(L()),Uee=r(xe()),_n=r(B());var Gee=r(U());var cD=r(B());var W3=r(E()),gI=r(h()),KJ=()=>(0,gI.jsx)(W3.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,gI.jsx)(W3.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"})});var q3=r(E()),hI=r(h()),QJ=()=>(0,hI.jsx)(q3.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,hI.jsx)(q3.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"})});var Z3=r(E()),vI=r(h()),YJ=()=>(0,vI.jsx)(Z3.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,vI.jsx)(Z3.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"})});var K3=r(E()),bI=r(h()),XJ=()=>(0,bI.jsx)(K3.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,bI.jsx)(K3.Path,{d:"M6.3,4.2c2.3,1.7,4.8,5.3,5.7,7.2.9-1.9,3.4-5.4,5.7-7.2,1.7-1.3,4.3-2.2,4.3.9s-.4,5.2-.6,5.9c-.7,2.6-3.3,3.2-5.6,2.8,4,.7,5.1,3,2.9,5.3-5,5.2-6.7-2.8-6.7-2.8,0,0-1.7,8-6.7,2.8-2.2-2.3-1.2-4.6,2.9-5.3-2.3.4-4.9-.3-5.6-2.8-.2-.7-.6-5.3-.6-5.9,0-3.1,2.7-2.1,4.3-.9h0Z"})});var Q3=r(E()),yI=r(h()),l2=()=>(0,yI.jsx)(Q3.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,yI.jsx)(Q3.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})});var Y3=r(E()),_I=r(h()),JJ=()=>(0,_I.jsx)(Y3.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,_I.jsx)(Y3.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"})});var X3=r(E()),xI=r(h()),eee=()=>(0,xI.jsx)(X3.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,xI.jsx)(X3.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"})});var J3=r(E()),kI=r(h()),tee=()=>(0,kI.jsx)(J3.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,kI.jsx)(J3.Path,{d:"M20.317 4.369A19.88 19.88 0 0 0 15.894 3a14.145 14.145 0 0 0-.719 1.518 19.205 19.205 0 0 0-5.351 0A14.183 14.183 0 0 0 9.104 3 19.896 19.896 0 0 0 4.682 4.369a18.921 18.921 0 0 0-3.012 12.52 19.929 19.929 0 0 0 6.081 3.097c.487-.65.922-1.339 1.3-2.061a12.445 12.445 0 0 1-1.958-.896c.165-.12.326-.246.483-.374a12.445 12.445 0 0 0 8.946 0c.157.128.318.253.483.374-.627.371-1.281.683-1.958.896.379.722.813 1.41 1.3 2.061a19.94 19.94 0 0 0 6.081-3.097 18.921 18.921 0 0 0-3.012-12.52ZM8.12 15.233c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Zm7.757 0c-1.202 0-2.184-1.09-2.184-2.431 0-1.34.97-2.431 2.184-2.431 1.213 0 2.202 1.09 2.184 2.431 0 1.341-.97 2.431-2.184 2.431Z"})});var ew=r(E()),wI=r(h()),oee=()=>(0,wI.jsx)(ew.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,wI.jsx)(ew.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"})});var tw=r(E()),CI=r(h()),ree=()=>(0,CI.jsx)(tw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,CI.jsx)(tw.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"})});var ow=r(E()),SI=r(h()),aee=()=>(0,SI.jsx)(ow.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,SI.jsx)(ow.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"})});var rw=r(E()),TI=r(h()),nee=()=>(0,TI.jsx)(rw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,TI.jsx)(rw.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"})});var aw=r(E()),BI=r(h()),iee=()=>(0,BI.jsx)(aw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,BI.jsx)(aw.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"})});var nw=r(E()),PI=r(h()),lee=()=>(0,PI.jsx)(nw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,PI.jsx)(nw.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"})});var iw=r(E()),NI=r(h()),see=()=>(0,NI.jsx)(iw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,NI.jsx)(iw.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"})});var lw=r(E()),II=r(h()),cee=()=>(0,II.jsx)(lw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,II.jsx)(lw.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"})});var sw=r(E()),DI=r(h()),uee=()=>(0,DI.jsx)(sw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,DI.jsx)(sw.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"})});var cw=r(E()),EI=r(h()),mee=()=>(0,EI.jsx)(cw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,EI.jsx)(cw.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"})});var uw=r(E()),MI=r(h()),pee=()=>(0,MI.jsx)(uw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,MI.jsx)(uw.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"})});var mw=r(E()),LI=r(h()),dee=()=>(0,LI.jsx)(mw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,LI.jsx)(mw.Path,{d:"M10.8001 4.69937V10.6494C10.8001 11.1001 10.9791 11.5323 11.2978 11.851C11.6165 12.1697 12.0487 12.3487 12.4994 12.3487C12.9501 12.3487 13.3824 12.1697 13.7011 11.851C14.0198 11.5323 14.1988 11.1001 14.1988 10.6494V6.69089C15.2418 7.05861 16.1371 7.75537 16.7496 8.67617C17.3622 9.59698 17.6589 10.6919 17.595 11.796C17.5311 12.9001 17.1101 13.9535 16.3954 14.7975C15.6807 15.6415 14.711 16.2303 13.6325 16.4753C12.5541 16.7202 11.4252 16.608 10.4161 16.1555C9.40691 15.703 8.57217 14.9348 8.03763 13.9667C7.50308 12.9985 7.29769 11.8828 7.45242 10.7877C7.60714 9.69266 8.11359 8.67755 8.89545 7.89537C9.20904 7.57521 9.38364 7.14426 9.38132 6.69611C9.37899 6.24797 9.19994 5.81884 8.88305 5.50195C8.56616 5.18506 8.13704 5.00601 7.68889 5.00369C7.24075 5.00137 6.80979 5.17597 6.48964 5.48956C5.09907 6.8801 4.23369 8.7098 4.04094 10.6669C3.84819 12.624 4.34 14.5873 5.43257 16.2224C6.52515 17.8575 8.15088 19.0632 10.0328 19.634C11.9146 20.2049 13.9362 20.1055 15.753 19.3529C17.5699 18.6003 19.0695 17.241 19.9965 15.5066C20.9234 13.7722 21.2203 11.7701 20.8366 9.84133C20.4528 7.91259 19.4122 6.17658 17.892 4.92911C16.3717 3.68163 14.466 2.99987 12.4994 3C12.0487 3 11.6165 3.17904 11.2978 3.49773C10.9791 3.81643 10.8001 4.24867 10.8001 4.69937Z"})});var pw=r(E()),RI=r(h()),fee=()=>(0,RI.jsx)(pw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,RI.jsx)(pw.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"})});var dw=r(E()),HI=r(h()),gee=()=>(0,HI.jsx)(dw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,HI.jsx)(dw.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"})});var fw=r(E()),zI=r(h()),hee=()=>(0,zI.jsx)(fw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,zI.jsx)(fw.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"})});var gw=r(E()),AI=r(h()),vee=()=>(0,AI.jsx)(gw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,AI.jsx)(gw.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"})});var hw=r(E()),VI=r(h()),bee=()=>(0,VI.jsx)(hw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,VI.jsx)(hw.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"})});var vw=r(E()),FI=r(h()),yee=()=>(0,FI.jsx)(vw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,FI.jsx)(vw.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"})});var bw=r(E()),jI=r(h()),_ee=()=>(0,jI.jsx)(bw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,jI.jsx)(bw.Path,{d:"M13.2,12c0,3-2.4,5.4-5.3,5.4S2.6,15,2.6,12s2.4-5.4,5.3-5.4S13.2,9,13.2,12 M19.1,12c0,2.8-1.2,5-2.7,5s-2.7-2.3-2.7-5s1.2-5,2.7-5C17.9,7,19.1,9.2,19.1,12 M21.4,12c0,2.5-0.4,4.5-0.9,4.5c-0.5,0-0.9-2-0.9-4.5s0.4-4.5,0.9-4.5C21,7.5,21.4,9.5,21.4,12"})});var yw=r(E()),OI=r(h()),xee=()=>(0,OI.jsx)(yw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,OI.jsx)(yw.Path,{d:"M20 8.40755C19.9969 6.10922 18.2543 4.22555 16.2097 3.54588C13.6708 2.70188 10.3222 2.82421 7.89775 3.99921C4.95932 5.42355 4.03626 8.54355 4.00186 11.6552C3.97363 14.2136 4.2222 20.9517 7.92225 20.9997C10.6715 21.0356 11.0809 17.3967 12.3529 15.6442C13.258 14.3974 14.4233 14.0452 15.8578 13.6806C18.3233 13.0537 20.0036 11.0551 20 8.40755Z"})});var _w=r(E()),UI=r(h()),kee=()=>(0,UI.jsx)(_w.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,UI.jsx)(_w.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})});var xw=r(E()),GI=r(h()),wee=()=>(0,GI.jsx)(xw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,GI.jsx)(xw.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"})});var kw=r(E()),$I=r(h()),Cee=()=>(0,$I.jsx)(kw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,$I.jsx)(kw.Path,{d:"M5.27 9.221A2.775 2.775 0 0 0 2.498 11.993a2.785 2.785 0 0 0 1.6 2.511 5.337 5.337 0 0 0 2.374 4.11 9.386 9.386 0 0 0 5.539 1.7 9.386 9.386 0 0 0 5.541-1.7 5.331 5.331 0 0 0 2.372-4.114 2.787 2.787 0 0 0 1.583-2.5 2.775 2.775 0 0 0-2.772-2.772 2.742 2.742 0 0 0-1.688.574 9.482 9.482 0 0 0-4.637-1.348v-.008a2.349 2.349 0 0 1 2.011-2.316 1.97 1.97 0 0 0 1.926 1.521 1.98 1.98 0 0 0 1.978-1.978 1.98 1.98 0 0 0-1.978-1.978 1.985 1.985 0 0 0-1.938 1.578 3.183 3.183 0 0 0-2.849 3.172v.011a9.463 9.463 0 0 0-4.59 1.35 2.741 2.741 0 0 0-1.688-.574Zm6.736 9.1a3.162 3.162 0 0 1-2.921-1.944.215.215 0 0 1 .014-.2.219.219 0 0 1 .168-.106 27.327 27.327 0 0 1 2.74-.133 27.357 27.357 0 0 1 2.74.133.219.219 0 0 1 .168.106.215.215 0 0 1 .014.2 3.158 3.158 0 0 1-2.921 1.944Zm3.743-3.157a1.265 1.265 0 0 1-1.4-1.371 1.954 1.954 0 0 1 .482-1.442 1.15 1.15 0 0 1 .842-.379 1.7 1.7 0 0 1 1.49 1.777 1.323 1.323 0 0 1-.325 1.015 1.476 1.476 0 0 1-1.089.4Zm-7.485 0a1.476 1.476 0 0 1-1.086-.4 1.323 1.323 0 0 1-.325-1.016 1.7 1.7 0 0 1 1.49-1.777 1.151 1.151 0 0 1 .843.379 1.951 1.951 0 0 1 .481 1.441 1.276 1.276 0 0 1-1.403 1.373Z"})});var ww=r(E()),WI=r(h()),See=()=>(0,WI.jsx)(ww.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,WI.jsx)(ww.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"})});var Cw=r(E()),qI=r(h()),Tee=()=>(0,qI.jsx)(Cw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,qI.jsx)(Cw.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"})});var Sw=r(E()),ZI=r(h()),Bee=()=>(0,ZI.jsx)(Sw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,ZI.jsx)(Sw.Path,{d:"M23.994 14.552a3.36 3.36 0 01-3.401 3.171h-8.176a.685.685 0 01-.679-.681V8.238a.749.749 0 01.452-.716S12.942 7 14.526 7a5.357 5.357 0 012.748.755 5.44 5.44 0 012.56 3.546c.282-.08.574-.12.868-.119a3.273 3.273 0 013.292 3.37zM10.718 8.795a.266.266 0 10-.528 0c-.224 2.96-.397 5.735 0 8.685a.265.265 0 00.528 0c.425-2.976.246-5.7 0-8.685zM9.066 9.82a.278.278 0 00-.553 0 33.183 33.183 0 000 7.663.278.278 0 00.55 0c.33-2.544.332-5.12.003-7.664zM7.406 9.56a.269.269 0 00-.535 0c-.253 2.7-.38 5.222 0 7.917a.266.266 0 10.531 0c.394-2.73.272-5.181.004-7.917zM5.754 10.331a.275.275 0 10-.55 0 28.035 28.035 0 000 7.155.272.272 0 00.54 0c.332-2.373.335-4.78.01-7.155zM4.087 12.12a.272.272 0 00-.544 0c-.393 1.843-.208 3.52.016 5.386a.26.26 0 00.512 0c.247-1.892.435-3.53.016-5.386zM2.433 11.838a.282.282 0 00-.56 0c-.349 1.882-.234 3.54.01 5.418.025.285.508.282.54 0 .269-1.907.394-3.517.01-5.418zM.762 12.76a.282.282 0 00-.56 0c-.32 1.264-.22 2.31.023 3.578a.262.262 0 00.521 0c.282-1.293.42-2.317.016-3.578z"})});var Tw=r(E()),KI=r(h()),Pee=()=>(0,KI.jsx)(Tw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,KI.jsx)(Tw.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"})});var Bw=r(E()),QI=r(h()),Nee=()=>(0,QI.jsx)(Bw.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1",children:(0,QI.jsx)(Bw.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"})});var Pw=r(E()),YI=r(h()),Iee=()=>(0,YI.jsx)(Pw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,YI.jsx)(Pw.Path,{d:"M16.3 11.3c-.1 0-.2-.1-.2-.1-.1-2.6-1.5-4-3.9-4-1.4 0-2.6.6-3.3 1.7l1.3.9c.5-.8 1.4-1 2-1 .8 0 1.4.2 1.7.7.3.3.5.8.5 1.3-.7-.1-1.4-.2-2.2-.1-2.2.1-3.7 1.4-3.6 3.2 0 .9.5 1.7 1.3 2.2.7.4 1.5.6 2.4.6 1.2-.1 2.1-.5 2.7-1.3.5-.6.8-1.4.9-2.4.6.3 1 .8 1.2 1.3.4.9.4 2.4-.8 3.6-1.1 1.1-2.3 1.5-4.3 1.5-2.1 0-3.8-.7-4.8-2S5.7 14.3 5.7 12c0-2.3.5-4.1 1.5-5.4 1.1-1.3 2.7-2 4.8-2 2.2 0 3.8.7 4.9 2 .5.7.9 1.5 1.2 2.5l1.5-.4c-.3-1.2-.8-2.2-1.5-3.1-1.3-1.7-3.3-2.6-6-2.6-2.6 0-4.7.9-6 2.6C4.9 7.2 4.3 9.3 4.3 12s.6 4.8 1.9 6.4c1.4 1.7 3.4 2.6 6 2.6 2.3 0 4-.6 5.3-2 1.8-1.8 1.7-4 1.1-5.4-.4-.9-1.2-1.7-2.3-2.3zm-4 3.8c-1 .1-2-.4-2-1.3 0-.7.5-1.5 2.1-1.6h.5c.6 0 1.1.1 1.6.2-.2 2.3-1.3 2.7-2.2 2.7z"})});var Nw=r(E()),XI=r(h()),Dee=()=>(0,XI.jsx)(Nw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,XI.jsx)(Nw.Path,{d:"M12.4044 3.01519C13.4086 3 14.4072 3.009 15.4045 3C15.465 4.14812 15.8874 5.31762 16.7472 6.12935C17.6053 6.96134 18.819 7.34217 20 7.47099V10.4912C18.8933 10.4558 17.7814 10.2308 16.7771 9.76499C16.3397 9.57148 15.9323 9.32227 15.5334 9.06745C15.5283 11.2591 15.5426 13.4479 15.5191 15.6305C15.4592 16.679 15.1053 17.7225 14.4814 18.5866C13.4777 20.025 11.7356 20.9627 9.94635 20.992C8.84885 21.0533 7.7525 20.7608 6.81729 20.2219C5.26743 19.3286 4.17683 17.6933 4.01799 15.9382C3.99957 15.563 3.99324 15.1883 4.00878 14.8221C4.14691 13.395 4.86917 12.0297 5.99027 11.101C7.26101 10.0192 9.04107 9.50397 10.7078 9.80886C10.7233 10.9199 10.6778 12.0297 10.6778 13.1407C9.91643 12.9 9.02668 12.9675 8.36139 13.4192C7.87566 13.7269 7.50675 14.1983 7.31453 14.7316C7.15569 15.1118 7.20116 15.5343 7.21036 15.9382C7.3928 17.169 8.60368 18.2035 9.89628 18.0916C10.7532 18.0826 11.5745 17.5965 12.0211 16.8849C12.1655 16.6357 12.3273 16.3809 12.3359 16.0878C12.4113 14.7462 12.3814 13.4102 12.3906 12.0685C12.3969 9.04495 12.3814 6.02979 12.4049 3.01575L12.4044 3.01519Z"})});var Iw=r(E()),JI=r(h()),Eee=()=>(0,JI.jsx)(Iw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,JI.jsx)(Iw.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"})});var Dw=r(E()),eD=r(h()),Mee=()=>(0,eD.jsx)(Dw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,eD.jsx)(Dw.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"})});var Ew=r(E()),tD=r(h()),Lee=()=>(0,tD.jsx)(Ew.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,tD.jsx)(Ew.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"})});var Mw=r(E()),oD=r(h()),Ree=()=>(0,oD.jsx)(Mw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,oD.jsx)(Mw.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"})});var Lw=r(E()),rD=r(h()),Hee=()=>(0,rD.jsx)(Lw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,rD.jsx)(Lw.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"})});var Rw=r(E()),aD=r(h()),zee=()=>(0,aD.jsx)(Rw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,aD.jsx)(Rw.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"})});var Hw=r(E()),nD=r(h()),Aee=()=>(0,nD.jsx)(Hw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,nD.jsx)(Hw.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"})});var zw=r(E()),iD=r(h()),Vee=()=>(0,iD.jsx)(zw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,iD.jsx)(zw.Path,{d:"M13.982 10.622 20.54 3h-1.554l-5.693 6.618L8.745 3H3.5l6.876 10.007L3.5 21h1.554l6.012-6.989L15.868 21h5.245l-7.131-10.378Zm-2.128 2.474-.697-.997-5.543-7.93H8l4.474 6.4.697.996 5.815 8.318h-2.387l-4.745-6.787Z"})});var Aw=r(E()),lD=r(h()),Fee=()=>(0,lD.jsx)(Aw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,lD.jsx)(Aw.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"})});var Vw=r(E()),sD=r(h()),jee=()=>(0,sD.jsx)(Vw.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",children:(0,sD.jsx)(Vw.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"})});function Oee(e){return e?.name?{icon:e?.icon??l2,label:e?.title??(0,cD.__)("Social Icon")}:{icon:l2,label:(0,cD.__)("Social Icon")}}var Ht=r(h()),E1e=({url:e,setAttributes:t,setPopover:o,popoverAnchor:a,clientId:n})=>{let{removeBlock:i}=(0,Fw.useDispatch)(Ha.store);return(0,Ht.jsx)(Ha.URLPopover,{anchor:a,"aria-label":(0,_n.__)("Edit social link"),onClose:()=>{o(!1),a?.focus()},children:(0,Ht.jsx)("form",{className:"block-editor-url-popover__link-editor",onSubmit:l=>{l.preventDefault(),o(!1),a?.focus()},children:(0,Ht.jsx)("div",{className:"block-editor-url-input",children:(0,Ht.jsx)(Ha.URLInput,{value:e,onChange:l=>t({url:l}),placeholder:(0,_n.__)("Enter social link"),label:(0,_n.__)("Enter social link"),hideLabelFromVision:!0,disableSuggestions:!0,onKeyDown:l=>{e||l.defaultPrevented||![kg.BACKSPACE,kg.DELETE].includes(l.keyCode)||i(n)},suffix:(0,Ht.jsx)(Ao.__experimentalInputControlSuffixWrapper,{variant:"control",children:(0,Ht.jsx)(Ao.Button,{icon:H8,label:(0,_n.__)("Apply"),type:"submit",size:"small"})})})})})})},M1e=({attributes:e,context:t,isSelected:o,setAttributes:a,clientId:n,name:i})=>{let{url:l,service:s,label:c="",rel:u}=e,m=G(),{showLabels:p,iconColor:d,iconColorValue:f,iconBackgroundColor:g,iconBackgroundColorValue:v}=t,[b,y]=(0,Wp.useState)(!1),_=k("wp-social-link","wp-block-social-link","wp-social-link-"+s,{"wp-social-link__is-incomplete":!l,[`has-${d}-color`]:d,[`has-${g}-background-color`]:g}),[x,w]=(0,Wp.useState)(null),C=(0,Ha.useBlockEditingMode)()==="contentOnly",{activeVariation:T}=(0,Fw.useSelect)(O=>{let{getActiveBlockVariation:A}=O(Gee.store);return{activeVariation:A(i,e)}},[i,e]),{icon:N,label:P}=Oee(T),M=c.trim()===""?P:c,R=(0,Wp.useRef)(),H=(0,Ha.useBlockProps)({className:"wp-block-social-link-anchor",ref:(0,Uee.useMergeRefs)([w,R]),onClick:()=>y(!0),onKeyDown:O=>{O.keyCode===kg.ENTER&&(O.preventDefault(),y(!0))}});return(0,Ht.jsxs)(Ht.Fragment,{children:[C&&p&&(0,Ht.jsx)(Ha.BlockControls,{group:"other",children:(0,Ht.jsx)(Ao.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:O,onToggle:A})=>(0,Ht.jsx)(Ao.ToolbarButton,{onClick:A,"aria-haspopup":"true","aria-expanded":O,children:(0,_n.__)("Text")}),renderContent:()=>(0,Ht.jsx)(Ao.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"wp-block-social-link__toolbar_content_text",label:(0,_n.__)("Text"),help:(0,_n.__)("Provide a text label or use the default."),value:c,onChange:O=>a({label:O}),placeholder:P})})}),(0,Ht.jsx)(Ha.InspectorControls,{children:(0,Ht.jsx)(Ao.__experimentalToolsPanel,{label:(0,_n.__)("Settings"),resetAll:()=>{a({label:void 0})},dropdownMenuProps:m,children:(0,Ht.jsx)(Ao.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,_n.__)("Text"),hasValue:()=>!!c,onDeselect:()=>{a({label:void 0})},children:(0,Ht.jsx)(Ao.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,_n.__)("Text"),help:(0,_n.__)("The text is visible when enabled from the parent Social Icons block."),value:c,onChange:O=>a({label:O}),placeholder:P})})})}),(0,Ht.jsx)(Ha.InspectorControls,{group:"advanced",children:(0,Ht.jsx)(Ao.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,_n.__)("Link relation"),help:(0,Wp.createInterpolateElement)((0,_n.__)("The <a>Link Relation</a> attribute defines the relationship between a linked resource and the current document."),{a:(0,Ht.jsx)(Ao.ExternalLink,{href:"https://developer.mozilla.org/docs/Web/HTML/Attributes/rel"})}),value:u||"",onChange:O=>a({rel:O})})}),(0,Ht.jsxs)("li",{role:"presentation",className:_,style:{color:f,backgroundColor:v},children:[(0,Ht.jsxs)("button",{"aria-haspopup":"dialog",...H,role:"button",children:[(0,Ht.jsx)(Ao.Icon,{icon:N}),(0,Ht.jsx)("span",{className:k("wp-block-social-link-label",{"screen-reader-text":!p}),children:M})]}),o&&b&&(0,Ht.jsx)(E1e,{url:l,setAttributes:a,setPopover:y,popoverAnchor:x,clientId:n})]})]})},$ee=M1e;var jw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social profile or site.",textdomain:"default",attributes:{url:{type:"string",role:"content"},service:{type:"string"},label:{type:"string",role:"content"},rel:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],supports:{reusable:!1,html:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-social-link-editor"};var Pe=r(B());var Wee=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:(0,Pe._x)("WordPress","social link block variation name"),icon:Aee},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:(0,Pe._x)("500px","social link block variation name"),icon:lee},{name:"amazon",attributes:{service:"amazon"},title:(0,Pe._x)("Amazon","social link block variation name"),icon:KJ},{name:"bandcamp",attributes:{service:"bandcamp"},title:(0,Pe._x)("Bandcamp","social link block variation name"),icon:QJ},{name:"behance",attributes:{service:"behance"},title:(0,Pe._x)("Behance","social link block variation name"),icon:YJ},{name:"bluesky",attributes:{service:"bluesky"},title:(0,Pe._x)("Bluesky","social link block variation name"),icon:XJ},{name:"chain",attributes:{service:"chain"},title:(0,Pe._x)("Link","social link block variation name"),icon:l2},{name:"codepen",attributes:{service:"codepen"},title:(0,Pe._x)("CodePen","social link block variation name"),icon:JJ},{name:"deviantart",attributes:{service:"deviantart"},title:(0,Pe._x)("DeviantArt","social link block variation name"),icon:eee},{name:"discord",attributes:{service:"discord"},title:(0,Pe._x)("Discord","social link block variation name"),icon:tee},{name:"dribbble",attributes:{service:"dribbble"},title:(0,Pe._x)("Dribbble","social link block variation name"),icon:oee},{name:"dropbox",attributes:{service:"dropbox"},title:(0,Pe._x)("Dropbox","social link block variation name"),icon:ree},{name:"etsy",attributes:{service:"etsy"},title:(0,Pe._x)("Etsy","social link block variation name"),icon:aee},{name:"facebook",attributes:{service:"facebook"},title:(0,Pe._x)("Facebook","social link block variation name"),icon:nee},{name:"feed",attributes:{service:"feed"},title:(0,Pe._x)("RSS Feed","social link block variation name"),icon:iee},{name:"flickr",attributes:{service:"flickr"},title:(0,Pe._x)("Flickr","social link block variation name"),icon:see},{name:"foursquare",attributes:{service:"foursquare"},title:(0,Pe._x)("Foursquare","social link block variation name"),icon:cee},{name:"goodreads",attributes:{service:"goodreads"},title:(0,Pe._x)("Goodreads","social link block variation name"),icon:uee},{name:"google",attributes:{service:"google"},title:(0,Pe._x)("Google","social link block variation name"),icon:mee},{name:"github",attributes:{service:"github"},title:(0,Pe._x)("GitHub","social link block variation name"),icon:pee},{name:"gravatar",attributes:{service:"gravatar"},title:(0,Pe._x)("Gravatar","social link block variation name"),icon:dee},{name:"instagram",attributes:{service:"instagram"},title:(0,Pe._x)("Instagram","social link block variation name"),icon:fee},{name:"lastfm",attributes:{service:"lastfm"},title:(0,Pe._x)("Last.fm","social link block variation name"),icon:gee},{name:"linkedin",attributes:{service:"linkedin"},title:(0,Pe._x)("LinkedIn","social link block variation name"),icon:hee},{name:"mail",attributes:{service:"mail"},title:(0,Pe._x)("Mail","social link block variation name"),keywords:["email","e-mail"],icon:vee},{name:"mastodon",attributes:{service:"mastodon"},title:(0,Pe._x)("Mastodon","social link block variation name"),icon:bee},{name:"meetup",attributes:{service:"meetup"},title:(0,Pe._x)("Meetup","social link block variation name"),icon:yee},{name:"medium",attributes:{service:"medium"},title:(0,Pe._x)("Medium","social link block variation name"),icon:_ee},{name:"patreon",attributes:{service:"patreon"},title:(0,Pe._x)("Patreon","social link block variation name"),icon:xee},{name:"pinterest",attributes:{service:"pinterest"},title:(0,Pe._x)("Pinterest","social link block variation name"),icon:kee},{name:"pocket",attributes:{service:"pocket"},title:(0,Pe._x)("Pocket","social link block variation name"),icon:wee},{name:"reddit",attributes:{service:"reddit"},title:(0,Pe._x)("Reddit","social link block variation name"),icon:Cee},{name:"skype",attributes:{service:"skype"},title:(0,Pe._x)("Skype","social link block variation name"),icon:See,scope:[]},{name:"snapchat",attributes:{service:"snapchat"},title:(0,Pe._x)("Snapchat","social link block variation name"),icon:Tee},{name:"soundcloud",attributes:{service:"soundcloud"},title:(0,Pe._x)("SoundCloud","social link block variation name"),icon:Bee},{name:"spotify",attributes:{service:"spotify"},title:(0,Pe._x)("Spotify","social link block variation name"),icon:Pee},{name:"telegram",attributes:{service:"telegram"},title:(0,Pe._x)("Telegram","social link block variation name"),icon:Nee},{name:"threads",attributes:{service:"threads"},title:(0,Pe._x)("Threads","social link block variation name"),icon:Iee},{name:"tiktok",attributes:{service:"tiktok"},title:(0,Pe._x)("TikTok","social link block variation name"),icon:Dee},{name:"tumblr",attributes:{service:"tumblr"},title:(0,Pe._x)("Tumblr","social link block variation name"),icon:Eee},{name:"twitch",attributes:{service:"twitch"},title:(0,Pe._x)("Twitch","social link block variation name"),icon:Mee},{name:"twitter",attributes:{service:"twitter"},title:(0,Pe._x)("Twitter","social link block variation name"),icon:Lee},{name:"vimeo",attributes:{service:"vimeo"},title:(0,Pe._x)("Vimeo","social link block variation name"),icon:Ree},{name:"vk",attributes:{service:"vk"},title:(0,Pe._x)("VK","social link block variation name"),icon:Hee},{name:"whatsapp",attributes:{service:"whatsapp"},title:(0,Pe._x)("WhatsApp","social link block variation name"),icon:zee},{name:"x",attributes:{service:"x"},keywords:["twitter"],title:(0,Pe._x)("X","social link block variation name"),icon:Vee},{name:"yelp",attributes:{service:"yelp"},title:(0,Pe._x)("Yelp","social link block variation name"),icon:Fee},{name:"youtube",attributes:{service:"youtube"},title:(0,Pe._x)("YouTube","social link block variation name"),icon:jee}];Wee.forEach(e=>{e.isActive||(e.isActive=(t,o)=>t.service===o.service)});var qee=Wee;var{fieldsKey:R1e,formKey:H1e}=Q(Zee.privateApis),{name:Kee}=jw,Ow={icon:Wh,edit:$ee,variations:qee};window.__experimentalContentOnlyInspectorFields&&(Ow[R1e]=[{id:"link",label:(0,uD.__)("Link"),type:"link",mapping:{href:"url",rel:"rel"}},{id:"label",label:(0,uD.__)("Label"),type:"richtext"}],Ow[H1e]={fields:["link"]});var z1e=()=>D({name:Kee,metadata:jw,settings:Ow});var dD={};$(dD,{init:()=>G1e,metadata:()=>Gw,name:()=>ote,settings:()=>rte});var Uw=r(S()),pD=r(h()),A1e=e=>{if(e.layout)return e;let{className:t}=e,o="items-justified-",a=new RegExp(`\\b${o}[^ ]*[ ]?\\b`,"g"),n={...e,className:t?.replace(a,"").trim()},i=t?.match(a)?.[0]?.trim();return i&&Object.assign(n,{layout:{type:"flex",justifyContent:i.slice(o.length)}}),n},V1e=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:A1e,save:e=>{let{attributes:{iconBackgroundColorValue:t,iconColorValue:o,itemsJustification:a,size:n}}=e,i=k(n,{"has-icon-color":o,"has-icon-background-color":t,[`items-justified-${a}`]:a}),l={"--wp--social-links--icon-color":o,"--wp--social-links--icon-background-color":t};return(0,pD.jsx)("ul",{...Uw.useBlockProps.save({className:i,style:l}),children:(0,pD.jsx)(Uw.InnerBlocks.Content,{})})}}],Qee=V1e;var Yee=r(F()),er=r(S()),kl=r(L()),za=r(B()),Xee=r(z());var Fr=r(h()),F1e=[{label:(0,za.__)("Default"),value:""},{label:(0,za.__)("Small"),value:"has-small-icon-size"},{label:(0,za.__)("Normal"),value:"has-normal-icon-size"},{label:(0,za.__)("Large"),value:"has-large-icon-size"},{label:(0,za.__)("Huge"),value:"has-huge-icon-size"}];function j1e(e){let{clientId:t,attributes:o,iconBackgroundColor:a,iconColor:n,isSelected:i,setAttributes:l,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,iconColorValue:m,openInNewTab:p,showLabels:d,size:f}=o,{hasSocialIcons:g,hasSelectedChild:v}=(0,Xee.useSelect)(P=>{let{getBlockCount:M,hasSelectedInnerBlock:R}=P(er.store);return{hasSocialIcons:M(t)>0,hasSelectedChild:R(t)}},[t]),b=i||v,y=o.className?.includes("is-style-logos-only"),_=G();(0,Yee.useEffect)(()=>{if(y){let P;return l(M=>(P={iconBackgroundColor:M.iconBackgroundColor,iconBackgroundColorValue:M.iconBackgroundColorValue,customIconBackgroundColor:M.customIconBackgroundColor},{iconBackgroundColor:void 0,iconBackgroundColorValue:void 0,customIconBackgroundColor:void 0})),()=>l({...P})}},[y,l]);let x=k(f,{"has-visible-labels":d,"has-icon-color":n.color||m,"has-icon-background-color":a.color||u}),w=(0,er.useBlockProps)({className:x}),C=(0,er.useInnerBlocksProps)(w,{templateLock:!1,orientation:o.layout?.orientation??"horizontal",__experimentalAppenderTagName:"li",renderAppender:!g||b?er.InnerBlocks.ButtonBlockAppender:void 0}),T=[{value:n.color||m,onChange:P=>{c(P),l({iconColorValue:P})},label:(0,za.__)("Icon color"),resetAllFilter:()=>{c(void 0),l({iconColorValue:void 0})}}];y||T.push({value:a.color||u,onChange:P=>{s(P),l({iconBackgroundColorValue:P})},label:(0,za.__)("Icon background"),resetAllFilter:()=>{s(void 0),l({iconBackgroundColorValue:void 0})}});let N=(0,er.__experimentalUseMultipleOriginColorsAndGradients)();return(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsx)(er.InspectorControls,{children:(0,Fr.jsxs)(kl.__experimentalToolsPanel,{label:(0,za.__)("Settings"),resetAll:()=>{l({openInNewTab:!1,showLabels:!1,size:void 0})},dropdownMenuProps:_,children:[(0,Fr.jsx)(kl.__experimentalToolsPanelItem,{isShownByDefault:!0,hasValue:()=>!!f,label:(0,za.__)("Icon size"),onDeselect:()=>l({size:void 0}),children:(0,Fr.jsx)(kl.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,za.__)("Icon size"),onChange:P=>{l({size:P===""?void 0:P})},value:f??"",options:F1e})}),(0,Fr.jsx)(kl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,za.__)("Show text"),hasValue:()=>!!d,onDeselect:()=>l({showLabels:!1}),children:(0,Fr.jsx)(kl.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,za.__)("Show text"),checked:d,onChange:()=>l({showLabels:!d})})}),(0,Fr.jsx)(kl.__experimentalToolsPanelItem,{isShownByDefault:!0,label:(0,za.__)("Open links in new tab"),hasValue:()=>!!p,onDeselect:()=>l({openInNewTab:!1}),children:(0,Fr.jsx)(kl.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,za.__)("Open links in new tab"),checked:p,onChange:()=>l({openInNewTab:!p})})})]})}),N.hasColorsOrGradients&&(0,Fr.jsxs)(er.InspectorControls,{group:"color",children:[T.map(({onChange:P,label:M,value:R,resetAllFilter:H})=>(0,Fr.jsx)(er.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:R,label:M,onColorChange:P,isShownByDefault:!0,resetAllFilter:H,enableAlpha:!0,clearable:!0}],panelId:t,...N},`social-links-color-${M}`)),!y&&(0,Fr.jsx)(er.ContrastChecker,{textColor:m,backgroundColor:u,isLargeText:!1})]}),(0,Fr.jsx)("ul",{...C})]})}var O1e={iconColor:"icon-color",iconBackgroundColor:"icon-background-color"},Jee=(0,er.withColors)(O1e)(j1e);var Gw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",allowedBlocks:["core/social-link"],description:"Display icons linking to your social profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,html:!1,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}},contentRole:!0},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"};var $w=r(S()),ete=r(h());function tte(e){let{attributes:{iconBackgroundColorValue:t,iconColorValue:o,showLabels:a,size:n}}=e,i=k(n,{"has-visible-labels":a,"has-icon-color":o,"has-icon-background-color":t}),l=$w.useBlockProps.save({className:i}),s=$w.useInnerBlocksProps.save(l);return(0,ete.jsx)("ul",{...s})}var{name:ote}=Gw,rte={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:Wh,edit:Jee,save:tte,deprecated:Qee},G1e=()=>D({name:ote,metadata:Gw,settings:rte});var fD={};$(fD,{init:()=>Y1e,metadata:()=>qw,name:()=>yte,settings:()=>_te});var ate=r(S()),nte=r(h()),$1e=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){let{height:t,width:o}=e;return{...e,width:o!==void 0?`${o}px`:void 0,height:t!==void 0?`${t}px`:void 0}},save({attributes:e}){return(0,nte.jsx)("div",{...ate.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}],ite=$1e;var jr=r(S()),pte=r(L()),Cg=r(F()),dte=r(E()),Ww=r(z());var wg=r(B()),Ts=r(S()),Ii=r(L()),ste=r(xe()),cte=r(E());var s2=0;var xn=r(h()),{useSpacingSizes:W1e}=Q(Ts.privateApis);function lte({label:e,onChange:t,isResizing:o,value:a=""}){let n=(0,ste.useInstanceId)(Ii.__experimentalUnitControl,"block-spacer-height-input"),i=W1e(),[l]=(0,Ts.useSettings)("spacing.units"),s=l?l.filter(d=>d!=="%"):["px","em","rem","vw","vh"],c=(0,Ii.__experimentalUseCustomUnits)({availableUnits:s,defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),[u,m]=(0,Ii.__experimentalParseQuantityAndUnitFromRawValue)(a),p=(0,Ts.isValueSpacingPreset)(a)?a:[u,o?"px":m].join("");return(0,xn.jsx)(xn.Fragment,{children:i?.length<2?(0,xn.jsx)(Ii.__experimentalUnitControl,{id:n,isResetValueOnUnitChange:!0,min:s2,onChange:t,value:p,units:c,label:e,__next40pxDefaultSize:!0}):(0,xn.jsx)(cte.View,{className:"tools-panel-item-spacing",children:(0,xn.jsx)(Ts.__experimentalSpacingSizesControl,{values:{all:p},onChange:({all:d})=>{t(d)},label:e,sides:["all"],units:c,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})})})}function ute({setAttributes:e,orientation:t,height:o,width:a,isResizing:n}){let i=G();return(0,xn.jsx)(Ts.InspectorControls,{children:(0,xn.jsxs)(Ii.__experimentalToolsPanel,{label:(0,wg.__)("Settings"),resetAll:()=>{e({width:void 0,height:"100px"})},dropdownMenuProps:i,children:[t==="horizontal"&&(0,xn.jsx)(Ii.__experimentalToolsPanelItem,{label:(0,wg.__)("Width"),isShownByDefault:!0,hasValue:()=>a!==void 0,onDeselect:()=>e({width:void 0}),children:(0,xn.jsx)(lte,{label:(0,wg.__)("Width"),value:a,onChange:l=>e({width:l}),isResizing:n})}),t!=="horizontal"&&(0,xn.jsx)(Ii.__experimentalToolsPanelItem,{label:(0,wg.__)("Height"),isShownByDefault:!0,hasValue:()=>o!=="100px",onDeselect:()=>e({height:"100px"}),children:(0,xn.jsx)(lte,{label:(0,wg.__)("Height"),value:o,onChange:l=>e({height:l}),isResizing:n})})]})})}var Di=r(h()),{useSpacingSizes:q1e}=Q(jr.privateApis),mte=({orientation:e,onResizeStart:t,onResize:o,onResizeStop:a,isSelected:n,isResizing:i,setIsResizing:l,...s})=>{let c=m=>e==="horizontal"?m.clientWidth:m.clientHeight,u=m=>`${c(m)}px`;return(0,Di.jsx)(pte.ResizableBox,{className:k("block-library-spacer__resize-container",{"resize-horizontal":e==="horizontal","is-resizing":i,"is-selected":n}),onResizeStart:(m,p,d)=>{let f=u(d);t(f),o(f)},onResize:(m,p,d)=>{o(u(d)),i||l(!0)},onResizeStop:(m,p,d)=>{let f=c(d);a(`${f}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:e==="horizontal"?"x":"y",position:"corner",isVisible:i},showHandle:n,...s})},Z1e=({attributes:e,isSelected:t,setAttributes:o,toggleSelection:a,context:n,__unstableParentLayout:i,className:l})=>{let s=(0,Ww.useSelect)(J=>J(jr.store).getSettings()?.disableCustomSpacingSizes),{orientation:c}=n,{orientation:u,type:m,default:{type:p}={}}=i||{},d=m==="flex"||!m&&p==="flex",f=!u&&d?"horizontal":u||c,{height:g,width:v,style:b={}}=e,{layout:y={}}=b,{selfStretch:_,flexSize:x}=y,w=q1e(),[C,T]=(0,Cg.useState)(!1),[N,P]=(0,Cg.useState)(null),[M,R]=(0,Cg.useState)(null),H=()=>a(!1),O=()=>a(!0),{__unstableMarkNextChangeAsNotPersistent:A}=(0,Ww.useDispatch)(jr.store),I=J=>{O(),d&&o({style:{...b,layout:{...y,flexSize:J,selfStretch:"fixed"}}}),o({height:J}),P(null)},V=J=>{O(),d&&o({style:{...b,layout:{...y,flexSize:J,selfStretch:"fixed"}}}),o({width:J}),R(null)},W=()=>{if(!d)return N||(0,jr.getSpacingPresetCssVar)(g)||void 0},j=()=>{if(!d)return M||(0,jr.getSpacingPresetCssVar)(v)||void 0},K=f==="horizontal"?M||x:N||x,Z={height:f==="horizontal"?24:W(),width:f==="horizontal"?j():void 0,minWidth:f==="vertical"&&d?48:void 0,flexBasis:d?K:void 0,flexGrow:d&&C?0:void 0},te=J=>J==="horizontal"?(0,Di.jsx)(mte,{minWidth:s2,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:J,onResizeStart:H,onResize:R,onResizeStop:V,isSelected:t,isResizing:C,setIsResizing:T}):(0,Di.jsx)(Di.Fragment,{children:(0,Di.jsx)(mte,{minHeight:s2,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:J,onResizeStart:H,onResize:P,onResizeStop:I,isSelected:t,isResizing:C,setIsResizing:T})});(0,Cg.useEffect)(()=>{let J=ee=>{A(),o(ee)};if(d&&_!=="fill"&&_!=="fit"&&x===void 0)if(f==="horizontal"){let ee=(0,jr.getCustomValueFromPreset)(v,w)||(0,jr.getCustomValueFromPreset)(g,w)||"100px";J({width:"0px",style:{...b,layout:{...y,flexSize:ee,selfStretch:"fixed"}}})}else{let ee=(0,jr.getCustomValueFromPreset)(g,w)||(0,jr.getCustomValueFromPreset)(v,w)||"100px";J({height:"0px",style:{...b,layout:{...y,flexSize:ee,selfStretch:"fixed"}}})}else d&&(_==="fill"||_==="fit")?J(f==="horizontal"?{width:void 0}:{height:void 0}):!d&&(_||x)&&J({...f==="horizontal"?{width:x}:{height:x},style:{...b,layout:{...y,flexSize:void 0,selfStretch:void 0}}})},[b,x,g,f,d,y,_,o,w,v,A]);let X=(0,jr.useBlockEditingMode)();return(0,Di.jsxs)(Di.Fragment,{children:[(0,Di.jsx)(dte.View,{...(0,jr.useBlockProps)({style:Z,className:k(l,{"custom-sizes-disabled":s})}),children:X==="default"&&te(f)}),!d&&(0,Di.jsx)(ute,{setAttributes:o,height:N||g,width:M||v,orientation:f,isResizing:C})]})},fte=Z1e;var qw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0,spacing:{margin:["top","bottom"],__experimentalDefaultControls:{margin:!0}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"};var gte=r(U()),Q1e={to:[{type:"block",blocks:["core/separator"],transform:({anchor:e})=>(0,gte.createBlock)("core/separator",{anchor:e||""})}]},hte=Q1e;var c2=r(S()),vte=r(h());function bte({attributes:e}){let{height:t,width:o,style:a}=e,{layout:{selfStretch:n}={}}=a||{},i=n==="fill"||n==="fit"?void 0:t;return(0,vte.jsx)("div",{...c2.useBlockProps.save({style:{height:(0,c2.getSpacingPresetCssVar)(i),width:(0,c2.getSpacingPresetCssVar)(o)},"aria-hidden":!0})})}var{name:yte}=qw,_te={icon:a9,transforms:hte,edit:fte,save:bte,deprecated:ite},Y1e=()=>D({name:yte,metadata:qw,settings:_te});var bD={};$(bD,{init:()=>t2e,metadata:()=>tC,name:()=>zte,settings:()=>Ate});var Ete=r(B()),Cl=r(S()),Jw=r(z()),Aa=r(F());var Xw=r(S()),Sg=r(L()),u2=r(B()),Cte=r(z()),Ste=r(jo());var xte=r(U()),Kw=r(S()),Qw=r(L()),gD=r(B()),kte=r(z()),Zw=r(h());function Yw({attributes:e,tabsClientId:t}){let{insertBlock:o}=(0,kte.useDispatch)(Kw.store),{className:a,fontFamily:n,fontSize:i}=e,l=()=>{let s=(0,xte.createBlock)("core/tab",{className:a,fontFamily:n,fontSize:i});o(s,void 0,t)};return(0,Zw.jsx)(Kw.BlockControls,{group:"block",children:(0,Zw.jsx)(Qw.ToolbarGroup,{children:(0,Zw.jsx)(Qw.ToolbarButton,{className:"components-toolbar__control",label:(0,gD.__)("Add Tab"),onClick:l,showTooltip:!0,text:(0,gD.__)("Add Tab")})})})}var wte=r(ko());function qp(e,t){let o=new window.DOMParser().parseFromString(e,"text/html");return o.body?.textContent?(0,wte.cleanForSlug)(o.body.textContent):`tab-panel-${t}`}var Bs=r(h());function Tte({attributes:e,setAttributes:t,tabsClientId:o,blockIndex:a,isDefaultTab:n}){let{label:i}=e,{updateBlockAttributes:l}=(0,Cte.useDispatch)(Xw.store);return(0,Bs.jsxs)(Bs.Fragment,{children:[(0,Bs.jsx)(Yw,{tabsClientId:o,attributes:e}),(0,Bs.jsx)(Xw.InspectorControls,{children:(0,Bs.jsxs)(Sg.PanelBody,{title:(0,u2.__)("Tab Settings"),children:[(0,Bs.jsx)(Sg.TextControl,{label:(0,u2.__)("Tab Label"),value:(0,Ste.decodeEntities)(i),onChange:s=>{t({label:s,anchor:qp(s,a)})},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,Bs.jsx)(Sg.ToggleControl,{label:(0,u2.__)("Default Tab"),checked:n,onChange:s=>{l(o,{activeTabIndex:s?a:0})},help:(0,u2.__)("If toggled, this tab will be selected when the page loads."),__nextHasNoMarginBottom:!0})]})})]})}var Tg=r(B()),Bte=r(S()),hD=r(jo()),Pte=r(F());var Uu=r(h());function X1e({label:e,index:t}){return e?(0,Uu.jsx)("span",{children:(0,Uu.jsx)(Pte.RawHTML,{children:(0,hD.decodeEntities)(e)})}):(0,Uu.jsx)("span",{children:(0,Tg.sprintf)((0,Tg.__)("Tab %d"),t+1)})}function Nte({siblingTabs:e,currentClientId:t,currentBlockIndex:o,currentLabel:a,tabItemColorProps:n,onSelectTab:i,onLabelChange:l,labelRef:s,focusRef:c,labelElementRef:u}){return(0,Uu.jsx)("div",{role:"tablist",className:"tabs__list",children:e.map((m,p)=>{let d=m.clientId===t,f=p===o,g=m.attributes||{},v=g.label||"",y=g.anchor||qp(v,p),_=`${y}--tab`;return(0,Uu.jsx)("button",{"aria-controls":y,"aria-selected":f,id:_,role:"tab",className:k("tabs__tab-label",n.className),style:{...n.style},tabIndex:f?0:-1,onClick:x=>{x.preventDefault(),i(m.clientId)},onKeyDown:x=>{if(x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),i(m.clientId),d)){let{requestAnimationFrame:w}=window;c.current=w(()=>{u.current?.focus()})}},children:d?(0,Uu.jsx)(Bte.RichText,{ref:s,tagName:"span",withoutInteractiveFormatting:!0,placeholder:(0,Tg.sprintf)((0,Tg.__)("Tab %d\u2026"),o+1),value:(0,hD.decodeEntities)(a),onChange:l}):(0,Uu.jsx)(X1e,{label:v,index:p})},m.clientId)})})}var wl=r(h()),J1e=[["core/paragraph",{placeholder:(0,Ete.__)("Type / to add a block to tab")}]],{requestAnimationFrame:Ite,cancelAnimationFrame:Dte}=window;function Mte({attributes:e,clientId:t,isSelected:o,setAttributes:a,__unstableLayoutClassNames:n}){let{selectBlock:i}=(0,Jw.useDispatch)(Cl.store),l=(0,Aa.useRef)(null),s=(0,Aa.useRef)(),[c,u]=(0,Aa.useState)(!0),m=(0,Aa.useRef)(null),{anchor:p,label:d}=e,f=(0,Aa.useCallback)(I=>{if(m.current=I,I&&c){let V=Ite(()=>{I&&I.focus()});s.current=V,u(!1)}},[c]);(0,Aa.useEffect)(()=>{if(!d&&!c&&m.current){let I=Ite(()=>{m.current&&m.current.focus()});return s.current=I,()=>Dte(s.current)}},[d,c]),(0,Aa.useEffect)(()=>()=>{s.current&&Dte(s.current)},[]);let{blockIndex:g,hasInnerBlocksSelected:v,tabsHasSelectedBlock:b,tabsClientId:y,tabsAttributes:_,forceDisplay:x,isTabsClientSelected:w,isDefaultTab:C,siblingTabs:T}=(0,Jw.useSelect)(I=>{let{getBlockRootClientId:V,getBlockIndex:W,isBlockSelected:j,hasSelectedInnerBlock:K,getBlockAttributes:Z,getBlocks:te}=I(Cl.store),X=V(t),J=K(X,!0),ee=Z(X),{activeTabIndex:ne}=ee,oe=j(X),ce=W(t),pe=ne===ce,Ne=K(t,!0),Le=te(X);return{blockIndex:ce,hasInnerBlocksSelected:Ne,tabsClientId:X,forceDisplay:pe&&oe,tabsHasSelectedBlock:J,isTabsClientSelected:oe,isDefaultTab:pe,tabsAttributes:ee,siblingTabs:Le}},[t]),N=(0,Aa.useMemo)(()=>!!(o||v||x||C&&!w&&!o&&!b),[o,v,x,C,w,b]),P=(0,Aa.useMemo)(()=>p||qp(d,g),[p,d,g]),M=(0,Aa.useMemo)(()=>`${P}--tab`,[P]),R=(0,Cl.__experimentalUseColorProps)(_),H=(0,Cl.getTypographyClassesAndStyles)(e),O=(0,Cl.useBlockProps)({hidden:!N}),A=(0,Cl.useInnerBlocksProps)({"aria-labelledby":M,id:P,role:"tabpanel",ref:l,tabIndex:N?0:-1,className:k(H.className,"tabs__tab-editor-content",n),style:{...H.style}},{template:J1e});return(0,wl.jsx)(wl.Fragment,{children:(0,wl.jsxs)("div",{...O,children:[(0,wl.jsx)(Tte,{attributes:e,setAttributes:a,tabsClientId:y,blockIndex:g,isDefaultTab:C}),N&&(0,wl.jsxs)(wl.Fragment,{children:[(0,wl.jsx)(Nte,{siblingTabs:T,currentClientId:t,currentBlockIndex:g,currentLabel:d,tabItemColorProps:R,onSelectTab:i,onLabelChange:I=>a({label:I,anchor:qp(I,g)}),labelRef:f,focusRef:s,labelElementRef:m}),(0,wl.jsx)("section",{...A})]})]})})}var eC=r(S()),Lte=r(h());function Rte({attributes:e}){let{anchor:t}=e,o=t,a=eC.useBlockProps.save(),n=eC.useInnerBlocksProps.save(a);return(0,Lte.jsx)("section",{...n,id:o})}var tC={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tab",title:"Tab",description:"Content for a tab in a tabbed interface.",version:"1.0.0",category:"design",textdomain:"default",attributes:{label:{type:"string",default:""}},parent:["core/tabs"],supports:{anchor:!0,html:!1,reusable:!1,layout:{allowSwitching:!0,allowInheriting:!1,allowVerticalAlignment:!0,allowJustification:!0,allowOrientation:!0,allowSizingOnChildren:!0},spacing:{blockGap:!0,padding:!0,margin:!1},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0},__experimentalSkipSerialization:!0}},providesContext:{"core/tab-label":"label"},editorScript:"file:./index.js",style:"file:./style-index.css"};var oC=r(L()),vD=r(h()),Hte=(0,vD.jsx)(oC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,vD.jsx)(oC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5498 10.3501V6.3501H9.8498V10.3501H11.3498V6.1001C11.3498 5.40974 10.7902 4.8501 10.0998 4.8501H5.2998C4.60945 4.8501 4.0498 5.40974 4.0498 6.1001V10.3501H5.5498ZM20 12.6001H4V14.1001L20 14.1001V12.6001ZM14 17.1001H4V18.6001H14V17.1001Z"})});var{name:zte}=tC,Ate={icon:Hte,edit:Mte,save:Rte},t2e=()=>D({name:zte,metadata:tC,settings:Ate});var PD={};$(PD,{init:()=>v2e,metadata:()=>rC,name:()=>Yte,settings:()=>Xte});var Ns=r(B());var Ot=r(S()),Qe=r(h()),Vte={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},yD={content:{type:"rich-text",source:"rich-text"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}},o2e={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"rich-text",source:"rich-text",selector:"figcaption"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:yD}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:yD}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:yD}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table",interactivity:{clientNavigation:!0}},save({attributes:e}){let{hasFixedLayout:t,head:o,body:a,foot:n,caption:i}=e;if(!o.length&&!a.length&&!n.length)return null;let s=(0,Ot.__experimentalGetColorClassesAndStyles)(e),c=(0,Ot.__experimentalGetBorderClassesAndStyles)(e),u=k(s.className,c.className,{"has-fixed-layout":t}),m=!Ot.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let g=`t${d}`;return(0,Qe.jsx)(g,{children:f.map(({cells:v},b)=>(0,Qe.jsx)("tr",{children:v.map(({content:y,tag:_,scope:x,align:w,colspan:C,rowspan:T},N)=>{let P=k({[`has-text-align-${w}`]:w});return(0,Qe.jsx)(Ot.RichText.Content,{className:P||void 0,"data-align":w,tagName:_,value:y,scope:_==="th"?x:void 0,colSpan:C,rowSpan:T},N)})},b))})};return(0,Qe.jsxs)("figure",{...Ot.useBlockProps.save(),children:[(0,Qe.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,Qe.jsx)(p,{type:"head",rows:o}),(0,Qe.jsx)(p,{type:"body",rows:a}),(0,Qe.jsx)(p,{type:"foot",rows:n})]}),m&&(0,Qe.jsx)(Ot.RichText.Content,{tagName:"figcaption",value:i,className:(0,Ot.__experimentalGetElementClassName)("caption")})]})}},_D={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}},r2e={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:_D}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:_D}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:_D}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){let{hasFixedLayout:t,head:o,body:a,foot:n,caption:i}=e;if(!o.length&&!a.length&&!n.length)return null;let s=(0,Ot.__experimentalGetColorClassesAndStyles)(e),c=(0,Ot.__experimentalGetBorderClassesAndStyles)(e),u=k(s.className,c.className,{"has-fixed-layout":t}),m=!Ot.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let g=`t${d}`;return(0,Qe.jsx)(g,{children:f.map(({cells:v},b)=>(0,Qe.jsx)("tr",{children:v.map(({content:y,tag:_,scope:x,align:w},C)=>{let T=k({[`has-text-align-${w}`]:w});return(0,Qe.jsx)(Ot.RichText.Content,{className:T||void 0,"data-align":w,tagName:_,value:y,scope:_==="th"?x:void 0},C)})},b))})};return(0,Qe.jsxs)("figure",{...Ot.useBlockProps.save(),children:[(0,Qe.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,Qe.jsx)(p,{type:"head",rows:o}),(0,Qe.jsx)(p,{type:"body",rows:a}),(0,Qe.jsx)(p,{type:"foot",rows:n})]}),m&&(0,Qe.jsx)(Ot.RichText.Content,{tagName:"figcaption",value:i})]})}},xD={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}},a2e={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xD}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xD}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:xD}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{let{hasFixedLayout:t,head:o,body:a,foot:n,backgroundColor:i,caption:l}=e;if(!o.length&&!a.length&&!n.length)return null;let c=(0,Ot.getColorClassName)("background-color",i),u=k(c,{"has-fixed-layout":t,"has-background":!!c}),m=!Ot.RichText.isEmpty(l),p=({type:d,rows:f})=>{if(!f.length)return null;let g=`t${d}`;return(0,Qe.jsx)(g,{children:f.map(({cells:v},b)=>(0,Qe.jsx)("tr",{children:v.map(({content:y,tag:_,scope:x,align:w},C)=>{let T=k({[`has-text-align-${w}`]:w});return(0,Qe.jsx)(Ot.RichText.Content,{className:T||void 0,"data-align":w,tagName:_,value:y,scope:_==="th"?x:void 0},C)})},b))})};return(0,Qe.jsxs)("figure",{...Ot.useBlockProps.save(),children:[(0,Qe.jsxs)("table",{className:u===""?void 0:u,children:[(0,Qe.jsx)(p,{type:"head",rows:o}),(0,Qe.jsx)(p,{type:"body",rows:a}),(0,Qe.jsx)(p,{type:"foot",rows:n})]}),m&&(0,Qe.jsx)(Ot.RichText.Content,{tagName:"figcaption",value:l})]})},isEligible:e=>e.backgroundColor&&e.backgroundColor in Vte&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:Vte[e.backgroundColor]}}})},kD={content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}},n2e={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:kD}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:kD}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:kD}}}},supports:{align:!0},save({attributes:e}){let{hasFixedLayout:t,head:o,body:a,foot:n,backgroundColor:i}=e;if(!o.length&&!a.length&&!n.length)return null;let s=(0,Ot.getColorClassName)("background-color",i),c=k(s,{"has-fixed-layout":t,"has-background":!!s}),u=({type:m,rows:p})=>{if(!p.length)return null;let d=`t${m}`;return(0,Qe.jsx)(d,{children:p.map(({cells:f},g)=>(0,Qe.jsx)("tr",{children:f.map(({content:v,tag:b,scope:y},_)=>(0,Qe.jsx)(Ot.RichText.Content,{tagName:b,value:v,scope:b==="th"?y:void 0},_))},g))})};return(0,Qe.jsxs)("table",{className:c,children:[(0,Qe.jsx)(u,{type:"head",rows:o}),(0,Qe.jsx)(u,{type:"body",rows:a}),(0,Qe.jsx)(u,{type:"foot",rows:n})]})}},Fte=[o2e,r2e,a2e,n2e];var Ps=r(F()),tr=r(S()),vt=r(B()),To=r(L());var i2e=["align"];function jte({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map(()=>({cells:Array.from({length:t}).map(()=>({content:"",tag:"td"}))}))}}function l2e(e){if(!Gu(e.head))return e.head[0];if(!Gu(e.body))return e.body[0];if(!Gu(e.foot))return e.foot[0]}function Ote(e,t,o){let{sectionName:a,rowIndex:n,columnIndex:i}=t;return e[a]?.[n]?.cells?.[i]?.[o]}function wD(e,t,o){if(!t)return e;let a=Object.fromEntries(Object.entries(e).filter(([l])=>["head","body","foot"].includes(l))),{sectionName:n,rowIndex:i}=t;return Object.fromEntries(Object.entries(a).map(([l,s])=>n&&n!==l?[l,s]:[l,s.map((c,u)=>i&&i!==u?c:{cells:c.cells.map((m,p)=>s2e({sectionName:l,columnIndex:p,rowIndex:u},t)?o(m):m)})]))}function s2e(e,t){if(!e||!t)return!1;switch(t.type){case"column":return t.type==="column"&&e.columnIndex===t.columnIndex;case"cell":return t.type==="cell"&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}function CD(e,{sectionName:t,rowIndex:o,columnCount:a}){let n=l2e(e),i=a===void 0?n?.cells?.length:a;return i?{[t]:[...e[t].slice(0,o),{cells:Array.from({length:i}).map((l,s)=>{let c=n?.cells?.[s]??{};return{...Object.fromEntries(Object.entries(c).filter(([m])=>i2e.includes(m))),content:"",tag:t==="head"?"th":"td"}})},...e[t].slice(o)]}:e}function Ute(e,{sectionName:t,rowIndex:o}){return{[t]:e[t].filter((a,n)=>n!==o)}}function Gte(e,{columnIndex:t}){let o=Object.fromEntries(Object.entries(e).filter(([a])=>["head","body","foot"].includes(a)));return Object.fromEntries(Object.entries(o).map(([a,n])=>Gu(n)?[a,n]:[a,n.map(i=>Wte(i)||i.cells.length<t?i:{cells:[...i.cells.slice(0,t),{content:"",tag:a==="head"?"th":"td"},...i.cells.slice(t)]})]))}function $te(e,{columnIndex:t}){let o=Object.fromEntries(Object.entries(e).filter(([a])=>["head","body","foot"].includes(a)));return Object.fromEntries(Object.entries(o).map(([a,n])=>Gu(n)?[a,n]:[a,n.map(i=>({cells:i.cells.length>=t?i.cells.filter((l,s)=>s!==t):i.cells})).filter(i=>i.cells.length)]))}function SD(e,t){if(!Gu(e[t]))return{[t]:[]};let o=e.body?.[0]?.cells?.length??1;return CD(e,{sectionName:t,rowIndex:0,columnCount:o})}function Gu(e){return!e||!e.length||e.every(Wte)}function Wte(e){return!(e.cells&&e.cells.length)}var st=r(h()),c2e=[{icon:m6,title:(0,vt.__)("Align column left"),align:"left"},{icon:c6,title:(0,vt.__)("Align column center"),align:"center"},{icon:g6,title:(0,vt.__)("Align column right"),align:"right"}],u2e={head:(0,vt.__)("Header cell text"),body:(0,vt.__)("Body cell text"),foot:(0,vt.__)("Footer cell text")},m2e={head:(0,vt.__)("Header label"),foot:(0,vt.__)("Footer label")};function p2e({name:e,...t}){let o=`t${e}`;return(0,st.jsx)(o,{...t})}function d2e({attributes:e,setAttributes:t,insertBlocksAfter:o,isSelected:a}){let{hasFixedLayout:n,head:i,foot:l}=e,[s,c]=(0,Ps.useState)(2),[u,m]=(0,Ps.useState)(2),[p,d]=(0,Ps.useState)(),f=(0,tr.__experimentalUseColorProps)(e),g=(0,tr.__experimentalUseBorderProps)(e),v=(0,tr.useBlockEditingMode)(),b=(0,Ps.useRef)(),[y,_]=(0,Ps.useState)(!1),x=G();function w(oe){m(oe)}function C(oe){c(oe)}function T(oe){oe.preventDefault(),t(jte({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),_(!0)}function N(){t({hasFixedLayout:!n})}function P(oe){p&&t(wD(e,p,ce=>({...ce,content:oe})))}function M(oe){if(!p)return;let ce={type:"column",columnIndex:p.columnIndex},pe=wD(e,ce,Ne=>({...Ne,align:oe}));t(pe)}function R(){if(p)return Ote(e,p,"align")}function H(){t(SD(e,"head"))}function O(){t(SD(e,"foot"))}function A(oe){if(!p)return;let{sectionName:ce,rowIndex:pe}=p,Ne=pe+oe;t(CD(e,{sectionName:ce,rowIndex:Ne})),d({sectionName:ce,rowIndex:Ne,columnIndex:0,type:"cell"})}function I(){A(0)}function V(){A(1)}function W(){if(!p)return;let{sectionName:oe,rowIndex:ce}=p;d(),t(Ute(e,{sectionName:oe,rowIndex:ce}))}function j(oe=0){if(!p)return;let{columnIndex:ce}=p,pe=ce+oe;t(Gte(e,{columnIndex:pe})),d({rowIndex:0,columnIndex:pe,type:"cell"})}function K(){j(0)}function Z(){j(1)}function te(){if(!p)return;let{sectionName:oe,columnIndex:ce}=p;d(),t($te(e,{sectionName:oe,columnIndex:ce}))}(0,Ps.useEffect)(()=>{a||d()},[a]),(0,Ps.useEffect)(()=>{y&&(b?.current?.querySelector('td div[contentEditable="true"]')?.focus(),_(!1))},[y]);let X=["head","body","foot"].filter(oe=>!Gu(e[oe])),J=[{icon:E9,title:(0,vt.__)("Insert row before"),isDisabled:!p,onClick:I},{icon:I9,title:(0,vt.__)("Insert row after"),isDisabled:!p,onClick:V},{icon:L9,title:(0,vt.__)("Delete row"),isDisabled:!p,onClick:W},{icon:T9,title:(0,vt.__)("Insert column before"),isDisabled:!p,onClick:K},{icon:gd,title:(0,vt.__)("Insert column after"),isDisabled:!p,onClick:Z},{icon:P9,title:(0,vt.__)("Delete column"),isDisabled:!p,onClick:te}],ee=X.map(oe=>(0,st.jsx)(p2e,{name:oe,children:e[oe].map(({cells:ce},pe)=>(0,st.jsx)("tr",{children:ce.map(({content:Ne,tag:Le,scope:ie,align:Ee,colspan:de,rowspan:re},se)=>(0,st.jsx)(Le,{scope:Le==="th"?ie:void 0,colSpan:de,rowSpan:re,className:k({[`has-text-align-${Ee}`]:Ee},"wp-block-table__cell-content"),children:(0,st.jsx)(tr.RichText,{value:Ne,onChange:P,onFocus:()=>{d({sectionName:oe,rowIndex:pe,columnIndex:se,type:"cell"})},"aria-label":u2e[oe],placeholder:m2e[oe]})},se))},pe))},oe)),ne=!X.length;return(0,st.jsxs)("figure",{...(0,tr.useBlockProps)({ref:b}),children:[!ne&&v==="default"&&(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)(tr.BlockControls,{group:"block",children:(0,st.jsx)(tr.AlignmentControl,{label:(0,vt.__)("Change column alignment"),alignmentControls:c2e,value:R(),onChange:oe=>M(oe)})}),(0,st.jsx)(tr.BlockControls,{group:"other",children:(0,st.jsx)(To.ToolbarDropdownMenu,{icon:H9,label:(0,vt.__)("Edit table"),controls:J})})]}),(0,st.jsx)(tr.InspectorControls,{children:(0,st.jsxs)(To.__experimentalToolsPanel,{label:(0,vt.__)("Settings"),resetAll:()=>{t({hasFixedLayout:!0,head:[],foot:[]})},dropdownMenuProps:x,children:[(0,st.jsx)(To.__experimentalToolsPanelItem,{hasValue:()=>n!==!0,label:(0,vt.__)("Fixed width table cells"),onDeselect:()=>t({hasFixedLayout:!0}),isShownByDefault:!0,children:(0,st.jsx)(To.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,vt.__)("Fixed width table cells"),checked:!!n,onChange:N})}),!ne&&(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)(To.__experimentalToolsPanelItem,{hasValue:()=>i&&i.length,label:(0,vt.__)("Header section"),onDeselect:()=>t({head:[]}),isShownByDefault:!0,children:(0,st.jsx)(To.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,vt.__)("Header section"),checked:!!(i&&i.length),onChange:H})}),(0,st.jsx)(To.__experimentalToolsPanelItem,{hasValue:()=>l&&l.length,label:(0,vt.__)("Footer section"),onDeselect:()=>t({foot:[]}),isShownByDefault:!0,children:(0,st.jsx)(To.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,vt.__)("Footer section"),checked:!!(l&&l.length),onChange:O})})]})]})}),!ne&&(0,st.jsx)("table",{className:k(f.className,g.className,{"has-fixed-layout":n,"has-individual-borders":(0,To.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...f.style,...g.style},children:ee}),ne?(0,st.jsx)(To.Placeholder,{label:(0,vt.__)("Table"),icon:(0,st.jsx)(tr.BlockIcon,{icon:sh,showColors:!0}),instructions:(0,vt.__)("Insert a table for sharing data."),children:(0,st.jsxs)("form",{className:"blocks-table__placeholder-form",onSubmit:T,children:[(0,st.jsx)(To.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,vt.__)("Column count"),value:u,onChange:w,min:"1",className:"blocks-table__placeholder-input"}),(0,st.jsx)(To.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,type:"number",label:(0,vt.__)("Row count"),value:s,onChange:C,min:"1",className:"blocks-table__placeholder-input"}),(0,st.jsx)(To.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",children:(0,vt.__)("Create Table")})]})}):(0,st.jsx)(Wa,{attributes:e,setAttributes:t,isSelected:a,insertBlocksAfter:o,label:(0,vt.__)("Table caption text"),showToolbarButton:a&&v==="default"})]})}var qte=d2e;var rC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!0},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"rich-text",source:"rich-text",role:"content"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},interactivity:{clientNavigation:!0}},selectors:{root:".wp-block-table > table",spacing:".wp-block-table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"};var Ei=r(S()),Sl=r(h());function Zte({attributes:e}){let{hasFixedLayout:t,head:o,body:a,foot:n,caption:i}=e;if(!o.length&&!a.length&&!n.length)return null;let s=(0,Ei.__experimentalGetColorClassesAndStyles)(e),c=(0,Ei.__experimentalGetBorderClassesAndStyles)(e),u=k(s.className,c.className,{"has-fixed-layout":t}),m=!Ei.RichText.isEmpty(i),p=({type:d,rows:f})=>{if(!f.length)return null;let g=`t${d}`;return(0,Sl.jsx)(g,{children:f.map(({cells:v},b)=>(0,Sl.jsx)("tr",{children:v.map(({content:y,tag:_,scope:x,align:w,colspan:C,rowspan:T},N)=>{let P=k({[`has-text-align-${w}`]:w});return(0,Sl.jsx)(Ei.RichText.Content,{className:P||void 0,"data-align":w,tagName:_,value:y,scope:_==="th"?x:void 0,colSpan:C,rowSpan:T},N)})},b))})};return(0,Sl.jsxs)("figure",{...Ei.useBlockProps.save(),children:[(0,Sl.jsxs)("table",{className:u===""?void 0:u,style:{...s.style,...c.style},children:[(0,Sl.jsx)(p,{type:"head",rows:o}),(0,Sl.jsx)(p,{type:"body",rows:a}),(0,Sl.jsx)(p,{type:"foot",rows:n})]}),m&&(0,Sl.jsx)(Ei.RichText.Content,{tagName:"figcaption",value:i,className:(0,Ei.__experimentalGetElementClassName)("caption")})]})}var Kte=r(U());function TD(e){let t=parseInt(e,10);if(Number.isInteger(t))return t<0||t===1?void 0:t.toString()}var BD=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan","style"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan","style"]}}}}),g2e=e=>({table:{children:{thead:{allowEmpty:!0,children:BD(e)},tfoot:{allowEmpty:!0,children:BD(e)},tbody:{allowEmpty:!0,children:BD(e)}}}}),h2e={from:[{type:"raw",selector:"table",schema:g2e,transform:e=>{let t=Array.from(e.children).reduce((o,a)=>{if(!a.children.length)return o;let n=a.nodeName.toLowerCase().slice(1),i=Array.from(a.children).reduce((l,s)=>{if(!s.children.length)return l;let c=Array.from(s.children).reduce((u,m)=>{let p=TD(m.getAttribute("rowspan")),d=TD(m.getAttribute("colspan")),{textAlign:f}=m.style||{},g;return(f==="left"||f==="center"||f==="right")&&(g=f),u.push({tag:m.nodeName.toLowerCase(),content:m.innerHTML,rowspan:p,colspan:d,align:g}),u},[]);return l.push({cells:c}),l},[]);return o[n]=i,o},{});return(0,Kte.createBlock)("core/table",t)}}]},Qte=h2e;var{name:Yte}=rC,Xte={icon:sh,example:{attributes:{head:[{cells:[{content:(0,Ns.__)("Version"),tag:"th"},{content:(0,Ns.__)("Jazz Musician"),tag:"th"},{content:(0,Ns.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:(0,Ns.__)("Jaco Pastorius"),tag:"td"},{content:(0,Ns.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:(0,Ns.__)("Betty Carter"),tag:"td"},{content:(0,Ns.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:(0,Ns.__)("Bebo Vald\xE9s"),tag:"td"},{content:(0,Ns.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:Qte,edit:qte,save:Zte,deprecated:Fte},v2e=()=>D({name:Yte,metadata:rC,settings:Xte});var ID={};$(ID,{init:()=>x2e,metadata:()=>aC,name:()=>doe,settings:()=>foe});var kc=r(B());var aC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"design",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"},default:[]},onlyIncludeCurrentPage:{type:"boolean",default:!1},maxLevel:{type:"number"},ordered:{type:"boolean",default:!0}},supports:{ariaLabel:!0,html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},style:"wp-block-table-of-contents"};var Tl=r(S()),loe=r(U()),_r=r(L()),d2=r(z()),soe=r(F()),St=r(B()),coe=r(xe()),uoe=r(No());var Is=r(h()),Jte="wp-block-table-of-contents__entry";function Bg({nestedHeadingList:e,disableLinkActivation:t,onClick:o,ordered:a=!0}){return(0,Is.jsx)(Is.Fragment,{children:e.map((n,i)=>{let{content:l,link:s}=n.heading,c=s?(0,Is.jsx)("a",{className:Jte,href:s,"aria-disabled":t||void 0,onClick:t&&typeof o=="function"?o:void 0,children:l}):(0,Is.jsx)("span",{className:Jte,children:l}),u=a?"ol":"ul";return(0,Is.jsxs)("li",{children:[c,n.children?(0,Is.jsx)(u,{children:(0,Is.jsx)(Bg,{nestedHeadingList:n.children,disableLinkActivation:t,onClick:t&&typeof o=="function"?o:void 0,ordered:a})}):null]},i)})})}function m2(e){let t=[];return e.forEach((o,a)=>{if(o.content!==""&&o.level===e[0].level)if(e[a+1]?.level>o.level){let n=e.length;for(let i=a+1;i<e.length;i++)if(e[i].level===o.level){n=i;break}t.push({heading:o,children:m2(e.slice(a+1,n))})}else t.push({heading:o,children:null})}),t}var ooe=r(toe()),roe=r(z()),aoe=r(Qs()),noe=r(F()),p2=r(ko()),nC=r(S());function y2e(e,t){let{getBlockAttributes:o,getBlockName:a,getBlocksByName:n,getClientIdsOfDescendants:i}=e(nC.store),l=e("core/editor").getPermalink()??null,s=n("core/nextpage").length!==0,{onlyIncludeCurrentPage:c,maxLevel:u}=o(t)??{},[m=""]=n("core/post-content"),p=i(m),d=1;if(s&&c){let b=p.indexOf(t);for(let[y,_]of p.entries()){if(y>=b)break;a(_)==="core/nextpage"&&d++}}let f=[],g=1,v=null;typeof l=="string"&&(v=s?(0,p2.addQueryArgs)(l,{page:g}):l);for(let b of p){let y=a(b);if(y==="core/nextpage"){if(g++,c&&g>d)break;typeof l=="string"&&(v=(0,p2.addQueryArgs)((0,p2.removeQueryArgs)(l,["page"]),{page:g}))}else if((!c||g===d)&&y==="core/heading"){let _=o(b);if(u&&_.level>u)continue;let x=typeof v=="string"&&typeof _.anchor=="string"&&_.anchor!=="";f.push({content:(0,aoe.__unstableStripHTML)(_.content.replace(/(<br *\/?>)+/g," ")),level:_.level,link:x?`${v}#${_.anchor}`:null})}}return f}function _2e(e,t,o){let{getBlockAttributes:a}=e(nC.store),{updateBlockAttributes:n,__unstableMarkNextChangeAsNotPersistent:i}=t(nC.store),l=a(o);if(l===null)return;let s=y2e(e,o);(0,ooe.default)(s,l.headings)||window.queueMicrotask(()=>{i(),n(o,{headings:s})})}function ioe(e){let t=(0,roe.useRegistry)();(0,noe.useEffect)(()=>t.subscribe(()=>_2e(t.select,t.dispatch,e)),[t,e])}var Ut=r(h());function ND({attributes:{headings:e=[],onlyIncludeCurrentPage:t,maxLevel:o,ordered:a=!0},clientId:n,setAttributes:i}){ioe(n);let l=(0,Tl.useBlockProps)(),s=(0,coe.useInstanceId)(ND,"table-of-contents"),{createWarningNotice:c}=(0,d2.useDispatch)(uoe.store),u=y=>{y.preventDefault(),c((0,St.__)("Links are disabled in the editor."),{id:`block-library/core/table-of-contents/redirection-prevented/${s}`,type:"snackbar"})},m=(0,d2.useSelect)(y=>{let{getBlockRootClientId:_,canInsertBlockType:x}=y(Tl.store),w=_(n);return x("core/list",w)},[n]),{replaceBlocks:p}=(0,d2.useDispatch)(Tl.store),d=G(),f=m2(e),g=(0,Ut.jsxs)(Tl.BlockControls,{children:[(0,Ut.jsxs)(_r.ToolbarGroup,{children:[(0,Ut.jsx)(_r.ToolbarButton,{icon:(0,St.isRTL)()?_h:xh,title:(0,St.__)("Unordered"),description:(0,St.__)("Convert to unordered list"),onClick:()=>i({ordered:!1}),isActive:a===!1}),(0,Ut.jsx)(_r.ToolbarButton,{icon:(0,St.isRTL)()?kh:ui,title:(0,St.__)("Ordered"),description:(0,St.__)("Convert to ordered list"),onClick:()=>i({ordered:!0}),isActive:a===!0})]}),m&&(0,Ut.jsx)(_r.ToolbarGroup,{children:(0,Ut.jsx)(_r.ToolbarButton,{onClick:()=>p(n,(0,loe.createBlock)("core/list",{ordered:a,values:(0,soe.renderToString)((0,Ut.jsx)(Bg,{nestedHeadingList:f,ordered:a}))})),children:(0,St.__)("Convert to static list")})})]}),v=(0,Ut.jsx)(Tl.InspectorControls,{children:(0,Ut.jsxs)(_r.__experimentalToolsPanel,{label:(0,St.__)("Settings"),resetAll:()=>{i({onlyIncludeCurrentPage:!1,maxLevel:void 0,ordered:!0})},dropdownMenuProps:d,children:[(0,Ut.jsx)(_r.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,St.__)("Only include current page"),onDeselect:()=>i({onlyIncludeCurrentPage:!1}),isShownByDefault:!0,children:(0,Ut.jsx)(_r.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,St.__)("Only include current page"),checked:t,onChange:y=>i({onlyIncludeCurrentPage:y}),help:t?(0,St.__)("Only including headings from the current page (if the post is paginated)."):(0,St.__)("Include headings from all pages (if the post is paginated).")})}),(0,Ut.jsx)(_r.__experimentalToolsPanelItem,{hasValue:()=>!!o,label:(0,St.__)("Limit heading levels"),onDeselect:()=>i({maxLevel:void 0}),isShownByDefault:!0,children:(0,Ut.jsx)(_r.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,St.__)("Include headings down to level"),value:o||"",options:[{value:"",label:(0,St.__)("All levels")},{value:"1",label:(0,St.__)("Heading 1")},{value:"2",label:(0,St.__)("Heading 2")},{value:"3",label:(0,St.__)("Heading 3")},{value:"4",label:(0,St.__)("Heading 4")},{value:"5",label:(0,St.__)("Heading 5")},{value:"6",label:(0,St.__)("Heading 6")}],onChange:y=>i({maxLevel:y?parseInt(y):void 0}),help:o?(0,St.__)("Only include headings up to and including this level."):(0,St.__)("Including all heading levels in the table of contents.")})})]})});return e.length===0?(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsx)("div",{...l,children:(0,Ut.jsx)(_r.Placeholder,{icon:(0,Ut.jsx)(Tl.BlockIcon,{icon:Yh}),label:(0,St.__)("Table of Contents"),instructions:(0,St.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})}),v]}):(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsx)("nav",{...l,children:(0,Ut.jsx)(a?"ol":"ul",{children:(0,Ut.jsx)(Bg,{nestedHeadingList:f,disableLinkActivation:!0,onClick:u,ordered:a})})}),g,v]})}var moe=r(S());var iC=r(h());function poe({attributes:{headings:e=[],ordered:t=!0}}){if(e.length===0)return null;let o=t?"ol":"ul";return(0,iC.jsx)("nav",{...moe.useBlockProps.save(),children:(0,iC.jsx)(o,{children:(0,iC.jsx)(Bg,{nestedHeadingList:m2(e),ordered:t})})})}var{name:doe}=aC,foe={icon:Yh,edit:ND,save:poe,example:{innerBlocks:[{name:"core/heading",attributes:{level:2,content:(0,kc.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,kc.__)("Subheading")}},{name:"core/heading",attributes:{level:2,content:(0,kc.__)("Heading")}},{name:"core/heading",attributes:{level:3,content:(0,kc.__)("Subheading")}}],attributes:{headings:[{content:(0,kc.__)("Heading"),level:2},{content:(0,kc.__)("Subheading"),level:3},{content:(0,kc.__)("Heading"),level:2},{content:(0,kc.__)("Subheading"),level:3}]}}},x2e=()=>D({name:doe,metadata:aC,settings:foe});var ED={};$(ED,{init:()=>N2e,metadata:()=>cC,name:()=>_oe,settings:()=>xoe});var Ng=r(S());var Zp=r(S());function k2e({attributes:e}){let{style:t,orientation:o}=e||{},{spacing:a}=t||{},{blockGap:n}=a||{},i="var( --wp--style--tabs-gap-default, var( --wp--style--block-gap, 0.5em ) )",l=i,s=i;if(n&&(l=typeof n=="string"?(0,Zp.__experimentalGetGapCSSValue)(n):(0,Zp.__experimentalGetGapCSSValue)(n?.left)||i,s=typeof n=="string"?(0,Zp.__experimentalGetGapCSSValue)(n):(0,Zp.__experimentalGetGapCSSValue)(n?.top)||i),o==="vertical"){let u=l;l=s,s=u}return{"--wp--style--unstable-tabs-list-gap":l==="0"?"0px":l,"--wp--style--unstable-tabs-gap":s}}function w2e({attributes:e}){let{customTabInactiveColor:t,customTabHoverColor:o,customTabActiveColor:a,customTabTextColor:n,customTabActiveTextColor:i,customTabHoverTextColor:l}=e||{};function s(u){return u?typeof u=="object"&&u.slug?`var(--wp--preset--color--${u.slug})`:u:null}return{"--custom-tab-inactive-color":s(t),"--custom-tab-active-color":s(a),"--custom-tab-hover-color":s(o),"--custom-tab-text-color":s(n),"--custom-tab-active-text-color":s(i),"--custom-tab-hover-text-color":s(l)}}function goe({attributes:e,clientId:t}){let o=k2e({attributes:e}),a=w2e({attributes:e}),n={...o,...a},i=Object.entries(n).filter(([,l])=>!!l).map(([l,s])=>` ${l}: ${s};`).join(` |
| 38 |
`);return(0,Zp.useStyleOverride)({css:t?`#block-${t} { |
| 39 |
${i} |
| 40 |
}`:""}),null}var Mi=r(B()),Pg=r(L()),Kp=r(F()),Bl=r(S());var xr=r(h());function C2e({attributes:e}){let{className:t,fontSize:o,tabActiveColor:a,customTabActiveColor:n,tabActiveTextColor:i,customTabActiveTextColor:l,tabInactiveColor:s,customTabInactiveColor:c,tabTextColor:u,customTabTextColor:m,tabHoverColor:p,customTabHoverColor:d,tabHoverTextColor:f,customTabHoverTextColor:g}=e,v=(0,Kp.useMemo)(()=>t?.includes("is-style-links")?"#fff":a?.color?a.color:n,[a,n,t]),b=(0,Kp.useMemo)(()=>i?.color?i.color:l,[i,l]),y=(0,Kp.useMemo)(()=>t?.includes("is-style-links")?"#fff":s?.color?s.color:c,[s,c,t]),_=(0,Kp.useMemo)(()=>u?.color?u.color:m,[u,m]),x=(0,Kp.useMemo)(()=>p?.color?p.color:d,[p,d]),w=(0,Kp.useMemo)(()=>f?.color?f.color:g,[f,g]);return(0,xr.jsxs)(xr.Fragment,{children:[(0,xr.jsx)(Bl.ContrastChecker,{backgroundColor:v,fontSize:o,textColor:b}),(0,xr.jsx)(Bl.ContrastChecker,{backgroundColor:y,fontSize:o,textColor:_}),(0,xr.jsx)(Bl.ContrastChecker,{backgroundColor:x,fontSize:o,textColor:w})]})}function hoe({attributes:e,setAttributes:t,clientId:o,tabInactiveColor:a,setTabInactiveColor:n,tabHoverColor:i,setTabHoverColor:l,tabActiveColor:s,setTabActiveColor:c,tabTextColor:u,setTabTextColor:m,tabActiveTextColor:p,setTabActiveTextColor:d,tabHoverTextColor:f,setTabHoverTextColor:g}){let{customTabInactiveColor:v,customTabActiveColor:b,customTabHoverColor:y,customTabTextColor:_,customTabActiveTextColor:x,customTabHoverTextColor:w,orientation:C,metadata:T={name:""}}=e,N=(0,Bl.__experimentalUseMultipleOriginColorsAndGradients)();return(0,xr.jsxs)(xr.Fragment,{children:[(0,xr.jsx)(Yw,{tabsClientId:o,attributes:e}),(0,xr.jsx)(Bl.InspectorControls,{children:(0,xr.jsxs)(Pg.PanelBody,{title:(0,Mi.__)("Tabs Settings"),children:[(0,xr.jsx)(Pg.ToggleControl,{label:(0,Mi.__)("Vertical Tabs"),checked:C==="vertical",onChange:()=>t({orientation:C==="vertical"?"horizontal":"vertical"}),__nextHasNoMarginBottom:!0}),(0,xr.jsx)(Pg.TextControl,{label:(0,Mi.__)("Tabs Title"),help:(0,Mi.__)("The tabs title is used by screen readers to describe the purpose and content of the tabs."),value:T.name,placeholder:(0,Mi.__)("Tab Contents"),onChange:P=>{t({metadata:{...T,name:P}})},__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0})]})}),(0,xr.jsxs)(Bl.InspectorControls,{group:"color",children:[(0,xr.jsx)(Bl.__experimentalColorGradientSettingsDropdown,{settings:[{label:(0,Mi.__)("Tab Active Background"),colorValue:s?.color??b,onColorChange:P=>{c(P),t({customTabActiveColor:P})}},{label:(0,Mi.__)("Tab Active Text"),colorValue:p?.color??x,onColorChange:P=>{d(P),t({customTabActiveTextColor:P})}},{label:(0,Mi.__)("Tab Inactive Background"),colorValue:a?.color??v,onColorChange:P=>{n(P),t({customTabInactiveColor:P})}},{label:(0,Mi.__)("Tab Inactive Text"),colorValue:u?.color??_,onColorChange:P=>{m(P),t({customTabTextColor:P})}},{label:(0,Mi.__)("Tab Hover Background"),colorValue:i?.color??y,onColorChange:P=>{l(P),t({customTabHoverColor:P})}},{label:(0,Mi.__)("Tab Hover Text"),colorValue:f?.color??w,onColorChange:P=>{g(P),t({customTabHoverTextColor:P})}}],panelId:o,disableCustomColors:!1,__experimentalIsRenderedInSidebar:!0,__next40pxDefaultSize:!0,...N}),(0,xr.jsx)(C2e,{attributes:e})]})]})}var $u=r(h()),S2e=[["core/tab",{}]],T2e={name:"core/tab",attributesToCopy:["className","fontFamily","fontSize"]};function B2e({clientId:e,attributes:t,setAttributes:o,tabInactiveColor:a,setTabInactiveColor:n,tabHoverColor:i,setTabHoverColor:l,tabActiveColor:s,setTabActiveColor:c,tabTextColor:u,setTabTextColor:m,tabActiveTextColor:p,setTabActiveTextColor:d,tabHoverTextColor:f,setTabHoverTextColor:g}){let{style:v,orientation:b}=t,y=(0,Ng.useBlockProps)({className:k(b==="vertical"?"is-vertical":"is-horizontal"),style:{...v}}),_=(0,Ng.useInnerBlocksProps)(y,{defaultBlock:T2e,directInsert:!0,__experimentalCaptureToolbars:!0,clientId:e,orientation:b,template:S2e,renderAppender:!1});return(0,$u.jsx)($u.Fragment,{children:(0,$u.jsxs)("div",{..._,children:[_.children,(0,$u.jsx)(goe,{attributes:t,clientId:e}),(0,$u.jsx)(hoe,{clientId:e,attributes:t,setAttributes:o,tabInactiveColor:a,setTabInactiveColor:n,tabHoverColor:i,setTabHoverColor:l,tabActiveColor:s,setTabActiveColor:c,tabTextColor:u,setTabTextColor:m,tabActiveTextColor:p,setTabActiveTextColor:d,tabHoverTextColor:f,setTabHoverTextColor:g})]})})}var voe=(0,Ng.withColors)("tabInactiveColor","tabHoverColor","tabActiveColor","tabTextColor","tabActiveTextColor","tabHoverTextColor")(B2e);var lC=r(S()),f2=r(h());function boe({attributes:e}){let t=lC.useBlockProps.save(),o=lC.useInnerBlocksProps.save({}),a=e?.metadata?.name||"Tab Contents";return(0,f2.jsxs)("div",{...t,children:[(0,f2.jsx)("h3",{className:"tabs__title",children:a}),(0,f2.jsx)("ul",{className:"tabs__list"}),o.children]})}var sC=r(L()),DD=r(h()),yoe=(0,DD.jsx)(sC.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,DD.jsx)(sC.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M5.2998 4.8501C4.60945 4.8501 4.0498 5.40974 4.0498 6.1001V10.3501H11.3498V6.1001C11.3498 5.40974 10.7902 4.8501 10.0998 4.8501H5.2998ZM14.2002 10.3501V7.1001H18.5002V10.3501H20.0002V6.8501C20.0002 6.15974 19.4406 5.6001 18.7502 5.6001H13.9502C13.2598 5.6001 12.7002 6.15974 12.7002 6.8501V10.3501H14.2002ZM20 12.6001H4V14.1001H20V12.6001ZM14 17.1001H4V18.6001H14V17.1001Z"})});var cC={$schema:"https://schemas.wp.org/trunk/block.json",__experimental:!0,apiVersion:3,name:"core/tabs",title:"Tabs",description:"Display content in a tabbed interface to help users navigate detailed content with ease.",version:"1.0.0",category:"design",textdomain:"default",allowedBlocks:["core/tab"],attributes:{tabsId:{type:"string",default:""},orientation:{type:"string",default:"horizontal",enum:["horizontal","vertical"]},activeTabIndex:{type:"number",default:0},tabInactiveColor:{type:"string"},customTabInactiveColor:{type:"string"},tabHoverColor:{type:"string"},customTabHoverColor:{type:"string"},tabActiveColor:{type:"string"},customTabActiveColor:{type:"string"},tabTextColor:{type:"string"},customTabTextColor:{type:"string"},tabActiveTextColor:{type:"string"},customTabActiveTextColor:{type:"string"},tabHoverTextColor:{type:"string"},customTabHoverTextColor:{type:"string"}},styles:[{name:"tab",label:"Tabs",isDefault:!0},{name:"links",label:"Links"},{name:"button",label:"Button"}],supports:{align:!0,color:{text:!1,background:!1},html:!1,interactivity:!0,spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!1},typography:{fontSize:!0,__experimentalFontFamily:!0}},example:{attributes:{className:"is-example"},innerBlocks:[{name:"core/tab",attributes:{label:"Tab 1"},innerBlocks:[{name:"core/paragraph",attributes:{content:"Pariatur commodo sint mollit. Veniam Lorem labore voluptate fugiat. Ad nulla est labore cillum cillum qui nostrud do incididunt eiusmod. Aliqua aliqua sunt consequat consequat in duis deserunt."}},{name:"core/paragraph",attributes:{content:"Adipisicing ullamco nisi in eu laborum adipisicing aliquip aliqua. Fugiat labore officia consequat nisi veniam velit commodo cillum enim duis quis ad."}}]},{name:"core/tab",attributes:{label:"Tab 2"}},{name:"core/tab",attributes:{label:"Tab 3"}}]},providesContext:{"core/tabs-id":"tabsId"},editorScript:"file:./index.js",editorStyle:"file:./index.css",style:"file:./style-index.css",viewScriptModule:"@wordpress/block-library/tabs/view"};var{name:_oe}=cC,xoe={icon:yoe,edit:voe,save:boe},N2e=()=>D({name:_oe,metadata:cC,settings:xoe});var LD={};$(LD,{init:()=>R2e,metadata:()=>uC,name:()=>Noe,settings:()=>Ioe});var MD=r(U()),I2e={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,MD.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,MD.createBlock)("core/categories")}]},koe=I2e;var uC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of popular keywords, each sized by how often it appears.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}},editorStyle:"wp-block-tag-cloud-editor"};var Tt=r(L()),Soe=r(z()),Li=r(B()),Ig=r(S()),Toe=r(Ec()),Boe=r(Y());var bo=r(h()),E2e=1,M2e=100,woe=.1,Coe=100;function L2e({attributes:e,setAttributes:t}){let{taxonomy:o,showTagCounts:a,numberOfTags:n,smallestFontSize:i,largestFontSize:l}=e,[s]=(0,Ig.useSettings)("spacing.units"),c=G(),u=(0,Tt.__experimentalUseCustomUnits)({availableUnits:s?[...s,"pt"]:["%","px","em","rem","pt"]}),m=(0,Soe.useSelect)(v=>v(Boe.store).getTaxonomies({per_page:-1}),[]),p=()=>{let v={label:(0,Li.__)("- Select -"),value:"",disabled:!0},b=(m??[]).filter(y=>!!y.show_cloud).map(y=>({value:y.slug,label:y.name}));return[v,...b]},d=(v,b)=>{let[y,_]=(0,Tt.__experimentalParseQuantityAndUnitFromRawValue)(b);if(!Number.isFinite(y))return;let x={[v]:b};Object.entries({smallestFontSize:i,largestFontSize:l}).forEach(([w,C])=>{let[T,N]=(0,Tt.__experimentalParseQuantityAndUnitFromRawValue)(C);w!==v&&N!==_&&(x[w]=`${T}${_}`)}),t(x)},f={...e,style:{...e?.style,border:void 0}},g=(0,bo.jsx)(Ig.InspectorControls,{children:(0,bo.jsxs)(Tt.__experimentalToolsPanel,{label:(0,Li.__)("Settings"),resetAll:()=>{t({taxonomy:"post_tag",showTagCounts:!1,numberOfTags:45,smallestFontSize:"8pt",largestFontSize:"22pt"})},dropdownMenuProps:c,children:[(0,bo.jsx)(Tt.__experimentalToolsPanelItem,{hasValue:()=>o!=="post_tag",label:(0,Li.__)("Taxonomy"),onDeselect:()=>t({taxonomy:"post_tag"}),isShownByDefault:!0,children:(0,bo.jsx)(Tt.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Li.__)("Taxonomy"),options:p(),value:o,onChange:v=>t({taxonomy:v})})}),(0,bo.jsx)(Tt.__experimentalToolsPanelItem,{hasValue:()=>i!=="8pt"||l!=="22pt",label:(0,Li.__)("Font size"),onDeselect:()=>t({smallestFontSize:"8pt",largestFontSize:"22pt"}),isShownByDefault:!0,children:(0,bo.jsxs)(Tt.Flex,{gap:4,children:[(0,bo.jsx)(Tt.FlexItem,{isBlock:!0,children:(0,bo.jsx)(Tt.__experimentalUnitControl,{label:(0,Li.__)("Smallest size"),value:i,onChange:v=>{d("smallestFontSize",v)},units:u,min:woe,max:Coe,size:"__unstable-large"})}),(0,bo.jsx)(Tt.FlexItem,{isBlock:!0,children:(0,bo.jsx)(Tt.__experimentalUnitControl,{label:(0,Li.__)("Largest size"),value:l,onChange:v=>{d("largestFontSize",v)},units:u,min:woe,max:Coe,size:"__unstable-large"})})]})}),(0,bo.jsx)(Tt.__experimentalToolsPanelItem,{hasValue:()=>n!==45,label:(0,Li.__)("Number of tags"),onDeselect:()=>t({numberOfTags:45}),isShownByDefault:!0,children:(0,bo.jsx)(Tt.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Li.__)("Number of tags"),value:n,onChange:v=>t({numberOfTags:v}),min:E2e,max:M2e,required:!0})}),(0,bo.jsx)(Tt.__experimentalToolsPanelItem,{hasValue:()=>a!==!1,label:(0,Li.__)("Show tag counts"),onDeselect:()=>t({showTagCounts:!1}),isShownByDefault:!0,children:(0,bo.jsx)(Tt.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Li.__)("Show tag counts"),checked:a,onChange:()=>t({showTagCounts:!a})})})]})});return(0,bo.jsxs)(bo.Fragment,{children:[g,(0,bo.jsx)("div",{...(0,Ig.useBlockProps)(),children:(0,bo.jsx)(Tt.Disabled,{children:(0,bo.jsx)(Toe.default,{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:f})})})]})}var Poe=L2e;var{name:Noe}=uC,Ioe={icon:Xh,example:{},edit:Poe,transforms:koe},R2e=()=>D({name:Noe,metadata:uC,settings:Ioe});var VD={};$(VD,{init:()=>W2e,metadata:()=>pC,name:()=>_re,settings:()=>xre});var Wu=function(){return Wu=Object.assign||function(t){for(var o,a=1,n=arguments.length;a<n;a++){o=arguments[a];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])}return t},Wu.apply(this,arguments)};function Doe(e){return e.toLowerCase()}var H2e=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],z2e=/[^A-Z0-9]+/gi;function mC(e,t){t===void 0&&(t={});for(var o=t.splitRegexp,a=o===void 0?H2e:o,n=t.stripRegexp,i=n===void 0?z2e:n,l=t.transform,s=l===void 0?Doe:l,c=t.delimiter,u=c===void 0?" ":c,m=Eoe(Eoe(e,a,"$1\0$2"),i,"\0"),p=0,d=m.length;m.charAt(p)==="\0";)p++;for(;m.charAt(d-1)==="\0";)d--;return m.slice(p,d).split("\0").map(s).join(u)}function Eoe(e,t,o){return t instanceof RegExp?e.replace(t,o):t.reduce(function(a,n){return a.replace(n,o)},e)}function Moe(e){return e.charAt(0).toUpperCase()+e.substr(1)}function A2e(e){return Moe(e.toLowerCase())}function Loe(e,t){return t===void 0&&(t={}),mC(e,Wu({delimiter:" ",transform:A2e},t))}function Roe(e,t){return t===void 0&&(t={}),mC(e,Wu({delimiter:"."},t))}function Hoe(e,t){return t===void 0&&(t={}),Roe(e,Wu({delimiter:"-"},t))}var vre=r(Y()),bre=r(z());var AD=r(eu()),yre=r(jo());var pC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1,renaming:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-template-part-editor"};var ure=r(U()),zg=r(z()),Vo=r(S()),Ms=r(L()),Cn=r(B()),y2=r(Y()),mre=r(F()),pre=r(No());var Zu=r(B()),Yp=r(L()),Ooe=r(F()),Uoe=r(z()),Goe=r(Y());var Dg=r(z()),dC=r(Y()),zoe=r(S()),Aoe=r(F()),Voe=r(U()),RD=r(B());function Eg(e,t){let{templateParts:o,isResolving:a}=(0,Dg.useSelect)(i=>{let{getEntityRecords:l,isResolving:s}=i(dC.store),c={per_page:-1};return{templateParts:l("postType","wp_template_part",c),isResolving:s("getEntityRecords",["postType","wp_template_part",c])}},[]);return{templateParts:(0,Aoe.useMemo)(()=>o?o.filter(i=>gl(i.theme,i.slug)!==t&&(!e||e==="uncategorized"||i.area===e))||[]:[],[o,e,t]),isResolving:a}}function Mg(e,t){return(0,Dg.useSelect)(o=>{let a=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:n,getPatternsByBlockTypes:i}=o(zoe.store),l=n(t);return i(a,l)},[e,t])}function fC(e,t){let{saveEntityRecord:o}=(0,Dg.useDispatch)(dC.store);return async(a=[],n=(0,RD.__)("Untitled Template Part"))=>{let i=Hoe(n).replace(/[^\w-]+/g,"")||"wp-custom-part",l={title:n,slug:i,content:(0,Voe.serialize)(a),area:e},s=await o("postType","wp_template_part",l);t({slug:s.slug,theme:s.theme,area:void 0})}}function gC(e){return(0,Dg.useSelect)(t=>{let o=t(dC.store).getCurrentTheme()?.default_template_part_areas||[],a=o.find(i=>i.area===e),n=o.find(i=>i.area==="uncategorized");return{icon:a?.icon||n?.icon,label:a?.label||(0,RD.__)("Template Part"),tagName:a?.area_tag??"div"}},[e])}var Foe=r(F()),qu=r(B()),Pl=r(L()),wc=r(h());function joe({areaLabel:e,onClose:t,onSubmit:o}){let[a,n]=(0,Foe.useState)(""),i=l=>{l.preventDefault(),o(a)};return(0,wc.jsx)(Pl.Modal,{title:(0,qu.sprintf)((0,qu.__)("Create new %s"),e.toLowerCase()),onRequestClose:t,focusOnMount:"firstContentElement",size:"small",children:(0,wc.jsx)("form",{onSubmit:i,children:(0,wc.jsxs)(Pl.__experimentalVStack,{spacing:"5",children:[(0,wc.jsx)(Pl.TextControl,{label:(0,qu.__)("Name"),value:a,onChange:n,placeholder:(0,qu.__)("Custom Template Part"),__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0}),(0,wc.jsxs)(Pl.__experimentalHStack,{justify:"right",children:[(0,wc.jsx)(Pl.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>{t(),n("")},children:(0,qu.__)("Cancel")}),(0,wc.jsx)(Pl.Button,{variant:"primary",type:"submit",accessibleWhenDisabled:!0,disabled:!a.length,__next40pxDefaultSize:!0,children:(0,qu.__)("Create")})]})]})})})}var Qp=r(h());function $oe({area:e,clientId:t,templatePartId:o,onOpenSelectionModal:a,setAttributes:n}){let{templateParts:i,isResolving:l}=Eg(e,o),s=Mg(e,t),{isBlockBasedTheme:c,canCreateTemplatePart:u}=(0,Uoe.useSelect)(g=>{let{getCurrentTheme:v,canUser:b}=g(Goe.store);return{isBlockBasedTheme:v()?.is_block_theme,canCreateTemplatePart:b("create",{kind:"postType",name:"wp_template_part"})}},[]),[m,p]=(0,Ooe.useState)(!1),d=gC(e),f=fC(e,n);return(0,Qp.jsxs)(Yp.Placeholder,{icon:Mf(d.icon),label:d.label,instructions:c?(0,Zu.sprintf)((0,Zu.__)("Choose an existing %s or create a new one."),d.label.toLowerCase()):(0,Zu.sprintf)((0,Zu.__)("Choose an existing %s."),d.label.toLowerCase()),children:[l&&(0,Qp.jsx)(Yp.Spinner,{}),!l&&!!(i.length||s.length)&&(0,Qp.jsx)(Yp.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:a,children:(0,Zu.__)("Choose")}),!l&&c&&u&&(0,Qp.jsx)(Yp.Button,{__next40pxDefaultSize:!0,variant:"secondary",onClick:()=>{p(!0)},children:(0,Zu.__)("Start blank")}),m&&(0,Qp.jsx)(joe,{areaLabel:d.label,onClose:()=>p(!1),onSubmit:g=>{f([],g)}})]})}var g2=r(F()),Ku=r(B()),Zoe=r(No()),Koe=r(z()),Qoe=r(S()),hC=r(L());var Woe=r(U());function qoe(e){return{name:gl(e.theme,e.slug),title:e.title.rendered,blocks:(0,Woe.parse)(e.content.raw),templatePart:e}}var Ds=r(h());function Yoe({setAttributes:e,onClose:t,templatePartId:o=null,area:a,clientId:n}){let[i,l]=(0,g2.useState)(""),{templateParts:s}=Eg(a,o),c=(0,g2.useMemo)(()=>{let v=s.map(b=>qoe(b));return j1(v,i)},[s,i]),u=Mg(a,n),m=(0,g2.useMemo)(()=>j1(u,i),[u,i]),{createSuccessNotice:p}=(0,Koe.useDispatch)(Zoe.store),d=v=>{e({slug:v.slug,theme:v.theme,area:void 0}),p((0,Ku.sprintf)((0,Ku.__)('Template Part "%s" inserted.'),v.title?.rendered||v.slug),{type:"snackbar"}),t()},f=!!c.length,g=!!m.length;return(0,Ds.jsxs)("div",{className:"block-library-template-part__selection-content",children:[(0,Ds.jsx)("div",{className:"block-library-template-part__selection-search",children:(0,Ds.jsx)(hC.SearchControl,{__nextHasNoMarginBottom:!0,onChange:l,value:i,label:(0,Ku.__)("Search"),placeholder:(0,Ku.__)("Search")})}),f&&(0,Ds.jsxs)("div",{children:[(0,Ds.jsx)("h2",{children:(0,Ku.__)("Existing template parts")}),(0,Ds.jsx)(Qoe.__experimentalBlockPatternsList,{blockPatterns:c,onClickPattern:v=>{d(v.templatePart)}})]}),!f&&!g&&(0,Ds.jsx)(hC.__experimentalHStack,{alignment:"center",children:(0,Ds.jsx)("p",{children:(0,Ku.__)("No results found.")})})]})}var v2=r(Y()),vC=r(L()),Rg=r(B()),rre=r(z()),are=r(S());var Es=r(B()),h2=r(F()),Lg=r(z()),ii=r(L()),zD=r(Y()),tre=r(No());var kn=r(U());function Xoe(e){if(e.id_base!=="block"){let a;return e._embedded.about[0].is_multi?a={idBase:e.id_base,instance:e.instance}:a={id:e.id},Joe((0,kn.createBlock)("core/legacy-widget",a))}let t=(0,kn.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;let o=t[0];return o.name==="core/widget-group"?(0,kn.createBlock)((0,kn.getGroupingBlockName)(),void 0,HD(o.innerBlocks)):o.innerBlocks.length>0?(0,kn.cloneBlock)(o,void 0,HD(o.innerBlocks)):o}function Joe(e){let t=(0,kn.getPossibleBlockTransformations)([e]).filter(o=>{if(!o.transforms)return!0;let a=o.transforms?.from?.find(i=>i.blocks&&i.blocks.includes("*")),n=o.transforms?.to?.find(i=>i.blocks&&i.blocks.includes("*"));return!a&&!n});if(t.length)return(0,kn.switchToBlockType)(e,t[0].name)}function HD(e=[]){return e.flatMap(t=>t.name==="core/legacy-widget"?Joe(t):(0,kn.createBlock)(t.name,t.attributes,HD(t.innerBlocks))).filter(t=>!!t)}var Cc=r(h()),ere={per_page:-1,_fields:"id,name,description,status,widgets"};function ore({area:e,setAttributes:t}){let[o,a]=(0,h2.useState)(""),[n,i]=(0,h2.useState)(!1),l=(0,Lg.useRegistry)(),{sidebars:s,hasResolved:c}=(0,Lg.useSelect)(f=>{let{getSidebars:g,hasFinishedResolution:v}=f(zD.store);return{sidebars:g(ere),hasResolved:v("getSidebars",[ere])}},[]),{createErrorNotice:u}=(0,Lg.useDispatch)(tre.store),m=fC(e,t),p=(0,h2.useMemo)(()=>{let f=(s??[]).filter(g=>g.id!=="wp_inactive_widgets"&&g.widgets.length>0).map(g=>({value:g.id,label:g.name}));return f.length?[{value:"",label:(0,Es.__)("Select widget area")},...f]:[]},[s]);if(!c)return(0,Cc.jsx)(ii.__experimentalSpacer,{marginBottom:"0"});if(c&&!p.length)return null;async function d(f){if(f.preventDefault(),n||!o)return;i(!0);let g=p.find(({value:x})=>x===o),{getWidgets:v}=l.resolveSelect(zD.store),b=await v({sidebar:g.value,_embed:"about"}),y=new Set,_=b.flatMap(x=>{let w=Xoe(x);return w||(y.add(x.id_base),[])});await m(_,(0,Es.sprintf)((0,Es.__)("Widget area: %s"),g.label)),y.size&&u((0,Es.sprintf)((0,Es.__)("Unable to import the following widgets: %s."),Array.from(y).join(", ")),{type:"snackbar"}),i(!1)}return(0,Cc.jsx)(ii.__experimentalSpacer,{marginBottom:"4",children:(0,Cc.jsxs)(ii.__experimentalHStack,{as:"form",onSubmit:d,children:[(0,Cc.jsx)(ii.FlexBlock,{children:(0,Cc.jsx)(ii.SelectControl,{label:(0,Es.__)("Import widget area"),value:o,options:p,onChange:f=>a(f),disabled:!p.length,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),(0,Cc.jsx)(ii.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"},children:(0,Cc.jsx)(ii.Button,{__next40pxDefaultSize:!0,variant:"primary",type:"submit",isBusy:n,"aria-disabled":n||!o,children:(0,Es._x)("Import","button label")})})]})})}var Nl=r(h()),{HTMLElementControl:F2e}=Q(are.privateApis);function nre({tagName:e,setAttributes:t,isEntityAvailable:o,templatePartId:a,defaultWrapper:n,hasInnerBlocks:i,clientId:l}){let[s,c]=(0,v2.useEntityProp)("postType","wp_template_part","area",a),[u,m]=(0,v2.useEntityProp)("postType","wp_template_part","title",a),d=(0,rre.useSelect)(f=>f(v2.store).getCurrentTheme()?.default_template_part_areas||[],[]).map(({label:f,area:g})=>({label:f,value:g}));return(0,Nl.jsxs)(Nl.Fragment,{children:[o&&(0,Nl.jsxs)(Nl.Fragment,{children:[(0,Nl.jsx)(vC.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Rg.__)("Title"),value:u,onChange:f=>{m(f)},onFocus:f=>f.target.select()}),(0,Nl.jsx)(vC.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Rg.__)("Area"),labelPosition:"top",options:d,value:s,onChange:c})]}),(0,Nl.jsx)(F2e,{tagName:e||"",onChange:f=>t({tagName:f}),clientId:l,options:[{label:(0,Rg.sprintf)((0,Rg.__)("Default based on area (%s)"),`<${n}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}]}),!i&&(0,Nl.jsx)(ore,{area:s,setAttributes:t})]})}var Hg=r(Y()),wn=r(S()),b2=r(z()),ire=r(F()),lre=r(U()),bC=r(h());function j2e(e){if((0,wn.useBlockEditingMode)()==="contentOnly")return!1;if(!e)return wn.InnerBlocks.ButtonBlockAppender}function sre(e){let t=(0,b2.useSelect)(a=>{let{getSettings:n}=a(wn.store);return n()?.supportsLayout},[]),[o]=(0,wn.useSettings)("layout");if(t)return e?.inherit?o||{}:e}function O2e({postId:e,layout:t,tagName:o,blockProps:a}){(0,wn.useBlockEditingMode)("disabled");let{content:n,editedBlocks:i}=(0,b2.useSelect)(c=>{if(!e)return{};let{getEditedEntityRecord:u}=c(Hg.store),m=u("postType","wp_template_part",e,{context:"view"});return{editedBlocks:m.blocks,content:m.content}},[e]),l=(0,ire.useMemo)(()=>{if(e)return i||(!n||typeof n!="string"?[]:(0,lre.parse)(n))},[e,i,n]),s=(0,wn.useInnerBlocksProps)(a,{value:l,onInput:()=>{},onChange:()=>{},renderAppender:!1,layout:sre(t)});return(0,bC.jsx)(o,{...s})}function U2e({postId:e,hasInnerBlocks:t,layout:o,tagName:a,blockProps:n}){let i=(0,b2.useSelect)(d=>d(wn.store).getSettings().onNavigateToEntityRecord,[]),[l,s,c]=(0,Hg.useEntityBlockEditor)("postType","wp_template_part",{id:e}),u=(0,wn.useInnerBlocksProps)(n,{value:l,onInput:s,onChange:c,renderAppender:j2e(t),layout:sre(o)}),p=(0,wn.useBlockEditingMode)()==="contentOnly"&&i?{onDoubleClick:()=>i({postId:e,postType:"wp_template_part"})}:{};return(0,bC.jsx)(a,{...u,...p})}function cre({postId:e,hasInnerBlocks:t,layout:o,tagName:a,blockProps:n}){let{canViewTemplatePart:i,canEditTemplatePart:l}=(0,b2.useSelect)(c=>({canViewTemplatePart:!!c(Hg.store).canUser("read",{kind:"postType",name:"wp_template_part",id:e}),canEditTemplatePart:!!c(Hg.store).canUser("update",{kind:"postType",name:"wp_template_part",id:e})}),[e]);return i?(0,bC.jsx)(l?U2e:O2e,{postId:e,hasInnerBlocks:t,layout:o,tagName:a,blockProps:n}):null}var Bt=r(h());function G2e({isEntityAvailable:e,area:t,templatePartId:o,isTemplatePartSelectionOpen:a,setIsTemplatePartSelectionOpen:n}){let{templateParts:i}=Eg(t,o),l=!!i.length;return e&&l&&(t==="header"||t==="footer")?(0,Bt.jsx)(Ms.MenuItem,{onClick:()=>{n(!0)},"aria-expanded":a,"aria-haspopup":"dialog",children:(0,Cn.__)("Replace")}):null}function $2e({area:e,clientId:t,isEntityAvailable:o,onSelect:a}){let n=Mg(e,t);return o&&!!n.length&&(e==="header"||e==="footer")?(0,Bt.jsx)(Ms.PanelBody,{title:(0,Cn.__)("Design"),children:(0,Bt.jsx)(Vo.__experimentalBlockPatternsList,{label:(0,Cn.__)("Templates"),blockPatterns:n,onClickPattern:a,showTitlesAsTooltip:!0})}):null}function dre({attributes:e,setAttributes:t,clientId:o}){let{createSuccessNotice:a}=(0,zg.useDispatch)(pre.store),{editEntityRecord:n}=(0,zg.useDispatch)(y2.store),i=(0,zg.useSelect)(H=>H(y2.store).getCurrentTheme()?.stylesheet,[]),{slug:l,theme:s=i,tagName:c,layout:u={}}=e,m=gl(s,l),p=(0,Vo.useHasRecursion)(m),[d,f]=(0,mre.useState)(!1),{isResolved:g,hasInnerBlocks:v,isMissing:b,area:y,onNavigateToEntityRecord:_,title:x,canUserEdit:w}=(0,zg.useSelect)(H=>{let{getEditedEntityRecord:O,hasFinishedResolution:A}=H(y2.store),{getBlockCount:I,getSettings:V}=H(Vo.store),W=["postType","wp_template_part",m],j=m?O(...W):null,K=j?.area||e.area,Z=m?A("getEditedEntityRecord",W):!1,te=Z?H(y2.store).canUser("update",{kind:"postType",name:"wp_template_part",id:m}):!1;return{hasInnerBlocks:I(o)>0,isResolved:Z,isMissing:Z&&(!j||Object.keys(j).length===0),area:K,onNavigateToEntityRecord:V().onNavigateToEntityRecord,title:j?.title,canUserEdit:!!te}},[m,e.area,o]),C=gC(y),T=(0,Vo.useBlockProps)(),N=!l,P=!N&&!b&&g,M=c||C.tagName,R=async H=>{await n("postType","wp_template_part",m,{blocks:H.blocks,content:(0,ure.serialize)(H.blocks)}),a((0,Cn.sprintf)((0,Cn.__)('Template Part "%s" updated.'),x||l),{type:"snackbar"})};return!v&&(l&&!s||l&&b)?(0,Bt.jsx)(M,{...T,children:(0,Bt.jsx)(Vo.Warning,{children:(0,Cn.sprintf)((0,Cn.__)("Template part has been deleted or is unavailable: %s"),l)})}):P&&p?(0,Bt.jsx)(M,{...T,children:(0,Bt.jsx)(Vo.Warning,{children:(0,Cn.__)("Block cannot be rendered inside itself.")})}):(0,Bt.jsxs)(Bt.Fragment,{children:[(0,Bt.jsxs)(Vo.RecursionProvider,{uniqueId:m,children:[P&&_&&w&&(0,Bt.jsx)(Vo.BlockControls,{group:"other",children:(0,Bt.jsx)(Ms.ToolbarButton,{onClick:()=>{_({postId:m,postType:"wp_template_part"})},children:window?.__experimentalContentOnlyPatternInsertion?(0,Cn.__)("Edit section"):(0,Cn.__)("Edit")})}),w&&(0,Bt.jsx)(Vo.InspectorControls,{group:"advanced",children:(0,Bt.jsx)(nre,{tagName:c,setAttributes:t,isEntityAvailable:P,templatePartId:m,defaultWrapper:C.tagName,hasInnerBlocks:v,clientId:o})}),N&&(0,Bt.jsx)(M,{...T,children:(0,Bt.jsx)($oe,{area:e.area,templatePartId:m,clientId:o,setAttributes:t,onOpenSelectionModal:()=>f(!0)})}),(0,Bt.jsx)(Vo.BlockSettingsMenuControls,{children:({selectedClientIds:H})=>H.length===1&&o===H[0]?(0,Bt.jsx)(G2e,{isEntityAvailable:P,area:y,clientId:o,templatePartId:m,isTemplatePartSelectionOpen:d,setIsTemplatePartSelectionOpen:f}):null}),(0,Bt.jsx)(Vo.InspectorControls,{children:(0,Bt.jsx)($2e,{area:y,clientId:o,isEntityAvailable:P,onSelect:H=>R(H)})}),P&&(0,Bt.jsx)(cre,{tagName:M,blockProps:T,postId:m,hasInnerBlocks:v,layout:u}),!N&&!g&&(0,Bt.jsx)(M,{...T,children:(0,Bt.jsx)(Ms.Spinner,{})})]}),d&&(0,Bt.jsx)(Ms.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,Cn.sprintf)((0,Cn.__)("Choose a %s"),C.label.toLowerCase()),onRequestClose:()=>f(!1),isFullScreen:!0,children:(0,Bt.jsx)(Yoe,{templatePartId:m,clientId:o,area:y,setAttributes:t,onClose:()=>f(!1)})})]})}var fre=r(Y()),gre=r(z());function hre(e,t){if(t!=="core/template-part")return e;if(e.variations){let o=(n,i)=>{let{area:l,theme:s,slug:c}=n;if(l)return l===i.area;if(!c)return!1;let{getCurrentTheme:u,getEntityRecord:m}=(0,gre.select)(fre.store),p=m("postType","wp_template_part",`${s||u()?.stylesheet}//${c}`);return p?.slug?p.slug===i.slug:p?.area===i.area},a=e.variations.map(n=>({...n,...!n.isActive&&{isActive:o},...typeof n.icon=="string"&&{icon:Mf(n.icon)}}));return{...e,variations:a}}return e}var{name:_re}=pC,xre={icon:Zh,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;let{getCurrentTheme:o,getEditedEntityRecord:a}=(0,bre.select)(vre.store),n=a("postType","wp_template_part",(t||o()?.stylesheet)+"//"+e);if(n)return(0,yre.decodeEntities)(n.title)||Loe(n.slug||"")},edit:dre},W2e=()=>{(0,AD.addFilter)("blocks.registerBlockType","core/template-part",hre);let e=["core/post-template","core/post-content"];return(0,AD.addFilter)("blockEditor.__unstableCanInsertBlockType","core/block-library/removeTemplatePartsFromPostTemplates",(t,o,a,{getBlock:n,getBlockParentsByBlockName:i})=>{if(o.name!=="core/template-part")return t;for(let l of e)if(n(a)?.name===l||i(a,l).length)return!1;return!0}),D({name:_re,metadata:pC,settings:xre})};var UD={};$(UD,{init:()=>K2e,metadata:()=>yC,name:()=>Nre,settings:()=>Ire});var yC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-count",title:"Term Count",category:"theme",description:"Displays the post count of a taxonomy term.",textdomain:"default",usesContext:["termId","taxonomy"],attributes:{bracketType:{type:"string",enum:["none","round","square","curly","angle"],default:"round"}},supports:{html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-count"};var Xp=r(B()),_C=r(S()),Bre=r(L());var Ri=r(L()),Il=r(h()),FD=(0,Il.jsx)(Ri.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Il.jsx)(Ri.Path,{d:"M 10 6 L 9.609375 9 L 7 9 L 7 10.5 L 9.4121094 10.5 L 9.0878906 13 L 7 13 L 7 14.5 L 8.890625 14.5 L 8.5 17.5 L 10 17.5 L 10.390625 14.5 L 12.890625 14.5 L 12.5 17.5 L 14 17.5 L 14.390625 14.5 L 17 14.5 L 17 13 L 14.587891 13 L 14.912109 10.5 L 17 10.5 L 17 9 L 15.109375 9 L 15.5 6 L 14 6 L 13.609375 9 L 11.109375 9 L 11.5 6 L 10 6 z M 10.912109 10.5 L 13.412109 10.5 L 13.087891 13 L 10.587891 13 L 10.912109 10.5 z"})}),kre=(0,Il.jsx)(Ri.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Il.jsx)(Ri.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,3 c 0,0 1.5,4.004036 1.5,9 0,4.995964 -1.5,9 -1.5,9 H 20 c 0,0 1.5,-4.004036 1.5,-9 C 21.5,7.004036 20,3 20,3 Z M 5.5,21 C 5.5,21 4,16.995964 4,12 4,7.0040356 5.5,3 5.5,3 H 4 c 0,0 -1.5,4.004036 -1.5,9 0,4.995964 1.5,9 1.5,9 z"})}),wre=(0,Il.jsx)(Ri.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Il.jsx)(Ri.Path,{d:"M 21.5,21 V 3 H 18 v 1.5 h 2 v 15 H 18 V 21 Z M 2.5,3 V 21 H 6 V 19.5 H 4 V 4.5 H 6 V 3 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})}),Cre=(0,Il.jsx)(Ri.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Il.jsx)(Ri.Path,{d:"M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z M 18.5,21 c 1.104567,0 2,-0.895433 2,-2 v -4 c 0,-1.104567 0.895433,-2 2,-2 v -2 c -1.104567,0 -2,-0.895433 -2,-2 V 5 c 0,-1.104567 -0.895433,-2 -2,-2 H 17 v 1.5 h 1.5 A 0.5,0.5 0 0 1 19,5 v 5 c 0,1.104567 0.895433,2 2,2 -1.104567,0 -2,0.895433 -2,2 v 5 c 0,0.276142 -0.223858,0.5 -0.5,0.5 H 17 V 21 Z M 5.5,3 c -1.1045668,0 -2,0.8954327 -2,2 v 4 c 0,1.104567 -0.8954332,2 -2,2 v 2 c 1.1045668,0 2,0.895433 2,2 v 4 c 0,1.104567 0.8954332,2 2,2 H 7 V 19.5 H 5.5 A 0.5,0.5 0 0 1 5,19 V 14 C 5,12.895433 4.1045668,12 3,12 4.1045668,12 5,11.104567 5,10 V 5 C 5,4.7238579 5.2238579,4.5 5.5,4.5 H 7 V 3 Z"})}),Sre=(0,Il.jsx)(Ri.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Il.jsx)(Ri.Path,{d:"M 18.970703,16.53125 23.5,12 18.970703,7.46875 17.910156,8.53125 21.378906,12 17.910156,15.46875 Z M 5.0292969,7.46875 0.5,12 5.0292969,16.53125 6.0898438,15.46875 2.6210938,12 6.0898438,8.53125 Z M 10,6 9.609375,9 H 7 v 1.5 H 9.4121094 L 9.0878906,13 H 7 v 1.5 H 8.890625 L 8.5,17.5 H 10 l 0.390625,-3 h 2.5 L 12.5,17.5 H 14 l 0.390625,-3 H 17 V 13 h -2.412109 l 0.324218,-2.5 H 17 V 9 H 15.109375 L 15.5,6 H 14 l -0.390625,3 h -2.5 L 11.5,6 Z m 0.912109,4.5 h 2.5 L 13.087891,13 h -2.5 z"})});var _2=r(Y()),jD=r(z());function Tre(e,t){let[o]=(0,_2.useEntityProp)("taxonomy",t,"count",e),a=Z2e(),n=!!(e&&t);return{hasContext:n,termCount:n?o||"":a}}function Z2e(){let t=(0,jD.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(_2.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),o,a;return t&&(t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],a=t[7]),o=o==="tag"?"post_tag":o),(0,jD.useSelect)(n=>{if(!o||!a)return"";let{getEntityRecords:i}=n(_2.store),l=i("taxonomy",o,{slug:a,per_page:1});return l&&l[0]&&l[0].count||""},[o,a])}var Qu=r(h()),OD={none:{label:(0,Xp.__)("No brackets"),icon:FD},round:{label:(0,Xp.__)("Round brackets"),icon:kre,before:"(",after:")"},square:{label:(0,Xp.__)("Square brackets"),icon:wre,before:"[",after:"]"},curly:{label:(0,Xp.__)("Curly brackets"),icon:Cre,before:"{",after:"}"},angle:{label:(0,Xp.__)("Angle brackets"),icon:Sre,before:"<",after:">"}};function Pre({attributes:e,setAttributes:t,context:{termId:o,taxonomy:a}}){let{bracketType:n}=e,l=Tre(o,a)?.termCount||0,s=(0,_C.useBlockProps)(),c=Object.entries(OD).map(([m,{label:p,icon:d}])=>({role:"menuitemradio",title:p,isActive:n===m,icon:d,onClick:()=>{t({bracketType:m})}})),u=(m,p)=>{let{before:d="",after:f=""}=OD[p]||{};return`${d}${m}${f}`};return(0,Qu.jsxs)(Qu.Fragment,{children:[(0,Qu.jsx)(_C.BlockControls,{group:"block",children:(0,Qu.jsx)(Bre.ToolbarDropdownMenu,{icon:OD[n]?.icon??FD,label:(0,Xp.__)("Change bracket type"),controls:c})}),(0,Qu.jsx)("div",{...s,children:u(l,n)})]})}var{name:Nre}=yC,Ire={icon:A9,example:{},edit:Pre},K2e=()=>D({name:Nre,metadata:yC,settings:Ire});var $D={};$($D,{init:()=>X2e,metadata:()=>xC,name:()=>Lre,settings:()=>Rre});var xC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",usesContext:["termId","taxonomy"],attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!0,color:!0,width:!0,style:!0}}}};var Ere=r(B()),Ag=r(S());var x2=r(Y()),GD=r(z());function Dre(e,t){let[o,a,n]=(0,x2.useEntityProp)("taxonomy",t,"description",e),i=Y2e(),l=!!(e&&t);return{hasContext:l,setDescription:a,termDescription:l?n?.rendered||o||"":i}}function Y2e(){let t=(0,GD.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(x2.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),o,a;return t&&(t[1]?o=t[2]?t[2]:t[1]:t[3]&&(o=t[6]?t[6]:t[4],a=t[7]),o=o==="tag"?"post_tag":o),(0,GD.useSelect)(n=>{if(!o||!a)return"";let{getEntityRecords:i}=n(x2.store),l=i("taxonomy",o,{slug:a,per_page:1});return l&&l[0]&&l[0].description||""},[o,a])}var Dl=r(h());function Mre({attributes:e,setAttributes:t,mergedStyle:o,context:{termId:a,taxonomy:n}}){let{textAlign:i}=e,{termDescription:l}=Dre(a,n),s=(0,Ag.useBlockProps)({className:k({[`has-text-align-${i}`]:i}),style:o});return(0,Dl.jsxs)(Dl.Fragment,{children:[(0,Dl.jsx)(Ag.BlockControls,{group:"block",children:(0,Dl.jsx)(Ag.AlignmentControl,{value:i,onChange:c=>{t({textAlign:c})}})}),(0,Dl.jsx)("div",{...s,children:l?(0,Dl.jsx)("div",{dangerouslySetInnerHTML:{__html:l}}):(0,Dl.jsx)("div",{className:"wp-block-term-description__placeholder",children:(0,Dl.jsx)("span",{children:(0,Ere.__)("Term Description")})})})]})}var{name:Lre}=xC,Rre={icon:F9,edit:Mre,example:{}},X2e=()=>D({name:Lre,metadata:xC,settings:Rre});var WD={};$(WD,{init:()=>tve,metadata:()=>kC,name:()=>Vre,settings:()=>Fre});var kC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-name",title:"Term Name",category:"theme",description:"Displays the name of a taxonomy term.",keywords:["term title"],textdomain:"default",usesContext:["termId","taxonomy"],attributes:{textAlign:{type:"string"},level:{type:"number",default:0},isLink:{type:"boolean",default:!1},levelOptions:{type:"array"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{color:!0,width:!0,style:!0}}},style:"wp-block-term-name"};var k2=r(B()),Ls=r(S()),Vg=r(L()),zre=r(jo());var wC=r(Y()),CC=r(z());function Hre(e,t){let o=(0,CC.useSelect)(i=>!e||!t?null:i(wC.store).getEntityRecord("taxonomy",t,e),[e,t]),a=eve(),n=!!(e&&t);return{hasContext:n,term:n?o:a}}function eve(){let t=(0,CC.useSelect)(n=>{let{getCurrentPostId:i,getCurrentPostType:l,getCurrentTemplateId:s}=n("core/editor"),c=l(),u=s()||(c==="wp_template"?i():null);return u?n(wC.store).getEditedEntityRecord("postType","wp_template",u)?.slug:null},[])?.match(/^(category|tag|taxonomy-([^-]+))$|^(((category|tag)|taxonomy-([^-]+))-(.+))$/),o,a;return t&&(t[3]&&(o=t[6]?t[6]:t[4],a=t[7]),o=o==="tag"?"post_tag":o),(0,CC.useSelect)(n=>{if(!o||!a)return null;let{getEntityRecords:i}=n(wC.store),l=i("taxonomy",o,{slug:a,per_page:1});return l&&l[0]?l[0]:null},[o,a])}var Sn=r(h());function Are({attributes:e,setAttributes:t,context:{termId:o,taxonomy:a}}){let{textAlign:n,level:i=0,isLink:l,levelOptions:s}=e,{term:c}=Hre(o,a),u=c?.name?(0,zre.decodeEntities)(c.name):(0,k2.__)("Term Name"),m=(0,Ls.useBlockProps)({className:k({[`has-text-align-${n}`]:n})}),p=G(),d=i===0?"p":`h${i}`,f=u;return l&&(f=(0,Sn.jsx)("a",{href:"#term-name-pseudo-link",onClick:g=>g.preventDefault(),children:u})),(0,Sn.jsxs)(Sn.Fragment,{children:[(0,Sn.jsxs)(Ls.BlockControls,{group:"block",children:[(0,Sn.jsx)(Ls.HeadingLevelDropdown,{value:i,options:s,onChange:g=>{t({level:g})}}),(0,Sn.jsx)(Ls.AlignmentControl,{value:n,onChange:g=>{t({textAlign:g})}})]}),(0,Sn.jsx)(Ls.InspectorControls,{children:(0,Sn.jsx)(Vg.__experimentalToolsPanel,{label:(0,k2.__)("Settings"),resetAll:()=>{t({isLink:!1})},dropdownMenuProps:p,children:(0,Sn.jsx)(Vg.__experimentalToolsPanelItem,{hasValue:()=>!!l,label:(0,k2.__)("Make term name a link"),onDeselect:()=>t({isLink:!1}),isShownByDefault:!0,children:(0,Sn.jsx)(Vg.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,k2.__)("Make term name a link"),onChange:()=>t({isLink:!l}),checked:l})})})}),(0,Sn.jsx)(d,{...m,children:f})]})}var{name:Vre}=kC,Fre={icon:j9,example:{},edit:Are},tve=()=>D({name:Vre,metadata:kC,settings:Fre});var XD={};$(XD,{init:()=>cve,metadata:()=>SC,name:()=>Bae,settings:()=>Pae});var SC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/terms-query",title:"Terms Query",category:"theme",description:"An advanced block that allows displaying taxonomy terms based on different query parameters and visual configurations.",keywords:["terms","taxonomy","categories","tags","list"],textdomain:"default",attributes:{termQuery:{type:"object",default:{perPage:10,taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1}},tagName:{type:"string",default:"div"}},usesContext:["templateSlug"],providesContext:{termQuery:"termQuery"},supports:{align:["wide","full"],html:!1,layout:!0,interactivity:!0}};var yae=r(z()),_ae=r(S());var hae=r(F()),PC=r(S());var El=r(B()),Rs=r(L()),fae=r(S());var jre=r(Y()),Ore=r(z()),Ure=r(F());function TC(){let e=(0,Ore.useSelect)(t=>t(jre.store).getTaxonomies({per_page:-1}),[]);return(0,Ure.useMemo)(()=>e?.filter(({visibility:t})=>t?.publicly_queryable)||[],[e])}var Gre=r(L());var $re=r(h());function Wre({value:e,onChange:t,...o}){let n=TC().map(i=>({label:i.name,value:i.slug}));return(0,$re.jsx)(Gre.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:n,value:e,onChange:t,...o})}var w2=r(B()),qre=r(L()),Zre=r(h());function Kre({orderBy:e,order:t,onChange:o,...a}){return(0,Zre.jsx)(qre.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,options:[{label:(0,w2.__)("Name: A \u2192 Z"),value:"name/asc"},{label:(0,w2.__)("Name: Z \u2192 A"),value:"name/desc"},{label:(0,w2.__)("Count, high to low"),value:"count/desc"},{label:(0,w2.__)("Count, low to high"),value:"count/asc"}],value:e+"/"+t,onChange:n=>{let[i,l]=n.split("/");o(i,l)},...a})}var Qre=r(L()),Yre=r(h());function Xre({value:e,onChange:t,...o}){return(0,Yre.jsx)(Qre.ToggleControl,{__nextHasNoMarginBottom:!0,checked:!e,onChange:a=>t(!a),...o})}var Jre=r(L()),eae=r(h());function tae({value:e,onChange:t,...o}){return(0,eae.jsx)(Jre.ToggleControl,{__nextHasNoMarginBottom:!0,checked:e,onChange:t,...o})}var S2=r(L()),C2=r(B()),T2=r(h());function oae({value:e,onChange:t,label:o}){return(0,T2.jsxs)(S2.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:o,isBlock:!0,onChange:a=>{t({inherit:a==="default"})},help:e?(0,C2.__)("Display terms based on the current taxonomy archive. For hierarchical taxonomies, shows children of the current term. For non-hierarchical taxonomies, shows all terms."):(0,C2.__)("Display terms based on specific criteria."),value:e?"default":"custom",children:[(0,T2.jsx)(S2.__experimentalToggleGroupControlOption,{value:"default",label:(0,C2.__)("Default")}),(0,T2.jsx)(S2.__experimentalToggleGroupControlOption,{value:"custom",label:(0,C2.__)("Custom")})]})}var rae=r(B()),aae=r(L()),nae=r(h());function iae({value:e,onChange:t,...o}){return(0,nae.jsx)(aae.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:e,min:0,max:100,onChange:t,help:(0,rae.__)("Limit the number of terms you want to show. To show all terms, use 0 (zero)."),...o})}var lae=r(B()),BC=r(S());var qD=r(h()),{HTMLElementControl:rve}=Q(BC.privateApis);function sae({TagName:e,setAttributes:t,clientId:o}){return(0,qD.jsx)(BC.InspectorControls,{group:"advanced",children:(0,qD.jsx)(rve,{tagName:e,onChange:a=>t({tagName:a}),clientId:o,options:[{label:(0,lae.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}]})})}var uae=r(L()),ZD=r(z()),KD=r(Y()),Sc=r(F()),mae=r(xe()),QD=r(jo()),pae=r(h()),Jp=[],cae={order:"asc",_fields:"id,name",context:"view"};function dae({value:e,taxonomy:t,onChange:o,...a}){let[n,i]=(0,Sc.useState)(""),[l,s]=(0,Sc.useState)(Jp),[c,u]=(0,Sc.useState)(Jp),m=(0,mae.useDebounce)(i,250),{searchResults:p,searchHasResolved:d}=(0,ZD.useSelect)(y=>{if(!n)return{searchResults:Jp,searchHasResolved:!0};let{getEntityRecords:_,hasFinishedResolution:x}=y(KD.store),w=["taxonomy",t,{...cae,search:n,orderby:"name",exclude:e,per_page:20}];return{searchResults:_(...w),searchHasResolved:x("getEntityRecords",w)}},[n,t,e]),f=(0,ZD.useSelect)(y=>{if(!e?.length)return Jp;let{getEntityRecords:_}=y(KD.store);return _("taxonomy",t,{...cae,include:e,per_page:e.length})},[e,t]);(0,Sc.useEffect)(()=>{if(e?.length||s(Jp),!f?.length)return;let y=e.reduce((_,x)=>{let w=f.find(C=>C.id===x);return w&&_.push({id:x,value:(0,QD.decodeEntities)(w.name)}),_},[]);s(y)},[e,f]);let g=(0,Sc.useMemo)(()=>{if(!p?.length)return{names:Jp,mapByName:{}};let y=[],_={};return p.forEach(x=>{let w=(0,QD.decodeEntities)(x.name);y.push(w),_[w]=x}),{names:y,mapByName:_}},[p]);(0,Sc.useEffect)(()=>{d&&u(g.names)},[g.names,d]);let v=(y,_)=>_?.id||y?.[_]?.id;return(0,pae.jsx)(uae.FormTokenField,{__next40pxDefaultSize:!0,value:l,onInputChange:m,suggestions:c,onChange:y=>{let _=Array.from(y.reduce((x,w)=>{let C=v(g.mapByName,w);return C&&x.add(C),x},new Set));u(Jp),o(_)},__experimentalShowHowTo:!1,...a})}var yo=r(h());function gae({attributes:e,setQuery:t,setAttributes:o,clientId:a,templateSlug:n}){let{termQuery:i,tagName:l}=e,{taxonomy:s,orderBy:c,order:u,hideEmpty:m,inherit:p,showNested:d,perPage:f,include:g}=i,v=G(),y=TC().find(A=>A.slug===s)?.hierarchical,_=!!p,x=["taxonomy","category","tag","archive"].includes(n)||n?.startsWith("taxonomy-")||n?.startsWith("category-")||n?.startsWith("tag-"),w=y,C=!!g?.length,T=(0,El.__)("Query type"),N=(0,El.__)("Taxonomy"),P=(0,El.__)("Order by"),M=(0,El.__)("Show empty terms"),R=(0,El.__)("Show nested terms"),H=(0,El.__)("Max terms"),O=(0,El.__)("Selected terms");return(0,yo.jsxs)(yo.Fragment,{children:[(0,yo.jsx)(fae.InspectorControls,{children:(0,yo.jsxs)(Rs.__experimentalToolsPanel,{label:(0,El.__)("Settings"),resetAll:()=>{o({termQuery:{taxonomy:"category",order:"asc",orderBy:"name",include:[],hideEmpty:!0,showNested:!1,inherit:!1,perPage:10}})},dropdownMenuProps:v,children:[x&&(0,yo.jsx)(Rs.__experimentalToolsPanelItem,{hasValue:()=>p!==!1,label:T,onDeselect:()=>t({inherit:!1}),isShownByDefault:!0,children:(0,yo.jsx)(oae,{label:T,value:p,onChange:t})}),!_&&(0,yo.jsx)(Rs.__experimentalToolsPanelItem,{hasValue:()=>s!=="category",label:N,onDeselect:()=>{t({taxonomy:"category"})},isShownByDefault:!0,children:(0,yo.jsx)(Wre,{label:N,value:s,onChange:A=>t({taxonomy:A,include:[]})})}),(0,yo.jsx)(Rs.__experimentalToolsPanelItem,{hasValue:()=>c!=="name"||u!=="asc",label:P,onDeselect:()=>t({orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,yo.jsx)(Kre,{label:P,orderBy:c,order:u,onChange:(A,I)=>{t({orderBy:A,order:I})},disabled:C,help:C?(0,El.__)("When specific terms are selected, the order is based on their selection order."):void 0})}),!_&&(0,yo.jsx)(Rs.__experimentalToolsPanelItem,{hasValue:()=>!!g?.length,label:O,onDeselect:()=>t({include:[],orderBy:"name",order:"asc"}),isShownByDefault:!0,children:(0,yo.jsx)(dae,{label:O,taxonomy:s,value:g,onChange:A=>t({include:A})})}),(0,yo.jsx)(Rs.__experimentalToolsPanelItem,{hasValue:()=>m!==!0,label:M,onDeselect:()=>t({hideEmpty:!0}),isShownByDefault:!0,children:(0,yo.jsx)(Xre,{label:M,value:m,onChange:A=>t({hideEmpty:A})})}),w&&(0,yo.jsx)(Rs.__experimentalToolsPanelItem,{hasValue:()=>d!==!1,label:R,onDeselect:()=>t({showNested:!1}),isShownByDefault:!0,children:(0,yo.jsx)(tae,{label:R,value:d,onChange:A=>t({showNested:A}),disabled:C,help:C?(0,El.__)("When specific terms are selected, only those are displayed."):void 0})}),(0,yo.jsx)(Rs.__experimentalToolsPanelItem,{hasValue:()=>f!==10,label:H,onDeselect:()=>t({perPage:10}),isShownByDefault:!0,children:(0,yo.jsx)(iae,{label:H,value:f,onChange:A=>t({perPage:A})})})]})}),(0,yo.jsx)(sae,{TagName:l,setAttributes:o,clientId:a})]})}var ed=r(h()),ave=[["core/term-template"]];function vae({attributes:e,setAttributes:t,clientId:o,context:a}){let{tagName:n}=e,i=(0,PC.useBlockProps)(),l=(0,PC.useInnerBlocksProps)(i,{template:ave}),s=(0,hae.useCallback)(c=>t(u=>({termQuery:{...u.termQuery,...c}})),[t]);return(0,ed.jsxs)(ed.Fragment,{children:[(0,ed.jsx)(gae,{attributes:e,setQuery:s,setAttributes:t,clientId:o,templateSlug:a?.templateSlug}),(0,ed.jsx)(n,{...l})]})}var NC=r(z()),IC=r(U()),Fg=r(S()),YD=r(h());function bae({attributes:e,clientId:t,name:o}){let{blockType:a,activeBlockVariation:n,scopeVariations:i}=(0,NC.useSelect)(m=>{let{getActiveBlockVariation:p,getBlockType:d,getBlockVariations:f}=m(IC.store);return{blockType:d(o),activeBlockVariation:p(o,e),scopeVariations:f(o,"block")}},[o,e]),l=n?.icon?.src||n?.icon||a?.icon?.src,s=n?.title||a?.title,{replaceInnerBlocks:c}=(0,NC.useDispatch)(Fg.store),u=(0,Fg.useBlockProps)();return(0,YD.jsx)("div",{...u,children:(0,YD.jsx)(Fg.__experimentalBlockVariationPicker,{icon:l,label:s,variations:i,onSelect:m=>{m.innerBlocks&&c(t,(0,IC.createBlocksFromInnerBlocksTemplate)(m.innerBlocks),!1)}})})}var xae=r(h()),nve=e=>{let o=(0,yae.useSelect)(a=>!!a(_ae.store).getBlocks(e.clientId).length,[e.clientId])?vae:bae;return(0,xae.jsx)(o,{...e})},kae=nve;var DC=r(S()),wae=r(h());function Cae({attributes:{tagName:e="div"}}){let t=DC.useBlockProps.save(),o=DC.useInnerBlocksProps.save(t);return(0,wae.jsx)(e,{...o})}var B2=r(B()),jg=r(L()),P2=r(h()),ive=(0,P2.jsx)(jg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,P2.jsx)(jg.Path,{d:"M 41,9 H 7 v 3 h 34 z m 0,9 H 7 v 3 h 34 z m 0,18 H 7 v 3 h 34 z m 0,-9 H 7 v 3 h 34 z"})}),lve=(0,P2.jsx)(jg.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:(0,P2.jsx)(jg.Path,{d:"m 36,36 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 H 36 Z M 31,9 H 7 v 3 h 24 z m 0,9 H 7 v 3 h 24 z m 0,18 H 7 v 3 h 24 z m 0,-9 H 7 v 3 h 24 z"})}),Sae=["core/term-name",{isLink:!0}],sve=[{name:"name",title:(0,B2.__)("Name"),description:(0,B2.__)("Display the terms' names."),attributes:{},icon:ive,scope:["block"],innerBlocks:[["core/term-template",{},[Sae]]]},{name:"name-count",title:(0,B2.__)("Name & Count"),description:(0,B2.__)("Display the terms' names and number of posts assigned to each term."),attributes:{},icon:lve,scope:["block"],innerBlocks:[["core/term-template",{},[["core/group",{layout:{type:"flex",flexWrap:"nowrap"}},[Sae,["core/term-count"]]]]]]}],Tae=sve;var{name:Bae}=SC,Pae={icon:ym,edit:kae,save:Cae,example:{},variations:Tae},cve=()=>D({name:Bae,metadata:SC,settings:Pae});var JD={};$(JD,{init:()=>gve,metadata:()=>EC,name:()=>Hae,settings:()=>zae});var EC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-template",title:"Term Template",category:"theme",ancestor:["core/terms-query"],description:"Contains the block elements used to render a taxonomy term, like the name, description, and more.",textdomain:"default",usesContext:["termQuery"],supports:{reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0,padding:!1,margin:!1}},interactivity:{clientNavigation:!0},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0}},style:"wp-block-term-template",editorStyle:"wp-block-term-template-editor"};var Nae=r(L());var Og=r(F()),Iae=r(z()),N2=r(B()),Hi=r(S()),Dae=r(Y()),Or=r(h()),mve=[["core/term-name"]];function pve({classList:e}){let t=(0,Hi.useInnerBlocksProps)({className:k("wp-block-term",e)},{template:mve,__unstableDisableLayoutClassNames:!0});return(0,Or.jsx)("li",{...t})}function dve({blocks:e,blockContextId:t,classList:o,isHidden:a,setActiveBlockContextId:n}){let i=(0,Hi.__experimentalUseBlockPreview)({blocks:e,props:{className:k("wp-block-term",o)}}),l=()=>{n(t)};return(0,Or.jsx)("li",{...i,tabIndex:0,role:"button",onClick:l,onKeyPress:l,style:{display:a?"none":void 0}})}var fve=(0,Og.memo)(dve);function Eae({clientId:e,attributes:{layout:t},setAttributes:o,context:{termQuery:{taxonomy:a,order:n,orderBy:i,hideEmpty:l,showNested:s=!1,perPage:c,include:u}={}},__unstableLayoutClassNames:m}){let{type:p,columnCount:d=3}=t||{},[f,g]=(0,Og.useState)(),v={hide_empty:l,order:n,orderby:i,per_page:c||-1};!s&&!u?.length&&(v.parent=0),u?.length&&(v.include=u,v.orderby="include",v.order="asc");let{records:b}=(0,Dae.useEntityRecords)("taxonomy",a,v),y=(0,Iae.useSelect)(C=>C(Hi.store).getBlocks(e),[e]),_=(0,Hi.useBlockProps)({className:m}),x=(0,Og.useMemo)(()=>b?.map(C=>({taxonomy:a,termId:C.id,classList:`term-${C.id}`,termData:C})),[b,a]);if(!b)return(0,Or.jsx)("ul",{..._,children:(0,Or.jsx)("li",{className:"wp-block-term term-loading",children:(0,Or.jsx)("div",{className:"term-loading-placeholder"})})});if(!b.length)return(0,Or.jsxs)("p",{..._,children:[" ",(0,N2.__)("No terms found.")]});let w=C=>o(T=>({layout:{...T.layout,...C}}));return(0,Or.jsxs)(Or.Fragment,{children:[(0,Or.jsx)(Hi.BlockControls,{children:(0,Or.jsx)(Nae.ToolbarGroup,{controls:[{icon:ji,title:(0,N2._x)("List view","Term template block display setting"),onClick:()=>w({type:"default"}),isActive:p==="default"||p==="constrained"},{icon:Fi,title:(0,N2._x)("Grid view","Term template block display setting"),onClick:()=>w({type:"grid",columnCount:d}),isActive:p==="grid"}]})}),(0,Or.jsx)("ul",{..._,children:x?.map(C=>(0,Or.jsxs)(Hi.BlockContextProvider,{value:C,children:[C.termId===(f||x[0]?.termId)?(0,Or.jsx)(pve,{classList:C.classList}):null,(0,Or.jsx)(fve,{blocks:y,blockContextId:C.termId,classList:C.classList,setActiveBlockContextId:g,isHidden:C.termId===(f||x[0]?.termId)})]},C.termId))})]})}var Mae=r(S()),Lae=r(h());function Rae(){return(0,Lae.jsx)(Mae.InnerBlocks.Content,{})}var{name:Hae}=EC,zae={icon:vm,edit:Eae,save:Rae,example:{}},gve=()=>D({name:Hae,metadata:EC,settings:zae});var eE={};$(eE,{init:()=>bve,metadata:()=>LC,name:()=>Oae,settings:()=>Uae});var Ug=r(B()),MC=r(L()),Hs=r(S()),Aae=r(wd()),li=r(h());function Vae({attributes:e,setAttributes:t}){let{width:o,content:a,columns:n}=e;return(0,Aae.default)("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,li.jsxs)(li.Fragment,{children:[(0,li.jsx)(Hs.BlockControls,{children:(0,li.jsx)(Hs.BlockAlignmentToolbar,{value:o,onChange:i=>t({width:i}),controls:["center","wide","full"]})}),(0,li.jsx)(Hs.InspectorControls,{children:(0,li.jsx)(MC.PanelBody,{children:(0,li.jsx)(MC.RangeControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,Ug.__)("Columns"),value:n,onChange:i=>t({columns:i}),min:2,max:4,required:!0})})}),(0,li.jsx)("div",{...(0,Hs.useBlockProps)({className:`align${o} columns-${n}`}),children:Array.from({length:n}).map((i,l)=>(0,li.jsx)("div",{className:"wp-block-column",children:(0,li.jsx)(Hs.RichText,{tagName:"p",value:a?.[l]?.children,onChange:s=>{t({content:[...a.slice(0,l),{children:s},...a.slice(l+1)]})},"aria-label":(0,Ug.sprintf)((0,Ug.__)("Column %d text"),l+1),placeholder:(0,Ug.__)("New Column")})},`column-${l}`))})]})}var LC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1,interactivity:{clientNavigation:!0}},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"};var HC=r(S()),RC=r(h());function Fae({attributes:e}){let{width:t,content:o,columns:a}=e;return(0,RC.jsx)("div",{...HC.useBlockProps.save({className:`align${t} columns-${a}`}),children:Array.from({length:a}).map((n,i)=>(0,RC.jsx)("div",{className:"wp-block-column",children:(0,RC.jsx)(HC.RichText.Content,{tagName:"p",value:o?.[i]?.children})},`column-${i}`))})}var zC=r(U()),vve={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:o,width:a})=>(0,zC.createBlock)("core/columns",{align:a==="wide"||a==="full"?a:void 0,className:e,columns:t},o.map(({children:n})=>(0,zC.createBlock)("core/column",{},[(0,zC.createBlock)("core/paragraph",{content:n})])))}]},jae=vve;var{name:Oae}=LC,Uae={transforms:jae,getEditWrapperProps(e){let{width:t}=e;if(t==="wide"||t==="full")return{"data-align":t}},edit:Vae,save:Fae},bve=()=>D({name:Oae,metadata:LC,settings:Uae});var nE={};$(nE,{init:()=>Sve,metadata:()=>FC,name:()=>Kae,settings:()=>OC});var aE=r(B());var Zae=r(U());var I2=r(S());var AC=r(h()),yve={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){let{textAlign:t,content:o}=e;return(0,AC.jsx)(I2.RichText.Content,{tagName:"pre",style:{textAlign:t},value:o})}},_ve={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){let{textAlign:t,content:o}=e,a=k({[`has-text-align-${t}`]:t});return(0,AC.jsx)("pre",{...I2.useBlockProps.save({className:a}),children:(0,AC.jsx)(I2.RichText.Content,{value:o})})},migrate:Nt,isEligible({style:e}){return e?.typography?.fontFamily}},Gae=[_ve,yve];var tE=r(B()),Xu=r(S()),VC=r(U()),Yu=r(h());function $ae({attributes:e,setAttributes:t,mergeBlocks:o,onRemove:a,insertBlocksAfter:n,style:i}){let{textAlign:l,content:s}=e,c=(0,Xu.useBlockProps)({className:k({[`has-text-align-${l}`]:l}),style:i});return(0,Yu.jsxs)(Yu.Fragment,{children:[(0,Yu.jsx)(Xu.BlockControls,{children:(0,Yu.jsx)(Xu.AlignmentToolbar,{value:l,onChange:u=>{t({textAlign:u})}})}),(0,Yu.jsx)(Xu.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:s,onChange:u=>{t({content:u})},"aria-label":(0,tE.__)("Verse text"),placeholder:(0,tE.__)("Write verse\u2026"),onRemove:a,onMerge:o,textAlign:l,...c,__unstablePastePlainText:!0,__unstableOnSplitAtDoubleLineEnd:()=>n((0,VC.createBlock)((0,VC.getDefaultBlockName)()))})]})}var FC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"rich-text",source:"rich-text",selector:"pre",__unstablePreserveWhiteSpace:!0,role:"content"},textAlign:{type:"string"}},supports:{anchor:!0,background:{backgroundImage:!0,backgroundSize:!0,__experimentalDefaultControls:{backgroundImage:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},dimensions:{minHeight:!0,__experimentalDefaultControls:{minHeight:!1}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},interactivity:{clientNavigation:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"};var jC=r(S()),oE=r(h());function Wae({attributes:e}){let{textAlign:t,content:o}=e,a=k({[`has-text-align-${t}`]:t});return(0,oE.jsx)("pre",{...jC.useBlockProps.save({className:a}),children:(0,oE.jsx)(jC.RichText.Content,{value:o})})}var rE=r(U()),kve={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,rE.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,rE.createBlock)("core/paragraph",e)}]},qae=kve;var{fieldsKey:wve,formKey:Cve}=Q(Zae.privateApis),{name:Kae}=FC,OC={icon:a0,example:{attributes:{content:(0,aE.__)(`WHAT was he doing, the great god Pan, |
| 41 |
Down in the reeds by the river? |
| 42 |
Spreading ruin and scattering ban, |
| 43 |
Splashing and paddling with hoofs of a goat, |
| 44 |
And breaking the golden lilies afloat |
| 45 |
With the dragon-fly on the river.`)}},transforms:qae,deprecated:Gae,merge(e,t){return{content:e.content+` |
| 46 |
|
| 47 |
`+t.content}},edit:$ae,save:Wae};window.__experimentalContentOnlyInspectorFields&&(OC[wve]=[{id:"content",label:(0,aE.__)("Content"),type:"richtext"}],OC[Cve]={fields:["content"]});var Sve=()=>D({name:Kae,metadata:FC,settings:OC});var sE={};$(sE,{init:()=>jve,metadata:()=>Gg,name:()=>mne,settings:()=>$C});var GC=r(B());var une=r(U());var D2=r(S());var Gg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"rich-text",source:"rich-text",selector:"figcaption",role:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",role:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},blob:{type:"string",role:"local"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",role:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{role:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},interactivity:{clientNavigation:!0}},editorStyle:"wp-block-video-editor",style:"wp-block-video"};var Qae=r(h());function $g({tracks:e=[]}){return e.map(t=>{let{id:o,...a}=t;return(0,Qae.jsx)("track",{...a},o??a.src)})}var Wg=r(h()),{attributes:Bve}=Gg,Pve={attributes:Bve,save({attributes:e}){let{autoplay:t,caption:o,controls:a,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,Wg.jsxs)("figure",{...D2.useBlockProps.save(),children:[c&&(0,Wg.jsx)("video",{autoPlay:t,controls:a,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,Wg.jsx)($g,{tracks:m})}),!D2.RichText.isEmpty(o)&&(0,Wg.jsx)(D2.RichText.Content,{tagName:"figcaption",value:o})]})}},Nve=[Pve],Yae=Nve;var ane=r(Po()),Ju=r(L()),Fa=r(S()),Zg=r(F()),E2=r(B()),nne=r(z());var ine=r(No());var Bo=r(B()),Va=r(L()),td=r(F()),Ur=r(h()),Ive=[{value:"auto",label:(0,Bo.__)("Auto")},{value:"metadata",label:(0,Bo.__)("Metadata")},{value:"none",label:(0,Bo._x)("None","Preload value")}],Dve=({setAttributes:e,attributes:t})=>{let{autoplay:o,controls:a,loop:n,muted:i,playsInline:l,preload:s}=t,c=(0,Bo.__)("Autoplay may cause usability issues for some users."),u=td.Platform.select({web:(0,td.useCallback)(d=>d?c:null,[]),native:c}),m=(0,td.useMemo)(()=>{let d=f=>g=>{e({[f]:g,...f==="autoplay"&&{muted:g,playsInline:g}})};return{autoplay:d("autoplay"),loop:d("loop"),muted:d("muted"),controls:d("controls"),playsInline:d("playsInline")}},[]),p=(0,td.useCallback)(d=>{e({preload:d})},[]);return(0,Ur.jsxs)(Ur.Fragment,{children:[(0,Ur.jsx)(Va.__experimentalToolsPanelItem,{label:(0,Bo.__)("Autoplay"),isShownByDefault:!0,hasValue:()=>!!o,onDeselect:()=>{e({autoplay:!1,muted:!1})},children:(0,Ur.jsx)(Va.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Bo.__)("Autoplay"),onChange:m.autoplay,checked:!!o,help:u})}),(0,Ur.jsx)(Va.__experimentalToolsPanelItem,{label:(0,Bo.__)("Loop"),isShownByDefault:!0,hasValue:()=>!!n,onDeselect:()=>{e({loop:!1})},children:(0,Ur.jsx)(Va.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Bo.__)("Loop"),onChange:m.loop,checked:!!n})}),(0,Ur.jsx)(Va.__experimentalToolsPanelItem,{label:(0,Bo.__)("Muted"),isShownByDefault:!0,hasValue:()=>!!i,onDeselect:()=>{e({muted:!1})},children:(0,Ur.jsx)(Va.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Bo.__)("Muted"),onChange:m.muted,checked:!!i,disabled:o,help:o?(0,Bo.__)("Muted because of Autoplay."):null})}),(0,Ur.jsx)(Va.__experimentalToolsPanelItem,{label:(0,Bo.__)("Playback controls"),isShownByDefault:!0,hasValue:()=>!a,onDeselect:()=>{e({controls:!0})},children:(0,Ur.jsx)(Va.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Bo.__)("Playback controls"),onChange:m.controls,checked:!!a})}),(0,Ur.jsx)(Va.__experimentalToolsPanelItem,{label:(0,Bo.__)("Play inline"),isShownByDefault:!0,hasValue:()=>!!l,onDeselect:()=>{e({playsInline:!1})},children:(0,Ur.jsx)(Va.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Bo.__)("Play inline"),onChange:m.playsInline,checked:!!l,disabled:o,help:o?(0,Bo.__)("Play inline enabled because of Autoplay."):(0,Bo.__)("When enabled, videos will play directly within the webpage on mobile browsers, instead of opening in a fullscreen player.")})}),(0,Ur.jsx)(Va.__experimentalToolsPanelItem,{label:(0,Bo.__)("Preload"),isShownByDefault:!0,hasValue:()=>s!=="metadata",onDeselect:()=>{e({preload:"metadata"})},children:(0,Ur.jsx)(Va.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,Bo.__)("Preload"),value:s,onChange:p,options:Ive,hideCancelButton:!0})})]})},Xae=Dve;var xt=r(B()),We=r(L()),qg=r(S());var ene=r(z()),od=r(F()),tne=r(ko());var Ge=r(h()),{Badge:Eve}=Q(We.privateApis),Jae=["text/vtt"],Mve="subtitles",Lve=[{label:(0,xt.__)("Subtitles"),value:"subtitles"},{label:(0,xt.__)("Captions"),value:"captions"},{label:(0,xt.__)("Descriptions"),value:"descriptions"},{label:(0,xt.__)("Chapters"),value:"chapters"},{label:(0,xt.__)("Metadata"),value:"metadata"}],one={src:"",label:"",srcLang:"en",kind:Mve,default:!1};function Rve({tracks:e,onEditPress:t}){let o=e.map((a,n)=>(0,Ge.jsxs)(We.__experimentalHStack,{className:"block-library-video-tracks-editor__track-list-track",children:[(0,Ge.jsx)("span",{children:a.label}),(0,Ge.jsxs)(We.__experimentalHStack,{justify:"flex-end",children:[a.default&&(0,Ge.jsx)(Eve,{children:(0,xt.__)("Default")}),(0,Ge.jsx)(We.Button,{__next40pxDefaultSize:!0,variant:"tertiary",onClick:()=>t(n),"aria-label":(0,xt.sprintf)((0,xt._x)("Edit %s","text tracks"),a.label),children:(0,xt.__)("Edit")})]})]},a.id??a.src));return(0,Ge.jsx)(We.MenuGroup,{label:(0,xt.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list",children:o})}function Hve({track:e,onChange:t,onClose:o,onRemove:a,allowSettingDefault:n}){let[i,l]=(0,od.useState)({...one,...e}),{src:s,label:c,srcLang:u,kind:m,default:p}=i,d=s.startsWith("blob:")?"":(0,tne.getFilename)(s)||"";return(0,Ge.jsxs)(We.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4",children:[(0,Ge.jsx)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label",children:(0,xt.__)("Edit track")}),(0,Ge.jsxs)("span",{children:[(0,xt.__)("File"),": ",(0,Ge.jsx)("b",{children:d})]}),(0,Ge.jsxs)(We.__experimentalGrid,{columns:2,gap:4,children:[(0,Ge.jsx)(We.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:f=>l(g=>({...g,label:f})),label:(0,xt.__)("Label"),value:c,help:(0,xt.__)("Title of track")}),(0,Ge.jsx)(We.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:f=>l(g=>({...g,srcLang:f})),label:(0,xt.__)("Source language"),value:u,help:(0,xt.__)("Language tag (en, fr, etc.)")})]}),(0,Ge.jsxs)(We.__experimentalVStack,{spacing:"4",children:[(0,Ge.jsx)(We.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:Lve,value:m,label:(0,xt.__)("Kind"),onChange:f=>l(g=>({...g,kind:f}))}),(0,Ge.jsx)(We.ToggleControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,xt.__)("Set as default track"),checked:p,disabled:!n,onChange:f=>l(g=>({...g,default:f}))}),(0,Ge.jsxs)(We.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container",children:[(0,Ge.jsx)(We.Button,{__next40pxDefaultSize:!0,isDestructive:!0,variant:"link",onClick:a,children:(0,xt.__)("Remove track")}),(0,Ge.jsx)(We.Button,{__next40pxDefaultSize:!0,variant:"primary",onClick:()=>{t(i),o()},children:(0,xt.__)("Apply")})]})]})]})}function rne({tracks:e=[],onChange:t}){let o=(0,ene.useSelect)(c=>c(qg.store).getSettings().mediaUpload,[]),[a,n]=(0,od.useState)(null),i=(0,od.useRef)(),l=(c=[],u=!1)=>{let m=new Map(e.map(d=>[d.id,d])),p=c.map(({id:d,title:f,url:g})=>m.has(d)?m.get(d):{...one,id:d,label:f||"",src:g});p.length!==0&&t([...u?e:[],...p])};function s(c){let u=c.target.files;o({allowedTypes:Jae,filesList:u,onFileChange:m=>{if(!Array.isArray(m))return;let p=m.filter(d=>!!d?.id);p.length&&l(p,!0)}})}return(0,od.useEffect)(()=>{i.current?.focus()},[a]),o?(0,Ge.jsx)(We.Dropdown,{contentClassName:"block-library-video-tracks-editor",focusOnMount:!0,popoverProps:{ref:i},renderToggle:({isOpen:c,onToggle:u})=>(0,Ge.jsx)(We.ToolbarGroup,{children:(0,Ge.jsx)(We.ToolbarButton,{"aria-expanded":c,"aria-haspopup":"true",onClick:()=>{c||n(null),u()},children:(0,xt.__)("Text tracks")})}),renderContent:()=>a!==null?(0,Ge.jsx)(Hve,{track:e[a],onChange:c=>{let u=[...e];u[a]=c,t(u)},onClose:()=>n(null),onRemove:()=>{t(e.filter((c,u)=>u!==a)),n(null)},allowSettingDefault:!e.some(c=>c.default)||e[a].default}):(0,Ge.jsxs)(Ge.Fragment,{children:[e.length===0&&(0,Ge.jsxs)("div",{className:"block-library-video-tracks-editor__tracks-informative-message",children:[(0,Ge.jsx)("h2",{className:"block-library-video-tracks-editor__tracks-informative-message-title",children:(0,xt.__)("Text tracks")}),(0,Ge.jsx)("p",{className:"block-library-video-tracks-editor__tracks-informative-message-description",children:(0,xt.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")})]}),(0,Ge.jsxs)(We.NavigableMenu,{children:[(0,Ge.jsx)(Rve,{tracks:e,onEditPress:n}),(0,Ge.jsx)(We.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,xt.__)("Add tracks"),children:(0,Ge.jsxs)(qg.MediaUploadCheck,{children:[(0,Ge.jsx)(qg.MediaUpload,{onSelect:l,allowedTypes:Jae,value:e.map(({id:c})=>c),multiple:!0,render:({open:c})=>(0,Ge.jsx)(We.MenuItem,{icon:Nh,onClick:c,children:(0,xt.__)("Open Media Library")})}),(0,Ge.jsx)(We.FormFileUpload,{onChange:s,accept:".vtt,text/vtt",multiple:!0,render:({openFileDialog:c})=>(0,Ge.jsx)(We.MenuItem,{icon:js,onClick:c,children:(0,xt._x)("Upload","verb")})})]})})]})]})}):null}var Qt=r(h()),iE=["video"];function zve({isSelected:e,attributes:t,className:o,setAttributes:a,insertBlocksAfter:n,onReplace:i}){let l=(0,Zg.useRef)(),{id:s,controls:c,poster:u,src:m,tracks:p}=t,[d,f]=(0,Zg.useState)(t.blob),g=G(),b=(0,Fa.useBlockEditingMode)()==="default";Lc({url:d,allowedTypes:iE,onChange:y,onError:w}),(0,Zg.useEffect)(()=>{l.current&&l.current.load()},[u]);function y(P){if(!P||!P.url){a({src:void 0,id:void 0,poster:void 0,caption:void 0,blob:void 0}),f();return}if((0,ane.isBlobURL)(P.url)){f(P.url);return}a({blob:void 0,src:P.url,id:P.id,poster:P.image?.src!==P.icon?P.image?.src:void 0,caption:P.caption}),f()}function _(P){if(P!==m){let M=Vc({attributes:{url:P}});if(M!==void 0&&i){i(M);return}a({blob:void 0,src:P,id:void 0,poster:void 0}),f()}}let{createErrorNotice:x}=(0,nne.useDispatch)(ine.store);function w(P){x(P,{type:"snackbar"})}let C=P=>(0,Qt.jsx)(Ju.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!e,icon:hd,label:(0,E2.__)("Video"),instructions:(0,E2.__)("Drag and drop a video, upload, or choose from your library."),children:P}),T=k(o,{"is-transient":!!d}),N=(0,Fa.useBlockProps)({className:T});return!m&&!d?(0,Qt.jsx)("div",{...N,children:(0,Qt.jsx)(Fa.MediaPlaceholder,{icon:(0,Qt.jsx)(Fa.BlockIcon,{icon:hd}),onSelect:y,onSelectURL:_,accept:"video/*",allowedTypes:iE,value:t,onError:w,placeholder:C})}):(0,Qt.jsxs)(Qt.Fragment,{children:[e&&(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(Fa.BlockControls,{children:(0,Qt.jsx)(rne,{tracks:p,onChange:P=>{a({tracks:P})}})}),(0,Qt.jsx)(Fa.BlockControls,{group:"other",children:(0,Qt.jsx)(Fa.MediaReplaceFlow,{mediaId:s,mediaURL:m,allowedTypes:iE,accept:"video/*",onSelect:y,onSelectURL:_,onError:w,onReset:()=>y(void 0)})})]}),(0,Qt.jsx)(Fa.InspectorControls,{children:(0,Qt.jsxs)(Ju.__experimentalToolsPanel,{label:(0,E2.__)("Settings"),resetAll:()=>{a({autoplay:!1,controls:!0,loop:!1,muted:!1,playsInline:!1,preload:"metadata",poster:void 0})},dropdownMenuProps:g,children:[(0,Qt.jsx)(Xae,{setAttributes:a,attributes:t}),(0,Qt.jsx)(W_,{poster:u,onChange:P=>a({poster:P?.url})})]})}),(0,Qt.jsxs)("figure",{...N,children:[(0,Qt.jsx)(Ju.Disabled,{isDisabled:!e,children:(0,Qt.jsx)("video",{controls:c,poster:u,src:m||d,ref:l,children:(0,Qt.jsx)($g,{tracks:p})})}),!!d&&(0,Qt.jsx)(Ju.Spinner,{}),(0,Qt.jsx)(Wa,{attributes:t,setAttributes:a,isSelected:e,insertBlocksAfter:n,label:(0,E2.__)("Video caption text"),showToolbarButton:e&&b})]})]})}var lne=zve;var rd=r(S());var Kg=r(h());function sne({attributes:e}){let{autoplay:t,caption:o,controls:a,loop:n,muted:i,poster:l,preload:s,src:c,playsInline:u,tracks:m}=e;return(0,Kg.jsxs)("figure",{...rd.useBlockProps.save(),children:[c&&(0,Kg.jsx)("video",{autoPlay:t,controls:a,loop:n,muted:i,poster:l,preload:s!=="metadata"?s:void 0,src:c,playsInline:u,children:(0,Kg.jsx)($g,{tracks:m})}),!rd.RichText.isEmpty(o)&&(0,Kg.jsx)(rd.RichText.Content,{className:(0,rd.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o})]})}var UC=r(Po()),lE=r(U()),Ave={from:[{type:"files",isMatch(e){return e.length===1&&e[0].type.indexOf("video/")===0},transform(e){let t=e[0];return(0,lE.createBlock)("core/video",{blob:(0,UC.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:o,webm:a,ogv:n,flv:i}})=>e||t||o||a||n||i},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}},{type:"raw",isMatch:e=>e.nodeName==="P"&&e.children.length===1&&e.firstChild.nodeName==="VIDEO",transform:e=>{let t=e.firstChild,o={autoplay:t.hasAttribute("autoplay")?!0:void 0,controls:t.hasAttribute("controls")?void 0:!1,loop:t.hasAttribute("loop")?!0:void 0,muted:t.hasAttribute("muted")?!0:void 0,preload:t.getAttribute("preload")||void 0,playsInline:t.hasAttribute("playsinline")?!0:void 0,poster:t.getAttribute("poster")||void 0,src:t.getAttribute("src")||void 0};return(0,UC.isBlobURL)(o.src)&&(o.blob=o.src,delete o.src),(0,lE.createBlock)("core/video",o)}}]},cne=Ave;var{fieldsKey:Vve,formKey:Fve}=Q(une.privateApis),{name:mne}=Gg,$C={icon:hd,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,GC.__)("Wood thrush singing in Central Park, NYC.")}},transforms:cne,deprecated:Yae,edit:lne,save:sne};window.__experimentalContentOnlyInspectorFields&&($C[Vve]=[{id:"video",label:(0,GC.__)("Video"),type:"media",mapping:{id:"id",url:"src",caption:"caption",poster:"poster"},args:{allowedTypes:["video"],multiple:!1}},{id:"caption",label:(0,GC.__)("Caption"),type:"richtext"}],$C[Fve]={fields:["video"]});var jve=()=>D({name:mne,metadata:Gg,settings:$C});var gE={};$(gE,{init:()=>Zve,metadata:()=>WC,name:()=>xne,settings:()=>kne});var _ne=r(Bm());var ad=r(S()),pne=r(Y()),M2=r(B()),cE=r(L());var zi=r(h());function dne({context:{postType:e,postId:t}}){let[o,a]=(0,pne.useEntityProp)("postType",e,"meta",t),n=typeof o?.footnotes=="string",i=o?.footnotes?JSON.parse(o.footnotes):[],l=(0,ad.useBlockProps)();return n?i.length?(0,zi.jsx)("ol",{...l,children:i.map(({id:s,content:c})=>(0,zi.jsxs)("li",{onMouseDown:u=>{u.target===u.currentTarget&&(u.target.firstElementChild.focus(),u.preventDefault())},children:[(0,zi.jsx)(ad.RichText,{id:s,tagName:"span",value:c,identifier:s,onFocus:u=>{u.target.textContent.trim()||u.target.scrollIntoView()},onChange:u=>{a({...o,footnotes:JSON.stringify(i.map(m=>m.id===s?{content:u,id:s}:m))})}})," ",(0,zi.jsx)("a",{href:`#${s}-link`,children:"\u21A9\uFE0E"})]},s))}):(0,zi.jsx)("div",{...l,children:(0,zi.jsx)(cE.Placeholder,{icon:(0,zi.jsx)(ad.BlockIcon,{icon:ui}),label:(0,M2.__)("Footnotes"),instructions:(0,M2.__)("Footnotes found in blocks within this document will be displayed here.")})}):(0,zi.jsx)("div",{...l,children:(0,zi.jsx)(cE.Placeholder,{icon:(0,zi.jsx)(ad.BlockIcon,{icon:ui}),label:(0,M2.__)("Footnotes"),instructions:(0,M2.__)("Footnotes are not supported here. Add this block to post or page content.")})})}var WC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"Display footnotes added to the page.",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{radius:!1,color:!1,width:!1,style:!1}},color:{background:!0,link:!0,text:!0,__experimentalDefaultControls:{link:!0,text:!0}},html:!1,multiple:!1,reusable:!1,inserter:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalWritingMode:!0,__experimentalDefaultControls:{fontSize:!0}},interactivity:{clientNavigation:!0}},style:"wp-block-footnotes"};var qC,Uve=new Uint8Array(16);function uE(){if(!qC&&(qC=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qC(Uve)}var Gr=[];for(let e=0;e<256;++e)Gr.push((e+256).toString(16).slice(1));function fne(e,t=0){return Gr[e[t+0]]+Gr[e[t+1]]+Gr[e[t+2]]+Gr[e[t+3]]+"-"+Gr[e[t+4]]+Gr[e[t+5]]+"-"+Gr[e[t+6]]+Gr[e[t+7]]+"-"+Gr[e[t+8]]+Gr[e[t+9]]+"-"+Gr[e[t+10]]+Gr[e[t+11]]+Gr[e[t+12]]+Gr[e[t+13]]+Gr[e[t+14]]+Gr[e[t+15]]}var Gve=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),mE={randomUUID:Gve};function $ve(e,t,o){if(mE.randomUUID&&!t&&!e)return mE.randomUUID();e=e||{};let a=e.random||(e.rng||uE)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){o=o||0;for(let n=0;n<16;++n)t[o+n]=a[n];return t}return fne(a)}var pE=$ve;var dE=r(B());var hne=r(Bm()),Tc=r(S()),Qg=r(z()),vne=r(Y()),ZC=r(U());var bne=r(h()),{usesContextKey:Wve}=Q(Tc.privateApis),fE="core/footnote",gne="core/post-content",qve="core/block",yne={title:(0,dE.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[Wve]:["postType","postId"],edit:function({value:t,onChange:o,isObjectActive:a,context:{postType:n,postId:i}}){let l=(0,Qg.useRegistry)(),{getSelectedBlockClientId:s,getBlocks:c,getBlockRootClientId:u,getBlockName:m,getBlockParentsByBlockName:p}=l.select(Tc.store),d=(0,Qg.useSelect)(b=>{if(!b(ZC.store).getBlockType("core/footnotes"))return!1;let y=b(Tc.store).getSettings().allowedBlockTypes;if(y===!1||Array.isArray(y)&&!y.includes("core/footnotes")||typeof b(vne.store).getEntityRecord("postType",n,i)?.meta?.footnotes!="string")return!1;let{getBlockParentsByBlockName:x,getSelectedBlockClientId:w}=b(Tc.store),C=x(w(),qve);return!C||C.length===0},[n,i]),{selectionChange:f,insertBlock:g}=(0,Qg.useDispatch)(Tc.store);if(!d)return null;function v(){l.batch(()=>{let b;if(a)b=t.replacements[t.start]?.attributes?.["data-fn"];else{b=pE();let C=(0,hne.insertObject)(t,{type:fE,attributes:{"data-fn":b},innerHTML:`<a href="#${b}" id="${b}-link">*</a>`},t.end,t.end);C.start=C.end-1,o(C)}let y=s(),_=p(y,gne),x=_.length?c(_[0]):c(),w=null;{let C=[...x];for(;C.length;){let T=C.shift();if(T.name==="core/footnotes"){w=T;break}C.push(...T.innerBlocks)}}if(!w){let C=u(y);for(;C&&m(C)!==gne;)C=u(C);w=(0,ZC.createBlock)("core/footnotes"),g(w,void 0,C)}f(w.clientId,b,0,0)})}return(0,bne.jsx)(Tc.RichTextToolbarButton,{icon:ui,title:(0,dE.__)("Footnote"),onClick:v,isActive:a})}};var{name:xne}=WC,kne={icon:ui,edit:dne},Zve=()=>{(0,_ne.registerFormatType)(fE,yne),D({name:xne,metadata:WC,settings:kne})};var Kve=Object.getOwnPropertyNames,Qve=(e,t)=>function(){return t||(0,e[Kve(e)[0]])((t={exports:{}}).exports,t),t.exports},Yve=Qve({"packages/block-library/src/utils/is-block-metadata-experimental.js"(e,t){t.exports=function(a){return a&&"__experimental"in a&&a.__experimental!==!1}}}),hE=Yve();var Sne=r(F()),L2=r(z()),zs=r(Cne()),vE=r(B()),Tne=r(U()),bE=r(S());function Xve(){let{registerShortcut:e}=(0,L2.useDispatch)(zs.store),{replaceBlocks:t}=(0,L2.useDispatch)(bE.store),{getBlockName:o,getSelectedBlockClientId:a,getBlockAttributes:n}=(0,L2.useSelect)(bE.store),i=(l,s)=>{l.preventDefault();let c=a();if(c===null)return;let u=o(c),m=u==="core/paragraph",p=u==="core/heading";if(!m&&!p)return;let d=s===0?"core/paragraph":"core/heading",f=n(c);if(m&&s===0||p&&f.level===s)return;let g={content:f.content},v=f.textAlign||f.style?.typography?.textAlign;d==="core/heading"?(g.level=s,v&&(g.textAlign=v)):v&&(g.style={typography:{textAlign:v}}),t(c,(0,Tne.createBlock)(d,g))};return(0,Sne.useEffect)(()=>{e({name:"core/block-editor/transform-heading-to-paragraph",category:"block-library",description:(0,vE.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"},aliases:[{modifier:"access",character:"7"}]}),[1,2,3,4,5,6].forEach(l=>{e({name:`core/block-editor/transform-paragraph-to-heading-${l}`,category:"block-library",description:(0,vE.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${l}`}})})},[e]),(0,zs.useShortcut)("core/block-editor/transform-heading-to-paragraph",l=>i(l,0)),(0,zs.useShortcut)("core/block-editor/transform-paragraph-to-heading-1",l=>i(l,1)),(0,zs.useShortcut)("core/block-editor/transform-paragraph-to-heading-2",l=>i(l,2)),(0,zs.useShortcut)("core/block-editor/transform-paragraph-to-heading-3",l=>i(l,3)),(0,zs.useShortcut)("core/block-editor/transform-paragraph-to-heading-4",l=>i(l,4)),(0,zs.useShortcut)("core/block-editor/transform-paragraph-to-heading-5",l=>i(l,5)),(0,zs.useShortcut)("core/block-editor/transform-paragraph-to-heading-6",l=>i(l,6)),null}var Bne=Xve;var yE={};UM(yE,{BlockKeyboardShortcuts:Bne});var KC=r(h()),Dne=()=>{let e=[jP,gB,lB,KT,CB,RB,WN,o6,r6,a6,i6,K9,nS,uS,dS,hS,yS,BS,NS,ES,AS,bT,yT,TT,IT,eB,mB,TB,hB,_B,OB,UB,GB,xP,BP,MP,wP,dN,fN,qN,KN,tI,rI,nI,mD,dD,fD,PD,LD,eE,nE,sE,gE,gP,vP,yP,sI,fI,mI,PN,VD,Y9,cN,tN,aN,XP,UP,$P,qP,ZP,YP,JP,lN,nN,iN,sN,EN,LN,RN,zN,NN,GN,ZN,HS,VS,FS,OS,US,GS,WS,eT,QS,XS,JS,ZS,QP,ID,sB,HB,UD,$D,WD,XD,JD,jN,WP];return window?.__experimentalEnableBlockExperiments&&(e.push(iS),e.push(bD),e.push(ED)),window?.__experimentalEnableFormBlocks&&(e.push(LT),e.push(RT),e.push(zT),e.push(AT)),window?.wp?.oldEditor&&(window?.wp?.needsClassicBlock||!window?.__experimentalDisableTinymce||new URLSearchParams(window?.location?.search).get("requiresTinymce"))&&e.push(kS),e.filter(Boolean)},Ene=()=>Dne().filter(({metadata:e})=>!hE(e)),Jve=(e=Ene())=>{e.forEach(({init:t})=>t()),window.__unstableAutoRegisterBlocks&&window.__unstableAutoRegisterBlocks.forEach(t=>{let o=Q((0,Pne.select)(Ai.store)).getBootstrappedBlockType(t);(0,Ai.registerBlockType)(t,{...o,title:o?.title||t,...(o?.apiVersion??0)<3&&{apiVersion:3},edit:function({attributes:n}){let i=(0,Nne.useBlockProps)(),{content:l,status:s,error:c}=(0,Ine.useServerSideRender)({block:t,attributes:n});return s==="loading"?(0,KC.jsx)("div",{...i,children:(0,R2.__)("Loading\u2026")}):s==="error"?(0,KC.jsx)("div",{...i,children:(0,R2.sprintf)((0,R2.__)("Error loading block: %s"),c)}):(0,KC.jsx)("div",{...i,dangerouslySetInnerHTML:{__html:l||""}})},save:()=>null})}),(0,Ai.setDefaultBlockName)(Xk),window.wp&&window.wp.oldEditor&&e.some(({name:t})=>t===y0)&&(0,Ai.setFreeformContentHandlerName)(y0),(0,Ai.setUnregisteredTypeHandlerName)(r1),(0,Ai.setGroupingBlockName)(Hx)},ebe=({enableFSEBlocks:e}={})=>{let t=[e?"fse":null];Dne().filter(({metadata:o})=>hE(o)).filter(({metadata:{__experimental:o}})=>o===!0||t.includes(o)).forEach(({init:o})=>o())};return qne(tbe);})(); |
| 48 |
/*! Bundled license information: |
| 49 |
|
| 50 |
fast-average-color/dist/index.esm.js: |
| 51 |
(*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color *) |
| 52 |
*/ |
| 53 |
//# sourceMappingURL=index.min.js.map |
| 54 |
|