(()=>{var e,t={6132:(e,t,n)=>{"use strict";const o=window.React,r=window.wp.i18n,a=window.wp.blocks,l=JSON.parse('{"NQ":"hakoniwa-blocks","L1":"Hakoniwa"}'),i=JSON.parse('{"UU":"hakoniwa-blocks/slider-content"}'),s=window.wp.blockEditor,c=window.wp.components;n(6942);const p=window.wp.data;function u(e){const{hasChildBlocks:t}=(0,p.useSelect)((t=>{const{getBlockOrder:n}=t(s.store);return{hasChildBlocks:n(e).length>0}}));return t?void 0:s.InnerBlocks.ButtonBlockAppender}const d=l.NQ,v=l.L1,k=i.UU,w=l.NQ,y=(0,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,o.createElement)("path",{d:"M482,158H465.24933L465,64H0V480H512V158ZM435.07947,94l.16974,64H330.24933l-.16974-64ZM300,94v64H195.24927l-.16974-64ZM482,450H30V94H165v94.59375H300v.00006H482Z"}));(0,a.registerBlockType)(k,{title:(0,r.__)("Slide","hakoniwa-blocks"),category:w,parent:[w+"/slider"],icon:y,keywords:[(0,r.__)(v),(0,r.__)(k)],attributes:{index:{type:"number",default:0},isActive:{type:"boolean",default:!1},autoplayDelay:{type:"number"},title:{type:"string"},icon:{type:"string"}},className:!1,edit:function(e){const{attributes:{index:t,isActive:n,autoplayDelay:a,title:l,icon:i},setAttributes:p,className:v,clientId:k}=e,w=(0,s.useBlockProps)({style:{display:n?"block":"none"},className:`${d}-tab-content isActive-${n} __inner-container`});return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.InspectorControls,null,(0,o.createElement)(c.PanelBody,{title:(0,r.__)("Autoplay Settings","hakoniwa-blocks")},(0,o.createElement)(c.RangeControl,{label:(0,r.__)("Delay (seconds)","hakoniwa-blocks"),value:a,min:0,max:1e3,step:.01,onChange:e=>p({autoplayDelay:e})}),(0,o.createElement)(c.Button,{onClick:()=>p({autoplayDelay:""}),className:"button button-large"},(0,r.__)("Reset","hakoniwa-blocks")))),(0,o.createElement)("div",{...w},(0,o.createElement)(s.InnerBlocks,{templateLock:!1,template:[["core/paragraph",{placeholder:(0,r.__)("Add content.","hakoniwa-blocks")}]],renderAppender:u(k)})))},save:function(e){const{attributes:{index:t,isActive:n,title:r,autoplayDelay:a},className:l}=e,i=s.useBlockProps.save({className:"swiper-slide __inner-container","data-swiper-autoplay":a?1e3*a:void 0}),c=s.useInnerBlocksProps.save(i);return(0,o.createElement)("div",{...c})}})},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.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)o.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,n,r,a)=>{if(!n){var l=1/0;for(p=0;p<e.length;p++){for(var[n,r,a]=e[p],i=!0,s=0;s<n.length;s++)(!1&a||l>=a)&&Object.keys(o.O).every((e=>o.O[e](n[s])))?n.splice(s--,1):(i=!1,a<l&&(l=a));if(i){e.splice(p--,1);var c=r();void 0!==c&&(t=c)}}return t}a=a||0;for(var p=e.length;p>0&&e[p-1][2]>a;p--)e[p]=e[p-1];e[p]=[n,r,a]},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={869:0,153:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[l,i,s]=n,c=0;if(l.some((t=>0!==e[t]))){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(s)var p=s(o)}for(t&&t(n);c<l.length;c++)a=l[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.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 r=o.O(void 0,[153],(()=>o(6132)));r=o.O(r)})();