(()=>{"use strict";var e,o,t,r={5650:(e,o,t)=>{t.r(o),t.d(o,{metadata:()=>d,name:()=>m,settings:()=>f});const r=window.wp.components,n=window.wp.blocks,c=window.wp.blockEditor;var i=t(7723),l=t(790);const a="woocommerce/accordion-item",s={name:a};var u=t(4921);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","viewScriptModule":"woocommerce/accordion-group","style":"file:../woocommerce/accordion-group-style.css"}'),p=(0,l.jsxs)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.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,l.jsx)(r.Path,{d:"M4.5 6L8.5 8.5L4.5 11L4.5 6Z",fill:"currentColor"}),(0,l.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,l.jsx)(r.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:o}){const t=(0,c.useBlockProps)(),n=(0,c.useInnerBlocksProps)(t,{template:[[a],[a]],defaultBlock:s,directInsert:!0});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.InspectorControls,{children:(0,l.jsx)(r.PanelBody,{title:(0,i.__)("Settings","woocommerce"),initialOpen:!0,children:(0,l.jsx)(r.ToggleControl,{isBlock:!0,__nextHasNoMarginBottom:!0,label:(0,i.__)("Auto-close","woocommerce"),onChange:e=>{o({autoclose:e})},checked:e,help:(0,i.__)("Automatically close accordions when a new one is opened.","woocommerce")})})},"setting"),(0,l.jsx)("div",{...n})]})},save:function({attributes:e}){const{iconPosition:o}=e,t=c.useBlockProps.save(),r=(0,u.A)({"icon-position-left":"left"===o},t.className);return(0,l.jsx)("div",{...c.useInnerBlocksProps.save({...t,className:r})})}};(0,n.registerBlockType)(d,f)},790:e=>{e.exports=window.ReactJSXRuntime},7723:e=>{e.exports=window.wp.i18n}},n={};function c(e){var o=n[e];if(void 0!==o)return o.exports;var t=n[e]={exports:{}};return r[e](t,t.exports,c),t.exports}c.m=r,e=[],c.O=(o,t,r,n)=>{if(!t){var i=1/0;for(u=0;u