Liferay.Loader.define("commerce-frontend-js@4.0.75/components/quantity_selector/QuantitySelector",["module","exports","require","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./InputQuantitySelector","./ListQuantitySelector"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=_interopRequireDefault(r("liferay!frontend-js-react-web$classnames")),a=(_interopRequireDefault(r("liferay!frontend-js-react-web$prop-types")),function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react"))),i=_interopRequireDefault(r("./InputQuantitySelector")),o=_interopRequireDefault(r("./ListQuantitySelector"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const e=(0,a.forwardRef)((({alignment:e,allowedQuantities:t,disabled:r,max:u,min:l,name:f,onUpdate:c,quantity:d,size:s,step:p},y)=>{const m=(0,a.useRef)(),_=(null==t?void 0:t.length)>0?o.default:i.default;return a.default.createElement(_,{alignment:e,allowedQuantities:t,className:(0,n.default)({["form-control-".concat(s)]:s,"quantity-selector":!0}),disabled:r,max:u,min:l,name:f,onUpdate:c,quantity:d,ref:y||m,step:p})}));e.defaultProps={disabled:!1};var u=e;t.default=u}}));
//# sourceMappingURL=QuantitySelector.js.map