(()=>{"use strict";var e,t,r,o={6394:(e,t,r)=>{const o=window.wp.blocks;var i=r(7871),a=r(5099);const n=JSON.parse('{"name":"woocommerce/add-to-cart-with-options-variation-selector-attribute-name","title":"Variation Selector: Attribute Name (Beta)","description":"Format the name of an attribute associated with a variable product.","category":"woocommerce-product-elements","keywords":["WooCommerce"],"ancestor":["woocommerce/add-to-cart-with-options-variation-selector-attribute"],"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json","supports":{"inserter":false,"interactivity":true,"align":false,"alignWide":false,"color":{"__experimentalSkipSerialization":true,"gradients":true,"__experimentalDefaultControls":{"background":true,"text":true}},"typography":{"__experimentalSkipSerialization":["fontSize","lineHeight","fontFamily","fontWeight","fontStyle","textTransform","textDecoration","letterSpacing"],"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontWeight":true,"__experimentalFontStyle":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalLetterSpacing":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}},"spacing":{"__experimentalSkipSerialization":true,"padding":["horizontal","vertical"],"__experimentalDefaultControls":{"padding":true}}},"usesContext":["woocommerce/attributeId","woocommerce/attributeName","woocommerce/attributeTerms"],"style":"file:../woocommerce/add-to-cart-with-options-variation-selector-attribute-name-style.css"}'),l=window.wp.blockEditor,s=window.wc.wcBlocksSharedContext;var c=r(4921),p=r(790);(0,o.registerBlockType)(n,{edit:function(e){const{attributes:t}=e,{className:r}=t,o=(0,l.__experimentalUseColorProps)(t),[i,a]=(0,l.useSettings)("typography.fluid","layout"),n=(0,l.getTypographyClassesAndStyles)(t,{typography:{fluid:i},layout:{wideSize:a?.wideSize}}),u=(0,l.__experimentalGetSpacingClassesAndStyles)(t),m=(0,l.useBlockProps)({className:(0,c.A)(r,o.className,n.className,u.className),style:{...o.style,...n.style,...u.style}}),{data:d}=(0,s.useCustomDataContext)("attribute");if(d)return(0,p.jsx)("label",{...m,htmlFor:d.taxonomy,children:d.name})},icon:{src:(0,p.jsx)(i.A,{icon:a.A})},save:()=>null})},790:e=>{e.exports=window.ReactJSXRuntime},6087:e=>{e.exports=window.wp.element},5573:e=>{e.exports=window.wp.primitives}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.m=o,e=[],a.O=(t,r,o,i)=>{if(!r){var n=1/0;for(p=0;p<e.length;p++){for(var[r,o,i]=e[p],l=!0,s=0;s<r.length;s++)(!1&i||n>=i)&&Object.keys(a.O).every(e=>a.O[e](r[s]))?r.splice(s--,1):(l=!1,i<n&&(n=i));if(l){e.splice(p--,1);var c=o();void 0!==c&&(t=c)}}return t}i=i||0;for(var p=e.length;p>0&&e[p-1][2]>i;p--)e[p]=e[p-1];e[p]=[r,o,i]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var i=Object.create(null);a.r(i);var n={};t=t||[null,r({}),r([]),r(r)];for(var l=2&o&&e;"object"==typeof l&&!~t.indexOf(l);l=r(l))Object.getOwnPropertyNames(l).forEach(t=>n[t]=()=>e[t]);return n.default=()=>e,a.d(i,n),i},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),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=2344,(()=>{var e={2344:0};a.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[n,l,s]=r,c=0;if(n.some(t=>0!==e[t])){for(o in l)a.o(l,o)&&(a.m[o]=l[o]);if(s)var p=s(a)}for(t&&t(r);c<n.length;c++)i=n[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(p)},r=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=a.O(void 0,[94],()=>a(6394));n=a.O(n),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["add-to-cart-with-options-variation-selector-attribute-name"]=n})();