HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/insiders/wp-load/wp-content/plugins/breadly/build/block.js
(self.webpackChunkgutenmate_blocks=self.webpackChunkgutenmate_blocks||[]).push([[2584],{6778:function(e,t,a){"use strict";a.r(t),a.d(t,{GTM_BLOCK_SUPPORT_INSPECT_ATTRIBUTES_KEY:function(){return b},gtmRegisterBlockAttributeInspector:function(){return h},inspectBlockAttributes:function(){return C}});var n=a(9196),l=a.n(n),o=a(4333),r=a(4981),i=a(9307),s=a(2175),c=a(9818),u=(a(5736),a(2630));const{get:m,merge:g,isEmpty:p,isEqual:d}=lodash,b="gtmInspectAttributes";function h(e,t,a){let n=(0,u.sanitizedBlockName)(e);wp.hooks.hasFilter(`gtm.InspectAttributes.${n}`,`gtm/InspectAttributes/${t}`)||wp.hooks.addFilter(`gtm.InspectAttributes.${n}`,`gtm/InspectAttributes/${t}`,a)}const y=e=>{const{attributes:t,setAttributes:a,clientId:n}=e;return v(t,n,e.name),l().createElement(i.Fragment,null,e.children)},_=(0,o.createHigherOrderComponent)((e=>t=>{const{attributes:a,setAttributes:n,clientId:o}=t;return function(e){if(!0===(0,r.getBlockSupport)(e,b))return!0}(t.name)?l().createElement(y,t,l().createElement(e,t)):l().createElement(e,t)}),"gutenmateInspectAttributes");function v(e,t,a){let n=k(e,a);if(console.log(`Block preset [${a}] (${t})`,JSON.stringify(n)),(0,c.select)(s.store).getBlock(t).innerBlocks){const e=f(t);e&&console.log("InnerBlock preset",JSON.stringify(e))}}function f(e){const t=(0,c.select)(s.store).getBlock(e);if(t.innerBlocks)return t.innerBlocks.map((e=>{let t=k(e.attributes,e.name),a=[e.name,t];return e.innerBlocks.length&&a.push(f(e.clientId)),a}))}function k(e,t){const a=(0,c.select)(r.store).getBlockType(t);let n=(0,u.sanitizedBlockName)(t),l=lodash.cloneDeep(e);return delete l.gtmCssId,delete l.className,delete l.gtmBlockStyle,delete l.gtmBlockStyleClasses,"core/query"==t?delete l.query.queryId:delete l.query,Object.keys(l).forEach((e=>{d(l[e],m(a.attributes,[e,"default"]))&&delete l[e]})),l=wp.hooks.applyFilters(`gtm.InspectAttributes.${n}`,l),l}function C(e){"object"==typeof e&&m(e,"dataset.block")&&(e=m(e,"dataset.block"));const t=wp.data.select("core/block-editor").getBlock(e);t?v(t.attributes,t.clientId,t.name):console.warn(`No block clientId=${e}`)}wp.hooks.addFilter("editor.BlockEdit","gtm/inspectAttributes/withEditControls",_,40)},311:function(e,t,a){"use strict";var n={};a.r(n),a.d(n,{metadata:function(){return ke},name:function(){return tt},settings:function(){return at}});var l={};a.r(l),a.d(l,{metadata:function(){return nt},name:function(){return lt},settings:function(){return ot}});var o={};a.r(o),a.d(o,{metadata:function(){return rt},name:function(){return it},settings:function(){return st}});var r={};a.r(r),a.d(r,{metadata:function(){return ct},name:function(){return mt},settings:function(){return gt}});var i={};a.r(i),a.d(i,{metadata:function(){return pt},name:function(){return bt},settings:function(){return ht}});var s={};a.r(s),a.d(s,{metadata:function(){return yt},name:function(){return _t},settings:function(){return vt}});var c={};a.r(c),a.d(c,{metadata:function(){return ft},name:function(){return St},settings:function(){return xt}});var u={};a.r(u),a.d(u,{metadata:function(){return Tt},name:function(){return It},settings:function(){return Pt}});var m={};a.r(m),a.d(m,{metadata:function(){return Ot},name:function(){return Rt},settings:function(){return Vt}});var g={};a.r(g),a.d(g,{metadata:function(){return Ft},name:function(){return Gt},settings:function(){return Ut}});var p={};a.r(p),a.d(p,{metadata:function(){return Zt},name:function(){return Jt},settings:function(){return Kt}});var d={};a.r(d),a.d(d,{metadata:function(){return Qt},name:function(){return Xt},settings:function(){return Yt}});var b={};a.r(b),a.d(b,{metadata:function(){return ea},name:function(){return ta},settings:function(){return aa}});var h={};a.r(h),a.d(h,{metadata:function(){return la},name:function(){return oa},settings:function(){return ra}});var y={};a.r(y),a.d(y,{metadata:function(){return ia},name:function(){return ga},settings:function(){return pa}});var _={};a.r(_),a.d(_,{metadata:function(){return da},name:function(){return _a},settings:function(){return va}});var v={};a.r(v),a.d(v,{metadata:function(){return fa},name:function(){return Ea},settings:function(){return wa}});var f={};a.r(f),a.d(f,{metadata:function(){return Sa},name:function(){return xa},settings:function(){return Ta}});var k={};a.r(k),a.d(k,{metadata:function(){return Pa},name:function(){return Aa},settings:function(){return Ha}});var C={};a.r(C),a.d(C,{metadata:function(){return ja},name:function(){return Ra},settings:function(){return Va}});var E={};a.r(E),a.d(E,{metadata:function(){return za},name:function(){return Ma},settings:function(){return Da}});var w={};a.r(w),a.d(w,{metadata:function(){return Wa},name:function(){return Ua},settings:function(){return Za}});var S={};a.r(S),a.d(S,{metadata:function(){return qa},name:function(){return nn},settings:function(){return ln}});var x={};a.r(x),a.d(x,{metadata:function(){return rn},name:function(){return sn},settings:function(){return cn}});var T={};a.r(T),a.d(T,{metadata:function(){return un},name:function(){return gn},settings:function(){return pn}});var B={};a.r(B),a.d(B,{metadata:function(){return dn},name:function(){return hn},settings:function(){return yn}});var I={};a.r(I),a.d(I,{metadata:function(){return vn},name:function(){return fn},settings:function(){return kn}});var P={};a.r(P),a.d(P,{metadata:function(){return Cn},name:function(){return Sn},settings:function(){return xn}});var L={};a.r(L),a.d(L,{metadata:function(){return In},name:function(){return On},settings:function(){return An}});var O={};a.r(O),a.d(O,{metadata:function(){return Hn},name:function(){return jn},settings:function(){return Nn}});var A={};a.r(A),a.d(A,{metadata:function(){return Rn},name:function(){return Mn},settings:function(){return Dn}});var H={};a.r(H),a.d(H,{metadata:function(){return Wn},name:function(){return $n},settings:function(){return Gn}});var j={};a.r(j),a.d(j,{metadata:function(){return Un},name:function(){return Jn},settings:function(){return Kn}});var N={};a.r(N),a.d(N,{metadata:function(){return Qn},name:function(){return Xn},settings:function(){return Yn}});var R={};a.r(R),a.d(R,{metadata:function(){return tl},name:function(){return Sl},settings:function(){return xl}});var V={};a.r(V),a.d(V,{metadata:function(){return Tl},name:function(){return Il},settings:function(){return Pl}});var z={};a.r(z),a.d(z,{metadata:function(){return Ll},name:function(){return Ol},settings:function(){return Al}});var F={};a.r(F),a.d(F,{metadata:function(){return Hl},name:function(){return jl},settings:function(){return Nl}});var M={};a.r(M),a.d(M,{metadata:function(){return Rl},name:function(){return Ul},settings:function(){return Zl}});var D={};a.r(D),a.d(D,{metadata:function(){return Kl},name:function(){return Ql},settings:function(){return Xl}});var W={};a.r(W),a.d(W,{metadata:function(){return Yl},name:function(){return to},settings:function(){return ao}});var $={};a.r($),a.d($,{metadata:function(){return no},name:function(){return ro},settings:function(){return io}});var G={};a.r(G),a.d(G,{metadata:function(){return go},name:function(){return ho},settings:function(){return yo}});var U={};a.r(U),a.d(U,{metadata:function(){return So},name:function(){return Bo},settings:function(){return Io}});var Z={};a.r(Z),a.d(Z,{metadata:function(){return Po},name:function(){return Oo},settings:function(){return Ao}});var q={};a.r(q),a.d(q,{metadata:function(){return Ho},name:function(){return jo},settings:function(){return No}});var J={};a.r(J),a.d(J,{metadata:function(){return Ro},name:function(){return Fo},settings:function(){return Mo}});var K={};a.r(K),a.d(K,{metadata:function(){return Do},name:function(){return Wo},settings:function(){return $o}});var Q={};a.r(Q),a.d(Q,{metadata:function(){return Jo},name:function(){return Ko},settings:function(){return Qo}});var X={};a.r(X),a.d(X,{metadata:function(){return Xo},name:function(){return er},settings:function(){return tr}});var Y={};a.r(Y),a.d(Y,{metadata:function(){return ur},name:function(){return mr},settings:function(){return gr}});var ee={};a.r(ee),a.d(ee,{metadata:function(){return hr},name:function(){return _r},settings:function(){return vr}});var te={};a.r(te),a.d(te,{metadata:function(){return fr},name:function(){return Cr},settings:function(){return Er}});var ae={};a.r(ae),a.d(ae,{metadata:function(){return wr},name:function(){return xr},settings:function(){return Tr}});var ne={};a.r(ne),a.d(ne,{metadata:function(){return Ir},name:function(){return Or},settings:function(){return Ar}});var le={};a.r(le),a.d(le,{metadata:function(){return Hr},name:function(){return Nr},settings:function(){return Rr}});var oe={};a.r(oe),a.d(oe,{metadata:function(){return Vr},name:function(){return zr},settings:function(){return Fr}});var re={};a.r(re),a.d(re,{metadata:function(){return Mr},name:function(){return Dr},settings:function(){return Wr}});var ie={};a.r(ie),a.d(ie,{metadata:function(){return $r},name:function(){return vs},settings:function(){return fs}});var se={};a.r(se),a.d(se,{metadata:function(){return ks},name:function(){return Es},settings:function(){return ws}});var ce={};a.r(ce),a.d(ce,{metadata:function(){return Is},name:function(){return Os},settings:function(){return As}});var ue={};a.r(ue),a.d(ue,{metadata:function(){return js},name:function(){return Ns},settings:function(){return Rs}});var me={};a.r(me),a.d(me,{metadata:function(){return Vs},name:function(){return zs},settings:function(){return Fs}});var ge={};a.r(ge),a.d(ge,{metadata:function(){return Ms},name:function(){return $s},settings:function(){return Gs}});var pe={};a.r(pe),a.d(pe,{metadata:function(){return Us},name:function(){return Ys},settings:function(){return ec}}),a(158),a(3709),a(4303),a(1557);var de=a(4981),be=a(5736),he=a(9754),ye=a(9196),_e=a.n(ye),ve=a(4184),fe=a.n(ve),ke=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/about-author","title":"About Author","description":"Add author information for the post","category":"gtm-posts","keywords":["gutenmate","box","area","author"],"usesContext":["postId","postType"],"attributes":{"layoutStacked":{"type":"string","enum":["none","mobile","always"],"default":"none"},"enableAvatar":{"type":"boolean","default":true},"avatarSize":{"type":"string","default":"96px"},"avatarSpacing":{"type":"object","default":{}},"avatarRadius":{"type":["string","object"],"default":""},"avatarShadow":{"type":"string","default":""},"tagline":{"type":"string","default":""},"taglineTypography":{"type":"object","default":{}},"taglineSpacing":{"type":"object","default":{}},"taglineColor":{"type":"string","default":""},"nameTypography":{"type":"object","default":{}},"nameColor":{"type":"string","default":""},"enableBio":{"type":"boolean","default":true},"bioTypography":{"type":"object","default":{}},"bioSpacing":{"type":"object","default":{}},"bioColor":{"type":"string","default":""},"enableSocial":{"type":"boolean","default":true},"socialDisplay":{"type":"string","enum":["all","icon","label"],"default":"all"},"socialLinkTypography":{"type":"object","default":{}},"socialSpacing":{"type":"object","default":{}},"socialLinkSpacing":{"type":"object","default":{}},"socialLinkPadding":{"type":"object","default":{}},"socialLinkRadius":{"type":["string","object"],"default":""},"socialLinkSize":{"type":"object","default":{}},"socialLinkColor":{"type":"string","default":""},"socialLinkBg":{"type":"object","default":{}},"socialLinkHoverColor":{"type":"string","default":""},"socialLinkHoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true},"gtmResponsiveAttributes":true,"gtmUseWebFonts":["taglineTypography","nameTypography","bioTypography","socialLinkTypography"]},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-about-author-editor-style","style":"gtm-about-author-style"}'),Ce=a(9307),Ee=a(5609),we=a(2175),Se=a(4333),xe=a(9818),Te=a(2819),Be=a(845),Ie=a(1991),Pe=a.n(Ie),Le=a(2630);a(3832);const{useEffect:Oe,useState:Ae,memo:He}=React,{filter:je,size:Ne,isEmpty:Re}=lodash,Ve=(e,t={})=>{t={"suppress-import":!1,...t};const a={lg:"",md:"(max-width: 1199.98px)",sm:"(max-width: 767.98px)"};let n="";return["import","all","lg","md","sm"].forEach((l=>{if(e[l])if("import"==l)t["suppress-import"]||e[l].forEach((e=>{n+=` @import url("${e}");`}));else{const t=e[l];a[l]&&(n+=` @media ${a[l]}{`),Object.keys(t).forEach((e=>{const a=t[e];n+=`${e}{`,Object.keys(a).forEach((e=>{n+=`${e}:${a[e]};`})),n+="}"})),a[l]&&(n+="}")}})),n};function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ze.apply(this,arguments)}const Fe=(0,Se.createHigherOrderComponent)((e=>t=>{const a=`gtm-style-${(0,Se.useInstanceId)(e)}`,{inlineStyle:n,generatedCss:l}=(0,Ce.useMemo)((()=>{const e=Me(t.name,t.attributes);e.classes.length&&e.classes.push("gtm-style"),e.classes.length&&e.classes.push(a);let n=(e=>{let t={import:[]};return Object.keys(e).forEach((a=>{const n=e[a];Object.keys(n).forEach((n=>{const l=e[a][n];if(Le.hasValue(l))if(n.startsWith("@import"))t.import.push(l);else{let e="",o="all",r="",i=n.match(/^(.+)#/);i&&(e=i[1],n=n.replace(i[0],"")),i=n.match(/@(.+)$/),i&&(o=i[1],r=`---${o}`,n=n.replace(i[0],""));let s=a;Le.setObjectValue(t,[o,s,n],l)}}))})),t})(e.style),l=Ve(n);return l&&(l=l.replaceAll("{{BLOCK}}",`.${a}:not(#\\9)`,l)),{inlineStyle:e,generatedCss:l}}),[t.attributes]),o=!!n||!!l,r={...t.wrapperProps};let i={...t};if(o){const e={className:Pe()(t.className,a,n.classes)};i={...t,...e}}return _e().createElement(_e().Fragment,null,_e().createElement("style",null,l),_e().createElement(e,ze({},i,{wrapperProps:r})))}));wp.hooks.addFilter("editor.BlockListBlock","gtm/style/withBlockStyle",Fe,99);const Me=(0,Be.Z)(((e,t)=>{const a=(0,Le.sanitizedBlockName)(De),n=(0,Le.sanitizedBlockName)(e);let l={classes:[],style:{}};return l=wp.hooks.applyFilters(`gtm.BlockStyleCompiler.${a}`,l,t,e),l=wp.hooks.applyFilters(`gtm.BlockStyleCompiler.${n}`,l,t,e),l})),De="global";function We(e=De,t,a){let n=(0,Le.sanitizedBlockName)(e),l=(0,Le.sanitizedBlockName)(`${n}-${t}`);wp.hooks.hasFilter(`gtm.BlockStyleCompiler.${n}`,`gtm/BlockStyleCompiler/${l}`)||wp.hooks.addFilter(`gtm.BlockStyleCompiler.${n}`,`gtm/BlockStyleCompiler/${l}`,a)}function $e(e,t,a,n=""){return(0,Le.hasValue)(a)?((0,Le.isSingularValue)(a)?(e.classes.push(`gtm-has-${t}`),e.style[`${t}#--gtm-${t}`]=a):"object"==typeof a&&Object.keys(a).forEach((l=>{"lg"===l&&(0,Le.hasValue)(a.lg)?(e.classes.push(`gtm-has-${t}---lg`),e.style[`${t}#--gtm-${t}---lg@lg`]=a.lg+n):"md"===l&&(0,Le.hasValue)(a.md)?(e.classes.push(`gtm-has-${t}---md`),e.style[`${t}#--gtm-${t}---md@md`]=a.md+n):"sm"===l&&(0,Le.hasValue)(a.sm)?(e.classes.push(`gtm-has-${t}---sm`),e.style[`${t}#--gtm-${t}---sm@sm`]=a.sm+n):$e(e,`${t}-${l}`,a[l])})),e):e}function Ge(e,t,a){return(0,Le.hasValue)(a)?((0,Le.isSingularValue)(a)&&"string"==typeof a?e.classes.push(`gtm-has-${t}-${a}`):console.warn("GTM: The function compileCssVarClass is require string value"),e):e}const Ue=[{title:"Social 1",icon:"gtm-basic-icon-twitter",link:"httsp://example.com"},{title:"Social 2",icon:"gtm-basic-icon-pinterest-p",link:"https://example.com"}],Ze=e=>{const{socials:t,previewMode:a=!1}=e,n=a?t??Ue:t??[];return _e().createElement(Ce.Fragment,null,n.map(((e,t)=>_e().createElement("a",{key:t,className:fe()("gtm-author-social-network"),onClick:e=>e.preventDefault()},e.icon&&_e().createElement("span",{className:fe()("gtm-author-social-network__icon")},_e().createElement("i",{className:fe()("gtm-icon",e.icon)})),e.title&&_e().createElement("span",{className:fe()("gtm-author-social-network__title")},e.title)))))};var qe=a(4842),Je=a(7877),Ke=a(8353),Qe=a(6537);function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Xe.apply(this,arguments)}const Ye=e=>{const{attributes:t,setAttributes:a}=e,n=(0,Te.cloneDeep)(t);let l=e.settings||[];const o=(0,we.useSetting)("color.palette.custom"),r=(0,we.useSetting)("color.palette.theme"),i=(0,we.useSetting)("color.palette.default"),s=(0,Ce.useMemo)((()=>[...o||[],...r||[],...i||[]]),[o,r,i]),c=(0,we.useSetting)("color.gradients.custom"),u=(0,we.useSetting)("color.gradients.theme"),m=(0,we.useSetting)("color.gradients.default"),g=(0,Ce.useMemo)((()=>[...c||[],...u||[],...m||[]]),[c,u,m]);return e.gtmSettings.forEach(((e,t)=>{let o={label:e.label};o=e.gradient?{...o,colorValue:(0,we.getColorObjectByAttributeValues)(s,n[e.attr]?.solid)?.color||n[e.attr]?.solid,onColorChange:t=>{if("string"==typeof n[e.attr]&&console.warn(`GTM: The attribute "${e.attr}" is a string, It must be object for gradient value.`),t){const a=(0,we.getColorObjectByColorValue)(s,t);void 0===n[e.attr]&&(n[e.attr]={}),n[e.attr].solid=a?.slug||t}else delete n[e.attr]?.solid;let l={...n[e.attr]};a({[e.attr]:Object.keys(l).length?l:void 0})},gradientValue:(0,we.getGradientValueBySlug)(g,n[e.attr]?.gradient)||n[e.attr]?.gradient,onGradientChange:t=>{if(t){const a=(0,we.getGradientSlugByValue)(g,t);void 0===n[e.attr]&&(n[e.attr]={}),n[e.attr].gradient=a||t}else delete n[e.attr]?.gradient;let l={...n[e.attr]};a({[e.attr]:Object.keys(l).length?l:void 0})}}:{...o,colorValue:(0,we.getColorObjectByAttributeValues)(s,n[e.attr])?.color||n[e.attr],onColorChange:t=>{const n=(0,we.getColorObjectByColorValue)(s,t);a({[e.attr]:n?.slug||t})}},l[t]=o})),_e().createElement(we.__experimentalPanelColorGradientSettings,Xe({initialOpen:!1},e,{settings:l,enableAlpha:!0}),e.children)};var et=a(8642);We(ke.name,ke.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",`gtm-has-stacked-layout-${t.layoutStacked}`,`gtm-has-social-display-${t.socialDisplay}`)),$e(a,"about-author-avatar-radius",(0,Le.parseBorderRadiusValue)(t.avatarRadius)),$e(a,"about-author-avatar-shadow",(0,qe.s)(t.avatarShadow)),$e(a,"about-author-avatar-spacing",(0,et._5)(t.avatarSpacing)),$e(a,"about-author-tagline-typography",(0,Je.parseTypographyProps)(t.taglineTypography)),$e(a,"about-author-tagline-spacing",(0,et._5)(t.taglineSpacing)),$e(a,"about-author-tagline-color",(0,Le.parseColorValue)(t.taglineColor)),$e(a,"about-author-name-typography",(0,Je.parseTypographyProps)(t.nameTypography)),$e(a,"about-author-name-color",(0,Le.parseColorValue)(t.nameColor)),t.enableBio&&($e(a,"about-author-bio-typography",(0,Je.parseTypographyProps)(t.bioTypography)),$e(a,"about-author-bio-spacing",(0,et._5)(t.bioSpacing)),$e(a,"about-author-bio-color",(0,Le.parseColorValue)(t.bioColor))),t.enableSocial&&($e(a,"about-author-social-spacing",(0,et._5)(t.socialSpacing)),$e(a,"about-author-social-link-spacing",(0,et._5)(t.socialLinkSpacing)),"icon"===t.socialDisplay?$e(a,"about-author-social-link-size",t.socialLinkSize):$e(a,"about-author-social-link-padding",(0,Qe.G3)(t.socialLinkPadding)),$e(a,"about-author-social-link-radius",(0,Le.parseBorderRadiusValue)(t.socialLinkRadius)),$e(a,"about-author-social-link-typography",(0,Je.parseTypographyProps)(t.socialLinkTypography)),$e(a,"about-author-social-link-color",(0,Le.parseColorValue)(t.socialLinkColor)),$e(a,"about-author-social-link-bg",(0,Le.parseColorValue)(t.socialLinkBg)),$e(a,"about-author-social-link-hover-color",(0,Le.parseColorValue)(t.socialLinkHoverColor)),$e(a,"about-author-social-link-hover-bg",(0,Le.parseColorValue)(t.socialLinkHoverBg))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:tt}=ke,at={...ke,icon:he.Ao,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:i}=e,s=(0,we.useBlockProps)(),{authorId:c,authorDetails:u,authors:m}=(0,xe.useSelect)((e=>{const{getEditedEntityRecord:t,getUser:a,getUsers:n,getCurrentUser:l}=e("core");let o;return o=i.postId?t("postType",i.postType,i.postId)?.author:l()?.id,{authorId:o,authorDetails:o?a(o):void 0}}),[e.postType,e.postId]),g=void 0===u;return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Layout","gutenmate"),initialOpen:!0},_e().createElement(Ee.__experimentalToggleGroupControl,{className:"gtm-toggle-group-control",label:(0,be.__)("Stacked layout","gutenmate"),value:t.layoutStacked,onChange:e=>{a({layoutStacked:e})}},_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"none",value:"none",label:(0,be.__)("None","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"mobile",value:"mobile",label:(0,be.__)("Mobile","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"always",value:"always",label:(0,be.__)("Always","gutenmate")}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Avatar","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable avatar","gutenmate"),checked:t.enableAvatar,onChange:e=>{a({enableAvatar:e})}}),t.enableAvatar&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.dO,{label:(0,be.__)("Avatar size","gutenmate"),value:t.avatarSize,pxUnitOnly:!0,onChange:e=>{a({avatarSize:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.avatarRadius,onChange:e=>{a({avatarRadius:e})}}),_e().createElement(qe.Z,{label:(0,be.__)("Shadow","gutenmate"),value:t.avatarShadow,onChange:e=>{a({avatarShadow:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.avatarSpacing,onChange:e=>a({avatarSpacing:e})}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Author Name","gutenmate"),initialOpen:!1},_e().createElement(Je.default,{value:t.nameTypography,onChange:e=>a({nameTypography:e})})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Tagline","gutenmate"),initialOpen:!1},_e().createElement(Je.default,{value:t.taglineTypography,onChange:e=>a({taglineTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Tagline spacing","gutenmate"),value:t.taglineSpacing,onChange:e=>a({taglineSpacing:e})})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Bio","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable biography","gutenmate"),checked:t.enableBio,onChange:e=>{a({enableBio:e})}}),t.enableBio&&_e().createElement(Ce.Fragment,null,_e().createElement(Je.default,{value:t.bioTypography,onChange:e=>a({bioTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Bio spacing","gutenmate"),value:t.bioSpacing,onChange:e=>a({bioSpacing:e})}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Social Networks","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable social networks","gutenmate"),checked:t.enableSocial,onChange:e=>{a({enableSocial:e})}}),t.enableSocial&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RadioControl,{className:"gtm-toggle-group-control",label:(0,be.__)("Display","gutenmate"),selected:t.socialDisplay,options:[{label:(0,be.__)("All","gutenmate"),value:"all"},{label:(0,be.__)("Icon only","gutenmate"),value:"icon"},{label:(0,be.__)("Label only","gutenmate"),value:"label"}],onChange:e=>{a({socialDisplay:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Social spacing","gutenmate"),value:t.socialSpacing,onChange:e=>a({socialSpacing:e})}),_e().createElement(et.wH,{label:(0,be.__)("Spacing between items","gutenmate"),value:t.socialLinkSpacing,onChange:e=>a({socialLinkSpacing:e})}),"icon"!==t.socialDisplay&&_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.socialLinkPadding,onChange:e=>{a({socialLinkPadding:e})}}),"icon"===t.socialDisplay&&_e().createElement(Ke.GZ,{label:(0,be.__)("Size","gutenmate"),help:(0,be.__)("Width and height for icon link","gutenmate"),value:t.socialLinkSize,onChange:e=>{a({socialLinkSize:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.socialLinkRadius,onChange:e=>{a({socialLinkRadius:e})}}),_e().createElement(Je.default,{value:t.socialLinkTypography,onChange:e=>a({socialLinkTypography:e})}))),_e().createElement(Ye,{title:(0,be.__)("Social Network Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"socialLinkColor"},{label:(0,be.__)("Background","gutenmate"),attr:"socialLinkBg",gradient:!0},{label:(0,be.__)("Hover color","gutenmate"),attr:"socialLinkHoverColor"},{label:(0,be.__)("Hover background","gutenmate"),attr:"socialLinkHoverBg",gradient:!0}]}),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Author name","gutenmate"),attr:"nameColor"},{label:(0,be.__)("Tagline","gutenmate"),attr:"taglineColor"},{label:(0,be.__)("Bio","gutenmate"),attr:"bioColor"}]})),_e().createElement("div",s,g&&_e().createElement(Ee.Spinner,null),!g&&_e().createElement(Ce.Fragment,null,u?.avatar_urls&&t.enableAvatar&&_e().createElement("div",{className:"wp-block-gtm-about-author__avatar-container"},_e().createElement("img",{className:"avatar",width:t.avatarSize?parseInt(t.avatarSize):40,src:u.avatar_urls[Object.keys(u.avatar_urls).pop()],alt:u.name})),_e().createElement("div",{className:"wp-block-gtm-about-author__info-container"},(t.tagline||n)&&_e().createElement("div",{className:"wp-block-gtm-about-author__tagline"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Write tagline","gutenmate"),value:t.tagline,onChange:e=>a({tagline:e})})),_e().createElement("div",{className:"wp-block-gtm-about-author__name"},_e().createElement("span",null,u?.name||(0,be.__)("No author name","gutenmate"))),t.enableBio&&_e().createElement("div",{className:"wp-block-gtm-about-author__bio"},_e().createElement("span",null,u?.description||(0,be.__)("No biography","gutenmate"))),t.enableSocial&&u?.meta&&_e().createElement("div",{className:"wp-block-gtm-about-author__social-networks"},_e().createElement(Ze,{socials:u.meta.gtm_user_social_networks,previewMode:!0}))))))},variations:[],styles:[{name:"gtm-about-author-light",label:(0,be.__)("Light","gutenmate")},{name:"gtm-about-author-dark",label:(0,be.__)("Dark","gutenmate")}]};var nt=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/author-socials","title":"Author Social Networks","description":"Display the author\'s social media profiles","category":"gtm-posts","keywords":["gutenmate","author","social"],"usesContext":["postId","postType"],"attributes":{"socialDisplay":{"type":"string","enum":["all","icon","label"],"default":"all"},"socialLinkSpacing":{"type":"object","default":{}},"socialLinkTypography":{"type":"object","default":{}},"socialLinkPadding":{"type":"object","default":{}},"socialLinkRadius":{"type":["string","object"],"default":""},"socialLinkSize":{"type":"object","default":{}},"socialLinkColor":{"type":"string","default":""},"socialLinkBg":{"type":"object","default":{}},"socialLinkHoverColor":{"type":"string","default":""},"socialLinkHoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-author-socials-editor-style","style":"gtm-author-socials-style"}');We(nt.name,nt.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",`gtm-has-social-display-${t.socialDisplay}`)),$e(a,"author-socials-link-spacing",(0,et._5)(t.socialLinkSpacing)),"icon"===t.socialDisplay?$e(a,"author-socials-link-size",t.socialLinkSize):$e(a,"author-socials-link-padding",(0,Qe.G3)(t.socialLinkPadding)),$e(a,"author-socials-link-radius",(0,Le.parseBorderRadiusValue)(t.socialLinkRadius)),$e(a,"author-socials-link-typography",(0,Je.parseTypographyProps)(t.socialLinkTypography)),$e(a,"author-socials-link-color",(0,Le.parseColorValue)(t.socialLinkColor)),$e(a,"author-socials-link-bg",(0,Le.parseColorValue)(t.socialLinkBg)),$e(a,"author-socials-link-hover-color",(0,Le.parseColorValue)(t.socialLinkHoverColor)),$e(a,"author-socials-link-hover-bg",(0,Le.parseColorValue)(t.socialLinkHoverBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:lt}=nt,ot={...nt,icon:he.Ao,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:i}=e,s=(0,we.useBlockProps)(),{authorId:c,authorDetails:u,authors:m}=(0,xe.useSelect)((e=>{const{getEditedEntityRecord:t,getUser:a,getUsers:n,getCurrentUser:l}=e("core");let o;return o=i.postId?t("postType",i.postType,i.postId)?.author:l()?.id,{authorId:o,authorDetails:o?a(o):void 0}}),[e.postType,e.postId]),g=void 0===u;return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Social Networks","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{className:"gtm-toggle-group-control",label:(0,be.__)("Display","gutenmate"),selected:t.socialDisplay,options:[{label:(0,be.__)("All","gutenmate"),value:"all"},{label:(0,be.__)("Icon only","gutenmate"),value:"icon"},{label:(0,be.__)("Label only","gutenmate"),value:"label"}],onChange:e=>{a({socialDisplay:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Spacing between items","gutenmate"),value:t.socialLinkSpacing,onChange:e=>a({socialLinkSpacing:e})}),"icon"!==t.socialDisplay&&_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.socialLinkPadding,onChange:e=>{a({socialLinkPadding:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.socialLinkRadius,onChange:e=>{a({socialLinkRadius:e})}}),_e().createElement(Je.default,{value:t.socialLinkTypography,onChange:e=>a({socialLinkTypography:e})}),"label"!==t.socialDisplay&&_e().createElement(Ke.GZ,{label:(0,be.__)("Icon Size","gutenmate"),help:(0,be.__)("Width and height for icon link","gutenmate"),value:t.socialLinkSize,onChange:e=>{a({socialLinkSize:e})}})),_e().createElement(Ye,{title:(0,be.__)("Social Network Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"socialLinkColor"},{label:(0,be.__)("Background","gutenmate"),attr:"socialLinkBg",gradient:!0},{label:(0,be.__)("Hover color","gutenmate"),attr:"socialLinkHoverColor"},{label:(0,be.__)("Hover background","gutenmate"),attr:"socialLinkHoverBg",gradient:!0}]})),_e().createElement("div",s,g&&_e().createElement(Ee.Spinner,null),!g&&_e().createElement(Ce.Fragment,null,u?.meta&&_e().createElement(Ze,{socials:u.meta.gtm_user_social_networks,previewMode:!0}))))}};var rt=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/amp-code","title":"AMP Code","description":"Add an AMP component code.","category":"gtm-blocks","keywords":["gutenmate","amp","code"],"attributes":{"content":{"type":"string","source":"html"},"script":{"type":"string"}},"supports":{"customClassName":false,"className":false,"html":false},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-amp-code-editor-style","style":"gtm-amp-code-style"}');const{name:it}=rt,st={...rt,icon:he.aS,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,name:l}=e,o=(0,we.useBlockProps)({className:fe()("gtm-block")});return _e().createElement("div",o,n&&_e().createElement(Ce.Fragment,null,_e().createElement("div",{className:"wp-block-gtm-amp-code__label"},(0,be.__)("AMP scripts","gutenmate")),_e().createElement(we.PlainText,{value:t.script,onChange:e=>a({script:e}),placeholder:(0,be.__)("Paste AMP script tags here…"),"aria-label":(0,be.__)("AMP script","gutenmate")}),_e().createElement("div",{className:"wp-block-gtm-amp-code__label"},(0,be.__)("AMP code","gutenmate"))," "),_e().createElement(we.PlainText,{value:t.content,onChange:e=>a({content:e}),placeholder:(0,be.__)("Paste AMP code here…"),"aria-label":(0,be.__)("AMP code","gutenmate")}))},save:function({attributes:e}){return _e().createElement(Ce.RawHTML,null,e.content)},variations:[]};var ct=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/asd","title":"Ad Slot","description":"Add a customizable ads.","category":"gtm-asd","keywords":["gutenmate","box","ad","ads","advertisement"],"attributes":{"customCode":{"type":"string","source":"html","selector":":scope>div>*"},"preferredWidth":{"type":"integer"},"preferredHeight":{"type":"integer"},"alwaysShow":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-asd-editor-style","style":"gtm-asd-style"}'),ut=[{name:"responsive",title:(0,be.__)("Responsive Ad","gutenmate"),isDefault:!0,attributes:{preferredWidth:void 0,preferredHeight:void 0},scope:["inserter","transform"],keywords:["ad"]},{name:"970x250",title:(0,be.__)("970×250","gutenmate"),attributes:{preferredWidth:970,preferredHeight:250},scope:["inserter","transform"]},{name:"970x90",title:(0,be.__)("970×90","gutenmate"),attributes:{preferredWidth:970,preferredHeight:90},scope:["inserter","transform"]},{name:"728x90",title:(0,be.__)("728×90","gutenmate"),attributes:{preferredWidth:728,preferredHeight:90},scope:["inserter","transform"]},{name:"468x60",title:(0,be.__)("468×60","gutenmate"),attributes:{preferredWidth:468,preferredHeight:60},scope:["inserter","transform"]},{name:"336x280",title:(0,be.__)("336×280","gutenmate"),attributes:{preferredWidth:336,preferredHeight:280},scope:["inserter","transform"]},{name:"300x1050",title:(0,be.__)("300×1050","gutenmate"),attributes:{preferredWidth:300,preferredHeight:1050},scope:["inserter","transform"]},{name:"300x600",title:(0,be.__)("300×600","gutenmate"),attributes:{preferredWidth:300,preferredHeight:600},scope:["inserter","transform"]},{name:"300x200",title:(0,be.__)("300×200","gutenmate"),attributes:{preferredWidth:300,preferredHeight:200},scope:["inserter","transform"]},{name:"300x250",title:(0,be.__)("300×250","gutenmate"),attributes:{preferredWidth:300,preferredHeight:250},scope:["inserter","transform"]},{name:"300x100",title:(0,be.__)("300×100","gutenmate"),attributes:{preferredWidth:300,preferredHeight:100},scope:["inserter","transform"]},{name:"300x50",title:(0,be.__)("300×50","gutenmate"),attributes:{preferredWidth:300,preferredHeight:50},scope:["inserter","transform"]},{name:"250x250",title:(0,be.__)("250×250","gutenmate"),attributes:{preferredWidth:250,preferredHeight:250},scope:["inserter","transform"]},{name:"200x200",title:(0,be.__)("200×200","gutenmate"),attributes:{preferredWidth:200,preferredHeight:200},scope:["inserter","transform"]},{name:"160x600",title:(0,be.__)("160×600","gutenmate"),attributes:{preferredWidth:160,preferredHeight:600},scope:["inserter","transform"]}];const{name:mt}=ct,gt={...ct,icon:he.Hq,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=!t.customCode,s=(0,we.useBlockProps)({className:fe()("gtm-block",{"wp-block-gtm-asd--empty":i})}),c={width:"100%"},u=t.preferredWidth&&t.preferredHeight;return u&&(c.maxWidth=t.preferredWidth+"px",c.aspectRatio=`${t.preferredWidth}/${t.preferredHeight}`),_e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Advertisement","gutenmate"),initialOpen:!0},_e().createElement(Ee.TextareaControl,{value:t.customCode,onChange:e=>{a({customCode:e})},label:(0,be.__)("Custom Ad Code","gutenmate"),help:(0,be.__)("Enter an HTML code or Shortcodes to display the advertisement.","gutenmate")}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Always display","gutenmate"),help:(0,be.__)("Turn on this option to display these ads at all times unless there is no ad code.","gutenmate"),checked:t.alwaysShow,onChange:e=>{a({alwaysShow:e})}}))),_e().createElement("div",s,_e().createElement("div",{className:"wp-block-gtm-asd__placeholder",style:c},!i&&_e().createElement(he.Sx,{className:"wp-block-gtm-asd__check"}),u&&(0,be.sprintf)((0,be.__)("Ad slot (%sx%s)","gutenmate"),t.preferredWidth,t.preferredHeight),!u&&(0,be.__)("Ad slot (responsive)","gutenmate"))))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("")}),n=(t.customCode??"").trim();if(n)return _e().createElement("div",a,_e().createElement("div",null,_e().createElement(Ce.RawHTML,null,n)))},variations:ut};var pt=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/box","title":"Box","description":"Add a customizable box.","category":"gtm-layout","keywords":["gutenmate","box","area"],"attributes":{},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":{"hideEmptyInnerBlock":true},"gtmBlockProps":{"width":true,"height":true,"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true,"flexLayout":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-box-editor-style","style":"gtm-box-style"}'),dt={from:[{type:"block",blocks:["core/group"],transform:(e,t)=>{let a=(0,Te.cloneDeep)(e);return"vertical"==e.layout?.orientation?a.gtmFlexDirection={lg:"column"}:"horizontal"==e.layout?.orientation&&(a.gtmFlexDirection={lg:"row"}),"right"==e.layout?.justifyContent?a.gtmFlexJustifyContent={lg:"flex-end"}:"center"==e.layout?.justifyContent?a.gtmFlexJustifyContent={lg:"center"}:"left"==e.layout?.justifyContent&&(a.gtmFlexJustifyContent={lg:"flex-start"}),e.layout?.flexWrap&&(a.gtmFlexWrap={lg:e.layout?.flexWrap}),(0,de.createBlock)(pt.name,a,t)}}],to:[{type:"block",blocks:["core/group"],transform:(e,t)=>{let a=(0,Te.cloneDeep)(e);return"column"==e.gtmFlexDirection?.lg?a.layout={...a.layout??{},type:"flex",orientation:"vertical"}:"row"==e.gtmFlexDirection?.lg&&(a.layout={...a.layout??{},type:"flex",orientation:"horizontal"}),"flex-end"==e.gtmFlexJustifyContent?.lg?a.layout={...a.layout??{},type:"flex",justifyContent:"right"}:"center"==e.gtmFlexJustifyContent?.lg?a.layout={...a.layout??{},type:"flex",justifyContent:"center"}:"flex-start"==e.gtmFlexJustifyContent?.lg&&(a.layout={...a.layout??{},type:"flex",justifyContent:"left"}),e.gtmFlexWrap?.lg&&(a.layout={...a.layout??{},type:"flex",flexWrap:e.gtmFlexWrap?.lg}),(0,de.createBlock)("core/group",a,t)}}]};const{name:bt}=pt,ht={...pt,icon:he.I8,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block")}),s=(0,we.useInnerBlocksProps)(i,{template:[["core/paragraph"]]});return _e().createElement(Ce.Fragment,null,_e().createElement("div",s))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("")});return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},transforms:dt,variations:[],styles:[{name:"gtm-box-light",label:(0,be.__)("Light","gutenmate")},{name:"gtm-box-dark",label:(0,be.__)("Dark","gutenmate")},{name:"gtm-box-outline",label:(0,be.__)("Outline","gutenmate")}]};var yt=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/breadcrumbs","title":"Breadcrumbs","description":"Add a customizable breadcrumbs.","category":"gtm-layout","keywords":["gutenmate","breadcrumbs","link"],"attributes":{"linkColor":{"type":"string","default":""},"linkHoverColor":{"type":"string","default":""},"separatorSymbol":{"type":"string","default":""},"separatorSpacing":{"type":"object","default":{}},"separatorColor":{"type":"string","default":""},"pageTitleColor":{"type":"string","default":""}},"supports":{"align":["wide","full"],"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-breadcrumbs-editor-style","style":"gtm-breadcrumbs-style"}');We(yt.name,yt.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"breadbrumbs-separator-spacing",(0,et._5)(t.separatorSpacing)),$e(a,"breadbrumbs-link-color",(0,Le.parseColorValue)(t.linkColor)),$e(a,"breadbrumbs-link-hover-color",(0,Le.parseColorValue)(t.linkHoverColor)),$e(a,"breadbrumbs-separator-color",(0,Le.parseColorValue)(t.separatorColor)),$e(a,"breadbrumbs-page-title-color",(0,Le.parseColorValue)(t.pageTitleColor)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:_t}=yt,vt={...yt,icon:he.d7,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Separator","gutenmate"),initialOpen:!0},_e().createElement(Ee.TextControl,{label:(0,be.__)("Symbol","gutenmate"),placeholder:"›",value:t.separatorSymbol,onChange:e=>a({separatorSymbol:e})}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.separatorSpacing,onChange:e=>a({separatorSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Link color","gutenmate"),attr:"linkColor"},{label:(0,be.__)("Link hover color","gutenmate"),attr:"linkHoverColor"},{label:(0,be.__)("Separator color","gutenmate"),attr:"separatorColor"},{label:(0,be.__)("Page title color","gutenmate"),attr:"pageTitleColor"}]})),_e().createElement("div",i,_e().createElement("a",{href:"#",onClick:e=>e.preventDefault()},(0,be.__)("Home","gutenmate")),_e().createElement("span",{className:"gtm-breadcrumbs__separator"},t.separatorSymbol||"›"),_e().createElement("span",{className:"gtm-breadcrumbs__page-title"},(0,be.__)("Page title","gutenmate"))))},variations:[],styles:[{name:"gtm-breadcrumbs-light",label:(0,be.__)("Light","gutenmate")},{name:"gtm-breadcrumbs-dark",label:(0,be.__)("Dark","gutenmate")}]};a(4625),a(6187);var ft=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/content-area","title":"Content area","description":"Add content area with sidebar.","category":"gtm-layout","keywords":["gutenmate","area","grid","content"],"attributes":{"contentLayout":{"type":"string","default":"right-sidebar"},"numberOfSidebars":{"type":"integer","default":1,"minimum":1,"maximum":4},"contentSpacing":{"type":"object","default":{}},"enableSeparator":{"type":"boolean","default":false},"separatorStyle":{"type":"string","default":"solid"},"separatorThickness":{"type":"string","default":""},"separatorColor":{"type":"string","default":""}},"supports":{"align":["wide"],"html":false,"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true},"gtmResponsiveAttributes":true},"styles":[{"name":"gtm-content-area-fluid","label":"Fluid"}],"editorScript":"gtm-block-editor-script","editorStyle":"gtm-content-area-editor-style","style":"gtm-content-area-style"}');const kt=["gtm/content-area-column"],Ct=["gtm/content-area-column",{templateLock:!1}],Et=(e=1)=>[["gtm/content-area-column",{role:"content",templateLock:!1}],...(0,Te.times)(e,(()=>Ct))];We(ft.name,ft.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",`gtm-has-content-area-layout-${t.contentLayout}`,{"gtm-has-content-area-separator":t.enableSeparator})),$e(a,"content-area-content-spacing",(0,et._5)(t.contentSpacing)),$e(a,"content-area-separator-style",t.separatorStyle),$e(a,"content-area-separator-color",(0,Le.parseColorValue)(t.separatorColor)),$e(a,"content-area-separator-thickness",t.separatorThickness),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));var wt=[{name:"left-sidebar",title:(0,be.__)("Content & left sidebar","gutenmate"),description:(0,be.__)("Display a content with left sidebar.","gutenmate"),isDefault:!1,attributes:{contentLayout:"left-sidebar",numberOfSidebars:1},isActive:e=>"left-sidebar"===e.contentLayout,scope:["transform"]},{name:"right-sidebar",title:(0,be.__)("Content & right sidebar","gutenmate"),description:(0,be.__)("Display a content with right sidebar.","gutenmate"),isDefault:!0,attributes:{contentLayout:"right-sidebar",numberOfSidebars:1},isActive:e=>"right-sidebar"===e.contentLayout,scope:["transform"]},{name:"double-sidebar",title:(0,be.__)("Content & double sidebar","gutenmate"),description:(0,be.__)("Display a content with double sidebar.","gutenmate"),isDefault:!1,attributes:{contentLayout:"double-sidebar",numberOfSidebars:2},isActive:e=>"double-sidebar"===e.contentLayout,scope:["transform"]}];const{name:St}=ft,xt={...ft,icon:he.I8,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,r=(0,we.useBlockProps)(),i=(0,we.useInnerBlocksProps)(r,{allowedBlocks:kt,template:Et(t.numberOfSidebars),orientation:"horizontal",renderAppender:!1,templateLock:"all"});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Content","gutenmate"),initialOpen:!0},_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),help:(0,be.__)("Gap between content and sidebar","gutenmate"),value:t.contentSpacing,onChange:e=>{a({contentSpacing:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Separator","gutenmate"),initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable separator","gutenmate"),checked:t.enableSeparator,onChange:e=>{a({enableSeparator:e})}}),t.enableSeparator&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RadioControl,{label:(0,be.__)("Style","gutenmate"),options:[{label:(0,be.__)("Solid line","gutenmate"),value:"solid"},{label:(0,be.__)("Dotted","gutenmate"),value:"dotted"},{label:(0,be.__)("Dashed","gutenmate"),value:"dashed"}],selected:t.separatorStyle,onChange:e=>{a({separatorStyle:e})}}),_e().createElement(Ke.dO,{label:(0,be.__)("Thickness","gutenmate"),value:t.separatorThickness,min:"1",max:"50",pxUnitOnly:!0,onChange:e=>{a({separatorThickness:e})}}))),t.enableSeparator&&_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Separator color","gutenmate"),attr:"separatorColor"}]})),_e().createElement("div",i))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save();return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},variations:wt};var Tt=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/content-area-column","title":"Content area column","description":"Add column into content area block.","category":"gtm-layout","keywords":["gutenmate","area","grid","content","column"],"parent":["gtm/content-area"],"attributes":{"role":{"type":"string","enum":["sidebar","content"],"default":"sidebar"},"width":{"type":"string","default":""},"enableSticky":{"type":"boolean","default":false}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-content-area-column-editor-style","style":"gtm-content-area-column-style"}');We(Tt.name,Tt.name,(function(e,t){let a={classes:[],style:{}};const n="sidebar"==t.role;return a.classes.push(fe()("gtm-block",{"gtm-has-content-area-column-sticky":n&&t.enableSticky,[`gtm-has-content-area-column-role-${t.role}`]:t.role})),n&&$e(a,"content-area-column-width",t.width),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));var Bt=[{name:"sidebar",title:(0,be.__)("Sidebar area","gutenmate"),description:(0,be.__)("Display a sidebar for content.","gutenmate"),isDefault:!0,attributes:{role:"sidebar"},isActive:e=>"sidebar"===e.role,scope:["block"]},{name:"content",title:(0,be.__)("Content area","gutenmate"),description:(0,be.__)("Display a content.","gutenmate"),isDefault:!0,attributes:{role:"content"},isActive:e=>"content"===e.role,scope:["block"]}];const{name:It}=Tt,Pt={...Tt,icon:he.Y_,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,{hasChildBlocks:r}=(0,xe.useSelect)((e=>{const{getBlockOrder:t}=e(we.store);return{hasChildBlocks:t(l).length>0}}),[l]),i=(0,we.useBlockProps)(),s=(0,we.useInnerBlocksProps)(i,{templateLock:!1,renderAppender:r?void 0:we.InnerBlocks.ButtonBlockAppender}),c="sidebar"==t.role;return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,c&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Sidebar area","gutenmate"),initialOpen:!0},_e().createElement(Ke.dO,{label:(0,be.__)("Width","gutenmate"),value:t.width,min:"100",max:"1000",onChange:e=>{a({width:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable sticky sidebar","gutenmate"),help:(0,be.__)("Sidebar will stuck on screen when scrolling down through a long content.","gutenmate"),checked:t.enableSticky,onChange:e=>{a({enableSticky:e})}}))),_e().createElement("div",s))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save();return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},variations:Bt};var Lt=a(932),Ot=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/custom-field","title":"Custom field","description":"Add content from custom field.","category":"gtm-posts","keywords":["gutenmate","custom field","field","meta"],"usesContext":["postId","postType","queryId"],"attributes":{"metaKey":{"type":"string","default":""},"displayCondition":{"type":"string","enum":["hidden-no-val","hidden-empty","display-alt","display-all"],"default":"hidden-no-val"},"altText":{"type":"string","default":""},"prefix":{"type":"string","default":""},"suffix":{"type":"string","default":""},"label":{"type":"string","default":""},"labelTypography":{"type":"object","default":{}},"labelSpacing":{"type":"object","default":{}},"labelColor":{"type":"string","default":""},"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"iconWidth":{"type":"object","default":{}},"iconRadius":{"type":["string","object"],"default":""},"iconSpacing":{"type":"object","default":{}},"iconColor":{"type":"string","default":""},"iconBg":{"type":"object","default":{}},"iconHoverColor":{"type":"string","default":""},"iconHoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"width":true,"height":true,"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-custom-field-editor-style","style":"gtm-custom-field-style"}'),At=a(7798),Ht=window.wp.date,jt=a(9972);gtm_config.icons.date;const Nt=(0,Lt.Z)(Ee.RadioControl)`
	.components-base-control__help {
		margin-top: 8px;
	}
`;We(Ot.name,Ot.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"custom-field-icon-size",t.iconSize),$e(a,"custom-field-label-typography",(0,Je.parseTypographyProps)(t.labelTypography)),$e(a,"custom-field-label-spacing",(0,et._5)(t.labelSpacing)),$e(a,"custom-field-label-color",(0,Le.parseColorValue)(t.labelColor)),$e(a,"custom-field-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"custom-field-icon-width",t.iconWidth),$e(a,"custom-field-icon-radius",(0,Le.parseBorderRadiusValue)(t.iconRadius)),$e(a,"custom-field-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"custom-field-icon-bg",(0,Le.parseColorValue)(t.iconBg)),$e(a,"custom-field-icon-hover-color",(0,Le.parseColorValue)(t.iconHoverColor)),$e(a,"custom-field-icon-hover-bg",(0,Le.parseColorValue)(t.iconHoverBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Rt}=Ot,Vt={...Ot,icon:he.CP,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{postType:r,postId:i}}=e,s=(0,we.useBlockProps)(),[c,u]=(0,At.useEntityProp)("postType",r,"meta",i),m="display-alt"==t.displayCondition;let g=(0,be.__)("Custom field","gutenmate");g=m?t.altText:c&&t.metaKey&&c.hasOwnProperty(t.metaKey)&&""!==c[t.metaKey]?c[t.metaKey]:(0,be.__)("No values","gutenmate");let p="";return"hidden-no-val"==t.displayCondition?p=(0,be.__)("The block will be hidden when there is no values assigned","gutenmate"):"hidden-empty"==t.displayCondition?p=(0,be.__)("The block will be hidden when the value is False or Zero or no values","gutenmate"):m?p=(0,be.__)("The block will be shown with an alternate text instead of getting data from custom field","gutenmate"):"display-all"==t.displayCondition&&(p=(0,be.__)("The block will always be shown","gutenmate")),_e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Custom field","gutenmate"),initialOpen:!0},"display-alt"!=t.displayCondition&&_e().createElement(Ee.TextControl,{label:(0,be.__)("Name","gutenmate"),help:(0,be.__)("A name of custom field, aka a post meta key.","gutenmate"),value:t.metaKey,onChange:e=>a({metaKey:e})}),_e().createElement(Nt,{label:(0,be.__)("Display condition","gutenmate"),selected:t.displayCondition,help:p,options:[{label:(0,be.__)("Hide when no values","gutenmate"),value:"hidden-no-val"},{label:(0,be.__)("Hide when empty","gutenmate"),value:"hidden-empty"},{label:(0,be.__)("Display alternate text","gutenmate"),value:"display-alt"},{label:(0,be.__)("Display as is","gutenmate"),value:"display-all"}],onChange:e=>{a({displayCondition:e})}}),"display-alt"===t.displayCondition&&_e().createElement(Ee.TextControl,{label:(0,be.__)("Alternate text","gutenmate"),help:(0,be.__)("A text for displaying instead of getting data from custom field","gutenmate"),value:t.altText,autoComplete:!1,onChange:e=>a({altText:e})}),_e().createElement(Ee.TextControl,{label:(0,be.__)("Prefix","gutenmate"),help:(0,be.__)("A beginning text of the actual text","gutenmate"),value:t.prefix,autoComplete:!1,onChange:e=>a({prefix:e})}),_e().createElement(Ee.TextControl,{label:(0,be.__)("Suffix","gutenmate"),help:(0,be.__)("An ending text of the actual text","gutenmate"),value:t.suffix,autoComplete:!1,onChange:e=>a({suffix:e})})),_e().createElement(Ye,{title:(0,be.__)("Label","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Label color","gutenmate"),attr:"labelColor"}]},_e().createElement(Ee.TextControl,{label:(0,be.__)("Label","gutenmate"),value:t.label,onChange:e=>a({label:e})}),_e().createElement(Je.default,{value:t.labelTypography,onChange:e=>a({labelTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Label spacing","gutenmate"),value:t.labelSpacing,onChange:e=>a({labelSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Icon","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon background","gutenmate"),attr:"iconBg",gradient:!0},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"iconHoverColor"},{label:(0,be.__)("Icon hover background","gutenmate"),attr:"iconHoverBg",gradient:!0}]},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),help:(0,be.__)("A size of the icon","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon width","gutenmate"),help:(0,be.__)("A width of the icon container","gutenmate"),value:t.iconWidth,onChange:e=>{a({iconWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.iconRadius,onChange:e=>{a({iconRadius:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),help:(0,be.__)("A space between the icon and the text","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})}))),_e().createElement("div",s,t.icon&&_e().createElement("i",{className:`gtm-icon ${t.icon}`}),t.label&&_e().createElement("span",{className:"wp-block-gtm-custom-field__label"},t.label),_e().createElement("span",{className:"wp-block-gtm-custom-field__content"},t.prefix&&_e().createElement("span",{className:"wp-block-gtm-custom-field__prefix"},t.prefix),g,t.suffix&&_e().createElement("span",{className:"wp-block-gtm-custom-field__suffix"},t.suffix))))},save:function(e){return null},variations:[],styles:[{name:"gtm-custom-field-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-custom-field-tiny",label:(0,be.__)("Tiny","gutenmate")},{name:"gtm-custom-field-featured",label:(0,be.__)("Featured","gutenmate")},{name:"gtm-custom-field-featured-mobile",label:(0,be.__)("Mobile featured","gutenmate")},{name:"gtm-custom-field-tall",label:(0,be.__)("Tall","gutenmate")}]};var zt=a(1932),Ft=(a(6778),JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/decorated-list","title":"Decorated List","description":"Add a customizable decorated list.","category":"gtm-blocks","textdomain":"gutenmate","keywords":["gutenmate","list"],"attributes":{"items":{"type":"array","source":"query","selector":"li","query":{"line":{"type":"string","source":"html"}},"default":[]},"listSpacing":{"type":"object","default":{}},"columns":{"type":"object","default":{}},"bulletType":{"type":"string","default":"icon"},"bulletFontSize":{"type":"object","default":{}},"bulletWidth":{"type":"object","default":{}},"bulletSpacing":{"type":"object","default":{}},"bulletRadius":{"type":["string","object"],"default":""},"bulletColor":{"type":"string","default":""},"bulletBg":{"type":"object","default":{}},"icon":{"type":"string","default":"chevron-right"},"numberStart":{"type":"number","default":"1"},"enableTimeline":{"type":"boolean","default":false},"timelineThickness":{"type":"string","default":""},"timelineColor":{"type":"string","default":""},"timelineOpacity":{"type":"number"}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-decorated-list-editor-style","style":"gtm-decorated-list-style"}')),Mt=window.wp.dom;const Dt=e=>{const{identifier:t,className:a,value:n=[],label:l,placeholder:o,onChange:r=Te.noop,onRemove:i=Te.noop}=e;let s=[""];n.length>0&&(s=Array.isArray(n)?n:[n]);const{selectionChange:c}=(0,xe.useDispatch)(we.store),{clientId:u}=(0,we.useBlockEditContext)(),m=(0,Le.useIdentifier)(t+"-item");return _e().createElement(Ce.Fragment,null,_e().createElement("div",{className:"gtm-text-list-edit"},l&&_e().createElement("div",{className:"gtm-text-list-edit__title"},l),_e().createElement("ul",null,s.map(((e,t)=>_e().createElement(we.RichText,{key:m(t),identifier:m(t),disableLineBreaks:!0,tagName:"li",onChange:e=>{let a=[...s];a[t]=e,r(a)},value:e,"aria-label":o||(0,be.__)("List text here","gutenmate"),placeholder:o||(0,be.__)("List text here","gutenmate"),onSplit:(e,t)=>e,onMerge:e=>{if(e){if(t+1!=s.length){let e=[...s];e[t+1]=e[t]+e[t+1],e.splice(t,1),r(e)}}else if(t>0){let e=[...s];e[t-1]=e[t-1]+e[t],e.splice(t,1);const a={start:{clientId:u,attributeKey:m(t-1),offset:s[t-1].length}};a.end=a.start,c(a),r(e)}},onReplace:e=>{e=e.reduce(((e,t)=>("string"==typeof t?e.push(t):"object"==typeof t&&("core/paragraph"===t.name?e=e.concat(t.attributes.content.split("<br>")):"core/list-item"===t.name&&(e=e.concat(t.innerBlocks.map((e=>e.attributes.content))))),e)),[]);let a=s.slice();a.splice(t,1,...e),r(a);const n={start:{clientId:u,attributeKey:m(t+1),offset:0}};n.end=n.start,c(n)},onRemove:e=>{}}))))))},Wt=({value:e,className:t})=>{if(function(e){const t=e?.length,a=1==e?.length&&""==e[0];return t&&!a}(e))return _e().createElement("ul",{className:t},e.map((e=>_e().createElement("li",null,e))))};var $t=a(4115);We(Ft.name,Ft.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",`gtm-has-list-bullet-type-${t.bulletType}`,{[`gtm-has-list-icon-${t.icon}`]:t.icon},{"gtm-has-list-timeline":t.enableTimeline})),$e(a,"list-columns",t.columns),$e(a,"list-spacing",(0,et._5)(t.listSpacing)),$e(a,"list-bullet-font-size",t.bulletFontSize),$e(a,"list-bullet-width",t.bulletWidth),$e(a,"list-bullet-spacing",(0,et._5)(t.bulletSpacing)),$e(a,"list-bullet-radius",(0,Le.parseBorderRadiusValue)(t.bulletRadius)),$e(a,"list-bullet-color",(0,Le.parseColorValue)(t.bulletColor)),$e(a,"list-bullet-bg",(0,Le.parseColorValue)(t.bulletBg)),"numbers"==t.bulletType&&$e(a,"list-number-start",t.numberStart),t.enableTimeline&&($e(a,"list-timeline-color",(0,Le.parseColorValue)(t.timelineColor)),t.timelineOpacity&&$e(a,"list-timeline-opacity",parseInt(t.timelineOpacity)/100),$e(a,"list-timeline-thickness",t.timelineThickness)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Gt}=Ft,Ut={...Ft,icon:he.Jz,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)(),s="icon"==t.bulletType?"ul":"ol";return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("List","gutenmate"),initialOpen:!1},_e().createElement(et.wH,{label:(0,be.__)("Item spacing","gutenmate"),value:t.listSpacing,onChange:e=>{a({listSpacing:e})}}),_e().createElement($t.x,{label:(0,be.__)("Columns","gutenmate"),value:t.columns,min:"1",max:"6",step:"1",enableResponsive:!0,onChange:e=>{a({columns:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Bullet","gutenmate"),initialOpen:!1},_e().createElement(Ee.RadioControl,{label:(0,be.__)("Bullet type","gutenmate"),selected:t.bulletType,options:[{label:(0,be.__)("Icon","gutenmate"),value:"icon"},{label:(0,be.__)("Numbers","gutenmate"),value:"numbers"}],onChange:e=>{a({bulletType:e})}}),"icon"==t.bulletType&&_e().createElement(zt.Z,{label:(0,be.__)("Icon","gutenmate"),value:t.icon,onChange:e=>{a({icon:e})}}),"numbers"==t.bulletType&&_e().createElement(Ee.TextControl,{label:(0,be.__)("Start value","gutenmate"),type:"number",autoComplete:"off",value:t.numberStart,step:1,onChange:e=>{a({numberStart:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Bullet Size","gutenmate"),value:t.bulletFontSize,min:"5",max:"50",onChange:e=>{a({bulletFontSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Bullet Area","gutenmate"),value:t.bulletWidth,min:"10",max:"100",onChange:e=>{a({bulletWidth:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Space from text","gutenmate"),value:t.bulletSpacing,onChange:e=>{a({bulletSpacing:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.bulletRadius,onChange:e=>{a({bulletRadius:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable timeline style","gutenmate"),checked:t.enableTimeline,onChange:e=>{a({enableTimeline:e})}}),t.enableTimeline&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RangeControl,{label:(0,be.__)("Line opacity","gutenmate"),value:t.timelineOpacity,onChange:e=>{a({timelineOpacity:e})},min:0,max:100,step:10,allowReset:!0}),_e().createElement(Ke.dO,{label:(0,be.__)("Line thickness","gutenmate"),value:t.timelineThickness,pxUnitOnly:!0,min:"1",max:"20",onChange:e=>{a({timelineThickness:e})}}))),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Bullet color","gutenmate"),attr:"bulletColor"},{label:(0,be.__)("Bullet background","gutenmate"),attr:"bulletBg",gradient:!0},...t.enableTimeline?[{label:(0,be.__)("Timeline color","gutenmate"),attr:"timelineColor"}]:[]]})),_e().createElement("div",i,_e().createElement(s,null,_e().createElement(Dt,{identifier:"decorated-list","aria-label":(0,be.__)("List text","gutenmate"),placeholder:(0,be.__)("List text here","gutenmate"),value:t.items.map((e=>e?.line)),onChange:e=>{a({items:e.map((e=>({line:e})))})}}))))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save(),n="icon"==t.bulletType?"ul":"ol";return _e().createElement("div",a,_e().createElement(n,null,t.items.map((e=>_e().createElement("li",null,e?.line)))))},styles:[{name:"gtm-decorated-list-pill",label:(0,be.__)("Pill","gutenmate")},{name:"gtm-decorated-list-light-box",label:(0,be.__)("Light box","gutenmate")},{name:"gtm-decorated-list-dark-box",label:(0,be.__)("Dark box","gutenmate")}]};var Zt=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/directions","title":"Directions","description":"Add a customizable directions.","category":"gtm-blocks","keywords":["gutenmate","steps","directions"],"attributes":{"gap":{"type":"object","default":{}},"title":{"type":"string","source":"html","selector":".wp-block-gtm-directions__title span","default":""},"titleTypography":{"type":"object","default":{}},"titleColor":{"type":"string","default":""},"contentTypography":{"type":"object","default":{}},"contentColor":{"type":"string","default":""}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-directions-editor-style","style":"gtm-directions-style"}');const qt=["gtm/direction"];We(Zt.name,Zt.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"directions-gap",(0,et._5)(t.gap)),$e(a,"directions-title-typography",(0,Je.parseTypographyProps)(t.titleTypography)),$e(a,"directions-title-color",(0,Le.parseColorValue)(t.titleColor)),$e(a,"directions-content-typography",(0,Je.parseTypographyProps)(t.contentTypography)),$e(a,"directions-content-color",(0,Le.parseColorValue)(t.contentColor)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Jt}=Zt,Kt={...Zt,icon:he.Wh,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,xe.useSelect)((e=>e(we.store).hasSelectedInnerBlock(o,!0))),s=(0,we.useBlockProps)({className:fe()("gtm-block")}),c=(0,we.useInnerBlocksProps)({className:"wp-block-gtm-directions__list"},{template:[qt],allowedBlocks:qt,renderAppender:!(!i&&!n)&&we.InnerBlocks.ButtonBlockAppender});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Items","gutenmate"),initialOpen:!0},_e().createElement(et.wH,{label:(0,be.__)("Space between items","gutenmate"),value:t.gap,onChange:e=>{a({gap:e})}})),_e().createElement(Ye,{title:(0,be.__)("Title","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("color","gutenmate"),attr:"titleColor"}]},_e().createElement(Je.default,{value:t.titleTypography,onChange:e=>a({titleTypography:e})})),_e().createElement(Ye,{title:(0,be.__)("Content","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("color","gutenmate"),attr:"contentColor"}]},_e().createElement(Je.default,{value:t.contentTypography,onChange:e=>a({contentTypography:e})}))),_e().createElement("div",s,(n||i||t.title)&&_e().createElement("div",{className:"wp-block-gtm-directions__title"},_e().createElement(we.RichText,{tagName:"span",onChange:e=>{a({title:e})},value:t.title,"aria-label":(0,be.__)("Directions title","gutenmate"),placeholder:(0,be.__)("Directions title","gutenmate"),allowedFormats:[]})),_e().createElement("div",c)))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("")});return _e().createElement("div",a,t.title&&_e().createElement("div",{className:"wp-block-gtm-directions__title"},_e().createElement(we.RichText.Content,{tagName:"span",value:t.title})),_e().createElement("div",{className:"wp-block-gtm-directions__list"},_e().createElement(we.InnerBlocks.Content,null)))},variations:[]};var Qt=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/direction","title":"Direction","description":"Add a customizable direction.","category":"gtm-blocks","parent":["gtm/directions"],"keywords":["gutenmate","step","direction"],"attributes":{"title":{"type":"string","source":"html","selector":".wp-block-gtm-direction__title","default":""}},"supports":{"gtmBlockVisibility":true,"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-direction-editor-style","style":"gtm-direction-style"}');We(Qt.name,Qt.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Xt}=Qt,Yt={...Qt,icon:he.ai,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block")}),{hasInnerBlocks:s,isParentOfSelectedBlock:c}=(0,xe.useSelect)((e=>{e("core/block-editor").hasSelectedInnerBlock(o,!0);const{hasSelectedInnerBlock:t,getBlocks:a}=e(we.store);return{hasInnerBlocks:a(o).length>0,isParentOfSelectedBlock:t(o,!0)}}),[o]);let u;s||n||(u=!1);const m=(0,we.useInnerBlocksProps)({className:fe()("wp-block-gtm-direction__content")},{renderAppender:u});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null),_e().createElement("div",i,(!s||t.title||n||c)&&_e().createElement(we.RichText,{tagName:"div",className:"wp-block-gtm-direction__title",placeholder:(0,be.__)("Title","gutenmate"),value:t.title,onChange:e=>a({title:e})}),_e().createElement("div",m)))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("")});return _e().createElement("div",a,t.title&&_e().createElement(we.RichText.Content,{tagName:"div",value:t.title,className:"wp-block-gtm-direction__title"}),_e().createElement("div",{className:"wp-block-gtm-direction__content"},_e().createElement(we.InnerBlocks.Content,null)),_e().createElement(Ce.RawHTML,null,"\x3c!-- gtm-direction-block-mark-done --\x3e"))},variations:[]};var ea=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/editor-note","title":"Editor note","description":"A note in the editor. The block will not show up in the frontend.","category":"gtm-layout","keywords":["gutenmate","admin","note"],"attributes":{"note":{"type":"string","default":""}},"supports":{},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-editor-note-editor-style"}');const{name:ta}=ea,aa={...ea,icon:he.I8,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block")});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Note","gutenmate"),initialOpen:!0},_e().createElement(we.RichText,{className:"wp-block-gtm-editor-note__richtext components-text-control__input",tagName:"div",placeholder:(0,be.__)("Write a note","gutenmate"),value:t.note,onChange:e=>a({note:e})}))),_e().createElement("div",i,_e().createElement("div",{className:"wp-block-gtm-editor-note__label"},(0,be.__)("Editor Note","gutenmate")),_e().createElement("p",{dangerouslySetInnerHTML:{__html:t.note}})))},save:function(e){return null},styles:[]};a(1259);var na=a(9424),la=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/headline","title":"Headline","description":"Add a customizable headline.","category":"gtm-blocks","keywords":["gutenmate","title","heading","headline"],"attributes":{"maxWidth":{"type":"object","default":{}},"eyebrow":{"type":"string","source":"html","selector":".wp-block-gtm-headline__eyebrow > span","default":""},"eyebrowTag":{"type":"string","default":"div"},"eyebrowColor":{"type":"string","default":""},"eyebrowSpacing":{"type":"object","default":{}},"eyebrowTypography":{"type":"object","default":{}},"headline":{"type":"string","source":"html","selector":".wp-block-gtm-headline__headline > span","default":""},"headlineTag":{"type":"string","default":"h3"},"headlineColor":{"type":"string","default":""},"headlineTypography":{"type":"object","default":{}},"tagline":{"type":"string","source":"html","selector":".wp-block-gtm-headline__tagline > span","default":""},"taglineTag":{"type":"string","default":"div"},"taglineColor":{"type":"string","default":""},"taglineSpacing":{"type":"object","default":{}},"taglineTypography":{"type":"object","default":{}}},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"textAlign":true},"gtmResponsiveAttributes":true,"gtmUseWebFonts":["eyebrowTypography","headlineTypography","taglineTypography"]},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-headline-editor-style","style":"gtm-headline-style"}');We(la.name,la.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"headline-max-width",t.maxWidth),$e(a,"headline-eyebrow-color",(0,Le.parseColorValue)(t.eyebrowColor)),$e(a,"headline-eyebrow-spacing",(0,et._5)(t.eyebrowSpacing)),$e(a,"headline-eyebrow-typography",(0,Je.parseTypographyProps)(t.eyebrowTypography)),$e(a,"headline-color",(0,Le.parseColorValue)(t.headlineColor)),$e(a,"headline-typography",(0,Je.parseTypographyProps)(t.headlineTypography)),$e(a,"headline-tagline-color",(0,Le.parseColorValue)(t.taglineColor)),$e(a,"headline-tagline-spacing",(0,et._5)(t.taglineSpacing)),$e(a,"headline-tagline-typography",(0,Je.parseTypographyProps)(t.taglineTypography)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:oa}=la,ra={...la,icon:he.rJ,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,{maxWidth:r,eyebrow:i,eyebrowTag:s,eyebrowColor:c,eyebrowSpacing:u,eyebrowTypography:m,headline:g,headlineTag:p,headlineColor:d,headlineTypography:b,tagline:h,taglineColor:y,taglineTag:_,taglineSpacing:v,taglineTypography:f}=t,k=`${p}`,C=`${_}`,E=`${s}`,w=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ce.Fragment,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Format","gutenmate"),initialOpen:!0},_e().createElement(Ke.GZ,{label:(0,be.__)("Max width","gutenmate"),value:r,onChange:e=>{a({maxWidth:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Eyebrow","gutenmate"),initialOpen:!1},_e().createElement(na.Z,{label:(0,be.__)("Eyebrow tag","gutenmate"),value:s,onChange:e=>a({eyebrowTag:e})}),_e().createElement(Je.default,{value:m,onChange:e=>a({eyebrowTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:u,onChange:e=>a({eyebrowSpacing:e})})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Headline","gutenmate"),initialOpen:!1},_e().createElement(na.Z,{label:(0,be.__)("Headline tag","gutenmate"),value:p,onChange:e=>a({headlineTag:e})}),_e().createElement(Je.default,{value:b,onChange:e=>a({headlineTypography:e})})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Tagline","gutenmate"),initialOpen:!1},_e().createElement(na.Z,{label:(0,be.__)("Tagline tag","gutenmate"),value:_,onChange:e=>a({taglineTag:e})}),_e().createElement(Je.default,{value:f,onChange:e=>a({taglineTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:v,onChange:e=>a({taglineSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Eyebrow color","gutenmate"),attr:"eyebrowColor"},{label:(0,be.__)("Headline color","gutenmate"),attr:"headlineColor"},{label:(0,be.__)("Tagline color","gutenmate"),attr:"taglineColor"}]}))),_e().createElement("div",w,(i||n)&&_e().createElement(E,{className:"wp-block-gtm-headline__eyebrow"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Eyebrow","gutenmate"),value:i,onChange:e=>a({eyebrow:e})})),_e().createElement(k,{className:"wp-block-gtm-headline__headline"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Headline","gutenmate"),value:g,onChange:e=>a({headline:e})})),(h||n)&&_e().createElement(C,{className:"wp-block-gtm-headline__tagline"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Tagline","gutenmate"),value:h,onChange:e=>a({tagline:e})}))))},save:function(e){const{attributes:t}=e,{eyebrow:a,eyebrowTag:n,eyebrowColor:l,headline:o,headlineTag:r,headlineColor:i,tagline:s,taglineColor:c,taglineTag:u}=t,m=we.useBlockProps.save(),g=`${r}`,p=`${u}`,d=`${n}`;return _e().createElement("div",m,a&&_e().createElement(d,{className:"wp-block-gtm-headline__eyebrow"},_e().createElement(we.RichText.Content,{tagName:"span",value:a})),_e().createElement(g,{className:"wp-block-gtm-headline__headline"},_e().createElement(we.RichText.Content,{tagName:"span",value:o})),s&&_e().createElement(p,{className:"wp-block-gtm-headline__tagline"},_e().createElement(we.RichText.Content,{tagName:"span",value:s})))},variations:[],styles:[{name:"gtm-headline-hero",label:(0,be.__)("Hero","gutenmate")},{name:"gtm-headline-huge",label:(0,be.__)("Huge","gutenmate")},{name:"gtm-headline-large",label:(0,be.__)("Large","gutenmate")},{name:"gtm-headline-medium",label:(0,be.__)("Medium","gutenmate")},{name:"gtm-headline-small",label:(0,be.__)("Small","gutenmate")}]};var ia=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/floating-box","title":"Floating Box","description":"Add a sticky floating box. Useful for display side content on scrolling","category":"gtm-layout","keywords":["gutenmate","box","area"],"attributes":{"position":{"type":"string","default":"bottom right"},"offsetX":{"type":"object","default":{}},"offsetY":{"type":"object","default":{}},"width":{"type":"object","default":{}},"enableCloseButton":{"type":"boolean","default":true},"closeButtonIcon":{"type":"string","default":""},"closeButtonIconSize":{"type":"object","default":{}},"closeButtonWidth":{"type":"object","default":{}},"closeButtonRadius":{"type":["string","object"],"default":""},"closeButtonColor":{"type":"string","default":""},"closeButtonBg":{"type":"object","default":{}},"closeButtonOffsetX":{"type":"object","default":{}},"closeButtonOffsetY":{"type":"object","default":{}},"enableBackdrop":{"type":"boolean","default":false},"backdropBg":{"type":"object","default":{}},"revealCondition":{"type":"string","enum":["scroll-position","asd-block-detected","id-link"],"default":"scroll-position"},"revealPosition":{"type":"string","default":"80"},"revealEffect":{"type":"string","enum":["fade","fly-top","fly-bottom","fly-left","fly-right","zoom"],"default":"fade"},"ariaLabel":{"type":"string","default":""}},"supports":{"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"padding":{"cssProp":"floating-box-padding"},"radius":{"cssProp":"floating-box-radius"},"shadow":{"cssProp":"floating-box-shadow"},"bg":{"cssProp":"floating-box-bg"},"color":true,"typography":true},"gtmResponsiveAttributes":true,"gtmFooterContent":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-floating-box-editor-style","style":"gtm-floating-box-style","viewScript":"gtm-block-script"}');const{useEffect:sa,useState:ca}=_e(),ua="gtm-basic-icon-xmark";function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ma.apply(this,arguments)}We(ia.name,ia.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",`gtm-has-floating-box-position--${t.position.replace(" ","-")}`,"gtm-reveal",`gtm-reveal--${t.revealEffect}`)),$e(a,"floating-box-width",t.width),$e(a,"floating-box-offset-x",t.offsetX),$e(a,"floating-box-offset-y",t.offsetY),$e(a,"floating-box-close-offset-x",t.closeButtonOffsetX),$e(a,"floating-box-close-offset-y",t.closeButtonOffsetY),$e(a,"floating-box-close-size",t.closeButtonIconSize),$e(a,"floating-box-close-width",t.closeButtonWidth),$e(a,"floating-box-close-radius",(0,Le.parseBorderRadiusValue)(t.closeButtonRadius)),$e(a,"floating-box-close-color",(0,Le.parseColorValue)(t.closeButtonColor)),$e(a,"floating-box-close-bg",(0,Le.parseColorValue)(t.closeButtonBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:ga}=ia,pa={...ia,icon:he.IL,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:"gtm-reveal--active"});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Reveal","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{className:"gtm-select-control",label:(0,be.__)("Reveal condition","gutenmate"),selected:t.revealCondition,options:[{label:(0,be.__)("Scrolling position","gutenmate"),value:"scroll-position"},{label:(0,be.__)("Ad-block detected","gutenmate"),value:"asd-block-detected"},{label:(0,be.__)("Link to the block ID","gutenmate"),value:"id-link"}],onChange:e=>{a({revealCondition:e})}}),"scroll-position"==t.revealCondition&&_e().createElement(Ee.BaseControl,{className:"gtm-number-control",label:(0,be.__)("Reveal position (%)","gutenmate"),help:(0,be.__)("A percentage of viewport height. The floating box will be revealed when scrolling position reach this point.","gutenmate")},_e().createElement(Ee.__experimentalNumberControl,{value:t.revealPosition,isShiftStepEnabled:!0,shiftStep:10,min:0,max:100,onChange:e=>{a({revealPosition:e})}})),_e().createElement(Ee.SelectControl,{className:"gtm-select-control",label:(0,be.__)("Reveal effect","gutenmate"),value:t.revealEffect,options:[{label:(0,be.__)("Fade","gutenmate"),value:"fade"},{label:(0,be.__)("Fly-in from top","gutenmate"),value:"fly-top"},{label:(0,be.__)("Fly-in from bottom","gutenmate"),value:"fly-bottom"},{label:(0,be.__)("Fly-in from left","gutenmate"),value:"fly-left"},{label:(0,be.__)("Fly-in from right","gutenmate"),value:"fly-right"},{label:(0,be.__)("Zoom-out","gutenmate"),value:"zoom"}],onChange:e=>{a({revealEffect:e})}}),_e().createElement(Ee.BaseControl,{className:"gtm-alignment-matrix-control",label:(0,be.__)("Position on screen","gutenmate"),help:(0,be.__)("The floating box will stuck on screen with fixed position. No matter what is the inserted position.","gutenmate")},_e().createElement(Ee.__experimentalAlignmentMatrixControl,{value:t.position,onChange:e=>{a({position:e})}})),_e().createElement(Ke.GZ,{label:(0,be.__)("X offset position","gutenmate"),value:t.offsetX,max:"100",onChange:e=>{a({offsetX:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Y offset position","gutenmate"),value:t.offsetY,max:"100",onChange:e=>{a({offsetY:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Width","gutenmate"),value:t.width,max:"1000",onChange:e=>{a({width:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Close Button","gutenmate"),initialOpen:!1},_e().createElement("div",{className:"gtm-panel-body-notice"},_e().createElement(Ee.Tip,null,(0,be.__)("You can have your own close button by using another block. Just set the target link (href) to the anchor #close","gutenmate"))),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable close button","gutenmate"),checked:t.enableCloseButton,onChange:e=>{a({enableCloseButton:e})}}),t.enableCloseButton&&_e().createElement(Ce.Fragment,null,_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),defaultIcon:"gtm-basic-icon-xmark",value:t.closeButtonIcon,showPreview:!0,onChange:e=>{a({closeButtonIcon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("X offset position","gutenmate"),value:t.closeButtonOffsetX,min:"-50",max:"50",onChange:e=>{a({closeButtonOffsetX:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Y offset position","gutenmate"),value:t.closeButtonOffsetY,min:"-50",max:"50",onChange:e=>{a({closeButtonOffsetY:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.closeButtonIconSize,min:"5",max:"50",onChange:e=>{a({closeButtonIconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Button width","gutenmate"),value:t.closeButtonWidth,min:"10",max:"100",onChange:e=>{a({closeButtonWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.closeButtonRadius,onChange:e=>{a({closeButtonRadius:e})}}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Backdrop","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable backdrop","gutenmate"),checked:t.enableBackdrop,onChange:e=>{a({enableBackdrop:e})}})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Close button color","gutenmate"),attr:"closeButtonColor"},{label:(0,be.__)("Clost button background","gutenmate"),attr:"closeButtonBg",gradient:!0},{label:(0,be.__)("Backdrop background","gutenmate"),attr:"backdropBg",gradient:!0}]})),_e().createElement(we.InspectorAdvancedControls,null,_e().createElement(Ee.TextControl,{label:(0,be.__)("ARIA Label","gutenmate"),help:(0,be.__)("Enter a description for accessibility","gutenmate"),value:t.ariaLabel,autoComplete:"off",onChange:e=>a({ariaLabel:e})})),_e().createElement("div",i,_e().createElement("div",{className:"wp-block-gtm-floating-box__content"},_e().createElement(we.InnerBlocks,null),t.enableCloseButton&&_e().createElement("a",{href:"#close",className:"wp-block-gtm-floating-box__close-button",onClick:e=>e.preventDefault()},_e().createElement("i",{className:fe()("gtm-icon",t.closeButtonIcon||ua)})))))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save();return t.ariaLabel&&(a["aria-label"]=t.ariaLabel),_e().createElement(Ce.Fragment,null,_e().createElement("div",ma({},a,{role:"dialog","data-reveal-position":(t.revealPosition/100).toFixed(2)}),_e().createElement("div",{className:"wp-block-gtm-floating-box__content"},_e().createElement(we.InnerBlocks.Content,null),t.enableCloseButton&&_e().createElement("a",{href:"#close",className:"wp-block-gtm-floating-box__close-button","aria-label":(0,be.__)("Close","gutenmate")},_e().createElement("i",{className:fe()("gtm-icon",t.closeButtonIcon||ua)}))),t.enableBackdrop&&_e().createElement("div",{className:"wp-block-gtm-floating-box__backdrop"})))},variations:[],styles:[{name:"gtm-floating-box-light",label:(0,be.__)("Light","gutenmate")},{name:"gtm-floating-box-dark",label:(0,be.__)("Dark","gutenmate")}]};var da=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/grid","title":"Grid","description":"Add a customizable grid.","category":"gtm-layout","keywords":["gutenmate","box","area","grid"],"attributes":{"columns":{"type":"object","default":{}},"gap":{"type":"object","default":{}}},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":{"hideEmptyInnerBlock":true},"gtmBlockProps":{"margin":true,"padding":true,"width":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-grid-editor-style","style":"gtm-grid-style"}'),ba=a(8264);function ha(){return ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ha.apply(this,arguments)}const ya=(0,Se.compose)((0,ba.D)())((({value:e,onChange:t=Te.noop,...a})=>{const n={vertical:e?.row,horizontal:e?.col};return _e().createElement(Qe.vg,ha({sides:["vertical","horizontal"]},a,{value:n,onChange:e=>{const a={};e?.vertical&&(a.row=e.vertical),e?.horizontal&&(a.col=e.horizontal),t(a)}}))}));We(da.name,da.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"grid-columns",t.columns),$e(a,"grid-gap",(0,et._5)(t.gap)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:_a}=da,va={...da,icon:he.H0,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,r=(0,we.useBlockProps)(),i=(0,we.useInnerBlocksProps)(r,{});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{initialOpen:!0},_e().createElement($t.x,{label:(0,be.__)("Columns","gutenmate"),value:t.columns,min:"1",max:"10",step:"1",enableResponsive:!0,onChange:e=>{a({columns:e})}}),_e().createElement(ya,{label:(0,be.__)("Gap","gutenmate"),value:t.gap,onChange:e=>{a({gap:e})}}))),_e().createElement("div",i))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save();return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},variations:[],styles:[{name:"gtm-grid-light",label:(0,be.__)("Light","gutenmate")},{name:"gtm-grid-dark",label:(0,be.__)("Dark","gutenmate")}]};var fa=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/grid-tile","title":"Grid tile","description":"Add a customizable grid tile.","category":"gtm-layout","keywords":["gutenmate","box","area","grid"],"attributes":{"gap":{"type":"object","default":{}},"enableStackedOnTablet":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":{"hideEmptyInnerBlock":true},"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-grid-tile-editor-style","style":"gtm-grid-tile-style"}');const{useEffect:ka,useState:Ca}=_e();We(fa.name,fa.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-gtm-grid-tile-stacked-on-tablet":t.enableStackedOnTablet})),$e(a,"grid-tile-gap",(0,et._5)(t.gap)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Ea}=fa,wa={...fa,icon:he.iU,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,r=(0,we.useBlockProps)(),i=(0,we.useInnerBlocksProps)(r,{});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{initialOpen:!0},_e().createElement(ya,{label:(0,be.__)("Gap","gutenmate"),value:t.gap,onChange:e=>{a({gap:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Stacked on tablet","gutenmate"),checked:t.enableStackedOnTablet,onChange:e=>{a({enableStackedOnTablet:e})}}))),_e().createElement("div",i))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save();return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},variations:[],styles:[{name:"gtm-grid-tile-zigzag-1",label:(0,be.__)("Zigzag 1","gutenmate")},{name:"gtm-grid-tile-zigzag-2",label:(0,be.__)("Zigzag 2","gutenmate")},{name:"gtm-grid-tile-alternate-1",label:(0,be.__)("Alternate 1","gutenmate")},{name:"gtm-grid-tile-alternate-2",label:(0,be.__)("Alternate 2","gutenmate")}]};var Sa=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/icon","title":"Icon","description":"Add a customizable icon.","category":"gtm-blocks","keywords":["gutenmate","icon"],"attributes":{"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"color":{"type":"string","default":""},"bg":{"type":"object","default":{}},"hoverColor":{"type":"string","default":""},"hoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"width":true,"height":true,"margin":true,"padding":true,"radius":true,"shadow":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-icon-editor-style","style":"gtm-icon-style"}');We(Sa.name,Sa.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"icon-icon-size",t.iconSize),$e(a,"icon-color",(0,Le.parseColorValue)(t.color)),$e(a,"icon-bg",(0,Le.parseColorValue)(t.bg)),$e(a,"icon-hover-color",(0,Le.parseColorValue)(t.hoverColor)),$e(a,"icon-hover-bg",(0,Le.parseColorValue)(t.hoverBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:xa}=Sa,Ta={...Sa,icon:he.sG,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block","gtm-icon",t.icon||"gtm-basic-icon-ice-cream")});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"color"},{label:(0,be.__)("Background","gutenmate"),attr:"bg",gradient:!0},{label:(0,be.__)("Hover color","gutenmate"),attr:"hoverColor"},{label:(0,be.__)("Hover background","gutenmate"),attr:"hoverBg",gradient:!0}]})),_e().createElement("i",i))},variations:[],styles:[{name:"gtm-icon-fill",label:(0,be.__)("Fill","gutenmate")},{name:"gtm-icon-outline",label:(0,be.__)("Outline","gutenmate")}]};var Ba=a(9979),Ia=(0,Ce.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Ce.createElement)(Ba.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-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"})),Pa=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/icon-link","title":"Icon link","description":"Add a customizable icon link.","category":"gtm-blocks","parent":["gtm/icon-links"],"keywords":["gutenmate","link","icon"],"attributes":{"type":{"type":"string","default":""},"url":{"type":"string","default":""},"label":{"type":"string","default":""},"openInNewTab":{"type":"boolean","default":false},"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"color":{"type":"string","default":""},"bg":{"type":"object","default":{}},"hoverColor":{"type":"string","default":""},"hoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-icon-link-editor-style","style":"gtm-icon-link-style"}');const La=({url:e,setAttributes:t,setPopover:a,anchorRef:n})=>_e().createElement(we.URLPopover,{anchorRef:n?.current,onClose:()=>a(!1)},_e().createElement("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),a(!1)}},_e().createElement("div",{className:"block-editor-url-input"},_e().createElement(we.URLInput,{value:e,onChange:e=>t({url:e}),placeholder:(0,be.__)("Enter address","gutenmate"),disableSuggestions:!0})),_e().createElement(Ee.Button,{icon:Ia,label:(0,be.__)("Apply","gutenmate"),type:"submit"})));We(Pa.name,Pa.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"icon-link-icon-size",t.iconSize),$e(a,"icon-link-color",(0,Le.parseColorValue)(t.color)),$e(a,"icon-link-bg",(0,Le.parseColorValue)(t.bg)),$e(a,"icon-link-hover-color",(0,Le.parseColorValue)(t.hoverColor)),$e(a,"icon-link-hover-bg",(0,Le.parseColorValue)(t.hoverBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));var Oa=[{isDefault:!0,name:"icon-link",title:(0,be.__)("Icon link","gutenmate"),description:(0,be.__)("Display an regular icon link.","gutenmate"),attributes:{type:""},scope:["inserter","block","transform"]},{name:"search",title:(0,be.__)("Search","gutenmate"),description:(0,be.__)("Display an search link.","gutenmate"),attributes:{type:"search",icon:"gtm-basic-icon-magnifying-glass",url:"#search",label:"Search"},scope:["inserter","block","transform"],isActive:e=>"search"===e.type||"#search"===e.url},{name:"woo-login",title:(0,be.__)("WooCommerce Account Page","gutenmate"),description:(0,be.__)("Display an icon link to WooCommerce account page.","gutenmate"),attributes:{type:"woo-account",label:"My account"},scope:["inserter","block","transform"],isActive:e=>"woo-account"===e.type},{name:"twitter",title:(0,be.__)("Twitter link","gutenmate"),description:(0,be.__)("Display an icon link to Twitter.","gutenmate"),attributes:{type:"",icon:"gtm-basic-icon-twitter",bg:{solid:"#1DA1F2"},label:"Twitter"},scope:["inserter","block","transform"],isActive:e=>"gtm-basic-icon-twitter"===e.icon},{name:"facebook",title:(0,be.__)("Facebook link","gutenmate"),description:(0,be.__)("Display an icon link to Facebook.","gutenmate"),attributes:{type:"",icon:"gtm-basic-icon-facebook-f",bg:{solid:"#1877F2"},label:"Facebook"},scope:["inserter","block","transform"],isActive:e=>"gtm-basic-icon-facebook-f"===e.icon},{name:"instagram",title:(0,be.__)("Instagram link","gutenmate"),description:(0,be.__)("Display an icon link to Instagram.","gutenmate"),attributes:{type:"",icon:"gtm-basic-icon-instagram",bg:{solid:"#C13584"},label:"Instagram"},scope:["inserter","block","transform"],isActive:e=>"gtm-basic-icon-instagram"===e.icon},{name:"youtube",title:(0,be.__)("Youtube link","gutenmate"),description:(0,be.__)("Display an icon link to Youtube.","gutenmate"),attributes:{type:"",icon:"gtm-basic-icon-youtube",bg:{solid:"#FF0000"},label:"Youtube"},scope:["inserter","block","transform"],isActive:e=>"gtm-basic-icon-youtube"===e.icon},{name:"discord",title:(0,be.__)("Discord link","gutenmate"),description:(0,be.__)("Display an icon link to Discord.","gutenmate"),attributes:{type:"",icon:"gtm-basic-icon-discord",bg:{solid:"#7289DA"},label:"Discord"},scope:["inserter","block","transform"],isActive:e=>"gtm-basic-icon-discord"===e.icon},{name:"linkedin",title:(0,be.__)("LinkedIn link","gutenmate"),description:(0,be.__)("Display an icon link to LinkedIn.","gutenmate"),attributes:{type:"",icon:"gtm-basic-icon-linkedin-in",bg:{solid:"#0A66C2"},label:"Linked-in"},scope:["inserter","block","transform"],isActive:e=>"gtm-basic-icon-linkedin-in"===e.icon},{name:"tiktok",title:(0,be.__)("Tiktok link","gutenmate"),description:(0,be.__)("Display an icon link to Tiktok.","gutenmate"),attributes:{type:"",icon:"gtm-basic-icon-tiktok",bg:{solid:"#000000"},label:"Tiktok"},scope:["inserter","block","transform"],isActive:e=>"gtm-basic-icon-tiktok"===e.icon},{name:"pinterest",title:(0,be.__)("Pinterest link","gutenmate"),description:(0,be.__)("Display an icon link to Pinterest.","gutenmate"),attributes:{type:"",icon:"gtm-basic-icon-pinterest-p",bg:{solid:"#E60023"},label:"Pinterest"},scope:["inserter","block","transform"],isActive:e=>"gtm-basic-icon-pinterest-p"===e.icon}];const{name:Aa}=Pa,Ha={...Pa,icon:he.rx,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,Ce.useRef)(),s=(0,we.useBlockProps)({className:fe()("gtm-block")}),[c,u]=(0,Ce.useState)(!1);return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Link settings","gutenmate")},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Open links in new tab","gutenmate"),checked:t.openInNewTab,onChange:()=>a({openInNewTab:!t.openInNewTab})}),_e().createElement(Ee.TextControl,{label:(0,be.__)("Link label","gutenmate"),help:(0,be.__)("Briefly describe the link to help screen reader users.","gutenmate"),value:t.label,onChange:e=>a({label:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"color"},{label:(0,be.__)("Background","gutenmate"),attr:"bg",gradient:!0},{label:(0,be.__)("Hover color","gutenmate"),attr:"hoverColor"},{label:(0,be.__)("Hover background","gutenmate"),attr:"hoverBg",gradient:!0}]})),_e().createElement("div",s,_e().createElement(Ee.Button,{className:"wp-block-gtm-icon-link__link",ref:i,onClick:()=>u(!0)},_e().createElement("i",{className:fe()("gtm-icon",t.icon||"gtm-basic-icon-link")}),e.isSelected&&c&&_e().createElement(La,{url:t.url,setAttributes:a,setPopover:u,anchorRef:i}))))},variations:Oa};var ja=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/icon-links","title":"Icon links","description":"Add a customizable icon links.","category":"gtm-blocks","keywords":["gutenmate","link","icon","social"],"attributes":{"iconSize":{"type":"object","default":{}},"iconHeight":{"type":"object","default":{}},"iconRadius":{"type":["string","object"],"default":""},"iconShadow":{"type":"string","default":""},"iconSpacing":{"type":"object","default":{}},"color":{"type":"string","default":""},"bg":{"type":"object","default":{}},"hoverColor":{"type":"string","default":""},"hoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"width":true,"height":true,"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"flexLayout":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-icon-links-editor-style","style":"gtm-icon-links-style"}');const Na=["gtm/icon-link"];We(ja.name,ja.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"icon-links-icon-size",t.iconSize),$e(a,"icon-links-icon-height",t.iconHeight),$e(a,"icon-links-icon-radius",t.iconRadius),$e(a,"icon-links-icon-shadow",(0,qe.s)(t.iconShadow)),$e(a,"icon-links-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"icon-links-color",(0,Le.parseColorValue)(t.color)),$e(a,"icon-links-bg",(0,Le.parseColorValue)(t.bg)),$e(a,"icon-links-hover-color",(0,Le.parseColorValue)(t.hoverColor)),$e(a,"icon-links-hover-bg",(0,Le.parseColorValue)(t.hoverBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Ra}=ja,Va={...ja,icon:he.kN,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block")}),s=(0,we.useInnerBlocksProps)(i,{template:[Na],allowedBlocks:Na});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon settings","gutenmate"),initialOpen:!0},_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Height","gutenmate"),value:t.iconHeight,max:"100",onChange:e=>{a({iconHeight:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.iconRadius,onChange:e=>{a({iconRadius:e})}}),_e().createElement(qe.Z,{label:(0,be.__)("Shadow","gutenmate"),value:t.iconShadow,onChange:e=>{a({iconShadow:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Space between links","gutenmate"),value:t.iconSpacing,onChange:e=>{a({iconSpacing:e})}})),_e().createElement(Ye,{title:(0,be.__)("Link color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"color"},{label:(0,be.__)("Background","gutenmate"),attr:"bg",gradient:!0},{label:(0,be.__)("Hover color","gutenmate"),attr:"hoverColor"},{label:(0,be.__)("Hover background","gutenmate"),attr:"hoverBg",gradient:!0}]})),_e().createElement("div",s))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("gtm-block")});return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},variations:[],styles:[{name:"gtm-icon-links-solid",label:(0,be.__)("Solid","gutenmate")},{name:"gtm-icon-links-circle",label:(0,be.__)("Circle","gutenmate")},{name:"gtm-icon-links-outline",label:(0,be.__)("Outline","gutenmate")},{name:"gtm-icon-links-circle-outline",label:(0,be.__)("Circle outline","gutenmate")}]};var za=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/ingredient","title":"Ingredient","description":"Add a customizable ingredient.","category":"gtm-blocks","keywords":["gutenmate","ingredient"],"ancestor":["gtm/ingredient-template"],"usesContext":["gtmRecipeIngredient"],"attributes":{"titleTypography":{"type":"object","default":{}},"titleColor":{"type":"string","default":""},"titleSpacing":{"type":"object","default":{}},"groupSpacing":{"type":"object","default":{}},"listSpacing":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"typography":true,"color":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-ingredient-editor-style","style":"gtm-ingredient-style"}');We(za.name,za.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"ingredient-title-typography",(0,Je.parseTypographyProps)(t.titleTypography)),$e(a,"ingredient-title-spacing",(0,et._5)(t.titleSpacing)),$e(a,"ingredient-title-color",(0,Le.parseColorValue)(t.titleColor)),$e(a,"ingredient-group-spacing",(0,et._5)(t.groupSpacing)),$e(a,"ingredient-list-spacing",(0,et._5)(t.listSpacing)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const Fa=e=>_e().createElement("li",{className:"wp-block-gtm-ingredient__item"},_e().createElement("span",{className:"wp-block-gtm-ingredient__mark-as-done-container"},_e().createElement("i",{className:"wp-block-gtm-ingredient__empty-icon gtm-icon gtm-basic-icon-circle-regular"}),_e().createElement("i",{className:"wp-block-gtm-ingredient__marked-icon gtm-icon gtm-basic-icon-check"})),_e().createElement("span",{className:"wp-block-gtm-ingredient__item-text"},e.children));const{name:Ma}=za,Da={...za,icon:he.ZI,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,r=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ye,{title:(0,be.__)("Ingredient group","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Title color","gutenmate"),attr:"titleColor"}]},_e().createElement(Je.default,{label:(0,be.__)("Title","gutenmate"),value:t.titleTypography,onChange:e=>a({titleTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Title spacing","gutenmate"),value:t.titleSpacing,onChange:e=>{a({titleSpacing:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Space between group","gutenmate"),value:t.groupSpacing,onChange:e=>{a({groupSpacing:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Ingredient listing","gutenmate"),initialOpen:!1},_e().createElement(et.wH,{label:(0,be.__)("Space between items","gutenmate"),value:t.listSpacing,onChange:e=>{a({listSpacing:e})}}))),_e().createElement("div",r,_e().createElement("div",{className:"wp-block-gtm-ingredient__group"},_e().createElement("div",{className:"wp-block-gtm-ingredient__group-title"},(0,be.__)("For the main dish.","gutenmate")),_e().createElement("ul",{className:"wp-block-gtm-ingredient__group-list"},_e().createElement(Fa,null,(0,be.__)("1 cup of spaghetti","gutenmate")),_e().createElement(Fa,null,(0,be.__)("50g pecorino cheese","gutenmate")),_e().createElement(Fa,null,(0,be.__)("1/2 tsp dried marjoram","gutenmate")))),_e().createElement("div",{className:"wp-block-gtm-ingredient__group"},_e().createElement("div",{className:"wp-block-gtm-ingredient__group-title"},(0,be.__)("For the sauce.","gutenmate")),_e().createElement("ul",{className:"wp-block-gtm-ingredient__group-list"},_e().createElement(Fa,null,(0,be.__)("1 tsp dried oregano","gutenmate")),_e().createElement(Fa,null,(0,be.__)("1 beef stock cube","gutenmate")),_e().createElement(Fa,null,(0,be.__)("125ml red wine","gutenmate"))))))},save:function(e){},variations:[],styles:[]};var Wa=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/mega-menu","title":"Mega Menu","description":"Mega menu container for mega menu link blocks.","category":"gtm-mega-menu","keywords":["gutenmate","navigation","menu"],"attributes":{"topLevelMenuJustify":{"type":"string","default":""},"topLevelGap":{"type":"object","default":{}},"topLevelLinkRadius":{"type":["string","object"],"default":""},"topLevelLinkPadding":{"type":"object","default":{}},"topLevelIconSpacing":{"type":"object","default":{}},"topLevelIconSize":{"type":"object","default":{}},"topLevelIconColor":{"type":"string","default":""},"topLevelIconHoverColor":{"type":"string","default":""},"topLevelLabelTypography":{"type":"object","default":{}},"topLevelLabelColor":{"type":"string","default":""},"topLevelLabelHoverColor":{"type":"string","default":""},"topLevelLinkBg":{"type":"object","default":{}},"topLevelLinkHoverBg":{"type":"object","default":{}},"topLevelDescriptionTypography":{"type":"object","default":{}},"topLevelDescriptionSpacing":{"type":"object","default":{}},"topLevelDescriptionColor":{"type":"string","default":""},"topLevelDescriptionHoverColor":{"type":"string","default":""},"subLevelMenuWidth":{"type":"object","default":{}},"subLevelMenuBg":{"type":"object","default":{}},"subLevelMenuShadow":{"type":"string","default":""},"subLevelMenuRadius":{"type":["string","object"],"default":""},"subLevelMenuPadding":{"type":"object","default":{}},"subLevelLinkRadius":{"type":["string","object"],"default":""},"subLevelLinkPadding":{"type":"object","default":{}},"subLevelIconSpacing":{"type":"object","default":{}},"subLevelIconSize":{"type":"object","default":{}},"subLevelIconColor":{"type":"string","default":""},"subLevelIconHoverColor":{"type":"string","default":""},"subLevelLabelTypography":{"type":"object","default":{}},"subLevelLabelColor":{"type":"string","default":""},"subLevelLabelHoverColor":{"type":"string","default":""},"subLevelLinkBg":{"type":"object","default":{}},"subLevelLinkHoverBg":{"type":"object","default":{}},"subLevelDescriptionTypography":{"type":"object","default":{}},"subLevelDescriptionSpacing":{"type":"object","default":{}},"subLevelDescriptionColor":{"type":"string","default":""},"subLevelDescriptionHoverColor":{"type":"string","default":""}},"supports":{"align":["wide","full"],"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-mega-menu-editor-style","style":"gtm-mega-menu-style","viewScript":"gtm-block-script"}'),$a=a(9138);const Ga=e=>{const{prefix:t,attributes:a,setAttributes:n}=e;return _e().createElement(Ce.Fragment,null,_e().createElement("h3",null,(0,be.__)("Menu item appearance","gutenmate")),_e().createElement(we.__experimentalBorderRadiusControl,{values:a[`${t}LinkRadius`],onChange:e=>{n({[`${t}LinkRadius`]:e})}}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:a[`${t}LinkPadding`],onChange:e=>{n({[`${t}LinkPadding`]:e})}}),_e().createElement("h3",null,(0,be.__)("Icon appearance","gutenmate")),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:a[`${t}IconSpacing`],onChange:e=>n({[`${t}IconSpacing`]:e})}),_e().createElement(Ke.GZ,{label:(0,be.__)("Size","gutenmate"),value:a[`${t}IconSize`],max:"100",onChange:e=>{n({[`${t}IconSize`]:e})}}),_e().createElement("h3",null,(0,be.__)("Label appearance","gutenmate")),_e().createElement(Je.default,{value:a[`${t}LabelTypography`],onChange:e=>n({[`${t}LabelTypography`]:e})}),_e().createElement("h3",null,(0,be.__)("Description appearance","gutenmate")),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:a[`${t}DescriptionSpacing`],onChange:e=>n({[`${t}DescriptionSpacing`]:e})}),_e().createElement(Je.default,{label:(0,be.__)("Typography","gutenmate"),value:a[`${t}DescriptionTypography`],onChange:e=>n({[`${t}DescriptionTypography`]:e})}))};We(Wa.name,Wa.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{[`gtm-has-top-level-menu-justify-${t.topLevelMenuJustify}`]:t.topLevelMenuJustify})),a.classes.push(fe()("gtm-has-flow-horizontal")),$e(a,"mega-menu-top-level-gap",(0,et._5)(t.topLevelGap)),$e(a,"mega-menu-top-level-link-radius",(0,Le.parseBorderRadiusValue)(t.topLevelLinkRadius)),$e(a,"mega-menu-top-level-link-padding",(0,Qe.G3)(t.topLevelLinkPadding)),$e(a,"mega-menu-top-level-icon-size",t.topLevelIconSize),$e(a,"mega-menu-top-level-icon-spacing",(0,et._5)(t.topLevelIconSpacing)),$e(a,"mega-menu-top-level-label-typography",(0,Je.parseTypographyProps)(t.topLevelLabelTypography)),$e(a,"mega-menu-top-level-description-spacing",(0,et._5)(t.topLevelDescriptionSpacing)),$e(a,"mega-menu-top-level-description-typography",(0,Je.parseTypographyProps)(t.topLevelDescriptionTypography)),$e(a,"mega-menu-top-level-icon-color",(0,Le.parseColorValue)(t.topLevelIconColor)),$e(a,"mega-menu-top-level-label-color",(0,Le.parseColorValue)(t.topLevelLabelColor)),$e(a,"mega-menu-top-level-description-color",(0,Le.parseColorValue)(t.topLevelDescriptionColor)),$e(a,"mega-menu-top-level-link-bg",(0,Le.parseColorValue)(t.topLevelLinkBg)),$e(a,"mega-menu-top-level-icon-hover-color",(0,Le.parseColorValue)(t.topLevelIconHoverColor)),$e(a,"mega-menu-top-level-label-hover-color",(0,Le.parseColorValue)(t.topLevelLabelHoverColor)),$e(a,"mega-menu-top-level-description-hover-color",(0,Le.parseColorValue)(t.topLevelDescriptionHoverColor)),$e(a,"mega-menu-top-level-link-hover-bg",(0,Le.parseColorValue)(t.topLevelLinkHoverBg)),$e(a,"mega-menu-sub-level-link-radius",(0,Le.parseBorderRadiusValue)(t.subLevelLinkRadius)),$e(a,"mega-menu-sub-level-link-padding",(0,Qe.G3)(t.subLevelLinkPadding)),$e(a,"mega-menu-sub-level-icon-size",t.subLevelIconSize),$e(a,"mega-menu-sub-level-icon-spacing",(0,et._5)(t.subLevelIconSpacing)),$e(a,"mega-menu-sub-level-label-typography",(0,Je.parseTypographyProps)(t.subLevelLabelTypography)),$e(a,"mega-menu-sub-level-description-spacing",(0,et._5)(t.subLevelDescriptionSpacing)),$e(a,"mega-menu-sub-level-description-typography",(0,Je.parseTypographyProps)(t.subLevelDescriptionTypography)),$e(a,"mega-menu-sub-level-icon-color",(0,Le.parseColorValue)(t.subLevelIconColor)),$e(a,"mega-menu-sub-level-label-color",(0,Le.parseColorValue)(t.subLevelLabelColor)),$e(a,"mega-menu-sub-level-description-color",(0,Le.parseColorValue)(t.subLevelDescriptionColor)),$e(a,"mega-menu-sub-level-link-bg",(0,Le.parseColorValue)(t.subLevelLinkBg)),$e(a,"mega-menu-sub-level-icon-hover-color",(0,Le.parseColorValue)(t.subLevelIconHoverColor)),$e(a,"mega-menu-sub-level-label-hover-color",(0,Le.parseColorValue)(t.subLevelLabelHoverColor)),$e(a,"mega-menu-sub-level-description-hover-color",(0,Le.parseColorValue)(t.subLevelDescriptionHoverColor)),$e(a,"mega-menu-sub-level-link-hover-bg",(0,Le.parseColorValue)(t.subLevelLinkHoverBg)),$e(a,"mega-menu-sub-level-menu-width",t.subLevelMenuWidth),$e(a,"mega-menu-sub-level-menu-radius",(0,Le.parseBorderRadiusValue)(t.subLevelMenuRadius)),$e(a,"mega-menu-sub-level-menu-padding",(0,Qe.G3)(t.subLevelMenuPadding)),$e(a,"mega-menu-sub-level-menu-shadow",(0,qe.s)(t.subLevelMenuShadow)),$e(a,"mega-menu-sub-level-menu-bg",(0,Le.parseColorValue)(t.subLevelMenuBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Ua}=Wa,Za={...Wa,icon:he.iU,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,r=(0,we.useBlockProps)(),i=(0,we.useInnerBlocksProps)({className:fe()("wp-block-gtm-mega-menu__container"),style:{}},{allowedBlocks:["gtm/mega-menu-link"],template:[["gtm/mega-menu-link"]],__experimentalDirectInsert:!0,renderAppender:!!n&&we.InnerBlocks.DefaultAppender});return _e().createElement(Ce.Fragment,null,_e().createElement(we.BlockControls,{group:"block"},_e().createElement(we.JustifyContentControl,{allowedControls:["left","center","right"],value:t.topLevelMenuJustify,onChange:e=>{a({topLevelMenuJustify:e})}})),_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Top-level Appearance","gutenmate"),initialOpen:!1},_e().createElement(et.wH,{label:(0,be.__)("Gap","gutenmate"),value:t.topLevelGap,onChange:e=>{a({topLevelGap:e})}}),_e().createElement(Ga,{prefix:"topLevel",attributes:t,setAttributes:a})),_e().createElement(Ye,{title:(0,be.__)("Top-level Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Icon color","gutenmate"),attr:"topLevelIconColor"},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"topLevelIconHoverColor"},{label:(0,be.__)("Label color","gutenmate"),attr:"topLevelLabelColor"},{label:(0,be.__)("Label hover color","gutenmate"),attr:"topLevelLabelHoverColor"},{label:(0,be.__)("Description color","gutenmate"),attr:"topLevelDescriptionColor"},{label:(0,be.__)("Description hover color","gutenmate"),attr:"topLevelDescriptionHoverColor"},{label:(0,be.__)("Link background","gutenmate"),attr:"topLevelLinkBg",gradient:!0},{label:(0,be.__)("Link hover background","gutenmate"),attr:"topLevelLinkHoverBg",gradient:!0}]}),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Sub-level Appearance","gutenmate"),initialOpen:!1},_e().createElement(Ga,{prefix:"subLevel",attributes:t,setAttributes:a})),_e().createElement(Ye,{title:(0,be.__)("Sub-level Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Icon color","gutenmate"),attr:"subLevelIconColor"},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"subLevelIconHoverColor"},{label:(0,be.__)("Label color","gutenmate"),attr:"subLevelLabelColor"},{label:(0,be.__)("Label hover color","gutenmate"),attr:"subLevelLabelHoverColor"},{label:(0,be.__)("Description color","gutenmate"),attr:"subLevelDescriptionColor"},{label:(0,be.__)("Description hover color","gutenmate"),attr:"subLevelDescriptionHoverColor"},{label:(0,be.__)("Link background","gutenmate"),attr:"subLevelLinkBg",gradient:!0},{label:(0,be.__)("Link hover background","gutenmate"),attr:"subLevelLinkHoverBg",gradient:!0}]}),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Submenu","gutenmate"),initialOpen:!1},_e().createElement(Ke.GZ,{label:(0,be.__)("Width","gutenmate"),value:t.subLevelMenuWidth,pxUnitOnly:!0,max:"1200",onChange:e=>{a({subLevelMenuWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.subLevelMenuRadius,onChange:e=>{a({subLevelMenuRadius:e})}}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.subLevelMenuPadding,onChange:e=>{a({subLevelMenuPadding:e})}}),_e().createElement(qe.Z,{label:(0,be.__)("Shadow","gutenmate"),value:t.subLevelMenuShadow,onChange:e=>{a({subLevelMenuShadow:e})}})),_e().createElement(Ye,{title:(0,be.__)("Submenu Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Menu container background","gutenmate"),attr:"subLevelMenuBg",gradient:!0}]})),_e().createElement("div",r,_e().createElement("div",i)))},save:function(e){const{attributes:t}=e;return we.useBlockProps.save(),_e().createElement(we.InnerBlocks.Content,null)},variations:[]};var qa=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/mega-menu-link","title":"Mega Menu Link","description":"Add a customizable navigation link for mega menu.","category":"gtm-mega-menu","ancestor":["gtm/mega-menu"],"keywords":["gutenmate","navigation","menu","link"],"attributes":{"label":{"type":"string","default":""},"type":{"type":"string","default":""},"description":{"type":"string","default":""},"rel":{"type":"string","default":""},"id":{"type":"number"},"opensInNewTab":{"type":"boolean","default":false},"url":{"type":"string","default":""},"title":{"type":"string","default":""},"kind":{"type":"string","default":""},"isTopLevelLink":{"type":"boolean","default":false},"linkRadius":{"type":["string","object"],"default":""},"linkPadding":{"type":"object","default":{}},"linkBg":{"type":"object","default":{}},"linkHoverBg":{"type":"object","default":{}},"icon":{"type":"string"},"iconSpacing":{"type":"object","default":{}},"iconSize":{"type":"object","default":{}},"iconColor":{"type":"string","default":""},"iconHoverColor":{"type":"string","default":""},"labelTypography":{"type":"object","default":{}},"labelColor":{"type":"string","default":""},"labelHoverColor":{"type":"string","default":""},"descriptionSpacing":{"type":"object","default":{}},"descriptionTypography":{"type":"object","default":{}},"descriptionColor":{"type":"string","default":""},"descriptionHoverColor":{"type":"string","default":""},"submenuWidth":{"type":"object","default":{}},"submenuAlign":{"type":"string","enum":["normal","center","screen"],"default":"normal"}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":false,"gtmResponsiveAttributes":true,"gtmUseWebFonts":["labelTypography","descriptionTypography"]},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-mega-menu-link-editor-style","style":"gtm-mega-menu-link-style"}'),Ja=a(8406),Ka=window.wp.keycodes,Qa=a(6483),Xa=function({icon:e,size:t=24,...a}){return(0,Ce.cloneElement)(e,{width:t,height:t,...a})},Ya=(0,Ce.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ce.createElement)(Ba.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),en=(0,Ce.forwardRef)((function({name:e,clientId:t,rootClientId:a,className:n,onFocus:l,tabIndex:o,setAttributes:r,defaultInnerblockTemplate:i},s){const{replaceInnerBlocks:c}=(0,xe.useDispatch)(we.store),{blockType:u,defaultVariation:m,variations:g}=(0,xe.useSelect)((t=>{const{getBlockVariations:a,getBlockType:n,getDefaultBlockVariation:l}=t(de.store);return{blockType:n(e),defaultVariation:l(e,"block"),variations:a(e,"block")}}),[e]),[p,d]=(0,Ce.useState)(!1);return _e().createElement(we.Inserter,{position:"bottom center",rootClientId:a,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:a,isOpen:u,blockTitle:b,hasSingleBlockType:h})=>{let y;y=h?(0,be.sprintf)(
// translators: %s: the name of the block when there is only one
(0,be._x)("Add %s","directly add the only allowed block","gutenmate"),b):(0,be._x)("Add block","Generic label for block inserter button","gutenmate");const _=!h;let v=_e().createElement(Ce.Fragment,null,!p&&_e().createElement(Ee.Button,{ref:s,onFocus:l,tabIndex:o,className:fe()(n,"block-editor-button-block-appender"),onClick:()=>{d(!0)},"aria-haspopup":_?"true":void 0,"aria-expanded":_?u:void 0,disabled:a,label:y},!h&&_e().createElement(Ee.VisuallyHidden,{as:"span"},y),_e().createElement(Xa,{icon:Ya})),p&&_e().createElement(we.__experimentalBlockVariationPicker,{variations:g,onSelect:e=>{e||(e=i?{innerBlocks:i}:m),e.attributes&&r(e.attributes),e.innerBlocks&&c(t,(0,de.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)},allowSkip:!0}));return(_||h)&&(v=_e().createElement(Ee.Tooltip,{text:y},v)),v},isAppender:!0})}));const tn={name:"gtm/mega-menu-link"};We(qa.name,qa.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{[`gtm-has-submenu-align-${t.submenuAlign}`]:t.submenuAlign,"gtm-is-top-level-menu":t.isTopLevelLink})),$e(a,"mega-menu-link-radius",(0,Le.parseBorderRadiusValue)(t.linkRadius)),$e(a,"mega-menu-link-padding",(0,Qe.G3)(t.linkPadding)),$e(a,"mega-menu-link-bg",(0,Le.parseColorValue)(t.linkBg)),$e(a,"mega-menu-link-hover-bg",(0,Le.parseColorValue)(t.linkHoverBg)),$e(a,"mega-menu-link-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"mega-menu-link-icon-size",t.iconSize),$e(a,"mega-menu-link-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"mega-menu-link-icon-hover-color",(0,Le.parseColorValue)(t.iconHoverColor)),$e(a,"mega-menu-link-label-typography",(0,Je.parseTypographyProps)(t.labelTypography)),$e(a,"mega-menu-link-label-color",(0,Le.parseColorValue)(t.labelColor)),$e(a,"mega-menu-link-label-hover-color",(0,Le.parseColorValue)(t.labelHoverColor)),$e(a,"mega-menu-link-description-spacing",(0,et._5)(t.descriptionSpacing)),$e(a,"mega-menu-link-description-typography",(0,Je.parseTypographyProps)(t.descriptionTypography)),$e(a,"mega-menu-link-description-color",(0,Le.parseColorValue)(t.descriptionColor)),$e(a,"mega-menu-link-description-hover-color",(0,Le.parseColorValue)(t.descriptionHoverColor)),$e(a,"mega-menu-link-submenu-width",(0,et._5)(t.submenuWidth)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));var an=[{name:"regular",title:(0,be.__)("Regular","gutenmate"),description:(0,be.__)("Display a regular submenu.","gutenmate"),attributes:{},innerBlocks:[["gtm/mega-menu-link"]],scope:["block"]},{name:"side-image",title:(0,be.__)("Side image","gutenmate"),description:(0,be.__)("Display a submenu with image.","gutenmate"),attributes:{submenuWidth:{lg:"450px"}},innerBlocks:[["core/columns",{isStackedOnMobile:!1},[["core/column",{width:"50%"},[["core/image",{sizeSlug:"medium",className:"is-style-gtm-core-image-cover"}]]],["core/column",{width:"50%"},[["gtm/mega-menu-link"]]]]]],scope:["block"]},{name:"3-columns",title:(0,be.__)("3 Columns","gutenmate"),description:(0,be.__)("Display a columns submenu.","gutenmate"),attributes:{submenuAlign:"screen"},innerBlocks:[["core/columns",{isStackedOnMobile:!1},[["core/column",{width:"33.33%"},[["gtm/mega-menu-link"]]],["core/column",{width:"33.33%"},[["gtm/mega-menu-link"]]],["core/column",{width:"33.33%"},[["gtm/mega-menu-link"]]]]]],scope:["block"]},{name:"4-columns",title:(0,be.__)("4 Columns","gutenmate"),description:(0,be.__)("Display a columns submenu.","gutenmate"),attributes:{submenuAlign:"screen"},innerBlocks:[["core/columns",{isStackedOnMobile:!1},[["core/column",{width:"25%"},[["gtm/mega-menu-link"]]],["core/column",{width:"25%"},[["gtm/mega-menu-link"]]],["core/column",{width:"25%"},[["gtm/mega-menu-link"]]],["core/column",{width:"25%"},[["gtm/mega-menu-link"]]]]]],scope:["block"]}];const{name:nn}=qa,ln={__experimentalLabel:({label:e})=>e,...qa,icon:he.vl,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,mergeBlocks:r,onReplace:i,insertBlocksAfter:s}=e,{replaceBlock:c,__unstableMarkNextChangeAsNotPersistent:u}=(0,xe.useDispatch)(we.store),m=(0,Ce.useRef)(null),g=(0,we.useBlockProps)({ref:m}),p=(0,Ce.useRef)(),{isTopLevelLink:d,innerBlock:b,hasChildBlocks:h}=(0,xe.useSelect)((e=>{const{getBlock:t,getBlocks:a,getBlockName:n,getBlockOrder:o,getBlockRootClientId:r,getClientIdsOfDescendants:i,hasSelectedInnerBlock:s,getSelectedBlockClientId:c,getBlockParentsByBlockName:u,getBlockTransformItems:m}=e(we.store);return{innerBlocks:a(l),hasChildBlocks:o(l).length>0,isTopLevelLink:n(r(l))===Wa.name}}));(0,Ce.useEffect)((()=>{u(),a({isTopLevelLink:d})}),[d]);const[y,_]=(0,Ce.useState)(!1);(0,Ce.useEffect)((()=>{t.url||_(!0)}),[]),(0,Ce.useEffect)((()=>{e.isSelected||_(!1)}),[e.isSelected]),(0,Ce.useEffect)((()=>{y&&t.url&&((0,Qa.isURL)((0,Qa.prependHTTP)(t.label))&&/^.+\.[a-z]+/.test(t.label)?function(){p.current.focus();const{ownerDocument:e}=p.current,{defaultView:t}=e,a=t?.getSelection(),n=e.createRange();n.selectNodeContents(p.current),a.removeAllRanges(),a.addRange(n)}():(0,Mt.placeCaretAtHorizontalEdge)(p.current,!0))}),[t.url]),t.url||(g.onClick=()=>_(!0));const{isAncestorOfSelectedBlock:v}=(0,xe.useSelect)((e=>{const{hasSelectedInnerBlock:t}=e(we.store);return{isAncestorOfSelectedBlock:t(l,!0)}})),f=h?we.InnerBlocks.ButtonBlockAppender:e=>_e().createElement(en,{name:o,clientId:l,setAttributes:a,defaultInnerblockTemplate:[["gtm/mega-menu-link"]]}),k=(0,we.useInnerBlocksProps)({className:fe()("wp-block-gtm-mega-menu-link__submenu-container"),style:{}},{__experimentalDefaultBlock:tn,__experimentalDirectInsert:!0,renderAppender:!(!n&&!v)&&f}),C=!n&&t.icon&&!t.label&&!t.description;return _e().createElement(Ce.Fragment,null,_e().createElement(we.BlockControls,null,_e().createElement(Ee.ToolbarGroup,null,_e().createElement(Ee.ToolbarButton,{name:"link",icon:Ja.Z,title:(0,be.__)("Link","gutenmate"),shortcut:Ka.displayShortcut.primary("k"),onClick:()=>_(!0)}))),_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Link settings","gutenmate"),initialOpen:!0},_e().createElement(Ee.TextareaControl,{value:t.description||"",onChange:e=>{a({description:e})},label:(0,be.__)("Description","gutenmate"),help:(0,be.__)("The description will be displayed in the menu if the current theme supports it.","gutenmate")}),_e().createElement(Ee.TextControl,{value:t.title||"",onChange:e=>{a({title:e})},label:(0,be.__)("Link title","gutenmate"),autoComplete:"off"}),_e().createElement(Ee.TextControl,{value:t.rel||"",onChange:e=>{a({rel:e})},label:(0,be.__)("Link rel","gutenmate"),autoComplete:"off"}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.linkRadius,onChange:e=>{a({linkRadius:e})}}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.linkPadding,onChange:e=>{a({linkPadding:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!1},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Label","gutenmate"),initialOpen:!1},_e().createElement(Je.default,{value:t.labelTypography,onChange:e=>a({labelTypography:e})})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Description","gutenmate"),initialOpen:!1},_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.descriptionSpacing,onChange:e=>a({descriptionSpacing:e})}),_e().createElement(Je.default,{value:t.descriptionTypography,onChange:e=>a({descriptionTypography:e})})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Submenu","gutenmate"),initialOpen:!1},t.isTopLevelLink&&_e().createElement(Ee.__experimentalToggleGroupControl,{className:"gtm-toggle-group-control",label:(0,be.__)("Align submenu","gutenmate"),value:t.submenuAlign,onChange:e=>{a({submenuAlign:e})}},_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"normal",value:"normal",label:(0,be.__)("Normal","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"center",value:"center",label:(0,be.__)("Center","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"screen",value:"screen",label:(0,be.__)("Screen","gutenmate")})),_e().createElement(Ke.GZ,{label:(0,be.__)("Width","gutenmate"),value:t.submenuWidth,pxUnitOnly:!0,max:"1200",onChange:e=>{a({submenuWidth:e})}})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"iconHoverColor"},{label:(0,be.__)("Label color","gutenmate"),attr:"labelColor"},{label:(0,be.__)("Label hover color","gutenmate"),attr:"labelHoverColor"},{label:(0,be.__)("Description color","gutenmate"),attr:"descriptionColor"},{label:(0,be.__)("Description hover color","gutenmate"),attr:"descriptionHoverColor"},{label:(0,be.__)("Link background","gutenmate"),attr:"linkBg",gradient:!0},{label:(0,be.__)("Link hover background","gutenmate"),attr:"linkHoverBg",gradient:!0}]})),_e().createElement("div",g,_e().createElement("a",{className:"wp-block-gtm-mega-menu-link__content",onClick:e=>{t.url||_(!0)}},t.url?_e().createElement(Ce.Fragment,null,t.icon&&_e().createElement("div",{className:"wp-block-gtm-mega-menu-link__icon-container"},_e().createElement("i",{className:fe()("gtm-icon",t.icon)})),!C&&_e().createElement("div",{className:"wp-block-gtm-mega-menu-link__label-container"},_e().createElement(we.RichText,{ref:p,identifier:"label",className:"wp-block-gtm-mega-menu-link__label",tagName:"span",value:t.label,onChange:e=>a({label:e}),onMerge:r,onReplace:i,__unstableOnSplitAtEnd:()=>s((0,de.createBlock)(qa.name)),"aria-label":(0,be.__)("Navigation link text","gutenmate"),placeholder:(0,be.__)("Add link…","gutenmate"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough","gtm-format/icon"],onClick:()=>{t.url||_(!0)}}),(t.description||n)&&_e().createElement(we.RichText,{identifier:"description",className:"wp-block-gtm-mega-menu-link__description",value:t.description,onChange:e=>a({description:e}),onMerge:r,onReplace:i,__unstableOnSplitAtEnd:()=>s((0,de.createBlock)(qa.name)),"aria-label":(0,be.__)("Navigation link description","gutenmate"),placeholder:(0,be.__)("Add description…","gutenmate"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic"]})),h&&_e().createElement("span",{className:"wp-block-gtm-mega-menu-link__submenu-icon"},_e().createElement("i",{className:fe()("gtm-basic-icon-chevron-down")}))):_e().createElement("div",{className:"wp-block-gtm-mega-menu-link__placeholder-text"},_e().createElement(Ee.Tooltip,{position:"top center",text:(0,be.__)("This item is missing a link","gutenmate")},_e().createElement("span",null,(0,be.__)("Add link","gutenmate"))))),y&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.Popover,{position:"bottom center",onClose:()=>_(!1),anchorRef:m.current},_e().createElement(we.__experimentalLinkControl,{hasTextControl:!0,showInitialSuggestions:!0,value:{url:t.url,opensInNewTab:t.opensInNewTab},onChange:e=>((e={},t,a={})=>{const{label:n="",kind:l="",type:o=""}=a,{title:r="",url:i="",opensInNewTab:s,id:c,kind:u=l,type:m=o}=e,g=r.replace(/http(s?):\/\//gi,""),p=i.replace(/http(s?):\/\//gi,""),d=""!==r&&g!==p&&n!==r?(0,Te.escape)(r):n||(0,Te.escape)(p),b="post_tag"===m?"tag":m.replace("-","_"),h=["post","page","tag","category"].indexOf(b)>-1,y=!u&&!h||"custom"===u?"custom":u;t({...i&&{url:encodeURI((0,Qa.safeDecodeURI)(i))},...d&&{label:d},...void 0!==s&&{opensInNewTab:s},...c&&Number.isInteger(c)&&{id:c},...y&&{kind:y},...b&&"URL"!==b&&{type:b}})})(e,a,t),onRemove:function(){a({url:"",label:"",id:"",kind:"",type:""}),_(!1)}}))),t.url&&_e().createElement("div",k)))},save:function(e){const{attributes:t}=e;return we.useBlockProps.save(),_e().createElement(we.InnerBlocks.Content,null)},variations:an},on={energy:{label:(0,be.__)("Calories","gutenmate")},carbs:{label:(0,be.__)("Carbohydrates","gutenmate")},cholesterol:{label:(0,be.__)("Cholesterol","gutenmate")},fat:{label:(0,be.__)("Fat","gutenmate")},fiber:{label:(0,be.__)("Fiber","gutenmate")},protein:{label:(0,be.__)("Protein","gutenmate")},sodium:{label:(0,be.__)("Sodium","gutenmate")},sugars:{label:(0,be.__)("Sugars","gutenmate")}};var rn=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/nutrition","title":"Nutrition","description":"Add a customizable nutrition table.","category":"gtm-recipe","textdomain":"gutenmate","keywords":["gutenmate","recipe","nutrition"],"attributes":{"nutrition":{"type":"object","default":{}},"templateId":{"type":"string","default":""}},"providesContext":{"gtmNutrition":"nutrition"},"supports":{"anchor":true,"multiple":false,"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-nutrition-editor-style","style":"gtm-nutrition-style"}');const{name:sn}=rn,cn={...rn,icon:he.A8,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("")}),{templateOptions:s}=(0,xe.useSelect)((e=>{const{getEntityRecords:t}=e(At.store);let a=t("postType","wp_template_part",{per_page:-1}),n=[];return a&&a.map((e=>("gtm-area-nutrition"==e.area&&n.push({label:e.title.rendered,value:e.id}),e))),{templateOptions:n}}),[]);return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Layout","gutenmate"),initialOpen:!0},!s&&_e().createElement(Ee.Notice,{className:"gtm-panel-body-notice",isDismissible:!1,status:"warning"},(0,be.__)("There is no nutrition template available. Please navigate to site editor and create a template part in the Nutrition area.","gutenmate")),_e().createElement(Ee.SelectControl,{className:"gtm-select-control",label:(0,be.__)("Template","gutenmate"),help:(0,be.__)("Choose a template part for rendering. The default template name is Review.","gutenmate"),value:t.templateId,options:[{label:(0,be.__)("Default","gutenmate"),value:""},...s??[]],onChange:e=>{a({templateId:e})}}))),_e().createElement("div",i,_e().createElement("h3",{className:"wp-block-gtm-nutrition__title"},(0,be.__)("Nutrition","gutenmate")),_e().createElement("div",{className:"wp-block-gtm-nutrition__fields"},Object.keys(on).map(((e,n)=>_e().createElement(Ee.TextControl,{key:n,label:on[e].label,value:t.nutrition[e],onChange:n=>{a({nutrition:{...t.nutrition,[e]:n}})}}))))))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save();return _e().createElement("div",a,Object.keys(on).map(((e,a)=>{if(t.nutrition[e])return _e().createElement("div",{key:a,className:"wp-block-gtm-nutrition__nutrient"},_e().createElement("span",{className:"wp-block-gtm-nutrition__nutrient-label"},on[e].label),_e().createElement("span",{className:"wp-block-gtm-nutrition__nutrient-value"},t.nutrition[e]))})))}};var un=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/nutrition-template","title":"Nutrition template","description":"Add a customizable nutrition template.","category":"gtm-recipe","keywords":["gutenmate","recipe","template","nutrition"],"attributes":{},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"width":true,"height":true,"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true,"flexLayout":true},"gtmResponsiveAttributes":true,"gtmInspectAttributes":false},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-nutrition-template-editor-style","style":"gtm-nutrition-template-style"}'),mn=[{name:"gtm-nutrition-basic",title:(0,be.__)("Basic","gutenmate"),description:(0,be.__)("Display a nutrition in a basic style.","gutenmate"),icon:he.An,innerBlocks:[["gtm/box",{gtmFlexDirection:{lg:"row"},gtmFlexWrap:{lg:"nowrap"}},[["gtm/headline",{headline:"Nutrition",tagline:"(Per serving)"}],["gtm/nutrients",{}]]]],scope:["block"]}];const{name:gn}=un,pn={...un,icon:he.ve,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,{blockType:i,defaultVariation:s,variations:c}=(0,xe.useSelect)((e=>{const{getBlockVariations:t,getBlockType:a,getDefaultBlockVariation:n}=e(de.store);return{blockType:a(r),defaultVariation:n(r,"block"),variations:t(r,"block")}}),[r]),{replaceInnerBlocks:u}=(0,xe.useDispatch)(we.store),m=(0,xe.useSelect)((e=>e(we.store).getBlocks(o).length>0),[o]),g=(0,we.useBlockProps)({className:fe()("gtm-block")}),p=(0,we.useInnerBlocksProps)(g,{template:[["gtm/nutriens"]]});return m?_e().createElement(Ce.Fragment,null,_e().createElement("div",p)):_e().createElement("div",{className:"gtm-template-variation-picker"},_e().createElement(we.__experimentalBlockVariationPicker,{icon:(0,Te.get)(i,["icon","src"]),label:(0,Te.get)(i,["title"]),variations:c,onSelect:(e=s)=>{e.attributes&&a(e.attributes),e.innerBlocks&&u(o,(0,de.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)}}))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("")});return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},variations:mn};var dn=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/nutrients","title":"Nutrients","description":"Add a customizable nutrients.","category":"gtm-blocks","keywords":["gutenmate","nutrition"],"ancestor":["gtm/nutrition-template"],"usesContext":["gtmNutrition"],"attributes":{"columns":{"type":"object","default":{}},"gap":{"type":"object","default":{}},"labelTypography":{"type":"object","default":{}},"labelColor":{"type":"string","default":""},"labelSpacing":{"type":"object","default":{}},"valueTypography":{"type":"object","default":{}},"valueColor":{"type":"string","default":""}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"typography":true,"color":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-nutrients-editor-style","style":"gtm-nutrients-style"}');const bn={energy:{label:(0,be.__)("Calories","gutenmate"),value:"256 kCal"},carbs:{label:(0,be.__)("Carbs","gutenmate"),value:"49 g"},cholesterol:{label:(0,be.__)("Chol","gutenmate"),value:"12 mg"},fat:{label:(0,be.__)("Fat","gutenmate"),value:"14 g"},fiber:{label:(0,be.__)("Fiber","gutenmate"),value:"3 g"},protein:{label:(0,be.__)("Protein","gutenmate"),value:"28 g"},sodium:{label:(0,be.__)("Sodium","gutenmate"),value:"492 mg"},sugars:{label:(0,be.__)("Sugars","gutenmate"),value:"8 g"}};We(dn.name,dn.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"nutrients-item-columns",t.columns),$e(a,"nutrients-item-gap",(0,et._5)(t.gap)),$e(a,"nutrients-label-typography",(0,Je.parseTypographyProps)(t.labelTypography)),$e(a,"nutrients-label-spacing",(0,et._5)(t.labelSpacing)),$e(a,"nutrients-label-color",(0,Le.parseColorValue)(t.labelColor)),$e(a,"nutrients-value-typography",(0,Je.parseTypographyProps)(t.valueTypography)),$e(a,"nutrients-value-color",(0,Le.parseColorValue)(t.valueColor)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:hn}=dn,yn={...dn,icon:he.An,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,r=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Layout","gutenmate"),initialOpen:!1},_e().createElement($t.x,{label:(0,be.__)("Columns","gutenmate"),value:t.columns,min:"1",max:"8",step:"1",enableResponsive:!0,onChange:e=>{a({columns:e})}}),_e().createElement(ya,{label:(0,be.__)("Gap","gutenmate"),value:t.gap,onChange:e=>{a({gap:e})}})),_e().createElement(Ye,{title:(0,be.__)("Label","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"labelColor"}]},_e().createElement(Je.default,{label:(0,be.__)("Typography","gutenmate"),value:t.labelTypography,onChange:e=>a({labelTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.labelSpacing,onChange:e=>{a({labelSpacing:e})}})),_e().createElement(Ye,{title:(0,be.__)("Daily value","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"valueColor"}]},_e().createElement(Je.default,{label:(0,be.__)("Typography","gutenmate"),value:t.valueTypography,onChange:e=>a({valueTypography:e})}))),_e().createElement("div",r,Object.keys(bn).map(((e,t)=>_e().createElement("div",{key:t,className:"wp-block-gtm-nutrients__item"},_e().createElement("span",{className:"wp-block-gtm-nutrients__item-label"},bn[e].label),_e().createElement("span",{className:"wp-block-gtm-nutrients__item-value"},bn[e].value))))))},save:function(e){},variations:[],styles:[]};var vn=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/popup-box","title":"Popup box","description":"Add a customizable popup box.","category":"gtm-layout","keywords":["gutenmate","popup","box"],"attributes":{"maxWidth":{"type":"number"},"animation":{"type":"string","default":"shift-away"},"inertia":{"type":"boolean","default":false},"arrow":{"type":"boolean","default":false}},"supports":{"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"width":true,"height":true,"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true,"flexLayout":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-popup-box-editor-style","style":"gtm-popup-box-style"}');const{name:fn}=vn,kn={...vn,icon:he.IL,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block")}),s=(0,we.useInnerBlocksProps)(i,{template:[["core/search",{className:"is-style-gtm-core-search-minimal",showLabel:!1,placeholder:"Enter keywords",buttonPosition:"button-inside",buttonUseIcon:!0,buttonText:"Search"}]]});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Options","gutenmate"),initialOpen:!0},_e().createElement(Ee.RangeControl,{label:(0,be.__)("Max width","gutenmate"),help:(0,be.__)("Maximum width of popup box. Enter 0 for no restriction.","gutenmate"),value:t.maxWidth,onChange:e=>{a({maxWidth:e})},min:0,max:1e3,step:10,allowReset:!0}),_e().createElement(Ee.SelectControl,{label:(0,be.__)("Animation","gutenmate"),value:t.condition,options:[{label:(0,be.__)("Shift away","gutenmate"),value:"shift-away"},{label:(0,be.__)("Shift toward","gutenmate"),value:"shift-toward"},{label:(0,be.__)("Fade","gutenmate"),value:"fade"},{label:(0,be.__)("Scale","gutenmate"),value:"scale"},{label:(0,be.__)("Perspective","gutenmate"),value:"perspective"}],onChange:e=>{a({animation:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Inertia","gutenmate"),help:(0,be.__)("Adds an elastic inertial effect to the animation","gutenmate"),checked:t.inertia,onChange:e=>{a({inertia:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Arrow","gutenmate"),checked:t.arrow,onChange:e=>{a({arrow:e})}}))),_e().createElement("div",s))},save:function(e){const{attributes:t}=e;let a={};Le.hasValue(t.maxWidth)&&(a.maxWidth=t.maxWidth||"none"),Le.hasValue(t.animation)&&(a.animation=t.animation),Le.hasValue(t.inertia)&&(a.inertia=!!t.inertia),Le.hasValue(t.arrow)&&(a.arrow=!!t.arrow);const n=we.useBlockProps.save({className:fe()(""),"data-options":JSON.stringify(a)});return _e().createElement("div",n,_e().createElement(we.InnerBlocks.Content,null))},variations:[]};var Cn=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-excerpt","title":"Post Excerpt","description":"Add a customizable post excerpt.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","excerpt"],"usesContext":["postId","postType","queryId"],"attributes":{"enableAutoExcerpt":{"type":"boolean","default":false},"enableExcerptLength":{"type":"boolean","default":false},"excerptLength":{"type":"number","default":55},"excerptMaxWidth":{"type":"object","default":{}}},"supports":{"align":["wide","full"],"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-excerpt-editor-style","style":"gtm-post-excerpt-style"}');const{useEffect:En,useState:wn}=_e();We(Cn.name,Cn.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"post-excerpt-max-width",t.excerptMaxWidth),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Sn}=Cn,xn={...Cn,icon:he.xS,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:{postType:i,postId:s}}=e,c=(0,we.useBlockProps)(),[u,m,{rendered:g,protected:p}={}]=(0,At.useEntityProp)("postType",i,"excerpt",s),d=(0,Ce.useMemo)((()=>{if(!g)return"";const e=(new window.DOMParser).parseFromString(g,"text/html");return e.body.textContent||e.body.innerText||""}),[g]);return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Excerpt","gutenmate"),initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Always show an automatic excerpt","gutenmate"),help:(0,be.__)("The custom excerpt will be omitted. This option will be applied on frontend","gutenmate"),checked:t.enableAutoExcerpt,onChange:e=>a({enableAutoExcerpt:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Custom excerpt lenght","gutenmate"),checked:t.enableExcerptLength,onChange:e=>a({enableExcerptLength:e})}),t.enableExcerptLength&&_e().createElement(Ee.RangeControl,{label:(0,be.__)("Excerpt length","gutenmate"),help:(0,be.__)("The maximum number of words. This option will be applied on frontend.","gutenmate"),value:t.excerptLength,min:1,max:200,onChange:e=>a({excerptLength:e})}),_e().createElement(Ke.GZ,{label:(0,be.__)("Max width","gutenmate"),value:t.excerptMaxWidth,max:"1000",onChange:e=>a({excerptMaxWidth:e})}))),_e().createElement("div",c,_e().createElement("div",null,g&&_e().createElement(Ee.Disabled,null,_e().createElement(Ce.RawHTML,{key:"html"},d))||(0,be.__)("Post excerpt","gutenmate"))))},styles:[{name:"gtm-post-excerpt-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-post-excerpt-tiny",label:(0,be.__)("Tiny","gutenmate")}]},Tn=gtm_config.icons.comments;function Bn(e){const[t=0]=(0,At.useEntityProp)("postType",e.postType,"gtm_comment_count",e.postId);let a="";return a=e.showCounterOnly?t:(0,be.sprintf)((0,be._n)("%s Comment","%s Comments",t,"gutenmate"),t),_e().createElement(Ce.Fragment,null,e.showIcon&&_e().createElement(Ce.Fragment,null,_e().createElement("i",{className:`gtm-icon ${e.icon||Tn}`,"aria-hidden":"true"})),e.label&&_e().createElement("span",{className:"wp-block-gtm-post-comment-count__label"},e.label),!e.enableLink&&_e().createElement("span",{className:"wp-block-gtm-post-comment-count__count wp-block-gtm-post-comment-count__content"},a),e.enableLink&&_e().createElement("a",{className:"wp-block-gtm-post-comment-count__count wp-block-gtm-post-comment-count__content",href:"#post-comment-count-pseudo-link",onClick:e=>e.preventDefault()},a))}var In=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-comment-count","title":"Post Comment Count","description":"Add a customizable post comment count.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","comment","counter"],"usesContext":["postId","postType","queryId"],"attributes":{"display":{"type":"string","default":"name"},"enableLink":{"type":"boolean","default":true},"linkColor":{"type":"string","default":""},"enableLinkUnderline":{"type":"boolean","default":false},"linkHoverColor":{"type":"string","default":""},"enableLinkHoverUnderline":{"type":"boolean","default":true},"label":{"type":"string","default":""},"labelTypography":{"type":"object","default":{}},"labelSpacing":{"type":"object","default":{}},"labelColor":{"type":"string","default":""},"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"iconWidth":{"type":"object","default":{}},"iconRadius":{"type":["string","object"],"default":""},"iconSpacing":{"type":"object","default":{}},"iconColor":{"type":"string","default":""},"iconBg":{"type":"object","default":{}},"iconHoverColor":{"type":"string","default":""},"iconHoverBg":{"type":"object","default":{}}},"supports":{"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-comment-count-editor-style","style":"gtm-post-comment-count-style"}');const{useEffect:Pn,useState:Ln}=_e();We(In.name,In.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-post-comment-count-link-underline":t.enableLink&&t.enableLinkUnderline,"gtm-has-post-comment-count-link-hover-underline":t.enableLink&&t.enableLinkHoverUnderline})),$e(a,"post-comment-count-label-typography",(0,Je.parseTypographyProps)(t.labelTypography)),$e(a,"post-comment-count-label-spacing",(0,et._5)(t.labelSpacing)),$e(a,"post-comment-count-label-color",(0,Le.parseColorValue)(t.labelColor)),t.enableLink&&($e(a,"post-comment-count-link-color",(0,Le.parseColorValue)(t.linkColor)),$e(a,"post-comment-count-link-hover-color",(0,Le.parseColorValue)(t.linkHoverColor))),"name"!=t.display&&($e(a,"post-comment-count-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"post-comment-count-icon-size",t.iconSize),$e(a,"post-comment-count-icon-width",t.iconWidth),$e(a,"post-comment-count-icon-radius",(0,Le.parseBorderRadiusValue)(t.iconRadius)),$e(a,"post-comment-count-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"post-comment-count-icon-bg",(0,Le.parseColorValue)(t.iconBg)),$e(a,"post-comment-count-icon-hover-color",(0,Le.parseColorValue)(t.iconHoverColor)),$e(a,"post-comment-count-icon-hover-bg",(0,Le.parseColorValue)(t.iconHoverBg))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:On}=In,An={...In,icon:he.vO,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{postType:r,postId:i,queryId:s}}=e,c=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{options:[{label:(0,be.__)("Counter text","gutenmate"),value:"name"},{label:(0,be.__)("Icon and counter text","gutenmate"),value:"icon"},{label:(0,be.__)("Icon and counter number","gutenmate"),value:"counter"}],selected:t.display,onChange:e=>{a({display:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Link to comments","gutenmate"),checked:t.enableLink,onChange:e=>{a({enableLink:e})}}),t.enableLink&&_e().createElement(Ce.Fragment,null,_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Underline","gutenmate"),checked:t.enableLinkUnderline,onChange:e=>{a({enableLinkUnderline:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hover underline","gutenmate"),checked:t.enableLinkHoverUnderline,onChange:e=>{a({enableLinkHoverUnderline:e})}}))}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Label","gutenmate"),initialOpen:!1},_e().createElement(Ee.TextControl,{label:(0,be.__)("Label","gutenmate"),help:(0,be.__)("An additional label for the block. Some styles require a label for looking better.","gutenmate"),value:t.label,onChange:e=>a({label:e})}),_e().createElement(Je.default,{value:t.labelTypography,onChange:e=>a({labelTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Label spacing","gutenmate"),value:t.labelSpacing,onChange:e=>a({labelSpacing:e})})),"name"!=t.display&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),help:(0,be.__)("An icon for the block. Leave blank to use the default icon.","gutenmate"),defaultIcon:Tn,value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),help:(0,be.__)("A size of the icon","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon width","gutenmate"),help:(0,be.__)("A width of the icon container","gutenmate"),value:t.iconWidth,onChange:e=>{a({iconWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.iconRadius,onChange:e=>{a({iconRadius:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),help:(0,be.__)("A space between the icon and the text","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[..."name"!=t.display?[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon background","gutenmate"),attr:"iconBg",gradient:!0},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"iconHoverColor"},{label:(0,be.__)("Icon hover background","gutenmate"),attr:"iconHoverBg",gradient:!0}]:[],{label:(0,be.__)("Label color","gutenmate"),attr:"labelColor"},...t.enableLink?[{label:(0,be.__)("Link color","gutenmate"),attr:"linkColor"},{label:(0,be.__)("Link hover color","gutenmate"),attr:"linkHoverColor"}]:[]]})),_e().createElement("div",c,_e().createElement(Bn,{enableLink:t.enableLink,icon:t.icon,label:t.label,showIcon:"icon"==t.display||"counter"==t.display,showCounterOnly:"counter"==t.display,postType:r,postId:i})))},styles:[{name:"gtm-post-comment-count-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-post-comment-count-tiny",label:(0,be.__)("Tiny","gutenmate")},{name:"gtm-post-comment-count-featured",label:(0,be.__)("Featured","gutenmate")},{name:"gtm-post-comment-count-featured-mobile",label:(0,be.__)("Mobile featured","gutenmate")},{name:"gtm-post-comment-count-tall",label:(0,be.__)("Tall","gutenmate")}]};var Hn=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-counter","title":"Post counter","description":"Add a post index number for a post query.","category":"gtm-layout","keywords":["gutenmate","blog","post","counter"],"attributes":{},"supports":{"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"width":true,"height":true,"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-counter-editor-style","style":"gtm-post-counter-style"}');const{name:jn}=Hn,Nn={...Hn,icon:he.rI,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block")});return _e().createElement(Ce.Fragment,null,_e().createElement("div",i,_e().createElement("span",{className:"wp-block-gtm-post-counter__counter"})))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("")});return _e().createElement("div",a,_e().createElement("span",{className:"wp-block-gtm-post-counter__counter"}))},variations:[],styles:[{name:"gtm-post-counter-large",label:(0,be.__)("Large","gutenmate")},{name:"gtm-post-counter-circle",label:(0,be.__)("Circle","gutenmate")}]};var Rn=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-date","title":"Post Date","description":"Add a customizable post date.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","date"],"usesContext":["postId","postType","queryId"],"attributes":{"display":{"type":"string","default":"name"},"dateType":{"type":"string","enum":["created","modified"],"default":"created"},"format":{"type":"string","default":""},"enableLink":{"type":"boolean","default":true},"linkColor":{"type":"string","default":""},"enableLinkUnderline":{"type":"boolean","default":false},"linkHoverColor":{"type":"string","default":""},"enableLinkHoverUnderline":{"type":"boolean","default":true},"label":{"type":"string","default":""},"labelTypography":{"type":"object","default":{}},"labelSpacing":{"type":"object","default":{}},"labelColor":{"type":"string","default":""},"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"iconWidth":{"type":"object","default":{}},"iconRadius":{"type":["string","object"],"default":""},"iconSpacing":{"type":"object","default":{}},"iconColor":{"type":"string","default":""},"iconBg":{"type":"object","default":{}},"iconHoverColor":{"type":"string","default":""},"iconHoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-date-editor-style","style":"gtm-post-date-style"}');const Vn=Ht.getSettings||Ht.__experimentalGetSettings;function zn({postType:e,postId:t,format:a}){const[n]=(0,At.useEntityProp)("root","site","date_format"),[l]=(0,At.useEntityProp)("postType",e,"date",t),o=Vn(),r=a||n||o.formats.date;let i=(0,Ht.dateI18n)(r,l);"time_ago"==a&&(i=moment(l).fromNow());let s={dateFormatOptions:[{value:"",label:(0,be.sprintf)((0,be._x)("Default (%s)","Default date format option with example","gutenmate"),(0,Ht.dateI18n)(n??"",l))},{value:"time_ago",label:moment(l).fromNow()},...Object.values(o.formats).map((e=>({value:e,label:(0,Ht.dateI18n)(e,l)})))]};return l&&(s={...s,postDateISO:(0,Ht.dateI18n)("c",l),postDateDisplay:i}),s}const Fn=gtm_config.icons.date;We(Rn.name,Rn.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-post-date-link-underline":t.enableLink&&t.enableLinkUnderline,"gtm-has-post-date-link-hover-underline":t.enableLink&&t.enableLinkHoverUnderline})),$e(a,"post-date-label-typography",(0,Je.parseTypographyProps)(t.labelTypography)),$e(a,"post-date-label-spacing",(0,et._5)(t.labelSpacing)),$e(a,"post-date-label-color",(0,Le.parseColorValue)(t.labelColor)),t.enableLink&&($e(a,"post-date-link-color",(0,Le.parseColorValue)(t.linkColor)),$e(a,"post-date-link-hover-color",(0,Le.parseColorValue)(t.linkHoverColor))),"name"!=t.display&&($e(a,"post-date-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"post-date-icon-size",t.iconSize),$e(a,"post-date-icon-width",t.iconWidth),$e(a,"post-date-icon-radius",(0,Le.parseBorderRadiusValue)(t.iconRadius)),$e(a,"post-date-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"post-date-icon-bg",(0,Le.parseColorValue)(t.iconBg)),$e(a,"post-date-icon-hover-color",(0,Le.parseColorValue)(t.iconHoverColor)),$e(a,"post-date-icon-hover-bg",(0,Le.parseColorValue)(t.iconHoverBg))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Mn}=Rn,Dn={...Rn,icon:he.SP,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{postType:r,postId:i}}=e,s=(0,we.useBlockProps)(),{dateFormatOptions:c,postDateISO:u,postDateDisplay:m}=zn({postType:r,postId:i,format:t.format});let g=_e().createElement("span",null,(0,be.__)("Post Date","gutenmate"));return u&&(g=_e().createElement("time",{dateTime:u},m)),_e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{options:[{label:(0,be.__)("Name only","gutenmate"),value:"name"},{label:(0,be.__)("Icon and name","gutenmate"),value:"icon"}],selected:t.display,onChange:e=>{a({display:e})}}),_e().createElement(Ee.SelectControl,{label:(0,be.__)("Format","gutenmate"),value:t.format,options:c,onChange:e=>{a({format:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Display modified date","gutenmate"),checked:"modified"==t.dateType,onChange:e=>{a({dateType:e?"modified":"create"})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Link to post page","gutenmate"),checked:t.enableLink,onChange:e=>{a({enableLink:e})}}),t.enableLink&&_e().createElement(Ce.Fragment,null,_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Underline","gutenmate"),checked:t.enableLinkUnderline,onChange:e=>{a({enableLinkUnderline:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hover underline","gutenmate"),checked:t.enableLinkHoverUnderline,onChange:e=>{a({enableLinkHoverUnderline:e})}}))}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Label","gutenmate"),initialOpen:!1},_e().createElement(Ee.TextControl,{label:(0,be.__)("Label","gutenmate"),help:(0,be.__)("An additional label for the block. Some styles require a label for looking better.","gutenmate"),value:t.label,onChange:e=>a({label:e})}),_e().createElement(Je.default,{value:t.labelTypography,onChange:e=>a({labelTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Label spacing","gutenmate"),value:t.labelSpacing,onChange:e=>a({labelSpacing:e})})),"icon"==t.display&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),help:(0,be.__)("An icon for the block. Leave blank to use the default icon.","gutenmate"),defaultIcon:Fn,value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),help:(0,be.__)("A size of the icon","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon width","gutenmate"),help:(0,be.__)("A width of the icon container","gutenmate"),value:t.iconWidth,onChange:e=>{a({iconWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.iconRadius,onChange:e=>{a({iconRadius:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),help:(0,be.__)("A space between the icon and the text","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[..."icon"==t.display?[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon background","gutenmate"),attr:"iconBg",gradient:!0},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"iconHoverColor"},{label:(0,be.__)("Icon hover background","gutenmate"),attr:"iconHoverBg",gradient:!0}]:[],{label:(0,be.__)("Label color","gutenmate"),attr:"labelColor"},...t.enableLink?[{label:(0,be.__)("Link color","gutenmate"),attr:"linkColor"},{label:(0,be.__)("Link hover color","gutenmate"),attr:"linkHoverColor"}]:[]]})),_e().createElement("div",s,"icon"==t.display&&_e().createElement(Ce.Fragment,null,_e().createElement("i",{className:`gtm-icon ${t.icon||Fn}`,"aria-hidden":"true"})),t.label&&_e().createElement("span",{className:"wp-block-gtm-post-date__label"},t.label),!t.enableLink&&_e().createElement("span",{className:"wp-block-gtm-post-date__date wp-block-gtm-post-date__content"},g),t.enableLink&&_e().createElement("a",{className:"wp-block-gtm-post-date__date wp-block-gtm-post-date__content",href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},g)))},styles:[{name:"gtm-post-date-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-post-date-tiny",label:(0,be.__)("Tiny","gutenmate")},{name:"gtm-post-date-featured",label:(0,be.__)("Featured","gutenmate")},{name:"gtm-post-date-featured-mobile",label:(0,be.__)("Mobile featured","gutenmate")},{name:"gtm-post-date-tall",label:(0,be.__)("Tall","gutenmate")}]};var Wn=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-date-box","title":"Boxed Post Date","description":"Add a customizable post date.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","date"],"usesContext":["postId","postType","queryId"],"attributes":{"dateType":{"type":"string","enum":["create","modified"],"default":"create"},"enableLine1":{"type":"boolean","default":true},"line1format":{"type":"string","default":"M"},"line1typography":{"type":"object","default":{}},"line1padding":{"type":"object","default":{}},"line1spacing":{"type":"object","default":{}},"line1radius":{"type":["string","object"],"default":""},"line1color":{"type":"string","default":""},"line1bg":{"type":"object","default":{}},"line2format":{"type":"string","default":"d"},"line2typography":{"type":"object","default":{}},"line2padding":{"type":"object","default":{}},"line2radius":{"type":["string","object"],"default":""},"line2color":{"type":"string","default":""},"line2bg":{"type":"object","default":{}},"enableLine3":{"type":"boolean","default":true},"line3format":{"type":"string","default":"Y"},"line3typography":{"type":"object","default":{}},"line3padding":{"type":"object","default":{}},"line3spacing":{"type":"object","default":{}},"line3radius":{"type":["string","object"],"default":""},"line3color":{"type":"string","default":""},"line3bg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"textAlign":true},"gtmUseWebFonts":["line1typography","line2typography","line3typography"],"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-date-box-editor-style","style":"gtm-post-date-box-style"}');gtm_config.icons.date;We(Wn.name,Wn.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),t.enableLine1&&($e(a,"post-date-box-line-1-typography",(0,Je.parseTypographyProps)(t.line1typography)),$e(a,"post-date-box-line-1-padding",(0,Qe.G3)(t.line1padding)),$e(a,"post-date-box-line-1-spacing",(0,et._5)(t.line1spacing)),$e(a,"post-date-box-line-1-radius",(0,Le.parseBorderRadiusValue)(t.line1radius)),$e(a,"post-date-box-line-1-color",(0,Le.parseColorValue)(t.line1color)),$e(a,"post-date-box-line-1-bg",(0,Le.parseColorValue)(t.line1bg))),$e(a,"post-date-box-line-2-typography",(0,Je.parseTypographyProps)(t.line2typography)),$e(a,"post-date-box-line-2-padding",(0,Qe.G3)(t.line2padding)),$e(a,"post-date-box-line-2-radius",(0,Le.parseBorderRadiusValue)(t.line2radius)),$e(a,"post-date-box-line-2-color",(0,Le.parseColorValue)(t.line2color)),$e(a,"post-date-box-line-2-bg",(0,Le.parseColorValue)(t.line2bg)),t.enableLine3&&($e(a,"post-date-box-line-3-typography",(0,Je.parseTypographyProps)(t.line3typography)),$e(a,"post-date-box-line-3-padding",(0,Qe.G3)(t.line3padding)),$e(a,"post-date-box-line-3-spacing",(0,et._5)(t.line3spacing)),$e(a,"post-date-box-line-3-radius",(0,Le.parseBorderRadiusValue)(t.line3radius)),$e(a,"post-date-box-line-3-color",(0,Le.parseColorValue)(t.line3color)),$e(a,"post-date-box-line-3-bg",(0,Le.parseColorValue)(t.line3bg))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:$n}=Wn,Gn={...Wn,icon:he.SP,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{postType:r,postId:i}}=e,s=(0,we.useBlockProps)(),{postDateISO:c,postDateDisplay:u}=zn({postType:r,postId:i,format:t.line1format}),m=[{value:"d",label:(0,be.sprintf)("%s (Date with leading zero)",(0,Ht.dateI18n)("d",c))},{value:"j",label:(0,be.sprintf)("%s (Date without leading zero)",(0,Ht.dateI18n)("j",c))},{value:"M",label:(0,be.sprintf)("%s (3-letters month name)",(0,Ht.dateI18n)("M",c))},{value:"m",label:(0,be.sprintf)("%s (Numeric of a month with leading zero)",(0,Ht.dateI18n)("m",c))},{value:"n",label:(0,be.sprintf)("%s (Numeric of a month without leading zero)",(0,Ht.dateI18n)("n",c))},{value:"Y",label:(0,be.sprintf)("%s (4-digits year)",(0,Ht.dateI18n)("Y",c))},{value:"y",label:(0,be.sprintf)("%s (2-digits year)",(0,Ht.dateI18n)("y",c))},{value:"m/y",label:(0,be.sprintf)("%s (2-digits month/year)",(0,Ht.dateI18n)("m/y",c))},{value:"M y",label:(0,be.sprintf)("%s (month and 2-digits year)",(0,Ht.dateI18n)("M y",c))},{value:"M Y",label:(0,be.sprintf)("%s (month and 4-digits year)",(0,Ht.dateI18n)("M Y",c))}];let g=_e().createElement("span",null,(0,be.__)("mon","gutenmate")),p=_e().createElement("span",null,(0,be.__)("00","gutenmate")),d=_e().createElement("span",null,(0,be.__)("2000","gutenmate"));return c&&(g=_e().createElement("time",{dateTime:c},(0,Ht.dateI18n)(t.line1format,c)),p=_e().createElement("time",{dateTime:c},(0,Ht.dateI18n)(t.line2format,c)),d=_e().createElement("time",{dateTime:c},(0,Ht.dateI18n)(t.line3format,c))),_e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Display modified date","gutenmate"),checked:"modified"==t.dateType,onChange:e=>{a({dateType:e?"modified":"create"})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Line 1","gutenmate"),initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable","gutenmate"),checked:t.enableLine1,onChange:e=>{a({enableLine1:e})}}),t.enableLine1&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.SelectControl,{label:(0,be.__)("Format","gutenmate"),value:t.line1format,options:m,onChange:e=>{a({line1format:e})}}),_e().createElement(Je.default,{value:t.line1typography,onChange:e=>a({line1typography:e})}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.line1padding,onChange:e=>{a({line1padding:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.line1spacing,onChange:e=>{a({line1spacing:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.line1radius,onChange:e=>{a({line1radius:e})}}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Line 2","gutenmate"),initialOpen:!0},_e().createElement(Ee.SelectControl,{label:(0,be.__)("Format","gutenmate"),value:t.line2format,options:m,onChange:e=>{a({line2format:e})}}),_e().createElement(Je.default,{value:t.line2typography,onChange:e=>a({line2typography:e})}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.line2padding,onChange:e=>{a({line2padding:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.line2radius,onChange:e=>{a({line2radius:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Line 3","gutenmate"),initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable","gutenmate"),checked:t.enableLine3,onChange:e=>{a({enableLine3:e})}}),t.enableLine3&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.SelectControl,{label:(0,be.__)("Format","gutenmate"),value:t.line3format,options:m,onChange:e=>{a({line3format:e})}}),_e().createElement(Je.default,{value:t.line3typography,onChange:e=>a({line3typography:e})}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.line3padding,onChange:e=>{a({line3padding:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.line3spacing,onChange:e=>{a({line3spacing:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.line3radius,onChange:e=>{a({line3radius:e})}}))),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[...t.enableLine1?[{label:(0,be.__)("Line 1 color","gutenmate"),attr:"line1color"},{label:(0,be.__)("Line 1 background","gutenmate"),attr:"line1bg",gradient:!0}]:[],{label:(0,be.__)("Line 2 color","gutenmate"),attr:"line2color"},{label:(0,be.__)("Line 2 background","gutenmate"),attr:"line2bg",gradient:!0},...t.enableLine3?[{label:(0,be.__)("Line 3 color","gutenmate"),attr:"line3color"},{label:(0,be.__)("Line 3 background","gutenmate"),attr:"line3bg",gradient:!0}]:[]]})),_e().createElement("div",s,t.enableLine1&&_e().createElement("div",{className:"wp-block-gtm-post-date-box__line-1"},g),_e().createElement("div",{className:"wp-block-gtm-post-date-box__line-2"},p),t.enableLine3&&_e().createElement("div",{className:"wp-block-gtm-post-date-box__line-3"},d)))}};var Un=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-author","title":"Post Author","description":"Add a customizable post author meta.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","author"],"usesContext":["postId","postType","queryId"],"attributes":{"display":{"type":"string","default":"name"},"enableLink":{"type":"boolean","default":true},"linkColor":{"type":"string","default":""},"enableLinkUnderline":{"type":"boolean","default":false},"linkHoverColor":{"type":"string","default":""},"enableLinkHoverUnderline":{"type":"boolean","default":true},"label":{"type":"string","default":""},"labelTypography":{"type":"object","default":{}},"labelSpacing":{"type":"object","default":{}},"labelColor":{"type":"string","default":""},"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"iconWidth":{"type":"object","default":{}},"iconRadius":{"type":["string","object"],"default":""},"iconSpacing":{"type":"object","default":{}},"iconColor":{"type":"string","default":""},"iconBg":{"type":"object","default":{}},"iconHoverColor":{"type":"string","default":""},"iconHoverBg":{"type":"object","default":{}},"avatarSize":{"type":"string","default":"30px"},"avatarRadius":{"type":["string","object"],"default":""}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-author-editor-style","style":"gtm-post-author-style"}');function Zn({postType:e,postId:t}){const{authorId:a,authorDetails:n,authors:l}=(0,xe.useSelect)((a=>{const{getEditedEntityRecord:n,getUser:l,getUsers:o}=a(At.store),r=n("postType",e,t)?.author;return{authorId:r,authorDetails:r?l(r):null,authors:o({who:"authors"})}}),[e,t]);return a&&n?{authorAvatarUrl:n.avatar_urls[Object.keys(n.avatar_urls).pop()],authorDetails:n}:{}}const qn=gtm_config.icons.author;We(Un.name,Un.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-post-author-link-underline":t.enableLink&&t.enableLinkUnderline,"gtm-has-post-author-link-hover-underline":t.enableLink&&t.enableLinkHoverUnderline})),$e(a,"post-author-label-typography",(0,Je.parseTypographyProps)(t.labelTypography)),$e(a,"post-author-label-spacing",(0,et._5)(t.labelSpacing)),$e(a,"post-author-label-color",(0,Le.parseColorValue)(t.labelColor)),$e(a,"post-author-icon-spacing",(0,et._5)(t.iconSpacing)),t.enableLink&&($e(a,"post-author-link-color",(0,Le.parseColorValue)(t.linkColor)),$e(a,"post-author-link-hover-color",(0,Le.parseColorValue)(t.linkHoverColor))),"avatar"==t.display?$e(a,"post-author-avatar-radius",(0,Le.parseBorderRadiusValue)(t.avatarRadius)):($e(a,"post-author-icon-size",t.iconSize),$e(a,"post-author-icon-width",t.iconWidth),$e(a,"post-author-icon-radius",(0,Le.parseBorderRadiusValue)(t.iconRadius)),$e(a,"post-author-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"post-author-icon-bg",(0,Le.parseColorValue)(t.iconBg)),$e(a,"post-author-icon-hover-color",(0,Le.parseColorValue)(t.iconHoverColor)),$e(a,"post-author-icon-hover-bg",(0,Le.parseColorValue)(t.iconHoverBg))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Jn}=Un,Kn={...Un,icon:he.aT,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{postType:r,postId:i}}=e,s=(0,we.useBlockProps)(),{authorAvatarUrl:c,authorDetails:u}=Zn({postType:r,postId:i}),m="avatar"==t.display,g="icon"==t.display;return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{options:[{label:(0,be.__)("Name only","gutenmate"),value:"name"},{label:(0,be.__)("Icon and name","gutenmate"),value:"icon"},{label:(0,be.__)("Avatar and name","gutenmate"),value:"avatar"}],selected:t.display,onChange:e=>{a({display:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Link to author page","gutenmate"),checked:t.enableLink,onChange:e=>{a({enableLink:e})}}),t.enableLink&&_e().createElement(Ce.Fragment,null,_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Underline","gutenmate"),checked:t.enableLinkUnderline,onChange:e=>{a({enableLinkUnderline:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hover underline","gutenmate"),checked:t.enableLinkHoverUnderline,onChange:e=>{a({enableLinkHoverUnderline:e})}}))}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Label","gutenmate"),initialOpen:!1},_e().createElement(Ee.TextControl,{label:(0,be.__)("Label","gutenmate"),help:(0,be.__)("An additional label for the block. Some styles require a label for looking better.","gutenmate"),value:t.label,onChange:e=>a({label:e})}),_e().createElement(Je.default,{value:t.labelTypography,onChange:e=>a({labelTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Label spacing","gutenmate"),value:t.labelSpacing,onChange:e=>a({labelSpacing:e})})),"icon"==t.display&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),help:(0,be.__)("An icon for the block. Leave blank to use the default icon.","gutenmate"),defaultIcon:qn,value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),help:(0,be.__)("A size of the icon","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon width","gutenmate"),help:(0,be.__)("A width of the icon container","gutenmate"),value:t.iconWidth,onChange:e=>{a({iconWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.iconRadius,onChange:e=>{a({iconRadius:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),help:(0,be.__)("A space between the icon and the text","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})})),"avatar"==t.display&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Avatar","gutenmate"),initialOpen:!0},_e().createElement(Ke.dO,{label:(0,be.__)("Avatar size","gutenmate"),value:t.avatarSize,pxUnitOnly:!0,max:"100",onChange:e=>{a({avatarSize:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Avatar spacing","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.avatarRadius,onChange:e=>{a({avatarRadius:e})}})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[..."icon"==t.display?[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon background","gutenmate"),attr:"iconBg",gradient:!0},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"iconHoverColor"},{label:(0,be.__)("Icon hover background","gutenmate"),attr:"iconHoverBg",gradient:!0}]:[],{label:(0,be.__)("Label color","gutenmate"),attr:"labelColor"},...t.enableLink?[{label:(0,be.__)("Link color","gutenmate"),attr:"linkColor"},{label:(0,be.__)("Link hover color","gutenmate"),attr:"linkHoverColor"}]:[]]})),_e().createElement("div",s,m&&c&&_e().createElement("img",{className:"avatar",width:t.avatarSize,src:c||placeholderAvatar}),m&&!c&&_e().createElement(he.Si,{className:"avatar",width:t.avatarSize||40}),g&&_e().createElement("i",{className:`gtm-icon ${t.icon||qn}`,"aria-hidden":"true"}),t.label&&_e().createElement("span",{className:"wp-block-gtm-post-author__label"},t.label),!t.enableLink&&_e().createElement("span",{className:"wp-block-gtm-post-author__author wp-block-gtm-post-author__content"},u?.name),t.enableLink&&_e().createElement("a",{className:"wp-block-gtm-post-author__author wp-block-gtm-post-author__content",href:"#post-author-pseudo-link",onClick:e=>e.preventDefault()},u?.name||(0,be.__)("Author name","gutenmate"))))},styles:[{name:"gtm-post-author-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-post-author-tiny",label:(0,be.__)("Tiny","gutenmate")},{name:"gtm-post-author-featured",label:(0,be.__)("Featured","gutenmate")},{name:"gtm-post-author-featured-mobile",label:(0,be.__)("Mobile featured","gutenmate")},{name:"gtm-post-author-tall",label:(0,be.__)("Tall","gutenmate")}]};var Qn=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-author-date","title":"Post author & date","description":"Add a customizable post author & date.","category":"gtm-layout","keywords":["gutenmate","post","author","date"],"usesContext":["postId","postType","queryId"],"attributes":{"authorTypography":{"type":"object","default":{}},"enableAuthorLink":{"type":"boolean","default":true},"authorLinkColor":{"type":"string","default":""},"enableAuthorLinkUnderline":{"type":"boolean","default":false},"authorLinkHoverColor":{"type":"string","default":""},"enableAuthorLinkHoverUnderline":{"type":"boolean","default":true},"avatarSize":{"type":"string","default":"50px"},"avatarRadius":{"type":["string","object"],"default":""},"avatarShadow":{"type":"string","default":""},"avatarSpacing":{"type":"object","default":{}},"dateType":{"type":"string","enum":["create","modified"],"default":"create"},"dateFormat":{"type":"string","default":""},"dateSpacing":{"type":"object","default":{}},"dateTypography":{"type":"object","default":{}},"enableDateLink":{"type":"boolean","default":true},"dateLinkColor":{"type":"string","default":""},"enableDateLinkUnderline":{"type":"boolean","default":false},"dateLinkHoverColor":{"type":"string","default":""},"enableDateLinkHoverUnderline":{"type":"boolean","default":true}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true},"gtmResponsiveAttributes":true,"gtmUseWebFonts":["authorTypography","dateTypography"]},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-author-date-editor-style","style":"gtm-post-author-date-style"}');We(Qn.name,Qn.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-post-author-date-author-underline":t.enableAuthorLink&&t.enableAuthorLinkUnderline,"gtm-has-post-author-date-author-hover-underline":t.enableAuthorLink&&t.enableAuthorLinkHoverUnderline,"gtm-has-post-author-date-date-underline":t.enableDateLink&&t.enableDateLinkUnderline,"gtm-has-post-author-date-date-hover-underline":t.enableDateLink&&t.enableDateLinkHoverUnderline})),$e(a,"post-author-date-author-typography",(0,Je.parseTypographyProps)(t.authorTypography)),$e(a,"post-author-date-author-color",(0,Le.parseColorValue)(t.authorLinkColor)),t.enableAuthorLink&&$e(a,"post-author-date-author-hover-color",(0,Le.parseColorValue)(t.authorLinkHoverColor)),$e(a,"post-author-date-avatar-radius",(0,Le.parseBorderRadiusValue)(t.avatarRadius)),$e(a,"post-author-date-avatar-shadow",(0,qe.s)(t.avatarShadow)),$e(a,"post-author-date-avatar-spacing",(0,et._5)(t.avatarSpacing)),$e(a,"post-author-date-date-spacing",(0,et._5)(t.dateSpacing)),$e(a,"post-author-date-date-typography",(0,Je.parseTypographyProps)(t.dateTypography)),$e(a,"post-author-date-date-color",(0,Le.parseColorValue)(t.dateLinkColor)),t.enableDateLink&&$e(a,"post-author-date-date-hover-color",(0,Le.parseColorValue)(t.dateLinkHoverColor)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Xn}=Qn,Yn={...Qn,icon:he.aT,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{postType:r,postId:i}}=e,s=(0,we.useBlockProps)(),{dateFormatOptions:c,postDateISO:u,postDateDisplay:m}=zn({postType:r,postId:i,format:t.dateFormat});let g=_e().createElement("span",null,(0,be.__)("Post Date","gutenmate"));u&&(g=_e().createElement("time",{dateTime:u},m));const{authorAvatarUrl:p,authorDetails:d}=Zn({postType:r,postId:i});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Avatar","gutenmate"),initialOpen:!1},_e().createElement(Ke.dO,{label:(0,be.__)("Avatar size","gutenmate"),value:t.avatarSize,pxUnitOnly:!0,max:"100",onChange:e=>{a({avatarSize:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Avatar spacing","gutenmate"),value:t.avatarSpacing,onChange:e=>a({avatarSpacing:e})}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.avatarRadius,onChange:e=>{a({avatarRadius:e})}}),_e().createElement(qe.Z,{label:(0,be.__)("Shadow","gutenmate"),value:t.avatarShadow,onChange:e=>{a({avatarShadow:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Author","gutenmate"),initialOpen:!1},_e().createElement(Je.default,{value:t.authorTypography,onChange:e=>a({authorTypography:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Link to author page","gutenmate"),checked:t.enableAuthorLink,onChange:e=>{a({enableAuthorLink:e})}}),t.enableAuthorLink&&_e().createElement(Ce.Fragment,null,_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Underline","gutenmate"),checked:t.enableAuthorLinkUnderline,onChange:e=>{a({enableAuthorLinkUnderline:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hover underline","gutenmate"),checked:t.enableAuthorLinkHoverUnderline,onChange:e=>{a({enableAuthorLinkHoverUnderline:e})}}))}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Date","gutenmate"),initialOpen:!1},_e().createElement(Ee.SelectControl,{label:(0,be.__)("Format","gutenmate"),value:t.dateFormat,options:c,onChange:e=>{a({dateFormat:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.dateSpacing,onChange:e=>a({dateSpacing:e})}),_e().createElement(Je.default,{value:t.dateTypography,onChange:e=>a({dateTypography:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Display modified date","gutenmate"),checked:"modified"==t.dateType,onChange:e=>{a({dateType:e?"modified":"create"})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Link to post page","gutenmate"),checked:t.enableDateLink,onChange:e=>{a({enableDateLink:e})}}),t.enableDateLink&&_e().createElement(Ce.Fragment,null,_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Underline","gutenmate"),checked:t.enableDateLinkUnderline,onChange:e=>{a({enableDateLinkUnderline:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hover underline","gutenmate"),checked:t.enableDateLinkHoverUnderline,onChange:e=>{a({enableDateLinkHoverUnderline:e})}}))}))),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[...t.enableAuthorLink?[{label:(0,be.__)("Author color","gutenmate"),attr:"authorLinkColor"},{label:(0,be.__)("Author hover color","gutenmate"),attr:"authorLinkHoverColor"}]:[{label:(0,be.__)("Author color","gutenmate"),attr:"authorLinkColor"}],...t.enableDateLink?[{label:(0,be.__)("Date color","gutenmate"),attr:"dateLinkColor"},{label:(0,be.__)("Date hover color","gutenmate"),attr:"dateLinkHoverColor"}]:[{label:(0,be.__)("Date color","gutenmate"),attr:"dateLinkColor"}]]})),_e().createElement("div",s,p&&_e().createElement("img",{className:"avatar",width:t.avatarSize||40,src:p}),!p&&_e().createElement(he.Si,{className:"avatar",width:t.avatarSize||40}),_e().createElement("div",{className:"gtm-post-author-date__details"},_e().createElement("div",{className:"gtm-post-author-date__author"},d?.name||(0,be.__)("Author name","gutenmate")),_e().createElement("div",{className:"gtm-post-author-date__date"},g))))},variations:[]};var el=a(9534),tl=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-featured-image","title":"Post Featured Image","description":"Add a customizable post featured image.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","image","featured"],"usesContext":["postId","postType","queryId"],"attributes":{"display":{"type":"string","default":"image"},"useAltImage":{"type":"boolean","default":false},"hideWhenNoImage":{"type":"boolean","default":true},"imageWidth":{"type":"object","default":{}},"imageHeight":{"type":"object","default":{}},"imageSize":{"type":"string","default":"medium_large"},"imageFocalPoint":{"type":"object","default":{"x":0.5,"y":0.5}},"imageHoverEffect":{"type":"string","default":""},"imageHoverBlur":{"type":"boolean","default":false},"imageHoverGray":{"type":"boolean","default":false},"contentMaxWidth":{"type":"object","default":{}},"contentPosition":{"type":"string","default":"center"},"contentPadding":{"type":"object","default":{}},"overlayBg":{"type":"object","default":{}},"overlayOpacity":{"type":"number"},"overlayBlendMode":{"type":"string","default":""},"overlayHoverBg":{"type":"object","default":{}},"overlayHoverOpacity":{"type":"number"},"overlayHoverBlendMode":{"type":"string","default":""},"enableFormatIcon":{"type":"boolean","default":false},"formatIconSize":{"type":"object","default":{}},"formatIconWidth":{"type":"object","default":{}},"formatIconRadius":{"type":["string","object"],"default":""},"formatIconColor":{"type":"object","default":{}},"formatIconBg":{"type":"object","default":{}},"formatIconHoverColor":{"type":"object","default":{}},"formatIconHoverBg":{"type":"object","default":{}},"linkTo":{"type":"string","enum":["","file","post"],"default":""},"enableMedia":{"type":"boolean","default":false},"hideWhenNoMedia":{"type":"boolean","default":false},"enableInlineMedia":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"radius":{"cssProp":"post-featured-image-radius"},"shadow":{"cssProp":"post-featured-image-shadow"},"lazyLoad":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-featured-image-editor-style","style":"gtm-post-featured-image-style"}'),al=({clientId:e,attributes:{imageWidth:t,imageHeight:a},setAttributes:n})=>_e().createElement(we.InspectorControls,{__experimentalGroup:"dimensions",group:"dimensions"},_e().createElement(Ee.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!a,label:(0,be.__)("Height","gutenmate"),onDeselect:()=>n({imageHeight:void 0}),resetAllFilter:()=>({imageHeight:void 0}),isShownByDefault:!0,panelId:e},_e().createElement(Ke.GZ,{label:(0,be.__)("Width","gutenmate"),value:t,max:"1000",onChange:e=>{n({imageWidth:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Height","gutenmate"),value:a,max:"1000",onChange:e=>{n({imageHeight:e})}}))),nl=a.p+"images/preview-1500.14f50fac.webp",ll=a.p+"images/preview-750.83908f7a.webp";const{find:ol,get:rl}=lodash,il=_e().createElement(Ee.SVG,{className:"gtm-placeholder-control__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},_e().createElement(Ee.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"})),sl=({size:e="thumbnail"})=>{let t={},a=1500;const n=(0,Le.getImageSizeMeta)(e);return n?.width&&(a=t.width=n.width),n?.height&&(t.height=n.height),n?.width&&n?.height&&(t.aspectRatio=`${n.width} / ${n.height}`,delete t.height),t.width="100%",t.height="100%",t.objectFit="cover",_e().createElement("div",{className:"gtm-placeholder-control"},il,_e().createElement("img",{src:nl,srcSet:`${nl} 1500w, ${ll} 750w`,sizes:`(max-width: ${a}px) 100vw, ${a}px`,style:t,decoding:"async",loading:"lazy"}))};var cl=window.wp.editPost,ul=window.wp.plugins;const ml=Lt.Z.p`
	font-size: 12px;
	color: #757575;
`,gl=({fieldSlug:e,field:t})=>{const a=(0,xe.useSelect)((e=>e("core/editor").getCurrentPostType()),[]),[n={},l]=(0,At.useEntityProp)("postType",a,"meta");return(0,Ce.useEffect)((()=>{Le.workaroundUpdateCustomField(e,n[e])})),"textarea"==t.type?_e().createElement(Ee.TextareaControl,{label:t.title,help:t.description,value:n[e],onChange:t=>l({...n,[e]:t})}):_e().createElement(Ee.TextControl,{label:t.title,help:t.description,value:n[e],autoComplete:"off",onChange:t=>l({...n,[e]:t})})},pl=(e,t)=>()=>_e().createElement(cl.PluginDocumentSettingPanel,{name:`gtm-custom-fields-${e}`,title:t.title,className:`gtm-custom-fields-${e}`},t.description&&_e().createElement(ml,null,t.description),Object.entries(t.fields).map((([e,t],a)=>_e().createElement(gl,{key:a,fieldSlug:e,field:t})))),dl=(e,t)=>e.metaKey===t.metaKey;if(gtm_config.custom_fields){const e=typenow;for(let[t,a]of Object.entries(gtm_config.custom_fields)){t=`gtm-custom-fields-${t.replaceAll(/[\t _]+/g,"-")}`;const n=""==a.post_type||a.post_type==e;if(a.fields){Le.isPostEditPage&&n&&(0,ul.registerPlugin)(t,{render:pl(t,a),icon:void 0});for(let[e,t]of Object.entries(a.fields))bl={name:e,title:`${a.title} - ${t.title}`,meta:e},(0,de.registerBlockVariation)("gtm/custom-field",{name:bl.name,title:bl.title,attributes:{metaKey:bl.meta},isActive:dl,scope:["transform"]})}}}var bl;const hl=["image"],yl=(0,be.__)("Image","gutenmate"),_l=(0,be.__)("Set image","gutenmate"),vl=(0,be.__)("Remove image","gutenmate"),fl=(0,Se.compose)(Ee.withNotices)((({value:e,onChange:t=Te.noop,label:a,help:n,setImageLabel:l,removeImageLabel:o,removeImageLabels:r,noticeOperations:i,noticeUI:s,...c})=>{const u=!!e,{media:m,onDropImage:g}=(0,xe.useSelect)((a=>{const{getMedia:n}=a(At.store);return{media:e?n(e,{context:"view"}):null,onDropImage:e=>{a(we.store).getSettings().mediaUpload({allowedTypes:["image"],filesList:e,onFileChange([e]){t(e)},onError(e){i.removeAllNotices(),i.createErrorNotice(e)}})}}}));let p,d,b;return(0,Te.has)(m,["media_details","sizes","thumbnail"])&&(p=m.media_details.sizes.thumbnail.width,d=m.media_details.sizes.thumbnail.height,b=m.media_details.sizes.thumbnail.source_url),_e().createElement(Ee.BaseControl,{className:"gtm-image-selector-control",label:a||yl,help:n},_e().createElement("div",null,_e().createElement(we.MediaUploadCheck,null,s,_e().createElement(we.MediaUpload,{onSelect:t,unstableFeaturedImageFlow:!0,allowedTypes:hl,value:e,render:({open:e})=>_e().createElement("div",{className:"gtm-image-selector-control__container"},_e().createElement(Ee.Button,{className:u?"gtm-image-selector-control__preview":"gtm-image-selector-control__toggle",onClick:e,"aria-label":u?(0,be.__)("Edit or update the image","gutenmate"):null},u&&m&&_e().createElement(Ee.ResponsiveWrapper,{naturalWidth:p,naturalHeight:d,isInline:!0},_e().createElement("img",{src:b,alt:""})),u&&!m&&_e().createElement(Ee.Spinner,null),!u&&(l||_l)),_e().createElement(Ee.DropZone,{onFilesDrop:g}))})),u&&m&&!m.isLoading&&_e().createElement(we.MediaUploadCheck,null,_e().createElement(we.MediaUpload,{title:yl,onSelect:t,unstableFeaturedImageFlow:!0,allowedTypes:hl,render:({open:e})=>_e().createElement(Ee.Button,{onClick:e,variant:"secondary"},(0,be.__)("Replace Image","gutenmate"))})),u&&_e().createElement(we.MediaUploadCheck,null,_e().createElement(Ee.Button,{onClick:e=>{t()},variant:"link",isDestructive:!0},o||vl))))})),kl="gtm_video_url",Cl="gtm_audio_url",El="gtm_alt_featured_image";Le.isPostEditPage&&wp.plugins?.registerPlugin("plugin-document-setting-panel-demo",{render:()=>{const e=(0,xe.useSelect)((e=>e("core/editor").getCurrentPostType()),[]),[t={},a]=(0,At.useEntityProp)("postType",e,"meta"),[n]=(0,At.useEntityProp)("postType",e,"format");return(0,Ce.useEffect)((()=>{Le.workaroundUpdateCustomField(kl,t.gtm_video_url),Le.workaroundUpdateCustomField(Cl,t.gtm_audio_url),Le.workaroundUpdateCustomField(El,t.gtm_alt_featured_image)})),_e().createElement(cl.PluginDocumentSettingPanel,{name:"gtm-post-options",title:"Post Options",className:"gtm-post-options"},_e().createElement(fl,{label:(0,be.__)("Alternative featured image","gutenmate"),help:(0,be.__)("Define an alternative featured image for using in block","gutenmate"),setImageLabel:(0,be.__)("Set alternative featured image","gutenmate"),value:t.gtm_alt_featured_image,onChange:e=>{let n;e&&(n=e.id),a({...t,[El]:n})}}),"video"===n&&_e().createElement(Ee.TextControl,{label:(0,be.__)("Video URL","gutenmate"),help:(0,be.__)("Enter a featured video URL","gutenmate"),value:t.gtm_video_url,onChange:e=>a({...t,[kl]:e})}),"audio"===n&&_e().createElement(Ee.TextControl,{label:(0,be.__)("Audio URL","gutenmate"),help:(0,be.__)("Enter a featured audio URL","gutenmate"),value:t.gtm_audio_url,onChange:e=>a({...t,[Cl]:e})}))}});var wl=a(6526);We(tl.name,tl.name,(function(e,t){let a={classes:[],style:{}};const n="cover"==t.display;return a.classes.push(fe()("gtm-block",{[`gtm-has-post-featured-image-link-to-${t.linkTo}`]:t.linkTo,"gtm-has-post-featured-image-hover-blur":t.imageHoverBlur,"gtm-has-post-featured-image-hover-gray":t.imageHoverGray,"gtm-has-post-featured-image-format-icon":t.enableFormatIcon,"gtm-hide-no-post-featured-image":t.hideWhenNoImage})),Ge(a,"post-featured-image-display",t.display),$e(a,"post-featured-image-focal",(0,Le.parseFocalPointValue)(t.imageFocalPoint)),Ge(a,"post-featured-image-hover",t.imageHoverEffect),$e(a,"post-featured-image-height",t.imageHeight),$e(a,"post-featured-image-width",t.imageWidth),n&&($e(a,"post-featured-image-content-max-width",t.contentMaxWidth),$e(a,"post-featured-image-content",(0,Le.parseFlexMatrixPositionValue)(t.contentPosition)),$e(a,"post-featured-image-content-padding",(0,Qe.G3)(t.contentPadding))),!n&&t.enableFormatIcon&&($e(a,"post-featured-image-format-icon-size",t.formatIconSize),$e(a,"post-featured-image-format-icon-width",t.formatIconWidth),$e(a,"post-featured-image-format-icon-radius",(0,Le.parseBorderRadiusValue)(t.formatIconRadius)),$e(a,"post-featured-image-format-icon-color",(0,Le.parseColorValue)(t.formatIconColor)),$e(a,"post-featured-image-format-icon-bg",(0,Le.parseColorValue)(t.formatIconBg)),$e(a,"post-featured-image-format-icon-hover-color",(0,Le.parseColorValue)(t.formatIconHoverColor)),$e(a,"post-featured-image-format-icon-hover-bg",(0,Le.parseColorValue)(t.formatIconHoverBg))),$e(a,"post-featured-image-overlay",(0,Le.parseColorValue)(t.overlayBg)),t.overlayOpacity&&$e(a,"post-featured-image-overlay-opacity",""+parseInt(t.overlayOpacity)/100),$e(a,"post-featured-image-overlay-blend-mode",t.overlayBlendMode),$e(a,"post-featured-image-overlay-hover",(0,Le.parseColorValue)(t.overlayHoverBg)),t.overlayHoverOpacity&&$e(a,"post-featured-image-overlay-hover-opacity",""+parseInt(t.overlayHoverOpacity)/100),$e(a,"post-featured-image-overlay-hover-blend-mode",t.overlayHoverBlendMode),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Sl}=tl,xl={...tl,icon:he.Uz,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:{postType:i,postId:s}}=e,[c={},u]=(0,At.useEntityProp)("postType",i,"meta",s),[m,g]=(0,At.useEntityProp)("postType",i,"featured_media",s);let p=m;t.useAltImage&&c.gtm_alt_featured_image&&(p=c.gtm_alt_featured_image);const d=(0,xe.useSelect)((e=>p&&e("core").getMedia(p,{context:"view"})),[p]);let b,h,y;d&&(d.media_details.sizes[t.imageSize]?(h=(0,Te.pick)(d.media_details.sizes[t.imageSize],["width","height"]),y=d.media_details.sizes[t.imageSize].source_url):(h=(0,Te.pick)(d.media_details,["width","height"]),y=d.source_url)),b=d?_e().createElement("img",{src:y,alt:d.alt_text||(0,be.__)("Featured image","gutenmate")}):sl({size:t.imageSize});const _="cover"==t.display,v=(0,we.useBlockProps)({className:fe()({"gtm-has-no-featured-image":_&&!d})}),f=(0,we.useInnerBlocksProps)({className:fe()("wp-block-gtm-post-featured-image__content")},{template:[["core/group"]]}),[k]=(0,At.useEntityProp)("postType",i,"format",s),C=(0,xe.useSelect)((e=>{const t=e(wl.G).getSettings(),a="gtm-basic-icon-play";if(k&&t&&t.post_format_icons){const e=t.post_format_icons[k];return n?e||a:"video"!==k||e?e:a}if(n)return a})),E=n||C;return _e().createElement(Ce.Fragment,null,_e().createElement(al,{clientId:o,attributes:t,setAttributes:a}),_e().createElement(we.BlockControls,{group:"block"},_&&_e().createElement(Ce.Fragment,null,_e().createElement(we.__experimentalBlockAlignmentMatrixControl,{label:(0,be.__)("Change content position","gutenmate"),value:t.contentPosition,onChange:e=>a({contentPosition:e})}))),_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{options:[{label:"Image",value:"image"},{label:"Cover",value:"cover"}],selected:t.display,onChange:e=>{a({display:e})}}),_e().createElement(Ce.Fragment,null,_e().createElement(Ee.FocalPointPicker,{url:y,dimensions:h,value:t.imageFocalPoint,onChange:e=>a({imageFocalPoint:e})})),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Use alternative featured image if available","gutenmate"),checked:t.useAltImage,onChange:e=>{a({useAltImage:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide block when no featured image","gutenmate"),checked:t.hideWhenNoImage,onChange:e=>{a({hideWhenNoImage:e})}}),_e().createElement(Ee.SelectControl,{label:(0,be.__)("Image size","gutenmate"),value:t.imageSize,options:(0,Le.getImageSizeOptions)(),onChange:e=>{a({imageSize:e})}}),_e().createElement(Ee.SelectControl,{label:"Hover effect",value:t.imageHoverEffect,options:el.VX,onChange:e=>{a({imageHoverEffect:e})}}),t.imageHoverEffect&&_e().createElement("div",{className:"gtm-group"},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("With blur effect","gutenmate"),checked:t.imageHoverBlur,onChange:e=>{a({imageHoverBlur:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("With grayscale effect","gutenmate"),checked:t.imageHoverGray,onChange:e=>{a({imageHoverGray:e})}}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Featured media","gutenmate")},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Allow featured media if available","gutenmate"),checked:t.enableMedia,onChange:e=>{a({enableMedia:e})}}),t.enableMedia&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide block when no featured media","gutenmate"),checked:t.hideWhenNoMedia,onChange:e=>{a({hideWhenNoMedia:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Replace image with featured media","gutenmate"),help:(0,be.__)("All inside content will be overridden","gutenmate"),checked:t.enableInlineMedia,onChange:e=>{a({enableInlineMedia:e})}}))),_&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Content","gutenmate"),initialOpen:!1},_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.contentPadding,onChange:e=>{a({contentPadding:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Max width","gutenmate"),value:t.contentMaxWidth,max:"1000",onChange:e=>{a({contentMaxWidth:e})}})),!_&&_e().createElement(Ye,{title:(0,be.__)("Post format","gutenmate"),attributes:t,setAttributes:a,gtmSettings:t.enableFormatIcon?[{label:(0,be.__)("Color","gutenmate"),attr:"formatIconColor",gradient:!0},{label:(0,be.__)("Background","gutenmate"),attr:"formatIconBg",gradient:!0},{label:(0,be.__)("Hover color","gutenmate"),attr:"formatIconHoverColor",gradient:!0},{label:(0,be.__)("Hover background","gutenmate"),attr:"formatIconHoverBg",gradient:!0}]:[]},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Show post format icon","gutenmate"),checked:t.enableFormatIcon,onChange:e=>{a({enableFormatIcon:e})}}),t.enableFormatIcon&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.formatIconSize,max:"100",onChange:e=>{a({formatIconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon container size","gutenmate"),value:t.formatIconWidth,max:"200",onChange:e=>{a({formatIconWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.formatIconRadius,onChange:e=>{a({formatIconRadius:e})}}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Link","gutenmate"),initialOpen:!1},_e().createElement(Ee.__experimentalToggleGroupControl,{label:"Link to",help:(0,Le.selectiveHelp)(t.linkTo,{file:(0,be.__)("The featured image will link to image file.","gutenmate"),post:(0,be.__)("The featured image will link to post page.","gutenmate")}),value:t.linkTo,isBlock:!0,onChange:e=>{a({linkTo:e})}},_e().createElement(Ee.__experimentalToggleGroupControlOption,{label:(0,be.__)("None","gutenmate"),value:""}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{label:(0,be.__)("Image","gutenmate"),value:"file"}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{label:(0,be.__)("Post","gutenmate"),value:"post"}))),_e().createElement(Ye,{title:(0,be.__)("Overlay","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Overlay background","gutenmate"),attr:"overlayBg",gradient:!0},{label:(0,be.__)("Overlay hover background","gutenmate"),attr:"overlayHoverBg",gradient:!0}]},_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RangeControl,{label:(0,be.__)("Overlay opacity","gutenmate"),value:t.overlayOpacity,onChange:e=>{a({overlayOpacity:e})},min:0,max:100,step:10,allowReset:!0}),_e().createElement(Ee.SelectControl,{label:"Overlay blend mode",value:t.overlayBlendMode,options:el.rh,onChange:e=>{a({overlayBlendMode:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RangeControl,{label:(0,be.__)("Overlay hover opacity","gutenmate"),value:t.overlayHoverOpacity,onChange:e=>{a({overlayHoverOpacity:e})},min:0,max:100,step:10,allowReset:!0}),_e().createElement(Ee.SelectControl,{label:"Overlay hover blend mode",value:t.overlayHoverBlendMode,options:el.rh,onChange:e=>{a({overlayHoverBlendMode:e})}}))}))),_e().createElement("div",v,_e().createElement("div",{className:"wp-block-gtm-post-featured-image__img"},b,!_&&t.enableFormatIcon&&E&&_e().createElement("span",{className:"wp-block-gtm-post-featured-image__format-icon"},_e().createElement("i",{className:`gtm-icon ${C}`,"aria-hidden":"true"}))),_&&_e().createElement("div",f)))},save:function(e){const{attributes:t}=e;return"cover"==t.display?_e().createElement(we.InnerBlocks.Content,null):null},styles:[{name:"gtm-post-featured-image-blob-1",label:(0,be.__)("Blob 1","gutenmate")},{name:"gtm-post-featured-image-blob-2",label:(0,be.__)("Blob 2","gutenmate")},{name:"gtm-post-featured-image-wavy-1-top",label:(0,be.__)("Wavy 1 Top","gutenmate")},{name:"gtm-post-featured-image-wavy-1-bottom",label:(0,be.__)("Wavy 1 Bottom","gutenmate")},{name:"gtm-post-featured-image-wavy-1-frame",label:(0,be.__)("Wavy 1 Frame","gutenmate")},{name:"gtm-post-featured-image-triangle-1-top",label:(0,be.__)("Triangle 1 Top","gutenmate")},{name:"gtm-post-featured-image-triangle-1-bottom",label:(0,be.__)("Triangle 1 Bottom","gutenmate")},{name:"gtm-post-featured-image-triangle-1-frame",label:(0,be.__)("Triangle 1 Frame","gutenmate")},{name:"gtm-post-featured-image-triangle-2-top",label:(0,be.__)("Triangle 2 Top","gutenmate")},{name:"gtm-post-featured-image-triangle-2-bottom",label:(0,be.__)("Triangle 2 Bottom","gutenmate")},{name:"gtm-post-featured-image-triangle-2-frame",label:(0,be.__)("Triangle 2 Frame","gutenmate")},{name:"gtm-post-featured-image-adaptive",label:(0,be.__)("Adaptive","gutenmate")}]};var Tl=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-featured-image-caption","title":"Post Featured Image Caption","description":"Add a customizable post featured image caption.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","image","featured","caption","text"],"usesContext":["postId","postType","queryId"],"attributes":{"display":{"type":"string","default":"text"},"source":{"type":"string","default":"caption"},"useAltImage":{"type":"boolean","default":false},"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"iconSpacing":{"type":"object","default":{}},"iconColor":{"type":"string","default":""}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-featured-image-caption-editor-style","style":"gtm-post-featured-image-caption-style"}');const Bl=gtm_config.icons.caption;(0,be.__)("Featured Image Caption","gutenmate");We(Tl.name,Tl.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),Ge(a,"post-featured-image-caption-display",t.display),$e(a,"post-featured-image-caption-icon-spacing",(0,et._5)(t.iconSpacing)),"icon"==t.display&&($e(a,"post-featured-image-caption-icon-size",(0,et._5)(t.iconSize)),$e(a,"post-featured-image-caption-icon-color",(0,Le.parseColorValue)(t.iconColor))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Il}=Tl,Pl={...Tl,icon:he.Bw,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:{postType:i,postId:s}}=e,{replaceInnerBlocks:c}=(0,xe.useDispatch)(we.store),u=(0,we.useBlockProps)(),[m={},g]=(0,At.useEntityProp)("postType",i,"meta",s),[p,d]=(0,At.useEntityProp)("postType",i,"featured_media",s);let b=p;t.useAltImage&&m.gtm_alt_featured_image&&(b=m.gtm_alt_featured_image);const h=(0,xe.useSelect)((e=>b&&e("core").getMedia(b)),[b]);let y=(0,be.__)("Featured image caption","gutenmate");return h&&("caption"==t.source?y=h.caption.raw:"title"==t.source?y=h.title.raw:"description"==t.source?y=h.description.raw:"alt"==t.source&&(y=h.alt_text)),_e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Use alternative featured image if available","gutenmate"),checked:t.useAltImage,onChange:e=>{a({useAltImage:e})}}),_e().createElement(Ee.RadioControl,{options:[{label:(0,be.__)("Text","gutenmate"),value:"text"},{label:(0,be.__)("Icon and text","gutenmate"),value:"icon"}],selected:t.display,onChange:e=>{a({display:e})}}),_e().createElement(Ee.RadioControl,{label:(0,be.__)("Source","gutenmate"),selected:t.source,options:[{label:(0,be.__)("Caption","gutenmate"),value:"caption"},{label:(0,be.__)("Title","gutenmate"),value:"title"},{label:(0,be.__)("Description","gutenmate"),value:"description"},{label:(0,be.__)("Alternative text","gutenmate"),value:"alt"}],onChange:e=>{a({source:e})}})),"icon"==t.display&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),defaultIcon:Bl,value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"}]}))),_e().createElement("div",u,_e().createElement("span",null,"icon"==t.display&&_e().createElement(Ce.Fragment,null,_e().createElement("i",{className:`gtm-icon ${t.icon||Bl}`,"aria-hidden":"true"})),y)))},save:function(e){const{attributes:t}=e;return null},styles:[{name:"gtm-post-featured-image-caption-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-post-featured-image-caption-tiny",label:(0,be.__)("Tiny","gutenmate")}]};var Ll=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-featured-image-text","title":"Post Featured Image & Text","description":"Add a customizable post featured image with text.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","image","featured","text"],"usesContext":["postId","postType","queryId"],"attributes":{"enableCover":{"type":"boolean","default":true},"useAltImage":{"type":"boolean","default":false},"imageHeight":{"type":"object","default":{}},"imageSize":{"type":"string","default":"medium_large"},"imageFocalPoint":{"type":"object","default":{"x":0.5,"y":0.5}},"imageHoverEffect":{"type":"string","default":""},"imageHoverBlur":{"type":"boolean","default":false},"imageHoverGray":{"type":"boolean","default":false},"floatingOffset":{"type":"object","default":{}},"contentSize":{"type":"object","default":{}},"contentPlacement":{"type":"string","enum":["top","bottom","left","right"],"default":"right"},"contentPadding":{"type":"object","default":{}},"contentBg":{"type":"object","default":{}},"overlayBg":{"type":"object","default":{}},"overlayOpacity":{"type":"number"},"overlayBlendMode":{"type":"string","default":""},"overlayHoverBg":{"type":"object","default":{}},"overlayHoverOpacity":{"type":"number"},"overlayHoverBlendMode":{"type":"string","default":""},"linkTo":{"type":"string","enum":["","file","post"],"default":""}},"supports":{"align":["wide","full"],"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"radius":true,"shadow":true,"lazyLoad":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-featured-image-text-editor-style","style":"gtm-post-featured-image-text-style"}');We(Ll.name,Ll.name,(function(e,t){let a={classes:[],style:{}};const n=["left","right"].includes(t.contentPlacement);return a.classes.push(fe()("gtm-block",{[`gtm-has-post-featured-image-text-link-to-${t.linkTo}`]:t.linkTo,"gtm-has-post-featured-image-text-image-cover":t.enableCover,"gtm-has-post-featured-image-text-hover-blur":t.imageHoverBlur,"gtm-has-post-featured-image-text-hover-gray":t.imageHoverGray,[`gtm-has-post-featured-image-text-content-placement-${t.contentPlacement}`]:t.contentPlacement})),Ge(a,"post-featured-image-text-hover",t.imageHoverEffect),t.enableCover&&($e(a,"post-featured-image-text-image-height",t.imageHeight),$e(a,"post-featured-image-text-focal",(0,Le.parseFocalPointValue)(t.imageFocalPoint))),$e(a,"post-featured-image-text-floating-offset",t.floatingOffset),$e(a,"post-featured-image-text-content-padding",(0,Qe.G3)(t.contentPadding)),n&&$e(a,"post-featured-image-text-content-size",t.contentSize),$e(a,"post-featured-image-text-content-bg",(0,Le.parseColorValue)(t.contentBg)),$e(a,"post-featured-image-text-overlay",(0,Le.parseColorValue)(t.overlayBg)),$e(a,"post-featured-image-text-overlay-opacity",""+parseInt(t.overlayOpacity)/100),$e(a,"post-featured-image-text-overlay-blend-mode",t.overlayBlendMode),$e(a,"post-featured-image-text-overlay-hover",(0,Le.parseColorValue)(t.overlayHoverBg)),$e(a,"post-featured-image-text-overlay-hover-opacity",""+parseInt(t.overlayHoverOpacity)/100),$e(a,"post-featured-image-text-overlay-hover-blend-mode",t.overlayHoverBlendMode),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Ol}=Ll,Al={...Ll,icon:he.Uz,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:{postType:i,postId:s}}=e,[c={},u]=(0,At.useEntityProp)("postType",i,"meta",s),m=["left","right"].includes(t.contentPlacement),[g,p]=(0,At.useEntityProp)("postType",i,"featured_media",s);let d=g;t.useAltImage&&c.gtm_alt_featured_image&&(d=c.gtm_alt_featured_image);const b=(0,xe.useSelect)((e=>d&&e("core").getMedia(d,{context:"view"})),[d]);let h,y,_;b&&(b.media_details.sizes[t.imageSize]?(y=(0,Te.pick)(b.media_details.sizes[t.imageSize],["width","height"]),_=b.media_details.sizes[t.imageSize].source_url):(y=(0,Te.pick)(b.media_details,["width","height"]),_=b.source_url)),h=b?_e().createElement("img",{src:_,alt:b.alt_text||(0,be.__)("Featured image","gutenmate")}):_e().createElement(sl,{size:t.imageSize});const v=(0,we.useBlockProps)({className:fe()({"gtm-has-no-featured-image":!b})}),f=(0,we.useInnerBlocksProps)({className:fe()("wp-block-gtm-post-featured-image-text__content")},{template:[["core/group"]]});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Image","gutenmate"),initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Crop image to fill entire area","gutenmate"),checked:t.enableCover,onChange:e=>{a({enableCover:e})}}),t.enableCover&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.FocalPointPicker,{url:_,dimensions:y,value:t.imageFocalPoint,onChange:e=>a({imageFocalPoint:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Use alternative featured image if available","gutenmate"),checked:t.useAltImage,onChange:e=>{a({useAltImage:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Image height","gutenmate"),value:t.imageHeight,max:"600",onChange:e=>{a({imageHeight:e})}})),_e().createElement(Ee.SelectControl,{label:(0,be.__)("Image size","gutenmate"),value:t.imageSize,options:(0,Le.getImageSizeOptions)(),onChange:e=>{a({imageSize:e})}}),_e().createElement(Ee.SelectControl,{label:"Hover effect",value:t.imageHoverEffect,options:el.VX,onChange:e=>{a({imageHoverEffect:e})}}),t.imageHoverEffect&&_e().createElement("div",{className:"gtm-group"},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("With blur effect","gutenmate"),checked:t.imageHoverBlur,onChange:e=>{a({imageHoverBlur:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("With grayscale effect","gutenmate"),checked:t.imageHoverGray,onChange:e=>{a({imageHoverGray:e})}}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Content","gutenmate"),initialOpen:!1},_e().createElement(Ee.__experimentalToggleGroupControl,{label:(0,be.__)("Content placement","gutenmate"),value:t.contentPlacement,onChange:e=>{a({contentPlacement:e})},isBlock:!0},_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"top",value:"top",label:(0,be.__)("Top","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"bottom",value:"bottom",label:(0,be.__)("Bottom","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"left",value:"left",label:(0,be.__)("Left","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"right",value:"right",label:(0,be.__)("Right","gutenmate")})),m&&_e().createElement(Ke.GZ,{label:(0,be.__)("Content area size","gutenmate"),value:t.contentSize,max:"1000",onChange:e=>{a({contentSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Floating offset","gutenmate"),value:t.floatingOffset,max:"600",onChange:e=>{a({floatingOffset:e})}}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.contentPadding,onChange:e=>{a({contentPadding:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Link","gutenmate"),initialOpen:!1},_e().createElement(Ee.__experimentalToggleGroupControl,{label:"Link to",help:(0,Le.selectiveHelp)(t.linkTo,{file:(0,be.__)("The featured image will link to image file.","gutenmate"),post:(0,be.__)("The featured image will link to post page.","gutenmate")}),value:t.linkTo,isBlock:!0,onChange:e=>{a({linkTo:e})}},_e().createElement(Ee.__experimentalToggleGroupControlOption,{label:(0,be.__)("None","gutenmate"),value:""}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{label:(0,be.__)("Image","gutenmate"),value:"file"}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{label:(0,be.__)("Post","gutenmate"),value:"post"}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Overlay","gutenmate"),initialOpen:!1},_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RangeControl,{label:(0,be.__)("Overlay opacity","gutenmate"),value:t.overlayOpacity,onChange:e=>{a({overlayOpacity:e})},min:0,max:100,step:10,allowReset:!0}),_e().createElement(Ee.SelectControl,{label:"Overlay blend mode",value:t.overlayBlendMode,options:el.rh,onChange:e=>{a({overlayBlendMode:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RangeControl,{label:(0,be.__)("Overlay hover opacity","gutenmate"),value:t.overlayHoverOpacity,onChange:e=>{a({overlayHoverOpacity:e})},min:0,max:100,step:10,allowReset:!0}),_e().createElement(Ee.SelectControl,{label:"Overlay hover blend mode",value:t.overlayHoverBlendMode,options:el.rh,onChange:e=>{a({overlayHoverBlendMode:e})}}))})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Content background","gutenmate"),attr:"contentBg",gradient:!0},{label:(0,be.__)("Overlay background","gutenmate"),attr:"overlayBg",gradient:!0},{label:(0,be.__)("Overlay hover background","gutenmate"),attr:"overlayHoverBg",gradient:!0}]})),_e().createElement("div",v,_e().createElement("div",{className:"wp-block-gtm-post-featured-image-text__img"},h,_e().createElement("div",{className:"wp-block-gtm-post-featured-image-text__overlay"})),_e().createElement("div",f)))},save:function(e){const{attributes:t}=e;return _e().createElement(we.InnerBlocks.Content,null)}};var Hl=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-format-icon","title":"Post Format Icon","description":"Add a customizable post format icon.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","format","icon"],"usesContext":["postId","postType"],"attributes":{"iconSize":{"type":"object","default":{}},"iconColor":{"type":"string","default":""},"iconBg":{"type":"object","default":{}},"iconHoverColor":{"type":"string","default":""},"iconHoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"width":true,"height":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-format-icon-editor-style","style":"gtm-post-format-icon-style"}');We(Hl.name,Hl.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"post-format-icon-icon-size",t.iconSize),$e(a,"post-format-icon-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"post-format-icon-icon-bg",(0,Le.parseColorValue)(t.iconBg)),$e(a,"post-format-icon-icon-hover-color",(0,Le.parseColorValue)(t.iconHoverColor)),$e(a,"post-format-icon-icon-hover-bg",(0,Le.parseColorValue)(t.iconHoverBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:jl}=Hl,Nl={...Hl,icon:he.ty,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{postType:r,postId:i}}=e,s=(0,we.useBlockProps)(),{supportedFormats:c}=(0,xe.useSelect)((e=>({supportedFormats:e(At.store).getThemeSupports().formats}))),[u]=(0,At.useEntityProp)("postType",r,"format",i),m=(0,xe.useSelect)((e=>{const t=e(wl.G).getSettings();if(u&&t&&t.post_format_icons){const e=t.post_format_icons[u],a="gtm-basic-icon-play";return"video"!==u||e?e:a}}));return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon background","gutenmate"),attr:"iconBg",gradient:!0},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"iconHoverColor"},{label:(0,be.__)("Icon hover background","gutenmate"),attr:"iconHoverBg",gradient:!0}]})),_e().createElement("div",s,m&&_e().createElement("i",{className:`gtm-icon ${m}`,"aria-hidden":"true"}),!m&&_e().createElement("i",{className:"gtm-icon gtm-no-icon gtm-basic-icon-ghost","aria-hidden":"true"})))},styles:[{name:"gtm-post-format-icon-circle",label:(0,be.__)("Circle","gutenmate")},{name:"gtm-post-format-icon-solid",label:(0,be.__)("Solid","gutenmate")}]};var Rl=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-navigation-link","title":"Post Navigation Link","description":"Add a customizable post navigation link.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","post","posts","navigation"],"usesContext":["postId","postType"],"attributes":{"type":{"type":"string","enum":["next","previous"],"default":"next"},"enableIcon":{"type":"boolean","default":true},"icon":{"type":"string","default":""},"enableRtlIcon":{"type":"boolean","default":true},"enableIconLink":{"type":"boolean","default":false},"iconPosition":{"type":"string","enum":["top","center","bottom","stretch"],"default":"center"},"iconSize":{"type":"object","default":{}},"iconPadding":{"type":"object","default":{}},"iconSpacing":{"type":"object","default":{}},"iconRadius":{"type":["string","object"],"default":""},"iconColor":{"type":"string","default":""},"iconBg":{"type":"object","default":{}}},"supports":{"html":false,"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-navigation-link-editor-style","style":"gtm-post-navigation-link-style"}'),Vl=a(2587),zl=a(3362);const Fl=gtm_config.icons["arrow-right"],Ml=gtm_config.icons["arrow-left"];We(Rl.name,Rl.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",`gtm-is-post-navigation-link-type-${t.type}`,`gtm-has-post-navigation-position-${t.iconPosition}`,{"gtm-is-post-navigation-link-rtl":t.enableRtlIcon})),t.enableIcon&&($e(a,"post-navigation-link-icon-padding",(0,Qe.G3)(t.iconPadding)),$e(a,"post-navigation-link-icon-size",t.iconSize),$e(a,"post-navigation-link-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"post-navigation-link-icon-radius",(0,Le.parseBorderRadiusValue)(t.iconRadius)),$e(a,"post-navigation-link-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"post-navigation-link-icon-bg",(0,Le.parseColorValue)(t.iconBg))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const Dl=gtm_config.icons["arrow-right"],Wl=gtm_config.icons["arrow-left"],$l=[{isDefault:!0,name:"post-next",title:(0,be.__)("Next post","gutenmate"),description:(0,be.__)("Displays the post link that follows the current post.","gutenmate"),icon:he.EW,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:(0,be.__)("Previous  post","gutenmate"),description:(0,be.__)("Displays the post link that precedes the current post.","gutenmate"),icon:he.t$,attributes:{type:"previous"},scope:["inserter","transform"]}];$l.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Gl=$l;const{name:Ul}=Rl,Zl={...Rl,icon:he.SP,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{postType:r,postId:i}}=e,s=(0,we.useBlockProps)(),c={postType:r,postId:i},u="next"==t.type?Fl:Ml;return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable icon","gutenmate"),checked:t.enableIcon,onChange:e=>{a({enableIcon:e})}}),t.enableIcon&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Make icon a link","gutenmate"),checked:t.enableIconLink,onChange:e=>{a({enableIconLink:e})}}),_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),defaultIcon:"next"==t.type?Fl:Ml,value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable RTL (right-to-left) support","gutenmate"),help:(0,be.__)("The icon will be flipped in RTL languages.","gutenmate"),checked:t.enableRtlIcon,onChange:e=>{a({enableRtlIcon:e})}}),_e().createElement(Vl.Z,{label:(0,be.__)("Position","gutenmate"),value:t.iconPosition,onChange:e=>{a({iconPosition:e})},required:!0},_e().createElement(zl.Z,{value:"stretch"},(0,be.__)("Stretch","gutenmate")),_e().createElement(zl.Z,{value:"top"},(0,be.__)("Top","gutenmate")),_e().createElement(zl.Z,{value:"center"},(0,be.__)("Center","gutenmate")),_e().createElement(zl.Z,{value:"bottom"},(0,be.__)("Bottom","gutenmate"))),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.iconPadding,onChange:e=>{a({iconPadding:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Space from icon","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.iconRadius,onChange:e=>{a({iconRadius:e})}}))),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[...t.enableIcon?[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon background","gutenmate"),attr:"iconBg",gradient:!0}]:[]]})),_e().createElement("div",s,t.enableIcon&&_e().createElement("span",{className:"wp-block-gtm-post-navigation-link__icon"},_e().createElement("i",{className:fe()("gtm-icon",t.icon||u)})),_e().createElement("div",{className:"wp-block-gtm-post-navigation-link__post"},_e().createElement(we.BlockContextProvider,{value:c},_e().createElement(we.InnerBlocks,{template:[["gtm/post-title",{}],["gtm/post-date",{}]]})))))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save(),n="next"==t.type?Dl:Wl;return _e().createElement("div",a,t.enableIcon&&_e().createElement("span",{className:"wp-block-gtm-post-navigation-link__icon"},_e().createElement("i",{className:fe()("gtm-icon",t.icon||n)})),_e().createElement(we.InnerBlocks.Content,null))},variations:Gl},ql=gtm_config.icons["read-more"];function Jl(e){return _e().createElement(Ce.Fragment,null,e.showIcon&&_e().createElement(Ce.Fragment,null,_e().createElement("i",{className:`gtm-icon ${e.icon||ql}`,"aria-hidden":"true"})),!e.enableLink&&_e().createElement("span",null,(0,be.__)("Read more","gutenmate")),e.enableLink&&_e().createElement("a",{href:"#post-read-more-pseudo-link",onClick:e=>e.preventDefault()},(0,be.__)("Read more","gutenmate")))}var Kl=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-read-more","title":"Post Read More","description":"Add a customizable post read more.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","more"],"usesContext":["postId","postType","queryId"],"attributes":{"display":{"type":"string","default":"name"},"linkColor":{"type":"string","default":""},"enableLinkUnderline":{"type":"boolean","default":false},"linkHoverColor":{"type":"string","default":""},"enableLinkHoverUnderline":{"type":"boolean","default":true},"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"iconWidth":{"type":"object","default":{}},"iconRadius":{"type":["string","object"],"default":""},"iconSpacing":{"type":"object","default":{}},"iconColor":{"type":"string","default":""},"iconBg":{"type":"object","default":{}},"iconHoverColor":{"type":"string","default":""},"iconHoverBg":{"type":"object","default":{}}},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-read-more-editor-style","style":"gtm-post-read-more-style"}');We(Kl.name,Kl.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-post-read-more-link-underline":t.enableLinkUnderline,"gtm-has-post-read-more-link-hover-underline":t.enableLinkHoverUnderline})),$e(a,"post-read-more-link-color",(0,Le.parseColorValue)(t.linkColor)),$e(a,"post-read-more-link-hover-color",(0,Le.parseColorValue)(t.linkHoverColor)),"name"!=t.display&&($e(a,"post-read-more-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"post-read-more-icon-size",t.iconSize),$e(a,"post-read-more-icon-width",t.iconWidth),$e(a,"post-read-more-icon-radius",(0,Le.parseBorderRadiusValue)(t.iconRadius)),$e(a,"post-read-more-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"post-read-more-icon-bg",(0,Le.parseColorValue)(t.iconBg)),$e(a,"post-read-more-icon-hover-color",(0,Le.parseColorValue)(t.iconHoverColor)),$e(a,"post-read-more-icon-hover-bg",(0,Le.parseColorValue)(t.iconHoverBg))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Ql}=Kl,Xl={...Kl,icon:he.et,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:{postType:i,postId:s,queryId:c}}=e,u=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{options:[{label:(0,be.__)("Text only","gutenmate"),value:"name"},{label:(0,be.__)("Icon and text","gutenmate"),value:"icon"}],selected:t.display,onChange:e=>{a({display:e})}}),_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Underline","gutenmate"),checked:t.enableLinkUnderline,onChange:e=>{a({enableLinkUnderline:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hover underline","gutenmate"),checked:t.enableLinkHoverUnderline,onChange:e=>{a({enableLinkHoverUnderline:e})}}))})),"icon"==t.display&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),help:(0,be.__)("An icon for the block. Leave blank to use the default icon.","gutenmate"),defaultIcon:ql,value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),help:(0,be.__)("A size of the icon","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon width","gutenmate"),help:(0,be.__)("A width of the icon container","gutenmate"),value:t.iconWidth,onChange:e=>{a({iconWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.iconRadius,onChange:e=>{a({iconRadius:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),help:(0,be.__)("A space between the icon and the text","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[..."icon"==t.display?[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon background","gutenmate"),attr:"iconBg",gradient:!0},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"iconHoverColor"},{label:(0,be.__)("Icon hover background","gutenmate"),attr:"iconHoverBg",gradient:!0}]:[],{label:(0,be.__)("Link color","gutenmate"),attr:"linkColor"},{label:(0,be.__)("Link hover color","gutenmate"),attr:"linkHoverColor"}]})),_e().createElement("div",u,_e().createElement(Jl,{enableLink:!0,icon:t.icon,showIcon:"icon"==t.display,postType:i,postId:s})))},styles:[{name:"gtm-post-read-more-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-post-read-more-tiny",label:(0,be.__)("Tiny","gutenmate")}]};var Yl=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-read-time","title":"Post read time","description":"Add a customizable time to read.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","time","read"],"usesContext":["postId"],"attributes":{"display":{"type":"string","enum":["text","icon"],"default":"text"},"format":{"type":"string","enum":["min","minute"],"default":"min"},"label":{"type":"string","default":""},"labelTypography":{"type":"object","default":{}},"labelSpacing":{"type":"object","default":{}},"labelColor":{"type":"string","default":""},"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"iconWidth":{"type":"object","default":{}},"iconRadius":{"type":["string","object"],"default":""},"iconSpacing":{"type":"object","default":{}},"iconColor":{"type":"string","default":""},"iconBg":{"type":"object","default":{}},"iconHoverColor":{"type":"string","default":""},"iconHoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-date-editor-style","style":"gtm-post-date-style"}');const eo=gtm_config.icons.time;We(Yl.name,Yl.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{})),$e(a,"post-read-time-label-typography",(0,Je.parseTypographyProps)(t.labelTypography)),$e(a,"post-read-time-label-spacing",(0,et._5)(t.labelSpacing)),$e(a,"post-read-time-label-color",(0,Le.parseColorValue)(t.labelColor)),"text"!=t.display&&($e(a,"post-read-time-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"post-read-time-icon-size",t.iconSize),$e(a,"post-read-time-icon-width",t.iconWidth),$e(a,"post-read-time-icon-radius",(0,Le.parseBorderRadiusValue)(t.iconRadius)),$e(a,"post-read-time-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"post-read-time-icon-bg",(0,Le.parseColorValue)(t.iconBg)),$e(a,"post-read-time-icon-hover-color",(0,Le.parseColorValue)(t.iconHoverColor)),$e(a,"post-read-time-icon-hover-bg",(0,Le.parseColorValue)(t.iconHoverBg))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:to}=Yl,ao={...Yl,icon:he.jh,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{postType:r,postId:i}}=e,s=(0,we.useBlockProps)(),c=sprintf((0,be._n)("%s min","%s mins",3,"gutenmate"),3),u=sprintf((0,be._n)("%s minute","%s minutes",3,"gutenmate"),3),m="minute"==t.format?u:c;return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{options:[{label:(0,be.__)("Time only","gutenmate"),value:"text"},{label:(0,be.__)("Icon and time","gutenmate"),value:"icon"}],selected:t.display,onChange:e=>{a({display:e})}}),_e().createElement(Ee.SelectControl,{label:(0,be.__)("Format","gutenmate"),value:t.format,options:[{value:"min",label:c},{value:"minute",label:u}],onChange:e=>{a({format:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Label","gutenmate"),initialOpen:!1},_e().createElement(Ee.TextControl,{label:(0,be.__)("Label","gutenmate"),help:(0,be.__)("An additional label for the block. Some styles require a label for looking better.","gutenmate"),value:t.label,onChange:e=>a({label:e})}),_e().createElement(Je.default,{value:t.labelTypography,onChange:e=>a({labelTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Label spacing","gutenmate"),value:t.labelSpacing,onChange:e=>a({labelSpacing:e})})),"icon"==t.display&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),help:(0,be.__)("An icon for the block. Leave blank to use the default icon.","gutenmate"),defaultIcon:eo,value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),help:(0,be.__)("A size of the icon","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon width","gutenmate"),help:(0,be.__)("A width of the icon container","gutenmate"),value:t.iconWidth,onChange:e=>{a({iconWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.iconRadius,onChange:e=>{a({iconRadius:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),help:(0,be.__)("A space between the icon and the text","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[..."icon"==t.display?[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon background","gutenmate"),attr:"iconBg",gradient:!0},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"iconHoverColor"},{label:(0,be.__)("Icon hover background","gutenmate"),attr:"iconHoverBg",gradient:!0}]:[],{label:(0,be.__)("Label color","gutenmate"),attr:"labelColor"}]})),_e().createElement("div",s,"icon"==t.display&&_e().createElement(Ce.Fragment,null,_e().createElement("i",{className:`gtm-icon ${t.icon||eo}`,"aria-hidden":"true"})),t.label&&_e().createElement("span",{className:"wp-block-gtm-post-read-time__label"},t.label),_e().createElement("span",{className:"wp-block-gtm-post-read-time__time wp-block-gtm-post-read-time__content"},m)))},styles:[{name:"gtm-post-read-time-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-post-read-time-tiny",label:(0,be.__)("Tiny","gutenmate")},{name:"gtm-post-read-time-featured",label:(0,be.__)("Featured","gutenmate")},{name:"gtm-post-read-time-featured-mobile",label:(0,be.__)("Mobile featured","gutenmate")},{name:"gtm-post-read-time-tall",label:(0,be.__)("Tall","gutenmate")}]};var no=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-review","title":"Post Review","description":"Display total review score of the post.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","review"],"usesContext":["postId","postType","queryId"],"attributes":{"display":{"type":"string","default":"name"},"format":{"type":"string","default":"percentage"},"label":{"type":"string","default":""},"labelTypography":{"type":"object","default":{}},"labelSpacing":{"type":"object","default":{}},"labelColor":{"type":"string","default":""},"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"iconWidth":{"type":"object","default":{}},"iconRadius":{"type":["string","object"],"default":""},"iconSpacing":{"type":"object","default":{}},"iconColor":{"type":"string","default":""},"iconBg":{"type":"object","default":{}},"iconHoverColor":{"type":"string","default":""},"iconHoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-review-editor-style","style":"gtm-post-review-style"}');const lo=gtm_config.icons.review,oo=[{value:"points",label:(0,be.__)("Points","gutenmate")},{value:"stars",label:(0,be.__)("Stars","gutenmate")},{value:"percentage",label:(0,be.__)("Percentage","gutenmate")}];We(no.name,no.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"post-review-label-typography",(0,Je.parseTypographyProps)(t.labelTypography)),$e(a,"post-review-label-spacing",(0,et._5)(t.labelSpacing)),$e(a,"post-review-label-color",(0,Le.parseColorValue)(t.labelColor)),"name"!=t.display&&($e(a,"post-review-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"post-review-icon-size",t.iconSize),$e(a,"post-review-icon-width",t.iconWidth),$e(a,"post-review-icon-radius",(0,Le.parseBorderRadiusValue)(t.iconRadius)),$e(a,"post-review-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"post-review-icon-bg",(0,Le.parseColorValue)(t.iconBg)),$e(a,"post-review-icon-hover-color",(0,Le.parseColorValue)(t.iconHoverColor)),$e(a,"post-review-icon-hover-bg",(0,Le.parseColorValue)(t.iconHoverBg))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:ro}=no,io={...no,icon:he.YM,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:{postType:i,postId:s}}=e,c=(0,we.useBlockProps)(),[u,m]=(0,At.useEntityProp)("postType",i,"meta",s);Boolean(u?.gtm_review_score);let g="";if(u)if("points"==t.format){const e=parseFloat(u.gtm_review_score/10).toFixed(1);g=(0,be.sprintf)((0,be._n)("%s Point","%s Points",e,"gutenmate"),e)}else if("stars"==t.format){const e=parseFloat(u.gtm_review_score/20).toFixed(1);g=(0,be.sprintf)((0,be._n)("%s Star","%s Stars",e,"gutenmate"),e)}else"percentage"==t.format&&(g=parseFloat(u.gtm_review_score).toFixed(0)+"%");else g="50%";return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{options:[{label:"Text only",value:"name"},{label:"Icon and text",value:"icon"}],selected:t.display,onChange:e=>{a({display:e})}}),_e().createElement(Ee.SelectControl,{label:(0,be.__)("Format","gutenmate"),value:t.format,options:oo,onChange:e=>{a({format:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Label","gutenmate"),initialOpen:!1},_e().createElement(Ee.TextControl,{label:(0,be.__)("Label","gutenmate"),help:(0,be.__)("An additional label for the block. Some styles require a label for looking better.","gutenmate"),value:t.label,onChange:e=>a({label:e})}),_e().createElement(Je.default,{value:t.labelTypography,onChange:e=>a({labelTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Label spacing","gutenmate"),value:t.labelSpacing,onChange:e=>a({labelSpacing:e})})),"icon"==t.display&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),help:(0,be.__)("An icon for the block. Leave blank to use the default icon.","gutenmate"),defaultIcon:lo,value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),help:(0,be.__)("A size of the icon","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon width","gutenmate"),help:(0,be.__)("A width of the icon container","gutenmate"),value:t.iconWidth,onChange:e=>{a({iconWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.iconRadius,onChange:e=>{a({iconRadius:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),help:(0,be.__)("A space between the icon and the text","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[..."icon"==t.display?[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon background","gutenmate"),attr:"iconBg",gradient:!0},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"iconHoverColor"},{label:(0,be.__)("Icon hover background","gutenmate"),attr:"iconHoverBg",gradient:!0}]:[]]})),_e().createElement("div",c,_e().createElement(Ce.Fragment,null,"icon"==t.display&&_e().createElement(Ce.Fragment,null,_e().createElement("i",{className:`gtm-icon ${t.icon||lo}`,"aria-hidden":"true"})),t.label&&_e().createElement("span",{className:"wp-block-gtm-post-review__label"},t.label),_e().createElement("span",{className:"wp-block-gtm-post-review__score wp-block-gtm-post-review__content"},g))))},styles:[{name:"gtm-post-review-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-post-review-tiny",label:(0,be.__)("Tiny","gutenmate")},{name:"gtm-post-review-featured",label:(0,be.__)("Featured","gutenmate")},{name:"gtm-post-review-featured-mobile",label:(0,be.__)("Mobile featured","gutenmate")},{name:"gtm-post-review-tall",label:(0,be.__)("Tall","gutenmate")}]};var so=a(8693);const co={facebook:{label:"Facebook",icon:gtm_config.icons.facebook},twitter:{label:"Twitter",icon:gtm_config.icons.twitter},linkedin:{label:"LinkedIn",icon:gtm_config.icons.linkedin},mix:{label:"Mix",icon:gtm_config.icons.mix},pinterest:{label:"Pinterest",icon:gtm_config.icons.pinterest},reddit:{label:"Reddit",icon:gtm_config.icons.reddit},buffer:{label:"Buffer",icon:gtm_config.icons.buffer},tumblr:{label:"Tumblr",icon:gtm_config.icons.tumblr},vk:{label:"Vk",icon:gtm_config.icons.vk},pocket:{label:"Pocket",icon:gtm_config.icons.pocket},whatsapp:{label:"Whatsapp",icon:gtm_config.icons.whatsapp},telegram:{label:"Telegram",icon:gtm_config.icons.telegram},viber:{label:"Viber",icon:gtm_config.icons.viber},email:{label:"Email",icon:gtm_config.icons.email},print:{label:"Print",icon:gtm_config.icons.print}},uo=e=>_e().createElement(Ce.Fragment,null,_e().createElement("a",{href:"#",onClick:e=>e.preventDefault(),className:fe()("wp-block-gtm-post-share__button","wp-block-gtm-post-share__button--"+e.slug,"gtm-social-color-"+e.slug)},_e().createElement("i",{className:"gtm-icon "+e.icon,"aria-hidden":"true"}),_e().createElement("span",{className:"wp-block-gtm-post-share__label"},e.label)));function mo(e){return _e().createElement(Ce.Fragment,null,e.socials.map(((e,t)=>{const a=co[e];if(a)return _e().createElement(uo,{key:t,slug:e,label:a.label,icon:a.icon})})))}var go=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-share","title":"Post Share","description":"Add a customizable post share.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","share","social"],"usesContext":["postId","postType","queryId"],"attributes":{"socials":{"type":"array","default":["facebook","twitter","email"]},"typography":{"type":"object","default":{}},"accentColor":{"type":"string","default":""},"accentHoverColor":{"type":"string","default":""},"textColor":{"type":"string","default":""},"textHoverColor":{"type":"string","default":""},"padding":{"type":"object","default":{}},"radius":{"type":["string","object"],"default":""},"shadow":{"type":"string","default":""},"enableLabel":{"type":"boolean","default":true},"labelHideTablet":{"type":"boolean","default":false},"labelHidePhone":{"type":"boolean","default":false},"enableIcon":{"type":"boolean","default":true},"iconSize":{"type":"object","default":{}},"iconSpacing":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"textAlign":true,"width":true,"height":true,"flexLayout":true},"gtmResponsiveAttributes":true,"gtmUseWebFonts":["typography"]},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-share-editor-style","style":"gtm-post-share-style"}'),po=a(4117);const bo=[{value:"facebook",label:(0,be.__)("Facebook","gutenmate")},{value:"twitter",label:(0,be.__)("Twitter","gutenmate")},{value:"linkedin",label:(0,be.__)("LinkedIn","gutenmate")},{value:"mix",label:(0,be.__)("Mix","gutenmate")},{value:"pinterest",label:(0,be.__)("Pinterest","gutenmate")},{value:"reddit",label:(0,be.__)("Reddit","gutenmate")},{value:"buffer",label:(0,be.__)("Buffer","gutenmate")},{value:"tumblr",label:(0,be.__)("Tumblr","gutenmate")},{value:"vk",label:(0,be.__)("Vk","gutenmate")},{value:"pocket",label:(0,be.__)("Pocket","gutenmate")},{value:"whatsapp",label:(0,be.__)("Whatsapp","gutenmate")},{value:"telegram",label:(0,be.__)("Telegram","gutenmate")},{value:"viber",label:(0,be.__)("Viber","gutenmate")},{value:"email",label:(0,be.__)("Email","gutenmate")},{value:"print",label:(0,be.__)("Print","gutenmate")}];We(go.name,go.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-post-share-hide-label-on-tablet":t.enableLabel&&t.labelHideTablet,"gtm-has-post-share-hide-label-on-phone":t.enableLabel&&t.labelHidePhone,"gtm-has-post-share-enable-icon":t.enableIcon,"gtm-has-post-share-enable-label":t.enableLabel})),$e(a,"post-share-accent-color",(0,Le.parseColorValue)(t.accentColor)),$e(a,"post-share-accent-hover-color",(0,Le.parseColorValue)(t.accentHoverColor)),$e(a,"post-share-text-color",(0,Le.parseColorValue)(t.textColor)),$e(a,"post-share-text-hover-color",(0,Le.parseColorValue)(t.textHoverColor)),$e(a,"post-share-padding",(0,Qe.G3)(t.padding)),$e(a,"post-share-radius",(0,Le.parseBorderRadiusValue)(t.radius)),$e(a,"post-share-shadow",(0,qe.s)(t.shadow)),$e(a,"post-share-icon-size",t.iconSize),$e(a,"post-share-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"post-share-typography",(0,Je.parseTypographyProps)(t.typography)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:ho}=go,yo={...go,icon:he.my,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:{postType:i,postId:s,queryId:c}}=e,u=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,null,_e().createElement(po.Z,{label:(0,be.__)("Social networks","gutenmate"),value:t.socials,options:bo,isMulti:!0,onChange:e=>{a({socials:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Button","gutenmate"),initialOpen:!1},_e().createElement(we.__experimentalBorderRadiusControl,{values:t.radius,onChange:e=>{a({radius:e})}}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.padding,onChange:e=>{a({padding:e})}}),_e().createElement(qe.Z,{label:(0,be.__)("Shadow","gutenmate"),value:t.shadow,onChange:e=>{a({shadow:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Label","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable label","gutenmate"),checked:t.enableLabel,onChange:e=>{a({enableLabel:e})}}),t.enableLabel&&_e().createElement(Ce.Fragment,null,_e().createElement(et.wH,{label:(0,be.__)("Space from icon","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})}),_e().createElement(Je.default,{value:t.typography,onChange:e=>a({typography:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide label on Tablet","gutenmate"),checked:t.labelHideTablet,onChange:e=>{a({labelHideTablet:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide label on Phone","gutenmate"),checked:t.labelHidePhone,onChange:e=>{a({labelHidePhone:e})}}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable icon","gutenmate"),checked:t.enableIcon,onChange:e=>{a({enableIcon:e})}}),t.enableIcon&&_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Accent color","gutenmate"),attr:"accentColor"},{label:(0,be.__)("Accent hover color","gutenmate"),attr:"accentHoverColor"},{label:(0,be.__)("Text color","gutenmate"),attr:"textColor"},{label:(0,be.__)("Text hover color","gutenmate"),attr:"textHoverColor"}]})),_e().createElement("div",u,_e().createElement(mo,{postType:i,postId:s,socials:t.socials})))},styles:[{name:"gtm-post-share-striped-button",label:(0,be.__)("Striped button","gutenmate")},{name:"gtm-post-share-plain",label:(0,be.__)("Plain","gutenmate")},{name:"gtm-post-share-outline",label:(0,be.__)("Outline","gutenmate")}]};var _o=(0,Ce.createElement)(Ba.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ce.createElement)(Ba.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"})),vo=(0,Ce.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ce.createElement)(Ba.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"}));function fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},fo.apply(this,arguments)}const ko=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function Co(e){const t=(0,we.useInnerBlocksProps)({className:fe()("wp-block-post",e.className)},{template:ko,__unstableDisableLayoutClassNames:!0});return _e().createElement("li",t)}const Eo=(0,Ce.memo)((function({blocks:e,blockContextId:t,isHidden:a,setActiveBlockContextId:n}){const l=(0,we.__experimentalUseBlockPreview)({blocks:e,props:{className:"wp-block-post"}}),o=()=>{n(t)},r={display:a?"none":void 0};return _e().createElement("li",fo({},l,{tabIndex:0,role:"button",onClick:o,onKeyPress:o,style:r}))}));function wo({setAttributes:e,clientId:t,context:{query:{perPage:a,offset:n=0,postType:l,order:o,orderBy:r,author:i,search:s,exclude:c,sticky:u,inherit:m,taxQuery:g,parents:p,pages:d,...b}={},queryContext:h=[{page:1}],templateSlug:y,previewPostType:_,gtmQueryFilter:v,gtmQueryLimitDays:f,gtmQueryUseRandom:k},attributes:{layout:C},__unstableLayoutClassNames:E,attributes:w}){const{type:S,columnCount:x=3}=C||{},[{page:T}]=h,[B,I]=(0,Ce.useState)(),{posts:P,blocks:L}=(0,xe.useSelect)((e=>{const{getEntityRecords:d,getTaxonomies:h}=e(At.store),{getBlocks:C}=e(we.store),E=h({type:l,per_page:-1,context:"view"}),w=m&&y?.startsWith("category-")&&d("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:y.replace("category-","")}),S={offset:a?a*(T-1)+n:0,order:o,orderby:r};if(g&&!m){const e=Object.entries(g).reduce(((e,[t,a])=>{const n=E?.find((({slug:e})=>e===t));return n?.rest_base&&(e[n?.rest_base]=a),e}),{});Object.keys(e).length&&Object.assign(S,e)}return a&&(S.per_page=a,S.gtmPerPage=a),i&&(S.author=i),s&&(S.search=s),c?.length&&(S.exclude=c),p?.length&&(S.parent=p),u&&(S.sticky="only"===u),S.gtmQueryFilter=v,S.gtmQueryLimitDays=f,S.gtmQueryUseRandom=k,m&&(y?.startsWith("archive-")?(S.postType=y.replace("archive-",""),l=S.postType):w&&(S.categories=w[0]?.id)),{posts:d("postType",_||l,{...S,...b}),blocks:C(t)}}),[a,T,n,o,r,t,i,s,l,c,u,m,y,g,p,b,_,v,f,k]),O=(0,Ce.useMemo)((()=>P?.map((e=>({postType:e.type,postId:e.id})))),[P]),A=(0,we.useBlockProps)({className:fe()(E,{[`columns-${x}`]:"grid"===S&&x})});if(!P)return _e().createElement("p",A,_e().createElement(Ee.Spinner,null));if(!P.length)return _e().createElement("p",A," ",(0,be.__)("No results found."));const H=t=>e({layout:{...C,...t}}),j=[{icon:_o,title:(0,be.__)("List view"),onClick:()=>H({type:"default"}),isActive:"default"===S||"constrained"===S},{icon:vo,title:(0,be.__)("Grid view"),onClick:()=>H({type:"grid",columnCount:x}),isActive:"grid"===S}];return _e().createElement(_e().Fragment,null,_e().createElement(we.BlockControls,null,_e().createElement(Ee.ToolbarGroup,{controls:j})),_e().createElement("ul",A,O&&O.slice(w.offset??0,w.limit>0?w.limit:void 0).map((e=>_e().createElement(we.BlockContextProvider,{key:e.postId,value:e},e.postId===(B||O[0]?.postId)?_e().createElement(Co,null):null,_e().createElement(Eo,{blocks:L,blockContextId:e.postId,setActiveBlockContextId:I,isHidden:e.postId===(B||O[0]?.postId)}))))))}var So=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-template","title":"Extended Post Template","description":"Add a customizable post template.","category":"gtm-loop","keywords":["gutenmate","slider"],"parent":["core/query"],"attributes":{"offset":{"type":"string","default":"0"},"limit":{"type":"string","default":"0"},"gridGap":{"type":"object","default":{}},"postClass":{"type":"string","default":""}},"usesContext":["queryId","query","queryContext","displayLayout","templateSlug","gtmQueryFilter","gtmQueryLimitDays","gtmQueryUseRandom","gtmQuerySlug"],"supports":{"reusable":false,"html":false,"align":["wide","full"],"layout":true,"gtmBlockProps":{"margin":true},"gtmResponsiveAttributes":true,"__experimentalLayout":{"allowEditing":false}},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-template-editor-style","style":"gtm-post-template-style"}');const xo=({title:e,anchor:t})=>_e().createElement("div",{className:"gtm-plain-block-placeholder"},_e().createElement(Ee.Icon,{width:"24",height:"24",icon:he.I8}),_e().createElement("p",null,e,t&&_e().createElement("span",{className:"gtm-plain-block-placeholder__anchor"},t)));We(So.name,So.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"post-template-grid-gap",(0,et._5)(t.gridGap)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));var To={from:[{type:"block",blocks:["core/post-template"],transform:(e,t)=>(0,de.createBlock)(So.name,e,t)},{type:"block",blocks:["gtm/slider-template"],transform:(e,t)=>(0,de.createBlock)(So.name,e,t)}],to:[{type:"block",blocks:["core/post-template"],transform:(e,t)=>(0,de.createBlock)("core/post-template",e,t)},{type:"block",blocks:["gtm/slider-template"],transform:(e,t)=>(0,de.createBlock)("gtm/slider-template",e,t)}]};const{name:Bo}=So,Io={...So,icon:he.I8,edit:e=>{const{attributes:t,setAttributes:a,context:{postType:n,postId:l}}=e;return _e().createElement(Ce.Fragment,null,_e().createElement(wo,e),_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Post Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.Tip,null,(0,be.__)("These options are for controlling the display of posts in this block. The actual query result is not affected by these options.","gutenmate")),_e().createElement("div",{style:{height:"1em"}}),_e().createElement(Ee.TextControl,{label:(0,be.__)("Offset","gutenmate"),help:(0,be.__)("A number of posts for skipping","gutenmate"),value:t.offset,type:"number",autoComplete:"off",min:"0",onChange:e=>a({offset:e})}),_e().createElement(Ee.TextControl,{label:(0,be.__)("Max post to show","gutenmate"),help:(0,be.__)("Limit the number of posts to be shown. Enter 0 (zero) to show all available posts.","gutenmate"),value:t.limit,type:"number",autoComplete:"off",min:"0",onChange:e=>a({limit:e})}),_e().createElement(ya,{label:(0,be.__)("Grid gap","gutenmate"),value:t.gridGap,onChange:e=>{a({gridGap:e})}}))),_e().createElement(we.InspectorAdvancedControls,null,_e().createElement(Ee.TextControl,{label:(0,be.__)("Post CSS class(es)","gutenmate"),help:(0,be.__)("Additional class(es) for post wrapper. Separate multiple classes with a space.","gutenmate"),value:t.postClass,autoComplete:"off",onChange:e=>a({postClass:e})})))},save:function(){return _e().createElement(we.InnerBlocks.Content,null)},transforms:To,styles:[{name:"gtm-post-template-grid-columns-1",label:(0,be.__)("1 Column","gutenmate")},{name:"gtm-post-template-grid-columns-2",label:(0,be.__)("2 Columns","gutenmate")},{name:"gtm-post-template-grid-columns-3",label:(0,be.__)("3 Columns","gutenmate")},{name:"gtm-post-template-grid-columns-4",label:(0,be.__)("4 Columns","gutenmate")},{name:"gtm-post-template-grid-tile",label:(0,be.__)("Tile grid","gutenmate")},{name:"gtm-post-template-grid-hero",label:(0,be.__)("Hero grid","gutenmate")},{name:"gtm-post-template-grid-emphasis",label:(0,be.__)("Emphasized grid","gutenmate")},{name:"gtm-post-template-grid-fluid-md",label:(0,be.__)("Fluid (medium)","gutenmate")},{name:"gtm-post-template-grid-fluid-sm",label:(0,be.__)("Fluid (small)","gutenmate")},{name:"gtm-post-template-grid-fluid-xs",label:(0,be.__)("Fluid (tiny)","gutenmate")}]};var Po=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-terms","title":"Post terms","description":"Add a customizable post terms.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive"],"usesContext":["postId","postType","queryId"],"attributes":{"term":{"type":"string","default":"category"},"itemsLimit":{"type":"number"},"itemPadding":{"type":"object","default":{}},"itemRadius":{"type":["string","object"],"default":""},"itemSkew":{"type":"number"},"itemSpacing":{"type":"object","default":{}},"itemColor":{"type":"string","default":""},"itemBg":{"type":"object","default":{}},"enableItemUnderline":{"type":"boolean","default":false},"itemHoverColor":{"type":"string","default":""},"itemHoverBg":{"type":"object","default":{}},"enableItemHoverUnderline":{"type":"boolean","default":true},"itemIcon":{"type":"string","default":""},"itemIconSize":{"type":"object","default":{}},"itemIconSpacing":{"type":"object","default":{}},"itemIconColor":{"type":"string","default":""},"itemIconHoverColor":{"type":"string","default":""},"separator":{"type":"string","default":""},"separatorColor":{"type":"string","default":""}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-terms-editor-style","style":"gtm-post-terms-style"}');We(Po.name,Po.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-post-terms-link-underline":t.enableItemUnderline,"gtm-has-post-terms-link-hover-underline":t.enableItemHoverUnderline})),Ge(a,"post-terms-taxonony",t.term),$e(a,"post-terms-spacing",(0,et._5)(t.itemSpacing)),$e(a,"post-terms-item-padding",(0,Qe.G3)(t.itemPadding)),$e(a,"post-terms-item-radius",(0,Le.parseBorderRadiusValue)(t.itemRadius)),$e(a,"post-terms-item-skew",t.itemSkew?t.itemSkew+"deg":""),$e(a,"post-terms-item-color",(0,Le.parseColorValue)(t.itemColor)),$e(a,"post-terms-item-bg",(0,Le.parseColorValue)(t.itemBg)),$e(a,"post-terms-item-hover-color",(0,Le.parseColorValue)(t.itemHoverColor)),$e(a,"post-terms-item-hover-bg",(0,Le.parseColorValue)(t.itemHoverBg)),$e(a,"post-terms-item-icon-size",t.itemIconSize),$e(a,"post-terms-item-icon-spacing",(0,et._5)(t.itemIconSpacing)),$e(a,"post-terms-item-icon-color",(0,Le.parseColorValue)(t.itemIconColor)),$e(a,"post-terms-item-icon-hover-color",(0,Le.parseColorValue)(t.itemIconHoverColor)),$e(a,"post-terms-separator-color",(0,Le.parseColorValue)(t.separatorColor)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));var Lo=[{name:"category",title:(0,be.__)("Post Categories","gutenmate"),description:(0,be.__)("Display a post's categories.","gutenmate"),isDefault:!0,attributes:{term:"category"},isActive:e=>"category"===e.term},{name:"post_tag",title:(0,be.__)("Post Tags","gutenmate"),description:(0,be.__)("Display a post's tags.","gutenmate"),isDefault:!0,attributes:{term:"post_tag"},isActive:e=>"post_tag"===e.term}];const{name:Oo}=Po,Ao={...Po,icon:he.lt,variations:Lo,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:{postType:i,postId:s,queryId:c}}=e,u=(0,we.useBlockProps)(),[m="",g,p]=(0,At.useEntityProp)("postType",i,"title",s),d=(0,xe.useSelect)((e=>{if(!t.term)return{};const{getTaxonomy:a}=e("core"),n=a(t.term);return n?.visibility?.publicly_queryable?n:{}}),[t.term]),{postTerms:b,hasPostTerms:h,isLoading:y}=function({postId:e,postType:t,term:a}){const{rest_base:n,slug:l}=a,[o]=(0,At.useEntityProp)("postType",t,n,e);return(0,xe.useSelect)((e=>{const n=a?.visibility?.publicly_queryable;if(!n)return{postTerms:[],_isLoading:!1,hasPostTerms:!1};if(!o)return{isLoading:a?.postTerms?.includes(t)};if(!o.length)return{isLoading:!1};const{getEntityRecords:r,isResolving:i}=e(At.store),s=["taxonomy",l,{include:o,context:"view"}],c=r(...s);return{postTerms:c,isLoading:i("getEntityRecords",s),hasPostTerms:!!c?.length}}),[o,a?.visibility?.publicly_queryable])}({postId:s,postType:i,term:d}),_=t.itemsLimit?b?.slice(0,t.itemsLimit):b;return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Item","gutenmate"),initialOpen:!0},_e().createElement(Ee.RangeControl,{label:(0,be.__)("Limit number of items","gutenmate"),value:t.itemsLimit,onChange:e=>{a({itemsLimit:e})},min:1,max:30,step:1,allowReset:!0}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.itemRadius,onChange:e=>{a({itemRadius:e})}}),_e().createElement(Ee.RangeControl,{label:(0,be.__)("Skew angle","gutenmate"),value:t.itemSkew,onChange:e=>{a({itemSkew:e})},min:-30,max:30,step:1,allowReset:!0}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.itemPadding,onChange:e=>{a({itemPadding:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Space between items","gutenmate"),value:t.itemSpacing,onChange:e=>{a({itemSpacing:e})}}),_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Underline","gutenmate"),checked:t.enableItemUnderline,onChange:e=>{a({enableItemUnderline:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hover underline","gutenmate"),checked:t.enableItemHoverUnderline,onChange:e=>{a({enableItemHoverUnderline:e})}}))})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Item icon","gutenmate"),initialOpen:!1},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),value:t.itemIcon,showPreview:!0,onChange:e=>{a({itemIcon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.itemIconSize,min:"1",max:"30",onChange:e=>{a({itemIconSize:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),value:t.itemIconSpacing,onChange:e=>{a({itemIconSpacing:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Separator","gutenmate"),initialOpen:!1},_e().createElement(Ee.TextControl,{autoComplete:"off",label:(0,be.__)("Separator","gutenmate"),value:t.separator||"",onChange:e=>{a({separator:e})},help:(0,be.__)("Enter character(s) used to separate terms.","gutenmate")})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Text color","gutenmate"),attr:"itemColor"},{label:(0,be.__)("Background","gutenmate"),attr:"itemBg",gradient:!0},{label:(0,be.__)("Hover text color","gutenmate"),attr:"itemHoverColor"},{label:(0,be.__)("Hover background","gutenmate"),attr:"itemHoverBg",gradient:!0},...t.separator?[{label:(0,be.__)("Separator color","gutenmate"),attr:"separatorColor"}]:[],...t.itemIcon?[{label:(0,be.__)("Icon color","gutenmate"),attr:"itemIconColor"},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"itemIconHoverColor"}]:[]]})),_e().createElement("div",u,y&&_e().createElement(Ee.Spinner,null),!y&&h&&_.map((e=>_e().createElement("a",{key:e.id,className:"wp-block-gtm-post-terms__item",href:e.link,onClick:e=>e.preventDefault()},t.itemIcon&&_e().createElement("i",{className:fe()("gtm-icon",t.itemIcon)}),e.name))).reduce(((e,a)=>_e().createElement(_e().Fragment,null,e,!(0,Te.isEmpty)(t.separator)&&_e().createElement("span",{className:"wp-block-gtm-post-terms__separator"},t.separator||" "),a))),!y&&!h&&_e().createElement(Ce.Fragment,null,_e().createElement("a",{className:"wp-block-gtm-post-terms__item",href:"#",onClick:e=>e.preventDefault()},t.itemIcon&&_e().createElement("i",{className:fe()("gtm-icon",t.itemIcon)}),d?.labels?.no_terms||(0,be.__)("No terms","gutenmate")),1!=t.itemsLimit&&_e().createElement("a",{className:"wp-block-gtm-post-terms__item",href:"#",onClick:e=>e.preventDefault()},t.itemIcon&&_e().createElement("i",{className:fe()("gtm-icon",t.itemIcon)}),d?.labels?.no_terms||(0,be.__)("Example","gutenmate")))))},styles:[{name:"gtm-post-terms-badge",label:(0,be.__)("Badge","gutenmate")},{name:"gtm-post-terms-badge-small",label:(0,be.__)("Small badge","gutenmate")},{name:"gtm-post-terms-tag",label:(0,be.__)("Tag","gutenmate")},{name:"gtm-post-terms-tag-small",label:(0,be.__)("Small tag","gutenmate")}]};var Ho=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-title","title":"Post Title","description":"Add a customizable post title.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","title","tagline"],"usesContext":["postId","postType","queryId"],"attributes":{"titleTag":{"type":"string","default":"h3"},"titleTypography":{"type":"object","default":{}},"titleMaxWidth":{"type":"object","default":{}},"titleSpacing":{"type":"object","default":{}},"enableTitleLineClamp":{"type":"boolean","default":false},"titleLineClamp":{"type":"integer","default":2},"titleColor":{"type":"string","default":""},"enableTitleUnderline":{"type":"boolean","default":false},"titleHoverColor":{"type":"string","default":""},"enableTitleHoverUnderline":{"type":"boolean","default":true},"enableTagline":{"type":"boolean","default":true},"taglineSource":{"type":"string","default":"excerpt"},"hideTaglineTablet":{"type":"boolean","default":false},"hideTaglinePhone":{"type":"boolean","default":false},"taglineTypography":{"type":"object","default":{}},"taglineMaxWidth":{"type":"object","default":{}},"taglineSpacing":{"type":"object","default":{}},"enableTaglineLineClamp":{"type":"boolean","default":false},"taglineLineClamp":{"type":"integer","default":2},"taglineColor":{"type":"string","default":""},"enableLink":{"type":"boolean","default":true},"linkRel":{"type":"string","default":""},"linkTarget":{"type":"string","default":"_self"}},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"textAlign":true},"gtmResponsiveAttributes":true,"gtmUseWebFonts":["titleTypography","taglineTypography"]},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-title-editor-style","style":"gtm-post-title-style"}');We(Ho.name,Ho.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-post-title-enable-link":t.enableLink,"gtm-has-post-title-link-underline":t.enableLink&&t.enableTitleUnderline,"gtm-has-post-title-link-hover-underline":t.enableLink&&t.enableTitleHoverUnderline,"gtm-hide-post-title-tagline-on-tablet":t.enableTagline&&t.hideTaglineTablet,"gtm-hide-post-title-tagline-on-phone":t.enableTagline&&t.hideTaglinePhone})),$e(a,"post-title-typography",(0,Je.parseTypographyProps)(t.titleTypography)),$e(a,"post-title-max-width",t.titleMaxWidth),t.enableTitleLineClamp&&$e(a,"post-title-line-clamp",t.titleLineClamp),$e(a,"post-title-color",(0,Le.parseColorValue)(t.titleColor)),$e(a,"post-title-hover-color",(0,Le.parseColorValue)(t.titleHoverColor)),t.enableTagline&&($e(a,"post-title-tagline-typography",(0,Je.parseTypographyProps)(t.taglineTypography)),$e(a,"post-title-tagline-max-width",t.taglineMaxWidth),$e(a,"post-title-tagline-spacing",(0,et._5)(t.taglineSpacing)),t.enableTaglineLineClamp&&$e(a,"post-title-tagline-line-clamp",t.taglineLineClamp),$e(a,"post-title-tagline-color",(0,Le.parseColorValue)(t.taglineColor))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:jo}=Ho,No={...Ho,icon:he.oY,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r,context:{postType:i,postId:s}}=e,c=`${t.titleTag}`,u=(0,we.useBlockProps)(),[m="",g,p]=(0,At.useEntityProp)("postType",i,"title",s),[d,b,{rendered:h,protected:y}={}]=(0,At.useEntityProp)("postType",i,"excerpt",s),_=(0,Ce.useMemo)((()=>{if(!h)return"";const e=(new window.DOMParser).parseFromString(h,"text/html");return e.body.textContent||e.body.innerText||""}),[h]);let v;return v="custom-excerpt"==t.taglineSource?d:_,_e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Title","gutenmate"),initialOpen:!1},_e().createElement(na.Z,{label:(0,be.__)("Title Tag","gutenmate"),value:t.titleTag,onChange:e=>a({titleTag:e})}),_e().createElement(Je.default,{value:t.titleTypography,onChange:e=>a({titleTypography:e})}),_e().createElement(Ke.GZ,{label:(0,be.__)("Max width","gutenmate"),value:t.titleMaxWidth,max:"1000",onChange:e=>{a({titleMaxWidth:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Limit number of lines","gutenmate"),checked:t.enableTitleLineClamp,onChange:e=>{a({enableTitleLineClamp:e})}}),t.enableTitleLineClamp&&_e().createElement(Ee.RangeControl,{help:(0,be.__)("The maximum number of lines.","gutenmate"),value:t.titleLineClamp,min:1,max:10,onChange:e=>a({titleLineClamp:e})}),t.enableLink&&_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Underline","gutenmate"),checked:t.enableTitleUnderline,onChange:e=>{a({enableTitleUnderline:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hover underline","gutenmate"),checked:t.enableTitleHoverUnderline,onChange:e=>{a({enableTitleHoverUnderline:e})}}))})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Tagline","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Show tagline","gutenmate"),checked:t.enableTagline,onChange:e=>{a({enableTagline:e})}}),t.enableTagline&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.SelectControl,{className:"gtm-select-control",label:(0,be.__)("Source","gutenmate"),value:t.taglineSource,options:[{label:(0,be.__)("Excerpt","gutenmate"),value:"excerpt"},{label:(0,be.__)("Custom excerpt only","gutenmate"),value:"custom-excerpt"}],onChange:e=>{a({taglineSource:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide tagline on tablet","gutenmate"),checked:t.hideTaglineTablet,onChange:e=>{a({hideTaglineTablet:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide tagline on phone","gutenmate"),checked:t.hideTaglinePhone,onChange:e=>{a({hideTaglinePhone:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Limit number of lines","gutenmate"),checked:t.enableTaglineLineClamp,onChange:e=>{a({enableTaglineLineClamp:e})}}),t.enableTaglineLineClamp&&_e().createElement(Ee.RangeControl,{help:(0,be.__)("The maximum number of lines.","gutenmate"),value:t.taglineLineClamp,min:1,max:10,onChange:e=>a({taglineLineClamp:e})}),_e().createElement(Je.default,{value:t.taglineTypography,onChange:e=>a({taglineTypography:e})}),_e().createElement(Ke.GZ,{label:(0,be.__)("Max width","gutenmate"),value:t.taglineMaxWidth,max:"1000",onChange:e=>{a({taglineMaxWidth:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.taglineSpacing,onChange:e=>a({taglineSpacing:e})}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Link","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Make title a link","gutenmate"),checked:t.enableLink,onChange:e=>{a({enableLink:e})}}),t.enableLink&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Open in new tab","gutenmate"),checked:"_blank"===t.linkTarget,onChange:e=>{a({linkTarget:e?"_blank":"_self"})}}),_e().createElement(Ee.TextControl,{label:(0,be.__)("Link rel","gutenmate"),value:t.linkRel,onChange:e=>a({linkRel:e})}))),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Title color","gutenmate"),attr:"titleColor"},...t.enableLink?[{label:(0,be.__)("Title hover color","gutenmate"),attr:"titleHoverColor"}]:[],...t.enableTagline?[{label:(0,be.__)("Tagline color","gutenmate"),attr:"taglineColor"}]:[]]})),_e().createElement("div",u,_e().createElement(c,{className:"wp-block-gtm-post-title__title"},t.enableLink&&_e().createElement("a",{href:"#post-title-pseudo-link",target:t.linkTarget,rel:t.rel,onClick:e=>e.preventDefault()},_e().createElement(Ce.RawHTML,{key:"html"},p?.rendered||(0,be.__)("Post title","gutenmate"))),!t.enableLink&&_e().createElement(Ce.RawHTML,{key:"html"},p?.rendered||(0,be.__)("Post title","gutenmate"))),t.enableTagline&&_e().createElement("div",{className:"wp-block-gtm-post-title__tagline"},_e().createElement(Ee.Disabled,null,_e().createElement(Ce.RawHTML,{key:"html"},v||(0,be.__)("Post tagline","gutenmate"))))))},styles:[{name:"gtm-post-title-hero",label:(0,be.__)("Hero","gutenmate")},{name:"gtm-post-title-huge",label:(0,be.__)("Huge","gutenmate")},{name:"gtm-post-title-large",label:(0,be.__)("Large","gutenmate")},{name:"gtm-post-title-medium",label:(0,be.__)("Medium","gutenmate")},{name:"gtm-post-title-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-post-title-tiny",label:(0,be.__)("Tiny","gutenmate")}]};var Ro=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/post-views","title":"Post views","description":"Add a customizable post views.","category":"gtm-posts","textdomain":"gutenmate","keywords":["gutenmate","blog","posts","archive","views"],"usesContext":["postId","postType"],"attributes":{"display":{"type":"string","default":"name"},"counterColor":{"type":"string","default":""},"counterHoverColor":{"type":"string","default":""},"label":{"type":"string","default":""},"labelTypography":{"type":"object","default":{}},"labelSpacing":{"type":"object","default":{}},"labelColor":{"type":"string","default":""},"icon":{"type":"string","default":""},"iconSize":{"type":"object","default":{}},"iconWidth":{"type":"object","default":{}},"iconRadius":{"type":["string","object"],"default":""},"iconSpacing":{"type":"object","default":{}},"iconColor":{"type":"string","default":""},"iconBg":{"type":"object","default":{}},"iconHoverColor":{"type":"string","default":""},"iconHoverBg":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"typography":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-post-views-editor-style","style":"gtm-post-views-style"}'),Vo=e=>_e().createElement(Ce.Fragment,null,!gtm_config?.is_post_views_active&&_e().createElement(Ee.Notice,{className:"gtm-panel-body-notice",isDismissible:!1,status:"warning"},(0,be.__)("To display a populat posts, Please install WordPress Popular Posts plugin.","gutenmate")," ",_e().createElement(Ee.ExternalLink,{href:"https://wordpress.org/plugins/wordpress-popular-posts/"},"Click here.")));const zo=gtm_config.icons.views;We(Ro.name,Ro.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"post-views-label-typography",(0,Je.parseTypographyProps)(t.labelTypography)),$e(a,"post-views-label-spacing",(0,et._5)(t.labelSpacing)),$e(a,"post-views-label-color",(0,Le.parseColorValue)(t.labelColor)),$e(a,"post-views-counter-color",(0,Le.parseColorValue)(t.counterColor)),$e(a,"post-views-counter-hover-color",(0,Le.parseColorValue)(t.counterHoverColor)),"name"!=t.display&&($e(a,"post-views-icon-spacing",(0,et._5)(t.iconSpacing)),$e(a,"post-views-icon-size",t.iconSize),$e(a,"post-views-icon-width",t.iconWidth),$e(a,"post-views-icon-radius",(0,Le.parseBorderRadiusValue)(t.iconRadius)),$e(a,"post-views-icon-color",(0,Le.parseColorValue)(t.iconColor)),$e(a,"post-views-icon-bg",(0,Le.parseColorValue)(t.iconBg)),$e(a,"post-views-icon-hover-color",(0,Le.parseColorValue)(t.iconHoverColor)),$e(a,"post-views-icon-hover-bg",(0,Le.parseColorValue)(t.iconHoverBg))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Fo}=Ro,Mo={...Ro,icon:he.rI,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{postType:r,postId:i}}=e,s=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Vo,null),_e().createElement(Ee.RadioControl,{options:[{label:(0,be.__)("Counter text","gutenmate"),value:"name"},{label:(0,be.__)("Icon and counter text","gutenmate"),value:"icon"},{label:(0,be.__)("Icon and counter number","gutenmate"),value:"counter"}],selected:t.display,onChange:e=>{a({display:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Label","gutenmate"),initialOpen:!1},_e().createElement(Ee.TextControl,{label:(0,be.__)("Label","gutenmate"),help:(0,be.__)("An additional label for the block. Some styles require a label for looking better.","gutenmate"),value:t.label,onChange:e=>a({label:e})}),_e().createElement(Je.default,{value:t.labelTypography,onChange:e=>a({labelTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Label spacing","gutenmate"),value:t.labelSpacing,onChange:e=>a({labelSpacing:e})})),"name"!=t.display&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Icon","gutenmate"),initialOpen:!0},_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),help:(0,be.__)("An icon for the block. Leave blank to use the default icon.","gutenmate"),defaultIcon:zo,value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),help:(0,be.__)("A size of the icon","gutenmate"),value:t.iconSize,max:"100",onChange:e=>{a({iconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon width","gutenmate"),help:(0,be.__)("A width of the icon container","gutenmate"),value:t.iconWidth,onChange:e=>{a({iconWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.iconRadius,onChange:e=>{a({iconRadius:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),help:(0,be.__)("A space between the icon and the text","gutenmate"),value:t.iconSpacing,onChange:e=>a({iconSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"counterColor"},{label:(0,be.__)("Hover color","gutenmate"),attr:"counterHoverColor"},{label:(0,be.__)("Label color","gutenmate"),attr:"labelColor"},..."icon"==t.display?[{label:(0,be.__)("Icon color","gutenmate"),attr:"iconColor"},{label:(0,be.__)("Icon background","gutenmate"),attr:"iconBg",gradient:!0},{label:(0,be.__)("Icon hover color","gutenmate"),attr:"iconHoverColor"},{label:(0,be.__)("Icon hover background","gutenmate"),attr:"iconHoverBg",gradient:!0}]:[]]})),_e().createElement("div",s,"name"!=t.display&&_e().createElement(Ce.Fragment,null,_e().createElement("i",{className:`gtm-icon ${t.icon||zo}`,"aria-hidden":"true"})),t.label&&_e().createElement("span",{className:"wp-block-gtm-post-views__label"},t.label),"name"==t.display&&_e().createElement("span",{className:"wp-block-gtm-post-views__views wp-block-gtm-post-views__content"},(0,be.sprintf)((0,be._nx)("%s View","%s Views",1230),"1.23K")),"icon"==t.display&&_e().createElement("span",{className:"wp-block-gtm-post-views__views wp-block-gtm-post-views__content"},(0,be.sprintf)((0,be._nx)("%s View","%s Views",1230),"1.23K")),"counter"==t.display&&_e().createElement("span",{className:"wp-block-gtm-post-views__views wp-block-gtm-post-views__content"},"1.23K")))},styles:[{name:"gtm-post-views-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-post-views-tiny",label:(0,be.__)("Tiny","gutenmate")},{name:"gtm-post-views-featured",label:(0,be.__)("Featured","gutenmate")},{name:"gtm-post-views-featured-mobile",label:(0,be.__)("Mobile featured","gutenmate")},{name:"gtm-post-views-tall",label:(0,be.__)("Tall","gutenmate")}]};var Do=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/query-result","title":"Query result","description":"Add a conditional block for query.","parent":["core/query"],"category":"gtm-loop","keywords":["gutenmate","query","result","condition"],"attributes":{"displayOnHasResult":{"type":"boolean","default":true}},"usesContext":["queryId","query","queryContext","displayLayout","templateSlug","gtmQueryFilter","gtmQueryLimitDays","gtmQueryUseRandom"],"supports":{},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-query-result-editor-style","style":"gtm-query-result-style"}');const{name:Wo}=Do,$o={...Do,icon:he.RW,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block")}),s=(0,we.useInnerBlocksProps)(i,{template:[["core/paragraph",{placeholder:(0,be.__)("Add a text or blocks that will display when the query result met a condition.","gutenmate")}]]});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Display when a query has a result","gutenmate"),checked:t.displayOnHasResult,onChange:e=>{a({displayOnHasResult:e})}}))),_e().createElement("div",s))},save:function(e){return _e().createElement(we.InnerBlocks.Content,null)},variations:[]};var Go=(0,Ce.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ce.createElement)(Ba.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const Uo=e=>{const{className:t,label:a=(0,be.__)("Add new item","gutenmate"),onClick:n=Te.noop}=e;return _e().createElement(Ee.Button,{label:e.label,className:fe()(t,"gtm-button-item-appender"),onClick:n},_e().createElement(Xa,{icon:Ya}))};function Zo(e){const{value:t,onChange:a=Te.noop,className:n,isSelected:l=!1}=e,o=(0,Le.useIdentifier)("ingredient");return _e().createElement(Ce.Fragment,null,_e().createElement("div",{className:"gtm-ingredient-edit"},_e().createElement("div",{className:"gtm-ingredient-edit__title"},(0,be.__)("Ingredient","gutenmate")),t.map(((e,n)=>_e().createElement(qo,{key:n,identifier:o(n),isSelected:l,value:e,allowRemove:n>0,onChange:e=>{t[n]=e,a([...t])},onRemove:e=>{t.splice(n,1),a([...t])}}))),l&&_e().createElement(Uo,{label:(0,be.__)("Add new ingredient set","gutenmate"),onClick:()=>{a([...t,[]])}})))}const qo=e=>{const{identifier:t,value:a,isSelected:n,onChange:l=Te.noop,onRemove:o=Te.noop,allowRemove:r=!0}=e;return _e().createElement("div",{className:"gtm-ingredient-edit__group"},_e().createElement("div",{className:"gtm-ingredient-edit__group-title-row"},_e().createElement(we.RichText,{className:"gtm-ingredient-edit__group-title",tagName:"span",onChange:e=>{l({...a,label:e})},value:a.label,"aria-label":(0,be.__)("Ingredient group name","gutenmate"),placeholder:(0,be.__)("Ingredient group name","gutenmate"),allowedFormats:[]}),_e().createElement("div",{className:"gtm-ingredient-edit__group-actions"},n&&r&&_e().createElement(Ee.Button,{label:(0,be.__)("Remove","gutenmate"),className:"gtm-ingredient-edit__group-remove",onClick:o},_e().createElement(Xa,{icon:Go})))),_e().createElement(Dt,{identifier:t,placeholder:(0,be.__)("Ingredient here","gutenmate"),value:a.items,onChange:e=>{l({...a,items:e})}}))};var Jo=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/recipe","title":"Recipe","description":"Add a customizable recipe.","category":"gtm-recipe","keywords":["gutenmate","recipe","ingredient"],"attributes":{"title":{"type":"string","default":""},"tagline":{"type":"string","default":""},"summary":{"type":"string","default":""},"ingredient":{"type":"array","default":[[]]},"templateId":{"type":"string","default":""}},"providesContext":{"gtmTemplateTitle":"title","gtmTemplateTagline":"tagline","gtmTemplateSummary":"summary","gtmRecipeIngredient":"ingredient"},"supports":{"anchor":true,"multiple":false,"gtmResponsiveAttributes":false},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-recipe-editor-style","style":"gtm-recipe-style"}');const{name:Ko}=Jo,Qo={...Jo,icon:he.T5,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,{templateOptions:i}=(0,xe.useSelect)((e=>{const{getEntityRecords:t}=e(At.store);let a=t("postType","wp_template_part",{per_page:-1}),n=[];return a&&a.map((e=>("gtm-area-recipe"==e.area&&n.push({label:e.title.rendered,value:e.id}),e))),{templateOptions:n}}),[]),s=(0,we.useBlockProps)({className:fe()("gtm-block")});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Layout","gutenmate"),initialOpen:!0},!i&&_e().createElement(Ee.Notice,{className:"gtm-panel-body-notice",isDismissible:!1,status:"warning"},(0,be.__)("There is no review template available. Please navigate to site editor and create a template part in the Review area.","gutenmate")),_e().createElement(Ee.SelectControl,{className:"gtm-select-control",label:(0,be.__)("Template","gutenmate"),help:(0,be.__)("Choose a template part for rendering. The default template name is Recipe.","gutenmate"),value:t.templateId,options:[{label:(0,be.__)("Default","gutenmate"),value:""},...i??[]],onChange:e=>{a({templateId:e})}}))),_e().createElement("div",s,_e().createElement("h3",{className:"wp-block-gtm-recipe__title"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Recipe title","gutenmate"),value:t.title,onChange:e=>a({title:e})})),_e().createElement("p",{className:"wp-block-gtm-recipe__tagline"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Tagline","gutenmate"),value:t.tagline,onChange:e=>a({tagline:e})})),_e().createElement("p",{className:"wp-block-gtm-recipe__summary"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Enter recipe summary here.","gutenmate"),value:t.summary,onChange:e=>a({summary:e})})),_e().createElement(Zo,{isSelected:n,value:t.ingredient,onChange:e=>{a({ingredient:e})}})))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:""});return _e().createElement("div",a,t.title&&_e().createElement("div",{className:"wp-block-gtm-recipe__title"},t.title),t.tagline&&_e().createElement("div",{className:"wp-block-gtm-recipe__tagline"},t.tagline),t.summary&&_e().createElement("div",{className:"wp-block-gtm-recipe__summary"},t.summary),t.ingredient.map(((e,t)=>_e().createElement("div",{key:t,className:"wp-block-gtm-recipe__ingredient-group"},e.label&&_e().createElement("div",{className:"wp-block-gtm-recipe__ingredient-group-title"},e.label),_e().createElement("ul",{className:"wp-block-gtm-recipe__ingredient-group-items"},e.items.map(((e,t)=>_e().createElement("li",{key:t},e))))))))},variations:[]};var Xo=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/recipe-template","title":"Recipe template","description":"Add a customizable recipe template.","category":"gtm-recipe","keywords":["gutenmate","recipe","template"],"attributes":{},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"width":true,"height":true,"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true,"flexLayout":true},"gtmResponsiveAttributes":true,"gtmInspectAttributes":false},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-recipe-template-editor-style","style":"gtm-recipe-template-style"}'),Yo=[{name:"gtm-recipe-basic",title:(0,be.__)("Basic","gutenmate"),description:(0,be.__)("Display a receipt in a basic style.","gutenmate"),icon:he.RK,innerBlocks:[["gtm/template-title",{}],["gtm/template-summary",{}],["gtm/ingredient",{}]],scope:["block"]}];const{name:er}=Xo,tr={...Xo,icon:he.ve,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,{blockType:i,defaultVariation:s,variations:c}=(0,xe.useSelect)((e=>{const{getBlockVariations:t,getBlockType:a,getDefaultBlockVariation:n}=e(de.store);return{blockType:a(r),defaultVariation:n(r,"block"),variations:t(r,"block")}}),[r]),{replaceInnerBlocks:u}=(0,xe.useDispatch)(we.store),m=(0,xe.useSelect)((e=>e(we.store).getBlocks(o).length>0),[o]),g=(0,we.useBlockProps)({className:fe()("gtm-block")}),p=(0,we.useInnerBlocksProps)(g,{template:[["gtm/ingredient"]]});return m?_e().createElement(Ce.Fragment,null,_e().createElement("div",p)):_e().createElement("div",{className:"gtm-template-variation-picker"},_e().createElement(we.__experimentalBlockVariationPicker,{icon:(0,Te.get)(i,["icon","src"]),label:(0,Te.get)(i,["title"]),variations:c,onSelect:(e=s)=>{e.attributes&&a(e.attributes),e.innerBlocks&&u(o,(0,de.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)}}))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("")});return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},variations:Yo};var ar=window.wp.editor,nr=a(6015),lr=a(3904);const or=(0,Lt.Z)(Ee.FlexItem)`
	flex: 1 1 auto;
`,rr=(0,Lt.Z)(Ee.Flex)`
	flex: 0;
	min-width: initial;
	margin-right: -10px;
`,ir={label:"",score:50},sr=e=>{const{className:t,value:a,onChange:n=Te.noop,isSelected:l=!1}=e;return _e().createElement(Ce.Fragment,null,_e().createElement("div",{className:"gtm-break-down-edit"},_e().createElement("div",{className:"gtm-break-down-edit__title"},(0,be.__)("Score breakdown","gutenmate")),a?.map(((e,t)=>_e().createElement(cr,{key:t,isSelected:l,value:e,onChange:l=>{a[t]={...e,...l},n([...a])},onMoveUp:e=>{if(t>0){const e=a[t-1];a[t-1]=a[t],a[t]=e,n([...a])}},onMoveDown:e=>{if(t<a.length-1){const e=a[t+1];a[t+1]=a[t],a[t]=e,n([...a])}},onRemove:e=>{a.splice(t,1),n([...a])}}))),l&&_e().createElement(Uo,{label:(0,be.__)("Add new breakdown item","gutenmate"),onClick:()=>{n([...a,ir])}})))},cr=e=>{const{value:t,isSelected:a,onChange:n=Te.noop,onMoveUp:l=Te.noop,onMoveDown:o=Te.noop,onRemove:r=Te.noop}=e;return _e().createElement(Ee.Flex,{className:fe()("gtm-review-breakdown-item"),expanded:!1},_e().createElement(or,null,_e().createElement(we.RichText,{tagName:"div",className:"gtm-review-breakdown-item__label",placeholder:(0,be.__)("Breakdown item name","gutenmate"),multiline:!1,value:t.label,onChange:e=>n({label:e})}),_e().createElement(Ee.RangeControl,{className:"gtm-review-breakdown-item__score",value:t.score,onChange:e=>n({score:e}),min:0,max:100})),a&&_e().createElement(rr,{direction:"column"},_e().createElement(Ee.Button,{label:(0,be.__)("Remove","gutenmate"),className:"gtm-review-breakdown-item__remove",onClick:r},_e().createElement(Xa,{icon:Go})),_e().createElement(Ee.Button,{label:(0,be.__)("Move up","gutenmate"),className:"gtm-review-breakdown-item__up",onClick:l},_e().createElement(Xa,{icon:nr.Z})),_e().createElement(Ee.Button,{label:(0,be.__)("Move down","gutenmate"),className:"gtm-review-breakdown-item__down",onClick:o},_e().createElement(Xa,{icon:lr.Z}))))};var ur=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/review","title":"Review","description":"Add a customizable review.","category":"gtm-review","textdomain":"gutenmate","keywords":["gutenmate","review"],"attributes":{"title":{"type":"string","default":""},"tagline":{"type":"string","default":""},"summary":{"type":"string","default":""},"totalScore":{"type":"number","default":0},"breakdown":{"type":"array","default":[]},"pros":{"type":"array","default":[]},"cons":{"type":"array","default":[]},"templateId":{"type":"string","default":""}},"providesContext":{"gtmTemplateTitle":"title","gtmTemplateTagline":"tagline","gtmTemplateSummary":"summary","gtmReviewTotalScore":"totalScore","gtmReviewBreakdown":"breakdown","gtmReviewPros":"pros","gtmReviewCons":"cons"},"supports":{"anchor":true,"multiple":false,"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-review-editor-style","style":"gtm-review-style"}');const{name:mr}=ur,gr={...ur,icon:he.kO,variations:[],edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-review")}),s=(0,xe.useSelect)((e=>e(ar.store).getCurrentPostType()),[]),c=(0,Se.usePrevious)(e),[u,m]=(0,At.useEntityProp)("postType",s,"meta"),{templateOptions:g}=(0,xe.useSelect)((e=>{const{getEntityRecords:t}=e(At.store);let a=t("postType","wp_template_part",{per_page:-1}),n=[];return a&&a.map((e=>("gtm-area-review"==e.area&&n.push({label:e.title.rendered,value:e.id}),e))),{templateOptions:n}}),[]);return(0,Ce.useEffect)((()=>{void 0!==c&&c?.attributes?.totalScore!==e?.attributes?.totalScore&&(m({...u,gtm_review_score:t.totalScore}),(0,Le.workaroundUpdateCustomField)("gtm_review_score",t.totalScore))})),_e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Layout","gutenmate"),initialOpen:!0},!g&&_e().createElement(Ee.Notice,{className:"gtm-panel-body-notice",isDismissible:!1,status:"warning"},(0,be.__)("There is no review template available. Please navigate to site editor and create a template part in the Review area.","gutenmate")),_e().createElement(Ee.SelectControl,{className:"gtm-select-control",label:(0,be.__)("Template","gutenmate"),help:(0,be.__)("Choose a template part for rendering. The default template name is Review.","gutenmate"),value:t.templateId,options:[{label:(0,be.__)("Default","gutenmate"),value:""},...g??[]],onChange:e=>{a({templateId:e})}}))),_e().createElement("div",i,_e().createElement("h3",{className:"wp-block-gtm-review__title"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Review title","gutenmate"),value:t.title,onChange:e=>a({title:e})})),_e().createElement("p",{className:"wp-block-gtm-review__tagline"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Tagline","gutenmate"),value:t.tagline,onChange:e=>a({tagline:e})})),_e().createElement("p",{className:"wp-block-gtm-review__summary"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Enter review summary here.","gutenmate"),value:t.summary,onChange:e=>a({summary:e})})),_e().createElement(sr,{isSelected:n,value:t.breakdown,onChange:e=>{return a({breakdown:e,totalScore:(t=e,t.reduce(((e,a,n)=>n+1==t.length?parseFloat(((e+a.score)/t.length).toFixed(2)):e+a.score),0))});var t}}),_e().createElement(Dt,{identifier:"review-positive",label:(0,be.__)("Positive notes","gutenmate"),value:t.pros,onChange:e=>{a({pros:e})}}),_e().createElement(Dt,{identifier:"review-negative",label:(0,be.__)("Negative notes","gutenmate"),value:t.cons,onChange:e=>{a({cons:e})}})))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save();return _e().createElement("div",a,t.title&&_e().createElement("div",{className:"wp-block-gtm-review__title"},t.title),t.tagline&&_e().createElement("div",{className:"wp-block-gtm-review__tagline"},t.tagline),t.summary&&_e().createElement("div",{className:"wp-block-gtm-review__summary"},t.summary),t.breakdown.length>0&&_e().createElement(Ce.Fragment,null,_e().createElement("div",{className:"wp-block-gtm-review__total-score"},t.totalScore),_e().createElement("ul",{className:"wp-block-gtm-review__breakdown"},t.breakdown.map(((e,t)=>_e().createElement("li",{key:t},_e().createElement("span",{className:"wp-block-gtm-review__breakdown__label"},e.label),_e().createElement("span",{className:"wp-block-gtm-review__breakdown__score"},e.score)))))),_e().createElement(Wt,{className:"wp-block-gtm-review__pros",value:t.pros}),_e().createElement(Wt,{className:"wp-block-gtm-review__cons",value:t.cons}))}};var pr=a.p+"images/indicator-stars.0908ced4.png",dr=a.p+"images/indicator-points.30e274d9.png",br=a.p+"images/indicator-percentage.ec9f450d.png",hr=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/review-breakdown","title":"Review Breakdown","description":"Add a customizable review breakdown.","category":"gtm-review","textdomain":"gutenmate","keywords":["gutenmate","review"],"ancestor":["gtm/review-template"],"usesContext":["gtmReviewBreakdown"],"attributes":{"design":{"type":"string","default":"stars"},"itemSpacing":{"type":"object","default":{}},"starSize":{"type":"string","default":""},"barHeight":{"type":"string","default":""},"barRadius":{"type":["string","object"],"default":""},"barShadow":{"type":"string","default":""},"barSpacing":{"type":"object","default":{}},"indicatorColor":{"type":"string","default":""},"indicatorBg":{"type":"string","default":""},"labelTypography":{"type":"object","default":{}},"scorePadding":{"type":"object","default":{}},"scoreRadius":{"type":["string","object"],"default":""},"scoreColor":{"type":"string","default":""},"scoreBg":{"type":"string","default":""},"scoreTypography":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true},"gtmResponsiveAttributes":true,"gtmUseWebFonts":["labelTypography","scoreTypography"]},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-review-breakdown-editor-style","style":"gtm-review-breakdown-style"}');const yr=[{label:(0,be.__)("Breakdown title A","gutenmate"),score:20},{label:(0,be.__)("Breakdown title B","gutenmate"),score:50},{label:(0,be.__)("Breakdown title C","gutenmate"),score:90}];We(hr.name,hr.name,(function(e,t){let a={classes:[],style:{}};const n=["stars"].includes(t.design);return a.classes.push(fe()("gtm-block","gtm-has-breakdown-"+t.design)),$e(a,"review-breakdown-item-spacing",(0,et._5)(t.itemSpacing)),n?$e(a,"review-breakdown-star-size",t.starSize):($e(a,"review-breakdown-bar-height",t.barHeight),$e(a,"review-breakdown-bar-radius",(0,Le.parseBorderRadiusValue)(t.barRadius)),$e(a,"review-breakdown-bar-shadow",(0,qe.s)(t.barShadow)),$e(a,"review-breakdown-bar-spacing",(0,et._5)(t.barSpacing))),$e(a,"review-breakdown-indicator-bg",(0,Le.parseColorValue)(t.indicatorBg)),$e(a,"review-breakdown-indicator-color",(0,Le.parseColorValue)(t.indicatorColor)),$e(a,"review-breakdown-title-typography",(0,Je.parseTypographyProps)(t.labelTypography)),n||($e(a,"review-breakdown-number-padding",(0,Qe.G3)(t.scorePadding)),$e(a,"review-breakdown-number-radius",(0,Le.parseBorderRadiusValue)(t.scoreRadius)),$e(a,"review-breakdown-number-color",(0,Le.parseColorValue)(t.scoreColor)),$e(a,"review-breakdown-number-bg",(0,Le.parseColorValue)(t.scoreBg)),$e(a,"review-breakdown-number-typography",(0,Je.parseTypographyProps)(t.scoreTypography))),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:_r}=hr,vr={...hr,icon:he.mn,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o}=e,{gtmReviewBreakdown:r=[]}=e.context,i=(0,we.useBlockProps)({});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Indicator","gutenmate"),initialOpen:!0},_e().createElement(so.Z,{className:"gtm-review-breakdown-design",selected:t.design,cols:"3",options:[{label:(0,be.__)("Stars","gutenmate"),value:"stars",image:pr},{label:(0,be.__)("Points","gutenmate"),value:"points",image:dr},{label:(0,be.__)("Percentage","gutenmate"),value:"percentage",image:br}],onChange:e=>{a({design:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Item spacing","gutenmate"),value:t.itemSpacing,onChange:e=>{a({itemSpacing:e})}}),["points","percentage"].includes(t.design)&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.dO,{label:(0,be.__)("Bar height","gutenmate"),value:t.barHeight,pxUnitOnly:!0,min:"1",max:"100",onChange:e=>{a({barHeight:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.barRadius,onChange:e=>{a({barRadius:e})}}),_e().createElement(qe.Z,{label:(0,be.__)("Bar shadow","gutenmate"),value:t.barShadow,onChange:e=>{a({barShadow:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Bar spacing","gutenmate"),value:t.barSpacing,onChange:e=>{a({barSpacing:e})}})),["stars"].includes(t.design)&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.dO,{label:(0,be.__)("Star size","gutenmate"),value:t.starSize,pxUnitOnly:!0,min:"1",max:"50",onChange:e=>{a({starSize:e})}})),_e().createElement(Je.default,{label:(0,be.__)("Label typography","gutenmate"),value:t.labelTypography,onChange:e=>a({labelTypography:e})})),["points","percentage"].includes(t.design)&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Score Number","gutenmate"),initialOpen:!1},_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.scorePadding,onChange:e=>{a({scorePadding:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.scoreRadius,onChange:e=>{a({scoreRadius:e})}}),_e().createElement(Je.default,{label:(0,be.__)("Typography","gutenmate"),value:t.scoreTypography,onChange:e=>a({scoreTypography:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Indicator color","gutenmate"),attr:"indicatorColor"},{label:(0,be.__)("Indicator background","gutenmate"),attr:"indicatorBg"},...["points","percentage"].includes(t.design)?[{label:(0,be.__)("Score color","gutenmate"),attr:"scoreColor"},{label:(0,be.__)("Score background","gutenmate"),attr:"scoreBg"}]:[]]})),_e().createElement("div",i,_e().createElement("div",{className:"wp-block-gtm-review-breakdown__container"},yr.map(((e,a)=>_e().createElement("div",{key:a,className:"wp-block-gtm-review-breakdown__item",style:{"--gtm-review-breakdown-score-multiplier":e.score/100}},_e().createElement("div",{className:"wp-block-gtm-review-breakdown__item-title"},_e().createElement("span",null,e.label)),"points"==t.design&&_e().createElement("div",{className:"wp-block-gtm-review-breakdown__item-score"},_e().createElement("span",null,(e.score/10).toFixed(1))),"percentage"==t.design&&_e().createElement("div",{className:"wp-block-gtm-review-breakdown__item-score"},_e().createElement("span",null,e.score,"%")),"stars"==t.design&&_e().createElement("div",{className:"wp-block-gtm-review-breakdown__item-score"},_e().createElement("span",null,_e().createElement("span",{className:"gtm-stars"}))),["points","percentage"].includes(t.design)&&_e().createElement("div",{className:"wp-block-gtm-review-breakdown__item-bar"},_e().createElement("span",{className:"wp-block-gtm-review-breakdown__item-bar__inner"}))))))))},save:function(e){}};var fr=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/review-note","title":"Review note","description":"Add a customizable review notes.","category":"gtm-blocks","keywords":["gutenmate","review","pros","cons"],"ancestor":["gtm/review-template"],"usesContext":["gtmReviewPros","gtmReviewCons"],"attributes":{"type":{"type":"string","default":"pros"},"listSpacing":{"type":"object","default":{}},"bulletType":{"type":"string","default":"icon"},"bulletFontSize":{"type":"object","default":{}},"bulletWidth":{"type":"object","default":{}},"bulletSpacing":{"type":"object","default":{}},"bulletRadius":{"type":["string","object"],"default":""},"bulletColor":{"type":"string","default":""},"bulletBg":{"type":"object","default":{}},"icon":{"type":"string","default":"chevron-right"},"numberStart":{"type":"number","default":"1"},"enableTimeline":{"type":"boolean","default":false},"timelineThickness":{"type":"string","default":""},"timelineColor":{"type":"string","default":""},"timelineOpacity":{"type":"number"}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"typography":true,"color":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-review-note-editor-style","style":"gtm-review-note-style"}');We(fr.name,fr.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",`gtm-has-review-note-type-${t.type}`,`gtm-has-review-note-bullet-type-${t.bulletType}`,{[`gtm-has-review-note-icon-${t.icon}`]:t.icon},{"gtm-has-review-note-timeline":t.enableTimeline})),$e(a,"review-note-spacing",(0,et._5)(t.listSpacing)),$e(a,"review-note-bullet-font-size",t.bulletFontSize),$e(a,"review-note-bullet-width",t.bulletWidth),$e(a,"review-note-bullet-spacing",(0,et._5)(t.bulletSpacing)),$e(a,"review-note-bullet-radius",(0,Le.parseBorderRadiusValue)(t.bulletRadius)),$e(a,"review-note-bullet-color",(0,Le.parseColorValue)(t.bulletColor)),$e(a,"review-note-bullet-bg",(0,Le.parseColorValue)(t.bulletBg)),"numbers"==t.bulletType&&$e(a,"review-note-number-start",t.numberStart),t.enableTimeline&&($e(a,"review-note-timeline-color",(0,Le.parseColorValue)(t.timelineColor)),t.timelineOpacity&&$e(a,"review-note-timeline-opacity",parseInt(t.timelineOpacity)/100),$e(a,"review-note-timeline-thickness",t.timelineThickness)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));var kr=[{name:"gtm-pros",title:(0,be.__)("Review pros","gutenmate"),description:(0,be.__)("Display a review positive notes.","gutenmate"),isDefault:!0,attributes:{type:"pros",icon:"plus"},isActive:e=>"pros"===e.type,scope:["inserter","transform"]},{name:"gtm-cons",title:(0,be.__)("Review cons","gutenmate"),description:(0,be.__)("Display a review negative notes.","gutenmate"),isDefault:!1,attributes:{type:"cons",icon:"minus"},isActive:e=>"cons"===e.type,scope:["inserter","transform"]}];const{name:Cr}=fr,Er={...fr,icon:he.Cz,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,r=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("List","gutenmate"),initialOpen:!1},_e().createElement(et.wH,{label:(0,be.__)("Item spacing","gutenmate"),value:t.listSpacing,onChange:e=>{a({listSpacing:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Bullet","gutenmate"),initialOpen:!1},_e().createElement(Ee.RadioControl,{label:(0,be.__)("Bullet type","gutenmate"),selected:t.bulletType,options:[{label:(0,be.__)("Icon","gutenmate"),value:"icon"},{label:(0,be.__)("Numbers","gutenmate"),value:"numbers"}],onChange:e=>{a({bulletType:e})}}),"icon"==t.bulletType&&_e().createElement(zt.Z,{label:(0,be.__)("Icon","gutenmate"),value:t.icon,onChange:e=>{a({icon:e})}}),"numbers"==t.bulletType&&_e().createElement(Ee.TextControl,{label:(0,be.__)("Start value","gutenmate"),type:"number",autoComplete:"off",value:t.numberStart,step:1,onChange:e=>{a({numberStart:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Bullet Size","gutenmate"),value:t.bulletFontSize,min:"5",max:"50",onChange:e=>{a({bulletFontSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Bullet Area","gutenmate"),value:t.bulletWidth,min:"10",max:"100",onChange:e=>{a({bulletWidth:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Space from text","gutenmate"),value:t.bulletSpacing,onChange:e=>{a({bulletSpacing:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.bulletRadius,onChange:e=>{a({bulletRadius:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable timeline style","gutenmate"),checked:t.enableTimeline,onChange:e=>{a({enableTimeline:e})}}),t.enableTimeline&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RangeControl,{label:(0,be.__)("Line opacity","gutenmate"),value:t.timelineOpacity,onChange:e=>{a({timelineOpacity:e})},min:0,max:100,step:10,allowReset:!0}),_e().createElement(Ke.dO,{label:(0,be.__)("Line thickness","gutenmate"),value:t.timelineThickness,pxUnitOnly:!0,min:"1",max:"20",onChange:e=>{a({timelineThickness:e})}}))),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Bullet color","gutenmate"),attr:"bulletColor"},{label:(0,be.__)("Bullet background","gutenmate"),attr:"bulletBg",gradient:!0},...t.enableTimeline?[{label:(0,be.__)("Timeline color","gutenmate"),attr:"timelineColor"}]:[]]})),_e().createElement("div",r,_e().createElement("ul",{className:"wp-block-gtm-review-note__list"},_e().createElement("li",null,"A review note indicating considerations for the currently being reviewed item"),_e().createElement("li",null,"The notes are titled Pros and Cons"),_e().createElement("li",null,"Another point can be made"))))},save:function(e){},variations:kr,styles:[{name:"gtm-review-note-pill",label:(0,be.__)("Pill","gutenmate")}]};var wr=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/review-template","title":"Review template","description":"Add a customizable review template.","category":"gtm-review","keywords":["gutenmate","review","template"],"attributes":{},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"width":true,"height":true,"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"color":true,"typography":true,"textAlign":true,"flexLayout":true},"gtmResponsiveAttributes":true,"gtmInspectAttributes":false},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-review-template-editor-style","style":"gtm-review-template-style"}'),Sr=[{name:"gtm-review-stars",title:(0,be.__)("Stars","gutenmate"),description:(0,be.__)("Display a star rating review.","gutenmate"),icon:he.RK,innerBlocks:[["gtm/template-title",{}],["gtm/box",{gtmFlexDirection:{lg:"row"},gtmFlexWrap:{lg:"nowrap"}},[["gtm/review-total-score",{circleMaxWidth:{lg:"200px"}}],["gtm/template-summary",{}]]],["gtm/section-headline",{headline:"Breakdown",headlineTag:"h6"}],["gtm/review-breakdown",{}],["gtm/grid",{columns:{lg:2,sm:1}},[["core/group",{},[["gtm/section-headline",{headline:"Pros",headlineTag:"h6"}],["gtm/review-note",{icon:"plus"}]]],["core/group",{},[["gtm/section-headline",{headline:"Cons",headlineTag:"h6"}],["gtm/review-note",{type:"cons",icon:"minus"}]]]]]],scope:["block"]},{name:"gtm-review-points",title:(0,be.__)("Points","gutenmate"),description:(0,be.__)("Display a points rating review.","gutenmate"),icon:he.U$,innerBlocks:[["gtm/template-title",{}],["gtm/review-breakdown",{design:"points"}],["gtm/grid",{columns:{lg:2,sm:1}},[["core/group",{},[["gtm/section-headline",{headline:"Pros",headlineTag:"h6"}],["gtm/review-note",{icon:"plus"}]]],["core/group",{},[["gtm/section-headline",{headline:"Cons",headlineTag:"h6"}],["gtm/review-note",{type:"cons",icon:"minus"}]]]]],["core/columns",{},[["core/column",{width:"66.66%"},[["gtm/headline",{headline:"Summary",headlineTag:"h6"}],["gtm/template-summary",{}]]],["core/column",{width:"33.33%"},[["gtm/review-total-score",{design:"points",circleWidth:{lg:"180px"}}]]]]]],scope:["block"]},{name:"gtm-review-percentage",title:(0,be.__)("Percentage","gutenmate"),description:(0,be.__)("Display a percentage rating review.","gutenmate"),icon:he.GU,innerBlocks:[["core/columns",{},[["core/column",{width:"66.66%"},[["gtm/template-title",{}],["gtm/template-summary",{}]]],["core/column",{width:"33.33%"},[["gtm/review-total-score",{design:"percentage",circleWidth:{lg:"180px"}}]]]]],["gtm/review-breakdown",{design:"percentage"}],["gtm/grid",{columns:{lg:2,sm:1}},[["core/group",{},[["gtm/section-headline",{headline:"Pros",headlineTag:"h6"}],["gtm/review-note",{icon:"plus"}]]],["core/group",{},[["gtm/section-headline",{headline:"Cons",headlineTag:"h6"}],["gtm/review-note",{type:"cons",icon:"minus"}]]]]]],scope:["block"]}];const{name:xr}=wr,Tr={...wr,icon:he.ve,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,{blockType:i,defaultVariation:s,variations:c}=(0,xe.useSelect)((e=>{const{getBlockVariations:t,getBlockType:a,getDefaultBlockVariation:n}=e(de.store);return{blockType:a(r),defaultVariation:n(r,"block"),variations:t(r,"block")}}),[r]),{replaceInnerBlocks:u}=(0,xe.useDispatch)(we.store),m=(0,xe.useSelect)((e=>e(we.store).getBlocks(o).length>0),[o]),g=(0,we.useBlockProps)({className:fe()("gtm-block")}),p=(0,we.useInnerBlocksProps)(g,{template:[["gtm/template-title"],["gtm/template-summary"],["gtm/review-total-score"],["gtm/review-breakdown"]]});return m?_e().createElement(Ce.Fragment,null,_e().createElement("div",p)):_e().createElement("div",{className:"gtm-template-variation-picker"},_e().createElement(we.__experimentalBlockVariationPicker,{icon:(0,Te.get)(i,["icon","src"]),label:(0,Te.get)(i,["title"]),variations:c,onSelect:(e=s)=>{e.attributes&&a(e.attributes),e.innerBlocks&&u(o,(0,de.createBlocksFromInnerBlocksTemplate)(e.innerBlocks),!0)}}))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("")});return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},variations:Sr};var Br=a(2418),Ir=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/review-total-score","title":"Review Total Score","description":"Add a customizable review total score.","category":"gtm-review","textdomain":"gutenmate","keywords":["gutenmate","review","score"],"ancestor":["gtm/review-template"],"usesContext":["gtmReviewTotalScore"],"attributes":{"contentJustify":{"type":"string","default":"center"},"design":{"type":"string","default":"stars"},"circleStrokeWidth":{"type":"integer"},"circleWidth":{"type":"object","default":{}},"starSize":{"type":"string","default":""},"indicatorSpacing":{"type":"object","default":{}},"indicatorColor":{"type":"string","default":""},"indicatorBg":{"type":"string","default":""},"scoreTypography":{"type":"object","default":{}},"scoreColor":{"type":"string","default":""}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true},"gtmResponsiveAttributes":true,"gtmUseWebFonts":["scoreTypography"]},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-review-total-score-editor-style","style":"gtm-review-total-score-style"}');wp.serverSideRender;const Pr=["left","center","right"],Lr=70;We(Ir.name,Ir.name,(function(e,t){let a={classes:[],style:{}};const n=["stars"].includes(t.design);return a.classes.push(fe()("gtm-block","gtm-is-review-total-score-"+t.design)),$e(a,"total-score-content-justify",(0,Le.parseFlexAlignValue)(t.contentJustify)),$e(a,"total-score-value",Lr+""),n?($e(a,"total-score-star-size",t.starSize),$e(a,"total-score-indicator-spacing",(0,et._5)(t.indicatorSpacing))):($e(a,"total-score-circle-stroke-width",t.circleStrokeWidth),$e(a,"total-score-circle-width",t.circleWidth)),$e(a,"total-score-indicator-bg",(0,Le.parseColorValue)(t.indicatorBg)),$e(a,"total-score-indicator-color",(0,Le.parseColorValue)(t.indicatorColor)),$e(a,"total-score-number-color",(0,Le.parseColorValue)(t.scoreColor)),$e(a,"total-score-number-typography",(0,Je.parseTypographyProps)(t.scoreTypography)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Or}=Ir,Ar={...Ir,icon:he.De,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o}=e,{gtmReviewTotalScore:r=Lr}=e.context,i=(0,we.useBlockProps)();let s=0;return"percentage"==t.design?s=r.toFixed(0)+"%":"points"==t.design?s=(r/10).toFixed(1):"stars"==t.design&&(s=(r/20).toFixed(1)),_e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Total Score","gutenmate"),initialOpen:!0},_e().createElement(Je.default,{label:(0,be.__)("Typography","gutenmate"),value:t.scoreTypography,onChange:e=>a({scoreTypography:e})})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Indicator","gutenmate"),initialOpen:!1},_e().createElement(so.Z,{className:"gtm-review-total-score-design",selected:t.design,cols:"3",options:[{label:(0,be.__)("Stars","gutenmate"),value:"stars",image:pr},{label:(0,be.__)("Points","gutenmate"),value:"points",image:dr},{label:(0,be.__)("Percentage","gutenmate"),value:"percentage",image:br}],onChange:e=>{a({design:e})}}),["points","percentage"].includes(t.design)&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RangeControl,{label:(0,be.__)("Circle stroke width","gutenmate"),value:t.circleStrokeWidth,min:"1",max:"100",allowReset:!0,onChange:e=>{a({circleStrokeWidth:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Circle width","gutenmate"),value:t.circleWidth,max:"1000",onChange:e=>{a({circleWidth:e})}})),["stars"].includes(t.design)&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.dO,{label:(0,be.__)("Star size","gutenmate"),value:t.starSize,pxUnitOnly:!0,min:"1",max:"50",onChange:e=>{a({starSize:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.indicatorSpacing,onChange:e=>{a({indicatorSpacing:e})}}))),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Indicator color","gutenmate"),attr:"indicatorColor"},{label:(0,be.__)("Indicator background","gutenmate"),attr:"indicatorBg"},{label:(0,be.__)("Score color","gutenmate"),attr:"scoreColor"}]})),_e().createElement(we.BlockControls,{group:"block"},_e().createElement(we.JustifyContentControl,{allowedControls:Pr,value:t.contentJustify,onChange:e=>a({contentJustify:e}),popoverProps:{position:"bottom right",isAlternate:!0}})),_e().createElement("div",i,["points","percentage"].includes(t.design)&&_e().createElement("div",{className:"wp-block-gtm-review-total-score__display"},_e().createElement("div",{className:"wp-block-gtm-review-total-score__number"},s),_e().createElement("div",{className:"wp-block-gtm-review-total-score__indicator"},_e().createElement(Br.Z,null))),["stars"].includes(t.design)&&_e().createElement("div",{className:"wp-block-gtm-review-total-score__display"},_e().createElement("div",{className:"wp-block-gtm-review-total-score__number"},s),_e().createElement("div",{className:"wp-block-gtm-review-total-score__indicator"},_e().createElement("span",{className:"gtm-stars"})))))},save:function(e){}};var Hr=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/section-headline","title":"Section Headline","description":"Add a customizable section headline.","category":"gtm-blocks","keywords":["gutenmate","title","heading","headline"],"attributes":{"headline":{"type":"string","source":"html","selector":".wp-block-gtm-section-headline__headline > span","default":""},"headlineTag":{"type":"string","default":"h3"},"headlineBg":{"type":"object","default":{}},"headlineColor":{"type":"string","default":""},"headlineTypography":{"type":"object","default":{}},"headlineWidth":{"type":"object","default":{}},"enableHeadlineClipText":{"type":"boolean","default":false},"lineThickness":{"type":"object","default":{}},"lineColor":{"type":"string","default":""},"lineSpacing":{"type":"object","default":{}},"lineWidth":{"type":"object","default":{}}},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"textAlign":true},"gtmResponsiveAttributes":true,"gtmUseWebFonts":["headlineTypography"]},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-section-headline-editor-style","style":"gtm-section-headline-style"}');We(Hr.name,Hr.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-enable-headline-clip-text":t.enableHeadlineClipText})),$e(a,"section-headline-bg",(0,Le.parseColorValue)(t.headlineBg)),t.enableHeadlineClipText||$e(a,"section-headline-color",(0,Le.parseColorValue)(t.headlineColor)),$e(a,"section-headline-typography",(0,Je.parseTypographyProps)(t.headlineTypography)),$e(a,"section-headline-width",t.headlineWidth),$e(a,"section-headline-line-thickness",t.lineThickness),$e(a,"section-headline-line-color",(0,Le.parseColorValue)(t.lineColor)),$e(a,"section-headline-line-spacing",(0,et._5)(t.lineSpacing)),$e(a,"section-headline-line-width",t.lineWidth),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));var jr={attributes:{headline:(0,be.__)("Healthy lunches","gutenmate"),lineColor:"#999",lineThickness:{sm:"4px"},lineSpacing:{sm:"0.8em"}},viewportWidth:350};const{name:Nr}=Hr,Rr={...Hr,icon:he.rJ,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,{maxWidth:r,headline:i,headlineTag:s,headlineColor:c,headlineTypography:u}=t,m=`${s}`,g=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ce.Fragment,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Decoration","gutenmate"),initialOpen:!0},_e().createElement(Ke.GZ,{label:(0,be.__)("Line thickness","gutenmate"),value:t.lineThickness,max:"1000",onChange:e=>{a({lineThickness:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Line spacing","gutenmate"),value:t.lineSpacing,onChange:e=>{a({lineSpacing:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Line width","gutenmate"),value:t.lineWidth,max:"1000",onChange:e=>{a({lineWidth:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Headline","gutenmate"),initialOpen:!1},_e().createElement(na.Z,{label:(0,be.__)("Headline tag","gutenmate"),value:t.headlineTag,onChange:e=>a({headlineTag:e})}),_e().createElement(Je.default,{value:t.headlineTypography,onChange:e=>a({headlineTypography:e})}),_e().createElement(Ke.GZ,{label:(0,be.__)("Width","gutenmate"),value:t.headlineWidth,max:"1000",onChange:e=>{a({headlineWidth:e})}})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Background","gutenmate"),attr:"headlineBg",gradient:!0},...t.enableHeadlineClipText?[]:[{label:(0,be.__)("Headline color","gutenmate"),attr:"headlineColor"}],,{label:(0,be.__)("Line color","gutenmate"),attr:"lineColor"}]},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Use background as a headline color","gutenmate"),checked:t.enableHeadlineClipText,onChange:e=>{a({enableHeadlineClipText:e})}})))),_e().createElement("div",g,_e().createElement(m,{className:"wp-block-gtm-section-headline__headline"},_e().createElement(we.RichText,{tagName:"span",placeholder:(0,be.__)("Section headline","gutenmate"),value:t.headline,onChange:e=>a({headline:e})}))))},save:function(e){const{attributes:t}=e,{headline:a,headlineTag:n}=t,l=we.useBlockProps.save(),o=`${n}`;return _e().createElement("div",l,_e().createElement(o,{className:"wp-block-gtm-section-headline__headline"},_e().createElement(we.RichText.Content,{tagName:"span",value:a})))},variations:[],example:jr,styles:[{name:"gtm-section-headline-middle-line",label:(0,be.__)("Middle line","gutenmate")},{name:"gtm-section-headline-underline",label:(0,be.__)("Underline","gutenmate")},{name:"gtm-section-headline-overline",label:(0,be.__)("Overline","gutenmate")},{name:"gtm-section-headline-fitted-underline",label:(0,be.__)("Fitted underline","gutenmate")},{name:"gtm-section-headline-fitted-overline",label:(0,be.__)("Fitted overline","gutenmate")},{name:"gtm-section-headline-leading-line",label:(0,be.__)("Leading line","gutenmate")},{name:"gtm-section-headline-trailling-line",label:(0,be.__)("Trailling line","gutenmate")}]};var Vr=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/separator","title":"Separator","description":"Add a customizable separator.","category":"gtm-blocks","keywords":["gutenmate","separator","line"],"usesContext":["queryId"],"attributes":{"separatorStyle":{"type":"string","default":"solid"},"separatorThickness":{"type":"string","default":""},"separatorRadius":{"type":["string","object"],"default":""},"separatorWidth":{"type":"object","default":{}},"separatorColor":{"type":"string","default":""},"hideLoopFirstChild":{"type":"boolean","default":false},"hideLoopLastChild":{"type":"boolean","default":false}},"supports":{"align":["wide","full"],"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-separator-editor-style","style":"gtm-separator-style"}');We(Vr.name,Vr.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-hide-loop-first-child":t.hideLoopFirstChild,"gtm-hide-loop-last-child":t.hideLoopLastChild})),$e(a,"separator-border-style",t.separatorStyle),$e(a,"separator-border-color",(0,Le.parseColorValue)(t.separatorColor)),$e(a,"separator-border-thickness",t.separatorThickness),$e(a,"separator-border-radius",(0,Le.parseBorderRadiusValue)(t.separatorRadius)),$e(a,"separator-width",t.separatorWidth),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:zr}=Vr,Fr={...Vr,icon:he.I9,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o,context:{queryId:r}}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block")}),s=void 0!==r;return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Separator","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{label:(0,be.__)("Style","gutenmate"),options:[{label:(0,be.__)("Solid line","gutenmate"),value:"solid"},{label:(0,be.__)("Dotted","gutenmate"),value:"dotted"},{label:(0,be.__)("Dashed","gutenmate"),value:"dashed"}],selected:t.separatorStyle,onChange:e=>{a({separatorStyle:e})}}),_e().createElement(Ke.dO,{label:(0,be.__)("Thickness","gutenmate"),value:t.separatorThickness,max:"50",pxUnitOnly:!0,onChange:e=>{a({separatorThickness:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.separatorRadius,onChange:e=>{a({separatorRadius:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Width","gutenmate"),value:t.separatorWidth,max:"1000",onChange:e=>{a({separatorWidth:e})}})),s&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Visibility in Query Loop","gutenmate"),initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide if in the first post of query loop","gutenmate"),checked:t.hideLoopFirstChild,onChange:e=>a({hideLoopFirstChild:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide if in the last post of query loop","gutenmate"),checked:t.hideLoopLastChild,onChange:e=>a({hideLoopLastChild:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Separator color","gutenmate"),attr:"separatorColor"}]})),_e().createElement("hr",i))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save();return _e().createElement("hr",a)},variations:[],styles:[{name:"gtm-separator-small",label:(0,be.__)("Small","gutenmate")},{name:"gtm-separator-medium",label:(0,be.__)("Medium","gutenmate")}]};var Mr=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/spacer","title":"Spacer","description":"Add a customizable spacer.","category":"gtm-blocks","keywords":["gutenmate","spacer","area"],"attributes":{"size":{"type":"object","default":{}}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-spacer-editor-style","style":"gtm-spacer-style"}');We(Mr.name,Mr.name,(function(e,t,a){let n={classes:[],style:{}};return n.classes.push(fe()("gtm-block")),$e(n,"spacer-size",(0,et._5)(t.size)),n.style={"{{BLOCK}}":n.style},{classes:[...e.classes,...n.classes],style:(0,Te.merge)(e.style,n.style)}}));const{name:Dr}=Mr,Wr={...Mr,icon:he.ZQ,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Spacer","gutenmate"),initialOpen:!0},_e().createElement(et.wH,{label:(0,be.__)("Size","gutenmate"),value:t.size,max:"500",onChange:e=>{a({size:e})}}))),_e().createElement("div",i))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save();return _e().createElement("div",a)},variations:[]};var $r=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/slider-template","title":"Slider Template","description":"Add a customizable slider template.","category":"gtm-loop","keywords":["gutenmate","slider"],"parent":["core/query"],"attributes":{"slidesPerView":{"type":"object","default":{"lg":"1"}},"postsPerSlide":{"type":"number","default":1},"enableAutoSlidesPerView":{"type":"boolean","default":false},"slideWidth":{"type":"object","default":{"lg":"70%"}},"slideGap":{"type":"object","default":{}},"enableLoop":{"type":"boolean","default":false},"enableAutoplay":{"type":"boolean","default":false},"autoplayDelay":{"type":"number","default":3000},"enableCenteredSlides":{"type":"boolean","default":false},"enableArrow":{"type":"boolean","default":true},"arrowWidth":{"type":"string","default":""},"arrowHeight":{"type":"string","default":""},"arrowSize":{"type":"string","default":""},"arrowXPosition":{"type":"string","default":""},"arrowRadius":{"type":["string","object"],"default":""},"arrowShadow":{"type":"string","default":""},"arrowColor":{"type":"string","default":""},"arrowBg":{"type":"object","default":{}},"arrowHoverColor":{"type":"string","default":""},"arrowHoverBg":{"type":"object","default":{}},"enablePagination":{"type":"boolean","default":false},"paginationBulletSize":{"type":"string","default":""},"paginationBulletSpacing":{"type":"string","default":""},"paginationBulletY":{"type":"string","default":""},"paginationActiveColor":{"type":"string","default":""}},"usesContext":["queryId","query","queryContext","displayLayout","templateSlug","gtmQueryFilter","gtmQueryLimitDays","gtmQueryUseRandom"],"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"radius":true,"shadow":true},"gtmResponsiveAttributes":true,"reusable":false,"html":false,"align":["wide","full"],"__experimentalLayout":{"allowEditing":false}},"styles":[{"name":"gtm-multiposts-creative","label":"Creative"}],"editorScript":"gtm-block-editor-script","editorStyle":"gtm-slider-template-editor-style","style":"gtm-slider-template-style"}');function Gr(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Ur(e={},t={}){Object.keys(t).forEach((a=>{void 0===e[a]?e[a]=t[a]:Gr(t[a])&&Gr(e[a])&&Object.keys(t[a]).length>0&&Ur(e[a],t[a])}))}const Zr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function qr(){const e="undefined"!=typeof document?document:{};return Ur(e,Zr),e}const Jr={document:Zr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Kr(){const e="undefined"!=typeof window?window:{};return Ur(e,Jr),e}function Qr(e,t=0){return setTimeout(e,t)}function Xr(){return Date.now()}function Yr(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ei(...e){const t=Object(e[0]),a=["__proto__","constructor","prototype"];for(let l=1;l<e.length;l+=1){const o=e[l];if(null!=o&&(n=o,!("undefined"!=typeof window&&void 0!==window.HTMLElement?n instanceof HTMLElement:n&&(1===n.nodeType||11===n.nodeType)))){const e=Object.keys(Object(o)).filter((e=>a.indexOf(e)<0));for(let a=0,n=e.length;a<n;a+=1){const n=e[a],l=Object.getOwnPropertyDescriptor(o,n);void 0!==l&&l.enumerable&&(Yr(t[n])&&Yr(o[n])?o[n].__swiper__?t[n]=o[n]:ei(t[n],o[n]):!Yr(t[n])&&Yr(o[n])?(t[n]={},o[n].__swiper__?t[n]=o[n]:ei(t[n],o[n])):t[n]=o[n])}}}var n;return t}function ti(e,t,a){e.style.setProperty(t,a)}function ai({swiper:e,targetPosition:t,side:a}){const n=Kr(),l=-e.translate;let o,r=null;const i=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);const s=t>l?"next":"prev",c=(e,t)=>"next"===s&&e>=t||"prev"===s&&e<=t,u=()=>{o=(new Date).getTime(),null===r&&(r=o);const s=Math.max(Math.min((o-r)/i,1),0),m=.5-Math.cos(s*Math.PI)/2;let g=l+m*(t-l);if(c(g,t)&&(g=t),e.wrapperEl.scrollTo({[a]:g}),c(g,t))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout((()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[a]:g})})),void n.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=n.requestAnimationFrame(u)};u()}function ni(e,t=""){return[...e.children].filter((e=>e.matches(t)))}function li(e,t=[]){const a=document.createElement(e);return a.classList.add(...Array.isArray(t)?t:[t]),a}function oi(e,t){return Kr().getComputedStyle(e,null).getPropertyValue(t)}function ri(e){let t,a=e;if(a){for(t=0;null!==(a=a.previousSibling);)1===a.nodeType&&(t+=1);return t}}function ii(e,t){const a=[];let n=e.parentElement;for(;n;)t?n.matches(t)&&a.push(n):a.push(n),n=n.parentElement;return a}function si(e,t,a){const n=Kr();return a?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}let ci,ui,mi;function gi(){return ci||(ci=function(){const e=Kr(),t=qr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),ci}var pi={on(e,t,a){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;const l=a?"unshift":"push";return e.split(" ").forEach((e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][l](t)})),n},once(e,t,a){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof t)return n;function l(...a){n.off(e,l),l.__emitterProxy&&delete l.__emitterProxy,t.apply(n,a)}return l.__emitterProxy=t,n.on(e,l,a)},onAny(e,t){const a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof e)return a;const n=t?"unshift":"push";return a.eventsAnyListeners.indexOf(e)<0&&a.eventsAnyListeners[n](e),a},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const a=t.eventsAnyListeners.indexOf(e);return a>=0&&t.eventsAnyListeners.splice(a,1),t},off(e,t){const a=this;return!a.eventsListeners||a.destroyed?a:a.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?a.eventsListeners[e]=[]:a.eventsListeners[e]&&a.eventsListeners[e].forEach(((n,l)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&a.eventsListeners[e].splice(l,1)}))})),a):a},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let a,n,l;return"string"==typeof e[0]||Array.isArray(e[0])?(a=e[0],n=e.slice(1,e.length),l=t):(a=e[0].events,n=e[0].data,l=e[0].context||t),n.unshift(l),(Array.isArray(a)?a:a.split(" ")).forEach((e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach((t=>{t.apply(l,[e,...n])})),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach((e=>{e.apply(l,n)}))})),t}};const di=(e,t)=>{if(!e||e.destroyed||!e.params)return;const a=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(a){const t=a.querySelector(`.${e.params.lazyPreloaderClass}`);t&&t.remove()}},bi=(e,t)=>{if(!e.slides[t])return;const a=e.slides[t].querySelector('[loading="lazy"]');a&&a.removeAttribute("loading")},hi=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const a=e.slides.length;if(!a||!t||t<0)return;t=Math.min(t,a);const n="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),l=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const a=l,o=[a-t];return o.push(...Array.from({length:t}).map(((e,t)=>a+n+t))),void e.slides.forEach(((t,a)=>{o.includes(t.column)&&bi(e,a)}))}const o=l+n-1;if(e.params.rewind||e.params.loop)for(let n=l-t;n<=o+t;n+=1){const t=(n%a+a)%a;(t<l||t>o)&&bi(e,t)}else for(let n=Math.max(l-t,0);n<=Math.min(o+t,a-1);n+=1)n!==l&&(n>o||n<l)&&bi(e,n)};var yi={updateSize:function(){const e=this;let t,a;const n=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:n.clientWidth,a=void 0!==e.params.height&&null!==e.params.height?e.params.height:n.clientHeight,0===t&&e.isHorizontal()||0===a&&e.isVertical()||(t=t-parseInt(oi(n,"padding-left")||0,10)-parseInt(oi(n,"padding-right")||0,10),a=a-parseInt(oi(n,"padding-top")||0,10)-parseInt(oi(n,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(a)&&(a=0),Object.assign(e,{width:t,height:a,size:e.isHorizontal()?t:a}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function a(e,a){return parseFloat(e.getPropertyValue(t(a))||0)}const n=e.params,{wrapperEl:l,slidesEl:o,size:r,rtlTranslate:i,wrongRTL:s}=e,c=e.virtual&&n.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,m=ni(o,`.${e.params.slideClass}, swiper-slide`),g=c?e.virtual.slides.length:m.length;let p=[];const d=[],b=[];let h=n.slidesOffsetBefore;"function"==typeof h&&(h=n.slidesOffsetBefore.call(e));let y=n.slidesOffsetAfter;"function"==typeof y&&(y=n.slidesOffsetAfter.call(e));const _=e.snapGrid.length,v=e.slidesGrid.length;let f=n.spaceBetween,k=-h,C=0,E=0;if(void 0===r)return;"string"==typeof f&&f.indexOf("%")>=0?f=parseFloat(f.replace("%",""))/100*r:"string"==typeof f&&(f=parseFloat(f)),e.virtualSize=-f,m.forEach((e=>{i?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(ti(l,"--swiper-centered-offset-before",""),ti(l,"--swiper-centered-offset-after",""));const w=n.grid&&n.grid.rows>1&&e.grid;let S;w&&e.grid.initSlides(g);const x="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>void 0!==n.breakpoints[e].slidesPerView)).length>0;for(let l=0;l<g;l+=1){let o;if(S=0,m[l]&&(o=m[l]),w&&e.grid.updateSlide(l,o,g,t),!m[l]||"none"!==oi(o,"display")){if("auto"===n.slidesPerView){x&&(m[l].style[t("width")]="");const r=getComputedStyle(o),i=o.style.transform,s=o.style.webkitTransform;if(i&&(o.style.transform="none"),s&&(o.style.webkitTransform="none"),n.roundLengths)S=e.isHorizontal()?si(o,"width",!0):si(o,"height",!0);else{const e=a(r,"width"),t=a(r,"padding-left"),n=a(r,"padding-right"),l=a(r,"margin-left"),i=a(r,"margin-right"),s=r.getPropertyValue("box-sizing");if(s&&"border-box"===s)S=e+l+i;else{const{clientWidth:a,offsetWidth:r}=o;S=e+t+n+l+i+(r-a)}}i&&(o.style.transform=i),s&&(o.style.webkitTransform=s),n.roundLengths&&(S=Math.floor(S))}else S=(r-(n.slidesPerView-1)*f)/n.slidesPerView,n.roundLengths&&(S=Math.floor(S)),m[l]&&(m[l].style[t("width")]=`${S}px`);m[l]&&(m[l].swiperSlideSize=S),b.push(S),n.centeredSlides?(k=k+S/2+C/2+f,0===C&&0!==l&&(k=k-r/2-f),0===l&&(k=k-r/2-f),Math.abs(k)<.001&&(k=0),n.roundLengths&&(k=Math.floor(k)),E%n.slidesPerGroup==0&&p.push(k),d.push(k)):(n.roundLengths&&(k=Math.floor(k)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup==0&&p.push(k),d.push(k),k=k+S+f),e.virtualSize+=S+f,C=S,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+y,i&&s&&("slide"===n.effect||"coverflow"===n.effect)&&(l.style.width=`${e.virtualSize+f}px`),n.setWrapperSize&&(l.style[t("width")]=`${e.virtualSize+f}px`),w&&e.grid.updateWrapperSize(S,p,t),!n.centeredSlides){const t=[];for(let a=0;a<p.length;a+=1){let l=p[a];n.roundLengths&&(l=Math.floor(l)),p[a]<=e.virtualSize-r&&t.push(l)}p=t,Math.floor(e.virtualSize-r)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-r)}if(c&&n.loop){const t=b[0]+f;if(n.slidesPerGroup>1){const a=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),l=t*n.slidesPerGroup;for(let e=0;e<a;e+=1)p.push(p[p.length-1]+l)}for(let a=0;a<e.virtual.slidesBefore+e.virtual.slidesAfter;a+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+t),d.push(d[d.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==f){const a=e.isHorizontal()&&i?"marginLeft":t("marginRight");m.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==m.length-1)).forEach((e=>{e.style[a]=`${f}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;b.forEach((t=>{e+=t+(f||0)})),e-=f;const t=e-r;p=p.map((e=>e<=0?-h:e>t?t+y:e))}if(n.centerInsufficientSlides){let e=0;if(b.forEach((t=>{e+=t+(f||0)})),e-=f,e<r){const t=(r-e)/2;p.forEach(((e,a)=>{p[a]=e-t})),d.forEach(((e,a)=>{d[a]=e+t}))}}if(Object.assign(e,{slides:m,snapGrid:p,slidesGrid:d,slidesSizesGrid:b}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){ti(l,"--swiper-centered-offset-before",-p[0]+"px"),ti(l,"--swiper-centered-offset-after",e.size/2-b[b.length-1]/2+"px");const t=-e.snapGrid[0],a=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+a))}if(g!==u&&e.emit("slidesLengthChange"),p.length!==_&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),d.length!==v&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),!(c||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,a=e.el.classList.contains(t);g<=n.maxBackfaceHiddenSlides?a||e.el.classList.add(t):a&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,a=[],n=t.virtual&&t.params.virtual.enabled;let l,o=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const r=e=>n?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{a.push(e)}));else for(l=0;l<Math.ceil(t.params.slidesPerView);l+=1){const e=t.activeIndex+l;if(e>t.slides.length&&!n)break;a.push(r(e))}else a.push(r(t.activeIndex));for(l=0;l<a.length;l+=1)if(void 0!==a[l]){const e=a[l].offsetHeight;o=e>o?e:o}(o||0===o)&&(t.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,a=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-a-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,a=t.params,{slides:n,rtlTranslate:l,snapGrid:o}=t;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();let r=-e;l&&(r=e),n.forEach((e=>{e.classList.remove(a.slideVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];let i=a.spaceBetween;"string"==typeof i&&i.indexOf("%")>=0?i=parseFloat(i.replace("%",""))/100*t.size:"string"==typeof i&&(i=parseFloat(i));for(let e=0;e<n.length;e+=1){const s=n[e];let c=s.swiperSlideOffset;a.cssMode&&a.centeredSlides&&(c-=n[0].swiperSlideOffset);const u=(r+(a.centeredSlides?t.minTranslate():0)-c)/(s.swiperSlideSize+i),m=(r-o[0]+(a.centeredSlides?t.minTranslate():0)-c)/(s.swiperSlideSize+i),g=-(r-c),p=g+t.slidesSizesGrid[e];(g>=0&&g<t.size-1||p>1&&p<=t.size||g<=0&&p>=t.size)&&(t.visibleSlides.push(s),t.visibleSlidesIndexes.push(e),n[e].classList.add(a.slideVisibleClass)),s.progress=l?-u:u,s.originalProgress=l?-m:m}},updateProgress:function(e){const t=this;if(void 0===e){const a=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*a||0}const a=t.params,n=t.maxTranslate()-t.minTranslate();let{progress:l,isBeginning:o,isEnd:r,progressLoop:i}=t;const s=o,c=r;if(0===n)l=0,o=!0,r=!0;else{l=(e-t.minTranslate())/n;const a=Math.abs(e-t.minTranslate())<1,i=Math.abs(e-t.maxTranslate())<1;o=a||l<=0,r=i||l>=1,a&&(l=0),i&&(l=1)}if(a.loop){const a=t.getSlideIndexByData(0),n=t.getSlideIndexByData(t.slides.length-1),l=t.slidesGrid[a],o=t.slidesGrid[n],r=t.slidesGrid[t.slidesGrid.length-1],s=Math.abs(e);i=s>=l?(s-l)/r:(s+r-o)/r,i>1&&(i-=1)}Object.assign(t,{progress:l,progressLoop:i,isBeginning:o,isEnd:r}),(a.watchSlidesProgress||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),o&&!s&&t.emit("reachBeginning toEdge"),r&&!c&&t.emit("reachEnd toEdge"),(s&&!o||c&&!r)&&t.emit("fromEdge"),t.emit("progress",l)},updateSlidesClasses:function(){const e=this,{slides:t,params:a,slidesEl:n,activeIndex:l}=e,o=e.virtual&&a.virtual.enabled,r=e=>ni(n,`.${a.slideClass}${e}, swiper-slide${e}`)[0];let i;if(t.forEach((e=>{e.classList.remove(a.slideActiveClass,a.slideNextClass,a.slidePrevClass)})),o)if(a.loop){let t=l-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),i=r(`[data-swiper-slide-index="${t}"]`)}else i=r(`[data-swiper-slide-index="${l}"]`);else i=t[l];if(i){i.classList.add(a.slideActiveClass);let e=function(e,t){const a=[];for(;e.nextElementSibling;){const n=e.nextElementSibling;t?n.matches(t)&&a.push(n):a.push(n),e=n}return a}(i,`.${a.slideClass}, swiper-slide`)[0];a.loop&&!e&&(e=t[0]),e&&e.classList.add(a.slideNextClass);let n=function(e,t){const a=[];for(;e.previousElementSibling;){const n=e.previousElementSibling;t?n.matches(t)&&a.push(n):a.push(n),e=n}return a}(i,`.${a.slideClass}, swiper-slide`)[0];a.loop&&0===!n&&(n=t[t.length-1]),n&&n.classList.add(a.slidePrevClass)}e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,a=t.rtlTranslate?t.translate:-t.translate,{snapGrid:n,params:l,activeIndex:o,realIndex:r,snapIndex:i}=t;let s,c=e;const u=e=>{let a=e-t.virtual.slidesBefore;return a<0&&(a=t.virtual.slides.length+a),a>=t.virtual.slides.length&&(a-=t.virtual.slides.length),a};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:a}=e,n=e.rtlTranslate?e.translate:-e.translate;let l;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?n>=t[e]&&n<t[e+1]-(t[e+1]-t[e])/2?l=e:n>=t[e]&&n<t[e+1]&&(l=e+1):n>=t[e]&&(l=e);return a.normalizeSlideIndex&&(l<0||void 0===l)&&(l=0),l}(t)),n.indexOf(a)>=0)s=n.indexOf(a);else{const e=Math.min(l.slidesPerGroupSkip,c);s=e+Math.floor((c-e)/l.slidesPerGroup)}if(s>=n.length&&(s=n.length-1),c===o)return s!==i&&(t.snapIndex=s,t.emit("snapIndexChange")),void(t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=u(c)));let m;m=t.virtual&&l.virtual.enabled&&l.loop?u(c):t.slides[c]?parseInt(t.slides[c].getAttribute("data-swiper-slide-index")||c,10):c,Object.assign(t,{previousSnapIndex:i,snapIndex:s,previousRealIndex:r,realIndex:m,previousIndex:o,activeIndex:c}),t.initialized&&hi(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),r!==m&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,a=t.params,n=e.closest(`.${a.slideClass}, swiper-slide`);let l,o=!1;if(n)for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===n){o=!0,l=e;break}if(!n||!o)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=n,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=l,a.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};function _i({swiper:e,runCallbacks:t,direction:a,step:n}){const{activeIndex:l,previousIndex:o}=e;let r=a;if(r||(r=l>o?"next":l<o?"prev":"reset"),e.emit(`transition${n}`),t&&l!==o){if("reset"===r)return void e.emit(`slideResetTransition${n}`);e.emit(`slideChangeTransition${n}`),"next"===r?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`)}}var vi={slideTo:function(e=0,t=this.params.speed,a=!0,n,l){"string"==typeof e&&(e=parseInt(e,10));const o=this;let r=e;r<0&&(r=0);const{params:i,snapGrid:s,slidesGrid:c,previousIndex:u,activeIndex:m,rtlTranslate:g,wrapperEl:p,enabled:d}=o;if(o.animating&&i.preventInteractionOnTransition||!d&&!n&&!l)return!1;const b=Math.min(o.params.slidesPerGroupSkip,r);let h=b+Math.floor((r-b)/o.params.slidesPerGroup);h>=s.length&&(h=s.length-1);const y=-s[h];if(i.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*y),a=Math.floor(100*c[e]),n=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=a&&t<n-(n-a)/2?r=e:t>=a&&t<n&&(r=e+1):t>=a&&(r=e)}if(o.initialized&&r!==m){if(!o.allowSlideNext&&(g?y>o.translate&&y>o.minTranslate():y<o.translate&&y<o.minTranslate()))return!1;if(!o.allowSlidePrev&&y>o.translate&&y>o.maxTranslate()&&(m||0)!==r)return!1}let _;if(r!==(u||0)&&a&&o.emit("beforeSlideChangeStart"),o.updateProgress(y),_=r>m?"next":r<m?"prev":"reset",g&&-y===o.translate||!g&&y===o.translate)return o.updateActiveIndex(r),i.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==i.effect&&o.setTranslate(y),"reset"!==_&&(o.transitionStart(a,_),o.transitionEnd(a,_)),!1;if(i.cssMode){const e=o.isHorizontal(),a=g?y:-y;if(0===t){const t=o.virtual&&o.params.virtual.enabled;t&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),t&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{p[e?"scrollLeft":"scrollTop"]=a}))):p[e?"scrollLeft":"scrollTop"]=a,t&&requestAnimationFrame((()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1}))}else{if(!o.support.smoothScroll)return ai({swiper:o,targetPosition:a,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:a,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(y),o.updateActiveIndex(r),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,n),o.transitionStart(a,_),0===t?o.transitionEnd(a,_):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(a,_))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t=this.params.speed,a=!0,n){"string"==typeof e&&(e=parseInt(e,10));const l=this;let o=e;return l.params.loop&&(l.virtual&&l.params.virtual.enabled?o+=l.virtual.slidesBefore:o=l.getSlideIndexByData(o)),l.slideTo(o,t,a,n)},slideNext:function(e=this.params.speed,t=!0,a){const n=this,{enabled:l,params:o,animating:r}=n;if(!l)return n;let i=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(i=Math.max(n.slidesPerViewDynamic("current",!0),1));const s=n.activeIndex<o.slidesPerGroupSkip?1:i,c=n.virtual&&o.virtual.enabled;if(o.loop){if(r&&!c&&o.loopPreventsSliding)return!1;n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft}return o.rewind&&n.isEnd?n.slideTo(0,e,t,a):n.slideTo(n.activeIndex+s,e,t,a)},slidePrev:function(e=this.params.speed,t=!0,a){const n=this,{params:l,snapGrid:o,slidesGrid:r,rtlTranslate:i,enabled:s,animating:c}=n;if(!s)return n;const u=n.virtual&&l.virtual.enabled;if(l.loop){if(c&&!u&&l.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}function m(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const g=m(i?n.translate:-n.translate),p=o.map((e=>m(e)));let d=o[p.indexOf(g)-1];if(void 0===d&&l.cssMode){let e;o.forEach(((t,a)=>{g>=t&&(e=a)})),void 0!==e&&(d=o[e>0?e-1:e])}let b=0;if(void 0!==d&&(b=r.indexOf(d),b<0&&(b=n.activeIndex-1),"auto"===l.slidesPerView&&1===l.slidesPerGroup&&l.slidesPerGroupAuto&&(b=b-n.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),l.rewind&&n.isBeginning){const l=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(l,e,t,a)}return n.slideTo(b,e,t,a)},slideReset:function(e=this.params.speed,t=!0,a){return this.slideTo(this.activeIndex,e,t,a)},slideToClosest:function(e=this.params.speed,t=!0,a,n=.5){const l=this;let o=l.activeIndex;const r=Math.min(l.params.slidesPerGroupSkip,o),i=r+Math.floor((o-r)/l.params.slidesPerGroup),s=l.rtlTranslate?l.translate:-l.translate;if(s>=l.snapGrid[i]){const e=l.snapGrid[i];s-e>(l.snapGrid[i+1]-e)*n&&(o+=l.params.slidesPerGroup)}else{const e=l.snapGrid[i-1];s-e<=(l.snapGrid[i]-e)*n&&(o-=l.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,l.slidesGrid.length-1),l.slideTo(o,e,t,a)},slideToClickedSlide:function(){const e=this,{params:t,slidesEl:a}=e,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let l,o=e.clickedIndex;const r=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;l=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-n/2||o>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),o=e.getSlideIndex(ni(a,`${r}[data-swiper-slide-index="${l}"]`)[0]),Qr((()=>{e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-n?(e.loopFix(),o=e.getSlideIndex(ni(a,`${r}[data-swiper-slide-index="${l}"]`)[0]),Qr((()=>{e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}},fi={loopCreate:function(e){const t=this,{params:a,slidesEl:n}=t;!a.loop||t.virtual&&t.params.virtual.enabled||(ni(n,`.${a.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})),t.loopFix({slideRealIndex:e,direction:a.centeredSlides?void 0:"next"}))},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:a,setTranslate:n,activeSlideIndex:l,byController:o,byMousewheel:r}={}){const i=this;if(!i.params.loop)return;i.emit("beforeLoopFix");const{slides:s,allowSlidePrev:c,allowSlideNext:u,slidesEl:m,params:g}=i;if(i.allowSlidePrev=!0,i.allowSlideNext=!0,i.virtual&&g.virtual.enabled)return t&&(g.centeredSlides||0!==i.snapIndex?g.centeredSlides&&i.snapIndex<g.slidesPerView?i.slideTo(i.virtual.slides.length+i.snapIndex,0,!1,!0):i.snapIndex===i.snapGrid.length-1&&i.slideTo(i.virtual.slidesBefore,0,!1,!0):i.slideTo(i.virtual.slides.length,0,!1,!0)),i.allowSlidePrev=c,i.allowSlideNext=u,void i.emit("loopFix");const p="auto"===g.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(g.slidesPerView,10));let d=g.loopedSlides||p;d%g.slidesPerGroup!=0&&(d+=g.slidesPerGroup-d%g.slidesPerGroup),i.loopedSlides=d;const b=[],h=[];let y=i.activeIndex;void 0===l?l=i.getSlideIndex(i.slides.filter((e=>e.classList.contains(g.slideActiveClass)))[0]):y=l;const _="next"===a||!a,v="prev"===a||!a;let f=0,k=0;if(l<d){f=Math.max(d-l,g.slidesPerGroup);for(let e=0;e<d-l;e+=1){const t=e-Math.floor(e/s.length)*s.length;b.push(s.length-t-1)}}else if(l>i.slides.length-2*d){k=Math.max(l-(i.slides.length-2*d),g.slidesPerGroup);for(let e=0;e<k;e+=1){const t=e-Math.floor(e/s.length)*s.length;h.push(t)}}if(v&&b.forEach((e=>{i.slides[e].swiperLoopMoveDOM=!0,m.prepend(i.slides[e]),i.slides[e].swiperLoopMoveDOM=!1})),_&&h.forEach((e=>{i.slides[e].swiperLoopMoveDOM=!0,m.append(i.slides[e]),i.slides[e].swiperLoopMoveDOM=!1})),i.recalcSlides(),"auto"===g.slidesPerView&&i.updateSlides(),g.watchSlidesProgress&&i.updateSlidesOffset(),t)if(b.length>0&&v)if(void 0===e){const e=i.slidesGrid[y],t=i.slidesGrid[y+f]-e;r?i.setTranslate(i.translate-t):(i.slideTo(y+f,0,!1,!0),n&&(i.touches[i.isHorizontal()?"startX":"startY"]+=t))}else n&&i.slideToLoop(e,0,!1,!0);else if(h.length>0&&_)if(void 0===e){const e=i.slidesGrid[y],t=i.slidesGrid[y-k]-e;r?i.setTranslate(i.translate-t):(i.slideTo(y-k,0,!1,!0),n&&(i.touches[i.isHorizontal()?"startX":"startY"]+=t))}else i.slideToLoop(e,0,!1,!0);if(i.allowSlidePrev=c,i.allowSlideNext=u,i.controller&&i.controller.control&&!o){const t={slideRealIndex:e,slideTo:!1,direction:a,setTranslate:n,activeSlideIndex:l,byController:!0};Array.isArray(i.controller.control)?i.controller.control.forEach((e=>{!e.destroyed&&e.params.loop&&e.loopFix(t)})):i.controller.control instanceof i.constructor&&i.controller.control.params.loop&&i.controller.control.loopFix(t)}i.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:a}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const n=[];e.slides.forEach((e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;n[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),n.forEach((e=>{a.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};function ki(e){const t=this,a=qr(),n=Kr(),l=t.touchEventsData;l.evCache.push(e);const{params:o,touches:r,enabled:i}=t;if(!i)return;if(!o.simulateTouch&&"mouse"===e.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let s=e;s.originalEvent&&(s=s.originalEvent);let c=s.target;if("wrapper"===o.touchEventsTarget&&!t.wrapperEl.contains(c))return;if("which"in s&&3===s.which)return;if("button"in s&&s.button>0)return;if(l.isTouched&&l.isMoved)return;const u=!!o.noSwipingClass&&""!==o.noSwipingClass,m=e.composedPath?e.composedPath():e.path;u&&s.target&&s.target.shadowRoot&&m&&(c=m[0]);const g=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,p=!(!s.target||!s.target.shadowRoot);if(o.noSwiping&&(p?function(e,t=this){return function t(a){if(!a||a===qr()||a===Kr())return null;a.assignedSlot&&(a=a.assignedSlot);const n=a.closest(e);return n||a.getRootNode?n||t(a.getRootNode().host):null}(t)}(g,c):c.closest(g)))return void(t.allowClick=!0);if(o.swipeHandler&&!c.closest(o.swipeHandler))return;r.currentX=s.pageX,r.currentY=s.pageY;const d=r.currentX,b=r.currentY,h=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,y=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(h&&(d<=y||d>=n.innerWidth-y)){if("prevent"!==h)return;e.preventDefault()}Object.assign(l,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=d,r.startY=b,l.touchStartTime=Xr(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(l.allowThresholdMove=!1);let _=!0;c.matches(l.focusableElements)&&(_=!1,"SELECT"===c.nodeName&&(l.isTouched=!1)),a.activeElement&&a.activeElement.matches(l.focusableElements)&&a.activeElement!==c&&a.activeElement.blur();const v=_&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!v||c.isContentEditable||s.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",s)}function Ci(e){const t=qr(),a=this,n=a.touchEventsData,{params:l,touches:o,rtlTranslate:r,enabled:i}=a;if(!i)return;if(!l.simulateTouch&&"mouse"===e.pointerType)return;let s=e;if(s.originalEvent&&(s=s.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&a.emit("touchMoveOpposite",s));const c=n.evCache.findIndex((e=>e.pointerId===s.pointerId));c>=0&&(n.evCache[c]=s);const u=n.evCache.length>1?n.evCache[0]:s,m=u.pageX,g=u.pageY;if(s.preventedByNestedSwiper)return o.startX=m,void(o.startY=g);if(!a.allowTouchMove)return s.target.matches(n.focusableElements)||(a.allowClick=!1),void(n.isTouched&&(Object.assign(o,{startX:m,startY:g,prevX:a.touches.currentX,prevY:a.touches.currentY,currentX:m,currentY:g}),n.touchStartTime=Xr()));if(l.touchReleaseOnEdges&&!l.loop)if(a.isVertical()){if(g<o.startY&&a.translate<=a.maxTranslate()||g>o.startY&&a.translate>=a.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(m<o.startX&&a.translate<=a.maxTranslate()||m>o.startX&&a.translate>=a.minTranslate())return;if(t.activeElement&&s.target===t.activeElement&&s.target.matches(n.focusableElements))return n.isMoved=!0,void(a.allowClick=!1);if(n.allowTouchCallbacks&&a.emit("touchMove",s),s.targetTouches&&s.targetTouches.length>1)return;o.currentX=m,o.currentY=g;const p=o.currentX-o.startX,d=o.currentY-o.startY;if(a.params.threshold&&Math.sqrt(p**2+d**2)<a.params.threshold)return;if(void 0===n.isScrolling){let e;a.isHorizontal()&&o.currentY===o.startY||a.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:p*p+d*d>=25&&(e=180*Math.atan2(Math.abs(d),Math.abs(p))/Math.PI,n.isScrolling=a.isHorizontal()?e>l.touchAngle:90-e>l.touchAngle)}if(n.isScrolling&&a.emit("touchMoveOpposite",s),void 0===n.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(n.startMoving=!0)),n.isScrolling||a.zoom&&a.params.zoom&&a.params.zoom.enabled&&n.evCache.length>1)return void(n.isTouched=!1);if(!n.startMoving)return;a.allowClick=!1,!l.cssMode&&s.cancelable&&s.preventDefault(),l.touchMoveStopPropagation&&!l.nested&&s.stopPropagation();let b=a.isHorizontal()?p:d,h=a.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;l.oneWayMovement&&(b=Math.abs(b)*(r?1:-1),h=Math.abs(h)*(r?1:-1)),o.diff=b,b*=l.touchRatio,r&&(b=-b,h=-h);const y=a.touchesDirection;a.swipeDirection=b>0?"prev":"next",a.touchesDirection=h>0?"prev":"next";const _=a.params.loop&&!l.cssMode;if(!n.isMoved){if(_&&a.loopFix({direction:a.swipeDirection}),n.startTranslate=a.getTranslate(),a.setTransition(0),a.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});a.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!l.grabCursor||!0!==a.allowSlideNext&&!0!==a.allowSlidePrev||a.setGrabCursor(!0),a.emit("sliderFirstMove",s)}let v;n.isMoved&&y!==a.touchesDirection&&_&&Math.abs(b)>=1&&(a.loopFix({direction:a.swipeDirection,setTranslate:!0}),v=!0),a.emit("sliderMove",s),n.isMoved=!0,n.currentTranslate=b+n.startTranslate;let f=!0,k=l.resistanceRatio;if(l.touchReleaseOnEdges&&(k=0),b>0?(_&&!v&&n.currentTranslate>(l.centeredSlides?a.minTranslate()-a.size/2:a.minTranslate())&&a.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>a.minTranslate()&&(f=!1,l.resistance&&(n.currentTranslate=a.minTranslate()-1+(-a.minTranslate()+n.startTranslate+b)**k))):b<0&&(_&&!v&&n.currentTranslate<(l.centeredSlides?a.maxTranslate()+a.size/2:a.maxTranslate())&&a.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:a.slides.length-("auto"===l.slidesPerView?a.slidesPerViewDynamic():Math.ceil(parseFloat(l.slidesPerView,10)))}),n.currentTranslate<a.maxTranslate()&&(f=!1,l.resistance&&(n.currentTranslate=a.maxTranslate()+1-(a.maxTranslate()-n.startTranslate-b)**k))),f&&(s.preventedByNestedSwiper=!0),!a.allowSlideNext&&"next"===a.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!a.allowSlidePrev&&"prev"===a.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),a.allowSlidePrev||a.allowSlideNext||(n.currentTranslate=n.startTranslate),l.threshold>0){if(!(Math.abs(b)>l.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,void(o.diff=a.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}l.followFinger&&!l.cssMode&&((l.freeMode&&l.freeMode.enabled&&a.freeMode||l.watchSlidesProgress)&&(a.updateActiveIndex(),a.updateSlidesClasses()),l.freeMode&&l.freeMode.enabled&&a.freeMode&&a.freeMode.onTouchMove(),a.updateProgress(n.currentTranslate),a.setTranslate(n.currentTranslate))}function Ei(e){const t=this,a=t.touchEventsData,n=a.evCache.findIndex((t=>t.pointerId===e.pointerId));if(n>=0&&a.evCache.splice(n,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&("pointercancel"!==e.type||!t.browser.isSafari&&!t.browser.isWebView))return;const{params:l,touches:o,rtlTranslate:r,slidesGrid:i,enabled:s}=t;if(!s)return;if(!l.simulateTouch&&"mouse"===e.pointerType)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),a.allowTouchCallbacks&&t.emit("touchEnd",c),a.allowTouchCallbacks=!1,!a.isTouched)return a.isMoved&&l.grabCursor&&t.setGrabCursor(!1),a.isMoved=!1,void(a.startMoving=!1);l.grabCursor&&a.isMoved&&a.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=Xr(),m=u-a.touchStartTime;if(t.allowClick){const e=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(e&&e[0]||c.target),t.emit("tap click",c),m<300&&u-a.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(a.lastClickTime=Xr(),Qr((()=>{t.destroyed||(t.allowClick=!0)})),!a.isTouched||!a.isMoved||!t.swipeDirection||0===o.diff||a.currentTranslate===a.startTranslate)return a.isTouched=!1,a.isMoved=!1,void(a.startMoving=!1);let g;if(a.isTouched=!1,a.isMoved=!1,a.startMoving=!1,g=l.followFinger?r?t.translate:-t.translate:-a.currentTranslate,l.cssMode)return;if(l.freeMode&&l.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:g});let p=0,d=t.slidesSizesGrid[0];for(let e=0;e<i.length;e+=e<l.slidesPerGroupSkip?1:l.slidesPerGroup){const t=e<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;void 0!==i[e+t]?g>=i[e]&&g<i[e+t]&&(p=e,d=i[e+t]-i[e]):g>=i[e]&&(p=e,d=i[i.length-1]-i[i.length-2])}let b=null,h=null;l.rewind&&(t.isBeginning?h=l.virtual&&l.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const y=(g-i[p])/d,_=p<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;if(m>l.longSwipesMs){if(!l.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=l.longSwipesRatio?t.slideTo(l.rewind&&t.isEnd?b:p+_):t.slideTo(p)),"prev"===t.swipeDirection&&(y>1-l.longSwipesRatio?t.slideTo(p+_):null!==h&&y<0&&Math.abs(y)>l.longSwipesRatio?t.slideTo(h):t.slideTo(p))}else{if(!l.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||c.target!==t.navigation.nextEl&&c.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==b?b:p+_),"prev"===t.swipeDirection&&t.slideTo(null!==h?h:p)):c.target===t.navigation.nextEl?t.slideTo(p+_):t.slideTo(p)}}function wi(){const e=this,{params:t,el:a}=e;if(a&&0===a.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:l,snapGrid:o}=e,r=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const i=r&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||i?e.params.loop&&!r?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=l,e.allowSlideNext=n,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function Si(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function xi(){const e=this,{wrapperEl:t,rtlTranslate:a,enabled:n}=e;if(!n)return;let l;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();l=0===o?0:(e.translate-e.minTranslate())/o,l!==e.progress&&e.updateProgress(a?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Ti(e){const t=this;di(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}let Bi=!1;function Ii(){}const Pi=(e,t)=>{const a=qr(),{params:n,el:l,wrapperEl:o,device:r}=e,i=!!n.nested,s="on"===t?"addEventListener":"removeEventListener",c=t;l[s]("pointerdown",e.onTouchStart,{passive:!1}),a[s]("pointermove",e.onTouchMove,{passive:!1,capture:i}),a[s]("pointerup",e.onTouchEnd,{passive:!0}),a[s]("pointercancel",e.onTouchEnd,{passive:!0}),a[s]("pointerout",e.onTouchEnd,{passive:!0}),a[s]("pointerleave",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&l[s]("click",e.onClick,!0),n.cssMode&&o[s]("scroll",e.onScroll),n.updateOnWindowResize?e[c](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",wi,!0):e[c]("observerUpdate",wi,!0),l[s]("load",e.onLoad,{capture:!0})},Li=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Oi={setBreakpoint:function(){const e=this,{realIndex:t,initialized:a,params:n,el:l}=e,o=n.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const r=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!r||e.currentBreakpoint===r)return;const i=(r in o?o[r]:void 0)||e.originalParams,s=Li(e,n),c=Li(e,i),u=n.enabled;s&&!c?(l.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!s&&c&&(l.classList.add(`${n.containerModifierClass}grid`),(i.grid.fill&&"column"===i.grid.fill||!i.grid.fill&&"column"===n.grid.fill)&&l.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((t=>{if(void 0===i[t])return;const a=n[t]&&n[t].enabled,l=i[t]&&i[t].enabled;a&&!l&&e[t].disable(),!a&&l&&e[t].enable()}));const m=i.direction&&i.direction!==n.direction,g=n.loop&&(i.slidesPerView!==n.slidesPerView||m);m&&a&&e.changeDirection(),ei(e.params,i);const p=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!p?e.disable():!u&&p&&e.enable(),e.currentBreakpoint=r,e.emit("_beforeBreakpoint",i),g&&a&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",i)},getBreakpoint:function(e,t="window",a){if(!e||"container"===t&&!a)return;let n=!1;const l=Kr(),o="window"===t?l.innerHeight:a.clientHeight,r=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}}));r.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let e=0;e<r.length;e+=1){const{point:o,value:i}=r[e];"window"===t?l.matchMedia(`(min-width: ${i}px)`).matches&&(n=o):i<=a.clientWidth&&(n=o)}return n||"max"}},Ai={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Hi(e,t){return function(a={}){const n=Object.keys(a)[0],l=a[n];"object"==typeof l&&null!==l?(["navigation","pagination","scrollbar"].indexOf(n)>=0&&!0===e[n]&&(e[n]={auto:!0}),n in e&&"enabled"in l?(!0===e[n]&&(e[n]={enabled:!0}),"object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}),ei(t,a)):ei(t,a)):ei(t,a)}}const ji={eventsEmitter:pi,update:yi,translate:{getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:a,translate:n,wrapperEl:l}=this;if(t.virtualTranslate)return a?-n:n;if(t.cssMode)return n;let o=function(e,t="x"){const a=Kr();let n,l,o;const r=function(e){const t=Kr();let a;return t.getComputedStyle&&(a=t.getComputedStyle(e,null)),!a&&e.currentStyle&&(a=e.currentStyle),a||(a=e.style),a}(e);return a.WebKitCSSMatrix?(l=r.transform||r.webkitTransform,l.split(",").length>6&&(l=l.split(", ").map((e=>e.replace(",","."))).join(", ")),o=new a.WebKitCSSMatrix("none"===l?"":l)):(o=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===t&&(l=a.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(l=a.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),l||0}(l,e);return o+=this.cssOverflowAdjustment(),a&&(o=-o),o||0},setTranslate:function(e,t){const a=this,{rtlTranslate:n,params:l,wrapperEl:o,progress:r}=a;let i,s=0,c=0;a.isHorizontal()?s=n?-e:e:c=e,l.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),a.previousTranslate=a.translate,a.translate=a.isHorizontal()?s:c,l.cssMode?o[a.isHorizontal()?"scrollLeft":"scrollTop"]=a.isHorizontal()?-s:-c:l.virtualTranslate||(a.isHorizontal()?s-=a.cssOverflowAdjustment():c-=a.cssOverflowAdjustment(),o.style.transform=`translate3d(${s}px, ${c}px, 0px)`);const u=a.maxTranslate()-a.minTranslate();i=0===u?0:(e-a.minTranslate())/u,i!==r&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,a=!0,n=!0,l){const o=this,{params:r,wrapperEl:i}=o;if(o.animating&&r.preventInteractionOnTransition)return!1;const s=o.minTranslate(),c=o.maxTranslate();let u;if(u=n&&e>s?s:n&&e<c?c:e,o.updateProgress(u),r.cssMode){const e=o.isHorizontal();if(0===t)i[e?"scrollLeft":"scrollTop"]=-u;else{if(!o.support.smoothScroll)return ai({swiper:o,targetPosition:-u,side:e?"left":"top"}),!0;i.scrollTo({[e?"left":"top"]:-u,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(u),a&&(o.emit("beforeTransitionStart",t,l),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(u),a&&(o.emit("beforeTransitionStart",t,l),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,a&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const a=this;a.params.cssMode||(a.wrapperEl.style.transitionDuration=`${e}ms`),a.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const a=this,{params:n}=a;n.cssMode||(n.autoHeight&&a.updateAutoHeight(),_i({swiper:a,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){const a=this,{params:n}=a;a.animating=!1,n.cssMode||(a.setTransition(0),_i({swiper:a,runCallbacks:e,direction:t,step:"End"}))}},slide:vi,loop:fi,grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const a="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),a.style.cursor="move",a.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}},events:{attachEvents:function(){const e=this,t=qr(),{params:a}=e;e.onTouchStart=ki.bind(e),e.onTouchMove=Ci.bind(e),e.onTouchEnd=Ei.bind(e),a.cssMode&&(e.onScroll=xi.bind(e)),e.onClick=Si.bind(e),e.onLoad=Ti.bind(e),Bi||(t.addEventListener("touchstart",Ii),Bi=!0),Pi(e,"on")},detachEvents:function(){Pi(this,"off")}},breakpoints:Oi,checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:a}=e,{slidesOffsetBefore:n}=a;if(n){const t=e.slides.length-1,a=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*n;e.isLocked=e.size>a}else e.isLocked=1===e.snapGrid.length;!0===a.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===a.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:a,rtl:n,el:l,device:o}=e,r=function(e,t){const a=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((n=>{e[n]&&a.push(t+n)})):"string"==typeof e&&a.push(t+e)})),a}(["initialized",a.direction,{"free-mode":e.params.freeMode&&a.freeMode.enabled},{autoheight:a.autoHeight},{rtl:n},{grid:a.grid&&a.grid.rows>1},{"grid-column":a.grid&&a.grid.rows>1&&"column"===a.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":a.cssMode},{centered:a.cssMode&&a.centeredSlides},{"watch-progress":a.watchSlidesProgress}],a.containerModifierClass);t.push(...r),l.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},Ni={};class Ri{constructor(...e){let t,a;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?a=e[0]:[t,a]=e,a||(a={}),a=ei({},a),t&&!a.el&&(a.el=t);const n=qr();if(a.el&&"string"==typeof a.el&&n.querySelectorAll(a.el).length>1){const e=[];return n.querySelectorAll(a.el).forEach((t=>{const n=ei({},a,{el:t});e.push(new Ri(n))})),e}const l=this;l.__swiper__=!0,l.support=gi(),l.device=function(e={}){return ui||(ui=function({userAgent:e}={}){const t=gi(),a=Kr(),n=a.navigator.platform,l=e||a.navigator.userAgent,o={ios:!1,android:!1},r=a.screen.width,i=a.screen.height,s=l.match(/(Android);?[\s\/]+([\d.]+)?/);let c=l.match(/(iPad).*OS\s([\d_]+)/);const u=l.match(/(iPod)(.*OS\s([\d_]+))?/),m=!c&&l.match(/(iPhone\sOS|iOS)\s([\d_]+)/),g="Win32"===n;let p="MacIntel"===n;return!c&&p&&t.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${r}x${i}`)>=0&&(c=l.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),s&&!g&&(o.os="android",o.android=!0),(c||m||u)&&(o.os="ios",o.ios=!0),o}(e)),ui}({userAgent:a.userAgent}),l.browser=(mi||(mi=function(){const e=Kr();let t=!1;function a(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(a()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[e,n]=a.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));t=e<16||16===e&&n<2}}return{isSafari:t||a(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),mi),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],a.modules&&Array.isArray(a.modules)&&l.modules.push(...a.modules);const o={};l.modules.forEach((e=>{e({params:a,swiper:l,extendParams:Hi(a,o),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));const r=ei({},Ai,o);return l.params=ei({},r,Ni,a),l.originalParams=ei({},l.params),l.passedParams=ei({},a),l.params&&l.params.on&&Object.keys(l.params.on).forEach((e=>{l.on(e,l.params.on[e])})),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===l.params.direction,isVertical:()=>"vertical"===l.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getSlideIndex(e){const{slidesEl:t,params:a}=this,n=ri(ni(t,`.${a.slideClass}, swiper-slide`)[0]);return ri(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter((t=>1*t.getAttribute("data-swiper-slide-index")===e))[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=ni(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const a=this;e=Math.min(Math.max(e,0),1);const n=a.minTranslate(),l=(a.maxTranslate()-n)*e+n;a.translateTo(l,void 0===t?0:t),a.updateActiveIndex(),a.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((a=>{const n=e.getSlideClasses(a);t.push({slideEl:a,classNames:n}),e.emit("_slideClass",a,n)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){const{params:a,slides:n,slidesGrid:l,slidesSizesGrid:o,size:r,activeIndex:i}=this;let s=1;if(a.centeredSlides){let e,t=n[i]?n[i].swiperSlideSize:0;for(let a=i+1;a<n.length;a+=1)n[a]&&!e&&(t+=n[a].swiperSlideSize,s+=1,t>r&&(e=!0));for(let a=i-1;a>=0;a-=1)n[a]&&!e&&(t+=n[a].swiperSlideSize,s+=1,t>r&&(e=!0))}else if("current"===e)for(let e=i+1;e<n.length;e+=1)(t?l[e]+o[e]-l[i]<r:l[e]-l[i]<r)&&(s+=1);else for(let e=i-1;e>=0;e-=1)l[i]-l[e]<r&&(s+=1);return s}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:a}=e;function n(){const t=e.rtlTranslate?-1*e.translate:e.translate,a=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let l;if(a.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&di(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),a.freeMode&&a.freeMode.enabled&&!a.cssMode)n(),a.autoHeight&&e.updateAutoHeight();else{if(("auto"===a.slidesPerView||a.slidesPerView>1)&&e.isEnd&&!a.centeredSlides){const t=e.virtual&&a.virtual.enabled?e.virtual.slides:e.slides;l=e.slideTo(t.length-1,0,!1,!0)}else l=e.slideTo(e.activeIndex,0,!1,!0);l||n()}a.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const a=this,n=a.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(a.el.classList.remove(`${a.params.containerModifierClass}${n}`),a.el.classList.add(`${a.params.containerModifierClass}${e}`),a.emitContainerClasses(),a.params.direction=e,a.slides.forEach((t=>{"vertical"===e?t.style.width="":t.style.height=""})),a.emit("changeDirection"),t&&a.update()),a}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let a=e||t.params.el;if("string"==typeof a&&(a=document.querySelector(a)),!a)return!1;a.swiper=t,a.shadowEl&&(t.isElement=!0);const n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=a&&a.shadowRoot&&a.shadowRoot.querySelector?a.shadowRoot.querySelector(n()):ni(a,n())[0];return!l&&t.params.createElements&&(l=li("div",t.params.wrapperClass),a.append(l),ni(a,`.${t.params.slideClass}`).forEach((e=>{l.append(e)}))),Object.assign(t,{el:a,wrapperEl:l,slidesEl:t.isElement?a:l,mounted:!0,rtl:"rtl"===a.dir.toLowerCase()||"rtl"===oi(a,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===a.dir.toLowerCase()||"rtl"===oi(a,"direction")),wrongRTL:"-webkit-box"===oi(l,"display")}),!0}init(e){const t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach((e=>{e.complete?di(t,e):e.addEventListener("load",(e=>{di(t,e.target)}))})),hi(t),t.initialized=!0,hi(t),t.emit("init"),t.emit("afterInit")),t}destroy(e=!0,t=!0){const a=this,{params:n,el:l,wrapperEl:o,slides:r}=a;return void 0===a.params||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),n.loop&&a.loopDestroy(),t&&(a.removeClasses(),l.removeAttribute("style"),o.removeAttribute("style"),r&&r.length&&r.forEach((e=>{e.classList.remove(n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),a.emit("destroy"),Object.keys(a.eventsListeners).forEach((e=>{a.off(e)})),!1!==e&&(a.el.swiper=null,function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))}(a)),a.destroyed=!0),null}static extendDefaults(e){ei(Ni,e)}static get extendedDefaults(){return Ni}static get defaults(){return Ai}static installModule(e){Ri.prototype.__modules__||(Ri.prototype.__modules__=[]);const t=Ri.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach((e=>Ri.installModule(e))),Ri):(Ri.installModule(e),Ri)}}Object.keys(ji).forEach((e=>{Object.keys(ji[e]).forEach((t=>{Ri.prototype[t]=ji[e][t]}))})),Ri.use([function({swiper:e,on:t,emit:a}){const n=Kr();let l=null,o=null;const r=()=>{e&&!e.destroyed&&e.initialized&&(a("beforeResize"),a("resize"))},i=()=>{e&&!e.destroyed&&e.initialized&&a("orientationchange")};t("init",(()=>{e.params.resizeObserver&&void 0!==n.ResizeObserver?e&&!e.destroyed&&e.initialized&&(l=new ResizeObserver((t=>{o=n.requestAnimationFrame((()=>{const{width:a,height:n}=e;let l=a,o=n;t.forEach((({contentBoxSize:t,contentRect:a,target:n})=>{n&&n!==e.el||(l=a?a.width:(t[0]||t).inlineSize,o=a?a.height:(t[0]||t).blockSize)})),l===a&&o===n||r()}))})),l.observe(e.el)):(n.addEventListener("resize",r),n.addEventListener("orientationchange",i))})),t("destroy",(()=>{o&&n.cancelAnimationFrame(o),l&&l.unobserve&&e.el&&(l.unobserve(e.el),l=null),n.removeEventListener("resize",r),n.removeEventListener("orientationchange",i)}))},function({swiper:e,extendParams:t,on:a,emit:n}){const l=[],o=Kr(),r=(t,a={})=>{const r=new(o.MutationObserver||o.WebkitMutationObserver)((t=>{if(e.__preventObserver__)return;if(1===t.length)return void n("observerUpdate",t[0]);const a=function(){n("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(a):o.setTimeout(a,0)}));r.observe(t,{attributes:void 0===a.attributes||a.attributes,childList:void 0===a.childList||a.childList,characterData:void 0===a.characterData||a.characterData}),l.push(r)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",(()=>{if(e.params.observer){if(e.params.observeParents){const t=ii(e.el);for(let e=0;e<t.length;e+=1)r(t[e])}r(e.el,{childList:e.params.observeSlideChildren}),r(e.wrapperEl,{attributes:!1})}})),a("destroy",(()=>{l.forEach((e=>{e.disconnect()})),l.splice(0,l.length)}))}]);var Vi=Ri;function zi(e,t,a,n){return e.params.createElements&&Object.keys(n).forEach((l=>{if(!a[l]&&!0===a.auto){let o=ni(e.el,`.${n[l]}`)[0];o||(o=li("div",n[l]),o.className=n[l],e.el.append(o)),a[l]=o,t[l]=o}})),a}function Fi({swiper:e,extendParams:t,on:a,emit:n}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const l=e=>(Array.isArray(e)||(e=[e].filter((e=>!!e))),e);function o(t){let a;return t&&"string"==typeof t&&e.isElement&&(a=e.el.shadowRoot.querySelector(t),a)?a:(t&&("string"==typeof t&&(a=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&a.length>1&&1===e.el.querySelectorAll(t).length&&(a=e.el.querySelector(t))),t&&!a?t:a)}function r(t,a){const n=e.params.navigation;(t=l(t)).forEach((t=>{t&&(t.classList[a?"add":"remove"](...n.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=a),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](n.lockClass))}))}function i(){const{nextEl:t,prevEl:a}=e.navigation;if(e.params.loop)return r(a,!1),void r(t,!1);r(a,e.isBeginning&&!e.params.rewind),r(t,e.isEnd&&!e.params.rewind)}function s(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),n("navigationNext"))}function u(){const t=e.params.navigation;if(e.params.navigation=zi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let a=o(t.nextEl),n=o(t.prevEl);Object.assign(e.navigation,{nextEl:a,prevEl:n}),a=l(a),n=l(n);const r=(a,n)=>{a&&a.addEventListener("click","next"===n?c:s),!e.enabled&&a&&a.classList.add(...t.lockClass.split(" "))};a.forEach((e=>r(e,"next"))),n.forEach((e=>r(e,"prev")))}function m(){let{nextEl:t,prevEl:a}=e.navigation;t=l(t),a=l(a);const n=(t,a)=>{t.removeEventListener("click","next"===a?c:s),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach((e=>n(e,"next"))),a.forEach((e=>n(e,"prev")))}a("init",(()=>{!1===e.params.navigation.enabled?g():(u(),i())})),a("toEdge fromEdge lock unlock",(()=>{i()})),a("destroy",(()=>{m()})),a("enable disable",(()=>{let{nextEl:t,prevEl:a}=e.navigation;t=l(t),a=l(a),[...t,...a].filter((e=>!!e)).forEach((t=>t.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass)))})),a("click",((t,a)=>{let{nextEl:o,prevEl:r}=e.navigation;o=l(o),r=l(r);const i=a.target;if(e.params.navigation.hideOnClick&&!r.includes(i)&&!o.includes(i)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===i||e.pagination.el.contains(i)))return;let t;o.length?t=o[0].classList.contains(e.params.navigation.hiddenClass):r.length&&(t=r[0].classList.contains(e.params.navigation.hiddenClass)),n(!0===t?"navigationShow":"navigationHide"),[...o,...r].filter((e=>!!e)).forEach((t=>t.classList.toggle(e.params.navigation.hiddenClass)))}}));const g=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),m()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),i()},disable:g,update:i,init:u,destroy:m})}function Mi(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Di({swiper:e,extendParams:t,on:a,emit:n}){const l="swiper-pagination";let o;t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${l}-bullet`,bulletActiveClass:`${l}-bullet-active`,modifierClass:`${l}-`,currentClass:`${l}-current`,totalClass:`${l}-total`,hiddenClass:`${l}-hidden`,progressbarFillClass:`${l}-progressbar-fill`,progressbarOppositeClass:`${l}-progressbar-opposite`,clickableClass:`${l}-clickable`,lockClass:`${l}-lock`,horizontalClass:`${l}-horizontal`,verticalClass:`${l}-vertical`,paginationDisabledClass:`${l}-disabled`}}),e.pagination={el:null,bullets:[]};let r=0;const i=e=>(Array.isArray(e)||(e=[e].filter((e=>!!e))),e);function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(t,a){const{bulletActiveClass:n}=e.params.pagination;t&&(t=t[("prev"===a?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${n}-${a}`),(t=t[("prev"===a?"previous":"next")+"ElementSibling"])&&t.classList.add(`${n}-${a}-${a}`))}function u(t){const a=t.target.closest(Mi(e.params.pagination.bulletClass));if(!a)return;t.preventDefault();const n=ri(a)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===n)return;const t=e.getSlideIndexByData(n),a=e.getSlideIndexByData(e.realIndex);t>e.slides.length-e.loopedSlides&&e.loopFix({direction:t>a?"next":"prev",activeSlideIndex:t,slideTo:!1}),e.slideToLoop(n)}else e.slideTo(n)}function m(){const t=e.rtl,a=e.params.pagination;if(s())return;let l,u,m=e.pagination.el;m=i(m);const g=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(g/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,l=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(l=e.snapIndex,u=e.previousSnapIndex):(u=e.previousIndex||0,l=e.activeIndex||0),"bullets"===a.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const n=e.pagination.bullets;let i,s,g;if(a.dynamicBullets&&(o=si(n[0],e.isHorizontal()?"width":"height",!0),m.forEach((t=>{t.style[e.isHorizontal()?"width":"height"]=o*(a.dynamicMainBullets+4)+"px"})),a.dynamicMainBullets>1&&void 0!==u&&(r+=l-(u||0),r>a.dynamicMainBullets-1?r=a.dynamicMainBullets-1:r<0&&(r=0)),i=Math.max(l-r,0),s=i+(Math.min(n.length,a.dynamicMainBullets)-1),g=(s+i)/2),n.forEach((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${a.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),m.length>1)n.forEach((t=>{const n=ri(t);n===l?t.classList.add(...a.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),a.dynamicBullets&&(n>=i&&n<=s&&t.classList.add(...`${a.bulletActiveClass}-main`.split(" ")),n===i&&c(t,"prev"),n===s&&c(t,"next"))}));else{const t=n[l];if(t&&t.classList.add(...a.bulletActiveClass.split(" ")),e.isElement&&n.forEach(((e,t)=>{e.setAttribute("part",t===l?"bullet-active":"bullet")})),a.dynamicBullets){const e=n[i],t=n[s];for(let e=i;e<=s;e+=1)n[e]&&n[e].classList.add(...`${a.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(a.dynamicBullets){const l=Math.min(n.length,a.dynamicMainBullets+4),r=(o*l-o)/2-g*o,i=t?"right":"left";n.forEach((t=>{t.style[e.isHorizontal()?i:"top"]=`${r}px`}))}}m.forEach(((t,o)=>{if("fraction"===a.type&&(t.querySelectorAll(Mi(a.currentClass)).forEach((e=>{e.textContent=a.formatFractionCurrent(l+1)})),t.querySelectorAll(Mi(a.totalClass)).forEach((e=>{e.textContent=a.formatFractionTotal(p)}))),"progressbar"===a.type){let n;n=a.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const o=(l+1)/p;let r=1,i=1;"horizontal"===n?r=o:i=o,t.querySelectorAll(Mi(a.progressbarFillClass)).forEach((t=>{t.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${i})`,t.style.transitionDuration=`${e.params.speed}ms`}))}"custom"===a.type&&a.renderCustom?(t.innerHTML=a.renderCustom(e,l+1,p),0===o&&n("paginationRender",t)):(0===o&&n("paginationRender",t),n("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](a.lockClass)}))}function g(){const t=e.params.pagination;if(s())return;const a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let l=e.pagination.el;l=i(l);let o="";if("bullets"===t.type){let n=e.params.loop?Math.ceil(a/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&n>a&&(n=a);for(let a=0;a<n;a+=1)t.renderBullet?o+=t.renderBullet.call(e,a,t.bulletClass):o+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],l.forEach((a=>{"custom"!==t.type&&(a.innerHTML=o||""),"bullets"===t.type&&e.pagination.bullets.push(...a.querySelectorAll(Mi(t.bulletClass)))})),"custom"!==t.type&&n("paginationRender",l[0])}function p(){e.params.pagination=zi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let a;"string"==typeof t.el&&e.isElement&&(a=e.el.shadowRoot.querySelector(t.el)),a||"string"!=typeof t.el||(a=[...document.querySelectorAll(t.el)]),a||(a=t.el),a&&0!==a.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(a)&&a.length>1&&(a=[...e.el.querySelectorAll(t.el)],a.length>1&&(a=a.filter((t=>ii(t,".swiper")[0]===e.el))[0])),Array.isArray(a)&&1===a.length&&(a=a[0]),Object.assign(e.pagination,{el:a}),a=i(a),a.forEach((a=>{"bullets"===t.type&&t.clickable&&a.classList.add(t.clickableClass),a.classList.add(t.modifierClass+t.type),a.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(a.classList.add(`${t.modifierClass}${t.type}-dynamic`),r=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&a.classList.add(t.progressbarOppositeClass),t.clickable&&a.addEventListener("click",u),e.enabled||a.classList.add(t.lockClass)})))}function d(){const t=e.params.pagination;if(s())return;let a=e.pagination.el;a&&(a=i(a),a.forEach((a=>{a.classList.remove(t.hiddenClass),a.classList.remove(t.modifierClass+t.type),a.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&a.removeEventListener("click",u)}))),e.pagination.bullets&&e.pagination.bullets.forEach((e=>e.classList.remove(...t.bulletActiveClass.split(" "))))}a("changeDirection",(()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:a}=e.pagination;a=i(a),a.forEach((a=>{a.classList.remove(t.horizontalClass,t.verticalClass),a.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)}))})),a("init",(()=>{!1===e.params.pagination.enabled?b():(p(),g(),m())})),a("activeIndexChange",(()=>{void 0===e.snapIndex&&m()})),a("snapIndexChange",(()=>{m()})),a("snapGridLengthChange",(()=>{g(),m()})),a("destroy",(()=>{d()})),a("enable disable",(()=>{let{el:t}=e.pagination;t&&(t=i(t),t.forEach((t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass))))})),a("lock unlock",(()=>{m()})),a("click",((t,a)=>{const l=a.target;let{el:o}=e.pagination;if(Array.isArray(o)||(o=[o].filter((e=>!!e))),e.params.pagination.el&&e.params.pagination.hideOnClick&&o&&o.length>0&&!l.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&l===e.navigation.nextEl||e.navigation.prevEl&&l===e.navigation.prevEl))return;const t=o[0].classList.contains(e.params.pagination.hiddenClass);n(!0===t?"paginationShow":"paginationHide"),o.forEach((t=>t.classList.toggle(e.params.pagination.hiddenClass)))}}));const b=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=i(t),t.forEach((t=>t.classList.add(e.params.pagination.paginationDisabledClass)))),d()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=i(t),t.forEach((t=>t.classList.remove(e.params.pagination.paginationDisabledClass)))),p(),g(),m()},disable:b,render:g,update:m,init:p,destroy:d})}function Wi(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function $i(e,t){const a=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>a.indexOf(e)<0)).forEach((a=>{void 0===e[a]?e[a]=t[a]:Wi(t[a])&&Wi(e[a])&&Object.keys(t[a]).length>0?t[a].__swiper__?e[a]=t[a]:$i(e[a],t[a]):e[a]=t[a]}))}function Gi(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function Ui(e={}){return e.pagination&&void 0===e.pagination.el}function Zi(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function qi(e=""){const t=e.split(" ").map((e=>e.trim())).filter((e=>!!e)),a=[];return t.forEach((e=>{a.indexOf(e)<0&&a.push(e)})),a.join(" ")}function Ji(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const Ki=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Qi(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Xi(e){const t=[];return ye.Children.toArray(e).forEach((e=>{Qi(e)?t.push(e):e.props&&e.props.children&&Xi(e.props.children).forEach((e=>t.push(e)))})),t}function Yi(e){const t=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return ye.Children.toArray(e).forEach((e=>{if(Qi(e))t.push(e);else if(e.props&&e.props.slot&&a[e.props.slot])a[e.props.slot].push(e);else if(e.props&&e.props.children){const n=Xi(e.props.children);n.length>0?n.forEach((e=>t.push(e))):a["container-end"].push(e)}else a["container-end"].push(e)})),{slides:t,slots:a}}function es(e,t){return"undefined"==typeof window?(0,ye.useEffect)(e,t):(0,ye.useLayoutEffect)(e,t)}const ts=(0,ye.createContext)(null),as=(0,ye.createContext)(null);function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ns.apply(this,arguments)}const ls=(0,ye.forwardRef)((function(e,t){let{className:a,tag:n="div",wrapperTag:l="div",children:o,onSwiper:r,...i}=void 0===e?{}:e,s=!1;const[c,u]=(0,ye.useState)("swiper"),[m,g]=(0,ye.useState)(null),[p,d]=(0,ye.useState)(!1),b=(0,ye.useRef)(!1),h=(0,ye.useRef)(null),y=(0,ye.useRef)(null),_=(0,ye.useRef)(null),v=(0,ye.useRef)(null),f=(0,ye.useRef)(null),k=(0,ye.useRef)(null),C=(0,ye.useRef)(null),E=(0,ye.useRef)(null),{params:w,passedParams:S,rest:x,events:T}=function(e={},t=!0){const a={on:{}},n={},l={};$i(a,Vi.defaults),$i(a,Vi.extendedDefaults),a._emitClasses=!0,a.init=!1;const o={},r=Ki.map((e=>e.replace(/_/,""))),i=Object.assign({},e);return Object.keys(i).forEach((i=>{void 0!==e[i]&&(r.indexOf(i)>=0?Wi(e[i])?(a[i]={},l[i]={},$i(a[i],e[i]),$i(l[i],e[i])):(a[i]=e[i],l[i]=e[i]):0===i.search(/on[A-Z]/)&&"function"==typeof e[i]?t?n[`${i[2].toLowerCase()}${i.substr(3)}`]=e[i]:a.on[`${i[2].toLowerCase()}${i.substr(3)}`]=e[i]:o[i]=e[i])})),["navigation","pagination","scrollbar"].forEach((e=>{!0===a[e]&&(a[e]={}),!1===a[e]&&delete a[e]})),{params:a,passedParams:l,rest:o,events:n}}(i),{slides:B,slots:I}=Yi(o),P=()=>{d(!p)};Object.assign(w.on,{_containerClasses(e,t){u(t)}});const L=()=>{Object.assign(w.on,T),s=!0;const e={...w};if(delete e.wrapperClass,y.current=new Vi(e),y.current.virtual&&y.current.params.virtual.enabled){y.current.virtual.slides=B;const e={cache:!1,slides:B,renderExternal:g,renderExternalUpdate:!1};$i(y.current.params.virtual,e),$i(y.current.originalParams.virtual,e)}};return h.current||L(),y.current&&y.current.on("_beforeBreakpoint",P),(0,ye.useEffect)((()=>()=>{y.current&&y.current.off("_beforeBreakpoint",P)})),(0,ye.useEffect)((()=>{!b.current&&y.current&&(y.current.emitSlidesClasses(),b.current=!0)})),es((()=>{if(t&&(t.current=h.current),h.current)return y.current.destroyed&&L(),function({el:e,nextEl:t,prevEl:a,paginationEl:n,scrollbarEl:l,swiper:o},r){Gi(r)&&t&&a&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=a,o.originalParams.navigation.prevEl=a),Ui(r)&&n&&(o.params.pagination.el=n,o.originalParams.pagination.el=n),Zi(r)&&l&&(o.params.scrollbar.el=l,o.originalParams.scrollbar.el=l),o.init(e)}({el:h.current,nextEl:f.current,prevEl:k.current,paginationEl:C.current,scrollbarEl:E.current,swiper:y.current},w),r&&r(y.current),()=>{y.current&&!y.current.destroyed&&y.current.destroy(!0,!1)}}),[]),es((()=>{!s&&T&&y.current&&Object.keys(T).forEach((e=>{y.current.on(e,T[e])}));const e=function(e,t,a,n,l){const o=[];if(!t)return o;const r=e=>{o.indexOf(e)<0&&o.push(e)};if(a&&n){const e=n.map(l),t=a.map(l);e.join("")!==t.join("")&&r("children"),n.length!==a.length&&r("children")}return Ki.filter((e=>"_"===e[0])).map((e=>e.replace(/_/,""))).forEach((a=>{if(a in e&&a in t)if(Wi(e[a])&&Wi(t[a])){const n=Object.keys(e[a]),l=Object.keys(t[a]);n.length!==l.length?r(a):(n.forEach((n=>{e[a][n]!==t[a][n]&&r(a)})),l.forEach((n=>{e[a][n]!==t[a][n]&&r(a)})))}else e[a]!==t[a]&&r(a)})),o}(S,_.current,B,v.current,(e=>e.key));return _.current=S,v.current=B,e.length&&y.current&&!y.current.destroyed&&function({swiper:e,slides:t,passedParams:a,changedParams:n,nextEl:l,prevEl:o,scrollbarEl:r,paginationEl:i}){const s=n.filter((e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e)),{params:c,pagination:u,navigation:m,scrollbar:g,virtual:p,thumbs:d}=e;let b,h,y,_,v,f,k,C;n.includes("thumbs")&&a.thumbs&&a.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(b=!0),n.includes("controller")&&a.controller&&a.controller.control&&c.controller&&!c.controller.control&&(h=!0),n.includes("pagination")&&a.pagination&&(a.pagination.el||i)&&(c.pagination||!1===c.pagination)&&u&&!u.el&&(y=!0),n.includes("scrollbar")&&a.scrollbar&&(a.scrollbar.el||r)&&(c.scrollbar||!1===c.scrollbar)&&g&&!g.el&&(_=!0),n.includes("navigation")&&a.navigation&&(a.navigation.prevEl||o)&&(a.navigation.nextEl||l)&&(c.navigation||!1===c.navigation)&&m&&!m.prevEl&&!m.nextEl&&(v=!0);const E=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),c[t].prevEl=void 0,c[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),c[t].el=void 0,e[t].el=void 0))};n.includes("loop")&&e.isElement&&(c.loop&&!a.loop?f=!0:!c.loop&&a.loop?k=!0:C=!0),s.forEach((e=>{if(Wi(c[e])&&Wi(a[e]))$i(c[e],a[e]),"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e||!("enabled"in a[e])||a[e].enabled||E(e);else{const t=a[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?c[e]=a[e]:!1===t&&E(e)}})),s.includes("controller")&&!h&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),n.includes("children")&&t&&p&&c.virtual.enabled&&(p.slides=t,p.update(!0)),n.includes("children")&&t&&c.loop&&(C=!0),b&&d.init()&&d.update(!0),h&&(e.controller.control=c.controller.control),y&&(!e.isElement||i&&"string"!=typeof i||((i=document.createElement("div")).classList.add("swiper-pagination"),e.el.shadowEl.appendChild(i)),i&&(c.pagination.el=i),u.init(),u.render(),u.update()),_&&(!e.isElement||r&&"string"!=typeof r||((r=document.createElement("div")).classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(r)),r&&(c.scrollbar.el=r),g.init(),g.updateSize(),g.setTranslate()),v&&(e.isElement&&(l&&"string"!=typeof l||((l=document.createElement("div")).classList.add("swiper-button-next"),e.el.shadowEl.appendChild(l)),o&&"string"!=typeof o||((o=document.createElement("div")).classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(o))),l&&(c.navigation.nextEl=l),o&&(c.navigation.prevEl=o),m.init(),m.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=a.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=a.allowSlidePrev),n.includes("direction")&&e.changeDirection(a.direction,!1),(f||C)&&e.loopDestroy(),(k||C)&&e.loopCreate(),e.update()}({swiper:y.current,slides:B,passedParams:S,changedParams:e,nextEl:f.current,prevEl:k.current,scrollbarEl:E.current,paginationEl:C.current}),()=>{T&&y.current&&Object.keys(T).forEach((e=>{y.current.off(e,T[e])}))}})),es((()=>{var e;!(e=y.current)||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())}),[m]),ye.createElement(n,ns({ref:h,className:qi(`${c}${a?` ${a}`:""}`)},x),ye.createElement(as.Provider,{value:y.current},I["container-start"],ye.createElement(l,{className:Ji(w.wrapperClass)},I["wrapper-start"],w.virtual?function(e,t,a){if(!a)return null;const n=e=>{let a=e;return e<0?a=t.length+e:a>=t.length&&(a-=t.length),a},l=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${a.offset}px`}:{top:`${a.offset}px`},{from:o,to:r}=a,i=e.params.loop?-t.length:0,s=e.params.loop?2*t.length:t.length,c=[];for(let e=i;e<s;e+=1)e>=o&&e<=r&&c.push(t[n(e)]);return c.map(((t,a)=>ye.cloneElement(t,{swiper:e,style:l,key:`slide-${a}`})))}(y.current,B,m):B.map(((e,t)=>ye.cloneElement(e,{swiper:y.current,swiperSlideIndex:t}))),I["wrapper-end"]),Gi(w)&&ye.createElement(ye.Fragment,null,ye.createElement("div",{ref:k,className:"swiper-button-prev"}),ye.createElement("div",{ref:f,className:"swiper-button-next"})),Zi(w)&&ye.createElement("div",{ref:E,className:"swiper-scrollbar"}),Ui(w)&&ye.createElement("div",{ref:C,className:"swiper-pagination"}),I["container-end"]))}));function os(){return os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},os.apply(this,arguments)}ls.displayName="Swiper";const rs=(0,ye.forwardRef)((function(e,t){let{tag:a="div",children:n,className:l="",swiper:o,zoom:r,lazy:i,virtualIndex:s,swiperSlideIndex:c,...u}=void 0===e?{}:e;const m=(0,ye.useRef)(null),[g,p]=(0,ye.useState)("swiper-slide"),[d,b]=(0,ye.useState)(!1);function h(e,t,a){t===m.current&&p(a)}es((()=>{if(void 0!==c&&(m.current.swiperSlideIndex=c),t&&(t.current=m.current),m.current&&o){if(!o.destroyed)return o.on("_slideClass",h),()=>{o&&o.off("_slideClass",h)};"swiper-slide"!==g&&p("swiper-slide")}})),es((()=>{o&&m.current&&!o.destroyed&&p(o.getSlideClasses(m.current))}),[o]);const y={isActive:g.indexOf("swiper-slide-active")>=0,isVisible:g.indexOf("swiper-slide-visible")>=0,isPrev:g.indexOf("swiper-slide-prev")>=0,isNext:g.indexOf("swiper-slide-next")>=0},_=()=>"function"==typeof n?n(y):n;return ye.createElement(a,os({ref:m,className:qi(`${g}${l?` ${l}`:""}`),"data-swiper-slide-index":s,onLoad:()=>{b(!0)}},u),r&&ye.createElement(ts.Provider,{value:y},ye.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof r?r:void 0},_(),i&&!d&&ye.createElement("div",{className:"swiper-lazy-preloader"}))),!r&&ye.createElement(ts.Provider,{value:y},_(),i&&!d&&ye.createElement("div",{className:"swiper-lazy-preloader"})))}));function is(){return is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},is.apply(this,arguments)}rs.displayName="SwiperSlide";const ss=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function cs({gtmClassName:e}){const t=(0,we.useInnerBlocksProps)({className:fe()("wp-block-post",e)},{template:ss,__unstableDisableLayoutClassNames:!0});return _e().createElement("li",t)}const us=(0,Ce.memo)((function({blocks:e,blockContextId:t,isHidden:a,setActiveBlockContextId:n,gtmClassName:l}){const o=(0,we.__experimentalUseBlockPreview)({blocks:e,props:{className:fe()("wp-block-post",l)}}),r=()=>{n(t)},i={display:a?"none":void 0};return _e().createElement("li",is({},o,{tabIndex:0,role:"button",onClick:r,onKeyPress:r,style:i}))}));function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ms.apply(this,arguments)}var gs=(0,Se.createHigherOrderComponent)((e=>t=>{const{attributes:a,setAttributes:n}=t,l={modules:[Fi,Di],spaceBetween:0,slidesPerView:1,...ds(a),loop:!1,autoplay:!1,simulateTouch:!1,watchSlidesProgress:!0,onSwiper:e=>{r(e)}},[o,r]=(0,Ce.useState)(0);return(0,Ce.useEffect)((()=>{o&&function(e,t){const a=ds(t);!0===a.navigation&&(a.createElements=!0,a.navigation={...ys,auto:!0}),!0===a.pagination&&(a.createElements=!0,a.pagination={...hs,auto:!0}),e.originalParams={...e.originalParams,...(0,Te.cloneDeep)(a)},e.params={...e.params,...(0,Te.cloneDeep)(a)},e.currentBreakpoint&&e.params.breakpoints[e.currentBreakpoint]&&(e.params={...e.params,...e.params.breakpoints[e.currentBreakpoint]}),e.update(),e.navigation&&(e.navigation.init(),e.navigation.update()),e.pagination&&(e.pagination.init(),e.pagination.render(),e.pagination.update())}(o,a)}),[a]),_e().createElement(Ce.Fragment,null,_e().createElement(e,ms({},t,{swiperProps:l})),_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Slider","gutenmate"),initialOpen:!0},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable auto slides per view","gutenmate"),checked:a.enableAutoSlidesPerView,onChange:e=>{n({enableAutoSlidesPerView:e})}}),!a.enableAutoSlidesPerView&&_e().createElement($t.x,{label:(0,be.__)("Slides per view","gutenmate"),value:a.slidesPerView,min:1,max:10,onChange:e=>{n({slidesPerView:e})},enableResponsive:!0}),_e().createElement(Ee.RangeControl,{label:(0,be.__)("Posts per slide","gutenmate"),help:(0,be.__)("The number of posts shown on a single slide.","gutenmate"),value:a.postsPerSlide,onChange:e=>{n({postsPerSlide:e})},min:1,max:3,step:1,allowReset:!1}),(0,Le.isPartialBlockStyle)("gtm-multiposts-",a.className)&&(a.postsPerSlide??1)<2&&_e().createElement("div",{className:"gtm-panel-body-notice"},_e().createElement(Ee.Tip,null,(0,be.__)("The selected style is support multiposts per slide. You should increase the number of Posts per slide for a better layout","gutenmate"))),a.enableAutoSlidesPerView&&_e().createElement(Ke.GZ,{label:(0,be.__)("Slide width","gutenmate"),value:a.slideWidth,max:"1000",onChange:e=>{n({slideWidth:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Slide gap","gutenmate"),value:a.slideGap,pxUnitOnly:!0,min:"0",max:"200",onChange:e=>{n({slideGap:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable infinite loop","gutenmate"),help:(0,be.__)("This option will be applied on frontend","gutenmate"),checked:a.enableLoop,onChange:e=>{n({enableLoop:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable autoplay","gutenmate"),help:(0,be.__)("This option will be applied on frontend","gutenmate"),checked:a.enableAutoplay,onChange:e=>{n({enableAutoplay:e})}}),a.enableAutoplay&&_e().createElement(Ee.RangeControl,{label:(0,be.__)("Autoplay delay","gutenmate"),value:a.autoplayDelay,onChange:e=>{n({autoplayDelay:e})},min:1e3,max:1e4,step:100,required:!0}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable center slides","gutenmate"),checked:a.enableCenteredSlides,onChange:e=>{n({enableCenteredSlides:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Arrow Navigation","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable arrow navigation","gutenmate"),checked:a.enableArrow,onChange:e=>{n({enableArrow:e})}}),a.enableArrow&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.dO,{label:(0,be.__)("Arrow width","gutenmate"),value:a.arrowWidth,max:"100",onChange:e=>{n({arrowWidth:e})}}),_e().createElement(Ke.dO,{label:(0,be.__)("Arrow height","gutenmate"),value:a.arrowHeight,max:"100",onChange:e=>{n({arrowHeight:e})}}),_e().createElement(Ke.dO,{label:(0,be.__)("Arrow size","gutenmate"),value:a.arrowSize,max:"60",onChange:e=>{n({arrowSize:e})}}),_e().createElement(Ke.dO,{label:(0,be.__)("X-Axis position","gutenmate"),value:a.arrowXPosition,min:"0",max:"100",onChange:e=>{n({arrowXPosition:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:a.arrowRadius,onChange:e=>{n({arrowRadius:e})}}),_e().createElement(qe.Z,{label:(0,be.__)("Shadow","gutenmate"),value:a.arrowShadow,onChange:e=>{n({arrowShadow:e})}}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Pagination","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable pagination","gutenmate"),checked:a.enablePagination,onChange:e=>{n({enablePagination:e})}}),a.enablePagination&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.dO,{label:(0,be.__)("Bullet size","gutenmate"),value:a.paginationBulletSize,min:"0",max:"100",onChange:e=>{n({paginationBulletSize:e})}}),_e().createElement(Ke.dO,{label:(0,be.__)("Bullet spacing","gutenmate"),value:a.paginationBulletSpacing,min:"0",max:"50",onChange:e=>{n({paginationBulletSpacing:e})}}),_e().createElement(Ke.dO,{label:(0,be.__)("Bullet position","gutenmate"),value:a.paginationBulletY,min:"-50",max:"100",onChange:e=>{n({paginationBulletY:e})}}))),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:a,setAttributes:n,gtmSettings:[{label:(0,be.__)("Arrow color","gutenmate"),attr:"arrowColor"},{label:(0,be.__)("Arrow hover color","gutenmate"),attr:"arrowHoverColor"},{label:(0,be.__)("Arrow background","gutenmate"),attr:"arrowBg",gradient:!0},{label:(0,be.__)("Arrow hover background","gutenmate"),attr:"arrowHoverBg",gradient:!0},...a.enablePagination?[{label:(0,be.__)("Bullet active color","gutenmate"),attr:"paginationActiveColor"}]:[]]})))}),"gtm-slider-template-controls")((function({clientId:e,context:{query:{perPage:t,offset:a=0,postType:n,order:l,orderBy:o,author:r,search:i,exclude:s,sticky:c,inherit:u,taxQuery:m,parents:g,pages:p,...d}={},queryContext:b=[{page:1}],templateSlug:h,displayLayout:{type:y="flex",columns:_=1}={},previewPostType:v,gtmQueryFilter:f,gtmQueryLimitDays:k,gtmQueryUseRandom:C},__unstableLayoutClassNames:E,swiperProps:w,attributes:S}){const[{page:x}]=b,[T,B]=(0,Ce.useState)(),{posts:I,blocks:P}=(0,xe.useSelect)((p=>{const{getEntityRecords:b,getTaxonomies:y}=p(At.store),{getBlocks:_}=p(we.store),E=y({type:n,per_page:-1,context:"view"}),w=u&&h?.startsWith("category-")&&b("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:h.replace("category-","")}),S={offset:t?t*(x-1)+a:0,order:l,orderby:o};if(m&&!u){const e=Object.entries(m).reduce(((e,[t,a])=>{const n=E?.find((({slug:e})=>e===t));return n?.rest_base&&(e[n?.rest_base]=a),e}),{});Object.keys(e).length&&Object.assign(S,e)}return t&&(S.per_page=t,S.gtmPerPage=t),r&&(S.author=r),i&&(S.search=i),s?.length&&(S.exclude=s),g?.length&&(S.parent=g),c&&(S.sticky="only"===c),S.gtmQueryFilter=f,S.gtmQueryLimitDays=k,S.gtmQueryUseRandom=C,u&&(h?.startsWith("archive-")?(S.postType=h.replace("archive-",""),n=S.postType):w&&(S.categories=w[0]?.id)),{posts:b("postType",v||n,{...S,...d}),blocks:_(e)}}),[t,x,a,l,o,e,r,i,n,s,c,u,h,m,g,d,v,f,k,C]),L=(0,Ce.useMemo)((()=>I?.map((e=>({postType:e.type,postId:e.id})))),[I]),O="flex"===y&&_>1,A=(0,we.useBlockProps)({className:fe()(E,{"is-flex-container":O,[`columns-${_}`]:O,"gtm-has-slider-template-auto-slides-per-view":S.enableAutoSlidesPerView})});return I?I.length?_e().createElement("div",A,_e().createElement(ls,w,L&&function(e,t){const a=[];for(let n=0;n<e.length;n+=t)a.push(e.slice(n,n+t));return a}(L,S.postsPerSlide??1).map(((e,t)=>_e().createElement(Ce.Fragment,null,_e().createElement(rs,{key:`gtm-swiper-slide-${t}`}," ",_e().createElement("div",{className:"gtm-swiper-slide-inner"}," ",e.map(((e,t)=>_e().createElement(we.BlockContextProvider,{key:e.postId,value:e},e.postId===(T||L[0]?.postId)?_e().createElement(cs,{gtmClassName:`gtm-slide-post-${t+1}`}):null,_e().createElement(us,{blocks:P,blockContextId:e.postId,setActiveBlockContextId:B,isHidden:e.postId===(T||L[0]?.postId),gtmClassName:`gtm-slide-post-${t+1}`}))))))))))):_e().createElement("p",A," ",(0,be.__)("No results found.")):_e().createElement("p",A,_e().createElement(Ee.Spinner,null))}));function ps(e){let t={},a={},n={};return e.enableAutoSlidesPerView||((0,Le.hasValue)(e.slidesPerView?.lg)&&(t.slidesPerView=parseInt(e.slidesPerView.lg),a.slidesPerView=parseInt(e.slidesPerView.lg),n.slidesPerView=parseInt(e.slidesPerView.lg)),(0,Le.hasValue)(e.slidesPerView?.md)&&(t.slidesPerView=parseInt(e.slidesPerView.md),a.slidesPerView=parseInt(e.slidesPerView.md)),(0,Le.hasValue)(e.slidesPerView?.sm)&&(t.slidesPerView=parseInt(e.slidesPerView.sm))),(0,Le.hasValue)(e.slideGap?.lg)&&(t.spaceBetween=parseInt(e.slideGap.lg),a.spaceBetween=parseInt(e.slideGap.lg),n.spaceBetween=parseInt(e.slideGap.lg)),(0,Le.hasValue)(e.slideGap?.md)&&(t.spaceBetween=parseInt(e.slideGap.md),a.spaceBetween=parseInt(e.slideGap.md)),(0,Le.hasValue)(e.slideGap?.sm)&&(t.spaceBetween=parseInt(e.slideGap.sm)),{0:t,768:a,1200:n}}function ds(e){return{loop:e.enableLoop,breakpoints:ps(e),slidesPerView:e.enableAutoSlidesPerView?"auto":e.slidesPerView,navigation:!!e.enableArrow,pagination:!!e.enablePagination,centeredSlides:!!e.enableCenteredSlides}}We($r.name,$r.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",`gtm-has-posts-per-slide-${t.postsPerSlide}`)),$e(a,"slider-template-slide-gap",t.slideGap),t.enableAutoSlidesPerView&&$e(a,"slider-template-slide-width",t.slideWidth),t.enableArrow&&($e(a,"slider-template-arrow-width",t.arrowWidth),$e(a,"slider-template-arrow-height",t.arrowHeight),$e(a,"slider-template-arrow-size",t.arrowSize),$e(a,"slider-template-arrow-x",t.arrowXPosition),$e(a,"slider-template-arrow-radius",(0,Le.parseBorderRadiusValue)(t.arrowRadius)),$e(a,"slider-template-arrow-shadow",(0,qe.s)(t.arrowShadow)),$e(a,"slider-template-arrow-color",(0,Le.parseColorValue)(t.arrowColor)),$e(a,"slider-template-arrow-bg",(0,Le.parseColorValue)(t.arrowBg)),$e(a,"slider-template-arrow-hover-color",(0,Le.parseColorValue)(t.arrowHoverColor)),$e(a,"slider-template-arrow-hover-bg",(0,Le.parseColorValue)(t.arrowHoverBg))),t.enablePagination&&($e(a,"slider-template-pagination-active-color",(0,Le.parseColorValue)(t.paginationActiveColor)),$e(a,"slider-template-pagination-bullet-size",t.paginationBulletSize),$e(a,"slider-template-pagination-bullet-y",t.paginationBulletY),$e(a,"slider-template-pagination-bullet-spacing",t.paginationBulletSpacing)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const bs="swiper-pagination",hs={el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${bs}-bullet`,bulletActiveClass:`${bs}-bullet-active`,modifierClass:`${bs}-`,currentClass:`${bs}-current`,totalClass:`${bs}-total`,hiddenClass:`${bs}-hidden`,progressbarFillClass:`${bs}-progressbar-fill`,progressbarOppositeClass:`${bs}-progressbar-opposite`,clickableClass:`${bs}-clickable`,lockClass:`${bs}-lock`,horizontalClass:`${bs}-horizontal`,verticalClass:`${bs}-vertical`},ys={nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"};var _s={from:[{type:"block",blocks:["core/post-template"],transform:(e,t)=>(0,de.createBlock)($r.name,e,t)}],to:[{type:"block",blocks:["core/post-template"],transform:(e,t)=>(0,de.createBlock)("core/post-template",e,t)}]};const{name:vs}=$r,fs={...$r,icon:he.I8,edit:gs,save:function(){return _e().createElement(we.InnerBlocks.Content,null)},transforms:_s};var ks=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/sliding-panel","title":"Sliding Panel","description":"Add a sliding panel. Useful for displaying mobile menu or additional content","category":"gtm-layout","keywords":["gutenmate","box","area","panel"],"attributes":{"position":{"type":"string","enum":["left","right","center","full"],"default":"right"},"offsetX":{"type":"object","default":{}},"offsetY":{"type":"object","default":{}},"width":{"type":"object","default":{}},"enableCloseButton":{"type":"boolean","default":true},"closeButtonIcon":{"type":"string","default":""},"closeButtonIconSize":{"type":"object","default":{}},"closeButtonWidth":{"type":"object","default":{}},"closeButtonRadius":{"type":["string","object"],"default":""},"closeButtonColor":{"type":"string","default":""},"closeButtonBg":{"type":"object","default":{}},"closeButtonPosition":{"type":"string","enum":["auto","left","right"],"default":"auto"},"closeButtonOffsetX":{"type":"object","default":{}},"closeButtonOffsetY":{"type":"object","default":{}},"revealEffect":{"type":"string","enum":["fade","fly-top","fly-bottom","fly-left","fly-right","zoom"],"default":"fade"},"enableThinScrollbar":{"type":"boolean","default":false},"thinScrollbarColor":{"type":"string","default":""},"thinScrollbarSpace":{"type":"string","default":""}},"supports":{"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"padding":{"cssProp":"sliding-panel-padding"},"radius":{"cssProp":"sliding-panel-radius"},"shadow":{"cssProp":"sliding-panel-shadow"},"bg":{"cssProp":"sliding-panel-bg"},"color":{"cssProp":"sliding-panel-color"},"typography":true},"gtmResponsiveAttributes":true,"gtmFooterContent":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-sliding-panel-editor-style","style":"gtm-sliding-panel-style","viewScript":"gtm-block-script"}');const Cs="gtm-basic-icon-xmark";We(ks.name,ks.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",`gtm-has-sliding-panel-position-${t.position}`,{"gtm-has-thin-scrollbar":t.enableThinScrollbar,"gtm-has-close-button":t.enableCloseButton,[`gtm-has-sliding-panel-close-position-${t.closeButtonPosition}`]:t.enableCloseButton})),["full"].includes(t.position)||$e(a,"sliding-panel-width",t.width),["center","full"].includes(t.position)||($e(a,"sliding-panel-offset-x",t.offsetX),$e(a,"sliding-panel-offset-y",t.offsetY)),t.enableCloseButton&&($e(a,"sliding-panel-close-offset-x",t.closeButtonOffsetX),$e(a,"sliding-panel-close-offset-y",t.closeButtonOffsetY),$e(a,"sliding-panel-close-size",t.closeButtonIconSize),$e(a,"sliding-panel-close-width",t.closeButtonWidth),$e(a,"sliding-panel-close-radius",(0,Le.parseBorderRadiusValue)(t.closeButtonRadius)),$e(a,"sliding-panel-close-color",(0,Le.parseColorValue)(t.closeButtonColor)),$e(a,"sliding-panel-close-bg",(0,Le.parseColorValue)(t.closeButtonBg))),t.enableThinScrollbar&&($e(a,"sliding-panel-scroll-color",(0,Le.parseColorValue)(t.thinScrollbarColor)),$e(a,"sliding-panel-scroll-space",t.thinScrollbarSpace)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Es}=ks,ws={...ks,icon:he.IL,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()({"wp-block-gtm-sliding-panel--is-active":n})});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,!t.anchor&&_e().createElement(Ee.PanelBody,null,_e().createElement(Ee.Notice,{className:"gtm-panel-body-notice",isDismissible:!1,status:"warning"},(0,be.__)("This block requires an HTML anchor. Please set at 'Advanced > HTML anchor'","gutenmate"))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Panel","gutenmate"),initialOpen:!0},_e().createElement(Ee.RadioControl,{className:"gtm-radio-control",label:(0,be.__)("Position on screen","gutenmate"),help:(0,be.__)("The sliding panel will stuck on screen with fixed position. No matter what is the inserted position.","gutenmate"),selected:t.position,options:[{label:(0,be.__)("Right","gutenmate"),value:"right"},{label:(0,be.__)("Left","gutenmate"),value:"left"},{label:(0,be.__)("Center","gutenmate"),value:"center"},{label:(0,be.__)("Full","gutenmate"),value:"full"}],onChange:e=>{a({position:e})}}),!["center","full"].includes(t.position)&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.GZ,{label:(0,be.__)("X offset position","gutenmate"),value:t.offsetX,max:"100",onChange:e=>{a({offsetX:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Y offset position","gutenmate"),value:t.offsetY,max:"100",onChange:e=>{a({offsetY:e})}})),!["full"].includes(t.position)&&_e().createElement(Ke.GZ,{label:(0,be.__)("Width","gutenmate"),value:t.width,max:"1000",onChange:e=>{a({width:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Close Button","gutenmate"),initialOpen:!1},_e().createElement("div",{className:"gtm-panel-body-notice"},_e().createElement(Ee.Tip,null,(0,be.__)("You can have your own close button by using another block. Just set the target link (href) to the anchor #close","gutenmate"))),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable close button","gutenmate"),checked:t.enableCloseButton,onChange:e=>{a({enableCloseButton:e})}}),t.enableCloseButton&&_e().createElement(Ce.Fragment,null,_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),defaultIcon:"gtm-basic-icon-xmark",value:t.closeButtonIcon,showPreview:!0,onChange:e=>{a({closeButtonIcon:e})}}),_e().createElement(Ee.RadioControl,{className:"gtm-radio-control",label:(0,be.__)("Position","gutenmate"),selected:t.closeButtonPosition,options:[{label:(0,be.__)("Auto","gutenmate"),value:"auto"},{label:(0,be.__)("Right","gutenmate"),value:"right"},{label:(0,be.__)("Left","gutenmate"),value:"left"}],onChange:e=>{a({closeButtonPosition:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("X offset position","gutenmate"),value:t.closeButtonOffsetX,min:"-50",max:"50",onChange:e=>{a({closeButtonOffsetX:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Y offset position","gutenmate"),value:t.closeButtonOffsetY,min:"-50",max:"50",onChange:e=>{a({closeButtonOffsetY:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.closeButtonIconSize,min:"5",max:"50",onChange:e=>{a({closeButtonIconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Button width","gutenmate"),value:t.closeButtonWidth,min:"10",max:"100",onChange:e=>{a({closeButtonWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.closeButtonRadius,onChange:e=>{a({closeButtonRadius:e})}}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Reveal","gutenmate"),initialOpen:!1},_e().createElement(Ee.SelectControl,{className:"gtm-select-control",label:(0,be.__)("Reveal effect","gutenmate"),value:t.revealEffect,options:[{label:(0,be.__)("Fade","gutenmate"),value:"fade"},{label:(0,be.__)("Fly-in from top","gutenmate"),value:"fly-top"},{label:(0,be.__)("Fly-in from bottom","gutenmate"),value:"fly-bottom"},{label:(0,be.__)("Fly-in from left","gutenmate"),value:"fly-left"},{label:(0,be.__)("Fly-in from right","gutenmate"),value:"fly-right"},{label:(0,be.__)("Zoom-out","gutenmate"),value:"zoom"}],onChange:e=>{a({revealEffect:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Scrollbar","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable thin scrollbar","gutenmate"),checked:t.enableThinScrollbar,onChange:e=>{a({enableThinScrollbar:e})}}),t.enableThinScrollbar&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.dO,{label:(0,be.__)("Spacing","gutenmate"),value:t.thinScrollbarSpace,min:"0",max:"100",onChange:e=>{a({thinScrollbarSpace:e})}}))),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[...t.enableCloseButton?[{label:(0,be.__)("Close button color","gutenmate"),attr:"closeButtonColor"},{label:(0,be.__)("Close button background","gutenmate"),attr:"closeButtonBg",gradient:!0}]:[],...t.enableThinScrollbar?[{label:(0,be.__)("Thin scrollbar color","gutenmate"),attr:"thinScrollbarColor"}]:[]]})),_e().createElement("div",i,_e().createElement(xo,{title:ks.title,anchor:t.anchor?`#${t.anchor}`:""}),_e().createElement("div",{className:"wp-block-gtm-sliding-panel__wrapper"},_e().createElement("div",{className:fe()("wp-block-gtm-sliding-panel__container")},_e().createElement(we.InnerBlocks,null),t.enableCloseButton&&_e().createElement("a",{href:"#close",className:"wp-block-gtm-sliding-panel__close-button"},_e().createElement("i",{className:fe()("gtm-icon",t.closeButtonIcon||Cs)}))))))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save();return _e().createElement("div",a,_e().createElement("div",{className:"wp-block-gtm-sliding-panel__wrapper"},_e().createElement("div",{className:fe()("wp-block-gtm-sliding-panel__container","gtm-reveal",`gtm-reveal--${t.revealEffect}`)},_e().createElement(we.InnerBlocks.Content,null),t.enableCloseButton&&_e().createElement("a",{href:"#close",className:"wp-block-gtm-sliding-panel__close-button","aria-label":"Close"},_e().createElement("i",{className:fe()("gtm-icon",t.closeButtonIcon||Cs)})))))},variations:[],styles:[{name:"gtm-sliding-panel-light",label:(0,be.__)("Light","gutenmate")},{name:"gtm-sliding-panel-dark",label:(0,be.__)("Dark","gutenmate")}]};var Ss=(0,Ce.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ce.createElement)(Ba.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"})),xs=(0,Ce.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ce.createElement)(Ba.Path,{d:"M20 9h-7.2V4h-1.6v5H4v6h7.2v5h1.6v-5H20z"})),Ts=(0,Ce.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ce.createElement)(Ba.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"})),Bs=(0,Ce.createElement)(Ba.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Ce.createElement)(Ba.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"})),Is=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/tabs","title":"Tabs","description":"Add a customizable tabs.","category":"gtm-layout","keywords":["gutenmate","tabs","tab"],"attributes":{"tabTypography":{"type":"object","default":{}},"tabPadding":{"type":"object","default":{}},"tabRadius":{"type":"object","default":{}},"tabSpacing":{"type":"object","default":{}},"tabJustify":{"type":"string","default":""},"tabLabelColor":{"type":"string","default":""},"tabBg":{"type":"object","default":{}},"tabHoverLabelColor":{"type":"string","default":""},"tabHoverBg":{"type":"object","default":{}},"tabActiveLabelColor":{"type":"string","default":""},"tabActiveBg":{"type":"object","default":{}},"tabIconSize":{"type":"object","default":{}},"tabIconSpacing":{"type":"object","default":{}},"tabIconColor":{"type":"string","default":""},"tabHoverIconColor":{"type":"string","default":""},"tabActiveIconColor":{"type":"string","default":""},"panelPadding":{"type":"object","default":{}},"panelRadius":{"type":"object","default":{}},"panelColor":{"type":"string","default":""},"panelBg":{"type":"object","default":{}},"stackTabsOnMobile":{"type":"boolean","default":true},"hideLabelOnMobile":{"type":"boolean","default":false}},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"bg":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-tabs-editor-style","style":"gtm-tabs-style"}');const Ps=(0,Lt.Z)(Ee.ToggleControl)`
	margin-bottom: 1em !important;
`,Ls=["gtm/tab"];We(Is.name,Is.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-stack-tabs-mobile":t.stackTabsOnMobile,"gtm-hide-tab-label-mobile":t.hideLabelOnMobile})),Ge(a,"tab-justify",t.tabJustify),$e(a,"tab-padding",(0,Qe.G3)(t.tabPadding)),$e(a,"tab-spacing",(0,et._5)(t.tabSpacing)),$e(a,"tab-radius",(0,Le.parseBorderRadiusValue)(t.tabRadius)),$e(a,"tab-typography",(0,Je.parseTypographyProps)(t.tabTypography)),$e(a,"tab-label-color",(0,Le.parseColorValue)(t.tabLabelColor)),$e(a,"tab-bg",(0,Le.parseColorValue)(t.tabBg)),$e(a,"tab-hover-label-color",(0,Le.parseColorValue)(t.tabHoverLabelColor)),$e(a,"tab-hover-bg",(0,Le.parseColorValue)(t.tabHoverBg)),$e(a,"tab-active-label-color",(0,Le.parseColorValue)(t.tabActiveLabelColor)),$e(a,"tab-active-bg",(0,Le.parseColorValue)(t.tabActiveBg)),$e(a,"tab-icon-size",t.tabIconSize),$e(a,"tab-icon-spacing",(0,et._5)(t.tabIconSpacing)),$e(a,"tab-icon-color",(0,Le.parseColorValue)(t.tabIconColor)),$e(a,"tab-hover-icon-color",(0,Le.parseColorValue)(t.tabHoverIconColor)),$e(a,"tab-active-icon-color",(0,Le.parseColorValue)(t.tabActiveIconColor)),$e(a,"tab-panel-padding",(0,Qe.G3)(t.panelPadding)),$e(a,"tab-panel-radius",(0,Le.parseBorderRadiusValue)(t.panelRadius)),$e(a,"tab-panel-color",(0,Le.parseColorValue)(t.panelColor)),$e(a,"tab-panel-bg",(0,Le.parseColorValue)(t.panelBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:Os}=Is,As={...Is,icon:he.UO,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block")}),s=(0,we.useInnerBlocksProps)(i,{template:[["gtm/tab"]],orientation:"horizontal",allowedBlocks:Ls});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ye,{title:(0,be.__)("Tab header","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Label color","gutenmate"),attr:"tabLabelColor",gradient:!1},{label:(0,be.__)("Background","gutenmate"),attr:"tabBg",gradient:!0},{label:(0,be.__)("Hover label color","gutenmate"),attr:"tabHoverLabelColor",gradient:!1},{label:(0,be.__)("Hover Background","gutenmate"),attr:"tabHoverBg",gradient:!0},{label:(0,be.__)("Active label color","gutenmate"),attr:"tabActiveLabelColor",gradient:!1},{label:(0,be.__)("Active background","gutenmate"),attr:"tabActiveBg",gradient:!0}]},_e().createElement(Ee.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,isDeselectable:!0,label:(0,be.__)("Justification"),onChange:e=>{a({tabJustify:e})}},_e().createElement(Ee.__experimentalToggleGroupControlOptionIcon,{icon:Ss,label:(0,be.__)("Justify items left","gutenmate"),value:"left"}),_e().createElement(Ee.__experimentalToggleGroupControlOptionIcon,{icon:xs,label:(0,be.__)("Justify items center","gutenmate"),value:"center"}),_e().createElement(Ee.__experimentalToggleGroupControlOptionIcon,{icon:Ts,label:(0,be.__)("Justify items right","gutenmate"),value:"right"}),_e().createElement(Ee.__experimentalToggleGroupControlOptionIcon,{icon:Bs,label:(0,be.__)("Justify items stretch","gutenmate"),value:"stretch"})),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.tabPadding,allowNegative:!1,onChange:e=>{a({tabPadding:e})}}),_e().createElement(ya,{label:(0,be.__)("Spacing","gutenmate"),value:t.tabSpacing,onChange:e=>{a({tabSpacing:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.tabRadius,onChange:e=>{a({tabRadius:e})}}),_e().createElement(Je.default,{value:t.tabTypography,onChange:e=>a({tabTypography:e})}),_e().createElement(Ps,{label:(0,be.__)("Stack tabs on mobile","gutenmate"),checked:t.stackTabsOnMobile,onChange:e=>{a({stackTabsOnMobile:e})}}),_e().createElement(Ps,{label:(0,be.__)("Hide label on mobile","gutenmate"),help:(0,be.__)("The tab icon is still displayed.","gutenmate"),checked:t.hideLabelOnMobile,onChange:e=>{a({hideLabelOnMobile:e})}})),_e().createElement(Ye,{title:(0,be.__)("Tab icon","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Icon color","gutenmate"),attr:"tabIconColor",gradient:!1},{label:(0,be.__)("Hover icon color","gutenmate"),attr:"tabHoverIconColor",gradient:!1},{label:(0,be.__)("Active icon color","gutenmate"),attr:"tabActiveIconColor",gradient:!1}]},_e().createElement(Ke.GZ,{label:(0,be.__)("Icon Size","gutenmate"),value:t.tabIconSize,min:"5",max:"50",onChange:e=>{a({tabIconSize:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.tabIconSpacing,onChange:e=>a({tabIconSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Tab body","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"panelColor",gradient:!1},{label:(0,be.__)("Background","gutenmate"),attr:"panelBg",gradient:!0}]},_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.panelPadding,allowNegative:!1,onChange:e=>{a({panelPadding:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.panelRadius,onChange:e=>{a({panelRadius:e})}}))),_e().createElement("div",s))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("")});return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},variations:[]};function Hs(){return Hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Hs.apply(this,arguments)}var js=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/tab","title":"Tab","description":"Add a customizable tab.","category":"gtm-layout","keywords":["gutenmate","tabs","tab"],"parent":["gtm/tabs"],"attributes":{"label":{"type":"string","default":""},"icon":{"type":"string","default":""}},"supports":{},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-tab-editor-style","style":"gtm-tab-style"}');const{name:Ns}=js,Rs={...js,icon:he.sQ,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,mergedStyle:l,clientId:o,name:r}=e,i=(0,we.useBlockProps)({className:fe()("gtm-block")}),s=(0,we.useInnerBlocksProps)(i,{template:[["core/paragraph"]]}),{isFirstTab:c,hasSelectedInnerBlock:u,tabGroupId:m}=(0,xe.useSelect)((e=>{const{getBlockIndex:t,hasSelectedInnerBlock:a,getBlockParents:n}=e(we.store);return{isFirstTab:0==t(o),hasSelectedInnerBlock:a(o,!0),tabGroupId:n(o,!0)[0]}})),g=(0,Ce.useRef)(null),[p,d]=(0,Ce.useState)(!0);let b={};p&&c&&(b={checked:"checked"}),(0,Ce.useEffect)((()=>{d(!1)}),[]),(n||u)&&0==g?.current?.checked&&(g.current.checked=!0);const h=`tab-${o}`,y=`tabs-${m}`;return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Tab","gutenmate"),initialOpen:!0},_e().createElement(Ee.TextControl,{label:(0,be.__)("Label","gutenmate"),value:t.label,autoComplete:!1,onChange:e=>a({label:e})}),_e().createElement(jt.w,{label:(0,be.__)("Icon","gutenmate"),value:t.icon,showPreview:!0,onChange:e=>{a({icon:e})}}))),_e().createElement("input",Hs({className:"wp-block-gtm-tab__control",type:"radio",id:h,value:h,name:y,ref:g},b)),_e().createElement("label",{for:h,className:"wp-block-gtm-tab__pill"},t.icon&&_e().createElement("i",{className:`gtm-icon ${t.icon}`,"aria-hidden":"true"}),t.label&&_e().createElement("span",null,t.label),(0,Te.isEmpty)(t.label)&&(0,Te.isEmpty)(t.icon)&&_e().createElement("span",{className:"wp-block-gtm-tab__placeholder"},(0,be.__)("Tab","gutenmate"))),_e().createElement("section",s))},save:function(e){const{attributes:t}=e,a=we.useBlockProps.save({className:fe()("")});return _e().createElement("div",a,_e().createElement(we.InnerBlocks.Content,null))},variations:[]};var Vs=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/template-summary","title":"Template summary","description":"Display a summary information in the template.","category":"gtm-blocks","keywords":["gutenmate","template","summary","review","recipe"],"ancestor":["gtm/review-template","gtm/recipe-template"],"usesContext":["gtmTemplateSummary"],"attributes":{},"supports":{"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"typography":true,"color":true,"textAlign":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-template-summary-editor-style","style":"gtm-template-summary-style"}');const{name:zs}=Vs,Fs={...Vs,icon:he.ZI,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,r=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement("div",r,_e().createElement("span",{className:"wp-block-gtm-template-summary__summary"},(0,be.__)("A template's executive summary could be one or two lines long.","gutenmate"))))},save:function(e){},variations:[],styles:[]};var Ms=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/template-title","title":"Template title","description":"Add a customizable template title.","category":"gtm-blocks","keywords":["gutenmate","template","title","review","recipe"],"ancestor":["gtm/review-template","gtm/recipe-template"],"usesContext":["gtmTemplateTitle","gtmTemplateTagline"],"attributes":{"maxWidth":{"type":"object","default":{}},"titleTag":{"type":"string","default":"h3"},"titleColor":{"type":"string","default":""},"titleTypography":{"type":"object","default":{}},"taglineTag":{"type":"string","default":"div"},"taglineColor":{"type":"string","default":""},"taglineSpacing":{"type":"object","default":{}},"taglineTypography":{"type":"object","default":{}}},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"radius":true,"shadow":true,"bg":true,"textAlign":true},"gtmResponsiveAttributes":true,"gtmUseWebFonts":["titleTypography","taglineTypography"]},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-template-title-editor-style","style":"gtm-template-title-style"}');const Ds=(0,be.__)("Template title","gutenmate"),Ws=(0,be.__)("A template's tagline is typically a short description.","gutenmate");We(Ms.name,Ms.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block")),$e(a,"template-title-max-width",t.maxWidth),$e(a,"template-title-title-color",(0,Le.parseColorValue)(t.titleColor)),$e(a,"template-title-title-typography",(0,Je.parseTypographyProps)(t.titleTypography)),$e(a,"template-title-tagline-color",(0,Le.parseColorValue)(t.taglineColor)),$e(a,"template-title-tagline-spacing",(0,et._5)(t.taglineSpacing)),$e(a,"template-title-tagline-typography",(0,Je.parseTypographyProps)(t.taglineTypography)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const{name:$s}=Ms,Gs={...Ms,icon:he.rJ,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,r=`${t.titleTag}`,i=`${t.taglineTag}`,s=(0,we.useBlockProps)();return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ce.Fragment,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Format","gutenmate"),initialOpen:!0},_e().createElement(Ke.GZ,{label:(0,be.__)("Max width","gutenmate"),value:t.maxWidth,max:"1000",onChange:e=>{a({maxWidth:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Title","gutenmate"),initialOpen:!1},_e().createElement(na.Z,{label:(0,be.__)("Title tag","gutenmate"),value:t.titleTag,onChange:e=>a({titleTag:e})}),_e().createElement(Je.default,{value:t.titleTypography,onChange:e=>a({titleTypography:e})})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Tagline","gutenmate"),initialOpen:!1},_e().createElement(na.Z,{label:(0,be.__)("Tagline tag","gutenmate"),value:t.taglineTag,onChange:e=>a({taglineTag:e})}),_e().createElement(Je.default,{value:t.taglineTypography,onChange:e=>a({taglineTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.taglineSpacing,onChange:e=>a({taglineSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Title color","gutenmate"),attr:"titleColor"},{label:(0,be.__)("Tagline color","gutenmate"),attr:"taglineColor"}]}))),_e().createElement("div",s,_e().createElement(r,{className:"wp-block-gtm-template-title__title"},_e().createElement("span",null,Ds)),_e().createElement(i,{className:"wp-block-gtm-template-title__tagline"},_e().createElement("span",null,Ws))))},save:function(e){},variations:[],styles:[]};var Us=JSON.parse('{"$schema":"https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json","apiVersion":2,"name":"gtm/terms","title":"Terms","description":"Add a customizable term listing.","category":"gtm-blocks","textdomain":"gutenmate","keywords":["gutenmate","archive"],"attributes":{"term":{"type":"string","default":"category"},"customTerms":{"type":"array","default":[]},"itemDisplay":{"type":"string","enum":["all","parent","sub","custom"],"default":"parent"},"columns":{"type":"object","default":{}},"gap":{"type":"object","default":{}},"enableItemDescription":{"type":"boolean","default":false},"itemNameTypography":{"type":"object","default":{}},"itemDescriptionTypography":{"type":"object","default":{}},"itemDescriptionSpacing":{"type":"object","default":{}},"imageHeight":{"type":"object","default":{}},"imageWidth":{"type":"object","default":{}},"imageSize":{"type":"string","default":""},"useAltImage":{"type":"boolean","default":false},"imageFocalPoint":{"type":"object","default":{"x":0.5,"y":0.5}},"imageHoverEffect":{"type":"string","default":""},"imageHoverBlur":{"type":"boolean","default":false},"imageHoverGray":{"type":"boolean","default":false},"imageRadius":{"type":["string","object"],"default":{}},"imageShadow":{"type":"string","default":""},"overlayBg":{"type":"object","default":{}},"overlayOpacity":{"type":"number"},"overlayBlendMode":{"type":"string","default":""},"overlayHoverBg":{"type":"object","default":{}},"overlayHoverOpacity":{"type":"number"},"overlayHoverBlendMode":{"type":"string","default":""},"itemNameColor":{"type":"string","default":""},"itemNameHoverColor":{"type":"string","default":""},"itemDescriptionColor":{"type":"string","default":""},"itemDescriptionHoverColor":{"type":"string","default":""}},"supports":{"align":["wide","full"],"anchor":true,"gtmBlockVisibility":true,"gtmBlockProps":{"margin":true,"padding":true,"bg":true,"radius":true,"shadow":true},"gtmResponsiveAttributes":true},"editorScript":"gtm-block-editor-script","editorStyle":"gtm-terms-editor-style","style":"gtm-terms-style"}');window.wp.htmlEntities;const Zs=[],qs={order:"asc",_fields:"id,name",context:"view"},Js=(e,t)=>{const a=t?.id||e?.find((e=>e.name===t))?.id;if(a)return a;const n=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===n))?.id};function Ks({taxonomy:e,termIds:t,onChange:a}){const[n,l]=(0,Ce.useState)(""),[o,r]=(0,Ce.useState)(Zs),[i,s]=(0,Ce.useState)(Zs),c=(0,Se.useDebounce)(l,250),{searchResults:u,searchHasResolved:m}=(0,xe.useSelect)((a=>{if(!n)return{searchResults:Zs,searchHasResolved:!0};const{getEntityRecords:l,hasFinishedResolution:o}=a(At.store),r=["taxonomy",e.slug,{...qs,search:n,orderby:"name",exclude:t,per_page:20}];return{searchResults:l(...r),searchHasResolved:o("getEntityRecords",r)}}),[n,t]),g=(0,xe.useSelect)((a=>{if(!t?.length)return Zs;const{getEntityRecords:n}=a(At.store);return n("taxonomy",e.slug,{...qs,include:t,per_page:t.length})}),[t]);return(0,Ce.useEffect)((()=>{if(t?.length||r(Zs),!g?.length)return;const e=t.reduce(((e,t)=>{const a=g.find((e=>e.id===t));return a&&e.push({id:t,value:a.name}),e}),[]);r(e)}),[t,g]),(0,Ce.useEffect)((()=>{m&&s(u.map((e=>e.name)))}),[u,m]),_e().createElement("div",{className:"block-library-query-inspector__taxonomy-control"},_e().createElement(Ee.FormTokenField,{label:e.name,value:o,onInputChange:c,suggestions:i,onChange:e=>{const t=new Set;for(const a of e){const e=Js(u,a);e&&t.add(e)}s(Zs),a(Array.from(t))},__experimentalShowHowTo:!1}))}gtm_config.icons.date;const Qs=At.useEntityRecords||At.__experimentalUseEntityRecords;We(Us.name,Us.name,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-terms-item-description":t.enableItemDescription,"gtm-has-terms-item-image-hover-blur":t.imageHoverBlur,"gtm-has-terms-item-image-hover-gray":t.imageHoverGray})),$e(a,"terms-columns",t.columns),$e(a,"terms-gap",(0,et._5)(t.gap)),$e(a,"terms-name-typography",(0,Je.parseTypographyProps)(t.itemNameTypography)),t.enableItemDescription&&($e(a,"terms-description-spacing",(0,et._5)(t.itemDescriptionSpacing)),$e(a,"terms-description-typography",(0,Je.parseTypographyProps)(t.itemDescriptionTypography))),$e(a,"terms-image-height",t.imageHeight),$e(a,"terms-image-width",t.imageWidth),$e(a,"terms-item-image-focal",(0,Le.parseFocalPointValue)(t.imageFocalPoint)),Ge(a,"terms-item-image-hover",t.imageHoverEffect),$e(a,"terms-item-overlay",(0,Le.parseColorValue)(t.overlayBg)),t.overlayOpacity&&$e(a,"terms-item-overlay-opacity",""+parseInt(t.overlayOpacity)/100),$e(a,"terms-item-image-radius",(0,Le.parseBorderRadiusValue)(t.imageRadius)),$e(a,"terms-item-image-shadow",(0,qe.s)(t.imageShadow)),$e(a,"terms-item-overlay-blend-mode",t.overlayBlendMode),$e(a,"terms-item-overlay-hover",(0,Le.parseColorValue)(t.overlayHoverBg)),t.overlayHoverOpacity&&$e(a,"terms-item-overlay-hover-opacity",""+parseInt(t.overlayHoverOpacity)/100),$e(a,"terms-item-overlay-hover-blend-mode",t.overlayHoverBlendMode),$e(a,"terms-item-name-color",(0,Le.parseColorValue)(t.itemNameColor)),$e(a,"terms-item-name-hover-color",(0,Le.parseColorValue)(t.itemNameHoverColor)),$e(a,"terms-item-description-color",(0,Le.parseColorValue)(t.itemDescriptionColor)),$e(a,"terms-item-description-hover-color",(0,Le.parseColorValue)(t.itemDescriptionHoverColor)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));var Xs=[{name:"category",title:(0,be.__)("Categories","gutenmate"),description:(0,be.__)("Display categories.","gutenmate"),isDefault:!0,attributes:{term:"category"},isActive:e=>"category"===e.term}];const{name:Ys}=Us,ec={...Us,icon:he.$g,variations:Xs,edit:function(e){const{attributes:t,setAttributes:a,isSelected:n,clientId:l,name:o}=e,r=(0,we.useBlockProps)(),{records:i,isResolving:s}=Qs("taxonomy",t.term||"category",{parent:0,per_page:-1,hide_empty:!0,context:"view"});return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Display","gutenmate"),initialOpen:!0},_e().createElement(Ee.SelectControl,{label:(0,be.__)("Item display","gutenmate"),value:t.itemDisplay,options:[{label:(0,be.__)("Show parent items only","gutenmate"),value:"parent"},{label:(0,be.__)("Show subitems only","gutenmate"),value:"sub"},{label:(0,be.__)("Show custom items only","gutenmate"),value:"custom"},{label:(0,be.__)("Show all items","gutenmate"),value:"all"}],onChange:e=>{a({itemDisplay:e})}}),"custom"==t.itemDisplay&&_e().createElement(Ks,{taxonomy:{slug:t.term,name:(0,be.__)("Custom items","gutenmate")},termIds:t.customTerms,onChange:e=>{a({customTerms:e})}}),_e().createElement($t.x,{label:(0,be.__)("Columns","gutenmate"),value:t.columns,min:"1",max:"10",step:"1",enableResponsive:!0,onChange:e=>{a({columns:e})}}),_e().createElement(ya,{label:(0,be.__)("Gap","gutenmate"),value:t.gap,onChange:e=>{a({gap:e})}})),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Item","gutenmate"),initialOpen:!0},_e().createElement(Je.default,{label:(0,be.__)("Name typography","gutenmate"),value:t.itemNameTypography,onChange:e=>a({itemNameTypography:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Show description","gutenmate"),checked:t.enableItemDescription,onChange:e=>{a({enableItemDescription:e})}}),t.enableItemDescription&&_e().createElement(Ce.Fragment,null,_e().createElement(et.wH,{label:(0,be.__)("Description spacing","gutenmate"),value:t.itemDescriptionSpacing,onChange:e=>a({itemDescriptionSpacing:e})}),_e().createElement(Je.default,{label:(0,be.__)("Description typography","gutenmate"),value:t.itemDescriptionTypography,onChange:e=>a({itemDescriptionTypography:e})}))),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Featured image","gutenmate"),initialOpen:!1},_e().createElement(Ee.FocalPointPicker,{value:t.imageFocalPoint,onChange:e=>a({imageFocalPoint:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Use alternative featured image if available","gutenmate"),checked:t.useAltImage,onChange:e=>{a({useAltImage:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Height","gutenmate"),value:t.imageHeight,min:"30",max:"500",onChange:e=>{a({imageHeight:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Width","gutenmate"),value:t.imageWidth,min:"1",max:"500",onChange:e=>{a({imageWidth:e})}}),_e().createElement(Ee.SelectControl,{label:(0,be.__)("Image size","gutenmate"),value:t.imageSize,options:(0,Le.getImageSizeOptions)(),onChange:e=>{a({imageSize:e})}}),_e().createElement(Ee.SelectControl,{label:"Hover effect",value:t.imageHoverEffect,options:el.VX,onChange:e=>{a({imageHoverEffect:e})}}),t.imageHoverEffect&&_e().createElement("div",{className:"gtm-group"},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("With blur effect","gutenmate"),checked:t.imageHoverBlur,onChange:e=>{a({imageHoverBlur:e})}}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("With grayscale effect","gutenmate"),checked:t.imageHoverGray,onChange:e=>{a({imageHoverGray:e})}})),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.imageRadius,onChange:e=>{a({imageRadius:e})}}),_e().createElement(qe.Z,{label:(0,be.__)("Shadow","gutenmate"),value:t.imageShadow,onChange:e=>{a({imageShadow:e})}})),_e().createElement(Ye,{title:(0,be.__)("Overlay","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Overlay background","gutenmate"),attr:"overlayBg",gradient:!0},{label:(0,be.__)("Overlay hover background","gutenmate"),attr:"overlayHoverBg",gradient:!0}]},_e().createElement($a.Z,{normalState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RangeControl,{label:(0,be.__)("Overlay opacity","gutenmate"),value:t.overlayOpacity,onChange:e=>{a({overlayOpacity:e})},min:0,max:100,step:10,allowReset:!0}),_e().createElement(Ee.SelectControl,{label:"Overlay blend mode",value:t.overlayBlendMode,options:el.rh,onChange:e=>{a({overlayBlendMode:e})}})),hoverState:_e().createElement(Ce.Fragment,null,_e().createElement(Ee.RangeControl,{label:(0,be.__)("Overlay hover opacity","gutenmate"),value:t.overlayHoverOpacity,onChange:e=>{a({overlayHoverOpacity:e})},min:0,max:100,step:10,allowReset:!0}),_e().createElement(Ee.SelectControl,{label:"Overlay hover blend mode",value:t.overlayHoverBlendMode,options:el.rh,onChange:e=>{a({overlayHoverBlendMode:e})}}))})),_e().createElement(Ye,{title:(0,be.__)("Color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Name color","gutenmate"),attr:"itemNameColor",gradient:!1},{label:(0,be.__)("Name hover color","gutenmate"),attr:"itemNameHoverColor",gradient:!1},{label:(0,be.__)("Description color","gutenmate"),attr:"itemDescriptionColor",gradient:!1},{label:(0,be.__)("Description hover color","gutenmate"),attr:"itemDescriptionHoverColor",gradient:!1}]})),_e().createElement("div",r,s&&_e().createElement(Ee.Placeholder,null,_e().createElement(Ee.Spinner,null)),!s&&0===i?.length&&_e().createElement("p",null,(0,be.__)("Your site does not have any posts, so there is nothing to display here at the moment.","gutenmate")),!s&&i?.length>0&&(()=>{let e=i;return"custom"==t.itemDisplay&&(e=t.customTerms.reduce(((e,t)=>{const a=i.find((e=>e.id==t));return a&&e.push(a),e}),[])),e.length||(e=[{name:(0,be.__)("(No terms)","gutenmate"),description:""},{name:(0,be.__)("(No terms)","gutenmate"),description:""}]),_e().createElement("ul",{className:(0,"wp-block-gtm-terms__list wp-block-gtm-terms__list-level-0")},e.map(((e,a)=>((e,a,n)=>{const{id:l,link:o,count:r,name:i,description:s,meta:c}=a;return _e().createElement("li",{key:e},_e().createElement("a",{className:"wp-block-gtm-terms__image",href:o,target:"_blank",rel:"noreferrer noopener",onClick:e=>e.preventDefault()},_e().createElement(sl,null)),_e().createElement("a",{className:"wp-block-gtm-terms__term",href:o,target:"_blank",rel:"noreferrer noopener",onClick:e=>e.preventDefault()},_e().createElement("span",{className:"wp-block-gtm-terms__name"},(e=>e?(0,Te.unescape)(e).trim():(0,be.__)("(Untitled)","gutenmate"))(i)),t.enableItemDescription&&s&&_e().createElement("span",{className:"wp-block-gtm-terms__description"},s)))})(a,e))))})()))},styles:[{name:"gtm-terms-card",label:(0,be.__)("Card","gutenmate")},{name:"gtm-terms-stack-reverse",label:(0,be.__)("Reversed stack","gutenmate")}]};var tc=a(5990);const{get:ac,merge:nc,isEmpty:lc}=lodash,{useEffect:oc,useState:rc,memo:ic}=_e(),sc=(0,Se.compose)((0,tc.pH)())((e=>_e().createElement(Ce.Fragment,null,e.children))),cc=(0,Se.createHigherOrderComponent)((e=>t=>{const{attributes:a,setAttributes:n,clientId:l}=t;return function(e){if(!0===(0,de.getBlockSupport)(e,"gtmResponsiveAttributes"))return!0}(t.name)?_e().createElement(sc,t,_e().createElement(e,t)):_e().createElement(e,t)}),"gutenmateResponsiveAttributes");wp.hooks.addFilter("editor.BlockEdit","gtm/responsiveAttributes/withEditControls",cc,40);var uc=window.wp.hooks;const mc=(0,Se.compose)((0,ba.D)())((({value:e,onChange:t=Te.noop})=>_e().createElement("div",{className:"gtm-flex-size-control"},_e().createElement(Ee.__experimentalToggleGroupControl,{value:void 0===e?"default":e,isBlock:!0,onChange:e=>{t("default"===e?void 0:e)}},_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"default",value:"default",label:(0,be.__)("Default","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"no",value:0,label:(0,be.__)("No","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"yes",value:1,label:(0,be.__)("Yes","gutenmate")})))));var gc=a(9153);const pc="gtm.BlockExtends.addAttributes",dc="gtm.BlockExtends.editControls";(0,uc.addFilter)("blocks.registerBlockType","gtm/blockExtends",(function(e,t){return(0,uc.applyFilters)(pc,e,t)})),(0,uc.addFilter)("editor.BlockEdit","gtm/blockExtends",(e=>t=>{const a=(0,uc.applyFilters)(dc,[],t);return _e().createElement(Ce.Fragment,null,_e().createElement(e,t),a)}));(0,uc.addFilter)(dc,"gtm/useWebFonts",(function(e,t){const a=(n=t.name,(0,de.getBlockSupport)(n,"gtmUseWebFonts",!1));var n;if(Array.isArray(a)){const n=Object.values((0,Te.pick)(t.attributes,a));e.push(_e().createElement(bc,{key:e.length+1,fields:n}))}return e}),99);const bc=e=>{let t=e.fields?.map((e=>{if(e&&"custom"==e.preset&&e.fontFamily){const t=(0,gc.n6)(e.fontFamily,e.fontWeight);return _e().createElement("link",{rel:"stylesheet",type:"text/css",href:t})}}));return _e().createElement(Ce.Fragment,null,t)},{find:hc,isEmpty:yc}=lodash,{useState:_c,useEffect:vc}=_e();var fc=(0,Se.compose)((0,ba.D)())((function e({label:t,value:a,help:n,onChange:l,className:o,enableResponsive:r,options:i={},responsiveHasValues:s},c){const u=`gtm-field-responsive-selector-control-${(0,Se.useInstanceId)(e)}`;return _e().createElement(Ee.BaseControl,{ref:c,label:t,id:u,className:fe()("gtm-responsive-select-control",o),help:n},r&&_e().createElement(tc.jn,{responsiveHasValues:s}),_e().createElement(Ee.SelectControl,{value:a??"",options:i,onChange:l}))}));function kc(){return kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},kc.apply(this,arguments)}const Cc=["width","height","margin","padding","flexLayout"],Ec=[{label:(0,be.__)("Default","gutenmate"),value:""},{label:(0,be.__)("Row","gutenmate"),value:"row"},{label:(0,be.__)("Row-reverse","gutenmate"),value:"row-reverse"},{label:(0,be.__)("Column","gutenmate"),value:"column"},{label:(0,be.__)("Column-reverse","gutenmate"),value:"column-reverse"}],wc=[{label:(0,be.__)("Default","gutenmate"),value:""},{label:(0,be.__)("No wrap","gutenmate"),value:"nowrap"},{label:(0,be.__)("Wrap","gutenmate"),value:"wrap"},{label:(0,be.__)("Wrap-reverse","gutenmate"),value:"wrap-reverse"}],Sc=[{label:(0,be.__)("Default","gutenmate"),value:""},{label:(0,be.__)("Start","gutenmate"),value:"flex-start"},{label:(0,be.__)("End","gutenmate"),value:"flex-end"},{label:(0,be.__)("Center","gutenmate"),value:"center"},{label:(0,be.__)("Stretch","gutenmate"),value:"stretch"}],xc=[{label:(0,be.__)("Default","gutenmate"),value:""},{label:(0,be.__)("Start","gutenmate"),value:"flex-start"},{label:(0,be.__)("End","gutenmate"),value:"flex-end"},{label:(0,be.__)("Center","gutenmate"),value:"center"},{label:(0,be.__)("Space between","gutenmate"),value:"space-between"},{label:(0,be.__)("Space around","gutenmate"),value:"space-around"},{label:(0,be.__)("Space evenly","gutenmate"),value:"space-evenly"}];function Tc(e){let t=(0,de.getBlockSupport)(e,"gtmBlockProps",!1);return!(0,Te.isEmpty)(t)&&t}let Bc=[];function Ic(e,t){let a=Array.isArray(e)?e:[e],n=!1;return a.forEach((e=>{n=n||t.hasOwnProperty(e)&&t[e]})),n}function Pc(e,t,a){return Ic(e,t)&&t[e].cssProp||a}function Lc(e,t){return!Ic(e,t)||!!((0,Te.get)(t[e],"isShownByDefault")??1)}const Oc=e=>{const{attributes:t,setAttributes:a}=e,n=Tc(e.name);return _e().createElement(Ce.Fragment,null,_e().createElement(we.BlockControls,{group:"block"},Ic("textAlign",n)&&_e().createElement(we.AlignmentControl,{value:t.gtmTextAlign,onChange:e=>{a({gtmTextAlign:e})}})),_e().createElement(we.InspectorControls,null,Ic("hoverImage",n)&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Hover image","gutenmate"),initialOpen:t.gtmHoverImage},_e().createElement(fl,{label:(0,be.__)("Hover image","gutenmate"),help:(0,be.__)("Choose a hovering image","gutenmate"),setImageLabel:(0,be.__)("Set hovering image","gutenmate"),value:t.gtmHoverImage,onChange:e=>{a({gtmHoverImage:e?e.id:void 0})}}),Ic("highDpiImage",n)&&t.gtmHoverImage&&_e().createElement(fl,{label:(0,be.__)("Hover image 2X","gutenmate"),help:(0,be.__)("Choose a double sized hovering image (2X)","gutenmate"),setImageLabel:(0,be.__)("Set 2X hovering image","gutenmate"),value:t.gtmHoverImage2X,onChange:e=>{a({gtmHoverImage2X:e?e.id:void 0})}})),Ic("highDpiImage",n)&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("High DPI Images","gutenmate"),initialOpen:!1},_e().createElement(fl,{label:(0,be.__)("2X Image","gutenmate"),help:(0,be.__)("Choose a double sized image (2X) for high-DPI screen","gutenmate"),setImageLabel:(0,be.__)("Set 2X image","gutenmate"),value:t.gtmImage2x,onChange:e=>{a({gtmImage2x:e?e.id:void 0})}}),_e().createElement(fl,{label:(0,be.__)("3X Image","gutenmate"),help:(0,be.__)("Choose a tripple sized image (3X) for high-DPI screen","gutenmate"),setImageLabel:(0,be.__)("Set 3X image","gutenmate"),value:t.gtmImage3x,onChange:e=>{a({gtmImage3x:e?e.id:void 0})}})),Ic("flexLayout",n)&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Block layout","gutenmate"),initialOpen:!1},_e().createElement(fc,{label:(0,be.__)("Flow direction","gutenmate"),help:(0,be.__)("Direction of child blocks.","gutenmate"),value:t.gtmFlexDirection,options:Ec,onChange:e=>{a({gtmFlexDirection:e})}}),_e().createElement(fc,{label:(0,be.__)("Align items","gutenmate"),help:(0,be.__)("Aligment of child blocks on the cross axis of flow direction.","gutenmate"),value:t.gtmFlexAlignItems,options:Sc,onChange:e=>{a({gtmFlexAlignItems:e})}}),_e().createElement(fc,{label:(0,be.__)("Justify content","gutenmate"),help:(0,be.__)("Aligment of child blocks along the axis of flow direction.","gutenmate"),value:t.gtmFlexJustifyContent,options:xc,onChange:e=>{a({gtmFlexJustifyContent:e})}}),_e().createElement(fc,{label:(0,be.__)("Wrap","gutenmate"),value:t.gtmFlexWrap,help:(0,be.__)("Allow to wrap to multiple lines.","gutenmate"),options:wc,onChange:e=>{a({gtmFlexWrap:e})}}),_e().createElement(ya,{label:(0,be.__)("Gap","gutenmate"),value:t.gtmFlexItemSpacing,onChange:e=>{a({gtmFlexItemSpacing:e})}})),Ic(["radius","shadow","typography"],n)&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Block appearance","gutenmate"),initialOpen:!1},Ic("radius",n)&&_e().createElement(we.__experimentalBorderRadiusControl,{values:t.gtmRadius,onChange:e=>{a({gtmRadius:e})}}),Ic("shadow",n)&&_e().createElement(qe.Z,{label:(0,be.__)("Shadow","gutenmate"),value:t.gtmShadow,onChange:e=>{a({gtmShadow:e})}}),Ic("typography",n)&&_e().createElement(Je.default,{value:t.gtmTypography,onChange:e=>a({gtmTypography:e})})),Ic(["margin","padding"],n)&&_e().createElement(Ee.PanelBody,{title:(0,be.__)("Block container","gutenmate"),initialOpen:!1},Ic("margin",n)&&_e().createElement(Qe.ZP,{label:(0,be.__)("Margin","gutenmate"),value:t.gtmMargin,allowNegative:!0,onChange:e=>{a({gtmMargin:e})}}),Ic("padding",n)&&_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.gtmPadding,allowNegative:!1,onChange:e=>{a({gtmPadding:e})}})),Ic(["bg","color"],n)&&_e().createElement(Ye,{title:(0,be.__)("Block color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[...Ic(["bg"],n)?[{label:(0,be.__)("Background","gutenmate"),attr:"gtmBg",gradient:!0}]:[],...Ic(["color"],n)?[{label:(0,be.__)("Text","gutenmate"),attr:"gtmColor",gradient:!1},{label:(0,be.__)("Link","gutenmate"),attr:"gtmLinkColor",gradient:!1}]:[]]})),Ic("width",n)&&_e().createElement(we.InspectorControls,{__experimentalGroup:"dimensions",group:"dimensions"},_e().createElement(Ee.__experimentalToolsPanelItem,{hasValue:()=>!!t.gtmWidth,label:(0,be.__)("Width","gutenmate"),onDeselect:()=>a({gtmWidth:void 0}),resetAllFilter:()=>({gtmWidth:void 0}),isShownByDefault:Lc("width",n),panelId:e.clientId},_e().createElement(Ke.GZ,{label:(0,be.__)("Width","gutenmate"),value:t.gtmWidth,max:"1000",onChange:e=>{a({gtmWidth:e})}}))),Ic("height",n)&&_e().createElement(we.InspectorControls,{__experimentalGroup:"dimensions",group:"dimensions"},_e().createElement(Ee.__experimentalToolsPanelItem,{hasValue:()=>!!t.gtmHeight,label:(0,be.__)("Height","gutenmate"),onDeselect:()=>a({gtmHeight:void 0}),resetAllFilter:()=>({gtmHeight:void 0}),isShownByDefault:Lc("height",n),panelId:e.clientId},_e().createElement(Ke.GZ,{label:(0,be.__)("Height","gutenmate"),value:t.gtmHeight,max:"1000",onChange:e=>{a({gtmHeight:e})}}))),Ic("lazyLoad",n)&&_e().createElement(we.InspectorAdvancedControls,null,_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Enable lazy load","gutenmate"),checked:"on"==t.gtmLazyLoad,onChange:e=>{a({gtmLazyLoad:e?"on":"off"})}})))};function Ac(e,t,a){let n={classes:[],style:{}};const l=Tc(a);if(t.hasOwnProperty("gtmWidth")&&$e(n,Pc("width",l,"block-width"),t.gtmWidth),t.hasOwnProperty("gtmHeight")&&$e(n,Pc("height",l,"block-height"),t.gtmHeight),t.hasOwnProperty("gtmMargin")&&$e(n,Pc("gtmMargin",l,"block-margin"),(0,Qe.G3)(t.gtmMargin)),t.hasOwnProperty("gtmPadding")&&$e(n,Pc("padding",l,"block-padding"),(0,Qe.G3)(t.gtmPadding)),t.hasOwnProperty("gtmRadius")&&$e(n,Pc("radius",l,"block-radius"),(0,Le.parseBorderRadiusValue)(t.gtmRadius)),t.hasOwnProperty("gtmShadow")&&$e(n,Pc("shadow",l,"block-shadow"),(0,qe.s)(t.gtmShadow)),t.hasOwnProperty("gtmBg")&&$e(n,Pc("bg",l,"block-bg"),(0,Le.parseColorValue)(t.gtmBg)),t.hasOwnProperty("gtmColor")&&$e(n,Pc("color",l,"block-color"),(0,Le.parseColorValue)(t.gtmColor)),t.hasOwnProperty("gtmLinkColor")&&$e(n,Pc("color",l,"block-link-color"),(0,Le.parseColorValue)(t.gtmLinkColor)),t.hasOwnProperty("gtmTypography")&&$e(n,Pc("typography",l,"block-typography"),(0,Je.parseTypographyProps)(t.gtmTypography)),t.hasOwnProperty("gtmTextAlign")&&Ge(n,Pc("textAlign",l,"block-text-align"),t.gtmTextAlign),t.hasOwnProperty("gtmFlexDirection")||t.hasOwnProperty("gtmFlexAlignItems")||t.hasOwnProperty("gtmFlexJustifyContent")||t.hasOwnProperty("gtmFlexWrap")||t.hasOwnProperty("gtmFlexItemSpacing")){const e=Pc("flexLayout",l,"block-flex-layout");n.classes.push(`gtm-has-${e}`),t.hasOwnProperty("gtmFlexDirection")&&$e(n,`${e}-direction`,t.gtmFlexDirection),t.hasOwnProperty("gtmFlexAlignItems")&&$e(n,`${e}-align-items`,t.gtmFlexAlignItems),t.hasOwnProperty("gtmFlexJustifyContent")&&$e(n,`${e}-justify-content`,t.gtmFlexJustifyContent),t.hasOwnProperty("gtmFlexWrap")&&$e(n,`${e}-wrap`,t.gtmFlexWrap),t.hasOwnProperty("gtmFlexItemSpacing")&&$e(n,`${e}-item-spacing`,(0,et._5)(t.gtmFlexItemSpacing))}return n.style={"{{BLOCK}}":n.style},{classes:[...e.classes,...n.classes],style:(0,Te.merge)(e.style,n.style)}}function Hc(){return Hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Hc.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/blockProps",(function(e,t){const a=Tc(e);var n;return a&&(e.attributes||={},e.supports||={},We(e.name,"block-props",Ac),Ic("width",a)&&(e.attributes.gtmWidth={type:"object",default:{}}),Ic("height",a)&&(e.attributes.gtmHeight={type:"object",default:{}}),Ic("margin",a)&&(e.attributes.gtmMargin={type:"object",default:{}}),Ic("padding",a)&&(e.attributes.gtmPadding={type:"object",default:{}}),Ic("radius",a)&&(e.attributes.gtmRadius={type:["string","object"],default:""}),Ic("shadow",a)&&(e.attributes.gtmShadow={type:"string",default:""}),Ic("bg",a)&&(e.attributes.gtmBg={type:"object",default:{}}),Ic("color",a)&&(e.attributes.gtmColor={type:"string",default:""},e.attributes.gtmLinkColor={type:"string",default:""}),Ic("typography",a)&&(e.attributes.gtmTypography={type:"object",default:{}}),Ic("textAlign",a)&&(e.attributes.gtmTextAlign={type:"string",default:""}),Ic("flexLayout",a)&&((n=t)&&Bc.push(n),e.attributes.gtmFlexDirection={type:"object",default:{}},e.attributes.gtmFlexAlignItems={type:"object",default:{}},e.attributes.gtmFlexJustifyContent={type:"object",default:{}},e.attributes.gtmFlexWrap={type:"object",default:{}},e.attributes.gtmFlexItemSpacing={type:"object",default:{}}),Ic("highDpiImage",a)&&(e.attributes.gtmImage2x={type:"number"},e.attributes.gtmImage3x={type:"number"}),Ic("hoverImage",a)&&(e.attributes.gtmHoverImage={type:"number"},Ic("highDpiImage",a)&&(e.attributes.gtmHoverImage2X={type:"number"})),Ic("lazyLoad",a)&&(e.attributes.gtmLazyLoad={type:"string",enum:["off","on"],default:"on"}),Object.keys(a).some((e=>Cc.includes(e)))&&(e.supports.gtmResponsiveAttributes=!0),Object.keys(a).includes("typography")&&(e.supports.gtmUseWebFonts=[...e.supports.gtmUseWebFonts||[],"gtmTypography"])),e}),20),(0,uc.addFilter)(dc,"gtm/blockProps",(function(e,t){return Tc(t.name)&&e.push(_e().createElement(Oc,kc({key:e.length+1},t))),e}),20);const jc=e=>{const{attributes:t,setAttributes:a}=e;return(0,xe.useSelect)((t=>{const{getBlockParents:a,getBlock:n}=t(we.store),l=a(e.clientId);if(l.length){return o=n(l[l.length-1]).name,Bc.includes(o)}var o;return!1}),[])?_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Block child's layout options","gutenmate"),initialOpen:!1},_e().createElement(mc,{label:(0,be.__)("Allow grow","gutenmate"),help:(0,be.__)("The size of block will be increased to fit within the area","gutenmate"),value:t.gtmFlexGrow,onChange:e=>{a({gtmFlexGrow:e})}}),_e().createElement(mc,{label:(0,be.__)("Allow shrink","gutenmate"),help:(0,be.__)("The size of block will be decreased to fit within the area","gutenmate"),value:t.gtmFlexShrink,onChange:e=>{a({gtmFlexShrink:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Basis size","gutenmate"),help:(0,be.__)("The initial size of the block.","gutenmate"),value:t.gtmFlexBasis,onChange:e=>{a({gtmFlexBasis:e})}}))):_e().createElement(Ce.Fragment,null)};function Nc(e,t,a){let n={classes:[],style:{}};return t.hasOwnProperty("gtmFlexShrink")&&void 0!==t.gtmFlexShrink&&$e(n,"flexbox-shrink",t.gtmFlexShrink),t.hasOwnProperty("gtmFlexGrow")&&void 0!==t.gtmFlexGrow&&$e(n,"flexbox-grow",t.gtmFlexGrow),t.hasOwnProperty("gtmFlexBasis")&&$e(n,"flexbox-basis",t.gtmFlexBasis),n.style={"{{BLOCK}}":n.style},{classes:[...e.classes,...n.classes],style:(0,Te.merge)(e.style,n.style)}}function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Rc.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/extendFlexboxChild",(function(e,t){return We(e.name,"flexbox-child",Nc),e.attributes.gtmFlexGrow={type:"object"},e.attributes.gtmFlexShrink={type:"object"},e.attributes.gtmFlexBasis={type:"object"},e}),20),(0,uc.addFilter)(dc,"gtm/extendFlexboxChild",(function(e,t){return e.push(_e().createElement(jc,Hc({key:e.length+1},t))),e}),20);const Vc=({withAnyOption:e=!1,...t})=>{const a=(0,xe.useSelect)((t=>{const{getPostTypes:a}=t(At.store),n=(0,Te.filter)(a(),(e=>e.viewable));return[...e?[{label:(0,be.__)("Any post type","gutenmate"),value:""}]:[],...n.map((e=>({label:e.labels.name,value:e.slug})))??[]]}));return(0,Ce.useEffect)((()=>{(0,Te.isEmpty)(a)||(0,Te.find)(a,{value:t.value})||t.onChange(a[0].value)})),(0,Te.isEmpty)(a)?_e().createElement(Ee.Spinner,null):_e().createElement(Ee.SelectControl,Rc({options:a},t))},zc=({withAnyOption:e=!1,...t})=>{const a=[...e?[{label:(0,be.__)("Any format","gutenmate"),value:""}]:[],{label:(0,be.__)("Image","gutenmate"),value:"image"},{label:(0,be.__)("Gallery","gutenmate"),value:"gallery"},{label:(0,be.__)("Video","gutenmate"),value:"video"},{label:(0,be.__)("Audio","gutenmate"),value:"audio"},{label:(0,be.__)("Link","gutenmate"),value:"link"},{label:(0,be.__)("Quote","gutenmate"),value:"quote"},{label:(0,be.__)("Status","gutenmate"),value:"status"},{label:(0,be.__)("Chat","gutenmate"),value:"chat"},{label:(0,be.__)("Aside","gutenmate"),value:"aside"}];return(0,Ce.useEffect)((()=>{(0,Te.isEmpty)(a)||(0,Te.find)(a,{value:t.value})||t.onChange(a[0].value)})),_e().createElement(Ee.SelectControl,Rc({options:a},t))},Fc=e=>{const t=[{label:(0,be.__)("Administrator","gutenmate"),value:"administrator"},{label:(0,be.__)("Editor","gutenmate"),value:"editor"},{label:(0,be.__)("Author","gutenmate"),value:"author"},{label:(0,be.__)("Contributor","gutenmate"),value:"contributor"},{label:(0,be.__)("Subscriber","gutenmate"),value:"subscriber"}];return(0,Ce.useEffect)((()=>{(0,Te.isEmpty)(t)||e.value&&(0,Te.find)(t,{value:e.value})||e.onChange(t[0].value)})),_e().createElement(Ee.SelectControl,Rc({options:t},e))},Mc=e=>{const t=["nav_menu"],a=(0,xe.useSelect)((e=>{const{getTaxonomies:a}=e(At.store);return(0,Te.filter)(a(),(e=>!t.includes(e.slug))).map((e=>({label:e.labels.name,value:e.slug})))}));return(0,Ce.useEffect)((()=>{(0,Te.isEmpty)(a)||e.value&&(0,Te.find)(a,{value:e.value})||e.onChange(a[0].value)})),(0,Te.isEmpty)(a)?_e().createElement(Ee.Spinner,null):_e().createElement(Ee.SelectControl,Rc({options:a},e))},Dc=e=>{const t=(0,xe.useSelect)((e=>{const{getEntityRecords:t}=e(At.store);return t("taxonomy","category")?.map((e=>({label:e.name,value:`${e.id}`})))}));return(0,Ce.useEffect)((()=>{(0,Te.isEmpty)(t)||e.value&&(0,Te.find)(t,{value:e.value})||e.onChange(t[0].value)})),(0,Te.isEmpty)(t)?_e().createElement(Ee.Spinner,null):_e().createElement(Ee.SelectControl,Rc({options:t},e))},Wc=Lt.Z.div`
	padding: 12px 16px;
	border: 1px solid rgba(0, 0, 0, 0.1);

	.components-base-control {
		margin-bottom: 12px;
	}
`,$c=(0,Lt.Z)(Ee.__experimentalToggleGroupControl)`
	min-height: 28px !important;
`,Gc=(0,Lt.Z)(Ee.__experimentalToggleGroupControlOption)`
	padding: 0 8px !important;
	line-height: 22px;

	div {
		font-size: 11px !important;
		text-transform: uppercase;
	}
`,Uc=(0,Lt.Z)(Ee.Button)`
	margin-top: 16px;

	&:only-child {
		margin-top: -4px;
	}
`,Zc=Lt.Z.div`
	.components-base-control,
	.components-base-control__field {
		margin-left: 0 !important;
		margin-bottom: 0 !important;
	}
`,qc=((0,Lt.Z)(Ee.Button)`
	color: #fff;
	background-color: #1e1e1e;
	margin-top: 8px;
	margin-bottom: 8px;
`,(0,Lt.Z)(Ee.__experimentalHStack)`
	margin-top: 12px;
`),Jc=(0,Lt.Z)(Ee.Button)`
	color: var(--wp-admin-theme-color);
`,Kc={entity:"screen",condition:"single",operator:"and"},Qc=[{label:(0,be.__)("Has ID","gutenmate"),value:"id"},{label:(0,be.__)("Has post type","gutenmate"),value:"type"},{label:(0,be.__)("Has thumbnail","gutenmate"),value:"thumbnail"},{label:(0,be.__)("Has no thumbnail","gutenmate"),value:"no-thumbnail"},{label:(0,be.__)("Has format","gutenmate"),value:"format"},{label:(0,be.__)("Has no format","gutenmate"),value:"no-format"},{label:(0,be.__)("Has any categories","gutenmate"),value:"has-cats"},{label:(0,be.__)("Has no categories","gutenmate"),value:"no-cats"},{label:(0,be.__)("Has any tags","gutenmate"),value:"has-tags"},{label:(0,be.__)("Has no tags","gutenmate"),value:"no-tags"},{label:(0,be.__)("Has comments","gutenmate"),value:"has-comments"},{label:(0,be.__)("Has no comments","gutenmate"),value:"no-comments"},{label:(0,be.__)("Is protected","gutenmate"),value:"protected"},{label:(0,be.__)("Is not protected","gutenmate"),value:"not-protected"},{label:(0,be.__)("In category","gutenmate"),value:"cat"}],Xc=[{label:(0,be.__)("Has ID","gutenmate"),value:"id"},{label:(0,be.__)("Has subterms","gutenmate"),value:"subterms"},{label:(0,be.__)("Has no subterms","gutenmate"),value:"no-subterms"}],Yc=[{label:(0,be.__)("Is single","gutenmate"),value:"single"},{label:(0,be.__)("Is singular","gutenmate"),value:"singular"},{label:(0,be.__)("Is archive","gutenmate"),value:"archive"},{label:(0,be.__)("Is taxonomy","gutenmate"),value:"tax"},{label:(0,be.__)("Is front page","gutenmate"),value:"frontpage"},{label:(0,be.__)("Is not front page","gutenmate"),value:"not-frontpage"}],eu=[{label:(0,be.__)("Has biography","gutenmate"),value:"has-bio"},{label:(0,be.__)("Has social networks","gutenmate"),value:"has-socials"}],tu=[{label:(0,be.__)("Has ID","gutenmate"),value:"id"},{label:(0,be.__)("Has role","gutenmate"),value:"role"},{label:(0,be.__)("Is logged in","gutenmate"),value:"logged-in"},{label:(0,be.__)("Is not logged in","gutenmate"),value:"not-logged-in"}],au=[{label:(0,be.__)("Equal","gutenmate"),value:"eq"},{label:(0,be.__)("Not equal","gutenmate"),value:"ne"},{label:(0,be.__)("Has value","gutenmate"),value:"has-val"},{label:(0,be.__)("Has no value","gutenmate"),value:"no-val"}],nu=[{label:(0,be.__)("Has value","gutenmate"),value:"has-val"},{label:(0,be.__)("Has no value","gutenmate"),value:"no-val"}],lu=Object.keys(gtm_config?.custom_fields||{}).map((e=>({label:gtm_config?.custom_fields[e].title,value:e}))),ou=({index:e,condition:t,onChange:a=Te.noop,onDelete:n=Te.noop,onMoveUp:l=Te.noop,onMoveDown:o=Te.noop})=>{const r="screen"==(t=t??{}).entity,i="post"==t.entity,s="term"==t.entity,c="author"==t.entity,u="user"==t.entity,m="meta"==t.entity,g="fieldset"==t.entity;let p=!0;i&&t.condition;const d={value:t.criteria,onChange:e=>{a({...t,criteria:e})}},b=(h=t.entity,y=t.condition,_=d,!("screen"==h&&"frontpage"==y||"screen"==h&&"not-frontpage"==y||"post"==h&&"thumbnail"==y||"post"==h&&"no-thumbnail"==y||"post"==h&&"no-format"==y||"post"==h&&"protected"==y||"post"==h&&"not-protected"==y||"post"==h&&"has-cats"==y||"post"==h&&"no-cats"==y||"post"==h&&"has-tags"==y||"post"==h&&"no-tags"==y||"post"==h&&"has-comments"==y||"post"==h&&"no-comments"==y||"term"==h&&"subterms"==y||"term"==h&&"no-subterms"==y||"author"==h&&"has-bio"==y||"author"==h&&"has-socials"==y||"user"==h&&"logged-in"==y||"user"==h&&"not-logged-in"==y||"meta"==h&&"has-val"==y||"meta"==h&&"no-val"==y||"fieldset"==h&&"has-val"==y||"fieldset"==h&&"no-val"==y)&&("screen"==h&&"tax"==y?_e().createElement(Mc,_):"post"==h&&"id"==y||"screen"==h&&"single"==y?_e().createElement(Ee.__experimentalNumberControl,Rc({placeholder:(0,be.__)("Post ID","gutenmate")},_)):"screen"==h&&"singular"==y||"screen"==h&&"archive"==y?_e().createElement(Vc,Rc({withAnyOption:!0},_)):"post"==h&&"type"==y?_e().createElement(Vc,_):"post"==h&&"format"==y?_e().createElement(zc,Rc({withAnyOption:!0},_)):"post"==h&&"cat"==y?_e().createElement(Dc,_):"term"==h&&"id"==y?_e().createElement(Ee.__experimentalNumberControl,Rc({placeholder:(0,be.__)("Term ID","gutenmate")},_)):"user"==h&&"id"==y?_e().createElement(Ee.__experimentalNumberControl,Rc({placeholder:(0,be.__)("User ID","gutenmate")},_)):"user"==h&&"role"==y?_e().createElement(Fc,_):_e().createElement(Ee.TextControl,Rc({label:void 0,autoComplete:"off"},_))));var h,y,_;return _e().createElement(Ce.Fragment,null,e>0&&_e().createElement($c,{value:t.operator,onChange:e=>{a({...t,operator:e})}},_e().createElement(Gc,{key:"and",value:"and",label:(0,be.__)("And","gutenmate")}),_e().createElement(Gc,{key:"or",value:"or",label:(0,be.__)("Or","gutenmate")})),_e().createElement(Wc,null,_e().createElement(Ee.SelectControl,{label:(0,be.__)("When","gutenmate"),value:t.entity,options:[{label:(0,be.__)("Screen","gutenmate"),value:"screen"},{label:(0,be.__)("Current post","gutenmate"),value:"post"},{label:(0,be.__)("Current term","gutenmate"),value:"term"},{label:(0,be.__)("Current author","gutenmate"),value:"author"},{label:(0,be.__)("Current user","gutenmate"),value:"user"},{label:(0,be.__)("Custom field","gutenmate"),value:"meta"},{label:(0,be.__)("Custom field set","gutenmate"),value:"fieldset"}],onChange:e=>{let n;"screen"==e?n=Yc[0].value:"post"==e?n=Qc[0].value:"term"==e?n=Xc[0].value:"author"==e?n=eu[0].value:"user"==e?n=tu[0].value:"meta"==e?n=au[0].value:"fieldset"==e&&(n=nu[0].value),a({...t,entity:e,entityCriteria:void 0,condition:n,criteria:void 0})}}),m&&_e().createElement(Ee.TextControl,{label:(0,be.__)("Name","gutenmate"),value:t.entityCriteria,autoComplete:"off",onChange:e=>{a({...t,entityCriteria:e})}}),g&&_e().createElement(Ee.SelectControl,{label:(0,be.__)("Fieldset","gutenmate"),value:t.entityCriteria,options:[{label:"",value:""},...lu],onChange:e=>{a({...t,entityCriteria:e})}}),_e().createElement(Ee.__experimentalHStack,{alignment:"bottom",justify:"flex-start"},_e().createElement(Zc,null,_e().createElement(Ee.SelectControl,{value:t.condition,options:[...r?Yc:[],...i?Qc:[],...s?Xc:[],...c?eu:[],...u?tu:[],...m?au:[],...g?nu:[]],onChange:e=>{a({...t,condition:e})}})),!!b&&_e().createElement(Zc,null,b)),_e().createElement(qc,{justify:"flex-start"},_e().createElement(Jc,{isSmall:!0,onClick:n},(0,be.__)("Delete","gutenmate")),_e().createElement(Jc,{isSmall:!0,onClick:l},(0,be.__)("Move up","gutenmate")),_e().createElement(Jc,{isSmall:!0,onClick:o},(0,be.__)("Move down","gutenmate")))))},ru=({conditions:e=[],onChange:t})=>_e().createElement("div",null,e.map(((a,n)=>_e().createElement(ou,{key:n,index:n,condition:a,onChange:a=>{e[n]=a,t([...e])},onDelete:()=>{e.splice(n,1),t([...e])},onMoveUp:()=>{if(n>0){const a=[...e];a[n]=e[n-1],a[n-1]=e[n],t(a)}},onMoveDown:()=>{if(n+1<e.length){const a=[...e];a[n]=e[n+1],a[n+1]=e[n],t(a)}}}))),_e().createElement(Uc,{variant:"secondary",isSmall:!0,onClick:a=>{e.push({...Kc}),t([...e])}},(0,be.__)("Add condition","gutenmate")));function iu(){return iu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},iu.apply(this,arguments)}const su={hideEmptyInnerBlock:!1};function cu(e,t=""){const a=function(e,t=""){let a=(0,de.getBlockSupport)(e,"gtmBlockVisibility");if(!1===a||!["boolean","object"].includes(typeof a))return!1;!0===a&&(a=[]);let n={...su,...a};return""!=t?n[t]:n}(e);return!!a&&(""==t||Object.keys(a).includes(t)&&a[t])}const uu=e=>{const{attributes:t,setAttributes:a}=e,[n,l]=(0,Ce.useState)(null);let o;return"visible"===t.gtmDisplayConditionBehavior?o=(0,be.__)("The block will be display when the below condition are met","gutenmate"):"hidden"===t.gtmDisplayConditionBehavior&&(o=(0,be.__)("The block will be hidden when the below condition are met","gutenmate")),_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Block visibility","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide on Desktop","gutenmate"),checked:t.gtmHideDesktop,onChange:e=>a({gtmHideDesktop:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide on Tablet","gutenmate"),checked:t.gtmHideTablet,onChange:e=>a({gtmHideTablet:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide on Phone","gutenmate"),checked:t.gtmHidePhone,onChange:e=>a({gtmHidePhone:e})}),Object.keys(t).includes("gtmHideEmptyInnerBlock")&&_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Hide when the content is empty","gutenmate"),checked:t.gtmHideEmptyInnerBlock,onChange:e=>a({gtmHideEmptyInnerBlock:e})}),_e().createElement(Ee.__experimentalToggleGroupControl,{label:(0,be.__)("Conditional display","gutenmate"),help:o,value:t.gtmDisplayConditionBehavior||"off",isBlock:!0,onChange:e=>{let l={gtmDisplayConditionBehavior:e};"off"===t.gtmDisplayConditionBehavior&&"off"!==e&&n&&(l={...l,gtmDisplayConditions:n}),"off"===e&&(l={...l,gtmDisplayConditions:void 0}),a(l)}},_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"off",value:"off",label:(0,be.__)("Off","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"visible",value:"visible",label:(0,be.__)("Visible","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"hidden",value:"hidden",label:(0,be.__)("Hidden","gutenmate")})),"off"!==t.gtmDisplayConditionBehavior&&_e().createElement(Ce.Fragment,null,_e().createElement(ru,{conditions:t.gtmDisplayConditions,onChange:e=>{l(e),void 0!==e&&e.length>0?a({gtmDisplayConditions:e}):a({gtmDisplayConditions:void 0})}}),_e().createElement("p",null)),_e().createElement(Ee.__experimentalToggleGroupControl,{label:(0,be.__)("When sticky header activated","gutenmate"),help:(0,be.__)("This option is only usable when the block is contained within a sticky header.","gutenmate"),value:t.gtmStickyHeaderStuck,isBlock:!0,onChange:e=>{a({gtmStickyHeaderStuck:e})}},_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"unset",value:"",label:(0,be.__)("Unset","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"hide",value:"hide",label:(0,be.__)("Hide","gutenmate")}),_e().createElement(Ee.__experimentalToggleGroupControlOption,{key:"show",value:"show",label:(0,be.__)("Show","gutenmate")}))))};function mu(e,t,a){return t.gtmHideDesktop&&e.classes.push("gtm-hide-desktop"),t.gtmHideTablet&&e.classes.push("gtm-hide-tablet"),t.gtmHidePhone&&e.classes.push("gtm-hide-phone"),e}function gu(){return gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},gu.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/extendBlockVisibility",(function(e,t){return cu(e)&&(We(e.name,"block-visibility",mu),e.attributes.gtmHideDesktop||={type:"boolean",default:!1},e.attributes.gtmHideTablet||={type:"boolean",default:!1},e.attributes.gtmHidePhone||={type:"boolean",default:!1},cu(e,"hideEmptyInnerBlock")&&(e.attributes.gtmHideEmptyInnerBlock||={type:"boolean",default:!1}),e.attributes.gtmDisplayConditionBehavior||={type:"string",default:"off"},e.attributes.gtmDisplayConditions||={type:"array"},e.attributes.gtmStickyHeaderStuck||={type:"string",default:""}),e}),20),(0,uc.addFilter)(dc,"gtm/extendBlockVisibility",(function(e,t){return cu(t.name)&&e.push(_e().createElement(uu,iu({key:e.length+1},t))),e}),20);const pu="gtmLineClamp",du=e=>{const{attributes:t,setAttributes:a}=e;return(0,de.getBlockSupport)(e.name,pu,!1)?_e().createElement(we.InspectorControls,{__experimentalGroup:"typography",group:"typography"},_e().createElement(Ee.__experimentalToolsPanelItem,{hasValue:()=>!!e.gtmLineClamp,label:(0,be.__)("Line clamp","gutenmate"),onDeselect:()=>a({gtmLineClamp:void 0}),resetAllFilter:()=>({gtmLineClamp:void 0}),isShownByDefault:!0,panelId:e.clientId},_e().createElement($t.x,{label:(0,be.__)("Line clamp","gutenmate"),min:"0",max:"100",step:"1",enableResponsive:!0,value:t.gtmLineClamp,onChange:e=>{a({gtmLineClamp:e})}}))):_e().createElement(Ce.Fragment,null)};function bu(e,t,a){let n={classes:[],style:{}};return t.hasOwnProperty("gtmLineClamp")&&void 0!==t.gtmLineClamp&&$e(n,"line-clamp",t.gtmLineClamp),n.style={"{{BLOCK}}":n.style},{classes:[...e.classes,...n.classes],style:(0,Te.merge)(e.style,n.style)}}function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},hu.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/gtmLineClamp",(function(e,t){return e?.supports?.hasOwnProperty(pu)&&e.supports.gtmLineClamp&&(We(e.name,"gtm-line-clamp",bu),e.attributes.gtmLineClamp={type:"object",default:{}},e.supports||={},e.supports.gtmResponsiveAttributes=!0),e}),20),(0,uc.addFilter)(dc,"gtm/gtmLineClamp",(function(e,t){return e.push(_e().createElement(du,gu({key:e.length+1},t))),e}),20);const yu=e=>{const{attributes:t,setAttributes:a}=e;return _e().createElement(we.InspectorAdvancedControls,null,_e().createElement(Ee.TextControl,{className:"gtm-radio-control",label:(0,be.__)("Block ID","gutenmate"),help:(0,be.__)("A unique identifier used for server-side identification of this block.","gutenmate"),value:t.gtmBlockId??"",onChange:e=>{a(""==e?{gtmBlockId:void 0}:{gtmBlockId:e})}}))};function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},_u.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/extendBlockId",(function(e,t){return e.attributes||={},e.attributes.gtmBlockId={type:"string",default:""},e})),(0,uc.addFilter)(dc,"gtm/extendBlockId",(function(e,t){return e.push(_e().createElement(yu,hu({key:e.length+1},t))),e}));const vu=e=>{const{attributes:t,setAttributes:a}=e;let n;return"exclusive"===t.gtmPrinting&&(n=(0,be.__)("Except for printing, the block will be invisible.","gutenmate")),_e().createElement(we.InspectorAdvancedControls,null,_e().createElement(Ee.RadioControl,{className:"gtm-radio-control",label:(0,be.__)("Printing","gutenmate"),help:n,selected:t.gtmPrinting??"",options:[{label:(0,be.__)("Always","gutenmate"),value:""},{label:(0,be.__)("Hide from printing","gutenmate"),value:"hide"},{label:(0,be.__)("Printing only","gutenmate"),value:"exclusive"}],onChange:e=>{a(""==e?{gtmPrinting:void 0}:{gtmPrinting:e})}}))};function fu(e,t){const a=Eu(e),n=Eu(t),l=a.pop(),o=n.pop(),r=Tu(a,n);return 0!==r?r:l&&o?Tu(l.split("."),o.split(".")):l||o?l?-1:1:0}(0,uc.addFilter)(pc,"gtm/extendBlockPrinting",(function(e,t){return e.attributes||={},e.attributes.gtmPrinting={type:"string",enum:["","hide","exclusive"],default:""},e})),(0,uc.addFilter)(dc,"gtm/extendBlockPrinting",(function(e,t){return e.push(_e().createElement(vu,_u({key:e.length+1},t))),e})),We(De,"gtm-block-printing",(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()({"gtm-no-print":"hide"===t.gtmPrinting,"gtm-exclusive-print":"exclusive"===t.gtmPrinting})),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}})),(0,uc.addFilter)(pc,"gtm/extendCoreBlocks",(function(e,t){const a=gtm_config.extend_core_block_supports||{};return a.hasOwnProperty(t)&&(e.supports=Object.assign({},a[t],e.supports)),e})),(0,de.registerBlockStyle)("core/paragraph",{name:"gtm-core-paragraph-small",label:(0,be.__)("Small","gutenmate")}),(0,de.registerBlockStyle)("core/image",{name:"gtm-core-image-cover",label:(0,be.__)("Cover","gutenmate")}),(0,de.registerBlockStyle)("core/image",{name:"gtm-core-image-full-cover",label:(0,be.__)("Full Cover","gutenmate")}),(0,de.registerBlockStyle)("core/comment-template",{name:"gtm-core-comment-template-basic",label:(0,be.__)("Basic style","gutenmate")}),(0,de.registerBlockStyle)("core/post-comments-form",{name:"gtm-core-post-comments-form-basic",label:(0,be.__)("Basic style","gutenmate")}),(0,de.registerBlockStyle)("core/search",{name:"gtm-core-search-minimal",label:(0,be.__)("Minimal","gutenmate")}),(0,de.registerBlockStyle)("core/gallery",{name:"gtm-core-gallery-slider",label:(0,be.__)("Slider","gutenmate")}),(0,de.registerBlockStyle)("core/gallery",{name:"gtm-core-gallery-slider-flex",label:(0,be.__)("Flex slider","gutenmate")});const ku=(e,t,a)=>{Pu(a);const n=fu(e,t);return Bu[a].includes(n)};fu.validate=e=>"string"==typeof e&&/^[v\d]/.test(e)&&Cu.test(e),fu.compare=ku,fu.sastisfies=(e,t)=>{const a=t.match(/^([<>=~^]+)/),n=a?a[1]:"=";if("^"!==n&&"~"!==n)return ku(e,t,n);const[l,o,r]=Eu(e),[i,s,c]=Eu(t);return 0===xu(l,i)&&("^"===n?Tu([o,r],[s,c])>=0:0===xu(o,s)&&xu(r,c)>=0)};const Cu=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,Eu=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(Cu);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},wu=e=>"*"===e||"x"===e||"X"===e,Su=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},xu=(e,t)=>{if(wu(e)||wu(t))return 0;const[a,n]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(Su(e),Su(t));return a>n?1:a<n?-1:0},Tu=(e,t)=>{for(let a=0;a<Math.max(e.length,t.length);a++){const n=xu(e[a]||0,t[a]||0);if(0!==n)return n}return 0},Bu={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]},Iu=Object.keys(Bu),Pu=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===Iu.indexOf(e))throw new Error(`Invalid operator, expected one of ${Iu.join("|")}`)};function Lu(){return Lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Lu.apply(this,arguments)}const Ou="core/navigation",Au=e=>{const{attributes:t,setAttributes:a}=e,n=Hu(t.className),l="horizontal"===(t.layout?.orientation??t.orientation)&&"always"!==t.overlayMenu,o=t.openSubmenusOnClick||t.showSubmenuIcon;return _e().createElement(Ce.Fragment,null,n&&_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Top-level appearance","gutenmate"),initialOpen:!1},_e().createElement(Je.default,{value:t.gtmTopLevelItemTypography,onChange:e=>a({gtmTopLevelItemTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Menu item spacing","gutenmate"),value:t.gtmTopLevelItemSpacing,onChange:e=>a({gtmTopLevelItemSpacing:e})}),o&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.gtmTopLevelIconSize,max:"100",onChange:e=>{a({gtmTopLevelIconSize:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),value:t.gtmTopLevelIconSpacing,onChange:e=>a({gtmTopLevelIconSpacing:e})})),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.gtmTopLevelLinkRadius,onChange:e=>{a({gtmTopLevelLinkRadius:e})}}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.gtmTopLevelLinkPadding,onChange:e=>{a({gtmTopLevelLinkPadding:e})}})),_e().createElement(Ye,{title:(0,be.__)("Top-level color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Link color","gutenmate"),attr:"gtmTopLevelLinkColor"},{label:(0,be.__)("Link background","gutenmate"),attr:"gtmTopLevelLinkBg",gradient:!0},{label:(0,be.__)("Link hover color","gutenmate"),attr:"gtmTopLevelLinkHoverColor"},{label:(0,be.__)("Link hover background","gutenmate"),attr:"gtmTopLevelLinkHoverBg",gradient:!0}]}),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Sub-level appearance","gutenmate"),initialOpen:!1},_e().createElement(Je.default,{value:t.gtmSubLevelItemTypography,onChange:e=>a({gtmSubLevelItemTypography:e})}),_e().createElement(et.wH,{label:(0,be.__)("Menu item spacing","gutenmate"),value:t.gtmSubLevelItemSpacing,onChange:e=>a({gtmSubLevelItemSpacing:e})}),o&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.GZ,{label:(0,be.__)("Icon size","gutenmate"),value:t.gtmSubLevelIconSize,max:"100",onChange:e=>{a({gtmSubLevelIconSize:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Icon spacing","gutenmate"),value:t.gtmSubLevelIconSpacing,onChange:e=>a({gtmSubLevelIconSpacing:e})})),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.gtmSubLevelLinkRadius,onChange:e=>{a({gtmSubLevelLinkRadius:e})}}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.gtmSubLevelLinkPadding,onChange:e=>{a({gtmSubLevelLinkPadding:e})}})),_e().createElement(Ye,{title:(0,be.__)("Sub-level color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Link color","gutenmate"),attr:"gtmSubLevelLinkColor"},{label:(0,be.__)("Link background","gutenmate"),attr:"gtmSubLevelLinkBg",gradient:!0},{label:(0,be.__)("Link hover color","gutenmate"),attr:"gtmSubLevelLinkHoverColor"},{label:(0,be.__)("Link hover background","gutenmate"),attr:"gtmSubLevelLinkHoverBg",gradient:!0}]}),_e().createElement(Ee.PanelBody,{title:(0,be.__)("Submenu appearance","gutenmate"),initialOpen:!1},_e().createElement(et.wH,{label:(0,be.__)("Spacing","gutenmate"),value:t.gtmSubmenuSpacing,onChange:e=>a({gtmSubmenuSpacing:e})}),_e().createElement(Qe.ZP,{label:(0,be.__)("Padding","gutenmate"),value:t.gtmSubmenuPadding,onChange:e=>{a({gtmSubmenuPadding:e})}}),l&&_e().createElement(Ce.Fragment,null,_e().createElement(Ke.GZ,{label:(0,be.__)("Width","gutenmate"),value:t.gtmSubmenuWidth,max:"500",onChange:e=>{a({gtmSubmenuWidth:e})}}),_e().createElement(we.__experimentalBorderRadiusControl,{values:t.gtmSubmenuRadius,onChange:e=>{a({gtmSubmenuRadius:e})}}))),l&&_e().createElement(Ce.Fragment,null,_e().createElement(Ye,{title:(0,be.__)("Submenu color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Submenu background","gutenmate"),attr:"gtmSubmenuBg",gradient:!0}]})),"never"!==t.overlayMenu&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Overlay menu appearance","gutenmate"),initialOpen:!1},_e().createElement(Ke.GZ,{label:(0,be.__)("Menu icon size","gutenmate"),value:t.gtmOverlayMenuIconSize,max:"100",onChange:e=>{a({gtmOverlayMenuIconSize:e})}}),_e().createElement(Ke.GZ,{label:(0,be.__)("Close icon size","gutenmate"),value:t.gtmOverlayMenuCloseIconSize,max:"100",onChange:e=>{a({gtmOverlayMenuCloseIconSize:e})}}),_e().createElement(et.wH,{label:(0,be.__)("Submenu indent","gutenmate"),value:t.gtmOverlayMenuSubmenuIndent,onChange:e=>a({gtmOverlayMenuSubmenuIndent:e})})),_e().createElement(Ye,{title:(0,be.__)("Overlay menu color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Icon color","gutenmate"),attr:"gtmOverlayMenuIconColor",gradient:!1},{label:(0,be.__)("Close icon color","gutenmate"),attr:"gtmOverlayMenuCloseIconColor",gradient:!1},{label:(0,be.__)("Overlay background","gutenmate"),attr:"gtmOverlayMenuBg",gradient:!0},{label:(0,be.__)("Link color","gutenmate"),attr:"gtmOverlayMenuLinkColor",gradient:!1},{label:(0,be.__)("Link hover color","gutenmate"),attr:"gtmOverlayMenuLinkHoverColor",gradient:!1}]}))))};function Hu(e){return!!e&&gtm_config.gtm_core_navigation_styles?.reduce(((t,a)=>t||e.includes("is-style-"+a)),!1)}function ju(){return ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ju.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/extendCoreNavigation",(function(e,t){return Ou===t&&(e={...e,attributes:{...e.attributes,gtmTopLevelItemTypography:{type:"object",default:{}},gtmTopLevelItemSpacing:{type:"object",default:{}},gtmTopLevelIconSize:{type:"object",default:{}},gtmTopLevelIconSpacing:{type:"object",default:{}},gtmTopLevelLinkRadius:{type:["string","object"],default:""},gtmTopLevelLinkPadding:{type:"object",default:{}},gtmTopLevelLinkColor:{type:"string",default:""},gtmTopLevelLinkBg:{type:"object",default:{}},gtmTopLevelLinkHoverColor:{type:"string",default:""},gtmTopLevelLinkHoverBg:{type:"object",default:{}},gtmSubLevelItemTypography:{type:"object",default:{}},gtmSubLevelItemSpacing:{type:"object",default:{}},gtmSubLevelIconSize:{type:"object",default:{}},gtmSubLevelIconSpacing:{type:"object",default:{}},gtmSubLevelLinkRadius:{type:["string","object"],default:""},gtmSubLevelLinkPadding:{type:"object",default:{}},gtmSubLevelLinkColor:{type:"string",default:""},gtmSubLevelLinkBg:{type:"object",default:{}},gtmSubLevelLinkHoverColor:{type:"string",default:""},gtmSubLevelLinkHoverBg:{type:"object",default:{}},gtmSubmenuWidth:{type:"object",default:{}},gtmSubmenuSpacing:{type:"object",default:{}},gtmSubmenuRadius:{type:["string","object"],default:""},gtmSubmenuPadding:{type:"object",default:{}},gtmSubmenuBg:{type:"object",default:{}},gtmOverlayMenuIconSize:{type:"object",default:{}},gtmOverlayMenuCloseIconSize:{type:"object",default:{}},gtmOverlayMenuSubmenuIndent:{type:"object",default:{}},gtmOverlayMenuIconColor:{type:"string",default:""},gtmOverlayMenuCloseIconColor:{type:"string",default:""},gtmOverlayMenuBg:{type:"object",default:{}},gtmOverlayMenuLinkColor:{type:"string",default:""},gtmOverlayMenuLinkHoverColor:{type:"string",default:""}},supports:{...e.supports,gtmBlockVisibility:!0,gtmResponsiveAttributes:!0}}),e})),(0,uc.addFilter)(dc,"gtm/extendCoreNavigation",(function(e,t){return Ou.includes(t.name)&&e.push(_e().createElement(Au,Lu({key:e.length+1},t))),e})),(0,de.registerBlockStyle)("core/navigation",{name:"gtm-core-navigation-gutenmate",label:(0,be.__)("Gutenmate","gutenmate")}),(0,de.registerBlockStyle)("core/navigation",{name:"gtm-core-navigation-list-mini",label:(0,be.__)("Mini list","gutenmate")}),We(Ou,Ou,(function(e,t){const a="horizontal"===(t.layout?.orientation??t.orientation)&&"always"!==t.overlayMenu;let n={classes:[],style:{}};return ku((0,Le.getGutenbergVersion)(),"12","<")&&n.classes.push((0,Le.getGutenbergVersionClass)()),Hu(t.className)&&n.classes.push(gtm_config.gtm_core_navigation_style_class),n.classes.push(fe()("gtm-block",{"gtm-has-core-navigation-show-submenu-icon":t.showSubmenuIcon})),$e(n,"core-navigation-top-level-item-typography",(0,Je.parseTypographyProps)(t.gtmTopLevelItemTypography)),$e(n,"core-navigation-top-level-item-spacing",(0,et._5)(t.gtmTopLevelItemSpacing)),$e(n,"core-navigation-top-level-icon-size",t.gtmTopLevelIconSize),$e(n,"core-navigation-top-level-icon-spacing",(0,et._5)(t.gtmTopLevelIconSpacing)),$e(n,"core-navigation-top-level-link-radius",(0,Le.parseBorderRadiusValue)(t.gtmTopLevelLinkRadius)),$e(n,"core-navigation-top-level-link-padding",(0,Qe.G3)(t.gtmTopLevelLinkPadding)),$e(n,"core-navigation-top-level-link-color",(0,Le.parseColorValue)(t.gtmTopLevelLinkColor)),$e(n,"core-navigation-top-level-link-bg",(0,Le.parseColorValue)(t.gtmTopLevelLinkBg)),$e(n,"core-navigation-top-level-link-hover-color",(0,Le.parseColorValue)(t.gtmTopLevelLinkHoverColor)),$e(n,"core-navigation-top-level-link-hover-bg",(0,Le.parseColorValue)(t.gtmTopLevelLinkHoverBg)),$e(n,"core-navigation-sub-level-item-typography",(0,Je.parseTypographyProps)(t.gtmSubLevelItemTypography)),$e(n,"core-navigation-sub-level-item-spacing",(0,et._5)(t.gtmSubLevelItemSpacing)),$e(n,"core-navigation-sub-level-icon-size",t.gtmSubLevelIconSize),$e(n,"core-navigation-sub-level-icon-spacing",(0,et._5)(t.gtmSubLevelIconSpacing)),$e(n,"core-navigation-sub-level-link-radius",(0,Le.parseBorderRadiusValue)(t.gtmSubLevelLinkRadius)),$e(n,"core-navigation-sub-level-link-padding",(0,Qe.G3)(t.gtmSubLevelLinkPadding)),$e(n,"core-navigation-sub-level-link-color",(0,Le.parseColorValue)(t.gtmSubLevelLinkColor)),$e(n,"core-navigation-sub-level-link-bg",(0,Le.parseColorValue)(t.gtmSubLevelLinkBg)),$e(n,"core-navigation-sub-level-link-hover-color",(0,Le.parseColorValue)(t.gtmSubLevelLinkHoverColor)),$e(n,"core-navigation-sub-level-link-hover-bg",(0,Le.parseColorValue)(t.gtmSubLevelLinkHoverBg)),$e(n,"core-navigation-submenu-spacing",(0,et._5)(t.gtmSubmenuSpacing)),$e(n,"core-navigation-submenu-padding",(0,Qe.G3)(t.gtmSubmenuPadding)),a&&($e(n,"core-navigation-submenu-width",t.gtmSubmenuWidth),$e(n,"core-navigation-submenu-radius",(0,Le.parseBorderRadiusValue)(t.gtmSubmenuRadius)),$e(n,"core-navigation-submenu-bg",(0,Le.parseColorValue)(t.gtmSubmenuBg))),"never"!==t.overlayMenu&&($e(n,"core-navigation-overlay-menu-icon-size",t.gtmOverlayMenuIconSize),$e(n,"core-navigation-overlay-menu-close-icon-size",t.gtmOverlayMenuCloseIconSize),$e(n,"core-navigation-overlay-menu-submenu-indent",(0,et._5)(t.gtmOverlayMenuSubmenuIndent)),$e(n,"core-navigation-overlay-menu-icon-color",(0,Le.parseColorValue)(t.gtmOverlayMenuIconColor)),$e(n,"core-navigation-overlay-menu-close-icon-color",(0,Le.parseColorValue)(t.gtmOverlayMenuCloseIconColor)),$e(n,"core-navigation-overlay-menu-bg",(0,Le.parseColorValue)(t.gtmOverlayMenuBg)),$e(n,"core-navigation-overlay-menu-link-color",(0,Le.parseColorValue)(t.gtmOverlayMenuLinkColor)),$e(n,"core-navigation-overlay-menu-link-hover-color",(0,Le.parseColorValue)(t.gtmOverlayMenuLinkHoverColor))),n.style={"{{BLOCK}}":n.style},{classes:[...e.classes,...n.classes],style:(0,Te.merge)(e.style,n.style)}}));const Nu=["core/query"],Ru=e=>{const{attributes:t,setAttributes:a}=e,{hasGtmPostTemplateBlock:n}=(0,xe.useSelect)((t=>{let a=!1;const[n]=t("core/block-editor").getBlocksByClientId(e.clientId);return n.innerBlocks&&n.innerBlocks.forEach((e=>{["gtm/post-template","gtm/slider-template"].includes(e.name)&&(a=!0)})),{hasGtmPostTemplateBlock:a}}),[]),l=["popular-1d","popular-7d","popular-30d"].includes(t.gtmQueryFilter);return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Extended Filters","gutenmate"),initialOpen:!1},!n&&_e().createElement(Ce.Fragment,null,_e().createElement(Ee.Notice,{className:"gtm-panel-body-notice",isDismissible:!1,status:"warning"},(0,be.__)("To use these options, Please add Extended Post Template block or Slider Template block inside Query Loop block.","gutenmate"))),_e().createElement(Ee.SelectControl,{label:(0,be.__)("Posts filter","gutenmate"),help:(0,be.__)("This filter may override some existing settings.","gutenmate"),value:t.gtmQueryFilter,options:[{label:(0,be.__)("No filters","gutenmate"),value:""},{label:(0,be.__)("Only posts has review","gutenmate"),value:"review"},{label:(0,be.__)("Only highest review scores","gutenmate"),value:"high-score-review"},{label:(0,be.__)("Only most commented posts","gutenmate"),value:"most-commented"},{label:(0,be.__)("Only posts in the same categories","gutenmate"),value:"same-cat"},{label:(0,be.__)("Only posts in the same tags","gutenmate"),value:"same-tag"},{label:(0,be.__)("Only 1-day popular posts","gutenmate"),value:"popular-1d"},{label:(0,be.__)("Only 7-days popular posts","gutenmate"),value:"popular-7d"},{label:(0,be.__)("Only 30-days popular posts","gutenmate"),value:"popular-30d"}],onChange:e=>a({gtmQueryFilter:e})}),l&&_e().createElement(Vo,null),!l&&_e().createElement(Ee.TextControl,{label:(0,be.__)("Only posts within last N days","gutenmate"),help:(0,be.__)("Enter 0 (zero) to query all posts","gutenmate"),value:t.gtmQueryLimitDays,min:"0",onChange:e=>a({gtmQueryLimitDays:e})}),_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Random order","gutenmate"),help:(0,be.__)("Use random order in query. The result may different from expectation and performance will be affected.","gutenmate"),checked:t.gtmQueryUseRandom,onChange:e=>{a({gtmQueryUseRandom:e})}}))),_e().createElement(we.InspectorAdvancedControls,null,_e().createElement(Ee.TextControl,{label:(0,be.__)("Query slug"),help:(0,be.__)("A slug for the query. This is useful for modifying the query in PHP with custom query filters.","gutenmate"),value:t.gtmQuerySlug,onChange:e=>a({gtmQuerySlug:e})})))};function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Vu.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/extendCoreQuery",(function(e,t){return Nu.includes(t)&&(e.attributes.gtmQueryFilter={type:"string",default:""},e.attributes.gtmQueryLimitDays={type:"string",default:"0"},e.attributes.gtmQueryUseRandom={type:"boolean",default:!1},e.attributes.gtmQuerySlug={type:"string",default:""},e.providesContext||={},e.providesContext.gtmQueryFilter="gtmQueryFilter",e.providesContext.gtmQueryLimitDays="gtmQueryLimitDays",e.providesContext.gtmQueryUseRandom="gtmQueryUseRandom",e.providesContext.gtmQuerySlug="gtmQuerySlug"),e})),(0,uc.addFilter)(dc,"gtm/extendCoreQuery",(function(e,t){return Nu.includes(t.name)&&e.push(_e().createElement(Ru,ju({key:e.length+1},t))),e}));const zu="core/query-pagination-numbers",Fu=e=>{const{attributes:t,setAttributes:a}=e;return _e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Page Numbers block","gutenmate"),initialOpen:!1},_e().createElement(et.wH,{label:(0,be.__)("Page number spacing","gutenmate"),value:t.gtmItemSpacing,onChange:e=>a({gtmItemSpacing:e})})),_e().createElement(Ye,{title:(0,be.__)("Page Numbers block color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"gtmItemColor"},{label:(0,be.__)("Background","gutenmate"),attr:"gtmItemBg",gradient:!0},{label:(0,be.__)("Current page color","gutenmate"),attr:"gtmItemCurrentColor"},{label:(0,be.__)("Current page background","gutenmate"),attr:"gtmItemCurrentBg",gradient:!0},{label:(0,be.__)("Hover color","gutenmate"),attr:"gtmItemHoverColor"},{label:(0,be.__)("Hover background","gutenmate"),attr:"gtmItemHoverBg",gradient:!0}]}))};function Mu(){return Mu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Mu.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/extendCoreQueryPadingationNumbers",(function(e,t){return zu==t&&(e.attributes.gtmItemSpacing={type:"object",default:{}},e.attributes.gtmItemColor={type:"string",default:""},e.attributes.gtmItemBg={type:"object",default:{}},e.attributes.gtmItemCurrentColor={type:"string",default:""},e.attributes.gtmItemCurrentBg={type:"object",default:{}},e.attributes.gtmItemHoverColor={type:"string",default:""},e.attributes.gtmItemHoverBg={type:"object",default:{}},e.supports||={},e.supports.gtmResponsiveAttributes=!0),e})),(0,uc.addFilter)(dc,"gtm/extendCoreQueryPadingationNumbers",(function(e,t){return zu.includes(t.name)&&e.push(_e().createElement(Fu,Vu({key:e.length+1},t))),e})),We(zu,zu,(function(e,t){let a={classes:[],style:{}};return $e(a,"core-query-pagination-numbers-item-spacing",(0,et._5)(t.gtmItemSpacing)),$e(a,"core-query-pagination-numbers-item-color",(0,Le.parseColorValue)(t.gtmItemColor)),$e(a,"core-query-pagination-numbers-item-bg",(0,Le.parseColorValue)(t.gtmItemBg)),$e(a,"core-query-pagination-numbers-item-current-color",(0,Le.parseColorValue)(t.gtmItemCurrentColor)),$e(a,"core-query-pagination-numbers-item-current-bg",(0,Le.parseColorValue)(t.gtmItemCurrentBg)),$e(a,"core-query-pagination-numbers-item-hover-color",(0,Le.parseColorValue)(t.gtmItemHoverColor)),$e(a,"core-query-pagination-numbers-item-hover-bg",(0,Le.parseColorValue)(t.gtmItemHoverBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const Du="core/query-pagination-next",Wu=e=>{const{attributes:t,setAttributes:a}=e;return _e().createElement(we.InspectorControls,null,_e().createElement(Ye,{title:(0,be.__)("Next Page block color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"gtmItemColor"},{label:(0,be.__)("Background","gutenmate"),attr:"gtmItemBg",gradient:!0},{label:(0,be.__)("Hover color","gutenmate"),attr:"gtmItemHoverColor"},{label:(0,be.__)("Hover background","gutenmate"),attr:"gtmItemHoverBg",gradient:!0}]}))};function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},$u.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/extendCoreQueryPadingationNext",(function(e,t){return Du==t&&(e.attributes.gtmItemColor={type:"string",default:""},e.attributes.gtmItemBg={type:"object",default:{}},e.attributes.gtmItemHoverColor={type:"string",default:""},e.attributes.gtmItemHoverBg={type:"object",default:{}}),e})),(0,uc.addFilter)(dc,"gtm/extendCoreQueryPadingationNext",(function(e,t){return Du.includes(t.name)&&e.push(_e().createElement(Wu,Mu({key:e.length+1},t))),e})),We(Du,Du,(function(e,t){let a={classes:[],style:{}};return $e(a,"core-query-pagination-next-item-color",(0,Le.parseColorValue)(t.gtmItemColor)),$e(a,"core-query-pagination-next-item-bg",(0,Le.parseColorValue)(t.gtmItemBg)),$e(a,"core-query-pagination-next-item-hover-color",(0,Le.parseColorValue)(t.gtmItemHoverColor)),$e(a,"core-query-pagination-next-item-hover-bg",(0,Le.parseColorValue)(t.gtmItemHoverBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const Gu="core/query-pagination-previous",Uu=e=>{const{attributes:t,setAttributes:a}=e;return _e().createElement(we.InspectorControls,null,_e().createElement(Ye,{title:(0,be.__)("Previous Page block color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Color","gutenmate"),attr:"gtmItemColor"},{label:(0,be.__)("Background","gutenmate"),attr:"gtmItemBg",gradient:!0},{label:(0,be.__)("Hover color","gutenmate"),attr:"gtmItemHoverColor"},{label:(0,be.__)("Hover background","gutenmate"),attr:"gtmItemHoverBg",gradient:!0}]}))};function Zu(){return Zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Zu.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/extendCoreQueryPadingationPrevious",(function(e,t){return Gu==t&&(e.attributes.gtmItemColor={type:"string",default:""},e.attributes.gtmItemBg={type:"object",default:{}},e.attributes.gtmItemHoverColor={type:"string",default:""},e.attributes.gtmItemHoverBg={type:"object",default:{}}),e})),(0,uc.addFilter)(dc,"gtm/extendCoreQueryPadingationPrevious",(function(e,t){return Gu.includes(t.name)&&e.push(_e().createElement(Uu,$u({key:e.length+1},t))),e})),We(Gu,Gu,(function(e,t){let a={classes:[],style:{}};return $e(a,"core-query-pagination-previous-item-color",(0,Le.parseColorValue)(t.gtmItemColor)),$e(a,"core-query-pagination-previous-item-bg",(0,Le.parseColorValue)(t.gtmItemBg)),$e(a,"core-query-pagination-previous-item-hover-color",(0,Le.parseColorValue)(t.gtmItemHoverColor)),$e(a,"core-query-pagination-previous-item-hover-bg",(0,Le.parseColorValue)(t.gtmItemHoverBg)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const qu="core/quote",Ju=e=>{const{attributes:t,setAttributes:a}=e;return _e().createElement(we.InspectorControls,null,_e().createElement(Ye,{title:(0,be.__)("Quote color","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Background","gutenmate"),attr:"gtmQuoteBg",gradient:!0},...t.gtmEnableQuoteClipText?[]:[{label:(0,be.__)("Quote text color","gutenmate"),attr:"gtmQuoteColor",gradient:!1}],,{label:(0,be.__)("Citation text color","gutenmate"),attr:"gtmCiteColor",gradient:!1}]},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Use background as a quote text color","gutenmate"),checked:t.gtmEnableQuoteClipText,onChange:e=>{a({gtmEnableQuoteClipText:e})}})))};function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Ku.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/extendCoreQuote",(function(e,t){return qu==t&&(e.attributes.gtmQuoteColor={type:"string",default:""},e.attributes.gtmQuoteBg={type:"object",default:{}},e.attributes.gtmCiteColor={type:"string",default:""},e.attributes.gtmEnableQuoteClipText={type:"boolean",default:!1},e.supports||={},e.supports.gtmResponsiveAttributes=!0,e.supports.gtmBlockProps={margin:!0,padding:!0,radius:!0,shadow:!0}),e})),(0,uc.addFilter)(dc,"gtm/extendCoreQuote",(function(e,t){return qu.includes(t.name)&&e.push(_e().createElement(Ju,Zu({key:e.length+1},t))),e})),We(qu,qu,(function(e,t){let a={classes:[],style:{}};return a.classes.push(fe()("gtm-block",{"gtm-has-enable-quote-clip-text":t.gtmEnableQuoteClipText})),$e(a,"core-quote-quote-bg",(0,Le.parseColorValue)(t.gtmQuoteBg)),t.gtmEnableQuoteClipText||$e(a,"core-quote-quote-color",(0,Le.parseColorValue)(t.gtmQuoteColor)),$e(a,"core-quote-cite-color",(0,Le.parseColorValue)(t.gtmCiteColor)),a.style={"{{BLOCK}}":a.style},{classes:[...e.classes,...a.classes],style:(0,Te.merge)(e.style,a.style)}}));const Qu=["core/site-logo"],Xu=e=>{const{attributes:t,setAttributes:a}=e;return _e().createElement(we.InspectorControls,null,_e().createElement(Ee.PanelBody,{title:(0,be.__)("Alternative logo","gutenmate"),initialOpen:!1},_e().createElement(Ee.ToggleControl,{label:(0,be.__)("Use the site's title as a fallback logo.","gutenmate"),help:(0,be.__)("The site's title will appear if no custom site logo has been assigned.","gutenmate"),checked:t.gtmEnableLogoFallback,onChange:e=>{a({gtmEnableLogoFallback:e})}}),_e().createElement(fl,{label:(0,be.__)("Alternative logo","gutenmate"),help:(0,be.__)("Replace current site logo in this block with alternate logo. For the best results, use the same image size.","gutenmate"),setImageLabel:(0,be.__)("Set alternative logo","gutenmate"),value:t.gtmAltLogo,onChange:e=>{a({gtmAltLogo:e?.id})}})))};function Yu(){return Yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Yu.apply(this,arguments)}(0,uc.addFilter)(pc,"gtm/extendCoreSiteLogo",(function(e,t){return Qu.includes(t)&&(e.attributes.gtmEnableLogoFallback={type:"boolean",default:!1},e.attributes.gtmAltLogo={type:"integer"}),e})),(0,uc.addFilter)(dc,"gtm/extendCoreSiteLogo",(function(e,t){return Qu.includes(t.name)&&e.push(_e().createElement(Xu,Ku({key:e.length+1},t))),e}));const em=["core/template-part"];function tm(e){return em.includes(e)}const am=e=>{const{attributes:t,setAttributes:a}=e;return _e().createElement(Ce.Fragment,null,_e().createElement(we.InspectorControls,null,_e().createElement(Ye,{title:(0,be.__)("Stick to header","gutenmate"),attributes:t,setAttributes:a,gtmSettings:[{label:(0,be.__)("Background when stuck","gutenmate"),attr:"gtmHeaderStickyBg",gradient:!0}]},_e().createElement(Ps,{label:(0,be.__)("Enable sticky header","gutenmate"),checked:t.gtmEnableHeaderSticky,onChange:e=>{a({gtmEnableHeaderSticky:e,gtmDisableHeaderSticky:void 0})}}),t.gtmEnableHeaderSticky&&_e().createElement(Ce.Fragment,null,_e().createElement(Ps,{label:(0,be.__)("Disable sticky header on Tablet","gutenmate"),checked:t.gtmDisableHeaderStickyMD,onChange:e=>{a({gtmDisableHeaderStickyMD:e})}}),_e().createElement(Ps,{label:(0,be.__)("Disable sticky header on Phone","gutenmate"),checked:t.gtmDisableHeaderStickySM,onChange:e=>{a({gtmDisableHeaderStickySM:e})}}),_e().createElement(qe.Z,{label:(0,be.__)("Shadow when stuck","gutenmate"),value:t.gtmHeaderStickyShadow,onChange:e=>{a({gtmHeaderStickyShadow:e})}})))))};var nm;(0,uc.addFilter)(pc,"gtm/extendHeaderSticky",(function(e,t){return tm(t)&&(e.attributes.gtmEnableHeaderSticky={type:"boolean",default:!1},e.attributes.gtmDisableHeaderStickySM={type:"boolean",default:!1},e.attributes.gtmDisableHeaderStickyMD={type:"boolean",default:!1},e.attributes.gtmHeaderStickyShadow={type:"string",default:""},e.attributes.gtmHeaderStickyBg={type:"object",default:{}}),e})),(0,uc.addFilter)(dc,"gtm/extendHeaderSticky",(function(e,t){return tm(t.name)&&e.push(_e().createElement(am,Yu({key:e.length+1},t))),e}));var lm=new Uint8Array(16);function om(){if(!nm&&!(nm="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nm(lm)}for(var rm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,im=function(e){return"string"==typeof e&&rm.test(e)},sm=[],cm=0;cm<256;++cm)sm.push((cm+256).toString(16).substr(1));var um=function(e,t,a){var n=(e=e||{}).random||(e.rng||om)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){a=a||0;for(var l=0;l<16;++l)t[a+l]=n[l];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(sm[e[t+0]]+sm[e[t+1]]+sm[e[t+2]]+sm[e[t+3]]+"-"+sm[e[t+4]]+sm[e[t+5]]+"-"+sm[e[t+6]]+sm[e[t+7]]+"-"+sm[e[t+8]]+sm[e[t+9]]+"-"+sm[e[t+10]]+sm[e[t+11]]+sm[e[t+12]]+sm[e[t+13]]+sm[e[t+14]]+sm[e[t+15]]).toLowerCase();if(!im(a))throw TypeError("Stringified UUID is invalid");return a}(n)},mm=a(9276),gm=a(7252);const{cloneDeep:pm}=lodash;var dm=(0,Se.compose)((0,xe.withDispatch)(((e,t)=>{const{setSettings:a}=e(wl.G);return{onChange(e){a(e)}}})),(0,tc.pH)())((function e({label:t,attributes:a,help:n,onChange:l,className:o}){const r=`gtm-settings-panel-${(0,Se.useInstanceId)(e)}`;let i=!1;const s=(0,xe.useSelect)((e=>e("core/editor").getCurrentPostType()),[]),[c,u]=(0,At.useEntityProp)("postType",s,"meta");Le.isPostEditPage&&(i=c.gtm_active_preset??!1);const m=(e="")=>{let t={...c,gtm_active_preset:e};u(t),(0,Le.workaroundUpdateCustomField)("gtm_active_preset",e),i=e},g=(e,t)=>{var n=new RegExp(e+" #([0-9]+)");let o=0;Object.values(a.presets).forEach((e=>{let t=n.exec(e.name);t&&(o=Math.max(o,parseInt(t[1])))})),t.name=e+" #"+(o+1),t.slug="preset_"+um().replaceAll("-","").substring(0,15),t.default=!1,t.removable=!0,a.presets.push(t),l({...a})};return _e().createElement(Ee.BaseControl,{label:t,id:r,className:fe()("gtm-settings-panel",o),help:n},_e().createElement("div",{className:"gtm-settings"},_e().createElement("h2",null,(0,be.__)("Presets","gutenmate")),!a?.presets&&_e().createElement(Ee.Spinner,null),a?.presets&&_e().createElement(Ce.Fragment,null,a.presets.map(((e,t)=>_e().createElement(mm.Z,{key:t,itemKey:t,label:e.name,allowDelete:e.removable,menuType:"preset",isActive:e.slug===i||""==i&&e.default,isDefault:e.default,onSetActive:t=>{m(e.slug),e.default?m():m(e.slug)},onSetDefault:t=>{const n=a.presets.map((t=>(t.default=!1,t.slug==e.slug&&(t.default=!0),t))),o={...a,presets:n};l(o)},onDuplicate:t=>{g(e.name,pm(e))},onRename:e=>{a.presets[t].name=e,l({...a})},onDelete:t=>{i==e.slug&&m(),a.presets=a.presets.filter((t=>t.slug!==e.slug)),l({...a})}},_e().createElement(gm.ZP,{attributes:e,onChange:e=>{a.presets[t]=e,l({...a})}})))),_e().createElement("button",{className:"gtm-add-preset",onClick:()=>{g("New preset",pm(Object.values(a.presets)[0]))}},(0,be.__)("Add preset","gutenmate")))))})),bm=a(915);const hm=(0,xe.withSelect)(((e,t)=>({attributes:e(wl.G).getSettings()})))((e=>{const t=_e().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256","data-is-gtm-icon":"true"},_e().createElement("defs",null,_e().createElement("linearGradient",{id:"a",x1:"36.83",y1:"204.51",x2:"201.89",y2:"39.45",gradientUnits:"userSpaceOnUse"},_e().createElement("stop",{offset:"0",stopColor:"#1584fc"}),_e().createElement("stop",{offset:"1",stopColor:"#110efb"}))),_e().createElement("path",{d:"M160,185.63V224H119c-22.69,0-41.77-16.66-42.43-37.86-.7-22.48,18.93-40.84,43-40.19C142.19,146.57,160,164.42,160,185.63ZM183.83,68c-28.82,0-52.18,21.84-52.18,48.79a45.66,45.66,0,0,0,.95,9.26c21.63,4.62,39,19.7,45.66,39.25,1.83.18,3.68.28,5.57.28,28.81,0,52.17-21.84,52.17-48.79V68Zm-76.65,58.62a69.55,69.55,0,0,1-.58-8.94c0-30.71,20.23-57,48.9-67.86a84.61,84.61,0,0,0-53-18.29C57.5,31.53,21,65.66,21,107.77V184H57C57,155.66,78.57,132,107.18,126.62Z",fill:"url(#a)"}));return(0,Ce.useEffect)((()=>{const e=(0,bm.w4)();((e,t)=>{const a=Ve(t),n="gtm-preset-style-inline-css";if(!document.getElementById(n)){const e=document.createElement("style");e.id=n,document.body.appendChild(e)}const l=document.getElementById(n);l.innerHTML=a,l.innerHTML!=a&&(l.innerHTML=a)})(0,(0,bm.mS)(e))})),_e().createElement(cl.PluginSidebar,{name:"plugin-sidebar-gutenmate-settings",title:(0,be.__)("Gutenmate Settings","gutenmate"),icon:t},_e().createElement(dm,{cssGeneratorUniqueId:"global",attributes:e.attributes}))}));Le.isPostEditPage&&(wp.plugins?.registerPlugin("gutenmate-settings-sidebar",{render:hm}),wp.hooks.addAction("gtm.editorSaved","gtm/settings/doSaveSettings",bm.RU)),(0,a(6989).use)(((e,t)=>{const a=t(e);return((e=>!!(e.path&&Le.isPostEditPage&&"PUT"==e.method&&/^\/wp\/v2\/posts\/[0-9]+/gi.test(e.path)))(e)||(e=>!!(e.path&&Le.isWidgetsEditPage&&"POST"==e.method&&/^\/batch\/v[0-9]+/gi.test(e.path)))(e))&&a.then((()=>{(0,uc.doAction)("gtm.editorSaved")})),a}));var ym=window.wp.richText;const _m="gtm-format/icon",vm=(0,be.__)("Gutenmate inline icon","gutenmate"),fm={name:_m,title:vm,tagName:"i",className:"gtm-inline-icon",edit:function(e){const[t,a]=(0,Ce.useState)(!1),[n,l]=(0,Ce.useState)(""),o=(0,we.useCachedTruthy)((0,ym.useAnchorRef)({ref:e.contentRef,value:e.value,iconFormat:fm})),r=(0,Ce.useRef)(!!t&&"firstElement");return _e().createElement(Ce.Fragment,null,(t||e.isActive)&&_e().createElement(Ee.Popover,{className:"gtm-icon-selector-control-popover",position:"bottom center",anchorRef:o,focusOnMount:r.current},_e().createElement(jt.w,{pickerMode:!0,showPreview:!1,value:n,onChange:l,onSelectIcon:t=>{let n=e.value;const l=(0,ym.create)({html:`<i class="gtm-inline-icon ${t}"> </i>`});if(e.isActive){const t=(0,ym.removeFormat)(e.value,_m,e.value.start-1,e.value.end+1);n=(0,ym.insert)(t,l,e.value.start,e.value.end)}else n=(0,ym.insert)(e.value,l);e.onChange(n),a(!1)}})),_e().createElement(we.RichTextToolbarButton,{icon:he.Il,title:(0,be.__)("Inline icon","gutenmate"),isActive:e.isActive,onClick:e=>{a(!0)}}))}};(0,ym.registerFormatType)(_m,fm),a(5412);const{merge:km}=lodash;(0,de.registerBlockCollection)("gtm",{title:(0,be.__)("Gutenmate","gutenmate")}),[n,l,o,r,i,s,c,u,m,g,p,d,b,h,y,_,v,f,k,C,E,w,S,x,T,B,I,P,L,O,A,H,j,N,R,V,z,F,M,D,W,$,G,U,Z,q,J,K,Q,X,Y,ee,te,ae,ne,le,oe,re,ie,se,ce,ue,me,ge,pe].forEach((e=>{if(!e)return;const{settings:t,name:a,blockStyles:n}=e;(0,de.registerBlockType)(a,t)}))},1991:function(e,t){var a;!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var a=t.length,n=0;n<a;++n)l(e,t[n])}e.prototype=Object.create(null);var a={}.hasOwnProperty,n=/\s+/;function l(e,l){if(l){var o=typeof l;"string"===o?function(e,t){for(var a=t.split(n),l=a.length,o=0;o<l;++o)e[a[o]]=!0}(e,l):Array.isArray(l)?t(e,l):"object"===o?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var n in t)a.call(t,n)&&(e[n]=!!t[n]);else e[t.toString()]=!0}(e,l):"number"===o&&function(e,t){e[t]=!0}(e,l)}}return function(){for(var a=arguments.length,n=Array(a),l=0;l<a;l++)n[l]=arguments[l];var o=new e;t(o,n);var r=[];for(var i in o)o[i]&&r.push(i);return r.join(" ")}}();e.exports?(n.default=n,e.exports=n):void 0===(a=function(){return n}.apply(t,[]))||(e.exports=a)}()},3832:function(e,t){var a;function n(e,t){var a=[],n=0;function l(e){return a.push(e),t}function o(){return a[n++]}return{tokenize:function(t){return t.replace(e,l)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),o)}}}a=new function(){var e="(?:[0-9]*\\.[0-9]+|[0-9]+)",t="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",a="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",l="(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+a+")",o=e+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f]))(?:[_a-z0-9-]|[^\\u0020-\\u007e]|(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f]))*)?",r="((?:-?"+o+")|(?:inherit|auto))",i="(#?"+l+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",s="(?:[!#$%&*-~]|[^\\u0020-\\u007e]|"+a+")*?",c="(?!("+l+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|`COMMENT`)*?{)",u="(?!"+s+"['\"]?\\s*\\))",m="(?="+s+"['\"]?\\s*\\))",g="(\\s*(?:!important\\s*)?[;}])",p=/`TMP`/g,d=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),b=new RegExp("("+t+c+"[^;}]+;?)","gi"),h=new RegExp("("+t+"[^\\}]*?})","gi"),y=new RegExp("(direction\\s*:\\s*)ltr","gi"),_=new RegExp("(direction\\s*:\\s*)rtl","gi"),v=new RegExp("(^|[^a-zA-Z])(left)(?![a-zA-Z])"+u+c,"gi"),f=new RegExp("(^|[^a-zA-Z])(right)(?![a-zA-Z])"+u+c,"gi"),k=new RegExp("(^|[^a-zA-Z])(left)"+m,"gi"),C=new RegExp("(^|[^a-zA-Z])(right)"+m,"gi"),E=new RegExp("(^|[^a-zA-Z])(ltr)"+m,"gi"),w=new RegExp("(^|[^a-zA-Z])(rtl)"+m,"gi"),S=new RegExp("(^|[^a-zA-Z])([ns]?)e-resize","gi"),x=new RegExp("(^|[^a-zA-Z])([ns]?)w-resize","gi"),T=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+r+"(\\s+)"+r+"(\\s+)"+r+"(\\s+)"+r+g,"gi"),B=new RegExp("((?:-color|border-style)\\s*:\\s*)"+i+"(\\s+)"+i+"(\\s+)"+i+"(\\s+)"+i+g,"gi"),I=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+o+")","gi"),P=new RegExp("(background-position-x\\s*:\\s*)(-?"+e+"%)","gi"),L=new RegExp("(border-radius\\s*:\\s*)"+r+"(?:(?:\\s+"+r+")(?:\\s+"+r+")?(?:\\s+"+r+")?)?(?:(?:(?:\\s*\\/\\s*)"+r+")(?:\\s+"+r+")?(?:\\s+"+r+")?(?:\\s+"+r+")?)?"+g,"gi"),O=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+r,"gi"),A=new RegExp("(text-shadow\\s*:\\s*)"+r+"(\\s*)"+i,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+i+"(\\s*)"+r,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+r,"gi"),N=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+r+"(\\s*\\))","gi"),R=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+r+"((?:\\s*,\\s*"+r+"){0,2}\\s*\\))","gi");function V(e,t,a){var n,l;return"%"===a.slice(-1)&&(-1!==(n=a.indexOf("."))?(l=a.length-n-2,a=(a=100-parseFloat(a)).toFixed(l)+"%"):a=100-parseFloat(a)+"%"),t+a}function z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function F(e,t){var a=[].slice.call(arguments),n=a.slice(2,6).filter((function(e){return e})),l=a.slice(6,10).filter((function(e){return e})),o=a[10]||"";return t+(l.length?z(n)+" / "+z(l):z(n))+o}function M(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function D(e,t,a){return t+M(a)}function W(e,t,a,n,l){return t+a+M(n)+l}function $(e,t,a,n,l){return t+a+n+M(l)}return{transform:function(e,t){var a=new n(b,"`NOFLIP_SINGLE`"),l=new n(h,"`NOFLIP_CLASS`"),o=new n(d,"`COMMENT`");return e=o.tokenize(l.tokenize(a.tokenize(e.replace("`","%60")))),t.transformDirInUrl&&(e=e.replace(E,"$1`TMP`").replace(w,"$1ltr").replace(p,"rtl")),t.transformEdgeInUrl&&(e=e.replace(k,"$1`TMP`").replace(C,"$1left").replace(p,"right")),e=e.replace(y,"$1`TMP`").replace(_,"$1ltr").replace(p,"rtl").replace(v,"$1`TMP`").replace(f,"$1left").replace(p,"right").replace(S,"$1$2`TMP`").replace(x,"$1$2e-resize").replace(p,"w-resize").replace(L,F).replace(O,D).replace(A,$).replace(H,$).replace(j,D).replace(N,W).replace(R,W).replace(T,"$1$2$3$8$5$6$7$4$9").replace(B,"$1$2$3$8$5$6$7$4$9").replace(I,V).replace(P,V),a.detokenize(l.detokenize(o.detokenize(e)))}}},e.exports?t.transform=function(e,t,n){var l;return"object"==typeof t?l=t:(l={},"boolean"==typeof t&&(l.transformDirInUrl=t),"boolean"==typeof n&&(l.transformEdgeInUrl=n)),a.transform(e,l)}:"undefined"!=typeof window&&(window.cssjanus=a)},3709:function(e,t,a){var n=a(1259),l=a(7672);void 0===l.gtm&&(l.gtm={}),void 0===l.gtm.components&&(l.gtm.components={}),void 0===l.gtm.components.TextAlignment&&(l.gtm.components.TextAlignment=n),e.exports=n},4303:function(e,t,a){var n=a(7877),l=a(7672);void 0===l.gtm&&(l.gtm={}),void 0===l.gtm.components&&(l.gtm.components={}),void 0===l.gtm.components.TypographyField&&(l.gtm.components.TypographyField=n),e.exports=n},1557:function(e,t,a){var n=a(6778),l=a(7672);void 0===l.gtm&&(l.gtm={}),void 0===l.gtm.inspect&&(l.gtm.inspect=n),e.exports=n},158:function(e,t,a){var n=a(2630),l=a(7672);void 0===l.gtm&&(l.gtm={}),void 0===l.gtm.util&&(l.gtm.util=n),e.exports=n},7672:function(e,t,a){"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==a.g)return a.g}return e}()}},function(e){e.O(0,[879,3678,6372,8106,5914,6008,5031,5339,4404,3008,4361,6444,2332,6774,9718,9351,5573,33,5278,8479,5281,7737,9835,1501,8859,4786,2045,233,7373,6392,9900,5032,5311,1672,5021,8119,8213,1120,1459,7796,5179,9982,5479,4064,7457,2365,1094,4041,9642,3343,9284,9837,9209,722,4547,5528,5369,1675,4438,5116,2984,3544,8192,8797,8750,2298,8853,454,2517,4430,9152,2515,7045,6679,3183,2780,1708,2488,4513,4364,7965,7057,3029,777,1191,4469,7158,4586,4016,6508,7986,5567,5225,2087,4207,9742,1596,4449,1254,2895,8318,4751,3108,6488,7982,7934,3680,846,3126,9326,9445,8484,7411,4261,3704,9456,2742,5725,7223,1688,7372,4096,9613,8787,361,7721,1741,143,4187,9816,2206,3424,9946,5367,3412,5981,7720,7666,8435,7168,7683,6213,3790,3762,6486],(function(){return 311,e(e.s=311)})),e.O()}]);