Liferay.Loader.define("commerce-frontend-js@4.0.52/components/quantity_selector/ListQuantitySelector",["module","exports","require","@frontend-taglib-clay$clayui/form","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r("@frontend-taglib-clay$clayui/form"),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var l=(0,n.forwardRef)((({allowedQuantities:e,className:t,disabled:r,name:o,onUpdate:l,quantity:i},u)=>n.default.createElement(a.ClaySelectWithOption,{className:t,disabled:r,name:o,onChange:({target:e})=>{l({errors:[],value:Number(e.value)})},options:e.map((e=>({label:String(e),value:e}))),value:i})));t.default=l}}));
//# sourceMappingURL=ListQuantitySelector.js.map