(()=>{var t,e={2486:(t,e,n)=>{"use strict";const o=window.wp.blocks,r=JSON.parse('{"UU":"snow-monkey-blocks/buttons","uK":{"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]}},"xY":{"anchor":true,"align":["left","right"],"alignWide":false,"spacing":{"margin":true,"blockGap":true},"layout":{"allowSwitching":false,"allowInheriting":false,"default":{"type":"flex"}}}}'),s=window.ReactJSXRuntime,i=(0,s.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,s.jsx)("path",{d:"M18,3H6A1,1,0,0,0,5,4v6a1,1,0,0,0,1,1H18a1,1,0,0,0,1-1V4A1,1,0,0,0,18,3Zm0,5.8A1.15,1.15,0,0,1,16.91,10H6.55A.57.57,0,0,1,6,9.4V4.6A.57.57,0,0,1,6.55,4h10.9a.57.57,0,0,1,.55.6Z"}),(0,s.jsx)("rect",{x:"9.5",y:"6.5",width:"5",height:"1"}),(0,s.jsx)("path",{d:"M18,3H6A1,1,0,0,0,5,4v6a1,1,0,0,0,1,1H18a1,1,0,0,0,1-1V4A1,1,0,0,0,18,3Zm0,5.8A1.15,1.15,0,0,1,16.91,10H6.55A.57.57,0,0,1,6,9.4V4.6A.57.57,0,0,1,6.55,4h10.9a.57.57,0,0,1,.55.6Z"}),(0,s.jsx)("rect",{x:"9.5",y:"6.5",width:"5",height:"1"}),(0,s.jsx)("path",{d:"M18,13H6a1,1,0,0,0-1,1v6a1,1,0,0,0,1,1H18a1,1,0,0,0,1-1V14A1,1,0,0,0,18,13Zm0,5.8A1.15,1.15,0,0,1,16.91,20H6.55A.57.57,0,0,1,6,19.4V14.6a.57.57,0,0,1,.55-.6h10.9a.57.57,0,0,1,.55.6Z"}),(0,s.jsx)("rect",{x:"9.5",y:"16.5",width:"5",height:"1"})]});var a=n(6942),l=n.n(a);const c=window.wp.blockEditor,u=window.wp.data,p=["snow-monkey-blocks/btn"],f=[["snow-monkey-blocks/btn"]],d=r.uK,v=r.xY,b=[{attributes:{...d,textAlign:{type:"string"},contentJustification:{type:"string"}},supports:{...v},isEligible:t=>!!t.contentJustification,migrate:t=>({...t,layout:{...t?.layout,type:"flex",justifyContent:t?.contentJustification||void 0}}),save({attributes:t,className:e}){const{contentJustification:n}=t,o=l()("smb-buttons",e,{[`is-content-justification-${n}`]:n});return(0,s.jsx)("div",{...c.useInnerBlocksProps.save(c.useBlockProps.save({className:o}))})}},{attributes:{...d,textAlign:{type:"string"},contentJustification:{type:"string"}},supports:{align:["left","right"]},save({attributes:t,className:e}){const{textAlign:n}=t,o=l()("smb-buttons",e,{[`has-text-align-${n}`]:n});return(0,s.jsx)("div",{...c.useBlockProps.save({className:o}),children:(0,s.jsx)(c.InnerBlocks.Content,{})})},migrate:t=>({...t,contentJustification:t.textAlign})}],g={from:[{type:"block",isMultiBlock:!0,blocks:["snow-monkey-blocks/btn"],transform:t=>(0,o.createBlock)(r.UU,{},t.map((t=>(0,o.createBlock)("snow-monkey-blocks/btn",t))))}]};(0,o.registerBlockType)(r.UU,{icon:{foreground:"#cd162c",src:i},edit:function({attributes:t,clientId:e}){const{templateLock:n}=t,o=(0,u.useSelect)((t=>!!t("core/block-editor").getBlock(e)?.innerBlocks?.length),[e]),r=l()("smb-buttons"),i=(0,c.useBlockProps)({className:r}),a=(0,c.useInnerBlocksProps)(i,{allowedBlocks:p,template:f,orientation:"horizontal",templateLock:n,renderAppender:o?void 0:c.InnerBlocks.ButtonBlockAppender});return(0,s.jsx)("div",{...a})},save:function(){const t=l()("smb-buttons");return(0,s.jsx)("div",{...c.useInnerBlocksProps.save(c.useBlockProps.save({className:t}))})},deprecated:b,transforms:g})},6942:(t,e)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=i(t,s(n)))}return t}function s(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)o.call(t,n)&&t[n]&&(e=i(e,n));return e}function i(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()}},n={};function o(t){var r=n[t];if(void 0!==r)return r.exports;var s=n[t]={exports:{}};return e[t](s,s.exports,o),s.exports}o.m=e,t=[],o.O=(e,n,r,s)=>{if(!n){var i=1/0;for(u=0;u<t.length;u++){for(var[n,r,s]=t[u],a=!0,l=0;l<n.length;l++)(!1&s||i>=s)&&Object.keys(o.O).every((t=>o.O[t](n[l])))?n.splice(l--,1):(a=!1,s<i&&(i=s));if(a){t.splice(u--,1);var c=r();void 0!==c&&(e=c)}}return e}s=s||0;for(var u=t.length;u>0&&t[u-1][2]>s;u--)t[u]=t[u-1];t[u]=[n,r,s]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={6739:0,3435:0};o.O.j=e=>0===t[e];var e=(e,n)=>{var r,s,[i,a,l]=n,c=0;if(i.some((e=>0!==t[e]))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(l)var u=l(o)}for(e&&e(n);c<i.length;c++)s=i[c],o.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return o.O(u)},n=globalThis.webpackChunk=globalThis.webpackChunk||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var r=o.O(void 0,[3435],(()=>o(2486)));r=o.O(r)})();