(()=>{"use strict";var o,e,t,r={7339:(o,e,t)=>{const r=window.wp.blocks;var c=t(4530),a=t(6012);const i=JSON.parse('{"name":"woocommerce/add-to-cart-with-options-variation-selector","title":"Variation Selector (Beta)","description":"Display any product variations available to select from and add to 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-variation-selector"}'),n=window.wp.blockEditor;var s=t(7723);const l=[["woocommerce/add-to-cart-with-options-variation-selector-attribute",{},[["core/group",{layout:{type:"flex",orientation:"vertical",flexWrap:"nowrap"},style:{spacing:{blockGap:"0.5rem",margin:{top:"1rem",bottom:"1rem"}}}},[["woocommerce/add-to-cart-with-options-variation-selector-attribute-name",{fontSize:"medium"}],["woocommerce/add-to-cart-with-options-variation-selector-attribute-options"]]]]]];(0,s.__)("Color","woocommerce"),(0,s.__)("Blue","woocommerce"),(0,s.__)("Red","woocommerce"),(0,s.__)("Green","woocommerce"),(0,s.__)("Size","woocommerce"),(0,s.__)("Small","woocommerce"),(0,s.__)("Medium","woocommerce"),(0,s.__)("Large","woocommerce");var p=t(790);(0,r.registerBlockType)(i,{edit:function(o){const{className:e}=o.attributes,t=(0,n.useBlockProps)({className:e}),r=(0,n.useInnerBlocksProps)(t,{template:l,templateLock:"all"});return(0,p.jsx)("div",{...r})},icon:{src:(0,p.jsx)(c.A,{icon:a.A,className:"wc-block-editor-components-block-icon"})},save:function(){const o=n.useBlockProps.save(),e=n.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},7723:o=>{o.exports=window.wp.i18n},5573:o=>{o.exports=window.wp.primitives}},c={};function a(o){var e=c[o];if(void 0!==e)return e.exports;var t=c[o]={exports:{}};return r[o](t,t.exports,a),t.exports}a.m=r,o=[],a.O=(e,t,r,c)=>{if(!t){var i=1/0;for(p=0;p<o.length;p++){for(var[t,r,c]=o[p],n=!0,s=0;s<t.length;s++)(!1&c||i>=c)&&Object.keys(a.O).every((o=>a.O[o](t[s])))?t.splice(s--,1):(n=!1,c<i&&(i=c));if(n){o.splice(p--,1);var l=r();void 0!==l&&(e=l)}}return e}c=c||0;for(var p=o.length;p>0&&o[p-1][2]>c;p--)o[p]=o[p-1];o[p]=[t,r,c]},a.n=o=>{var e=o&&o.__esModule?()=>o.default:()=>o;return a.d(e,{a:e}),e},t=Object.getPrototypeOf?o=>Object.getPrototypeOf(o):o=>o.__proto__,a.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);a.r(c);var i={};e=e||[null,t({}),t([]),t(t)];for(var n=2&r&&o;"object"==typeof n&&!~e.indexOf(n);n=t(n))Object.getOwnPropertyNames(n).forEach((e=>i[e]=()=>o[e]));return i.default=()=>o,a.d(c,i),c},a.d=(o,e)=>{for(var t in e)a.o(e,t)&&!a.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:e[t]})},a.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),a.r=o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.j=2475,(()=>{var o={2475:0};a.O.j=e=>0===o[e];var e=(e,t)=>{var r,c,[i,n,s]=t,l=0;if(i.some((e=>0!==o[e]))){for(r in n)a.o(n,r)&&(a.m[r]=n[r]);if(s)var p=s(a)}for(e&&e(t);l<i.length;l++)c=i[l],a.o(o,c)&&o[c]&&o[c][0](),o[c]=0;return a.O(p)},t=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))})();var i=a.O(void 0,[94],(()=>a(7339)));i=a.O(i),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["add-to-cart-with-options-variation-selector"]=i})();