(()=>{"use strict";var e,t={723:()=>{const e=window.wp.blocks;function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(null,arguments)}const r=window.wp.element,n=(window.React,window.wp.blockEditor);function o({isEditor:e=!1,...t}){const o=e?n.useBlockProps:n.useBlockProps.save,a=e?n.InnerBlocks:n.InnerBlocks.Content,{uniqueId:i,activatorEvent:c}=t.attributes,l=o({className:"",id:`horizontal-accordion-${i}`,"data-activator-event":c});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",l,(0,r.createElement)(a,{allowedBlocks:["aab/horizontal-accordion-item"],template:[["aab/horizontal-accordion-item"],["aab/horizontal-accordion-item"],["aab/horizontal-accordion-item"]]})))}const a=window.wp.i18n,i=window.wp.components;function c({attributes:e,setAttributes:t}){const{activatorEvent:n}=e;return(0,r.createElement)(i.PanelBody,{title:(0,a.__)("Activator Event","advanced-accordion-block"),initialOpen:!0},(0,r.createElement)(i.__experimentalToggleGroupControl,{value:n,onChange:e=>t({activatorEvent:e}),label:(0,a.__)("Activator Event","advanced-accordion-block")},(0,r.createElement)(i.__experimentalToggleGroupControlOption,{value:"click",label:"Click"}),(0,r.createElement)(i.__experimentalToggleGroupControlOption,{value:"hover",label:"Hover"})))}const l=function(e){return(0,r.createElement)(n.InspectorControls,null,(0,r.createElement)(c,e))},s=function(e){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(n.InspectorControls,{group:"styles"}))},d=JSON.parse('{"apiVersion":2,"name":"aab/horizontal-accordion","version":"0.0.1","title":"Horizontal Accordion","category":"accordion-block","description":"Create side-by-side horizontal accordion layouts with customizable titles, icons, and expandable content.","supports":{"spacing":{"padding":true,"margin":true},"color":{"color":true,"background":true}},"attributes":{"activatorEvent":{"type":"string","default":"hover"},"activeItemsClientId":{"type":"string"}},"providesContext":{"aahb/accordion-activeItemsClientId":"activeItemsClientId"},"textdomain":"advanced-accordion-block","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":["aahb-horizontal-accordion"],"viewScript":["aahb-horizontal-accordion"]}');(0,e.registerBlockType)(d,{icon:{src:function(){return(0,r.createElement)("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)("g",{transform:"rotate(90 8 8)"},(0,r.createElement)("path",{fill:"currentColor",d:"M0 4v8h16v-8h-16zM15 11h-14v-4h14v4z"}),(0,r.createElement)("path",{fill:"currentColor",d:"M0 0h16v3h-16v-3z"}),(0,r.createElement)("path",{fill:"currentColor",d:"M0 13h16v3h-16v-3z"})))},foreground:"#3e7fe0"},edit:e=>{const{attributes:n,clientId:a}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s,e),(0,r.createElement)(l,e),(0,r.createElement)(o,t({isEditor:!0},e)))},save:e=>(0,r.createElement)(o,e),deprecated:[{save:e=>{const{}=e.attributes;return(0,r.createElement)(r.Fragment,null)}}]})}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.m=t,e=[],n.O=(t,r,o,a)=>{if(!r){var i=1/0;for(d=0;d<e.length;d++){for(var[r,o,a]=e[d],c=!0,l=0;l<r.length;l++)(!1&a||i>=a)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(c=!1,a<i&&(i=a));if(c){e.splice(d--,1);var s=o();void 0!==s&&(t=s)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[r,o,a]},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={179:0,939:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,a,[i,c,l]=r,s=0;if(i.some((t=>0!==e[t]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(l)var d=l(n)}for(t&&t(r);s<i.length;s++)a=i[s],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(d)},r=globalThis.webpackChunkaccordion=globalThis.webpackChunkaccordion||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var o=n.O(void 0,[939],(()=>n(723)));o=n.O(o)})();