{"version":3,"file":"WishList.9463ea13be5e2316ee8f.chunk.js","mappings":"yIAAO,MAAMA,EAAa,CACxB,YAAa,CACXC,QAAS,eACTC,KAAM,UAER,YAAa,CACXD,QAAS,eACTC,KAAM,UAER,YAAa,CACXD,QAAS,eACTC,KAAM,UAER,YAAa,CACXD,QAAS,UACTC,KAAM,SAER,YAAa,CACXD,QAAS,UACTC,KAAM,QAER,YAAa,CACXD,QAAS,UACTC,KAAM,QAER,YAAa,CACXD,QAAS,UACTC,KAAM,SAER,YAAa,CACXD,QAAS,UACTC,KAAM,QAER,eAAgB,CACdD,QACE,uLAEFC,KAAM,MAER,YAAa,CACXD,QAAS,UACTC,KAAM,SAER,YAAa,CACXD,QAAS,UACTC,KAAM,SAER,YAAa,CACXD,QAAS,6CACTC,KAAM,WAER,YAAa,CACXD,QAAS,UACTC,KAAM,QAER,YAAa,CACXD,QAAS,UACTC,KAAM,SAER,YAAa,CACXD,QAAS,YACTC,KAAM,QAER,YAAa,CACXD,QAAS,UACTC,KAAM,QAER,YAAa,CACXD,QAAS,UACTC,KAAM,SAER,YAAa,CACXD,QAAS,eACTC,KAAM,UAER,YAAa,CACXD,QAAS,UACTC,KAAM,QAER,YAAa,CACXD,QAAS,UACTC,KAAM,SAER,YAAa,CACXD,QAAS,eACTC,KAAM,UAER,YAAa,CACXD,QAAS,UACTC,KAAM,UAER,YAAa,CACXD,QAAS,UACTC,KAAM,QAER,YAAa,CACXD,QAAS,UACTC,KAAM,WAGGC,EAAY,kB,kMCnFlB,MCAMC,EAAqCA,CAChDC,EACAC,EACAC,KAEA,MAAMC,EAAsBH,EAASI,KAAKC,IACxCC,EAAAA,EAAAA,MACGC,cAAcF,GACdG,mBAAmBH,EAAQI,WAAY,CACtCC,6BAA6B,IAE9BC,mBAAmB,CAClBC,cACEX,EAAWY,WAAWC,GAAOC,OAAOD,KAAQT,EAAQS,KAAM,IAE7DE,WAGLC,EAAAA,EAAAA,GAAsB,CACpBC,MAAO,iBACPC,QAAQ,E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G,GAC/B,GAAIA,EAAIrW,KAAM,CACZ,IAAI8V,EAAO,IAAIc,IACfhB,EAA0BS,EAAKP,GAC/BW,EAAeJ,EAAIrW,KAAKsD,OAASwS,MA4DvCe,EAAOC,QAAUnB,EAEbkB,EAAOC,QAAP,uBAhDJ,SAAkBnB,EAAKoB,GAErB,IAAIC,EAAS,CACXjB,KAAMJ,EAAII,KACVO,YAAa,CAACI,EAAcf,EAAKoB,KAE/BpB,EAAIsB,eAAe,SACrBD,EAAOT,IAAMZ,EAAIY,KAKnB,IAAIW,EAAST,EAAeM,IAAkB,IAAIH,IAC9CO,EAAU,IAAIP,IACdQ,EAAU,IAAIR,IAOlB,IAJAM,EAAOhB,SAAQ,SAASmB,GACtBD,EAAQthB,IAAIuhB,MAGPD,EAAQxL,KAAO,GAAG,CACvB,IAAI0L,EAAWF,EACfA,EAAU,IAAIR,IAEdU,EAASpB,SAAQ,SAASmB,GACnBF,EAAQI,IAAIF,KACfF,EAAQrhB,IAAIuhB,IACIZ,EAAeY,IAAY,IAAIT,KACrCV,SAAQ,SAASsB,GACzBJ,EAAQthB,IAAI0hB,UAapB,OAPAL,EAAQjB,SAAQ,SAASmB,GACvB,IAAII,EAAKf,EAAcf,EAAK0B,GACxBI,GACFT,EAAOV,YAAYoB,KAAKD,MAIrBT,EAKsCW,CAAShC,EAAK,0BAGjEA,EAAIiC,WAAa","sources":["webpack://nushopweb/./packages/client/src/constants.ts","webpack://nushopweb/./packages/client/src/helpers/googleTagManager/useGetTrackMasterAddToCartFail.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPager/tracking.ts","webpack://nushopweb/./packages/client/src/containers/WishList/constants.ts","webpack://nushopweb/./packages/client/src/containers/WishList/messages.ts","webpack://nushopweb/./packages/client/src/containers/WishList/store.ts","webpack://nushopweb/./packages/client/src/components/Universals/ProductListHolder/index.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/AnimatedProductList.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPager/useRegisteredWatchdog.ts","webpack://nushopweb/./packages/client/src/components/OverflowFade/styled.tsx","webpack://nushopweb/./packages/client/src/components/OverflowFade/index.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/messages.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/styled.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/utils.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/Categories.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/DrawerTitle/styled.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/DrawerTitle/index.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/FiltrationDrawerHandler/styled.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/FiltrationDrawerHandler/useMultiSelectList.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/FiltrationDrawerHandler/BrandsMultiSelectList.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/FiltrationDrawerHandler/FooterSelectedItems.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/FiltrationDrawerHandler/MultiSelectList.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/FiltrationDrawerHandler/index.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/SortingChip/styled.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/SortingChip/SortByOptionsList.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/SortingChip/index.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/FiltersSection/index.tsx","webpack://nushopweb/./packages/client/src/hooks/useElementScrollDistanceFromTopThreshold.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/styled.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/tracking/useWishlistViewItemListTracking.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/messages.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/LinkSharer/styled.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/LinkSharer/WishlistLink.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/LinkSharer/Modal.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/LinkSharer/useCopyWishlistId.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/styled.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/WishlistHeader/styled.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/WishlistHeader/Empty.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/WishlistHeader/index.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPage/index.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/LinkSharer/index.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/header.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPager/useRemoveNullWishlistProducts.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPager/useWishlistedProducts.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPager/useSsrWishlistProducts.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPager/useLazyQueryWorkaround.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPager/utils.ts","webpack://nushopweb/./packages/client/src/containers/WishList/components/WishlistPager/index.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/hooks/useWishlistOwnerId.ts","webpack://nushopweb/./packages/client/src/containers/WishList/useWishlistForLoggedUserOrOwner.ts","webpack://nushopweb/./packages/client/src/containers/WishList/index.tsx","webpack://nushopweb/./packages/client/src/containers/WishList/queries/copyWishlist.graphql","webpack://nushopweb/./packages/client/src/containers/WishList/queries/watchdogRegistered.graphql","webpack://nushopweb/./packages/client/src/containers/WishList/queries/wishlistByLoggedUserOrOwner.graphql","webpack://nushopweb/./packages/client/src/containers/WishList/queries/wishlistForCurrentUser.graphql"],"sourcesContent":["export const zipRegexes = {\n 'notino.cz': {\n pattern: /\\d{3} \\d{2}$/,\n mask: '999 99',\n },\n 'notino.sk': {\n pattern: /\\d{3} \\d{2}$/,\n mask: '999 99',\n },\n 'notino.pl': {\n pattern: /\\d{2}-\\d{3}$/,\n mask: '99-999',\n },\n 'notino.de': {\n pattern: /^\\d{5}$/,\n mask: '99999',\n },\n 'notino.at': {\n pattern: /^\\d{4}$/,\n mask: '9999',\n },\n 'notino.hu': {\n pattern: /^\\d{4}$/,\n mask: '9999',\n },\n 'notino.es': {\n pattern: /^\\d{5}$/,\n mask: '99999',\n },\n 'notino.pt': {\n pattern: /^\\d{4}$/,\n mask: '9999',\n },\n 'notino.co.uk': {\n pattern:\n /^(([A-Z]{1,2}[0-9][A-Z0-9]?|ASCN|STHL|TDCU|BBND|[BFS]IQQ|PCRN|TKCA) ?[0-9][A-Z]{2}|BFPO ?[0-9]{1,4}|(KY[0-9]|MSR|VG|AI)[ -]?[0-9]{4}|[A-Z]{2} ?[0-9]{2}|GE ?CX|GIR ?0A{2}|SAN ?TA1)$/,\n // as UK post code is too complex we do not provide mask\n mask: null,\n },\n 'notino.fr': {\n pattern: /^\\d{5}$/,\n mask: '99999',\n },\n 'notino.it': {\n pattern: /^\\d{5}$/,\n mask: '99999',\n },\n 'notino.nl': {\n pattern: /^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z|A-Z]{2}$/i,\n mask: '9999 aa',\n },\n 'notino.be': {\n pattern: /^\\d{4}$/,\n mask: '9999',\n },\n 'notino.hr': {\n pattern: /^\\d{5}$/,\n mask: '99999',\n },\n 'notino.si': {\n pattern: /^(\\d{4})$/,\n mask: '9999',\n },\n 'notino.dk': {\n pattern: /^\\d{4}$/,\n mask: '9999',\n },\n 'notino.fi': {\n pattern: /^\\d{5}$/,\n mask: '99999',\n },\n 'notino.gr': {\n pattern: /\\d{3} \\d{2}$/,\n mask: '999 99',\n },\n 'notino.bg': {\n pattern: /^\\d{4}$/,\n mask: '9999',\n },\n 'notino.ua': {\n pattern: /^\\d{5}$/,\n mask: '99999',\n },\n 'notino.se': {\n pattern: /\\d{3} \\d{2}$/,\n mask: '999 99',\n },\n 'notino.ro': {\n pattern: /^\\d{6}$/,\n mask: '999999',\n },\n 'notino.ch': {\n pattern: /^\\d{4}$/,\n mask: '9999',\n },\n 'notino.ru': {\n pattern: /^\\d{6}$/,\n mask: '999999',\n },\n};\nexport const LOGIN_URL = '/myaccount.asp';\n","import * as React from 'react';\n\nimport { useApolloClient } from '@apollo/client';\nimport { snakeCase } from 'lodash';\n\nimport {\n GetMasterProductInfoQuery,\n GetMasterProductInfoQueryVariables,\n} from '@notino/shared/definitions/types';\nimport { CartType } from '@notino/web-tracking';\n\nimport { dispatchTrackingEvent } from '@context/tracking/utils';\nimport getMasterProductInfoQuery from '@queries/masterProductInfo.graphql';\n\nimport { ProductEventWither } from './prepareProductInfo';\nimport { IVariantAddToCart } from './prepareProductInfo/model';\n\nexport const useGetTrackMasterAddToCartFail = (listName?: string) => {\n const client = useApolloClient();\n\n return React.useCallback(\n async (\n product: IVariantAddToCart,\n catalogMasterId: string,\n position: number,\n errorMessage: string\n ) => {\n const { data } = await client.query<\n GetMasterProductInfoQuery,\n GetMasterProductInfoQueryVariables\n >({\n query: getMasterProductInfoQuery,\n variables: { catalogMasterId },\n });\n\n const masterProduct = data.productDetailByCatalogMasterId;\n\n if (data) {\n dispatchTrackingEvent({\n event: 'add_to_cart_failed',\n add: {\n products: [\n ProductEventWither()\n .withPartialProduct({\n ...masterProduct,\n brand: masterProduct.brand,\n __typename: 'CatalogProduct',\n })\n .withVpProduct(product)\n .withAdditionalData({\n cart_type: snakeCase(CartType.cart),\n quantity: 1,\n list_position: position,\n ...(listName && { list_name: listName }),\n })\n .build(),\n ],\n },\n error: { status: errorMessage || '' },\n _clear: true,\n });\n }\n },\n [client, listName]\n );\n};\n","import {\n GetProductsByIdBatchedQuery,\n GetItemDataByIdQuery,\n} from '@notino/shared/definitions/types';\nimport { Interaction } from '@notino/web-tracking/dist/types/package/ga4/events/constants';\n\nimport {\n GTM_WISHLIST_LIST_NAME,\n GTM_WISHLIST_PAGE_TYPE,\n} from '@containers/WishList/constants';\nimport { dispatchTrackingEvent } from '@context/tracking/utils';\nimport {\n useGetMasterAddToCart,\n ProductEventWither,\n} from '@helpers/googleTagManager';\nimport { useGetTrackMasterAddToCartFail } from '@helpers/googleTagManager/useGetTrackMasterAddToCartFail';\n\nexport const trackWishlistProductListImpression = (\n products: GetProductsByIdBatchedQuery['vpProductByIds'],\n productIds: (string | number)[],\n interaction: Interaction\n) => {\n const transformedProducts = products.map((product) =>\n ProductEventWither()\n .withVpProduct(product)\n .withDiscountPrices(product.attributes, {\n shouldSendOnlyDiscountPrice: true,\n })\n .withAdditionalData({\n list_position:\n productIds.findIndex((id) => String(id) === product.id) + 1,\n })\n .build()\n );\n\n dispatchTrackingEvent({\n event: 'view_item_list',\n _clear: true,\n product_lists: {\n list_name: GTM_WISHLIST_LIST_NAME,\n interaction,\n sorting_type: 'automatic',\n products: transformedProducts,\n },\n });\n};\n\nexport const trackWishlistPageView = () => {\n dispatchTrackingEvent({\n event: 'page_view',\n page: {\n title: 'Wishlist',\n path: window.location.pathname,\n unified_name: 'wishlist',\n type: GTM_WISHLIST_PAGE_TYPE,\n subpage: undefined,\n },\n _clear: true,\n });\n};\n\n// TODO: `useTrackToCartAsync` and `useTrackToCartFailedAsync` temporarily use the `shouldUseCatalogId` parameter\n// to handle product identifiers, as Wishlist does not yet support `catalogId`.\n\n// The `shouldUseCatalogId` flag indicates which identifier to use: if `true`, it uses `catalogId`;\n// otherwise, it defaults to the existing `id`. This flag will be removed once Wishlist fully supports `catalogId`\n\nexport const useTrackToCartAsync = (\n productIds: (string | number)[],\n listName: string,\n shouldUseCatalogId?: boolean\n) => {\n const trackAddToCart = useGetMasterAddToCart(listName);\n return async (product: GetItemDataByIdQuery['vpProductById']) => {\n await trackAddToCart(\n product,\n product.catalogMasterId.toString(),\n productIds.findIndex(\n (id) =>\n String(id) ===\n String(product[shouldUseCatalogId ? 'catalogId' : 'id'])\n ) + 1\n );\n };\n};\n\nexport const useTrackToCartFailedAsync = (\n productIds: (string | number)[],\n listName: string,\n shouldUseCatalogId?: boolean\n) => {\n const track = useGetTrackMasterAddToCartFail(listName);\n return async (\n errorMessage: string,\n product: GetItemDataByIdQuery['vpProductById']\n ) => {\n await track(\n product,\n product.catalogMasterId.toString(),\n productIds.findIndex(\n (id) =>\n String(id) ===\n String(product[shouldUseCatalogId ? 'catalogId' : 'id'])\n ) + 1,\n errorMessage\n );\n };\n};\n","export const GTM_WISHLIST_LIST_NAME = 'wishlist';\nexport const GTM_WISHLIST_PAGE_TYPE = 'wishlist';\nexport const WISHLIST_PAGE_SIZE = 8;\n","import { defineMessages } from 'react-intl';\nexport default defineMessages({\n yourProducts: {\n id: 'wishlist.your.products',\n defaultMessage: 'Oblíbené produkty',\n },\n sharedProducts: {\n id: 'wishlist.shared.products',\n defaultMessage: 'Sdílené produkty',\n },\n noProducts: {\n id: 'wishlist.your.products.empty',\n defaultMessage: 'Zatím nemáte oblíbené produkty ',\n },\n notLogged: {\n id: 'wishlist.not.logged',\n defaultMessage:\n 'Přihlaste se a vaše oblíbené produkty zůstanou uložené.',\n },\n emptyGuide: {\n id: 'wishlist.empty.guide',\n defaultMessage:\n 'Jednoduše klikněte na symbol srdíčka u vaší oblíbené položky.',\n },\n productsCount: {\n id: 'wishlist.productsCount',\n defaultMessage: 'Produktů',\n },\n refreshButton: {\n id: 'wishlist.refreshButton.text',\n defaultMessage: 'Obnovit',\n },\n});\n","import { createContext, useContext } from 'react';\n\nimport { ApolloClient } from '@apollo/client';\nimport { createStore, StoreApi, useStore } from 'zustand';\n\nimport {\n GetProductsByIdBatchedQuery,\n WishlistForCurrentUserQuery,\n WishlistForCurrentUserQueryVariables,\n WishlistSortBy,\n WishlistSortByOption,\n} from '@notino/shared/definitions/types';\n\nimport { WISHLIST_PAGE_SIZE } from './constants';\nimport wishlistForCurrentUser from './queries/wishlistForCurrentUser.graphql';\n\ntype WishlistState = {\n productIds: number[]; // navigation api might return null products, so we have this productIds to do pagination properly\n products: GetProductsByIdBatchedQuery['vpProductByIds'];\n hasMore: boolean;\n isLoading: boolean;\n totalProductCount: number;\n totalFilteredProductCount: number;\n isSharedWishlist: boolean;\n\n sortByOptions: WishlistSortByOption[];\n selectedSortBy: WishlistSortBy;\n\n filtration: WishlistForCurrentUserQuery['WishlistForCurrentUser']['filtration'];\n selectedNavigationValues: number[];\n\n actions: {\n setProductWishlisted: (productId: string, wishlisted: boolean) => void;\n setSelectedSortBy: (sortBy: WishlistSortBy) => void;\n setSelectedNavigationValues: (values: number[]) => void;\n fetchProducts: (\n variables: Omit\n ) => Promise;\n };\n};\n\ntype WishlistStore = StoreApi;\n\nexport const createWishlistStore = (\n initParams: Omit<\n WishlistState,\n 'actions' | 'selectedSortBy' | 'selectedNavigationValues' | 'isLoading'\n >,\n client: ApolloClient\n) =>\n createStore((set, get) => ({\n ...initParams,\n selectedSortBy: WishlistSortBy.Default,\n selectedNavigationValues: [],\n isLoading: false,\n actions: {\n setSelectedSortBy: (sortBy) => {\n void get().actions.fetchProducts({\n sortBy,\n offset: 0,\n });\n set({ selectedSortBy: sortBy, productIds: [], products: [] });\n },\n\n setSelectedNavigationValues: (values) => {\n void get().actions.fetchProducts({\n navigationValues: values,\n offset: 0,\n });\n set({ selectedNavigationValues: values, productIds: [], products: [] });\n },\n\n setProductWishlisted: (productId, wishlisted) => {\n if (get().isSharedWishlist) {\n set({\n products: get().products.map((p) =>\n p.id === String(productId) ? { ...p, wishlisted } : p\n ),\n });\n return;\n }\n set({\n products: get().products.filter((p) => p.id !== productId),\n productIds: get().productIds.filter((p) => p !== Number(productId)),\n totalFilteredProductCount: get().totalFilteredProductCount - 1,\n });\n },\n\n fetchProducts: async ({ offset, navigationValues, sortBy }) => {\n set({ isLoading: true });\n const { data } = await client.query<\n WishlistForCurrentUserQuery,\n WishlistForCurrentUserQueryVariables\n >({\n query: wishlistForCurrentUser,\n fetchPolicy: 'no-cache',\n variables: {\n offset,\n sortBy: sortBy ?? get().selectedSortBy,\n navigationValues:\n navigationValues ?? get().selectedNavigationValues,\n count: WISHLIST_PAGE_SIZE,\n },\n });\n\n const { hasMore, products, sortByOptions, totalProductCount } =\n data.WishlistForCurrentUser.listing;\n const { filtration } = data.WishlistForCurrentUser;\n\n set((prev) => ({\n hasMore,\n isLoading: false,\n sortByOptions,\n totalFilteredProductCount: totalProductCount,\n filtration,\n selectedNavigationValues: get().selectedNavigationValues.filter(\n (val) =>\n filtration.some((f) =>\n f.items.some((i) => i.navigationValue === val)\n )\n ),\n products: [\n ...prev.products,\n ...products.map((x) => x.product).filter(Boolean),\n ],\n productIds: [\n ...prev.productIds,\n ...products.map((x) => x.webProductId),\n ],\n }));\n },\n },\n }));\n\nconst Context = createContext<{ store: WishlistStore }>(null!);\nexport const WishlistContextProvider = Context.Provider;\n\nexport const useWishlistStore = (\n selector: Parameters>[1]\n) => {\n const ctx = useContext(Context);\n if (!ctx) {\n throw new Error('useWishlistStore must be used inside WishlistProvider');\n }\n return useStore(ctx.store, selector);\n};\n","import styled from 'styled-components';\n\nexport const ProductListHolder = styled.div`\n display: flex;\n flex-wrap: wrap;\n justify-content: left;\n row-gap: 3rem;\n\n [data-testid='heart-icon-filled'],\n [data-testid='heart-icon-outlined'] {\n scale: 1.25;\n }\n`;\n","import * as React from 'react';\nimport { InView } from 'react-intersection-observer';\nimport { useTransition, animated, UseTransitionProps } from 'react-spring';\n\nimport { Col, ProductTilePlaceholder } from '@notino/react-styleguide';\nimport { GetProductsByIdBatchedQuery } from '@notino/shared/definitions/types';\n\nimport ProductItem from '@components/Universals/ProductItem';\nimport {\n IProductOuterProps,\n IProductItemProps,\n} from '@components/Universals/ProductItem/model';\nimport { ProductListHolder } from '@components/Universals/ProductListHolder';\n\nimport { WISHLIST_PAGE_SIZE } from '../constants';\n\nimport { useRegisteredWatchdog } from './WishlistPager/useRegisteredWatchdog';\n\nconst columns = { xs: 6, md: 3 };\nconst animationConfiguration = (enabled: boolean): UseTransitionProps => ({\n from: { opacity: 1 },\n enter: { opacity: 1 },\n leave: { opacity: 0 },\n keys: (item: GetProductsByIdBatchedQuery['vpProductByIds'][number]) =>\n item?.id,\n config: {\n duration: enabled ? 300 : 0,\n clamp: true,\n },\n});\n\ntype AnimatedProductListProps = Pick<\n IProductItemProps,\n 'canSpaRedirect' | 'showAddToCartModal'\n> & {\n products: GetProductsByIdBatchedQuery['vpProductByIds'];\n productItemProps?: IProductOuterProps;\n isLoading?: boolean;\n disableAnimation?: boolean;\n isSharedWishlist?: boolean;\n onProductInView?: (\n product: GetProductsByIdBatchedQuery['vpProductByIds'][number]\n ) => void;\n};\n\nconst AnimatedProductList = ({\n products,\n productItemProps = {},\n showAddToCartModal,\n canSpaRedirect,\n isLoading,\n disableAnimation,\n isSharedWishlist,\n onProductInView,\n}: AnimatedProductListProps) => {\n const transitions = useTransition(\n products,\n React.useMemo(\n () => animationConfiguration(!disableAnimation),\n [disableAnimation]\n )\n );\n\n const { registeredEmails } = useRegisteredWatchdog({ products });\n\n return (\n \n {transitions((style, product, _, index) => {\n const hasRegisteredWatchdog = Boolean(\n registeredEmails &&\n registeredEmails[product.catalogId] &&\n registeredEmails[product.catalogId].length > 0\n );\n\n return (\n \n \n inView && onProductInView?.(product)}\n >\n \n \n \n \n );\n })}\n\n {isLoading &&\n new Array(WISHLIST_PAGE_SIZE).fill(0).map((_, index) => (\n // eslint-disable-next-line react/no-array-index-key\n \n \n \n ))}\n \n );\n};\n\nexport default AnimatedProductList;\n","import { useState } from 'react';\n\nimport { useQuery } from '@apollo/client';\nimport {\n GetProductsByIdBatchedQuery,\n WatchdogRegisteredQuery,\n WatchdogRegisteredQueryVariables,\n} from 'packages/shared/definitions/types';\n\nimport { useUser } from '@queries/useUser';\n\nimport watchdogRegisteredQuery from '../../queries/watchdogRegistered.graphql';\n\ntype UseRegisteredWatchdogParams = {\n products: GetProductsByIdBatchedQuery['vpProductByIds'];\n cacheOnly?: boolean;\n};\n\ntype CatalogId = number;\ntype Email = string;\n\nexport const useRegisteredWatchdog = ({\n products,\n}: UseRegisteredWatchdogParams) => {\n const [registeredEmails, setRegisteredEmails] = useState<\n Record\n >({});\n\n const { isLoggedIn } = useUser();\n const catalogIdsWithWatchdog = products\n .filter((product) => product.showWatchdog)\n .map((product) => product.catalogId);\n\n const alreadyFetchedIds = Object.keys(registeredEmails).map(Number);\n const catalogIdsToFetch = catalogIdsWithWatchdog.filter(\n (id) => !alreadyFetchedIds.includes(id)\n );\n\n const shouldSkipRequest = !isLoggedIn || catalogIdsToFetch.length === 0;\n\n useQuery(\n watchdogRegisteredQuery,\n {\n variables: { catalogIds: catalogIdsToFetch },\n skip: shouldSkipRequest,\n ssr: false,\n onCompleted: (data) => {\n setRegisteredEmails((prev) => ({\n ...prev,\n ...data?.watchdogRegistered?.registeredEmails,\n }));\n },\n }\n );\n\n return {\n registeredEmails,\n };\n};\n","import styled, { css } from 'styled-components';\n\nimport { breakpoints } from '@notino/react-styleguide';\n\nimport { noScrollbarCss } from '@styles/common';\n\nexport const OverflowFadeWrapper = styled.div<{\n leftOverflow: boolean;\n rightOverflow: boolean;\n}>`\n position: relative;\n\n ${({ leftOverflow }) =>\n css`\n &::before {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n left: -1px;\n width: 40px;\n z-index: ${leftOverflow ? 1 : -1};\n opacity: ${leftOverflow ? 1 : 0};\n transition: opacity 0.1s ease-in-out;\n background: linear-gradient(\n 270deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.5) 20%,\n #ffffff 100%\n );\n }\n `}\n\n ${({ rightOverflow }) =>\n css`\n &::after {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n right: -1px;\n width: 40px;\n z-index: ${rightOverflow ? 1 : -1};\n opacity: ${rightOverflow ? 1 : 0};\n transition: opacity 0.1s ease-in-out;\n background: linear-gradient(\n 90deg,\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.5) 20%,\n #ffffff 100%\n );\n }\n `}\n`;\n\nexport const ScrollableWrapper = styled.div`\n overflow: auto;\n width: 100%;\n ${noScrollbarCss}\n`;\n\nexport const Arrow = styled.div<{ position: 'left' | 'right' }>`\n cursor: pointer;\n position: absolute;\n display: none;\n align-items: center;\n justify-content: center;\n top: 50%;\n bottom: 0;\n z-index: 2;\n width: 1.75rem;\n height: 1.75rem;\n transform: translateY(-50%);\n\n ${({ position }) =>\n position === 'left' &&\n css`\n left: 0.25rem;\n `}\n\n ${({ position }) =>\n position === 'right' &&\n css`\n right: 0.25rem;\n `}\n\n @media (min-width: ${breakpoints.lg}) {\n display: flex;\n }\n`;\n","import * as React from 'react';\n\nimport {\n IBasicStyledProps,\n IconRegularChevronLeft,\n IconRegularChevronRight,\n} from '@notino/react-styleguide';\n\nimport { useArrows } from '@hooks/useArrows';\nimport { assignRefs } from '@utils/assignRefs';\n\nimport { Arrow, OverflowFadeWrapper, ScrollableWrapper } from './styled';\n\ntype Props = {\n children: React.PropsWithChildren['children'];\n scrollableElRef?: React.RefObject;\n config?: Parameters[1];\n deps?: Parameters[0];\n} & IBasicStyledProps;\n\nexport const OverflowFade = ({\n children,\n config,\n deps,\n scrollableElRef,\n ...rest\n}: Props) => {\n const { containerRef, showLeftArrow, showRightArrow, scrollTo } = useArrows(\n deps,\n config\n );\n\n return (\n \n {showLeftArrow && (\n scrollTo('left')} role=\"button\">\n \n \n )}\n\n \n {children}\n \n\n {showRightArrow && (\n scrollTo('right')} role=\"button\">\n \n \n )}\n \n );\n};\n","import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n sorting: {\n id: 'wishlist.sorting.label',\n defaultMessage: 'Řazení',\n },\n addedRecentlySortOption: {\n id: 'wishlist.sorting.addedRecentlyOption',\n defaultMessage: 'Nedávno přidané',\n },\n filtrationAll: {\n id: 'wishlist.filtration.categories.all',\n defaultMessage: 'Vše',\n },\n show: {\n id: 'wishlist.filtration.drawer.show',\n defaultMessage: 'Zobrazit',\n },\n brandsSearchPlaceholder: {\n id: 'wishlist.filtration.drawer.brands.search.placeholder',\n defaultMessage: 'Filtrujte značku psaním',\n },\n});\n","import styled from 'styled-components';\n\nimport { breakpoints, theme } from '@notino/react-styleguide';\n\nconst MOBILE_HEADER_HEIGHT = 45;\n\nexport const FiltersSectionWrapper = styled.div`\n position: sticky;\n top: ${MOBILE_HEADER_HEIGHT}px;\n z-index: 10;\n background-color: ${theme.color.background.primary};\n\n @media (min-width: ${breakpoints.lg}) {\n top: 0;\n }\n`;\n\nexport const InnerWrapper = styled.div`\n display: flex;\n flex-direction: column;\n padding: 0.5rem 0 0.25rem;\n gap: 0.75rem;\n\n @media (min-width: ${breakpoints.md}) {\n gap: 1rem;\n padding: 1.25rem 0 0.75rem;\n }\n`;\n\nexport const CategoriesWrapper = styled.div`\n display: flex;\n height: 36px;\n\n > div {\n overflow: unset;\n padding: 0 1rem;\n }\n\n a {\n border-radius: 2px;\n }\n`;\n\nexport const FilterChipsWrapper = styled.div`\n display: flex;\n gap: 0.5rem;\n padding: 0 1rem;\n &::after {\n content: '';\n padding-inline: 0.25em;\n }\n`;\n\nexport const Divider = styled.div<{\n hideOnDesktop?: boolean;\n isScrolled?: boolean;\n}>`\n width: 100%;\n padding-bottom: 0.5rem;\n box-shadow: 0px 2px 4px 0px rgba(71, 71, 71, 0.1),\n 0px 1px 2px 0px rgba(71, 71, 71, 0.06);\n\n @media (min-width: ${breakpoints.md}) {\n position: relative;\n left: 50%;\n translate: -50% 0;\n width: ${({ isScrolled }) => (isScrolled ? '100vw' : 'calc(100% - 2rem)')};\n\n box-shadow: ${({ isScrolled }) =>\n isScrolled\n ? '0px 2px 3px 0px rgba(71, 71, 71, 0.04), 0px 3px 4px 0px rgba(71, 71, 71, 0.08)'\n : `0 1px 0 0 ${theme.color.border.divider}`};\n\n ${({ hideOnDesktop }) => hideOnDesktop && 'display:none;'}\n }\n`;\n\nexport const ChipCount = styled.span`\n color: ${theme.color.text.tertiary};\n`;\n","import { WishlistFiltrationGroupType } from '@notino/shared/definitions/types';\n\nimport { useWishlistStore } from '@containers/WishList/store';\n\nexport const useGetSelectedFilterItems = () => {\n const filtration = useWishlistStore((x) => x.filtration);\n const selectedNavigationValues = useWishlistStore(\n (x) => x.selectedNavigationValues\n );\n\n return (groupType: WishlistFiltrationGroupType) =>\n filtration\n .find((x) => x.groupType === groupType)\n ?.items.filter((x) =>\n selectedNavigationValues.includes(x.navigationValue)\n );\n};\n","import * as React from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { CategoriesSelection } from '@notino/react-styleguide';\nimport { ICategory } from '@notino/react-styleguide/dist/types/components/molecules/CategoriesSelection/model';\nimport { WishlistFiltrationGroupType } from '@notino/shared/definitions/types';\n\nimport { OverflowFade } from '@components/OverflowFade';\nimport { useWishlistStore } from '@containers/WishList/store';\n\nconst ALL = '';\n\nimport messages from './messages';\nimport { CategoriesWrapper } from './styled';\nimport { useGetSelectedFilterItems } from './utils';\n\nexport const Categories = () => {\n const { formatMessage } = useIntl();\n const { setSelectedNavigationValues } = useWishlistStore((x) => x.actions);\n const selectedNavigationValues = useWishlistStore(\n (x) => x.selectedNavigationValues\n );\n const getSelectedFilterItems = useGetSelectedFilterItems();\n\n const filtration = useWishlistStore((x) => x.filtration).find(\n (f) => f.groupType === WishlistFiltrationGroupType.Category\n );\n\n const categories: ICategory[] =\n filtration?.items.map((item) => ({\n id: item.navigationValue,\n label: item.name,\n })) ?? [];\n\n const initialCategories = React.useRef(categories);\n\n const categoriesWithAll: ICategory[] = [\n { id: ALL, label: formatMessage(messages.filtrationAll) },\n ...categories,\n ];\n\n const selectedCategoryNavValue = selectedNavigationValues.find((val) =>\n getSelectedFilterItems(WishlistFiltrationGroupType.Category).some(\n (cv) => cv.navigationValue === val\n )\n );\n\n if (initialCategories.current.length <= 1) {\n return null;\n }\n\n return (\n \n \n \n setSelectedNavigationValues(\n [\n ...selectedNavigationValues.filter(\n (v) => v !== selectedCategoryNavValue\n ),\n navValue as number, // number or '' (ALL)\n ].filter(Boolean)\n )\n }\n />\n \n \n );\n};\n","import { theme, styled, breakpoints } from '@notino/react-styleguide';\n\nexport const DrawerTitleContainer = styled.div`\n position: relative;\n z-index: 4;\n width: 100%;\n box-shadow: 0px 2px 4px 0px rgba(71, 71, 71, 0.08),\n 0px 1px 2px 0px rgba(71, 71, 71, 0.04);\n`;\n\nexport const StyledDrawerTitle = styled.span`\n padding: 1rem 1rem 1rem 0;\n ${theme.typography.labelLarge}\n`;\n\nexport const DrawerIconWrapper = styled.div`\n width: 100%;\n text-align: center;\n\n @media (min-width: ${breakpoints.md}) {\n display: none;\n }\n`;\n\nexport const DrawerDragger = styled.div`\n position: absolute;\n width: 2rem;\n height: 0.25rem;\n left: calc(50% - 2rem / 2 - 0.5px);\n top: 0.5rem;\n background: ${theme.color.border.divider};\n border-radius: 6.25rem;\n`;\n\nexport const DrawerTitleWrapper = styled.div`\n display: flex;\n align-items: center;\n`;\n\nexport const CloseIconButton = styled.button`\n background-color: rgba(0, 0, 0, 0);\n border: none;\n padding: 1rem;\n cursor: pointer;\n`;\n\nexport const RefreshButton = styled.a`\n display: inline-block;\n padding: 1rem;\n margin-left: auto;\n text-decoration: none;\n ${theme.typography.labelRegular400}\n color: ${theme.color.text.tertiary};\n cursor: pointer;\n`;\n","import React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport {\n DrawerContext,\n IconRegularClose,\n ReactFCC,\n} from '@notino/react-styleguide';\nimport { IIconProps } from '@notino/react-styleguide/dist/types/components/atoms/Icons/utils/model';\n\nimport messages from '@containers/WishList/messages';\n\nimport {\n DrawerTitleContainer,\n DrawerIconWrapper,\n DrawerDragger,\n StyledDrawerTitle,\n DrawerTitleWrapper,\n CloseIconButton,\n RefreshButton,\n} from './styled';\n\nexport interface IDrawerTitleProps {\n name: string | JSX.Element;\n titleIcon?: ReactFCC;\n onRefreshButtonClick?: () => void;\n afterClose?: () => void;\n}\n\nexport const DrawerTitle = ({\n name,\n titleIcon: CloseIconElement = IconRegularClose,\n onRefreshButtonClick,\n afterClose,\n}: IDrawerTitleProps) => {\n const { closeDrawer } = DrawerContext.useDrawerContext();\n\n return (\n \n \n \n \n \n {\n closeDrawer();\n afterClose?.();\n }}\n >\n \n \n\n {name}\n {onRefreshButtonClick && (\n \n \n \n )}\n \n \n );\n};\n","import styled from 'styled-components';\n\nimport { breakpoints, theme } from '@notino/react-styleguide';\n\nexport const MultiSelectWrapper = styled.div`\n margin: 8px 20px;\n`;\nexport const BrandsMultiSelectWrapper = styled.div`\n margin: 0px 20px 8px;\n`;\n\nexport const FooterWrapper = styled.div`\n box-shadow: 0px -1px 2px 0px rgba(71, 71, 71, 0.04),\n 0px -2px 4px 0px rgba(71, 71, 71, 0.08);\n`;\n\nexport const FooterButtonWrapper = styled.div`\n display: flex;\n button {\n flex: 1;\n margin: 16px 20px;\n @media (min-width: ${breakpoints.md}) {\n margin: 20px 20px 12px;\n }\n }\n`;\n\nexport const DrawerSearchWrapper = styled.div`\n position: sticky;\n top: 0;\n z-index: 1;\n padding: 16px 0 12px;\n background: ${theme.color.background.primary};\n\n input {\n ${theme.typography.labelRegular400}\n border-bottom-width: 1px !important;\n border-radius: 2px;\n }\n`;\n\nexport const Letter = styled.div<{ isFirst: boolean }>`\n ${theme.typography.labelLarge}\n margin-bottom: 8px;\n margin-top: ${({ isFirst }) => (isFirst ? '8px' : '20px')};\n`;\n","import { StoreApi, useStore } from 'zustand';\n\nimport { WishlistFiltrationGroupType } from '@notino/shared/definitions/types';\n\nimport { useWishlistStore } from '@containers/WishList/store';\n\ntype Params = {\n groupType: WishlistFiltrationGroupType;\n store: StoreApi<{\n selectedItems: Array<{\n name: string;\n navigationValue: number;\n }>;\n }>;\n};\n\nexport const useMultiSelectList = ({ groupType, store }: Params) => {\n const { selectedItems } = useStore(store);\n const filter = useWishlistStore((x) => x.filtration).find(\n (x) => x.groupType === groupType\n );\n\n const isChecked = (item: { name: string; navigationValue: number }) => {\n return selectedItems.some(\n (x) => x.navigationValue === item.navigationValue\n );\n };\n\n const onChange = (\n checked: boolean,\n item: { name: string; navigationValue: number }\n ) => {\n store.setState({\n selectedItems: checked\n ? selectedItems.concat(item)\n : selectedItems.filter(\n (x) => x.navigationValue !== item.navigationValue\n ),\n });\n };\n\n return {\n selectedItems,\n filter,\n isChecked,\n onChange,\n };\n};\n","import * as React from 'react';\nimport { useIntl } from 'react-intl';\n\nimport groupBy from 'lodash/groupBy';\nimport { StoreApi } from 'zustand';\n\nimport { FilterItemCheckbox, SearchInput } from '@notino/react-styleguide';\nimport { normalizeStringAndLowerCase } from '@notino/react-web-utils';\nimport { WishlistFiltrationGroupType } from '@notino/shared/definitions/types';\n\nimport messages from '../messages';\n\nimport {\n BrandsMultiSelectWrapper,\n DrawerSearchWrapper,\n Letter,\n} from './styled';\nimport { useMultiSelectList } from './useMultiSelectList';\n\ntype Props = {\n groupType: WishlistFiltrationGroupType;\n store: StoreApi<{\n selectedItems: Array<{\n name: string;\n navigationValue: number;\n }>;\n }>;\n};\n\nexport const BrandsMultiSelectList = ({ groupType, store }: Props) => {\n const { formatMessage } = useIntl();\n const [search, setSearch] = React.useState('');\n const { filter, isChecked, onChange } = useMultiSelectList({\n groupType,\n store,\n });\n\n const items = filter.items.filter((item) =>\n normalizeStringAndLowerCase(item.name).includes(\n normalizeStringAndLowerCase(search)\n )\n );\n\n const groups = search\n ? { '': items }\n : groupBy(items, (item) =>\n Number.isInteger(Number(item.name[0]))\n ? '#'\n : item.name[0].toUpperCase()\n );\n\n return (\n \n \n \n \n\n {Object.keys(groups).map((letter, index) => (\n \n {letter}\n {groups[letter].map((item) => (\n onChange(!checked, item)} // why the fuk is \"checked\" reversed?\n >\n {item.name}\n \n ))}\n \n ))}\n \n );\n};\n","import * as React from 'react';\n\nimport styled from 'styled-components';\nimport { StoreApi, useStore } from 'zustand';\n\nimport { IconRegularClose } from '@notino/react-styleguide';\nimport { usePrevious } from '@notino/react-web-utils';\n\nimport { OverflowFade } from '@components/OverflowFade';\nimport { useUpdateEffect } from '@hooks';\n\ntype Props = {\n store: StoreApi<{\n selectedItems: Array<{\n name: string;\n navigationValue: number;\n }>;\n }>;\n};\n\nexport const FooterSelectedItems = ({ store }: Props) => {\n const selectedItems = useStore(store, (x) => x.selectedItems);\n const hasItems = selectedItems.length > 0;\n const prevSelectedItems = usePrevious(selectedItems);\n const scrollableElRef = React.useRef(null);\n\n useUpdateEffect(() => {\n if (prevSelectedItems?.length >= selectedItems.length) {\n return;\n }\n scrollableElRef.current?.scrollTo({\n left: scrollableElRef.current.scrollWidth,\n behavior: 'smooth',\n });\n }, [selectedItems, prevSelectedItems]);\n\n if (!hasItems) return null;\n\n const handleUnselect = (navigationValue: number) => {\n store.setState({\n selectedItems: selectedItems.filter(\n (x) => x.navigationValue !== navigationValue\n ),\n });\n };\n\n return (\n \n \n {selectedItems.map((item) => (\n handleUnselect(item.navigationValue)}\n >\n {item.name}\n \n \n ))}\n \n \n );\n};\n\nconst FooterSelectedItemsWrapper = styled.div`\n width: 100%;\n display: flex;\n gap: 0.5rem;\n padding: 0.75rem 1.25rem;\n border-bottom: 1px solid #f5f5f5;\n\n &:after {\n content: '';\n padding-inline: 0.375em;\n }\n`;\n\nexport const FooterSelectedItem = styled.div`\n display: flex;\n align-items: center;\n gap: 0.25rem;\n background-color: #f5f5f5;\n white-space: nowrap;\n padding: 0.25rem 0.5rem;\n font-size: 0.75rem;\n line-height: 1.5rem;\n letter-spacing: 0px;\n border-radius: 0.125rem;\n user-select: none;\n cursor: pointer;\n`;\n","import * as React from 'react';\n\nimport { StoreApi } from 'zustand';\n\nimport { FilterItemCheckbox } from '@notino/react-styleguide';\nimport { WishlistFiltrationGroupType } from '@notino/shared/definitions/types';\n\nimport { MultiSelectWrapper } from './styled';\nimport { useMultiSelectList } from './useMultiSelectList';\n\ntype Props = {\n groupType: WishlistFiltrationGroupType;\n store: StoreApi<{\n selectedItems: Array<{\n name: string;\n navigationValue: number;\n }>;\n }>;\n};\n\nexport const MultiSelectList = ({ groupType, store }: Props) => {\n const { filter, isChecked, onChange } = useMultiSelectList({\n groupType,\n store,\n });\n\n return (\n \n {filter.items.map((item) => (\n onChange(!checked, item)} // why the fuk is \"checked\" reversed?\n >\n {item.name}\n \n ))}\n \n );\n};\n","import * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { createStore } from 'zustand';\n\nimport { Button, ButtonModel, DrawerContext } from '@notino/react-styleguide';\nimport { WishlistFiltrationGroupType } from '@notino/shared/definitions/types';\n\nimport { useWishlistStore } from '@containers/WishList/store';\n\nimport { DrawerTitle } from '../DrawerTitle';\nimport messages from '../messages';\n\nimport { BrandsMultiSelectList } from './BrandsMultiSelectList';\nimport { FooterSelectedItems } from './FooterSelectedItems';\nimport { MultiSelectList } from './MultiSelectList';\nimport { FooterButtonWrapper, FooterWrapper } from './styled';\n\ntype Props = {\n groupType: WishlistFiltrationGroupType;\n onClose: () => void;\n};\n\nexport const FiltrationDrawerHandler = ({ groupType, onClose }: Props) => {\n const isBrand = groupType === WishlistFiltrationGroupType.Brand;\n const filter = useWishlistStore((x) => x.filtration).find(\n (x) => x.groupType === groupType\n );\n const selectedNavValues = useWishlistStore((x) => x.selectedNavigationValues);\n const { setSelectedNavigationValues } = useWishlistStore((x) => x.actions);\n const { openDrawer } = DrawerContext.useDrawerContext();\n\n const initialSelectedItems = React.useRef(\n filter.items.filter((x) => selectedNavValues.includes(x.navigationValue))\n );\n\n const [store] = React.useState(\n createStore<{\n selectedItems: Array<{ name: string; navigationValue: number }>;\n }>(() => ({\n selectedItems: initialSelectedItems.current,\n }))\n );\n\n const handleApplyFilter = () => {\n const initialSelectedValues = initialSelectedItems.current.map(\n (x) => x.navigationValue\n );\n const selectedValues = store\n .getState()\n .selectedItems.map((x) => x.navigationValue);\n\n const addedValues = selectedValues.filter(\n (x) => !initialSelectedValues.includes(x)\n );\n const removedValues = initialSelectedValues.filter(\n (x) => !selectedValues.includes(x)\n );\n\n setSelectedNavigationValues([\n ...selectedNavValues.filter((x) => !removedValues.includes(x)),\n ...addedValues,\n ]);\n onClose();\n };\n\n React.useEffect(() => {\n openDrawer(\n isBrand ? (\n \n ) : (\n \n ),\n {\n title: (\n store.setState({ selectedItems: [] })}\n afterClose={onClose}\n />\n ),\n footerContent: (\n \n {isBrand && }\n \n \n \n \n \n \n ),\n onClose,\n initialPosition: isBrand ? 'top' : 'dynamic',\n showCloseIcon: false,\n showFade: true,\n isTitleBorderHidden: true,\n allowResize: false,\n hideScrollbar: true,\n }\n );\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return null;\n};\n","import styled from 'styled-components';\n\nimport { RadioButton, theme } from '@notino/react-styleguide';\n\nexport const StyledRadioButton = styled(RadioButton)`\n display: flex;\n align-items: center;\n height: 3rem;\n font-weight: 400;\n margin-left: 1.25rem;\n\n > span {\n top: 1rem;\n border-color: ${theme.color.border.divider};\n }\n`;\n","import * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { DrawerContext } from '@notino/react-styleguide';\nimport { WishlistSortBy } from '@notino/shared/definitions/types';\n\nimport { useWishlistStore } from '@containers/WishList/store';\n\nimport messages from '../messages';\n\nimport { StyledRadioButton } from './styled';\n\nconst desiredOrder: WishlistSortBy[] = [\n WishlistSortBy.Default,\n WishlistSortBy.BestSellers,\n WishlistSortBy.Cheapest,\n WishlistSortBy.MostExpensive,\n WishlistSortBy.Alphabetically,\n];\n\nexport const SortByOptionsList = () => {\n const { closeDrawer } = DrawerContext.useDrawerContext();\n const sortByOptions = useWishlistStore((x) => x.sortByOptions);\n const selectedSortBy = useWishlistStore((x) => x.selectedSortBy);\n const { setSelectedSortBy } = useWishlistStore((x) => x.actions);\n\n const sortedSortOptions = [...sortByOptions].sort(\n (a, b) => desiredOrder.indexOf(a.sortBy) - desiredOrder.indexOf(b.sortBy)\n );\n\n return (\n
\n {sortedSortOptions.map((o) => (\n {\n setSelectedSortBy(o.sortBy);\n closeDrawer();\n }}\n >\n {o.sortBy === WishlistSortBy.Default ? (\n \n ) : (\n o.name\n )}\n \n ))}\n
\n );\n};\n","import * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport {\n DrawerContext,\n FilterChip,\n IconRegularClose,\n} from '@notino/react-styleguide';\nimport { WishlistSortBy } from '@notino/shared/definitions/types';\n\nimport { useWishlistStore } from '@containers/WishList/store';\n\nimport { DrawerTitle } from '../DrawerTitle';\nimport messages from '../messages';\n\nimport { SortByOptionsList } from './SortByOptionsList';\n\nexport const SortingChip = () => {\n const { setSelectedSortBy } = useWishlistStore((x) => x.actions);\n const selectedSortBy = useWishlistStore((x) => x.selectedSortBy);\n const sortByOptions = useWishlistStore((x) => x.sortByOptions);\n const { openDrawer, closeDrawer } = DrawerContext.useDrawerContext();\n\n const sortActive = selectedSortBy !== WishlistSortBy.Default;\n\n const openSortingDrawer = () => {\n openDrawer(, {\n title: (\n }\n onRefreshButtonClick={() => {\n setSelectedSortBy(WishlistSortBy.Default);\n closeDrawer();\n }}\n />\n ),\n showCloseIcon: false,\n showFade: true,\n isTitleBorderHidden: true,\n allowResize: false,\n hideScrollbar: true,\n });\n };\n\n return (\n x.sortBy === selectedSortBy)?.name\n ) : (\n \n )\n }\n isActive={sortActive}\n onClick={openSortingDrawer}\n secondaryIcon={}\n onSecondaryIconClick={\n sortActive && (() => setSelectedSortBy(WishlistSortBy.Default))\n }\n />\n );\n};\n","import * as React from 'react';\n\nimport {\n DrawerContext,\n FilterChip,\n IconRegularClose,\n} from '@notino/react-styleguide';\nimport { WishlistFiltrationGroupType } from '@notino/shared/definitions/types';\n\nimport { OverflowFade } from '@components/OverflowFade';\nimport { useWishlistStore } from '@containers/WishList/store';\nimport { useElementScrollDistanceFromTopThreshold } from '@hooks/useElementScrollDistanceFromTopThreshold';\n\nimport { Categories } from './Categories';\nimport { FiltrationDrawerHandler } from './FiltrationDrawerHandler';\nimport { SortingChip } from './SortingChip';\nimport {\n ChipCount,\n Divider,\n FilterChipsWrapper,\n FiltersSectionWrapper,\n InnerWrapper,\n} from './styled';\nimport { useGetSelectedFilterItems } from './utils';\n\nconst SUPPORTED_GROUP_TYPES = [\n WishlistFiltrationGroupType.Brand,\n WishlistFiltrationGroupType.ForWho,\n WishlistFiltrationGroupType.FreeGiftsAndOffers,\n];\n\nexport const FiltersSection = () => {\n const wrapperRef = React.useRef(null);\n const isScrolled = useElementScrollDistanceFromTopThreshold({\n ref: wrapperRef,\n threshold: 0,\n });\n const { closeDrawer } = DrawerContext.useDrawerContext();\n\n const { setSelectedNavigationValues } = useWishlistStore((x) => x.actions);\n const filtration = useWishlistStore((x) => x.filtration).filter((x) =>\n SUPPORTED_GROUP_TYPES.includes(x.groupType)\n );\n const selectedNavigationValues = useWishlistStore(\n (x) => x.selectedNavigationValues\n );\n const totalProductCount = useWishlistStore(\n (state) => state.totalProductCount\n );\n const getSelectedFilterItems = useGetSelectedFilterItems();\n\n const [openedDrawerGroupType, setOpenedDrawerGroupType] =\n React.useState();\n\n if (totalProductCount < 5) {\n return ;\n }\n\n return (\n <>\n {openedDrawerGroupType && (\n {\n setOpenedDrawerGroupType(undefined);\n closeDrawer();\n }}\n />\n )}\n\n \n \n \n\n \n \n {filtration.map((f) => {\n const items = getSelectedFilterItems(f.groupType);\n const count = items.length;\n\n return (\n 0}\n title={\n count ? (\n <>\n {items[0].name}\n {count > 1 && +{count - 1}}\n \n ) : (\n f.groupName\n )\n }\n secondaryIcon={\n \n }\n onSecondaryIconClick={\n count > 0 &&\n (() =>\n setSelectedNavigationValues(\n selectedNavigationValues.filter(\n (x) => !items.some((i) => i.navigationValue === x)\n )\n ))\n }\n onClick={() => setOpenedDrawerGroupType(f.groupType)}\n />\n );\n })}\n\n \n \n \n \n \n \n \n );\n};\n","import { useState, useEffect, RefObject } from 'react';\n\nexport function useElementScrollDistanceFromTopThreshold({\n ref,\n threshold,\n}: {\n ref: RefObject;\n threshold: number;\n}): boolean {\n const [isPastThreshold, setIsPastThreshold] = useState(false);\n\n useEffect(() => {\n const handleScroll = () => {\n if (ref.current) {\n setIsPastThreshold(\n ref.current.getBoundingClientRect().top <= threshold\n );\n }\n };\n\n handleScroll();\n window.addEventListener('scroll', handleScroll);\n return () => {\n window.removeEventListener('scroll', handleScroll);\n };\n }, [ref, threshold]);\n\n return isPastThreshold;\n}\n","import styled from 'styled-components';\n\nimport { breakpoints, theme } from '@notino/react-styleguide';\n\nexport const Container = styled.div`\n max-width: 64.75rem;\n margin: 0 auto;\n`;\n\nexport const ProductsCount = styled.div`\n ${theme.typography.labelRegular400}\n color: ${theme.color.text.tertiary};\n margin-bottom: 0.5rem;\n margin-top: 0.75rem;\n padding-inline: 1rem;\n\n @media (min-width: ${breakpoints.md}) {\n margin-bottom: 0.75rem;\n margin-top: 1.5rem;\n }\n`;\n","import * as React from 'react';\n\nimport { useFunctionInBulk } from '@notino/react-web-utils';\nimport {\n WishlistForCurrentUserQuery,\n WishlistSortBy,\n} from '@notino/shared/definitions/types';\nimport { Ga4Events, Product } from '@notino/web-tracking';\n\nimport { GTM_WISHLIST_LIST_NAME } from '@containers/WishList/constants';\nimport { useWishlistStore } from '@containers/WishList/store';\nimport { dispatchTrackingEvent } from '@context/tracking/utils';\nimport { ProductEventWither } from '@helpers/googleTagManager';\n\ntype NonArray = T extends Array ? never : T;\ntype Ga4SortingType = NonArray<\n Extract['product_lists']\n>['sorting_type'];\n\ntype TrackingWishlistProduct = Product & {\n id: string;\n list_position: number;\n};\n\ntype Params = { sortBy: WishlistSortBy };\n\nconst sortMapping: Record = {\n Default: 'recommendation',\n Cheapest: 'price_ascending',\n MostExpensive: 'price_descending',\n BestSellers: 'bestsellers',\n Alphabetically: 'alphabetical',\n};\n\nexport const useWishlistViewItemListTracking = () => {\n const storeProducts = useWishlistStore((state) => state.products);\n const sortBy = useWishlistStore((state) => state.selectedSortBy);\n\n const trackProductsImpression = React.useCallback(\n (products: TrackingWishlistProduct[], { sortBy: _sortBy }: Params) => {\n dispatchTrackingEvent({\n event: 'view_item_list',\n product_lists: {\n products,\n interaction: window.scrollY > 100 ? 'scroll' : 'automatic',\n sorting_type: sortMapping[_sortBy],\n list_id: undefined,\n list_name: GTM_WISHLIST_LIST_NAME,\n },\n _clear: true,\n });\n },\n []\n );\n\n const trackProductsImpressionBulk = useFunctionInBulk<\n TrackingWishlistProduct,\n // @ts-ignore\n Params\n >(trackProductsImpression, 500, { sortBy }, sortBy);\n\n return (\n product: WishlistForCurrentUserQuery['WishlistForCurrentUser']['listing']['products'][number]['product']\n ) => {\n trackProductsImpressionBulk(\n ProductEventWither()\n .withVpProduct(product)\n .withDiscountPrices(product.attributes, {\n shouldSendOnlyDiscountPrice: true,\n })\n .withAdditionalData({\n id: product.id,\n list_position:\n storeProducts.findIndex((p) => String(p.id) === product.id) + 1,\n })\n .build()\n );\n };\n};\n\nexport type TrackedProduct = Product & { list_position: number; id: string };\n","import { defineMessages } from 'react-intl';\n\nexport const wishlistMessages = defineMessages({\n toggle: {\n id: 'wishlist.linkSharer.toggle',\n defaultMessage: 'Zkopírovat odkaz na seznam',\n },\n header: {\n id: 'wishlist.linkSharer.header',\n defaultMessage: 'Podělte se o své oblíbené produkty',\n },\n shareLabel: {\n id: 'wishlist.linkSharer.label',\n defaultMessage: 'Odkaz ke sdílení:',\n },\n clipboard: {\n id: 'wishlist.linkSharer.clipboard',\n defaultMessage: 'Zkopírováno do schránky',\n },\n clipboardFail: {\n id: 'wishlist.linkSharer.clipboardFail',\n defaultMessage: 'Kopírování se nezdařilo, zkopírujte pomocí Ctrl+C',\n },\n});\n","import styled from 'styled-components';\n\nimport {\n Heading,\n SemanticColorKey,\n theme,\n getSemanticColor,\n} from '@notino/react-styleguide';\n\nexport const IconTextButton = styled.div`\n color: ${theme.color.text.tertiary};\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 4.6875rem;\n font-size: 14px;\n cursor: pointer;\n svg {\n color: black;\n }\n transition: color 100ms ease;\n &:hover {\n color: ${theme.color.text.secondary};\n }\n`;\n\nexport const CircleBorder = styled.div`\n border: 1px solid ${theme.color.border.default};\n border-radius: 100%;\n display: flex;\n margin-right: 0.9375rem;\n`;\n\nexport const LinkSharerCircleBorder = styled(CircleBorder)`\n padding: 0.4375rem 0.4375rem 0.5625rem 0.5625rem;\n`;\n\nexport const ModalBody = styled.div`\n padding: 0 1.875rem;\n`;\n\nexport const H3 = styled(Heading.H3)`\n margin: 1.875rem 0 2.5rem;\n`;\n\nexport const LinkLabel = styled.label`\n display: inline-block;\n width: 100%;\n text-align: left;\n margin-bottom: 1rem;\n font-weight: 600;\n`;\n\nexport const LinkInput = styled.input`\n color: ${theme.color.text.tertiary};\n font-weight: 300;\n box-sizing: border-box;\n width: 100%;\n padding: 0.9375rem;\n margin-bottom: 1.75rem;\n`;\n\nexport const Message = styled.div<{ color: SemanticColorKey }>`\n color: ${(props) => getSemanticColor(props.color)};\n box-sizing: border-box;\n width: 100%;\n height: 1rem;\n margin: 0 0 1.9375rem;\n display: inline-flex;\n svg {\n width: 18px;\n }\n`;\n","import React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { IconRegularCheckmark, IconSolidInfo } from '@notino/react-styleguide';\n\nimport { wishlistMessages } from '../messages';\n\nimport { LinkInput, Message } from './styled';\n\ninterface IWishlistLinkProps {\n hostUrl: string;\n anonymousId: string;\n isCopySuccessful: boolean;\n}\n\nexport const WishlistLink: React.FC = ({\n hostUrl,\n anonymousId,\n isCopySuccessful,\n}) => (\n <>\n \n {isCopySuccessful ? (\n \n {' '}\n \n \n ) : (\n \n {' '}\n \n \n )}\n \n);\n","import * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { wishlistMessages } from '../messages';\n\nimport { H3, LinkLabel, ModalBody } from './styled';\nimport { WishlistLink } from './WishlistLink';\n\ninterface IModalProps {\n hostUrl: string;\n anonymousId: string;\n isCopySuccessful: boolean;\n}\n\nexport const Modal: React.FC = ({\n anonymousId,\n isCopySuccessful,\n hostUrl,\n}) => {\n return (\n \n

\n \n

\n\n \n \n \n
\n \n
\n );\n};\n","import * as React from 'react';\n\nimport { useMutation } from '@apollo/client';\n\nimport { ModalModel, ModalContext } from '@notino/react-styleguide';\nimport {\n CopyWishlistMutationVariables,\n CopyWishlistMutation as copyWishlistResponse,\n} from '@notino/shared/definitions/types';\n\nimport { Modal } from '@containers/WishList/components/LinkSharer/Modal';\nimport { useTrackingContext } from '@context/tracking/TrackingContext';\nimport { dispatchTrackingEvent } from '@context/tracking/utils';\nimport { getWindowOrigin } from '@utils/constants';\n\nimport copyWishlistMutation from '../../queries/copyWishlist.graphql';\n\nexport const useCopyWishlistId = (anonymousId: string) => {\n const { toggleModal } = ModalContext.useModalContext();\n const { getTimeFromInit } = useTrackingContext();\n\n const [isCopySuccessful, setIsCopySuccessful] = React.useState(true);\n\n const [copyWishlist, { data }] = useMutation<\n copyWishlistResponse,\n CopyWishlistMutationVariables\n >(copyWishlistMutation);\n\n const handleOnCopy = React.useCallback(\n async (_: string, success: boolean) => {\n const serverWishlistId = data?.WishlistCopyWishlist?.id;\n if (serverWishlistId !== anonymousId) {\n await copyWishlist({\n variables: { anonymousId },\n });\n }\n\n dispatchTrackingEvent({\n event: 'wishlist_click',\n wishlist: {\n action: 'wishlist_shared',\n interaction: 'click',\n name: 'share',\n timing: getTimeFromInit(),\n },\n });\n\n toggleModal(\n ,\n {\n size: ModalModel.Sizes.default,\n type: ModalModel.Types.default,\n noBorders: true,\n }\n );\n\n setIsCopySuccessful(success);\n },\n [\n anonymousId,\n data,\n copyWishlist,\n isCopySuccessful,\n toggleModal,\n getTimeFromInit,\n ]\n );\n\n return {\n handleOnCopy,\n };\n};\n","import styled from 'styled-components';\n\nimport { theme } from '@notino/react-styleguide';\n\nexport const Container = styled.div`\n max-width: 64.6875rem;\n margin: 0 auto;\n`;\n\nexport const StyledHeader = styled.div`\n text-align: center;\n width: 100%;\n margin-top: 2.1875rem;\n margin-bottom: 1.4375rem;\n a {\n color: ${theme.color.text.primary};\n font-weight: bold;\n }\n`;\nexport const StyledHeaderText = styled.h1`\n font-size: 2rem;\n text-align: center;\n font-weight: 300;\n text-transform: none !important;\n`;\nexport const StyledLoginInfoText = styled.div`\n padding: 1rem 0;\n`;\n\nexport const StyledEmptyInfo = styled.p`\n padding: 1rem;\n`;\n\nexport const ButtonWrapper = styled.div`\n text-align: center;\n margin-top: 1.875rem;\n`;\n\nexport const WishlistContainer = styled.div`\n margin-bottom: 2.15rem;\n`;\n\nexport const Spacer = styled.div<{ isSmall: boolean }>`\n margin-bottom: ${({ isSmall }) => (isSmall ? '5rem' : '10rem')};\n`;\n","import styled from 'styled-components';\n\nimport { breakpoints, theme } from '@notino/react-styleguide';\n\nexport const HeaderWrapper = styled.div`\n padding: 1rem 0.5rem 0.5rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n svg {\n margin-inline: 0.75rem;\n cursor: pointer;\n }\n\n @media (min-width: ${breakpoints.md}) {\n justify-content: start;\n gap: 0.5rem;\n padding: 0 1rem;\n margin: 2.5rem 0 0.75rem;\n\n svg:first-child {\n display: none;\n }\n }\n`;\n\nexport const HeaderTitle = styled.div`\n ${theme.typography.labelLarge}\n\n @media (min-width: ${breakpoints.md}) {\n ${theme.typography.titleLarge}\n }\n`;\n\nexport const EmptyWrapper = styled.div`\n min-height: 65vh;\n`;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { IconRegularHeart } from '@notino/react-styleguide';\n\nimport {\n StyledEmptyInfo,\n StyledHeader,\n StyledHeaderText,\n} from '@containers/WishList/styled';\n\nimport messages from '../../../messages';\n\nimport { EmptyWrapper } from './styled';\n\nexport const Empty = () => {\n return (\n \n \n \n \n {(text) => (\n \n )}\n \n \n \n \n \n\n \n \n \n \n \n );\n};\n","import * as React from 'react';\nimport { CopyToClipboard } from 'react-copy-to-clipboard';\nimport { FormattedMessage } from 'react-intl';\n\nimport * as uuid from 'uuid';\n\nimport { IconRegularShareIos } from '@notino/react-styleguide';\n\nimport messages from '@containers/WishList/messages';\nimport { getWindowOrigin } from '@utils/constants';\n\nimport { useCopyWishlistId } from '../../LinkSharer/useCopyWishlistId';\n\nimport { Empty } from './Empty';\nimport { HeaderTitle, HeaderWrapper } from './styled';\n\ntype Props = {\n isShared: boolean;\n isEmpty: boolean;\n};\n\nexport const WishlistHeader = ({ isShared, isEmpty }: Props) => {\n const anonymousId = React.useMemo(() => uuid(), []);\n\n const { handleOnCopy } = useCopyWishlistId(anonymousId);\n\n const hostUrl = getWindowOrigin();\n const showMobileSharing = async () => {\n await navigator.share({\n url: `${hostUrl}/wishlist?id=${anonymousId}`,\n });\n };\n\n const isSafariOnDesktop = () =>\n /Safari/i.test(navigator.userAgent) &&\n navigator.vendor.includes('Apple Computer') &&\n !/Mobi|Android/i.test(navigator.userAgent);\n\n const handleNativeShare = () =>\n navigator.share && !isSafariOnDesktop && showMobileSharing();\n\n if (isEmpty) return ;\n\n return (\n \n \n \n \n \n \n \n \n \n );\n};\n","import * as React from 'react';\nimport { InView } from 'react-intersection-observer';\nimport { FormattedMessage } from 'react-intl';\n\nimport { GetItemDataByIdQuery } from '@notino/shared/definitions/types';\n\nimport { GTM_WISHLIST_LIST_NAME } from '@containers/WishList/constants';\nimport messages from '@containers/WishList/messages';\nimport { useWishlistStore } from '@containers/WishList/store';\nimport { useFeatureFlags } from '@context/featureFlags/FeatureFlagsProvider';\nimport { useAddToCartCloudTracking } from '@hooks/useAddToCardCloudTracking';\n\nimport AnimatedProductList from '../AnimatedProductList';\nimport {\n trackWishlistPageView,\n useTrackToCartAsync,\n useTrackToCartFailedAsync,\n} from '../WishlistPager/tracking';\n\nimport { FiltersSection } from './FiltersSection';\nimport { Container, ProductsCount } from './styled';\nimport { useWishlistViewItemListTracking } from './tracking/useWishlistViewItemListTracking';\nimport { WishlistHeader } from './WishlistHeader';\n\nexport const WishlistPage = () => {\n const { spa_redirect_wishlist_to_pd } = useFeatureFlags();\n const products = useWishlistStore((state) => state.products);\n const hasMore = useWishlistStore((state) => state.hasMore);\n const productIds = useWishlistStore((state) => state.productIds);\n const isShared = useWishlistStore((state) => state.isSharedWishlist);\n const isEmpty = useWishlistStore((state) => state.totalProductCount === 0);\n const totalFilteredProductCount = useWishlistStore(\n (state) => state.totalFilteredProductCount\n );\n const loading = useWishlistStore((state) => state.isLoading);\n const { setProductWishlisted, fetchProducts } = useWishlistStore(\n (state) => state.actions\n );\n\n const trackAddToCartAsync = useTrackToCartAsync(\n productIds,\n GTM_WISHLIST_LIST_NAME\n );\n const addToCardCloudTracking = useAddToCartCloudTracking();\n const trackAddToCartFailedAsync = useTrackToCartFailedAsync(\n productIds,\n GTM_WISHLIST_LIST_NAME\n );\n\n const handleProductAdded = async (\n product: GetItemDataByIdQuery['vpProductById']\n ) => {\n await trackAddToCartAsync(product);\n addToCardCloudTracking({ quantity: 1, productCode: product.productCode });\n };\n\n const trackItemView = useWishlistViewItemListTracking();\n\n return (\n \n \n\n {!isEmpty && (\n <>\n \n \n :{' '}\n {totalFilteredProductCount}\n \n \n )}\n\n \n\n {hasMore && !loading && (\n \n inView &&\n fetchProducts({\n offset: productIds.length,\n })\n }\n />\n )}\n \n );\n};\n","import * as React from 'react';\nimport { CopyToClipboard } from 'react-copy-to-clipboard';\nimport { FormattedMessage } from 'react-intl';\n\nimport * as uuid from 'uuid';\n\nimport { IconRegularShare } from '@notino/react-styleguide';\n\nimport { getWindowOrigin } from '@utils/constants';\n\nimport { wishlistMessages } from '../messages';\n\nimport { LinkSharerCircleBorder, IconTextButton } from './styled';\nimport { useCopyWishlistId } from './useCopyWishlistId';\n\nexport const LinkSharer: React.FC = () => {\n const anonymousId = React.useMemo(() => uuid(), []);\n\n const { handleOnCopy } = useCopyWishlistId(anonymousId);\n\n const hostUrl = getWindowOrigin();\n const showMobileSharing = async () => {\n await navigator.share({\n url: `${hostUrl}/wishlist?id=${anonymousId}`,\n });\n };\n\n const isSafariOnDesktop = () =>\n /Safari/i.test(navigator.userAgent) &&\n navigator.vendor.includes('Apple Computer') &&\n !/Mobi|Android/i.test(navigator.userAgent);\n\n const handleNativeShare = () =>\n navigator.share && !isSafariOnDesktop && showMobileSharing();\n\n return (\n \n \n \n \n \n\n \n \n \n );\n};\n","import * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { IconRegularHeart } from '@notino/react-styleguide';\n\nimport { LOGIN_URL } from '@constants';\n\nimport messages from './messages';\nimport {\n StyledEmptyInfo,\n StyledHeader,\n StyledHeaderText,\n StyledLoginInfoText,\n} from './styled';\n\ninterface IProps {\n isEmpty: boolean;\n showLoginText?: boolean;\n isShared: boolean;\n}\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nexport const WishlistHeader = ({\n isEmpty,\n showLoginText,\n isShared,\n}: IProps) => {\n const getHeaderText = () => {\n if (isEmpty) return messages.noProducts;\n if (isShared) return messages.sharedProducts;\n return messages.yourProducts;\n };\n\n return (\n \n \n \n {(text) => }\n \n \n {isEmpty && (\n <>\n \n \n \n\n \n \n \n \n )}\n {showLoginText ? (\n \n {parts},\n }}\n >\n {(text) => (\n
\n )}\n \n \n ) : null}\n \n );\n};\n","import { useMutation } from '@apollo/client';\n\nimport {\n RemoveFromWishlistMutation,\n RemoveFromWishlistMutationVariables,\n} from '@notino/shared/definitions/types';\n\nimport removeFromWishlistMutation from '@components/Universals/WishlistModifier/queries/removeFromWishlist.graphql';\nimport { publishUpdateWishlistCountEvent } from '@components/Universals/WishlistModifier/useWishlistActions';\n\nexport const useRemoveNullWishlistProducts = (isEnabled: boolean) => {\n const [remove] = useMutation<\n RemoveFromWishlistMutation,\n RemoveFromWishlistMutationVariables\n >(removeFromWishlistMutation);\n\n return (nullIds: string[]) => {\n if (!isEnabled || nullIds.length === 0) return;\n\n const callApi = async () => {\n const promises = nullIds.map((id) =>\n remove({ variables: { productId: id } })\n );\n await Promise.all(promises);\n };\n\n callApi().finally(publishUpdateWishlistCountEvent);\n };\n};\n","import * as React from 'react';\n\nimport {\n GetProductsByIdBatchedQuery,\n GetProductsByIdBatchedQueryVariables,\n} from '@notino/shared/definitions/types';\n\nimport getProductsByIdBatchedQuery from '@components/Universals/BatchVPProductQuery/queries/productsByIdBatched.graphql';\nimport { dispatchProductsShownEvent } from '@containers/ProductDetailContainer/ProductDetail/hooks/useDispatchProductsShowEvent';\nimport { subtractArrays } from '@utils/array';\n\nimport { trackWishlistProductListImpression } from './tracking';\nimport useLazyQueryWorkaround from './useLazyQueryWorkaround';\nimport { useRemoveNullWishlistProducts } from './useRemoveNullWishlistProducts';\nimport { useSsrWishlistProducts } from './useSsrWishlistProducts';\nimport { findNullProductIds } from './utils';\n\nconst usePagination = () =>\n React.useReducer((prevPage: number) => prevPage + 1, 0);\n\nexport const useWishlistedProducts = (\n productIds: string[],\n isSharedWishlist: boolean,\n { pageSize }: { pageSize: number }\n) => {\n const [page, nextPage] = usePagination();\n const removeNullProducts = useRemoveNullWishlistProducts(!isSharedWishlist);\n\n const [products, setProducts] = useSsrWishlistProducts({\n productIds,\n pageSize,\n });\n const alreadyFetchedIds = React.useRef(\n products.length ? productIds.slice(0, pageSize) : []\n );\n\n const [fetchMore, { loading, error }] = useLazyQueryWorkaround<\n GetProductsByIdBatchedQuery,\n GetProductsByIdBatchedQueryVariables\n >(getProductsByIdBatchedQuery, (response, { variables }) => {\n const variableIds = Array.isArray(variables.ids)\n ? variables.ids\n : [variables.ids];\n alreadyFetchedIds.current = [...alreadyFetchedIds.current, ...variableIds];\n\n const allNewProducts = response?.vpProductByIds ?? [];\n const nonNullProducts = allNewProducts.filter(Boolean);\n\n if (nonNullProducts.length > 0) {\n trackWishlistProductListImpression(nonNullProducts, productIds, 'button');\n dispatchProductsShownEvent(\n nonNullProducts.map((p) => ({ ...p, webId: p.id })),\n {\n section: 'Wishlist',\n }\n );\n }\n\n setProducts((prev) => [...prev, ...nonNullProducts]);\n\n if (allNewProducts.length !== nonNullProducts.length) {\n removeNullProducts(findNullProductIds(variableIds, nonNullProducts));\n }\n });\n\n /**\n * this useEffect is used when user removes item from wishlist,\n * so product list is refreshed with new items\n */\n React.useEffect(() => {\n setProducts((prev) => prev.filter((prod) => productIds.includes(prod.id)));\n }, [productIds, setProducts]);\n\n /**\n * this useEffect handles fetching of new products when page or productIds change\n * when page change => classic pagination\n * when productIds list change => this occurs on remove from wishlist, so fetch items to the end of the page\n */\n React.useEffect(() => {\n const endOfCurrentPage = (page + 1) * pageSize;\n const idsThatShouldBeLoaded = productIds.slice(0, endOfCurrentPage);\n\n const productIdsToFetch = subtractArrays(\n idsThatShouldBeLoaded,\n alreadyFetchedIds.current\n );\n\n if (productIdsToFetch.length > 0) {\n void fetchMore({\n variables: {\n ids: productIdsToFetch,\n },\n });\n }\n }, [productIds, pageSize, fetchMore, page, products]);\n\n React.useEffect(() => {\n trackWishlistProductListImpression(products, productIds, 'automatic');\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const setProductWishlisted = React.useCallback(\n (productId: string, wishlisted: boolean) => {\n setProducts((prev) =>\n prev.map((product) =>\n product.id === productId ? { ...product, wishlisted } : product\n )\n );\n },\n [setProducts]\n );\n\n return {\n products,\n fetchMore: nextPage,\n loading,\n error,\n hasMore: products.length < productIds.length,\n isEmpty: productIds.length === 0,\n setProductWishlisted,\n } as const;\n};\n","import * as React from 'react';\n\nimport { useQuery, useApolloClient } from '@apollo/client';\n\nimport {\n GetProductsByIdBatchedQuery,\n GetProductsByIdBatchedQueryVariables,\n} from '@notino/shared/definitions/types';\n\nimport getProductsByIdBatchedQuery from '@components/Universals/BatchVPProductQuery/queries/productsByIdBatched.graphql';\n\ninterface UseSsrWishlistProductsParams {\n productIds: string[];\n pageSize: number;\n}\n\nconst useProductsSsrQuery = (\n productIds: UseSsrWishlistProductsParams['productIds']\n) => {\n useQuery(getProductsByIdBatchedQuery, {\n ssr: true,\n skip: typeof window !== 'undefined',\n variables: {\n ids: productIds,\n },\n });\n};\n\nexport const useSsrWishlistProducts = ({\n productIds,\n pageSize,\n}: UseSsrWishlistProductsParams) => {\n const { cache } = useApolloClient();\n useProductsSsrQuery(productIds.slice(0, pageSize));\n\n return React.useState(() => {\n const ssrProducts = cache.readQuery<\n GetProductsByIdBatchedQuery,\n GetProductsByIdBatchedQueryVariables\n >({\n query: getProductsByIdBatchedQuery,\n variables: {\n ids: productIds.slice(0, pageSize),\n },\n })?.vpProductByIds;\n\n return (ssrProducts || []).filter(Boolean);\n });\n};\n","import * as React from 'react';\n\nimport {\n ApolloQueryResult,\n OperationVariables,\n QueryOptions,\n TypedDocumentNode,\n useApolloClient,\n ApolloError,\n} from '@apollo/client';\n\nexport type MyLazyQueryResult = Pick<\n ApolloQueryResult,\n 'error' | 'loading'\n>;\n\n// can't use useLazyQuery which would be much better due to https://github.com/apollographql/apollo-client/issues/9317\nexport default function useLazyQueryWorkaround<\n T,\n TVariables = OperationVariables\n>(\n query: TypedDocumentNode,\n onCompleted: (\n data: T,\n queryOptions: Omit, 'query'>\n ) => void\n): [\n (\n additionalOptions: Omit, 'query'>\n ) => Promise,\n MyLazyQueryResult\n] {\n const onCompletedRef = React.useRef(onCompleted);\n\n React.useEffect(() => {\n onCompletedRef.current = onCompleted;\n });\n\n const client = useApolloClient();\n const self = React.useRef>(undefined);\n\n const [result, setResult] = React.useState>({\n loading: false,\n });\n\n const execQuery = React.useCallback(\n async (additionalOptions: Omit, 'query'>) => {\n const current = {};\n self.current = current;\n try {\n setResult({\n loading: true,\n error: undefined,\n });\n const queryResult = await client.query({\n query,\n ...additionalOptions,\n });\n if (self.current !== current) {\n // query canceled\n return;\n }\n setResult({\n loading: false,\n error: queryResult.error,\n });\n\n onCompletedRef.current(queryResult.data, additionalOptions);\n } catch (error: unknown) {\n if (self.current !== current) {\n // query canceled\n return;\n }\n setResult({\n loading: false,\n error: error as ApolloError,\n });\n }\n },\n [client, query]\n );\n\n return [execQuery, result];\n}\n","import { GetProductsByIdBatchedQuery } from '@notino/shared/definitions/types';\n\nexport const findNullProductIds = (\n requestIds: string[],\n nonNullProducts: GetProductsByIdBatchedQuery['vpProductByIds']\n) => {\n const nonNullProductIds = nonNullProducts.map((x) => x.id);\n return requestIds.filter((id) => !nonNullProductIds.includes(id));\n};\n","import * as React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport { GetItemDataByIdQuery } from 'packages/shared/definitions/types';\n\nimport { ActionButton, ButtonModel } from '@notino/react-styleguide';\n\nimport messages from '@containers/ProductDetailContainer/messages';\nimport { useFeatureFlags } from '@context/featureFlags/FeatureFlagsProvider';\nimport { useAddToCartCloudTracking } from '@hooks/useAddToCardCloudTracking';\n\nimport { LinkSharer } from '../../components/LinkSharer';\nimport { GTM_WISHLIST_LIST_NAME } from '../../constants';\nimport { WishlistHeader } from '../../header';\nimport { Container, ButtonWrapper, Spacer } from '../../styled';\nimport AnimatedProductList from '../AnimatedProductList';\n\nimport {\n trackWishlistPageView,\n useTrackToCartAsync,\n useTrackToCartFailedAsync,\n} from './tracking';\nimport { useWishlistedProducts } from './useWishlistedProducts';\n\nexport interface IWishlistPagerProps {\n productIds: string[];\n pageSize: number;\n userId: string; // logged-in user\n owner?: string; // id of foreign shared wishlist. In this case productIds are from the shared wishlist and further sharing is disabled\n}\n\nexport const WishlistPager: React.FC = ({\n productIds,\n userId,\n pageSize,\n owner,\n}) => {\n const { spa_redirect_wishlist_to_pd } = useFeatureFlags();\n\n const {\n products,\n fetchMore,\n setProductWishlisted,\n loading,\n error,\n hasMore,\n isEmpty,\n } = useWishlistedProducts(productIds, !!owner, { pageSize });\n\n const trackAddToCartAsync = useTrackToCartAsync(\n productIds,\n GTM_WISHLIST_LIST_NAME\n );\n const addToCardCloudTracking = useAddToCartCloudTracking();\n const trackAddToCartFailedAsync = useTrackToCartFailedAsync(\n productIds,\n GTM_WISHLIST_LIST_NAME\n );\n\n const handleProductAdded = async (\n product: GetItemDataByIdQuery['vpProductById']\n ) => {\n await trackAddToCartAsync(product);\n\n addToCardCloudTracking({ quantity: 1, productCode: product.productCode });\n };\n\n return (\n \n \n\n {isEmpty || owner ? : }\n\n {!isEmpty && (\n \n )}\n\n {hasMore && (\n \n \n \n \n \n )}\n \n );\n};\n","import { useLocation } from 'react-router';\n\nexport const useWishlistOwnerId = (): string | null => {\n const { search } = useLocation();\n if (search) {\n return new URLSearchParams(search).get('id');\n }\n return null;\n};\n","import { useQuery } from '@apollo/client';\n\nimport {\n GetWishlistByLoggedUserOrOwnerQuery,\n GetWishlistByLoggedUserOrOwnerQueryVariables,\n} from '@notino/shared/definitions/types';\n\nimport { useWishlistOwnerId } from './hooks/useWishlistOwnerId';\nimport getWishlistByLoggedUserOrOwnerQuery from './queries/wishlistByLoggedUserOrOwner.graphql';\n\nexport const useWishlistForLoggedUserOrOwner = () => {\n const wishlistOwner = useWishlistOwnerId();\n\n const { data: loggedUserOrOwner, loading } = useQuery<\n GetWishlistByLoggedUserOrOwnerQuery,\n GetWishlistByLoggedUserOrOwnerQueryVariables\n >(getWishlistByLoggedUserOrOwnerQuery, {\n ssr: true,\n variables: {\n owner: wishlistOwner,\n },\n errorPolicy: 'all',\n });\n return {\n productIds: loggedUserOrOwner?.WishlistByLoggedUserOrOwner?.products ?? [],\n loading,\n owner: wishlistOwner,\n userId: loggedUserOrOwner?.user?.id,\n };\n};\n","import * as React from 'react';\n\nimport { useApolloClient, useQuery } from '@apollo/client';\n\nimport { DrawerContext, ModalContext } from '@notino/react-styleguide';\nimport {\n WishlistForCurrentUserQuery,\n WishlistForCurrentUserQueryVariables,\n} from '@notino/shared/definitions/types';\n\nimport { DrawerProvider } from '@components/BottomSheet/DrawerProvider';\n\nimport { WishlistPage } from './components/WishlistPage';\nimport { WishlistPager } from './components/WishlistPager';\nimport { trackWishlistPageView } from './components/WishlistPager/tracking';\nimport { WISHLIST_PAGE_SIZE } from './constants';\nimport { useWishlistOwnerId } from './hooks/useWishlistOwnerId';\nimport wishlistForCurrentUser from './queries/wishlistForCurrentUser.graphql';\nimport { createWishlistStore, WishlistContextProvider } from './store';\nimport { WishlistContainer } from './styled';\nimport { useWishlistForLoggedUserOrOwner } from './useWishlistForLoggedUserOrOwner';\n\nconst DeprecatedWishlist = () => {\n const { productIds, owner, userId } = useWishlistForLoggedUserOrOwner();\n return (\n \n \n \n \n \n \n \n );\n};\n\nconst NewWishlist = () => {\n const owner = useWishlistOwnerId();\n const { data } = useQuery<\n WishlistForCurrentUserQuery,\n WishlistForCurrentUserQueryVariables\n >(wishlistForCurrentUser, {\n errorPolicy: 'all',\n variables: {\n count: WISHLIST_PAGE_SIZE,\n },\n });\n\n if (data?.WishlistForCurrentUser) {\n const { listing, filtration } = data.WishlistForCurrentUser;\n return (\n x.webProductId)}\n products={listing.products.map((x) => x.product).filter(Boolean)}\n />\n );\n }\n\n return null;\n};\n\nconst NewWishlistInitialDataLoaded = (\n props: Parameters[0]\n) => {\n const [store] = React.useState(createWishlistStore(props, useApolloClient()));\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nconst WishList = () => {\n const owner = useWishlistOwnerId();\n\n // useLayoutEffect is used for tracking the page_view event to ensure the effect runs\n // before the children render, because their useEffect hooks might run after the render.\n React.useLayoutEffect(() => {\n trackWishlistPageView();\n }, []);\n\n if (owner) {\n return ;\n }\n\n return ;\n};\n\nexport default WishList;\n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"copyWishlist\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"owner\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"anonymousId\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"WishlistCopyWishlist\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"owner\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"owner\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"anonymousId\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"anonymousId\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":142}};\n doc.loc.source = {\"body\":\"mutation copyWishlist($owner: String, $anonymousId: String) {\\n WishlistCopyWishlist(owner: $owner, anonymousId: $anonymousId) {\\n id\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"copyWishlist\"] = oneQuery(doc, \"copyWishlist\");\n \n\ndoc.documentId = \"dc7590f08a510a1721962bd622500cdbd24f74b776d0ec580e0f41046156a468\"","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"WatchdogRegistered\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"catalogIds\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"ListType\",\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}}}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"watchdogRegistered\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"catalogIds\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"catalogIds\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"registeredEmails\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":124}};\n doc.loc.source = {\"body\":\"query WatchdogRegistered($catalogIds: [Int!]!) {\\n watchdogRegistered(catalogIds: $catalogIds) {\\n registeredEmails\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"WatchdogRegistered\"] = oneQuery(doc, \"WatchdogRegistered\");\n \n\ndoc.documentId = \"82cb882cf111f1492220bfe7ad80a284104036d9f8237adbc3f4050e4d4a8331\"","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"getWishlistByLoggedUserOrOwner\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"owner\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"WishlistByLoggedUserOrOwner\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"owner\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"owner\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"products\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"user\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":148}};\n doc.loc.source = {\"body\":\"query getWishlistByLoggedUserOrOwner($owner: String) {\\n WishlistByLoggedUserOrOwner(owner: $owner) {\\n products\\n id\\n }\\n user {\\n id\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"getWishlistByLoggedUserOrOwner\"] = oneQuery(doc, \"getWishlistByLoggedUserOrOwner\");\n \n\ndoc.documentId = \"2ca31e664d87716f9446e5dabbc93405a8e1b1d15aa388a4e5f29699bf29f791\"","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"WishlistForCurrentUser\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"navigationValues\"}},\"type\":{\"kind\":\"ListType\",\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"sortBy\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"WishlistSortBy\"}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"count\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"offset\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"WishlistForCurrentUser\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"navigationValues\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"navigationValues\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"sortBy\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"sortBy\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"count\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"count\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"offset\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"offset\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"listing\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sortByOptions\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sortBy\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"products\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"webProductId\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"product\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"fragmentVpProductByIdBodyModified\"},\"directives\":[]}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"totalProductCount\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hasMore\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"filtration\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"groupName\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"groupType\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"items\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"count\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"navigationValue\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":713}};\n doc.loc.source = {\"body\":\"#import \\\"../../../components/Universals/ProductItem/queries/fragVpProductById.graphql\\\"\\n\\nquery WishlistForCurrentUser(\\n $navigationValues: [Int!]\\n $sortBy: WishlistSortBy\\n $count: Int\\n $offset: Int\\n) {\\n WishlistForCurrentUser(\\n navigationValues: $navigationValues\\n sortBy: $sortBy\\n count: $count\\n offset: $offset\\n ) {\\n id\\n listing {\\n sortByOptions {\\n name\\n sortBy\\n }\\n products {\\n webProductId\\n product {\\n ...fragmentVpProductByIdBodyModified\\n }\\n }\\n totalProductCount\\n hasMore\\n }\\n filtration {\\n groupName\\n groupType\\n items {\\n name\\n count\\n navigationValue\\n }\\n }\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../../../components/Universals/ProductItem/queries/fragVpProductById.graphql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"WishlistForCurrentUser\"] = oneQuery(doc, \"WishlistForCurrentUser\");\n \n\ndoc.documentId = \"4f3eaf7fa39b57d9ece63cb8122d03642419eae94a248413d4f4c47cfea7d948\""],"names":["zipRegexes","pattern","mask","LOGIN_URL","trackWishlistProductListImpression","products","productIds","interaction","transformedProducts","map","product","ProductEventWither","withVpProduct","withDiscountPrices","attributes","shouldSendOnlyDiscountPrice","withAdditionalData","list_position","findIndex","id","String","build","dispatchTrackingEvent","event","_clear","product_lists","list_name","GTM_WISHLIST_LIST_NAME","sorting_type","trackWishlistPageView","page","title","path","window","location","pathname","unified_name","type","GTM_WISHLIST_PAGE_TYPE","subpage","undefined","useTrackToCartAsync","listName","shouldUseCatalogId","trackAddToCart","useGetMasterAddToCart","async","catalogMasterId","toString","useTrackToCartFailedAsync","track","client","useApolloClient","React","position","errorMessage","data","query","getMasterProductInfoQuery","variables","masterProduct","productDetailByCatalogMasterId","add","withPartialProduct","brand","__typename","cart_type","_snakeCase","CartType","quantity","error","status","useGetTrackMasterAddToCartFail","WISHLIST_PAGE_SIZE","defineMessages","yourProducts","sharedProducts","noProducts","notLogged","emptyGuide","productsCount","refreshButton","Context","createContext","WishlistContextProvider","Provider","useWishlistStore","selector","ctx","useContext","Error","useStore","store","ProductListHolder","styled","componentId","columns","xs","md","_ref","productItemProps","showAddToCartModal","canSpaRedirect","isLoading","disableAnimation","isSharedWishlist","onProductInView","transitions","useTransition","from","opacity","enter","leave","keys","item","config","duration","clamp","registeredEmails","setRegisteredEmails","useState","isLoggedIn","useUser","catalogIdsWithWatchdog","filter","showWatchdog","catalogId","alreadyFetchedIds","Object","Number","catalogIdsToFetch","includes","shouldSkipRequest","length","useQuery","watchdogRegisteredQuery","catalogIds","skip","ssr","onCompleted","prev","watchdogRegistered","useRegisteredWatchdog","style","_","index","hasRegisteredWatchdog","Boolean","Col","_extends","key","animated","InView","threshold","onChange","inView","ProductItem","showWishlistButton","useMasterUrl","Array","fill","ProductTilePlaceholder","OverflowFadeWrapper","leftOverflow","css","_ref2","rightOverflow","ScrollableWrapper","noScrollbarCss","Arrow","_ref3","_ref4","breakpoints","OverflowFade","children","deps","scrollableElRef","rest","containerRef","showLeftArrow","showRightArrow","scrollTo","useArrows","onClick","role","IconRegularChevronLeft","color","height","width","ref","assignRefs","IconRegularChevronRight","sorting","addedRecentlySortOption","filtrationAll","show","brandsSearchPlaceholder","FiltersSectionWrapper","theme","InnerWrapper","CategoriesWrapper","FilterChipsWrapper","Divider","isScrolled","hideOnDesktop","ChipCount","useGetSelectedFilterItems","filtration","x","selectedNavigationValues","groupType","find","items","navigationValue","Categories","formatMessage","useIntl","setSelectedNavigationValues","actions","getSelectedFilterItems","categories","f","WishlistFiltrationGroupType","label","name","initialCategories","categoriesWithAll","messages","selectedCategoryNavValue","val","some","cv","current","showArrowCalulationOffset","CategoriesSelection","spacesSizeBetweenLabels","activeCategoryId","onCategorySelect","navValue","v","DrawerTitleContainer","StyledDrawerTitle","DrawerIconWrapper","DrawerDragger","DrawerTitleWrapper","CloseIconButton","RefreshButton","DrawerTitle","titleIcon","CloseIconElement","IconRegularClose","onRefreshButtonClick","afterClose","closeDrawer","DrawerContext","FormattedMessage","MultiSelectWrapper","BrandsMultiSelectWrapper","FooterWrapper","FooterButtonWrapper","DrawerSearchWrapper","Letter","isFirst","useMultiSelectList","selectedItems","isChecked","checked","setState","concat","BrandsMultiSelectList","search","setSearch","normalizeStringAndLowerCase","groups","groupBy","isInteger","toUpperCase","SearchInput","value","searchIconRight","placeholder","letter","FilterItemCheckbox","count","FooterSelectedItems","hasItems","prevSelectedItems","usePrevious","useUpdateEffect","left","scrollWidth","behavior","FooterSelectedItemsWrapper","FooterSelectedItem","handleUnselect","MultiSelectList","FiltrationDrawerHandler","onClose","isBrand","selectedNavValues","openDrawer","initialSelectedItems","createStore","handleApplyFilter","initialSelectedValues","selectedValues","getState","addedValues","removedValues","groupName","footerContent","Button","buttonStyle","ButtonModel","initialPosition","showCloseIcon","showFade","isTitleBorderHidden","allowResize","hideScrollbar","StyledRadioButton","RadioButton","withConfig","desiredOrder","WishlistSortBy","SortByOptionsList","sortByOptions","selectedSortBy","setSelectedSortBy","sortedSortOptions","sort","a","b","indexOf","sortBy","o","disabled","SortingChip","sortActive","FilterChip","isActive","openSortingDrawer","secondaryIcon","onSecondaryIconClick","SUPPORTED_GROUP_TYPES","FiltersSection","wrapperRef","isPastThreshold","setIsPastThreshold","useEffect","handleScroll","getBoundingClientRect","top","addEventListener","removeEventListener","useElementScrollDistanceFromTopThreshold","totalProductCount","state","openedDrawerGroupType","setOpenedDrawerGroupType","i","Container","ProductsCount","sortMapping","Default","Cheapest","MostExpensive","BestSellers","Alphabetically","wishlistMessages","toggle","header","shareLabel","clipboard","clipboardFail","IconTextButton","CircleBorder","LinkSharerCircleBorder","ModalBody","H3","Heading","LinkLabel","LinkInput","Message","props","getSemanticColor","WishlistLink","hostUrl","anonymousId","isCopySuccessful","readOnly","IconRegularCheckmark","IconSolidInfo","Modal","htmlFor","useCopyWishlistId","toggleModal","ModalContext","getTimeFromInit","useTrackingContext","setIsCopySuccessful","copyWishlist","useMutation","copyWishlistMutation","handleOnCopy","success","serverWishlistId","WishlistCopyWishlist","wishlist","action","timing","getWindowOrigin","size","ModalModel","noBorders","StyledHeader","StyledHeaderText","StyledLoginInfoText","StyledEmptyInfo","ButtonWrapper","WishlistContainer","Spacer","isSmall","HeaderWrapper","HeaderTitle","EmptyWrapper","Empty","text","dangerouslySetInnerHTML","__html","IconRegularHeart","WishlistHeader","isShared","isEmpty","uuid","isSafariOnDesktop","test","navigator","userAgent","vendor","IconRegularShareIos","visibility","CopyToClipboard","onCopy","handleNativeShare","share","url","showMobileSharing","WishlistPage","spa_redirect_wishlist_to_pd","useFeatureFlags","hasMore","totalFilteredProductCount","loading","setProductWishlisted","fetchProducts","trackAddToCartAsync","addToCardCloudTracking","useAddToCartCloudTracking","trackAddToCartFailedAsync","trackItemView","useWishlistViewItemListTracking","storeProducts","trackProductsImpression","_sortBy","scrollY","list_id","trackProductsImpressionBulk","useFunctionInBulk","p","AnimatedProductList","GTMEventLabel","sendGTM","noPriceIfUnavailable","showBuyButton","onProductAdded","productCode","onProductAddFailed","onClosingCartModal","inSectionOfType","wishlistActionLocation","rootMargin","offset","LinkSharer","IconRegularShare","showLoginText","values","parts","href","useWishlistedProducts","pageSize","nextPage","prevPage","removeNullProducts","isEnabled","remove","removeFromWishlistMutation","nullIds","promises","productId","Promise","all","callApi","finally","publishUpdateWishlistCountEvent","useRemoveNullWishlistProducts","setProducts","cache","getProductsByIdBatchedQuery","ids","useProductsSsrQuery","slice","ssrProducts","readQuery","vpProductByIds","useSsrWishlistProducts","fetchMore","onCompletedRef","self","result","setResult","queryResult","additionalOptions","useLazyQueryWorkaround","response","variableIds","isArray","allNewProducts","nonNullProducts","dispatchProductsShownEvent","webId","section","findNullProductIds","requestIds","nonNullProductIds","prod","endOfCurrentPage","idsThatShouldBeLoaded","productIdsToFetch","subtractArrays","wishlisted","WishlistPager","userId","owner","ActionButton","buttonSize","useWishlistOwnerId","useLocation","URLSearchParams","get","DeprecatedWishlist","useWishlistForLoggedUserOrOwner","wishlistOwner","loggedUserOrOwner","getWishlistByLoggedUserOrOwnerQuery","errorPolicy","WishlistByLoggedUserOrOwner","user","DrawerProvider","NewWishlist","wishlistForCurrentUser","WishlistForCurrentUser","listing","NewWishlistInitialDataLoaded","webProductId","initParams","set","navigationValues","fetchPolicy","createWishlistStore","WishList","doc","collectFragmentReferences","node","refs","kind","selectionSet","selections","forEach","selection","variableDefinitions","def","definitions","loc","source","definitionRefs","findOperation","element","Set","module","exports","operationName","newDoc","hasOwnProperty","opRefs","allRefs","newRefs","refName","prevRefs","has","childRef","op","push","oneQuery","documentId","names"],"sourceRoot":""}