(()=>{"use strict";var o,e,t,r={1912:(o,e,t)=>{const r=window.wp.blocks;var c=t(4530),i=t(6012);const n=JSON.parse('{"name":"woocommerce/add-to-cart-with-options-grouped-product-selector","title":"Grouped Product Selector (Beta)","description":"Display a group of products that can be added to the cart.","category":"woocommerce-product-elements","keywords":["WooCommerce"],"usesContext":["postId"],"ancestor":["woocommerce/add-to-cart-with-options"],"textdomain":"woocommerce","apiVersion":3,"supports":{"interactivity":true},"$schema":"https://schemas.wp.org/trunk/block.json","viewScriptModule":"woocommerce/add-to-cart-with-options-grouped-product-selector"}'),s=window.wp.blockEditor,a=[["woocommerce/add-to-cart-with-options-grouped-product-item",{},[["core/group",{layout:{type:"flex",orientation:"horizontal",flexWrap:"nowrap"},style:{spacing:{margin:{top:"1rem",bottom:"1rem"}}}},[["woocommerce/add-to-cart-with-options-grouped-product-item-selector"],["woocommerce/add-to-cart-with-options-grouped-product-item-label",{fontSize:"medium",style:{layout:{selfStretch:"fill"},spacing:{margin:{top:"0",bottom:"0"}},typography:{fontWeight:400}}}],["core/group",{layout:{type:"flex",orientation:"vertical",justifyContent:"right"},style:{spacing:{blockGap:"0"}}},[["woocommerce/product-price",{isDescendentOfSingleProductBlock:!0,fontSize:"medium",textAlign:"right",style:{typography:{fontWeight:400}}}],["woocommerce/product-stock-indicator"]]]]]]]];var p=t(790);(0,r.registerBlockType)(n,{edit:function(o){const{className:e}=o.attributes,t=(0,s.useBlockProps)({className:e}),r=(0,s.useInnerBlocksProps)(t,{template:a,templateLock:"all"});return(0,p.jsx)("div",{...r})},attributes:n.attributes,icon:{src:(0,p.jsx)(c.A,{icon:i.A,className:"wc-block-editor-components-block-icon"})},save:function(){const o=s.useBlockProps.save(),e=s.useInnerBlocksProps.save({...o,role:"list"});return(0,p.jsx)("div",{...e})}})},1609:o=>{o.exports=window.React},790:o=>{o.exports=window.ReactJSXRuntime},6087:o=>{o.exports=window.wp.element},5573:o=>{o.exports=window.wp.primitives}},c={};function i(o){var e=c[o];if(void 0!==e)return e.exports;var t=c[o]={exports:{}};return r[o](t,t.exports,i),t.exports}i.m=r,o=[],i.O=(e,t,r,c)=>{if(!t){var n=1/0;for(l=0;l<o.length;l++){for(var[t,r,c]=o[l],s=!0,a=0;a<t.length;a++)(!1&c||n>=c)&&Object.keys(i.O).every((o=>i.O[o](t[a])))?t.splice(a--,1):(s=!1,c<n&&(n=c));if(s){o.splice(l--,1);var p=r();void 0!==p&&(e=p)}}return e}c=c||0;for(var l=o.length;l>0&&o[l-1][2]>c;l--)o[l]=o[l-1];o[l]=[t,r,c]},i.n=o=>{var e=o&&o.__esModule?()=>o.default:()=>o;return i.d(e,{a:e}),e},t=Object.getPrototypeOf?o=>Object.getPrototypeOf(o):o=>o.__proto__,i.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var c=Object.create(null);i.r(c);var n={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&o;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>n[e]=()=>o[e]));return n.default=()=>o,i.d(c,n),c},i.d=(o,e)=>{for(var t in e)i.o(e,t)&&!i.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:e[t]})},i.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),i.r=o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.j=2,(()=>{var o={2:0};i.O.j=e=>0===o[e];var e=(e,t)=>{var r,c,[n,s,a]=t,p=0;if(n.some((e=>0!==o[e]))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);if(a)var l=a(i)}for(e&&e(t);p<n.length;p++)c=n[p],i.o(o,c)&&o[c]&&o[c][0](),o[c]=0;return i.O(l)},t=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})();var n=i.O(void 0,[94],(()=>i(1912)));n=i.O(n),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["add-to-cart-with-options-grouped-product-selector"]=n})();