{"version":3,"file":"cookiesHelper-BQksSais.mjs","names":[],"sources":["../src/helper/cookiesHelper.ts"],"sourcesContent":["export default{\n  setCookie(name: string, value: string, domain = \"\") {\n    const date = new Date();\n    date.setTime(date.getTime() + 24 * 60 * 60 * 1000);\n    const expires = \"; expires=\" + date.toUTCString();\n    document.cookie =\n      name + \"=\" + (value || \"\") + expires + domain + \"; path=/\";\n  },\n  getCookie(name: string): string | null {\n    const nameEQ = name + \"=\";\n    const ca = document.cookie.split(\";\");\n    for (const cookieValue of ca) {\n      let c = cookieValue;\n      while (c.startsWith(\" \")) c = c.substring(1, c.length);\n      if (0 === c.indexOf(nameEQ))\n        return c.substring(nameEQ.length, c.length);\n    }\n    return null;\n  }\n};\n"],"mappings":";AAAA,IAAA,wBAAc;CACZ,UAAU,MAAc,OAAe,SAAS,IAAI;EAClD,MAAM,uBAAO,IAAI,KAAK;EACtB,KAAK,QAAQ,KAAK,QAAQ,IAAI,OAAU,KAAK,GAAI;EACjD,MAAM,UAAU,eAAe,KAAK,YAAY;EAChD,SAAS,SACP,OAAO,OAAO,SAAS,MAAM,UAAU,SAAS;CACpD;CACA,UAAU,MAA6B;EACrC,MAAM,SAAS,OAAO;EACtB,MAAM,KAAK,SAAS,OAAO,MAAM,GAAG;EACpC,KAAK,MAAM,eAAe,IAAI;GAC5B,IAAI,IAAI;GACR,OAAO,EAAE,WAAW,GAAG,GAAG,IAAI,EAAE,UAAU,GAAG,EAAE,MAAM;GACrD,IAAI,MAAM,EAAE,QAAQ,MAAM,GACxB,OAAO,EAAE,UAAU,OAAO,QAAQ,EAAE,MAAM;EAC9C;EACA,OAAO;CACT;AACF"}