(()=>{var e,t={3469:(e,t,n)=>{"use strict";const r=window.React,o=window.wp.i18n,l=window.wp.blocks,i=JSON.parse('{"NQ":"hakoniwa-blocks","L1":"Hakoniwa"}'),a=JSON.parse('{"UU":"hakoniwa-blocks/broken-grid-layout"}'),s=window.wp.blockEditor,c=window.wp.components;var u=n(6942),h=n.n(u);i.NQ;const p=i.NQ+"/broken-grid-layout-content",m=i.L1,d=a.UU,k=i.NQ,v=(0,r.createElement)("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","clip-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"1.5"},(0,r.createElement)("rect",{x:"0",y:"0",width:"24",height:"24",fill:"none"}),(0,r.createElement)("rect",{x:"7",y:"7.5",width:"10",height:"9",fill:"none",stroke:"currentColor","stroke-width":"1.5px"}),(0,r.createElement)("rect",{x:"4",y:"5",width:"6",height:"5",fill:"none",stroke:"currentColor","stroke-width":"1.5px"}),(0,r.createElement)("rect",{x:"14",y:"14",width:"6",height:"5",fill:"none",stroke:"currentColor","stroke-width":"1.5px"}));(0,l.registerBlockType)(d,{title:(0,o.__)("Broken Grid Layout","hakoniwa-blocks"),description:(0,o.__)("This is an advanced block that can be placed in a layout that dares to break up the layout.","hakoniwa-blocks"),category:k,icon:v,keywords:[(0,o.__)(m),(0,o.__)(d)],supports:{align:!0,html:!1},attributes:{minHeight:{type:"number"},minHeightUnit:{type:"string",default:"px"}},edit:function(e){const{attributes:{minHeight:t,minHeightUnit:n},className:l,setAttributes:i}=e,a=[[p],[p],[p]];let u={};t&&null!==t&&(u.minHeight=`${t}${n}`);const m=h()(l),d=(0,s.useBlockProps)({className:m,style:u});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(c.PanelBody,{title:(0,o.__)("General","hakoniwa-blocks")},(0,r.createElement)(c.RangeControl,{label:(0,o.__)("Min height","hakoniwa-blocks"),value:t,min:0,max:99999,onChange:e=>i({minHeight:e})}),(0,r.createElement)(c.SelectControl,{label:(0,o.__)("Unit","hakoniwa-blocks"),value:n,options:[{label:"px",value:"px"},{label:"rem",value:"rem"},{label:"em",value:"em"},{label:"%",value:"%"},{label:"vh",value:"vh"}],onChange:e=>i({minHeightUnit:e})}),(0,r.createElement)(c.Button,{onClick:()=>i({minHeight:null,minHeightUnit:null}),className:"button button-large"},(0,o.__)("Reset","hakoniwa-blocks")))),(0,r.createElement)("div",{...d},(0,r.createElement)(s.InnerBlocks,{orientation:"vertical",template:a,allowedBlocks:[p]})))},save:function(e){const{attributes:{minHeight:t,minHeightUnit:n},className:o}=e;let l={};t&&null!==t&&(l.minHeight=`${t}${n}`);const i=h()(o),a=s.useBlockProps.save({className:i,style:l});return(0,r.createElement)("div",{...a},(0,r.createElement)(s.InnerBlocks.Content,null))}})},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,l(n)))}return e}function l(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var l=n[e]={exports:{}};return t[e](l,l.exports,r),l.exports}r.m=t,e=[],r.O=(t,n,o,l)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,o,l]=e[u],a=!0,s=0;s<n.length;s++)(!1&l||i>=l)&&Object.keys(r.O).every((e=>r.O[e](n[s])))?n.splice(s--,1):(a=!1,l<i&&(i=l));if(a){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}l=l||0;for(var u=e.length;u>0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[n,o,l]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={6861:0,129:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,l,[i,a,s]=n,c=0;if(i.some((t=>0!==e[t]))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var u=s(r)}for(t&&t(n);c<i.length;c++)l=i[c],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(u)},n=globalThis.webpackChunkhakoniwa_blocks=globalThis.webpackChunkhakoniwa_blocks||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[129],(()=>r(3469)));o=r.O(o)})();