(()=>{var e,t={3506:(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/tabs-content"}'),s=window.wp.blockEditor,c=window.wp.data;function p(e){const{hasChildBlocks:t}=(0,c.useSelect)((t=>{const{getBlockOrder:n}=t(s.store);return{hasChildBlocks:n(e).length>0}}));return t?void 0:s.InnerBlocks.ButtonBlockAppender}const u=i.NQ;n(6942);const d=i.L1,h=a.UU,f=i.NQ,k=(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"},(0,r.createElement)("rect",{x:"0",y:"0",width:"24",height:"24",fill:"none","fill-rule":"nonzero"}),(0,r.createElement)("path",{d:"M5,4l4,0l3,3l7,0c1.097,0 2,0.903 2,2l0,8c0,1.097 -0.903,2 -2,2l-14,0c-1.097,0 -2,-0.903 -2,-2l0,-11c0,-1.097 0.903,-2 2,-2",fill:"none","fill-rule":"nonzero",stroke:"currentColor","stroke-width":"2px"}),(0,r.createElement)("path",{d:"M8,4l4,0l3,3",fill:"none","fill-rule":"nonzero",stroke:"currentColor","stroke-width":"2px"}),(0,r.createElement)("path",{d:"M11,4l4,0l3,3",fill:"none","fill-rule":"nonzero",stroke:"currentColor","stroke-width":"2px"}));(0,l.registerBlockType)(h,{title:(0,o.__)("Tab","hakoniwa-blocks"),category:f,parent:[f+"/tabs"],icon:k,keywords:[(0,o.__)(d),(0,o.__)("Tab")],attributes:{index:{type:"number",default:0},isActive:{type:"boolean",default:!1},title:{type:"string"},icon:{type:"string"}},className:!1,supports:{anchor:!0,reusable:!1,html:!1,__experimentalExposeControlsToChildren:!0,__experimentalLayout:{allowSwitching:!1,allowInheriting:!1},spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}}},example:{},edit:function(e){const{attributes:{index:t,isActive:n,title:l,icon:i},className:a,clientId:c}=e,d=(0,s.useBlockProps)({style:{display:n?"block":"none"},className:`${u}-tab-content isActive-${n} __inner-container`});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{...d},(0,r.createElement)(s.InnerBlocks,{templateLock:!1,template:[["core/paragraph",{placeholder:(0,o.__)("Add content.","hakoniwa-blocks")}]],renderAppender:p(c)})))},save:function(e){const{attributes:{index:t,isActive:n,title:o,icon:l},className:i}=e,a=s.useBlockProps.save({className:`tab-content tab-content-${t+1}${n?" active":""} __inner-container`,tabIndex:0,role:"tab-content",hidden:!n||!n}),c=s.useInnerBlocksProps.save(a);return(0,r.createElement)("div",{...c})}})},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(p=0;p<e.length;p++){for(var[n,o,l]=e[p],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(p--,1);var c=o();void 0!==c&&(t=c)}}return t}l=l||0;for(var p=e.length;p>0&&e[p-1][2]>l;p--)e[p]=e[p-1];e[p]=[n,o,l]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={5558:0,6186: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 p=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(p)},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,[6186],(()=>r(3506)));o=r.O(o)})();