{"version":3,"file":"chunk-23a095b2.js","sources":["../../../../src/components/Login/use-username.ts","../../../../src/composables/use-logout.ts","../../../../src/components/SmartAppBanner/icons/star.svg","../../../../src/components/SmartAppBanner/icons/close.svg","../../../../src/components/SmartAppBanner/icons/cdek.svg","../../../../src/components/SmartAppBanner/SmartAppBanner.vue"],"sourcesContent":["import type { ComputedRef } from 'vue';\nimport { computed } from 'vue';\nimport { useStore } from 'vuex';\n\nexport default function useUsername(): ComputedRef {\n const store = useStore();\n\n return computed(() => {\n return store.state.cabinet.user?.profile?.firstName || store.getters['cabinet/getLoginPhone'];\n });\n}\n","import useTildaUser from '@/composables/use-tilda-user';\nimport { useStore } from 'vuex';\nimport { useAuth } from '@/composables/use-auth/use-auth';\n\nexport default function useLogout() {\n const store = useStore();\n const tildaUser = useTildaUser();\n\n const { initLogout, removeAuthCookie } = useAuth();\n\n const logOut = async () => {\n removeAuthCookie();\n\n tildaUser.removeLS();\n await store.dispatch('cabinet/logoutFromCabinet');\n window.history.pushState('', document.title, window.location.pathname);\n window.location.pathname = `/${store.getters.currentLocaleISO}/`;\n\n await initLogout(`${window.location.origin}/${store.getters.currentLocaleISO}/`);\n };\n\n return {\n logOut,\n };\n}\n","import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"10\",\n height: \"10\",\n fill: \"none\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#00922C\",\n d: \"m5 0 1.234 3.301 3.521.154-2.758 2.194.942 3.396L5 7.1 2.061 9.045l.942-3.396L.245 3.455l3.52-.154z\"\n}, null, -1)\nconst _hoisted_3 = [\n _hoisted_2\n]\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, [..._hoisted_3]))\n}\nexport default { render: render }","import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"20\",\n height: \"20\",\n fill: \"none\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"path\", {\n stroke: \"#000\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n \"stroke-opacity\": \".3\",\n \"stroke-width\": \"2\",\n d: \"M15 5 5 15M5 5l10 10\"\n}, null, -1)\nconst _hoisted_3 = [\n _hoisted_2\n]\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, [..._hoisted_3]))\n}\nexport default { render: render }","import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n fill: \"none\"\n}\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"path\", {\n fill: \"#00BC4C\",\n \"fill-rule\": \"evenodd\",\n d: \"M15.646 5.811H13.12c-5.064 0-9.388 12.402-3.413 12.39h3.845c2.217 0 3.856.78 3.129 2.894L15.683 24h-4.078l-3.315-.036c-4.238-.036-6.974-2.065-7.96-5.138C-.74 15.5.775 8.572 5.137 4.13 7.674 1.55 11.186 0 15.683 0H24l-1.306 3.638c-.838 2.353-2.563 2.173-3.536 2.173z\",\n \"clip-rule\": \"evenodd\"\n}, null, -1)\nconst _hoisted_3 = [\n _hoisted_2\n]\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, [..._hoisted_3]))\n}\nexport default { render: render }","\n\n\n\n\n"],"names":["useUsername","store","useStore","computed","_b","_a","useLogout","tildaUser","useTildaUser","initLogout","removeAuthCookie","useAuth","_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","render","_ctx","_cache","_openBlock","_createElementBlock","StarIcon","CloseIcon","CdekIcon","closeCookieName","needToShow","ref","appLink","cookies","useCookies","closeBanner","days","sendGoal","reachGoal","MOBILE_APP_BANNER_YM_GOALS","watch","newValue","onMounted","parser","getParser","isIos","appStoreId","isAndroidDevice","googlePlayId"],"mappings":"ypFAIA,SAAwBA,IAAmC,CACzD,MAAMC,EAAQC,IAEd,OAAOC,EAAS,IAAM,SACb,QAAAC,GAAAC,EAAAJ,EAAM,MAAM,QAAQ,OAApB,YAAAI,EAA0B,UAA1B,YAAAD,EAAmC,YAAaH,EAAM,QAAQ,uBAAuB,CAAA,CAC7F,CACH,CCNA,SAAwBK,IAAY,CAClC,MAAML,EAAQC,IACRK,EAAYC,IAEZ,CAAE,WAAAC,EAAY,iBAAAC,CAAiB,EAAIC,EAAQ,EAa1C,MAAA,CACL,OAZa,SAAY,CACRD,IAEjBH,EAAU,SAAS,EACb,MAAAN,EAAM,SAAS,2BAA2B,EAChD,OAAO,QAAQ,UAAU,GAAI,SAAS,MAAO,OAAO,SAAS,QAAQ,EACrE,OAAO,SAAS,SAAW,IAAIA,EAAM,QAAQ,gBAAgB,IAEvD,MAAAQ,EAAW,GAAG,OAAO,SAAS,MAAM,IAAIR,EAAM,QAAQ,gBAAgB,GAAG,CAAA,CAI/E,CAEJ,CCtBA,MAAMW,EAAa,CACjB,MAAO,6BACP,MAAO,KACP,OAAQ,KACR,KAAM,MACR,EACMC,EAA0BC,EAAoB,OAAQ,CAC1D,KAAM,UACN,EAAG,qGACL,EAAG,KAAM,EAAE,EACLC,EAAa,CACjBF,CACF,EAEO,SAASG,EAAOC,EAAMC,EAAQ,CACnC,OAAQC,EAAY,EAAEC,EAAoB,MAAOR,EAAY,CAAC,GAAGG,CAAU,CAAC,CAC9E,CACA,MAAeM,EAAA,CAAE,OAAQL,CAAM,ECjBzBJ,EAAa,CACjB,MAAO,6BACP,MAAO,KACP,OAAQ,KACR,KAAM,MACR,EACMC,EAA0BC,EAAoB,OAAQ,CAC1D,OAAQ,OACR,iBAAkB,QAClB,kBAAmB,QACnB,iBAAkB,KAClB,eAAgB,IA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