Liferay.Loader.define("commerce-frontend-js@4.0.52/utilities/cookies",["module","exports","require"],(function(e,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class e{constructor(e=null){if(!e)throw new Error("Scope must be defined");this.scope=e}getValue(e){const[,t]=document.cookie.split("".concat(this.scope).concat(e,"="));return t?t.split(";")[0]:null}setValue(e,t,o,c="/"){const n="".concat(this.scope).concat(e,"=").concat(t,";"),i="path=".concat(c,";");let a="";if(o){const e=o instanceof Date?o:new Date(o);a="expires=".concat(e.toUTCString(),";")}document.cookie="".concat(n).concat(a).concat(i)}}var c=e;t.default=c}}));
//# sourceMappingURL=cookies.js.map