(()=>{var t,e={3843:(t,e,o)=>{"use strict";const n=window.React,r=window.wp.i18n,a=window.wp.blocks,i=JSON.parse('{"NQ":"hakoniwa-blocks","L1":"Hakoniwa"}'),l=JSON.parse('{"UU":"hakoniwa-blocks/buttons"}'),s=window.wp.blockEditor;var u=o(6942),c=o.n(u);const p=[i.NQ+"/buttons-content"],b=[[i.NQ+"/buttons-content"]],d={type:"default",alignments:[]},f=i.L1,h=l.UU,k=i.NQ,m=k+"/buttons-content",v=(0,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon icon-tabler icon-tabler-rectangle",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},(0,n.createElement)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.createElement)("rect",{fill:"none",x:"3",y:"5",width:"18",height:"14",rx:"2"}));(0,a.registerBlockType)(h,{title:(0,r.__)("Buttons","hakoniwa-blocks"),description:(0,r.__)("Add a link button. Animation is also possible.","hakoniwa-blocks"),category:k,icon:v,keywords:[(0,r.__)(f),(0,r.__)("Buttons")],supports:{html:!1,align:!0,__experimentalExposeControlsToChildren:!0,__experimentalLayout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},spacing:{blockGap:!0,margin:["top","bottom"],units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},attributes:{content:{source:"html",selector:"p"},layout:{type:"object",default:{type:"flex",justifyContent:"left"}}},example:{attributes:{layout:{type:"flex",justifyContent:"left"}},innerBlocks:[{name:m,attributes:{buttonRadius:"rounded",buttonSize:"px-4 py-2",buttonText:(0,r.__)("Find out more"),buttonBorderWidth:"border",buttonIconBefore:"circle-check"}},{name:m,attributes:{buttonRadius:"rounded",buttonSize:"px-4 py-2",buttonText:(0,r.__)("Find out more"),buttonBorderWidth:"",buttonIconBefore:"circle-check",backgroundColor:"primary",textColor:"base"}}]},edit:function(t){const{name:e,attributes:{layout:o},className:r,setAttributes:i}=t,l=c()(r),u=(0,s.useBlockProps)({className:l}),f=o||(t=>{const e=(0,a.getBlockSupport)(t,"__experimentalLayout");return e?.default})(e),h=(0,s.useInnerBlocksProps)(u,{allowedBlocks:p,__experimentalLayout:d,orientation:"horizontal",template:b,templateInsertUpdatesSelection:!0,__experimentalLayout:f});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)("div",{...h}))},save:function(t){const{attributes:{},className:e}=t,o=c()(e),r=s.useBlockProps.save({className:o}),a=s.useInnerBlocksProps.save(r);return(0,n.createElement)("div",{...a})}})},6942:(t,e)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];o&&(t=i(t,a(o)))}return t}function a(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 o in t)n.call(t,o)&&t[o]&&(e=i(e,o));return e}function i(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):void 0===(o=function(){return r}.apply(e,[]))||(t.exports=o)}()}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var a=o[t]={exports:{}};return e[t](a,a.exports,n),a.exports}n.m=e,t=[],n.O=(e,o,r,a)=>{if(!o){var i=1/0;for(c=0;c<t.length;c++){for(var[o,r,a]=t[c],l=!0,s=0;s<o.length;s++)(!1&a||i>=a)&&Object.keys(n.O).every((t=>n.O[t](o[s])))?o.splice(s--,1):(l=!1,a<i&&(i=a));if(l){t.splice(c--,1);var u=r();void 0!==u&&(e=u)}}return e}a=a||0;for(var c=t.length;c>0&&t[c-1][2]>a;c--)t[c]=t[c-1];t[c]=[o,r,a]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t={6739:0,3435:0};n.O.j=e=>0===t[e];var e=(e,o)=>{var r,a,[i,l,s]=o,u=0;if(i.some((e=>0!==t[e]))){for(r in l)n.o(l,r)&&(n.m[r]=l[r]);if(s)var c=s(n)}for(e&&e(o);u<i.length;u++)a=i[u],n.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return n.O(c)},o=globalThis.webpackChunkhakoniwa_blocks=globalThis.webpackChunkhakoniwa_blocks||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var r=n.O(void 0,[3435],(()=>n(3843)));r=n.O(r)})();