(()=>{var e,o,t,r={3402:(e,o,t)=>{"use strict";var r=t(5573),n=t(790);const i=(0,n.jsx)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 10C7.10457 10 8 9.10457 8 8C8 6.89543 7.10457 6 6 6C4.89543 6 4 6.89543 4 8C4 9.10457 4.89543 10 6 10ZM20 8.75H11.1111V7.25L20 7.25V8.75ZM20 15.75L11.1111 15.75V14.25L20 14.25V15.75ZM8 15C8 16.1046 7.10457 17 6 17C4.89543 17 4 16.1046 4 15C4 13.8954 4.89543 13 6 13C7.10457 13 8 13.8954 8 15Z",fill:"currentColor"})}),c=window.wp.blocks,s=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","name":"woocommerce/dropdown","title":"Dropdown","description":"Display options in a dropdown.","category":"woocommerce","keywords":["WooCommerce"],"textdomain":"woocommerce","apiVersion":3,"ancestor":["woocommerce/add-to-cart-with-options-variation-selector-attribute"],"supports":{"interactivity":true,"woocommerce":{"innerBlockDisplayStyle":true}},"usesContext":["woocommerce/selectableItems","woocommerce/attributeId"],"attributes":{},"viewScriptModule":"woocommerce/dropdown","style":"file:../woocommerce/dropdown-style.css","editorStyle":"file:../woocommerce/dropdown-editor.css"}');var l=t(7723),a=t(4921);const d=window.wp.components,p=window.wp.blockEditor;t(6233),t(6789);(0,c.registerBlockType)(s,{edit:e=>{const{context:o}=e,t=o?.["woocommerce/selectableItems"]??{},r=t.isLoading??!1,i=Array.isArray(t.items)?t.items:[],c=(0,p.useBlockProps)({className:(0,a.A)("wc-block-dropdown",{"is-loading":r})});return(0,n.jsx)("div",{...c,children:(0,n.jsx)(d.Disabled,{children:(0,n.jsxs)("fieldset",{className:"wc-block-dropdown__fieldset",children:[(0,n.jsx)("legend",{className:"screen-reader-text",children:(0,l.__)("Choose an option","woocommerce")}),r?(0,n.jsx)("div",{className:"wc-block-dropdown__skeleton",children:(0,n.jsx)("div",{className:"wc-block-dropdown__skeleton-option"})}):(0,n.jsxs)("select",{className:"wc-block-dropdown__select","aria-label":t.groupLabel,children:[(0,n.jsx)("option",{value:"",children:(0,l.__)("Choose an option","woocommerce")}),i.map((e,o)=>{const t=function(e){return"string"==typeof e.label&&e.label.trim().length>0?(e=>{if("string"!=typeof e)return"";const o=document.implementation.createHTMLDocument("");return o.body.innerHTML=e,o.body.textContent||""})(e.label.trim()):"string"==typeof e.ariaLabel&&e.ariaLabel.trim().length>0?e.ariaLabel.trim():""}(e);return t?(0,n.jsx)("option",{value:e.value,disabled:!!e.disabled,children:t},o):null})]})]})})})},icon:i,save:()=>null})},6233:()=>{},6789:()=>{},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives}},n={};function i(e){var o=n[e];if(void 0!==o)return o.exports;var t=n[e]={exports:{}};return r[e](t,t.exports,i),t.exports}i.m=r,e=[],i.O=(o,t,r,n)=>{if(!t){var c=1/0;for(d=0;d<e.length;d++){for(var[t,r,n]=e[d],s=!0,l=0;l<t.length;l++)(!1&n||c>=n)&&Object.keys(i.O).every(e=>i.O[e](t[l]))?t.splice(l--,1):(s=!1,n<c&&(c=n));if(s){e.splice(d--,1);var a=r();void 0!==a&&(o=a)}}return o}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[t,r,n]},i.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return i.d(o,{a:o}),o},t=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 c={};o=o||[null,t({}),t([]),t(t)];for(var s=2&r&&e;"object"==typeof s&&!~o.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(o=>c[o]=()=>e[o]);return c.default=()=>e,i.d(n,c),n},i.d=(e,o)=>{for(var t in o)i.o(o,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},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,o)=>Object.prototype.hasOwnProperty.call(e,o),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=3e3,(()=>{var e={3e3:0};i.O.j=o=>0===e[o];var o=(o,t)=>{var r,n,[c,s,l]=t,a=0;if(c.some(o=>0!==e[o])){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);if(l)var d=l(i)}for(o&&o(t);a<c.length;a++)n=c[a],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(d)},t=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var c=i.O(void 0,[94],()=>i(3402));c=i.O(c),((this.wc=this.wc||{}).blocks=this.wc.blocks||{}).dropdown=c})();