(()=>{var e,t={9685:(e,t,n)=>{"use strict";const r=window.React,o=window.wp.i18n,l=window.wp.blocks,a=JSON.parse('{"NQ":"hakoniwa-blocks","L1":"Hakoniwa"}'),i=JSON.parse('{"UU":"hakoniwa-blocks/layout-content"}'),c=window.wp.blockEditor,s=window.wp.components;var u=n(6942),p=n.n(u);const k=window.wp.data;function d(e){const{hasChildBlocks:t}=(0,k.useSelect)((t=>{const{getBlockOrder:n}=t(c.store);return{hasChildBlocks:n(e).length>0}}));return t?void 0:c.InnerBlocks.ButtonBlockAppender}a.NQ;const h=a.L1,f=i.UU,w=a.NQ,g=(0,r.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,r.createElement)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,r.createElement)("rect",{fill:"none",x:"4",y:"4",width:"16",height:"16",rx:"2"}),(0,r.createElement)("line",{fill:"none",x1:"12",y1:"4",x2:"12",y2:"20"}));(0,l.registerBlockType)(f,{title:(0,o.__)("Layout","hakoniwa-blocks"),description:(0,o.__)("This block is useful when setting up column layouts.","hakoniwa-blocks"),category:w,icon:g,parent:[w+"/layout"],keywords:[(0,o.__)(h),(0,o.__)("Layout")],supports:{align:!0,html:!1},attributes:{linkUrl:{type:"string",default:""},linkTarget:{type:"boolean",default:!1}},example:{attributes:{columnDesktop:2}},edit:function(e){const{attributes:{linkUrl:t,linkTarget:n},className:l,setAttributes:a,clientId:i}=e,u=p()(l,"__inner-container"),k=(0,c.useBlockProps)({className:u});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.InspectorControls,null,(0,r.createElement)(s.PanelBody,{title:(0,o.__)("Link Setting","hakoniwa-blocks")},(0,r.createElement)(s.TextControl,{label:"URL",value:t,placeholder:(0,o.__)("Enter URL","hakoniwa-blocks"),onChange:e=>a({linkUrl:e})}),(0,r.createElement)(s.ToggleControl,{label:(0,o.__)("Open in new tab","hakoniwa-blocks"),checked:n,onChange:e=>a({linkTarget:!n})}))),(0,r.createElement)("div",{...k},(0,r.createElement)(c.InnerBlocks,{renderAppender:d(i)})))},save:function(e){const{attributes:{linkUrl:t,linkTarget:n}}=e,o=p()("__inner-container"),l=c.useBlockProps.save({className:o});return(0,r.createElement)("div",{...l},t?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("a",{href:t,target:n?"_blank":void 0,rel:n?"noreferrer noopener":void 0},(0,r.createElement)(c.InnerBlocks.Content,null))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(c.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=a(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=a(t,n));return t}function a(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 a=1/0;for(u=0;u<e.length;u++){for(var[n,o,l]=e[u],i=!0,c=0;c<n.length;c++)(!1&l||a>=l)&&Object.keys(r.O).every((e=>r.O[e](n[c])))?n.splice(c--,1):(i=!1,l<a&&(a=l));if(i){e.splice(u--,1);var s=o();void 0!==s&&(t=s)}}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={6428:0,9668:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,l,[a,i,c]=n,s=0;if(a.some((t=>0!==e[t]))){for(o in i)r.o(i,o)&&(r.m[o]=i[o]);if(c)var u=c(r)}for(t&&t(n);s<a.length;s++)l=a[s],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,[9668],(()=>r(9685)));o=r.O(o)})();