(()=>{"use strict";var e,t,o,r={6940:(e,t,o)=>{const r=window.wp.blocks;var n=o(5099);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 u=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,u.jsx)(c.Spinner,{}):(0,u.jsx)("div",{...e,children:(0,u.jsx)("div",{className:"wp-block-woocommerce-add-to-cart-with-options-grouped-product-item-label",children:o.name})})},icon:n.A,save:()=>null})},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(p=0;p<e.length;p++){for(var[o,r,n]=e[p],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(p--,1);var u=r();void 0!==u&&(t=u)}}return t}n=n||0;for(var p=e.length;p>0&&e[p-1][2]>n;p--)e[p]=e[p-1];e[p]=[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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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,u=0;if(a.some(t=>0!==e[t])){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(l)var p=l(i)}for(t&&t(o);u<a.length;u++)n=a[u],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(p)},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(6940));a=i.O(a),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["add-to-cart-with-options-grouped-product-item-label"]=a})();