Liferay.Loader.define("commerce-frontend-js@4.0.75/utilities/cookies",["module","exports","require","frontend-js-web"],(function(e,o,t){window;{Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var i=t("frontend-js-web");class CommerceCookie{constructor(e=null,o){if(!e)throw new Error("Scope must be defined");this.scope=e,this.cookieType=o||i.COOKIE_TYPES.NECESSARY}getValue(e){return(0,i.getCookie)(this.scope+e,this.cookieType)}setValue(e,o,t,r="/"){const s={path:r};if(t){const e=t instanceof Date?t:new Date(t);s.expires=e.toUTCString()}return(0,i.setCookie)("".concat(this.scope).concat(e),o,this.cookieType,s)}}var r=CommerceCookie;o.default=r}}));
//# sourceMappingURL=cookies.js.map