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,EAC3C,YAAI,0CAA0CA,CAAW,EAAE,EAEnE,OAAO,SAAS,OAAO,CACzB,EAEAX,GACG,IAAIF,EAAK,EACT,IAAIxS,CAAM,EACV,IACCsT,GAAY,CACV,OAAQ,sCACT,EACH,EACC,UAAUC,GAAS,KAAMA,EAAQ,EACpCvT,EAAO,QAAU,OAAK,IAAM0S,GAAI,MAAM,MAAM,CAAC","names":["createMiddleware","router","to","from","next","redirected","callRedirect","url","force","callNext","route","middleware","bg_middlewares","f","IconEnum","ButtonVariation","getWordEnding","count","lastDigit","result","formatPrice","price","withRub","end","headerContent","getProductById","id","color_name","type","client","getFavouritesItems","getStock","item_id","postFavouritesItem","data","postUserFollow","article_id","deleteFavouritesItem","useRequest","requestFunction","options","ref","isLoading","errorMessage","args","attempts","maxAttempts","responseData","err","resolve","getCart","getPromocodes","postItemToCart","size_name","amount","response","updateRetailCart","postPromocodeCheck","promocode","cart_id","patchItemToCart","inner_id","deleteItemFromCart","list","item","useAccountStore","defineStore","isForward","user","userId","toastIsOpen","toast","setUser","info","header","reactive","setHeaderVariation","variation","isCartOpenTrigger","scrollPosition","downloadAdvertising","runningStringIsOpen","runningString","favourites","initFavourites","favouritesPost","postFavourites","favouritesDelete","deleteFavourites","setFavourites","changeFavouritesList","product","method","el","error","cart","initCart","setCart","newCart","editedAddress","title","message","baseURL","axiosBase","axios","setupCache","request","token","unauthToken","wait","ms","retryDelays","getUnauthToken","store","config","Sentry.captureException","__vitePreload","delay","getUserInfo","getUsersGiftCards","getUsersLoyalty","getUsersOrders","mode","getUserOrder","getUserTechOrder","getCitiesByDadata","search","getUsersGiftCardsDesigns","getUsersFollows","verifyChangePhone","code","postUserAddress","postUsersPhone","phone","postUsersCreateGiftCard","postSubscribe","email","patchProfile","first_name","last_name","birthday","gender","height","parameters","patchUserAddress","deleteUserAddress","deleteFromFollows","patchUserNotification","auth","createRouter","createWebHistory","t","savedPosition","_","props","__props","currentIcon","computed","icon","defineAsyncComponent","__variableDynamicImportRuntimeHelper","iconRightBracket","iconVk","_hoisted_1","_sfc_render","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode","classes","useResize","windowWidth","isDesktop","handleResize","onMounted","onUnmounted","getMainPage","getMenu","getRecommendations","getRunningString","getAvailablePoints","city","getHistory","getPickupPoints","getMediaById","mediaId","getSearch","filters","getSearchHistory","getPopularSearch","getCategoryById","params","query","key","getCategoryFilters","categorylink","getCategoryFiltersCount","getCategory","adminMediaData","getAdminMediaData","useRoute","useRouter","emit","__emit","watch","routes","currentMenu","bannerImageId","generateLink","link","redirect","modelValue","_useModel","inputElement","__expose","isOpen","dadata","selectAutocompleteOption","value","onClickOutside","subscribeErrorMessage","postSubscribeData","emailError","stage","computedDescription","onSubmit","getAdminMediaById","getVideoOptions","defaultOptions","iosPlatform","mediaData","getMediaData","imageRef","videoRef","isLoaded","videoOptions","container","computedMediaData","fetchMedia","onMediaLoad","nextTick","initObserver","newId","oldId","menu","menuResponse","initMenu","bannerIsVisible","bannerUrl","bannerOpacity","bannerText","infoLinks","contactsLinks","showWrite","handleSentryError","selectedMenu","headerIsSticky","getButtonCount","button","acc","clickOnButton","mouseEnter","label","close","mouseLeave","clickOnLink","useAsidePages","asidePages","closeAsidePages","onHeaderButtonClick","name","asidePagesComponentsList","asidePagesComponent","componentsKey","strings","width","sourceTexts","repeatedTexts","repeatCount","i","computedShadowColor","getRunningStringData","menuType","closeMenu","menuValue","onMenuItemClick","userInfoData","userInfoErrorMessage","getUserInfoData","layouts","LayoutDefault","cookiesToast","metaLayout","computedLayout","toDepth","fromDepth","pinia","createPinia","app","createApp","App","Sentry.init","Sentry.browserTracingIntegration","Sentry.replayIntegration","vm","lastReloadTimeKey","fiveMinutes","lastReloadTime","lastReloadTimestamp","currentTime","createYmaps","Skeletor"],"ignoreList":[],"sources":["../../../shared/middleware/_middleware.ts","../../../shared/types/types.ui-kit.ts","../../../shared/utils/utils.text.ts","../../../shared/api/items.route.ts","../../../shared/composables/useRequest.ts","../../../shared/api/cart.route.ts","../../../shared/stores/account.store.ts","../../../shared/api/main.ts","../../../shared/api/user.route.ts","../../../shared/middleware/auth.ts","../../src/router/router.ts","../../../uikit/icon/ui-icon.vue","../../../uikit/icon/components/icon-left-bracket.vue","../../../uikit/icon/components/icon-right-bracket.vue","../../../uikit/link/ui-link.vue","../../../uikit/accordion/ui-accordion.vue","../../../shared/composables/useResize.ts","../../../shared/api/content.route.ts","../../../shared/api/category.route.ts","../../../modules/i/common/i.menu-links.vue","../../../uikit/loader/ui.loader.vue","../../../uikit/input/ui-input.vue","../../../uikit/button/ui-button.vue","../../../modules/i/common/i.newsletter-form.vue","../../../shared/api/admin.route.ts","../../../shared/utils/utils.platform.ts","../../../uikit/image/common.image.vue","../../src/components/element/element.menu.vue","../../../uikit/icon/components/icon-close.vue","../../../uikit/icon/components/icon-logo.vue","../../../uikit/icon/components/icon-tg.vue","../../../uikit/icon/components/icon-vk.vue","../../../uikit/icon/components/icon-whatsapp.vue","../../../uikit/overlay/ui-overlay.vue","../../../uikit/toast/ui-toast.vue","../../../modules/ii/ii.footer.vue","../../../uikit/header/ui-header.vue","../../../shared/composables/useAsidePages.ts","../../../uikit/ticker/ui-ticker.vue","../../src/layout/layout.default.vue","../../src/App.vue","../../src/main.ts"],"sourcesContent":["import { RouteLocationNormalized, Router } from 'vue-router';\n\ninterface MiddlewareFunction {\n (options: {\n to: RouteLocationNormalized;\n from: RouteLocationNormalized;\n next: (route: { name?: string; query?: Record }) => void;\n redirect: (url: string, force?: boolean) => void;\n }): Promise | void;\n}\n\ninterface MiddlewareOptions {\n middleware?: MiddlewareFunction[];\n bg_middlewares?: MiddlewareFunction[];\n}\n\nexport function createMiddleware(router: Router) {\n router.beforeEach(async (to, from, next) => {\n if (!to.meta.middleware && !to.meta.bg_middlewares) {\n return next();\n }\n let redirected = false;\n\n const callRedirect = (url: string, force = false) => {\n if (force) return (window.location.href = url);\n redirected = true;\n // Or next({ name: 'routerName' })\n router.push(url);\n };\n\n const callNext = (route: { name?: string; query?: Record }) => {\n redirected = true;\n if (route) next(route);\n else next();\n };\n\n const { middleware = [], bg_middlewares = [] } = to.meta as MiddlewareOptions;\n\n // Background Middleware - не требует ожидания всего рендера и работает в фоне\n for (let f of bg_middlewares) {\n f({ to, from, next: callNext, redirect: callRedirect });\n }\n\n // Middleware с блокировкой рендера\n for (let f of middleware) {\n const result = await f({\n to,\n from,\n next: callNext,\n redirect: callRedirect,\n });\n if (result === false) break;\n }\n\n if (!redirected) {\n next();\n }\n });\n}\n","import { RouteLocationRaw } from 'vue-router';\n\nexport enum IconEnum {\n Tg = 'tg',\n Email = 'email',\n Add = 'add',\n AddBordered = 'add-bordered',\n Bell = 'bell',\n Box = 'box',\n Burger = 'burger',\n Calendar = 'calendar',\n Call = 'call',\n Close = 'close',\n CustomArrow = 'custom-arrow',\n DownArrowCenter = 'down-arrow-center',\n LeftLine = 'left-line',\n Drag = 'drag',\n Handwash = 'handwash',\n Info = 'info',\n Ironing = 'ironing',\n LeftArrowCenter = 'left-arrow-center',\n RightArrowCenter = 'right-arrow-center',\n LeftArrow = 'left-arrow',\n Like = 'like',\n LikeStroke = 'like-stroke',\n Message = 'message',\n Persona = 'persona',\n Plus = 'plus',\n Return = 'return',\n RightArrow = 'right-arrow',\n RotateLeft = 'rotate-left',\n Search = 'search',\n Setting = 'setting',\n Shop = 'shop',\n Unavailable = 'unavailable',\n Logo = 'logo',\n Eye = 'eye',\n LeftParenthesis = 'left-parenthesis',\n RightParenthesis = 'right-parenthesis',\n CardReceive = 'card-receive',\n Trash = 'trash',\n Pin = 'pin',\n Edit = 'edit',\n Check = 'check',\n CheckPhone = 'check-phone',\n LeftArrowSecondary = 'left-arrow-secondary',\n CartPlus = 'cart-plus',\n CartMinus = 'cart-minus',\n}\n\nexport enum ButtonVariation {\n Primary = 'primary',\n Bordered = 'bordered',\n Gray = 'gray',\n Danger = 'danger',\n Graphit = 'graphit',\n}\n\nexport type TagButtonVariation = 'primary' | 'secondary';\nexport type TagButtonSize = 'small' | 'medium' | 'large' | 'xl';\n\nexport interface TagButtonInfo {\n id?: number | string;\n label?: string;\n name?: string;\n value?: string | number;\n colorcode?: string;\n colorcodes?: string[];\n disabled?: boolean;\n gender?: string;\n}\n\nexport type TagButtonModelValue = string | number | Array | Set;\n\nexport type UiHeaderVariation = 'dark' | 'light' | 'light-white';\nexport interface UiHeaderLink {\n path: RouteLocationRaw;\n label: string;\n}\nexport type HeaderButtonName = 'search' | 'favourites' | 'cart' | 'profile';\nexport interface UiHeaderButton {\n icon: IconEnum;\n tag?: 'button' | 'router-link';\n to?: string;\n name: HeaderButtonName;\n}\n\nexport interface HeaderOptions {\n variation?: UiHeaderVariation;\n links?: UiHeaderLink[];\n buttons?: UiHeaderButton[];\n isMenuOpen?: boolean;\n isVisible?: boolean;\n}\n\nexport interface UiOption {\n id: number | string;\n name: string;\n}\n","import { IconEnum, UiHeaderButton, UiHeaderLink } from '../types/types.ui-kit';\n\nexport const getWordEnding = (count: number): string => {\n const lastDigit = count % 10;\n\n let result = 'ов';\n\n if (lastDigit === 1) {\n result = '';\n } else if (lastDigit < 5) {\n result = 'а';\n }\n\n return result;\n};\n\nexport const formatPrice = (price: number, withRub?: boolean) => {\n const end = withRub === false ? '' : '₽';\n\n return price?.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, ' ') + ' ' + end;\n};\n\nexport const headerContent: { links?: UiHeaderLink[]; buttons?: UiHeaderButton[] } = {\n buttons: [\n {\n icon: IconEnum.Search,\n tag: 'button',\n name: 'search',\n },\n {\n icon: IconEnum.Persona,\n tag: 'button',\n name: 'profile',\n },\n {\n icon: IconEnum.LikeStroke,\n tag: 'button',\n name: 'favourites',\n },\n {\n icon: IconEnum.Shop,\n tag: 'button',\n name: 'cart',\n },\n ],\n links: [\n {\n label: 'Для нее',\n path: '/category/all_for_her',\n },\n {\n label: 'Для него',\n path: '/category/all_for_him',\n },\n {\n label: 'Коллекции',\n path: '/',\n },\n {\n label: 'Магазины',\n path: '/info/contacts#shops',\n },\n {\n label: 'Информация',\n path: '/',\n },\n ],\n};\n","import { _ColorsChosen, StockResponse } from '../types/types.admin';\nimport { ResponseWrapper } from '../types/types.api';\nimport { ProductFullInfoResponse, ProductInFavourites } from '../types/types.product';\nimport { client } from './main';\n\n// GET\n\nexport const getProductById = (id: string, color_name: string, type: string) => {\n return client.get>(`/items/${id}`, {\n params: {\n color_name,\n type,\n },\n });\n};\n\nexport const getProductWithChangedGender = (id: string, color_name: string) => {\n return client.get>(\n `/items/${id}/change_gender?color_name=${color_name}`\n );\n};\n\nexport const getFavouritesItems = () => {\n return client.get>('/items/favourites', {\n cache: false,\n });\n};\n\nexport const getStock = (item_id: string) => {\n return client.get>('/stock', {\n params: {\n item_id,\n },\n });\n};\n// POST\n\nexport const postFavouritesItem = (data: {\n article_crm: string;\n colors_chosen: _ColorsChosen[];\n}) => {\n return client.post>('/items/favourites', data); // todo types\n};\n\nexport const postUserFollow = (\n article_id: string,\n data: { color_name: string; size: string; type: string; email: string }\n) => {\n return client.post>(`/items/${article_id}/follow`, data);\n};\n\n// PATCH\n\n// DELETE\nexport const deleteFavouritesItem = (data: {\n article_crm: string;\n colors_chosen: _ColorsChosen[];\n}) => {\n return client.delete>('/items/favourites', {\n data,\n }); // todo types\n};\n","import { ref, Ref } from 'vue';\nimport { RequestFunction } from '../types/types.api';\n\ntype Options = {\n refetch?: boolean;\n};\n\nconst useRequest = (\n requestFunction: RequestFunction,\n options: Options = {}\n) => {\n const data: Ref = ref(null);\n const isLoading = ref(false);\n const errorMessage = ref('');\n\n const execute = async (...args: T): Promise => {\n isLoading.value = true;\n let attempts = 0;\n const maxAttempts = options.refetch ? 3 : 1;\n\n while (attempts < maxAttempts) {\n try {\n attempts++;\n const { data: responseData } = await requestFunction(...args);\n\n if (responseData.status === 'ERR') {\n throw new Error(responseData.message);\n }\n\n data.value = responseData.data;\n errorMessage.value = '';\n break; // Если успешный запрос, выходим из цикла\n } catch (err) {\n errorMessage.value = (err as Error).message;\n\n if (attempts >= maxAttempts) {\n break; // Если достигнут лимит попыток, прекращаем\n }\n await new Promise((resolve) => setTimeout(resolve, 1000)); // Задержка перед повторной попыткой\n } finally {\n if (attempts >= maxAttempts) {\n isLoading.value = false;\n }\n }\n }\n };\n\n return {\n data,\n isLoading,\n errorMessage,\n execute,\n };\n};\n\nexport default useRequest;\n","import { ResponseWrapper } from '../types/types.api';\nimport { Cart, Promocode } from '../types/types.product';\nimport { client } from './main';\n\n// GET\nexport const getCart = () => {\n return client.get>('/cart', {\n cache: false,\n });\n};\n\nexport const getPromocodes = () => {\n return client.get>('/cart/promocodes', {\n cache: false,\n });\n};\n\n// POST\nexport const postItemToCart = (\n item_id: string,\n size_name: string,\n type: string,\n amount: number\n) => {\n return client\n .post>('/cart', {\n item_id,\n size_name,\n amount,\n type,\n })\n .then((response) => {\n updateRetailCart(response.data.data.items_list);\n return response;\n });\n};\n\nexport const postPromocodeCheck = (promocode: string, cart_id?: string) => {\n return client.post>('/cart/promocodes/check', {\n promocode,\n cart_id,\n });\n};\n\n// PATCH\nexport const patchItemToCart = (inner_id: number, size_name: string, amount: number) => {\n return client\n .patch>('/cart', {\n inner_id,\n size_name,\n amount,\n })\n .then((response) => {\n updateRetailCart(response.data.data.items_list);\n return response;\n });\n};\n\n// DELETE\nexport const deleteItemFromCart = (inner_id: number) => {\n return client\n .delete>('/cart', {\n data: { inner_id },\n })\n .then((response) => {\n updateRetailCart(response.data.data.items_list);\n return response;\n });\n};\n\nconst updateRetailCart = (list: Cart['items_list']) => {\n console.log(list);\n\n if (!list.length) {\n return _rc('cart:clear');\n }\n _rc('cart:set', {\n items: list.map((item) => {\n if (!item?.external_id_crm) return;\n return { externalId: item.external_id_crm, quantity: item.amount, price: item.price_promo };\n }),\n });\n};\n","import { defineStore } from 'pinia';\nimport { reactive, ref } from 'vue';\nimport { headerContent } from '@cult/shared/utils/utils.text';\nimport { HeaderOptions, UiHeaderVariation } from '../types/types.ui-kit';\nimport { Cart, ProductInFavourites } from '../types/types.product';\nimport { deleteFavouritesItem, getFavouritesItems, postFavouritesItem } from '../api/items.route';\nimport useRequest from '../composables/useRequest';\nimport { getCart } from '../api/cart.route';\nimport { Address, UserInfo } from '../types/types.account';\nimport { ProcessedShortItemCard } from '../types/types.admin';\n\ninterface Toast {\n title: string;\n message: string;\n type: 'success' | 'error' | 'api';\n}\n\nexport const useAccountStore = defineStore('account', () => {\n const isForward = ref(false);\n const user = ref(null);\n const userId = ref(new Date().getTime() + Math.random().toFixed(0));\n const toastIsOpen = ref(false);\n const toast = ref({\n title: '',\n message: '',\n type: 'success',\n });\n const setUser = (info: UserInfo) => {\n user.value = info;\n };\n\n const header = reactive({\n variation: 'dark',\n isVisible: true,\n ...headerContent,\n });\n const setHeaderVariation = (variation: UiHeaderVariation) => {\n header.variation = variation;\n };\n\n const isCartOpenTrigger = ref(false);\n const scrollPosition = ref(0);\n\n const downloadAdvertising = ref(true);\n const runningStringIsOpen = ref(true);\n const runningString = ref<{\n text: string;\n text_color: string;\n background_color: string;\n link: string;\n is_visible: boolean;\n } | null>(null);\n\n const { data: favourites, execute: initFavourites } = useRequest(getFavouritesItems);\n const { data: favouritesPost, execute: postFavourites } = useRequest(postFavouritesItem);\n const { data: favouritesDelete, execute: deleteFavourites } = useRequest(deleteFavouritesItem);\n const setFavourites = (list: ProductInFavourites[]) => {\n favourites.value = list;\n };\n const changeFavouritesList = async (\n product: ProcessedShortItemCard,\n method: 'delete' | 'add'\n ) => {\n try {\n if (method === 'add') {\n if (favouritesPost.value) {\n favouritesPost.value.push(product);\n setFavourites(favouritesPost.value);\n }\n\n await postFavourites({\n article_crm: product.article_crm,\n colors_chosen: product.colors_chosen,\n });\n favouritesPost.value && setFavourites(favouritesPost.value);\n } else {\n if (favouritesPost.value) {\n favouritesPost.value = favouritesPost.value?.filter(\n (el) =>\n el.article_crm + el.colors_chosen[0].color_name + el.colors_chosen[0].types[0] !==\n product.article_crm +\n product.colors_chosen[0].color_name +\n product.colors_chosen[0].types[0]\n );\n setFavourites(favouritesPost.value);\n }\n\n await deleteFavourites({\n article_crm: product.article_crm,\n colors_chosen: product.colors_chosen,\n });\n favouritesDelete.value && setFavourites(favouritesDelete.value);\n }\n } catch (error) {\n console.error(error);\n }\n };\n\n const { data: cart, execute: initCart } = useRequest(getCart);\n const setCart = (newCart: Cart) => {\n cart.value = newCart;\n };\n\n const editedAddress = ref
();\n\n const openToast = (\n title: string,\n message: string,\n type: 'error' | 'success' | 'api' = 'success'\n ) => {\n toastIsOpen.value = true;\n toast.value = {\n title,\n message,\n type,\n };\n\n setTimeout(() => {\n toastIsOpen.value = false;\n }, 5000);\n };\n\n return {\n isForward,\n header,\n user,\n userId,\n favourites,\n cart,\n isCartOpenTrigger,\n downloadAdvertising,\n runningString,\n runningStringIsOpen,\n scrollPosition,\n editedAddress,\n toastIsOpen,\n toast,\n setCart,\n setHeaderVariation,\n initFavourites,\n setFavourites,\n changeFavouritesList,\n initCart,\n setUser,\n openToast,\n };\n});\n","import axios from 'axios';\nimport { setupCache } from 'axios-cache-interceptor';\nimport { getUnauthToken } from './user.route';\nimport * as Sentry from '@sentry/vue';\nimport { useAccountStore } from '../stores/account.store';\n\nconst baseURL = 'https://apiv2test.cult-brand.ru';\n\nconst axiosBase = axios.create({\n baseURL,\n headers: {\n 'Content-Type': 'application/json;charset=utf8',\n },\n});\n\n// Настраиваем кэш\nexport const client = setupCache(axiosBase, {\n cacheTakeover: false,\n});\n\n// Интерсептор для добавления токенов\nclient.interceptors.request.use(async (request) => {\n const token = localStorage.getItem('cult-token');\n\n if (token) {\n request.headers.Authorization = token;\n } else {\n const unauthToken = localStorage.getItem('cult-unauth-token');\n\n if (unauthToken) {\n request.headers.Authorization = unauthToken;\n }\n }\n\n return request;\n});\n\n// Функция для ожидания (таймаут)\nconst wait = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));\n\n// Переменная для настройки таймаутов\nconst retryDelays = [3000, 6000, 9000]; // 3, 6, 9 секунд\n\n// Интерсептор для обработки ответов и ошибок\nclient.interceptors.response.use(\n async (response) => {\n if (response.data.code === 11) {\n const { data } = await getUnauthToken();\n\n localStorage.setItem('cult-unauth-token', data.data.authorization);\n localStorage.removeItem('cult-token');\n }\n\n return response;\n },\n async (error) => {\n const store = useAccountStore();\n const config = error.config;\n\n console.log(error);\n\n // Запись ошибки в консоль\n console.error('Axios Error:', {\n message: error.message,\n url: config?.url,\n method: config?.method,\n data: config?.data,\n response: error.response\n ? {\n status: error.response.status,\n data: error.response.data,\n }\n : null,\n });\n\n // Отправка ошибки в Sentry\n Sentry.captureException(error, {\n extra: {\n url: config?.url,\n method: config?.method,\n data: config?.data,\n id: store.userId,\n response: error.response\n ? {\n status: error.response.status,\n data: error.response.data,\n }\n : null,\n },\n });\n\n // Если ошибка 404, перенаправляем на /404\n if (error.response && error.response.status === 404) {\n const router = await import(\n `@cult/cult-${window.innerWidth > 768 ? 'desktop' : 'mobile'}/src/router/router`\n );\n router.default.push('/404');\n return Promise.reject(error); // Прекращаем повторы для 404\n }\n\n // Если другая ошибка (например, 500), редирект на /error\n if (error.response) {\n const router = await import(\n `@cult/cult-${window.innerWidth > 768 ? 'desktop' : 'mobile'}/src/router/router`\n );\n router.default.push('/error');\n return Promise.reject(error); // Прекращаем повторы для ошибок бэка\n }\n\n // Если это ошибка сети (например, таймаут)\n if (!config.__retryCount) {\n config.__retryCount = 0;\n }\n\n if (config.__retryCount < retryDelays.length) {\n const delay = retryDelays[config.__retryCount];\n config.__retryCount += 1;\n\n console.warn(`Retrying request (${config.__retryCount}) after ${delay}ms...`);\n await wait(delay);\n return client.request(config); // Повтор запроса\n }\n\n console.error('Request failed after retries');\n store.openToast(\n '',\n `Кажется произошла ошибка. Сообщите её ИД в поддержку. ${store.userId}`,\n 'api'\n );\n return Promise.reject(error); // Выдаем ошибку после всех попыток\n }\n);\n","import {\n Dadata,\n GiftCard,\n GiftCardDesign,\n Loyalty,\n PostAuthSchema,\n PostCreateGiftCardSchema,\n UserInfo,\n} from '../types/types.account';\nimport { ResponseWrapper } from '../types/types.api';\nimport { GiftData } from '../types/types.misc';\nimport { Order } from '../types/types.order';\nimport { client } from './main';\n\n// GET\nexport const getUnauthToken = () => {\n return client.get>('/get_unauth_token'); // todo types\n};\n\nexport const getUserInfo = () => {\n return client.get>('/users', {\n cache: false,\n }); // todo types\n};\n\nexport const getUsersGiftCards = () => {\n return client.get>('/users/giftcards', {\n cache: false,\n }); // todo types\n};\n\nexport const getUsersLoyalty = () => {\n return client.get>('/users/loyalty', {\n cache: false,\n }); // todo types\n};\n\nexport const getUsersOrders = (mode: 'archived' | 'active' | 'all' = 'all') => {\n return client.get>('/users/orders', {\n params: {\n mode,\n limit: 1,\n },\n });\n};\n\nexport const getUserOrder = (id: string) => {\n return client.get>(`/users/orders/${id}`);\n};\n\nexport const getUserTechOrder = (id: string) => {\n return client.get>(`/order_info/${id}`);\n};\n\nexport const getFallowsItems = () => {\n return client.get>('/users/fallows'); // todo types\n};\n\nexport const getUserAddress = () => {\n return client.get>('/users/deliveries');\n};\n\nexport const getCitiesByDadata = (search: string) => {\n return client.get>('/dadata_city', {\n params: {\n search,\n },\n });\n};\n\nexport const getLoyaltyLevels = () => {\n return client.get>('/get_loyalty_levels');\n};\n\nexport const getUsersGiftCardsDesigns = () => {\n return client.get>('/giftcards/designs');\n};\n\nexport const getUsersFollows = () => {\n return client.get>('/users/follows', { cache: false }); // todo types\n};\n\nexport const verifyChangePhone = (code: string) => {\n return client.post>('/users/change_number/confirm', {\n code,\n });\n};\n\n// POST\n\nexport const postUserAddress = (data) => {\n return client.post>('/users/deliveries', data);\n};\n\nexport const postUsersPhone = (phone: string) => {\n return client.post>('/users/change_number', {\n phone,\n });\n};\n\nexport const postUsersCreateGiftCard = (data: GiftData) => {\n return client.post>('/users/giftcards/create', data);\n};\n\nexport const postSubscribe = (email: string) => {\n return client.post>('/subscribe', {\n email,\n });\n};\n\n// PATCH\n\nexport const patchProfile = ({\n first_name,\n last_name,\n email,\n birthday,\n gender,\n height,\n parameters,\n}: UserInfo) => {\n return client.patch>('/users', {\n first_name,\n last_name,\n email,\n birthday,\n gender,\n height,\n parameters,\n });\n};\n\nexport const patchUserAddress = (data) => {\n return client.patch>('/users/deliveries', data);\n};\n\nexport const deleteUserAddress = (data) => {\n return client.delete>('/users/deliveries', {\n data,\n });\n};\n\nexport const deleteFromFollows = (\n article_id: string,\n data: { color_name: string; size: string; type: string; email: string }\n) => {\n return client.delete>(`/items/${article_id}/unfollow`, {\n data,\n });\n};\n\nexport const patchUserNotification = (data: { is_email: boolean; is_sms: boolean }) => {\n return client.patch>('/users/news', data);\n};\n","import { getUserInfo } from '../api/user.route';\nimport { useAccountStore } from '../stores/account.store';\nimport { NavigationGuardNext } from 'vue-router';\n\nexport default async function ({ next, from }: { next: NavigationGuardNext; from: any }) {\n const store = useAccountStore();\n\n if (!store.user) {\n const { data } = await getUserInfo();\n\n if (data.status === 'OK') {\n store.setUser(data.data);\n next();\n } else {\n next({ name: 'AuthView', query: { redirect: from.path } });\n }\n }\n\n // next();\n}\n","import auth from '@cult/shared/middleware/auth';\nimport { createRouter, createWebHistory } from 'vue-router';\n\nexport const router = createRouter({\n history: createWebHistory(),\n routes: [\n {\n path: '/:catchAll(.*)',\n redirect: 'error/404',\n },\n {\n path: '/error',\n component: () => import('../views/error/error.view.vue'),\n },\n {\n path: '/error/404',\n component: () => import('../views/error/404.view.vue'),\n },\n {\n path: '/',\n name: 'HomeView',\n component: () => import('../views/home/home.view.vue'),\n },\n {\n path: '/category/:categoryId',\n name: 'CategoryBaseView',\n component: () => import('../views/category/category.view.vue'),\n },\n {\n path: '/category/:categoryId/product/:productId',\n name: 'CategoryProductBaseView',\n component: () => import('../views/category/views/views.product.vue'),\n },\n {\n path: '/product/:productId',\n name: 'ProductBaseView',\n component: () => import('../views/category/views/views.product.vue'),\n },\n {\n path: '/gift-card',\n name: 'GiftCardView',\n component: () => import('../views/gift-card/gift-card.view.vue'),\n },\n {\n path: '/order',\n name: 'OrderBaseView',\n component: () => import('../views/base.view.vue'),\n children: [\n {\n path: '',\n name: 'OrderMakeView',\n component: () => import('../views/order/order.view.vue'),\n },\n ],\n },\n {\n path: '/order/end',\n name: 'OrderEndView',\n component: () => import('../views/order/views/views.order-end.vue'),\n },\n {\n path: '/search',\n name: 'SearchView',\n component: () => import('../views/search/search.view.vue'),\n },\n {\n path: '/info',\n name: 'InfoView',\n component: () => import('../views/info/info.base.vue'),\n children: [\n {\n path: '/info/delivery-payment',\n name: 'DeliveryPaymentView',\n component: () => import('../views/info/views/views.delivery-payment.vue'),\n },\n {\n path: '/info/return-exchange',\n name: 'ReturnExchengeView',\n component: () => import('../views/info/views/views.return-exchange.vue'),\n },\n {\n path: '/info/bonus-program',\n name: 'BonusProgramView',\n component: () => import('../views/info/views/views.bonus-program.vue'),\n },\n {\n path: '/info/contacts',\n name: 'ContactsView',\n component: () => import('../views/info/views/views.contacts.vue'),\n },\n ],\n },\n {\n path: '/about',\n name: 'AboutView',\n component: () => import('../views/about/about.view.vue'),\n },\n {\n path: '/profile',\n name: 'ProfileView',\n component: () => import('../views/profile/profile.view.vue'),\n meta: {\n middleware: [auth],\n },\n children: [\n {\n path: '',\n name: 'ProfileMainView',\n component: () => import('../views/profile/views/views.profile-main.vue'),\n meta: {\n title: 'мой кабинет',\n },\n },\n {\n path: '/profile/orders',\n name: 'ProfileOrdersView',\n component: () => import('../views/base.view.vue'),\n meta: {\n title: 'заказы',\n },\n children: [\n {\n path: '/profile/orders',\n name: 'ProfileOrdersView',\n component: () => import('../views/profile/views/views.profile-orders.vue'),\n },\n {\n path: '/profile/orders/:id',\n name: 'ProfileOrdersDetailView',\n component: () => import('../views/profile/views/views.profile-order-details.vue'),\n meta: {\n title: '',\n },\n beforeEnter: (to, from, next) => {\n to.meta.title = `заказ №${to.query.crm_id}`;\n next();\n },\n },\n ],\n },\n {\n path: '/profile/bonuses',\n name: 'ProfileBonusesView',\n component: () => import('../views/profile/views/views.profile-bonuses.vue'),\n meta: {\n title: 'бонусы',\n },\n },\n {\n path: '/profile/favourites',\n name: 'ProfileFavouritesView',\n component: () => import('../views/profile/views/views.profile-favourites.vue'),\n meta: {\n title: 'избранное',\n },\n },\n {\n path: '/profile/gift-cards',\n name: 'ProfileGiftCardsViewBase',\n component: () => import('../views/base.view.vue'),\n meta: {\n title: 'подарочные карты',\n },\n children: [\n {\n path: '/profile/gift-cards',\n name: 'ProfileGiftCardsView',\n component: () => import('../views/profile/views/views.profile-gift-cards.vue'),\n },\n {\n path: '/profile/gift-cards/add',\n name: 'ProfileGiftCardsAddView',\n component: () => import('../views/profile/views/views.profile-gift-card-add.vue'),\n },\n ],\n },\n {\n path: '/profile/personal-data',\n name: 'ProfilePersonalDataView',\n component: () => import('../views/profile/views/views.profile-personal-data.vue'),\n meta: {\n title: 'личные данные',\n },\n },\n {\n path: '/profile/subscriptions',\n name: 'ProfileSubscriptionsView',\n component: () => import('../views/profile/views/views.profile-subscriptions.vue'),\n meta: {\n title: 'подписки',\n },\n },\n {\n path: '/profile/notification-management',\n name: 'ProfileNotificationManagementView',\n component: () =>\n import('../views/profile/views/views.profile-notification-management.vue'),\n meta: {\n title: 'управление уведомлениями',\n },\n },\n {\n path: '/profile/addresses',\n name: 'ProfileAddressesViewBase',\n component: () => import('../views/base.view.vue'),\n meta: {\n title: 'адреса',\n },\n children: [\n {\n path: '/profile/addresses',\n name: 'ProfileAddressesView',\n component: () => import('../views/profile/views/views.profile-addresses.vue'),\n },\n {\n path: '/profile/addresses/add',\n name: 'ProfileAddressesAddView',\n component: () => import('../views/profile/views/view.profile-address-add.vue'),\n },\n ],\n },\n {\n path: '/ask-question',\n name: 'ProfileAskQuestionView',\n component: () => import('../views/profile/views/views.profile-ask-question.vue'),\n meta: {\n title: 'задать вопрос',\n },\n },\n ],\n },\n {\n path: '/auth',\n name: 'AuthView',\n component: () => import('../views/auth/auth.view.vue'),\n },\n ],\n scrollBehavior(t, f, savedPosition) {\n return new Promise((resolve, _) => {\n setTimeout(() => {\n if (savedPosition) {\n resolve({\n top: savedPosition.top,\n behavior: 'smooth',\n });\n } else {\n resolve({ top: 0 });\n }\n }, 300);\n });\n },\n});\n\nexport default router;\n","\n\n\n\n\n\n\n","\n","\n","\n\n\n\n\n","\n\n\n\n\n","import { onMounted, onUnmounted, ref, computed } from 'vue';\n\nexport const useResize = () => {\n const windowWidth = ref(window.innerWidth);\n const isDesktop = computed(() => {\n return windowWidth.value >= 1440;\n });\n\n const handleResize = () => {\n windowWidth.value = window.innerWidth;\n };\n\n onMounted(() => {\n window.addEventListener('resize', handleResize);\n });\n\n onUnmounted(() => {\n window.removeEventListener('resize', handleResize);\n });\n\n return { isDesktop, windowWidth };\n};\n","import { ResponseWrapper } from '../types/types.api';\nimport { AvailablePoint, HeadMenu, PickupPoint } from '../types/types.content';\nimport { BannerBlock, Media, ProcessedShortItemCard } from '../types/types.admin';\nimport { client } from './main';\n\nexport const getMainPage = async () => {\n return client.get>('/main_page');\n};\n\nexport const getMenu = async () => {\n return client.get>('/head_menu');\n};\n\nexport const getRecommendations = async () => {\n return client.get>('/recommendations');\n};\n\nexport const getRunningString = async () => {\n return client.get<\n ResponseWrapper<{\n running_string: {\n text: string;\n text_color: string;\n background_color: string;\n link: string;\n is_visible: boolean;\n };\n }>\n >('/running_string');\n};\n\nexport const getAvailablePoints = async (city: string) => {\n return client.get<\n ResponseWrapper<{\n courier: AvailablePoint;\n pvz: AvailablePoint[];\n store: AvailablePoint;\n }>\n >('/available_points' + `?city=${city}`);\n};\n\nexport const getHistory = async () => {\n return client.get>('/history');\n};\n\nexport const getPickupPoints = async (city: string) => {\n return client.get>('/pickup_points' + `?city=${city}`);\n};\n\nexport const getMediaById = (mediaId: string) => {\n return client.get>(`/media/${mediaId}`);\n};\n\nexport const getSearch = (filters: { query: string; sort_by?: string }) => {\n return client.get<\n ResponseWrapper<{\n items: ProcessedShortItemCard[];\n count: number;\n }>\n >('/search', {\n params: {\n ...filters,\n },\n });\n};\n\nexport const getSearchHistory = () => {\n return client.get>('/search_history');\n};\n\nexport const getPopularSearch = () => {\n return client.get>('/popular_search');\n};\n","import { ProcessedShortItemCard } from '../types/types.admin';\nimport { ResponseWrapper } from '../types/types.api';\nimport { CategoryResponse, FiltersResponse } from '../types/types.category';\nimport { client } from './main';\n\nexport const getCategoryById = (id: string, params?: Record) => {\n const query: Record = {};\n for (const key in params) {\n if (key === 'limit' || key === 'offset') {\n query[key] = params[key];\n } else if (!params[key].length) continue;\n else if (params[key] === 'Смотреть все') {\n delete params[key];\n } else if (Array.isArray(params[key])) {\n query[key] = params[key].join(',');\n } else {\n query[key] = params[key];\n }\n }\n\n return client.get>(`/category/${id}`, {\n params: query,\n });\n};\n\nexport const getAllCategoryItems = (type: string, params?: Record) => {\n const query: Record = {};\n for (const key in params) {\n if (!params[key].length) continue;\n if (Array.isArray(params[key])) {\n query[key] = params[key].join(',');\n } else {\n query[key] = params[key];\n }\n }\n\n const gender = type === 'all_for_her' ? 'f' : 'm';\n\n return client.get>(`/items/all?type=${gender}`, {\n params: query,\n });\n};\n\nexport const getCategoryFilters = (categorylink: string) => {\n return client.get>(`/category/${categorylink}/filter_options`);\n};\n\nexport const getCategoryFiltersCount = (\n categorylink: string,\n params?: Record\n) => {\n const query: Record = {};\n for (const key in params) {\n if (key === 'limit' || key === 'offset') {\n query[key] = params[key];\n } else if (!params[key].length) continue;\n else if (params[key] === 'Смотреть все') {\n delete params[key];\n } else if (Array.isArray(params[key])) {\n query[key] = params[key].join(',');\n } else {\n query[key] = params[key];\n }\n }\n\n return client.get>(\n `/category/${categorylink}/filter_options/count`,\n {\n params: query,\n }\n );\n};\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import {\n _CollectionDataMedia,\n _ItemCardMedia,\n _SizeItemCard,\n _SubCategory,\n BannerBlock,\n Branch,\n CategoriesListSchema,\n CommonBannerContent,\n Discount,\n GroupedProcessedShortItemCard,\n Item,\n ItemCard,\n ItemCategory,\n ItemColor,\n ItemTag,\n MainsListSchema,\n Media,\n MenuBannerWithCategories,\n MobileBlocksMedia,\n ProcessedItemCard,\n ProcessedShortItemCard,\n ProcessedShortItemCardInside,\n Promocode,\n Segment,\n Version,\n} from '../types/types.admin';\nimport { ResponseWrapper } from '../types/types.api';\nimport { client } from './main';\n\n// GET\n\nexport const getAdminVersions = () => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>('/admin/versions', {\n cache: false,\n });\n};\n\nexport const getAdminVersionById = (versionId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/versions/${versionId}`);\n};\n\nexport const getCategoryInfo = (type: string, categoryId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/categories/${type}/${categoryId}`);\n};\n\nexport const getCategoryInfoByType = (type: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/categories/${type}`, {\n cache: false,\n });\n};\n\nexport const getCategories = () => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/categories`);\n};\n\nexport const getItemCard = (itemId: string, variantId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/items/${itemId}/${variantId}`);\n};\n\nexport const getItem = (itemId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/items/${itemId}`);\n};\n\nexport const getItems = (data: {\n limit: number;\n offset: number;\n search: string;\n stock: string;\n}) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n\n return client.get>(`/admin/items`, {\n params: data,\n });\n};\n\nexport const getMainInfoById = (mainId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/mains/${mainId}`);\n};\n\nexport const getMainInfo = () => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/mains`, {\n cache: false,\n });\n};\n\nexport const getColors = () => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/colors`);\n};\n\nexport const getColorById = (colorId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/colors/${colorId}`);\n};\n\nexport const getBranches = () => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/versions/branches`);\n};\n\nexport const getCategorySegments = () => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/categories/segments`);\n};\n\nexport const getItemCards = (is_separated?: boolean) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/items/itemcards`, {\n params: {\n is_separated,\n },\n });\n};\n\nexport const getShortItemCards = (params?: {\n limit?: number;\n offset?: number;\n search?: string;\n type?: string;\n}) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/items/short_itemcards`, {\n cache: false,\n params,\n });\n};\n\nexport const getShortItemCardsOutOfStock = (data?: {\n limit?: number;\n offset?: number;\n search?: string;\n type?: string;\n}) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n\n return client.get>(\n `/admin/items/short_itemcards_out_of_stock`,\n {\n params: data,\n }\n );\n};\n\nexport const getMobileBlocksCards = (\n gender: 'f' | 'm',\n category_id: string,\n is_separated?: boolean\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(\n `/admin/categories/${gender}/${category_id}/mobile_blocks`,\n {\n cache: false,\n params: {\n is_separated,\n },\n }\n );\n};\n\nexport const getGroupedShortItemCards = (data: {\n category_id?: string;\n type?: string;\n limit?: number;\n offset?: number;\n search?: string;\n discounted?: string | null;\n}) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(\n `/admin/items/grouped_short_itemcards`,\n {\n params: data,\n }\n );\n};\n\nexport const getCategoriesByItemCardId = (itemId: string, variantId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get(`admin/items/${itemId}/${variantId}/categories`);\n};\n\nexport const getItemCardsById = (itemId: string, is_separated?: boolean) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(\n `/admin/items/${itemId}/short_itemcards`,\n {\n cache: false,\n params: {\n is_separated,\n },\n }\n );\n};\n\nexport const getAdminTags = () => {\n return client.get>('/admin/tags');\n};\n\nexport const getAdminMedia = (params: { orientation?: string; target?: number; type: string }) => {\n return client.get>('/admin/media', {\n params,\n });\n};\n\nexport const getAdminMediaById = (mediaId: string) => {\n return client.get>(`/admin/media/${mediaId}`);\n};\n\nexport const getAdminMediaByQuality = (mediaId: string, quality: string) => {\n return client.get<\n ResponseWrapper<{\n link: string;\n }>\n >(`/admin/media/${mediaId}/${quality}`);\n};\n\nexport const getPromocodes = () => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/promocodes`, {\n cache: false,\n });\n};\n\nexport const getDiscounts = () => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/discounts`, {\n cache: false,\n });\n};\n\nexport const getDiscountById = (discountId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/discounts/${discountId}`, {\n cache: false,\n });\n};\n\nexport const getPromocodeById = (promocodeId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.get>(`/admin/promocodes/${promocodeId}`);\n};\n\n// POST\n\nexport const postAdminVersions = (data: {\n branch: string;\n name: string;\n publish_date?: string;\n from_version_id?: string;\n}) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.post>(`/admin/versions`, data);\n};\n\nexport const postAdminVersionById = (versionId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.post>(`/admin/versions/${versionId}`, {});\n};\n\nexport const postItemCard = (itemId: string, data: { type: 'm' | 'f' }) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.post>(`/admin/items/${itemId}`, data);\n};\n\nexport const postMainInfoById = (mainId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.post>(`/admin/mains/${mainId}`, {});\n};\n\nexport const postMainInfo = (data: { name: string }) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.post>(`/admin/mains`, data);\n};\n\nexport const postColors = (data: { name: string; colorcode: string }) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.post>(`/admin/colors`, data);\n};\n\nexport const postMedia = (formData: FormData) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.post>(`/admin/media`, formData, {\n cache: false,\n headers: {\n 'Content-Type': 'multipart/form-data',\n },\n });\n};\n\nexport const postCategoryInfoByType = (data: {\n name: string;\n gender: 'f' | 'm' | 'all';\n link: string;\n}) => {\n let genderUrl = data.gender === 'f' || data.gender === 'm' ? data.gender : 'col';\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.post>(`/admin/categories/${genderUrl}`, data);\n};\n\nexport const postDiscounts = (data: { name: string }) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.post>(`/admin/discounts`, data);\n};\n\nexport const postPromocodes = (data: { name: string; promocode: string }) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.post>(`/admin/promocodes`, data);\n};\n\nexport const postAdminTag = (name: string) => {\n return client.post>('/admin/tags', {\n name,\n });\n};\n\n// PATCH\n\nexport const patchAdminVersionById = (\n data: {\n name?: string;\n branch?: string;\n promo?: string;\n publish_date?: string;\n },\n versionId: string\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(`/admin/versions/${versionId}`, data);\n};\n\nexport const patchCategoryInfo = (\n type: string,\n categoryId: string,\n data: {\n name: string;\n description: string;\n link: string;\n is_pinned: boolean;\n is_visible: boolean;\n is_secret: boolean;\n desktop_media: string;\n mobile_media: string;\n }\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(\n `/admin/categories/${type}/${categoryId}`,\n data\n );\n};\n\nexport const patchItemCard = (\n itemId: string,\n variantId: string,\n data: {\n description: string;\n materials: string;\n tag: string;\n sizes: _SizeItemCard[];\n cover: string;\n media: _ItemCardMedia[];\n complete_image_short_itemcards: ProcessedShortItemCardInside[];\n }\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(`/admin/items/${itemId}/${variantId}`, data);\n};\n\nexport const patchItemColor = (\n itemId: string,\n data: {\n colorcode: string;\n }\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(`/admin/items/${itemId}`, data);\n};\n\nexport const patchMainInfoById = (\n mainId: string,\n data: {\n content: CommonBannerContent[];\n name: string;\n running_string: string;\n }\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(`/admin/mains/${mainId}`, data);\n};\n\nexport const patchColorById = (colorId: string, data: { colorcode: string }) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(`/admin/colors/${colorId}`, data);\n};\n\nexport const patchCategoryContent = (\n type: string,\n categoryId: string,\n data: _CollectionDataMedia[]\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(\n `/admin/categories/${type}/${categoryId}/content`,\n {\n content: data,\n }\n );\n};\n\nexport const patchCategoryMobileBlocks = (\n type: string,\n categoryId: string,\n data: {\n mobile_blocks: MobileBlocksMedia[];\n }\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(\n `/admin/categories/${type}/${categoryId}/mobile_blocks`,\n data\n );\n};\n\nexport const patchCategoryItemCards = (\n type: string,\n categoryId: string,\n data: {\n sub_categories: _SubCategory[];\n }\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(\n `/admin/categories/${type}/${categoryId}/itemcards`,\n data\n );\n};\n\nexport const patchCategoryInfoByType = (\n type: string,\n data: {\n link?: string;\n header?: string;\n desktop_media?: string;\n mobile_media?: string;\n category_ids?: string[];\n }\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(`/admin/categories/${type}`, data);\n};\n\nexport const patchDiscountById = (\n discountId: string,\n data: {\n name: string;\n description: string;\n value: number;\n articles_list: GroupedProcessedShortItemCard[];\n }\n) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(`/admin/discounts/${discountId}`, data);\n};\n\nexport const patchPromocodeById = (promocodeId: string, data: any) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.patch>(`/admin/promocodes/${promocodeId}`, data);\n};\n\n// DELETE\n\nexport const deleteAdminVersionById = (versionId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.delete>(`/admin/versions/${versionId}`);\n};\n\nexport const deleteCategoryInfo = (type: string, categoryId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.delete>(`/admin/categories/${type}/${categoryId}`);\n};\n\nexport const deleteItemCard = (itemId: string, variantId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.delete>(`/admin/items/${itemId}/${variantId}`);\n};\n\nexport const deleteItem = (itemId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.delete>(`/admin/items/${itemId}`);\n};\n\nexport const deleteMainInfoById = (mainId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.delete>(`/admin/mains/${mainId}`);\n};\n\nexport const deleteColorById = (colorId: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.delete>(`/admin/colors/${colorId}`);\n};\n\nexport const deleteDiscounts = (id: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.delete>(`/admin/discounts/${id}`);\n};\n\nexport const deletePromocodes = (id: string) => {\n client.interceptors.request.use(async (request) => {\n request.headers.Authorization = localStorage.getItem('cult-admin-token');\n return request;\n });\n return client.delete>(`/admin/promocodes/${id}`);\n};\n\nexport const deleteAdminTags = (id: string) => {\n return client.delete>(`/admin/tags/${id}`);\n};\n","export function getVideoOptions() {\n const defaultOptions = { autoplay: true, muted: true, loop: true };\n return iosPlatform() ? { ...defaultOptions, playsinline: true } : defaultOptions;\n}\n\nfunction iosPlatform() {\n return (\n ['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(\n navigator.platform\n ) ||\n // iPad on iOS 13 detection\n (navigator.userAgent.includes('Mac') && 'ontouchend' in document)\n );\n}\n\nexport function isMac() {\n return navigator.platform.toUpperCase().indexOf('MAC') >= 0;\n}\n","\n\n\n\n\n","\n\n\n\n\n","\n","\n","\n","","","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n\n\n","import { computed, defineAsyncComponent, reactive, Component as TComponent } from 'vue';\nimport { HeaderButtonName } from '../types/types.ui-kit';\n//@ts-ignore\nimport router from '~/router/router';\n\nexport const useAsidePages = () => {\n type ComponentsList = Record<\n HeaderButtonName | 'menu',\n {\n component: TComponent;\n props: any;\n }\n >;\n\n const asidePages = reactive>({\n menu: false,\n cart: false,\n favourites: false,\n profile: false,\n search: false,\n });\n\n const closeAsidePages = () => {\n for (const key in asidePages) {\n asidePages[key as keyof typeof asidePages] = false;\n }\n };\n\n const onHeaderButtonClick = (name: HeaderButtonName | 'menu') => {\n if (name === 'profile') {\n router.push('/profile');\n\n closeAsidePages();\n }\n\n for (const key in asidePages) {\n asidePages[key as keyof typeof asidePages] = key === name;\n }\n };\n\n const asidePagesComponentsList: Partial = {\n menu: {\n component: defineAsyncComponent(() => {\n return import('../../cult-mobile/src/components/element/element.menu.vue');\n }),\n props: {},\n },\n cart: {\n component: defineAsyncComponent(() => import('../../modules/ii/ii.cart.vue')),\n props: {},\n },\n search: {\n component: defineAsyncComponent(() => import('../../modules/iii/iii.search.vue')),\n props: {},\n },\n favourites: {\n component: defineAsyncComponent(() => import('../../modules/ii/ii.favourites.vue')),\n props: {},\n },\n };\n\n const asidePagesComponent = computed(() => {\n let componentsKey: keyof typeof asidePages | null = null;\n\n for (const key in asidePages) {\n if (asidePages[key as keyof typeof asidePages]) {\n componentsKey = key as keyof typeof asidePages;\n }\n }\n\n return componentsKey ? asidePagesComponentsList[componentsKey] : null;\n });\n\n return {\n closeAsidePages,\n onHeaderButtonClick,\n asidePagesComponent,\n };\n};\n","\n\n\n\n\n","\n\n\n\n\n","\n\n\n","import { createApp } from 'vue';\nimport { createPinia } from 'pinia';\nimport { createMiddleware } from '@cult/shared/middleware/_middleware';\nimport { createYmaps } from 'vue-yandex-maps';\nimport router from './router/router';\nimport App from './App.vue';\nimport { Skeletor } from 'vue-skeletor';\nimport * as Sentry from '@sentry/vue';\n\nimport '@cult/shared/styles/reset.scss';\nimport 'vue-skeletor/dist/vue-skeletor.css';\n\ncreateMiddleware(router);\n\nconst pinia = createPinia();\nconst app = createApp(App);\n\nSentry.init({\n app,\n dsn: 'https://3be2a9f126e01992dee30d0d784f4281@o1124528.ingest.us.sentry.io/4508512046874624',\n integrations: [Sentry.browserTracingIntegration({ router }), Sentry.replayIntegration()],\n // Tracing\n tracesSampleRate: 1.0, // Capture 100% of the transactions\n // Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled\n tracePropagationTargets: [/^https:\\/\\/yourserver\\.io\\/api/],\n // Session Replay\n replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.\n replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.\n});\n\napp.config.errorHandler = (err, vm, info) => {\n console.error('Глобальная ошибка:', err);\n console.log('Компонент:', vm);\n console.log('Информация:', info);\n\n const lastReloadTimeKey = 'app_last_reload_time';\n const fiveMinutes = 5 * 60 * 1000; // 5 минут в миллисекундах\n\n // Получаем текущий счётчик и время последней перезагрузки\n const lastReloadTime = localStorage.getItem(lastReloadTimeKey);\n\n // Проверяем, было ли сохранено время последней перезагрузки\n if (lastReloadTime) {\n const lastReloadTimestamp = new Date(lastReloadTime).getTime();\n const now = Date.now();\n\n // Если прошло меньше 5 минут с последней перезагрузки\n if (now - lastReloadTimestamp < fiveMinutes) {\n console.log('С момента последней перезагрузки прошло менее 5 минут. Перезагрузка отменена.');\n return; // Не перезагружаем приложение\n }\n }\n\n // Увеличиваем счётчик перезагрузок\n const currentTime = new Date().toISOString();\n localStorage.setItem(lastReloadTimeKey, currentTime);\n console.log(`Время последней перезагрузки записано: ${currentTime}`);\n\n window.location.reload();\n};\n\napp\n .use(pinia)\n .use(router)\n .use(\n createYmaps({\n apikey: 'e65f962a-f502-404e-99b8-fac41851afb8',\n })\n )\n .component(Skeletor.name, Skeletor);\nrouter.isReady().then(() => app.mount('#app'));\n"],"file":"assets/index-Sdf-0Lt-.js"}