(()=>{"use strict";var e,o,t,r={7731:(e,o,t)=>{t.r(o),t.d(o,{metadata:()=>p,name:()=>f,settings:()=>w});const r=window.wp.components,n=window.wp.blocks,i=window.wc.wcSettings,c=window.wp.blockEditor;var l=t(7723),a=t(790);const s="woocommerce/accordion-item",u={name:s};var d=t(4921);const p=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"woocommerce/accordion-group","title":"Accordion Group","category":"woocommerce","keywords":["WooCommerce"],"description":"A group of headers and associated expandable content.","example":{},"__experimental":true,"supports":{"html":false,"align":["wide","full"],"background":{"backgroundImage":true,"backgroundSize":true,"__experimentalDefaultControls":{"backgroundImage":true}},"color":{"background":true,"gradient":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"spacing":{"padding":true,"margin":["top","bottom"],"blockGap":true},"shadow":true,"layout":true,"interactivity":true},"attributes":{"iconPosition":{"type":"string","default":"right"},"autoclose":{"type":"boolean","default":false},"allowedBlocks":{"type":"array"}},"allowedBlocks":["woocommerce/accordion-item"],"textdomain":"woocommerce","viewScriptModule":"woocommerce/accordion-group","style":"file:../woocommerce/accordion-group-style.css"}'),m=(0,a.jsxs)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 9.25L9.5 9.25L9.5 7.75L19.5 7.75L19.5 9.25Z",fill:"currentColor"}),(0,a.jsx)(r.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z",fill:"currentColor"}),(0,a.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5 16.25L9.5 16.25L9.5 14.75L19.5 14.75L19.5 16.25Z",fill:"currentColor"}),(0,a.jsx)(r.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z",fill:"currentColor"})]}),{name:f}=p,w={apiVersion:3,icon:m,example:{},edit:function({attributes:{autoclose:e},setAttributes:o}){const t=(0,c.useBlockProps)(),n=(0,c.useInnerBlocksProps)(t,{template:[[s],[s]],defaultBlock:u,directInsert:!0});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.InspectorControls,{children:(0,a.jsx)(r.PanelBody,{title:(0,l.__)("Settings","woocommerce"),initialOpen:!0,children:(0,a.jsx)(r.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,l.__)("Auto-close","woocommerce"),onChange:e=>{o({autoclose:e})},checked:e,help:(0,l.__)("Automatically close accordions when a new one is opened.","woocommerce")})})},"setting"),(0,a.jsx)("div",{...n})]})},save:function({attributes:e}){const{iconPosition:o}=e,t=c.useBlockProps.save(),r=(0,d.A)({"icon-position-left":"left"===o},t.className);return(0,a.jsx)("div",{...c.useInnerBlocksProps.save({...t,className:r})})},supports:{inserter:(0,i.isWpVersion)("6.9","<")}};(0,n.registerBlockType)(p,w)},790:e=>{e.exports=window.ReactJSXRuntime},7723:e=>{e.exports=window.wp.i18n}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var t=n[e]={exports:{}};return r[e](t,t.exports,i),t.exports}i.m=r,e=[],i.O=(o,t,r,n)=>{if(!t){var c=1/0;for(u=0;u<e.length;u++){for(var[t,r,n]=e[u],l=!0,a=0;a<t.length;a++)(!1&n||c>=n)&&Object.keys(i.O).every((e=>i.O[e](t[a])))?t.splice(a--,1):(l=!1,n<c&&(c=n));if(l){e.splice(u--,1);var s=r();void 0!==s&&(o=s)}}return o}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[t,r,n]},i.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return i.d(o,{a:o}),o},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var n=Object.create(null);i.r(n);var c={};o=o||[null,t({}),t([]),t(t)];for(var l=2&r&&e;"object"==typeof l&&!~o.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((o=>c[o]=()=>e[o]));return c.default=()=>e,i.d(n,c),n},i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},i.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=6861,(()=>{var e={6861:0};i.O.j=o=>0===e[o];var o=(o,t)=>{var r,n,[c,l,a]=t,s=0;if(c.some((o=>0!==e[o]))){for(r in l)i.o(l,r)&&(i.m[r]=l[r]);if(a)var u=a(i)}for(o&&o(t);s<c.length;s++)n=c[s],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(u)},t=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var c=i.O(void 0,[94],(()=>i(7731)));c=i.O(c),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["accordion-group"]=c})();