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,EAAgBU,KAC5C,MACMC,SADWb,EAAOE,IACVY,YAAYF,EAAW,YAC/BG,EAAQF,EAAGG,YAAYJ,GACvBO,QAAcJ,EAAMK,SAE1B,aADMP,EAAGK,KACFC,CAAK,EAiBD5K,EAAaT,MACxBO,EACA6J,EACAU,KAEA,MACMC,SADWb,EAAOE,IACVY,YAAYF,EAAW,aAC/BG,EAAQF,EAAGG,YAAYJ,SACvBG,EAAMM,IAAIhL,SACVwK,EAAGK,IAAI,EAGFzI,EAAa3C,MACxBO,EACA6J,EACAU,KAEA,MACMC,SADWb,EAAOE,IACVY,YAAYF,EAAW,aAC/BG,EAAQF,EAAGG,YAAYJ,SACvBG,EAAMO,OAAOjL,SACbwK,EAAGK,IAAI,EAGFtJ,EAAuB9B,MAClCyL,EACArB,EACAU,KAEA,MACMC,SADWb,EAAOE,IACVY,YAAYF,EAAW,aAC/BG,EAAQF,EAAGG,YAAYJ,GAEvBY,QAAiBT,EAAMK,SAC7B,IAAK,MAAM/K,KAAQmL,EACjB,GACGnL,EAAKY,SAAUL,EAAAA,EAAAA,GAAwBP,EAAKY,OAAOR,MAAQ8K,GAC5DlL,EAAKY,OAAOE,MAAMC,UAAYmK,GAC9BlL,EAAKY,OAAOI,QAAQD,UAAYmK,EAChC,OACMR,EAAMO,OAAOjL,EAAKI,IACxB,KACF,OAGIoK,EAAGK,IAAI,C,mDCtGVvS,EAAc,SAAdA,GAAc,OAAdA,EAAc,WAAdA,EAAc,YAAdA,EAAc,WAAdA,EAAc,YAAdA,EAAc,UAAdA,CAAc,EAAdA,GAAc,IAQnB,S","sources":["webpack://react-app/./components/Shared/src/components/atoms/Backdrop/Backdrop.tsx","webpack://react-app/./utility/helpers/removeExtensionFromPath.ts","webpack://react-app/./components/Shared/src/utility/hooks/useDevicePixelRatio.ts","webpack://react-app/./components/Shared/src/components/atoms/Image/Image.tsx","webpack://react-app/./components/Shared/src/utility/config/animations.ts","webpack://react-app/./components/Shared/src/components/atoms/Text/Text.tsx","webpack://react-app/./components/Shared/src/components/atoms/Modal/Portal.tsx","webpack://react-app/./components/Shared/src/utility/hooks/useModal.ts","webpack://react-app/./components/Shared/src/components/atoms/Drawer/Drawer.tsx","webpack://react-app/./state-management/WishlistStore.ts","webpack://react-app/./components/Shared/tailwind.config.js","webpack://react-app/./components/Shared/src/utility/hooks/useMediaQuery.ts","webpack://react-app/./components/Shared/src/utility/hooks/useBreakpoint.ts","webpack://react-app/./components/Shared/src/utility/format/parseNumberInString.ts","webpack://react-app/./components/Shared/src/utility/config/breakpoints.ts","webpack://react-app/./utility/hooks/useIndexDb.ts","webpack://react-app/./components/Shared/src/models/enums/BreakpointEnum.ts"],"sourcesContent":["import classNames from 'classnames';\nimport { motion } from 'motion/react';\nimport { MouseEventHandler, PropsWithChildren } from 'react';\n\ninterface Props {\n readonly className?: string;\n readonly onCloseCallback?: MouseEventHandler;\n}\n\nconst Backdrop = ({\n children,\n className,\n onCloseCallback,\n}: PropsWithChildren) => (\n \n {children}\n \n);\n\nexport default Backdrop;\n","const removeExtensionFromPath = (url: string) => {\n return url.replace(/\\.[^/.]+$/, '');\n};\n\nexport default removeExtensionFromPath;\n","import { useEffect, useState } from 'react';\n\nconst useDevicePixelRatio = (): number | undefined => {\n const [devicePixelRatio, setDevicePixelRatio] = useState();\n\n const updateDevicePixelRatio = (): void => {\n setDevicePixelRatio(window.devicePixelRatio);\n };\n\n useEffect(() => {\n updateDevicePixelRatio();\n\n window.addEventListener('resize', updateDevicePixelRatio);\n\n return () => {\n window.removeEventListener('resize', updateDevicePixelRatio);\n };\n }, []);\n\n return devicePixelRatio;\n};\n\nexport default useDevicePixelRatio;\n","import { IImage } from '@models/IImage';\nimport BreakpointEnum from '@models/enums/BreakpointEnum';\nimport breakpoints from '@utility/config/breakpoints';\nimport useBreakpoint from '@utility/hooks/useBreakpoint';\nimport useDevicePixelRatio from '@utility/hooks/useDevicePixelRatio';\nimport classNames from 'classnames';\nimport {\n PropsWithChildren,\n RefObject,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n} from 'react';\n\ninterface Props {\n readonly aspectRatio?: number;\n readonly classes?: string;\n readonly containerRef?: RefObject;\n readonly image: IImage;\n readonly imageClasses?: string;\n readonly lazyLoad?: boolean;\n readonly quality?: number;\n readonly sizes?: string;\n readonly height?: number;\n readonly width?: number;\n readonly onLoad?: () => void;\n}\n\nconst Image = ({\n aspectRatio, // width / height e.g. 0.5, 2 etc.\n children,\n classes,\n containerRef,\n image,\n imageClasses,\n lazyLoad = true,\n quality = 70,\n sizes = '',\n height,\n width,\n onLoad,\n}: PropsWithChildren) => {\n const devicePixelRatio = useDevicePixelRatio() ?? 1;\n const breakpoint = useBreakpoint() ?? BreakpointEnum.XLarge;\n const imgRef = useRef(null);\n\n const {\n url,\n altText,\n originalHeight,\n originalWidth,\n imageFocalPoint,\n srcSet: source,\n } = image ?? {};\n const fileExtension = url?.substring(url?.lastIndexOf('.') + 1);\n const hasParams = url?.includes('&'); // For images not coming from Opti\n const containerWidth = containerRef?.current?.clientWidth;\n\n const breakpointWidths = [\n 375 * devicePixelRatio,\n 752 * devicePixelRatio,\n 1024 * devicePixelRatio,\n 1408 * devicePixelRatio,\n 1600 * devicePixelRatio,\n ];\n\n const calculatedAspectRatio = useMemo(() => {\n if (aspectRatio) return aspectRatio;\n\n if (originalWidth && originalHeight) return originalWidth / originalHeight;\n }, [aspectRatio, originalWidth, originalHeight]);\n\n const generateUrlWithExtensions = useCallback(\n (width?: number) => {\n const qParam = quality ? `&quality=${quality}` : '';\n const fpParam = imageFocalPoint\n ? `&rxy=${imageFocalPoint.replace('|', ',')}`\n : '';\n\n if (!width) {\n return `${url}?format=webp$${fpParam}${qParam}`;\n }\n\n const wParam = `&width=${width}`;\n const h = aspectRatio ? width / aspectRatio : height;\n const hParam = h ? `&height=${h}` : '';\n\n return `${url}?format=webp${wParam}${hParam}${fpParam}${qParam}`;\n },\n [url, quality, calculatedAspectRatio, imageFocalPoint]\n );\n\n const srcSet = useMemo(() => {\n return source\n ? `${url} ${breakpointWidths[1]}w, ${source} ${breakpointWidths[2]}w`\n : breakpointWidths\n .map(\n (bpWidth, i) =>\n `${generateUrlWithExtensions(\n i < breakpointWidths.length - 1 ? bpWidth : 1920\n )} ${bpWidth}w`\n )\n .join(', ');\n }, [source, breakpointWidths, generateUrlWithExtensions]);\n\n useEffect(() => {\n // Fallback - sometimes onLoad does not trigger if the image is cached\n if (imgRef?.current?.complete && onLoad) onLoad();\n }, [imgRef]);\n\n if (!url || devicePixelRatio == null) return null;\n\n if (fileExtension === 'svg' || isValidBase64ImageSource(url)) {\n return (\n \n );\n }\n\n return (\n <>\n \n {!width && !containerWidth && !hasParams && (\n \n )}\n \n {children}\n \n \n );\n};\n\nconst isValidBase64ImageSource = (imageSrc: string) => {\n const regex = /^data:image\\/(png|jpg|jpeg|gif);base64,[A-Za-z0-9+/]+={0,2}$/;\n return regex.test(imageSrc);\n};\n\nexport default Image;\n","export const slideTransition = {\n duration: 0.8,\n ease: [0.74, 0, 0.19, 1.02],\n};\n\nexport const fadeTransition = {\n delay: 0.15,\n duration: 0.3,\n ease: 'easeIn',\n};\n\nexport const fadeInUp = {\n hidden: {\n opacity: 0,\n y: 50,\n transition: {\n duration: 1,\n ease: [0.22, 1, 0.36, 1],\n },\n },\n visible: {\n opacity: 1,\n y: 0,\n transition: {\n duration: 1,\n ease: [0.22, 1, 0.36, 1],\n type: 'spring',\n stiffness: 50,\n damping: 14,\n },\n },\n};\n\nexport const fadeInUpSlow = {\n hidden: {\n opacity: 0,\n y: 50,\n transition: {\n duration: 1,\n ease: [0.4, 0, 0.2, 1],\n },\n },\n visible: {\n opacity: 1,\n y: 0,\n transition: {\n duration: 1,\n ease: [0.4, 0, 0.2, 1],\n type: 'spring',\n stiffness: 50,\n damping: 14,\n },\n },\n};\n\nexport const fadeIn = {\n hidden: {\n opacity: 0,\n transition: {\n duration: 0.5,\n ease: 'easeInOut',\n },\n },\n visible: {\n opacity: 1,\n transition: {\n duration: 0.5,\n ease: 'easeInOut',\n },\n },\n};\n","import classNames from 'classnames';\n\nexport type TextVariant = keyof typeof variantClasses;\n\ninterface ExplicitProps {\n variant: TextVariant;\n className?: string;\n children?: string | string[] | TrustedHTML;\n}\n\n// This allows Text Component props to match the props of the element defined by 'as'\ntype PropsWithAs =\n Partial<\n ExplicitProps & {\n as: TElementType;\n }\n >;\n\ntype TextProps =\n PropsWithAs &\n Omit, keyof PropsWithAs>;\n\nconst __DEFAULT_ELEMENT__ = 'p';\n\nconst variantClasses = {\n 'hero-headline': 'tw-font-serif tw-text-4xl md:tw-text-7xl xl:tw-text-8xl',\n headline: 'tw-font-serif tw-text-3xl xl:tw-text-5xl',\n 'sub-headline': 'tw-font-sans tw-text-2xl', // alt name - heading-24\n // New Design System Variants\n 'ds-sub-headline': 'tw-font-serif tw-text-4xl md:tw-text-5xl xl:tw-text-7xl',\n 'ds-headline-2': 'tw-text-3xl md:tw-text-4xl xl:tw-text-5xl tw-font-serif',\n 'ds-headline-3': 'tw-text-xl lg:tw-text-2xl tw-font-sans tw-font-light',\n 'ds-headline-4': 'tw-font-sans tw-text-lg lg:tw-text-xl',\n 'ds-quote': 'tw-font-serif tw-text-2xl lg:tw-text-3xl',\n 'ds-paragraph': 'tw-font-sans tw-text-sm lg:tw-text-base',\n body: 'tw-font-sans tw-text-base', // alt name - body-16\n 'body-small': 'tw-font-sans tw-text-sm', // alt name - body-14\n // secondary / non-responsive variants\n 'heading-56': 'tw-font-serif tw-text-8xl',\n 'heading-48': 'tw-font-serif tw-text-7xl',\n 'heading-40': 'tw-font-serif tw-text-6xl',\n 'heading-36': 'tw-font-serif tw-text-5xl',\n 'heading-32': 'tw-font-serif tw-text-4xl',\n 'heading-28': 'tw-font-serif tw-text-3xl',\n 'heading-24-light': 'tw-font-sans tw-text-2xl tw-font-light',\n 'heading-21': 'tw-font-sans tw-text-xl',\n 'heading-21-light': 'tw-font-sans tw-text-xl tw-font-light',\n 'body-18': 'tw-font-sans tw-text-lg',\n 'body-18-semibold': 'tw-font-sans tw-text-lg tw-font-semibold',\n 'body-16-semibold': 'tw-font-sans tw-font-semibold',\n 'body-14-semibold': 'tw-font-sans tw-text-sm tw-font-semibold',\n 'mono-14': 'tw-font-mono tw-text-sm',\n 'mono-12': 'tw-font-mono tw-text-xs',\n 'mono-14-semibold': 'tw-font-mono tw-text-sm tw-font-semibold',\n 'mono-12-semibold': 'tw-font-mono tw-text-xs tw-font-semibold',\n 'label-12': 'tw-font-sans tw-text-xs',\n 'label-12-semibold': 'tw-font-sans tw-text-xs tw-font-semibold',\n};\n\nconst defaultTags: Record<\n string,\n 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'code' | 'label'\n> = {\n 'hero-headline': 'h1',\n headline: 'h2',\n 'sub-headline': 'h3',\n body: 'p',\n 'heading-56': 'h1',\n 'heading-48': 'h2',\n 'heading-40': 'h3',\n 'heading-36': 'h4',\n 'heading-32': 'h5',\n 'heading-28': 'h6',\n 'heading-24-light': 'h6',\n 'heading-21': 'h4',\n 'body-small': 'p',\n 'body-18': 'p',\n 'body-18-semibold': 'p',\n 'body-16-semibold': 'p',\n 'body-14-semibold': 'p',\n 'mono-14': 'code',\n 'mono-12': 'code',\n 'mono-14-semibold': 'code',\n 'mono-12-semibold': 'code',\n 'label-12': 'label',\n 'label-12-semibold': 'label',\n};\n\nfunction Text<\n TElementType extends React.ElementType = typeof __DEFAULT_ELEMENT__\n>({\n as,\n className,\n variant = 'body',\n children,\n ...props\n}: TextProps) {\n const combinedClassName = classNames(variantClasses[variant], className);\n const Tag = as ?? defaultTags[variant] ?? 'span';\n\n return (\n \n {children}\n \n );\n}\n\nexport default Text;\n","import { PropsWithChildren, useEffect, useMemo } from 'react';\nimport { createPortal } from 'react-dom';\n\ninterface Props {\n readonly mountId: string;\n}\n\nconst Portal = ({ mountId, children }: PropsWithChildren) => {\n const containerElement = useMemo(() => document.createElement('div'), []);\n\n useEffect(() => {\n document.getElementById(mountId)?.appendChild(containerElement);\n\n return () => {\n document.getElementById(mountId)?.removeChild(containerElement);\n };\n }, [mountId, containerElement]);\n\n return createPortal(children, containerElement);\n};\n\nexport default Portal;\n","import { RefObject, useEffect } from 'react';\nimport { usePreventScroll } from 'react-aria';\n\n// A useful hook to lock the scroll position of the rest of a page when a modal is open and provide a focus trap\nconst useModal = (\n isOpen: boolean,\n setIsOpen: (isOpen: boolean) => void,\n targetRef: RefObject\n) => {\n usePreventScroll({ isDisabled: !isOpen });\n\n useEffect(() => {\n if (typeof window === 'undefined' || !targetRef.current) {\n return;\n }\n\n // Retain which element activated the modal\n const activeElement = (document.activeElement ||\n document.body) as HTMLElement;\n const modalElement = targetRef.current;\n\n if (isOpen && modalElement) {\n const focusableElements = modalElement.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n );\n const firstElement = focusableElements[0] as HTMLElement;\n const lastElement = focusableElements[\n focusableElements.length - 1\n ] as HTMLElement;\n\n const handleTabKeyPress = (event: KeyboardEvent) => {\n if (event.key === 'Tab') {\n if (event.shiftKey && document.activeElement === firstElement) {\n event.preventDefault();\n lastElement?.focus();\n } else if (\n !event.shiftKey &&\n document.activeElement === lastElement\n ) {\n event.preventDefault();\n firstElement?.focus();\n }\n }\n };\n\n const handleEscapeKeyPress = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n setIsOpen(false);\n // Set focus back to the element which activated the modal\n activeElement?.focus();\n }\n };\n\n modalElement.addEventListener('keydown', handleTabKeyPress);\n modalElement.addEventListener('keydown', handleEscapeKeyPress);\n\n modalElement.focus();\n\n return () => {\n modalElement.removeEventListener('keydown', handleTabKeyPress);\n modalElement.removeEventListener('keydown', handleEscapeKeyPress);\n };\n }\n }, [isOpen, setIsOpen, targetRef]);\n};\n\nexport default useModal;\n","import Backdrop from '@atoms/Backdrop/Backdrop';\nimport Icon from '@atoms/Icon/Icon';\nimport Portal from '@atoms/Modal/Portal';\nimport { slideTransition } from '@utility/config/animations';\nimport useMediaQuery from '@utility/hooks/useMediaQuery';\nimport useModal from '@utility/hooks/useModal';\nimport classNames from 'classnames';\nimport { AnimatePresence, motion } from 'motion/react';\nimport { PropsWithChildren, useRef } from 'react';\nimport { twMerge } from 'tailwind-merge';\n\nexport interface IDrawer {\n readonly animateVerticallyOnMobile?: boolean;\n readonly closeLabel?: string;\n readonly isOpen: boolean;\n readonly isRtl?: boolean;\n readonly key?: string;\n readonly setIsOpen: (state: boolean) => void;\n readonly showAnimations?: boolean;\n readonly slideFromLeft?: boolean;\n}\n\nconst Drawer = ({\n animateVerticallyOnMobile = false,\n children,\n closeLabel = 'close',\n isOpen,\n isRtl = false,\n setIsOpen,\n showAnimations = true,\n slideFromLeft = false,\n}: PropsWithChildren) => {\n const targetRef = useRef(null);\n const contentRef = useRef(null);\n const isMobile = useMediaQuery(752);\n\n useModal(isOpen, setIsOpen, targetRef);\n\n const stopPropagation = (event: React.MouseEvent) =>\n event.target === contentRef.current\n ? setIsOpen(false)\n : event.stopPropagation();\n\n const useMobileAnimation = animateVerticallyOnMobile && isMobile;\n\n const slideIn = showAnimations\n ? {\n animate: {\n y: 0,\n x: 0,\n },\n exit: {\n y: useMobileAnimation ? '100%' : 0,\n x: !useMobileAnimation\n ? (isRtl && slideFromLeft) || (!isRtl && !slideFromLeft)\n ? '100%'\n : '-100%'\n : 0,\n },\n }\n : {\n animate: {},\n exit: {},\n };\n\n return (\n \n {isOpen && (\n \n <>\n setIsOpen(false)}\n />\n \n
\n
\n setIsOpen(false)}\n >\n \n \n
\n
\n {children}\n
\n
\n \n \n
\n )}\n
\n );\n};\n\nexport default Drawer;\n","import { Wishlist, WishlistEntry } from '@models/IWishlistCardSwitch';\nimport removeExtensionFromPath from '@utility/helpers/removeExtensionFromPath';\nimport {\n addItem,\n deleteItemByEntityId,\n getItem,\n removeItem,\n updateItem,\n} from '@utility/hooks/useIndexDb';\nimport { create } from 'zustand';\n\ninterface LikedItemsState {\n likedItems: WishlistEntry[];\n isLoading: boolean;\n fetchLikedItems: () => Promise;\n addLikedItem: (item: WishlistEntry) => Promise;\n updateLikedItem: (item: WishlistEntry) => Promise;\n removeLikedItem: (id: string, wishlistId?: number) => Promise;\n}\n\ninterface WishlistState {\n wishlists: Wishlist[];\n isLoading: boolean;\n fetchWishlists: () => Promise;\n addWishlist: (\n item: Omit & { id?: number },\n ) => Promise;\n updateWishlist: (item: Wishlist) => Promise;\n deleteWishlist: (id: number) => Promise;\n}\n\nexport const useLikedItemsStore = create((set) => ({\n likedItems: [],\n isLoading: true,\n fetchLikedItems: async () => {\n set({ isLoading: true });\n try {\n const likedItems = await getItem('jotun-deco', 'likes');\n set({ likedItems });\n } catch (error) {\n console.error('Error fetching liked items from IndexedDB:', error);\n } finally {\n set({ isLoading: false });\n }\n },\n addLikedItem: async (item: WishlistEntry) => {\n set({ isLoading: true });\n\n try {\n const likeItemId = await addItem(item, 'jotun-deco', 'likes');\n const likedItems = await getItem('jotun-deco', 'likes');\n set({ likedItems });\n return likeItemId;\n } catch (error) {\n console.error('Error adding liked item to IndexedDB:', error);\n throw error;\n } finally {\n set({ isLoading: false });\n }\n },\n updateLikedItem: async (item: WishlistEntry) => {\n set({ isLoading: true });\n\n try {\n await updateItem(item, 'jotun-deco', 'likes');\n const likedItems = await getItem('jotun-deco', 'likes');\n set({ likedItems });\n } catch (error) {\n console.error('Error updating liked item to IndexedDB:', error);\n throw error;\n } finally {\n set({ isLoading: false });\n }\n },\n removeLikedItem: async (id: string, wishlistId?: number) => {\n set({ isLoading: true });\n const formattedId = removeExtensionFromPath(id);\n\n try {\n const wishlists = await getItem('jotun-deco', 'lists');\n const allLikedItems = await getItem('jotun-deco', 'likes');\n\n const likedItem = allLikedItems.find((item: WishlistEntry) => {\n const itemId = removeExtensionFromPath(item.entity.id);\n\n const likedItemLink =\n item.entity.data?.linkUrl || item.entity.fields?.linkUrl;\n\n const formattedLikedItemLink = likedItemLink\n ? removeExtensionFromPath(likedItemLink)\n : null;\n\n return itemId === formattedId || formattedLikedItemLink === formattedId;\n });\n\n const singleList = wishlistId\n ? wishlists.find((wl) => wl.id === wishlistId)\n : null;\n\n // Remove from from all wishlists\n if (!singleList) {\n await deleteItemByEntityId(formattedId, 'jotun-deco', 'likes');\n\n wishlists.forEach(async (wishlist) => {\n if (wishlist.likes.includes(likedItem.id)) {\n wishlist.likes = wishlist.likes.filter(\n (likeId: number) => likeId !== likedItem.id,\n );\n await updateItem(wishlist, 'jotun-deco', 'lists');\n }\n });\n\n // Remove from single wishlist\n } else {\n // Check if the like is present in any other wishlist\n const isLikeInOtherLists = wishlists.some(\n (wishlist) =>\n wishlist.id !== singleList.id &&\n wishlist.likes.includes(likedItem.id),\n );\n\n // If the like is not in any other list, delete it\n if (!isLikeInOtherLists) {\n await deleteItemByEntityId(formattedId, 'jotun-deco', 'likes');\n }\n\n // Remove the like ID from the wishlist's likes array\n singleList.likes = singleList.likes.filter(\n (likeId: number) => likeId !== likedItem.id,\n );\n\n // Update the wishlist in IndexedDB\n await updateItem(singleList, 'jotun-deco', 'lists');\n\n // Fetch and set updated liked items\n const likedItems = await getItem('jotun-deco', 'likes');\n set({ likedItems });\n }\n } catch (error) {\n console.error(\n 'Error removing liked item from wishlist in IndexedDB:',\n error,\n );\n throw error;\n } finally {\n set({ isLoading: false });\n }\n },\n}));\n\nexport const useWishlistStore = create((set) => ({\n wishlists: [],\n isLoading: true,\n fetchWishlists: async () => {\n set({ isLoading: true });\n try {\n const wishlists = await getItem('jotun-deco', 'lists');\n set({ wishlists });\n } catch (error) {\n console.error('Error fetching wishlists from IndexedDB:', error);\n } finally {\n set({ isLoading: false });\n }\n },\n addWishlist: async (item: Omit & { id?: number }) => {\n set({ isLoading: true });\n try {\n const wishlistId = await addItem(item, 'jotun-deco', 'lists');\n const wishlists = await getItem('jotun-deco', 'lists');\n set({ wishlists });\n return wishlistId;\n } catch (error) {\n console.error('Error adding wishlist to IndexedDB:', error);\n throw error;\n } finally {\n set({ isLoading: false });\n }\n },\n updateWishlist: async (item: Wishlist) => {\n set({ isLoading: true });\n try {\n await updateItem(item, 'jotun-deco', 'lists');\n const wishlists = await getItem('jotun-deco', 'lists');\n set({ wishlists });\n } catch (error) {\n console.error('Error updating wishlist in IndexedDB:', error);\n throw error;\n } finally {\n set({ isLoading: false });\n }\n },\n deleteWishlist: async (id: number) => {\n set({ isLoading: true });\n try {\n // Retrieve the wishlist to delete\n const wishlists = await getItem('jotun-deco', 'lists');\n const wishlistToDelete = wishlists.find((wishlist) => wishlist.id === id);\n\n if (wishlistToDelete) {\n // Remove all associated likes\n const likedItemsStore = useLikedItemsStore.getState();\n\n for (const likeId of wishlistToDelete.likes) {\n const likeItem = likedItemsStore.likedItems.find(\n (item) => item.id === likeId,\n );\n\n if (likeItem) {\n await likedItemsStore.removeLikedItem(likeItem.entity.id, id);\n }\n }\n\n // Delete the wishlist\n await removeItem(id, 'jotun-deco', 'lists');\n\n // Update the wishlists state\n const updatedWishlists = await getItem('jotun-deco', 'lists');\n set({ wishlists: updatedWishlists });\n }\n } catch (error) {\n console.error('Error deleting wishlist from IndexedDB:', error);\n throw error;\n } finally {\n set({ isLoading: false });\n }\n },\n}));\n","/* eslint-env node */\n/* eslint-disable @typescript-eslint/no-var-requires */\n\n/** @type {import('tailwindcss').Config} */\n\nconst screens = {\n sm: '375px',\n md: '752px',\n lg: '1024px',\n xl: '1408px',\n xxl: '1600px',\n};\n\nmodule.exports = {\n darkMode: 'selector',\n prefix: 'tw-',\n content: [\n './.storybook/**/*.{js,jsx,mdx,ts,tsx}',\n './src/components/**/*.{js,jsx,mdx,ts,tsx}',\n ],\n theme: {\n screens,\n listStyleType: {\n none: 'none',\n disc: 'disc',\n decimal: 'decimal',\n square: 'square',\n },\n container: {\n screens,\n center: true,\n padding: {\n DEFAULT: '16px',\n sm: '16px',\n md: '32px',\n lg: '48px',\n xl: '48px',\n '2xl': '48px',\n },\n },\n fontFamily: {\n sans: '\"Noto Sans\", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"',\n serif:\n '\"Playfair Display\",ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif',\n mono: '\"Noto Sans Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace',\n icon: 'icomoon',\n },\n fontSize: {\n xs: ['0.75rem', '1rem'],\n sm: ['0.875rem', '1.25rem'],\n base: ['1rem', '1.5rem'],\n lg: ['1.125rem', '1.625rem'],\n xl: ['1.3125rem', '1.75rem'],\n '2xl': ['1.5rem', '2rem'],\n '3xl': ['1.75rem', '2.25rem'],\n '4xl': ['2rem', '2.5rem'],\n '5xl': ['2.25rem', '2.75rem'],\n '6xl': ['2.5rem', '3rem'],\n '7xl': ['3rem', '3.5rem'],\n '8xl': ['3.5rem', '4rem'],\n },\n lineHeight: {\n xs: '1rem',\n sm: '1.25rem',\n base: '1.5rem',\n lg: '1.625rem',\n xl: '1.75rem',\n '2xl': '2rem',\n '3xl': '2.25rem',\n '4xl': '2.5rem',\n '5xl': '2.75rem',\n '6xl': '3rem',\n '7xl': '3.5rem',\n '8xl': '4rem',\n },\n fontWeight: {\n light: '300',\n normal: '400',\n semibold: '600',\n },\n colors: {\n blue: {\n DEFAULT: '#031E45',\n },\n yellow: {\n DEFAULT: '#F0AB00',\n hover: '#F1B32D',\n active: '#EDBE46',\n disabled: '#FBE6B3',\n },\n red: {\n DEFAULT: '#D52B1E',\n hover: '#E11E0F',\n active: '#EC0E00',\n disabled: '#F2BFBC',\n },\n green: {\n DEFAULT: '#329E36',\n },\n grey: {\n 100: '#202020',\n 90: '#333333',\n 80: '#4D4D4D',\n 70: '#666666',\n 60: '#808080',\n 50: '#999999',\n 40: '#B3B3B3',\n 30: '#CCCCCC',\n 20: '#E6E6E6',\n 10: '#F7F7F7',\n },\n white: {\n DEFAULT: '#FFFFFF',\n },\n black: {\n DEFAULT: '#202020',\n },\n transparent: 'transparent',\n background: {\n amber: '#AF8A76', // light\n amberDark: '#806A62', // dark\n beige: '#E9D8B8', // light\n beigeDark: '#A98259', // light\n brownGray: '#79736D', // dark\n brownGrey: '#79736D', // dark\n coral: '#DBC4B7', // light\n coralDark: '#985F56', // dark\n darkGrey: '#E6E6E6', // light\n gBSGreen: '#276D00', // dark\n gBSHarpGreen: '#E5EFEA', // light\n gBSLightGreen: '#478326', // dark\n gBSPalmGreen: '#012317', // dark\n gBSSummerGreen: '#C4D0B0', // light\n graphite: '#70666C', //dark\n jotunBlue: '#031E45', // dark\n jotunYellow: '#F0AB00', // light\n lightBlue: '#E6E9F0', // light\n lightGreen: '#E6F0EB', // light\n lightgrey: '#F7F7F7', // light\n lightGrey: '#F7F7F7', // light\n oceanDark: '#19262C', // dark\n olive: '#C9D0C5', // light\n oliveDark: '#646556', // dark\n pearl: '#F3F4ED', // light\n sand: '#E7DFCD', // light\n sandDark: '#CEC1B1', // light\n slate: '#A5BCC3', // light\n slateDark: '#4E616C', // dark\n white: '#FFFFFF', // light\n },\n },\n extend: {\n fill: {\n current: 'currentColor',\n },\n stroke: {\n current: 'currentColor',\n },\n transitionTimingFunction: {\n 'in-out-quart': 'cubic-bezier(0.76, 0, 0.24, 1)',\n },\n borderRadius: {\n DEFAULT: '4px',\n md: '10px',\n },\n borderWidth: {\n 1: '1px',\n },\n spacing: {\n '4xs': '0.125rem', // 2px\n '3xs': '0.25rem', // 4px\n xxs: '0.5rem', // 8px\n xs: '1rem', // 16px\n sm: '1.5rem', // 24px\n md: '2rem', // 32px\n lg: '2.5rem', // 40px\n xl: '3rem', // 48px\n '2xl': '4rem', // 64px\n '3xl': '5rem', // 80px\n '4xl': '6rem', // 96px\n '5xl': '7.5rem', // 120px\n buttonY: '0.875rem', // 14px\n },\n zIndex: {\n max: '999',\n 100: '100',\n 90: '90',\n 80: '80',\n 70: '70',\n 60: '60',\n },\n },\n },\n plugins: [require('@tailwindcss/container-queries')],\n};\n","import { useCallback, useEffect, useState } from 'react';\n\nconst useMediaQuery = (minWidth: number) => {\n // Setting a default state, leaving it undefined is essentially falsey anyway\n const [isSmallerThan, setIsSmallerThan] = useState(false);\n\n const handler = useCallback(() => {\n const isDesiredWidth = window.innerWidth < minWidth;\n setIsSmallerThan(isDesiredWidth);\n }, [minWidth]);\n\n useEffect(() => {\n window.addEventListener('resize', handler);\n handler();\n\n return () => {\n window.removeEventListener('resize', handler);\n };\n }, [handler]);\n\n return isSmallerThan;\n};\n\nexport default useMediaQuery;\n","import BreakpointEnum from '@models/enums/BreakpointEnum';\nimport Breakpoint from '@models/helpers/Breakpoint';\nimport breakpoints from '@utility/config/breakpoints';\nimport { useCallback, useEffect, useState } from 'react';\n\nconst getCurrentBreakpoint = (): Breakpoint => {\n const width = window.innerWidth;\n let device;\n\n if (width < breakpoints.md) {\n device = BreakpointEnum.Small;\n } else if (width < breakpoints.lg) {\n device = BreakpointEnum.Medium;\n } else if (width < breakpoints.xl) {\n device = BreakpointEnum.Large;\n } else if (width < breakpoints.xxl) {\n device = BreakpointEnum.XLarge;\n } else device = BreakpointEnum.Max;\n\n return device;\n};\n\nconst useBreakpoint = (): Breakpoint | undefined => {\n const [screen, setScreen] = useState();\n\n const resizeHandler = useCallback(() => {\n setScreen(getCurrentBreakpoint());\n }, []);\n\n useEffect(() => {\n window.addEventListener('resize', resizeHandler);\n setScreen(getCurrentBreakpoint());\n\n return () => {\n window.removeEventListener('resize', resizeHandler);\n };\n }, [resizeHandler]);\n\n return screen;\n};\n\nexport default useBreakpoint;\n","// Will parse a pixel string to a number e.g. '762px' => 762\n\nconst parseNumberInString = (pixelValue: string) => {\n const match = pixelValue.match(/\\d+/);\n\n if (match) {\n return parseInt(match[0], 10);\n }\n\n return 0;\n};\n\nexport default parseNumberInString;\n","import BreakpointEnum from '@models/enums/BreakpointEnum';\nimport Breakpoint from '@models/helpers/Breakpoint';\nimport parseNumberInString from '@utility/format/parseNumberInString';\nimport resolveConfig from 'tailwindcss/resolveConfig';\nimport tailwindConfig from '../../../tailwind.config';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst fullConfig = resolveConfig(tailwindConfig as any);\n\nconst { sm, md, lg, xl, xxl } = fullConfig.theme.screens;\n\nconst breakpoints = {\n sm: parseNumberInString(sm),\n md: parseNumberInString(md),\n lg: parseNumberInString(lg),\n xl: parseNumberInString(xl),\n xxl: parseNumberInString(xxl),\n};\n\nexport default breakpoints;\n\nconst breakpointArray: Breakpoint[] = Object.values(BreakpointEnum);\n\nexport const breakpointsBelow = (breakpoint: Breakpoint) => {\n const upperIndex = breakpointArray.indexOf(breakpoint);\n return breakpointArray.slice(0, upperIndex);\n};\n\nexport const breakpointsAbove = (breakpoint: Breakpoint) => {\n const lowerIndex = breakpointArray.indexOf(breakpoint) + 1;\n return breakpointArray.slice(lowerIndex);\n};\n","import removeExtensionFromPath from '@utility/helpers/removeExtensionFromPath';\nimport { openDB } from 'idb';\n\nexport const initDB = async (dbName: string) => {\n return openDB(dbName, 20, {\n upgrade(db) {\n if (!db.objectStoreNames.contains('lists')) {\n const listsStore = db.createObjectStore('lists', {\n keyPath: 'id',\n autoIncrement: true,\n });\n listsStore.createIndex('name', 'name', { unique: false });\n }\n if (!db.objectStoreNames.contains('likes')) {\n const likesStore = db.createObjectStore('likes', {\n keyPath: 'id',\n autoIncrement: true,\n });\n likesStore.createIndex('name', 'name', { unique: false });\n }\n },\n });\n};\n\n// Rest of your functions remain the same, but use the common initDB function\nexport const addItem = async (item: any, dbName: string, storeName: string) => {\n const db = await initDB(dbName);\n const tx = db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n const id = await store.add(item);\n await tx.done;\n return id;\n};\n\nexport const getItem = async (dbName: string, storeName: string) => {\n const db = await initDB(dbName);\n const tx = db.transaction(storeName, 'readonly');\n const store = tx.objectStore(storeName);\n const items = await store.getAll();\n await tx.done;\n return items;\n};\n\nexport const getObjectByName = async (\n name: string,\n dbName: string,\n storeName: string,\n) => {\n const db = await initDB(dbName);\n const tx = db.transaction(storeName, 'readonly');\n const store = tx.objectStore(storeName);\n const index = store.index('name');\n const result = await index.get(name);\n await tx.done;\n return result;\n};\n\nexport const updateItem = async (\n item: any,\n dbName: string,\n storeName: string,\n) => {\n const db = await initDB(dbName);\n const tx = db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n await store.put(item);\n await tx.done;\n};\n\nexport const removeItem = async (\n item: any,\n dbName: string,\n storeName: string,\n) => {\n const db = await initDB(dbName);\n const tx = db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n await store.delete(item);\n await tx.done;\n};\n\nexport const deleteItemByEntityId = async (\n entityId: string,\n dbName: string,\n storeName: string,\n) => {\n const db = await initDB(dbName);\n const tx = db.transaction(storeName, 'readwrite');\n const store = tx.objectStore(storeName);\n\n const allItems = await store.getAll();\n for (const item of allItems) {\n if (\n (item.entity && removeExtensionFromPath(item.entity.id) === entityId) ||\n item.entity.data?.linkUrl === entityId ||\n item.entity.fields?.linkUrl === entityId\n ) {\n await store.delete(item.id);\n break;\n }\n }\n\n await tx.done;\n};\n","enum BreakpointEnum {\n Small = 'sm',\n Medium = 'md',\n Large = 'lg',\n XLarge = 'xl',\n Max = 'xxl',\n}\n\nexport default BreakpointEnum;\n"],"names":["_ref","children","className","onCloseCallback","React","createElement","motion","div","animate","opacity","exit","initial","transition","ease","duration","key","role","classNames","onClick","url","replace","useDevicePixelRatio","devicePixelRatio","setDevicePixelRatio","useState","updateDevicePixelRatio","window","useEffect","addEventListener","removeEventListener","isValidBase64ImageSource","imageSrc","test","aspectRatio","classes","containerRef","image","imageClasses","lazyLoad","quality","sizes","height","width","onLoad","breakpoint","useBreakpoint","BreakpointEnum","XLarge","imgRef","useRef","altText","originalHeight","originalWidth","imageFocalPoint","srcSet","source","fileExtension","substring","lastIndexOf","hasParams","includes","containerWidth","current","clientWidth","breakpointWidths","calculatedAspectRatio","useMemo","generateUrlWithExtensions","useCallback","qParam","fpParam","h","map","bpWidth","i","length","join","complete","src","alt","draggable","Fragment","type","ref","style","loading","fetchPriority","breakpoints","slideTransition","fadeInUp","hidden","y","visible","stiffness","damping","fadeInUpSlow","fadeIn","variantClasses","headline","body","defaultTags","as","variant","props","combinedClassName","Tag","_extends","mountId","containerElement","document","getElementById","appendChild","removeChild","createPortal","useModal","isOpen","setIsOpen","targetRef","usePreventScroll","isDisabled","activeElement","modalElement","focusableElements","querySelectorAll","firstElement","lastElement","handleTabKeyPress","event","shiftKey","preventDefault","focus","handleEscapeKeyPress","animateVerticallyOnMobile","closeLabel","isRtl","showAnimations","slideFromLeft","contentRef","isMobile","useMediaQuery","useMobileAnimation","slideIn","x","AnimatePresence","Portal","Backdrop","aside","variants","twMerge","tabIndex","Icon","name","size","target","stopPropagation","useLikedItemsStore","create","set","likedItems","isLoading","fetchLikedItems","async","getItem","error","console","addLikedItem","likeItemId","addItem","item","updateLikedItem","updateItem","removeLikedItem","id","wishlistId","formattedId","removeExtensionFromPath","wishlists","likedItem","find","itemId","entity","likedItemLink","data","linkUrl","fields","formattedLikedItemLink","singleList","wl","some","wishlist","likes","deleteItemByEntityId","filter","likeId","forEach","useWishlistStore","fetchWishlists","addWishlist","updateWishlist","deleteWishlist","wishlistToDelete","likedItemsStore","getState","likeItem","removeItem","updatedWishlists","screens","sm","md","lg","xl","xxl","module","exports","darkMode","prefix","content","theme","listStyleType","none","disc","decimal","square","container","center","padding","DEFAULT","fontFamily","sans","serif","mono","icon","fontSize","xs","base","lineHeight","fontWeight","light","normal","semibold","colors","blue","yellow","hover","active","disabled","red","green","grey","white","black","transparent","background","amber","amberDark","beige","beigeDark","brownGray","brownGrey","coral","coralDark","darkGrey","gBSGreen","gBSHarpGreen","gBSLightGreen","gBSPalmGreen","gBSSummerGreen","graphite","jotunBlue","jotunYellow","lightBlue","lightGreen","lightgrey","lightGrey","oceanDark","olive","oliveDark","pearl","sand","sandDark","slate","slateDark","extend","fill","stroke","transitionTimingFunction","borderRadius","borderWidth","spacing","xxs","buttonY","zIndex","max","plugins","minWidth","isSmallerThan","setIsSmallerThan","handler","isDesiredWidth","innerWidth","getCurrentBreakpoint","device","Small","Medium","Large","Max","screen","setScreen","resizeHandler","pixelValue","match","parseInt","fullConfig","resolveConfig","tailwindConfig","parseNumberInString","breakpointArray","Object","values","breakpointsBelow","upperIndex","indexOf","slice","initDB","openDB","dbName","upgrade","db","objectStoreNames","contains","createObjectStore","keyPath","autoIncrement","createIndex","unique","storeName","tx","transaction","store","objectStore","add","done","items","getAll","put","delete","entityId","allItems"],"sourceRoot":""}