(()=>{var e,t={4994:(e,t,o)=>{"use strict";const n=window.React,l=window.wp.i18n,r=window.wp.blocks,a=JSON.parse('{"NQ":"hakoniwa-blocks","L1":"Hakoniwa"}'),i=JSON.parse('{"UU":"hakoniwa-blocks/layout"}'),s=window.wp.blockEditor,c=window.wp.components;window.wp.data;var u=o(6942),m=o.n(u);a.NQ;const p=a.NQ+"/layout-content",b={type:"default",alignments:[]},h=a.L1,k=i.UU,w=a.NQ,f=(0,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"icon icon-tabler icon-tabler-layout-columns",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:"4",y:"4",width:"16",height:"16",rx:"2"}),(0,n.createElement)("line",{fill:"none",x1:"12",y1:"4",x2:"12",y2:"20"}));(0,r.registerBlockType)(k,{title:(0,l.__)("Layout","hakoniwa-blocks"),description:(0,l.__)("This block is useful when setting up column layouts.","hakoniwa-blocks"),category:w,icon:f,keywords:[(0,l.__)(h),(0,l.__)("Layout")],supports:{html:!1,align:!0,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,allowVerticalAlignment:!1,default:{type:"flex"}},spacing:{blockGap:!0,margin:["top","bottom"],units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},attributes:{columnDesktop:{type:"number",default:3},columnTablet:{type:"number",default:2},columnSmartPhone:{type:"number",default:1},layout:{type:"object",default:{type:"flex"}}},providesContext:{style:"style"},example:{attributes:{columnDesktop:2}},edit:function(e){const{attributes:{columnDesktop:t,columnTablet:o,columnSmartPhone:r},className:a,setAttributes:i}=e,u=[[p],[p],[p]],h=m()(a,t?"column-l"+t:"",o?"column-m"+o:"",r?"column-s"+r:""),k=(0,s.useBlockProps)({className:h}),w=(0,s.useInnerBlocksProps)(k,{allowedBlocks:[p],template:u,orientation:"horizontal",__experimentalLayout:b,templateInsertUpdatesSelection:!0});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(s.InspectorControls,null,(0,n.createElement)(c.PanelBody,{title:(0,l.__)("Number of columns","hakoniwa-blocks"),initialOpen:!0},(0,n.createElement)(c.RangeControl,{label:(0,l.__)("Desktop","hakoniwa-blocks"),value:t,min:1,max:4,onChange:e=>i({columnDesktop:e})}),(0,n.createElement)(c.RangeControl,{label:(0,l.__)("Tablet","hakoniwa-blocks"),value:o,min:1,max:4,onChange:e=>i({columnTablet:e})}),(0,n.createElement)(c.RangeControl,{label:(0,l.__)("SmartPhone","hakoniwa-blocks"),value:r,min:1,max:4,onChange:e=>i({columnSmartPhone:e})}))),(0,n.createElement)("div",{...w}))},save:function(e){const{attributes:{columnDesktop:t,columnTablet:o,columnSmartPhone:l},className:r}=e,a=m()(t?"column-l"+t:"",o?"column-m"+o:"",l?"column-s"+l:""),i=s.useBlockProps.save({className:a}),c=s.useInnerBlocksProps.save(i);return(0,n.createElement)("div",{...c})}})},6942:(e,t)=>{var o;!function(){"use strict";var n={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=a(e,r(o)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)n.call(e,o)&&e[o]&&(t=a(t,o));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(o=function(){return l}.apply(t,[]))||(e.exports=o)}()}},o={};function n(e){var l=o[e];if(void 0!==l)return l.exports;var r=o[e]={exports:{}};return t[e](r,r.exports,n),r.exports}n.m=t,e=[],n.O=(t,o,l,r)=>{if(!o){var a=1/0;for(u=0;u<e.length;u++){for(var[o,l,r]=e[u],i=!0,s=0;s<o.length;s++)(!1&r||a>=r)&&Object.keys(n.O).every((e=>n.O[e](o[s])))?o.splice(s--,1):(i=!1,r<a&&(a=r));if(i){e.splice(u--,1);var c=l();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[o,l,r]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={3812:0,4028:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var l,r,[a,i,s]=o,c=0;if(a.some((t=>0!==e[t]))){for(l in i)n.o(i,l)&&(n.m[l]=i[l]);if(s)var u=s(n)}for(t&&t(o);c<a.length;c++)r=a[c],n.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return n.O(u)},o=globalThis.webpackChunkhakoniwa_blocks=globalThis.webpackChunkhakoniwa_blocks||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var l=n.O(void 0,[4028],(()=>n(4994)));l=n.O(l)})();