Liferay.Loader.define("commerce-product-content-web@4.0.80/info/item/renderer/availability_label/js/AvailabilityCPInstanceChangeHandler",["module","exports","require","commerce-frontend-js/utilities/eventsDefinitions"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function _default({namespace:t}){Liferay.on("".concat(t).concat(i.CP_INSTANCE_CHANGED),(({cpInstance:n})=>{const i="".concat(t).concat(e),r=document.querySelector(".".concat(i));if(r){const{availability:e,availabilityDisplayType:t}=n;r.querySelector(".label-item").innerHTML=e,r.className="label ".concat(t?"label-".concat(t):"invisible"," m-0 ").concat(i)}}))};var i=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 n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=i?Object.getOwnPropertyDescriptor(e,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n("commerce-frontend-js/utilities/eventsDefinitions"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}const e="availability-label"}}));
//# sourceMappingURL=AvailabilityCPInstanceChangeHandler.js.map