(()=>{"use strict";var e,t,o,r={9948:(e,t,o)=>{const r=window.wp.blocks;var n=o(8992);const i=window.wp.blockEditor,a=window.wc.wcBlocksSharedContext,c=window.wp.components,l=JSON.parse('{"name":"woocommerce/add-to-cart-with-options-grouped-product-item-label","title":"Grouped Product: Item Label (Beta)","description":"Display the product title as a label or paragraph.","category":"woocommerce-product-elements","keywords":["WooCommerce"],"ancestor":["woocommerce/add-to-cart-with-options-grouped-product-item"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json","supports":{"color":{"text":true,"background":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"html":false,"layout":{"selfStretch":true},"spacing":{"margin":true,"padding":true,"blockGap":true},"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"textAlign":true,"__experimentalDefaultControls":{"fontSize":true,"fontWeight":true,"fontStyle":true}}},"usesContext":["postId","postType"]}');var p=o(790);(0,r.registerBlockType)(l.name,{...l,edit:function(){const e=(0,i.useBlockProps)(),{isLoading:t,product:o}=(0,a.useProductDataContext)();return t||!(e=>!!e&&"id"in e&&0!==e.id)(o)?(0,p.jsx)(c.Spinner,{}):(0,p.jsx)("div",{...e,children:(0,p.jsx)("div",{className:"wp-block-woocommerce-add-to-cart-with-options-grouped-product-item-label",children:o.name})})},icon:n.A,save:()=>null})},1609:e=>{e.exports=window.React},790:e=>{e.exports=window.ReactJSXRuntime},5573:e=>{e.exports=window.wp.primitives}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.m=r,e=[],i.O=(t,o,r,n)=>{if(!o){var a=1/0;for(s=0;s<e.length;s++){for(var[o,r,n]=e[s],c=!0,l=0;l<o.length;l++)(!1&n||a>=n)&&Object.keys(i.O).every((e=>i.O[e](o[l])))?o.splice(l--,1):(c=!1,n<a&&(a=n));if(c){e.splice(s--,1);var p=r();void 0!==p&&(t=p)}}return t}n=n||0;for(var s=e.length;s>0&&e[s-1][2]>n;s--)e[s]=e[s-1];e[s]=[o,r,n]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},o=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 a={};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=>a[t]=()=>e[t]));return a.default=()=>e,i.d(n,a),n},i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=1861,(()=>{var e={1861:0};i.O.j=t=>0===e[t];var t=(t,o)=>{var r,n,[a,c,l]=o,p=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(l)var s=l(i)}for(t&&t(o);p<a.length;p++)n=a[p],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(s)},o=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=i.O(void 0,[94],(()=>i(9948)));a=i.O(a),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["add-to-cart-with-options-grouped-product-item-label"]=a})();