Liferay.Loader.define("commerce-frontend-taglib@19.1.14/product_details_modal/ProductDetailsModal",["module","exports","require","frontend-js-metal-web$metal-component","frontend-js-metal-web$metal-soy","./ProductDetailsModal.soy","frontend-taglib-clay$clay-modal"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ProductDetailsModal=void 0;var i=_interopRequireDefault(r("frontend-js-metal-web$metal-component")),a=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={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("frontend-js-metal-web$metal-soy")),o=_interopRequireDefault(r("./ProductDetailsModal.soy"));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}}r("frontend-taglib-clay$clay-modal");class ProductDetailsModal extends i.default{created(){setTimeout((()=>{this._isVisible=!this._isVisible}),2e3)}_handleCloseModal(e){return e.preventDefault(),this.refs.modal.show()}}t.ProductDetailsModal=ProductDetailsModal,a.default.register(ProductDetailsModal,o.default),ProductDetailsModal.STATE={_modalVisible:a.Config.bool().value(!1),addToOrderLink:a.Config.string(),availability:a.Config.string().oneOf(["available","inStock","notAvailable"]).value("inStock"),categories:a.Config.array(a.Config.shapeOf({link:a.Config.string().required(),name:a.Config.string().required()})).value([]),description:a.Config.string(),detailsLink:a.Config.string(),name:a.Config.string().required(),pictureUrl:a.Config.string().required(),settings:a.Config.shapeOf({minQuantity:a.Config.number()}).value(),sku:a.Config.string().required(),spritemap:a.Config.string()};var n=ProductDetailsModal;t.default=n}}));
//# sourceMappingURL=ProductDetailsModal.js.map