source: frontend/node_modules/.cache/babel-loader/fa8c8851a6059cf4810425861f134d592df111eba63301dbf2c7dd83dac02782.json

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 3 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 6.2 KB
Line 
1{"ast":null,"code":"import utils from '../utils.js';\nimport platform from '../platform/index.js';\nexport default platform.hasStandardBrowserEnv ?\n// Standard browser envs support document.cookie\n{\n write(name, value, expires, path, domain, secure, sameSite) {\n if (typeof document === 'undefined') return;\n const cookie = [`${name}=${encodeURIComponent(value)}`];\n if (utils.isNumber(expires)) {\n cookie.push(`expires=${new Date(expires).toUTCString()}`);\n }\n if (utils.isString(path)) {\n cookie.push(`path=${path}`);\n }\n if (utils.isString(domain)) {\n cookie.push(`domain=${domain}`);\n }\n if (secure === true) {\n cookie.push('secure');\n }\n if (utils.isString(sameSite)) {\n cookie.push(`SameSite=${sameSite}`);\n }\n document.cookie = cookie.join('; ');\n },\n read(name) {\n if (typeof document === 'undefined') return null;\n // Match name=value by splitting on the semicolon separator instead of building a\n // RegExp from `name` — interpolating an unescaped string into a RegExp would let\n // metacharacters (e.g. `.+?` in an attacker-influenced cookie name) cause ReDoS or\n // match the wrong cookie. Browsers may serialize cookie pairs as either \";\" or\n // \"; \", so ignore optional whitespace before each cookie name.\n const cookies = document.cookie.split(';');\n for (let i = 0; i < cookies.length; i++) {\n const cookie = cookies[i].replace(/^\\s+/, '');\n const eq = cookie.indexOf('=');\n if (eq !== -1 && cookie.slice(0, eq) === name) {\n return decodeURIComponent(cookie.slice(eq + 1));\n }\n }\n return null;\n },\n remove(name) {\n this.write(name, '', Date.now() - 86400000, '/');\n }\n} :\n// Non-standard browser env (web workers, react-native) lack needed support.\n{\n write() {},\n read() {\n return null;\n },\n remove() {}\n};","map":{"version":3,"names":["utils","platform","hasStandardBrowserEnv","write","name","value","expires","path","domain","secure","sameSite","document","cookie","encodeURIComponent","isNumber","push","Date","toUTCString","isString","join","read","cookies","split","i","length","replace","eq","indexOf","slice","decodeURIComponent","remove","now"],"sources":["C:/Users/User/Downloads/medora5/frontend/node_modules/axios/lib/helpers/cookies.js"],"sourcesContent":["import utils from '../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv\n ? // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure, sameSite) {\n if (typeof document === 'undefined') return;\n\n const cookie = [`${name}=${encodeURIComponent(value)}`];\n\n if (utils.isNumber(expires)) {\n cookie.push(`expires=${new Date(expires).toUTCString()}`);\n }\n if (utils.isString(path)) {\n cookie.push(`path=${path}`);\n }\n if (utils.isString(domain)) {\n cookie.push(`domain=${domain}`);\n }\n if (secure === true) {\n cookie.push('secure');\n }\n if (utils.isString(sameSite)) {\n cookie.push(`SameSite=${sameSite}`);\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n if (typeof document === 'undefined') return null;\n // Match name=value by splitting on the semicolon separator instead of building a\n // RegExp from `name` — interpolating an unescaped string into a RegExp would let\n // metacharacters (e.g. `.+?` in an attacker-influenced cookie name) cause ReDoS or\n // match the wrong cookie. Browsers may serialize cookie pairs as either \";\" or\n // \"; \", so ignore optional whitespace before each cookie name.\n const cookies = document.cookie.split(';');\n for (let i = 0; i < cookies.length; i++) {\n const cookie = cookies[i].replace(/^\\s+/, '');\n const eq = cookie.indexOf('=');\n if (eq !== -1 && cookie.slice(0, eq) === name) {\n return decodeURIComponent(cookie.slice(eq + 1));\n }\n }\n return null;\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000, '/');\n },\n }\n : // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {},\n };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,aAAa;AAC/B,OAAOC,QAAQ,MAAM,sBAAsB;AAE3C,eAAeA,QAAQ,CAACC,qBAAqB;AACzC;AACA;EACEC,KAAKA,CAACC,IAAI,EAAEC,KAAK,EAAEC,OAAO,EAAEC,IAAI,EAAE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O,CAAC,MAAM,EAAE,EAAE,CAAC;MAC7C,MAAMC,EAAE,GAAGd,MAAM,CAACe,OAAO,CAAC,GAAG,CAAC;MAC9B,IAAID,EAAE,KAAK,CAAC,CAAC,IAAId,MAAM,CAACgB,KAAK,CAAC,CAAC,EAAEF,EAAE,CAAC,KAAKtB,IAAI,EAAE;QAC7C,OAAOyB,kBAAkB,CAACjB,MAAM,CAACgB,KAAK,CAACF,EAAE,GAAG,CAAC,CAAC,CAAC;MACjD;IACF;IACA,OAAO,IAAI;EACb,CAAC;EAEDI,MAAMA,CAAC1B,IAAI,EAAE;IACX,IAAI,CAACD,KAAK,CAACC,IAAI,EAAE,EAAE,EAAEY,IAAI,CAACe,GAAG,CAAC,CAAC,GAAG,QAAQ,EAAE,GAAG,CAAC;EAClD;AACF,CAAC;AACD;AACA;EACE5B,KAAKA,CAAA,EAAG,CAAC,CAAC;EACViB,IAAIA,CAAA,EAAG;IACL,OAAO,IAAI;EACb,CAAC;EACDU,MAAMA,CAAA,EAAG,CAAC;AACZ,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
Note: See TracBrowser for help on using the repository browser.