(()=>{var e={262:()=>{}},t={};function l(o){var n=t[o];if(void 0!==n)return n.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,l),r.exports}l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";l.r(o);const e=window.wc.__experimentalInteractivity;l(262);const{state:t}=(0,e.store)("woocommerce/interactivity-dropdown",{state:{get placeholderText(){const{selectedItem:e}=t;return(null==e?void 0:e.label)||"Select an option"},get isSelected(){const{currentItem:l}=(0,e.getContext)(),{selectedItem:o}=t;return(null==o?void 0:o.value)===l.value}},actions:{toggleIsOpen:()=>{const t=(0,e.getContext)();t.isOpen=!t.isOpen},selectDropdownItem:l=>{const o=(0,e.getContext)(),{selectedItem:n}=t,{currentItem:{label:r,value:a}}=o;(null==n?void 0:n.value)===a&&(null==n?void 0:n.label)===r?(t.selectedItem={label:null,value:null},o.selectedItem={label:null,value:null}):(t.selectedItem={label:r,value:a},o.selectedItem={label:r,value:a}),o.isOpen=!1,l.stopPropagation()}}})})(),(this.wc=this.wc||{})["wc-interactivity-dropdown"]=o})();