(()=>{var e,t,o,r={1172:(e,t,o)=>{"use strict";o.r(t),o.d(t,{metadata:()=>d,name:()=>m,settings:()=>f});var r=o(1609);const n=window.wp.components,a=window.wp.blocks,l=window.wp.blockEditor;var c=o(7723);const i="woocommerce/accordion-item",s={name:i};var u=o(851);const d=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"}');o(1627);const p=(0,r.createElement)(n.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(n.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,r.createElement)(n.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z",fill:"currentColor"}),(0,r.createElement)(n.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,r.createElement)(n.Path,{d:"M4.5 13L8.5 15.5L4.5 18L4.5 13Z",fill:"currentColor"})),{name:m}=d,f={apiVersion:3,icon:p,example:{},edit:function({attributes:{autoclose:e},setAttributes:t}){const o=(0,l.useBlockProps)(),a=(0,l.useInnerBlocksProps)(o,{template:[[i],[i]],defaultBlock:s,directInsert:!0});return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.InspectorControls,{key:"setting"},(0,r.createElement)(n.PanelBody,{title:(0,c.__)("Settings","woocommerce"),initialOpen:!0},(0,r.createElement)(n.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,c.__)("Auto-close","woocommerce"),onChange:e=>{t({autoclose:e})},checked:e,help:(0,c.__)("Automatically close accordions when a new one is opened.","woocommerce")}))),(0,r.createElement)("div",{...a}))},save:function({attributes:e}){const{iconPosition:t}=e,o=l.useBlockProps.save(),n=(0,u.A)({"icon-position-left":"left"===t},o.className);return(0,r.createElement)("div",{...l.useInnerBlocksProps.save({...o,className:n})})}};(0,a.registerBlockType)(d,f)},1627:()=>{},1609:e=>{"use strict";e.exports=window.React},7723:e=>{"use strict";e.exports=window.wp.i18n}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e].call(o.exports,o,o.exports,a),o.exports}a.m=r,e=[],a.O=(t,o,r,n)=>{if(!o){var l=1/0;for(u=0;u<e.length;u++){for(var[o,r,n]=e[u],c=!0,i=0;i<o.length;i++)(!1&n||l>=n)&&Object.keys(a.O).every((e=>a.O[e](o[i])))?o.splice(i--,1):(c=!1,n<l&&(l=n));if(c){e.splice(u--,1);var s=r();void 0!==s&&(t=s)}}return t}n=n||0;for(var u=e.length;u>0&&e[u-1][2]>n;u--)e[u]=e[u-1];e[u]=[o,r,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},o=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.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);a.r(n);var l={};t=t||[null,o({}),o([]),o(o)];for(var c=2&r&&e;"object"==typeof c&&!~t.indexOf(c);c=o(c))Object.getOwnPropertyNames(c).forEach((t=>l[t]=()=>e[t]));return l.default=()=>e,a.d(n,l),n},a.d=(e,t)=>{for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.j=6861,(()=>{var e={6861:0};a.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[l,c,i]=o,s=0;if(l.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(i)var u=i(a)}for(t&&t(o);s<l.length;s++)n=l[s],a.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return a.O(u)},o=self.webpackChunkwebpackWcBlocksMainJsonp=self.webpackChunkwebpackWcBlocksMainJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var l=a.O(void 0,[94],(()=>a(1172)));l=a.O(l),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["accordion-group"]=l})();