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cAAeA,EACfH,WAAYA,EAAWW,UAEvBW,EAAAA,EAAAA,KAACkL,GAAW,eAOzB,E,WC7CYiC,GAAoB,SAAHjQ,GAOxB,IANJuB,EAAevB,EAAfuB,gBACAG,EAAU1B,EAAV0B,WACAT,EAAiCjB,EAAjCiB,kCACAY,EAAM7B,EAAN6B,OACAF,EAAa3B,EAAb2B,cACAC,EAAY5B,EAAZ4B,aAEAsO,GAA8BC,EAAAA,EAAAA,KAAtB3O,EAAU0O,EAAV1O,WAAYM,EAAKoO,EAALpO,MAEpB,OAAKA,GAKHgB,EAAAA,EAAAA,KAACkM,GAAiC,CAChCzN,gBAAiBA,EACjBG,WAAYA,EACZT,kCAAmCA,EACnCY,OAAQA,EACRC,MAAOA,EACPI,QAASkO,GAAAA,GACTzO,cAAeA,EACfH,WAAYA,EACZI,aAAcA,IAbT,IAgBX,E,ykBCxBOI,eAAeqO,GAAOC,GAC3B,IAAAC,EAAwBD,EAAYE,QAA5BC,OAAAA,OAAM,IAAAF,EAAG,GAAEA,EACbG,GAAYC,EAAAA,EAAAA,GAA6BF,GACvCjP,EAAoCkP,EAApClP,WAAYoP,EAAwBF,EAAxBE,YAAwBF,EAAX7O,OAEjC,IAAK+O,EACH,MAAM,IAAIC,MAAM,0BAclBC,EAAAA,EAAAA,GAAWR,GAAaD,QACtBvN,EAAAA,EAAAA,KAACwM,EAAAA,cAAa,CAAAnN,UACZW,EAAAA,EAAAA,KAACiO,EAAAA,EAAsB,CACrBvP,WAAYA,EACZwP,aAAa,GAAE7O,UAEfW,EAAAA,EAAAA,KAACmO,EAAAA,EAAa,CACZC,qBAAmB,EACnBC,SAAUC,GAAAA,GAAkBjP,UAE5BW,EAAAA,EAAAA,KAACmN,GAAG3H,GAAA,GAAKoI,UAKnB,C","sources":["webpack://oribackinstocknotificationspa/../../src/index.ts","webpack://oribackinstocknotificationspa/../../../../src/components/NotifyCumulus/styles.ts","webpack://oribackinstocknotificationspa/../../../src/queries/subscribeToBackInStockMutation.ts","webpack://oribackinstocknotificationspa/../../../src/contexts/AppContext.tsx","webpack://oribackinstocknotificationspa/../../../src/hooks/useAppContext.ts","webpack://oribackinstocknotificationspa/../../../src/hooks/useTranslations.ts","webpack://oribackinstocknotificationspa/../../../../src/models/graphql-types/graphql.ts","webpack://oribackinstocknotificationspa/../../../src/hooks/useUserData.ts","webpack://oribackinstocknotificationspa/../../../src/utils/onUserDataFetchSuccess.ts","webpack://oribackinstocknotificationspa/../../../src/api/getUserData.ts","webpack://oribackinstocknotificationspa/../../../../src/components/Loading/styles.ts","webpack://oribackinstocknotificationspa/../../../../src/components/Loading/Loading.tsx","webpack://oribackinstocknotificationspa/../../../../src/components/NotifyForm/styles.ts","webpack://oribackinstocknotificationspa/../../../../src/components/NotifyForm/NotifyForm.tsx","webpack://oribackinstocknotificationspa/../../../../src/components/NotifyForm/constants.ts","webpack://oribackinstocknotificationspa/../../../../src/components/NotifyType/styles.ts","webpack://oribackinstocknotificationspa/../../../../src/components/NotifyType/NotifyType.tsx","webpack://oribackinstocknotificationspa/../../../../src/components/NotifyType/constants.ts","webpack://oribackinstocknotificationspa/../../../../src/components/PopupHeader/styles.ts","webpack://oribackinstocknotificationspa/../../../../src/components/PopupHeader/PopupHeader.tsx","webpack://oribackinstocknotificationspa/../../../../src/components/Thanks/styles.ts","webpack://oribackinstocknotificationspa/../../../../src/components/RequestFailed/styles.ts","webpack://oribackinstocknotificationspa/../../../../src/components/RequestFailed/RequestFailed.tsx","webpack://oribackinstocknotificationspa/../../../../src/components/RequestFailed/constants.ts","webpack://oribackinstocknotificationspa/../../../src/models/TranslationKey.ts","webpack://oribackinstocknotificationspa/../../../../src/components/Thanks/Thanks.tsx","webpack://oribackinstocknotificationspa/../../../../src/components/Thanks/constants.ts","webpack://oribackinstocknotificationspa/../../../../src/components/NotifyCumulus/NotifyCumulus.tsx","webpack://oribackinstocknotificationspa/../../../../src/components/NotifyPopup/NotifyPopup.tsx","webpack://oribackinstocknotificationspa/../../../src/constants/app.ts","webpack://oribackinstocknotificationspa/../../../src/constants/defaultTranslations.ts","webpack://oribackinstocknotificationspa/../../../../src/containers/BackInStockNotificationController/BackInStockNotificationController.tsx","webpack://oribackinstocknotificationspa/./src/App.tsx","webpack://oribackinstocknotificationspa/./src/appRender.tsx"],"sourcesContent":["type EventName = 'open-back-in-stock-notification-dialog';\n\nexport const Name: EventName = 'open-back-in-stock-notification-dialog';\nexport const ToggleFavorite: EventName = Name;\n\nexport interface Data {\n code: string;\n}\n\nexport interface Event extends CustomEvent {\n type: EventName;\n}\n\nexport default Event;\n","import { styled } from '@ori-ui/mui';\n\nexport const Root = styled('div')(({ theme }) => ({\n height: 300,\n overflow: 'hidden',\n [theme.breakpoints.up('sm')]: {\n boxSizing: 'border-box',\n padding: theme.spacing(0, 2),\n width: 350,\n },\n}));\n","import { gql } from '@ori/fetching';\n\nexport const subscribeToBackInStockNotification = gql`\n mutation SubscribeToBackInStock($input: BackInStockNotificationSubscriptionInput!) {\n backInStockNotificationSubscription(input: $input)\n }\n`;\n","import { NOT_LOGGED_IN_USER_ID } from '@ori/auth';\nimport { fetchGraphql, getHeaders } from '@ori/fetching';\nimport type { FC, PropsWithChildren } from 'react';\nimport React, { createContext, useCallback, useMemo } from 'react';\n\nimport type { ContextValues } from './types';\nimport type {\n BackInStockNotificationSubscriptionInput,\n SubscribeToBackInStockMutation,\n SubscribeToBackInStockMutationVariables,\n} from '../models';\nimport { subscribeToBackInStockNotification } from '../queries';\n\n/* istanbul ignore next */\nconst defaultSubscribe = async () => ({});\n\nexport const AppContext = createContext({\n notifyMeSubscriptionConfiguration: {\n IsCumulusMarket: false,\n IsEditionEnabled: false,\n IsSmsSubscriptionEnabled: false,\n MarketingApprovalWarningText: '',\n ShowMarketingApprovalWarning: false,\n },\n currentLanguage: '',\n customerId: NOT_LOGGED_IN_USER_ID,\n graphqlUrl: '',\n onlineBaseUrl: '',\n staticApiUrl: '',\n tenant: '',\n token: '',\n subscribe: defaultSubscribe,\n});\n\nexport const AppContextProvider: FC>> = ({\n currentLanguage,\n graphqlUrl,\n notifyMeSubscriptionConfiguration,\n tenant,\n token,\n appName,\n children,\n customerId,\n onlineBaseUrl,\n staticApiUrl,\n}) => {\n const subscribe = useCallback(\n async (input: BackInStockNotificationSubscriptionInput) =>\n fetchGraphql({\n query: subscribeToBackInStockNotification,\n url: graphqlUrl,\n headers: getHeaders({\n customerId,\n language: currentLanguage,\n sourceAppName: appName,\n tenant,\n token,\n }),\n variables: {\n input,\n },\n }),\n [appName, currentLanguage, customerId, graphqlUrl, tenant, token],\n );\n\n return (\n ({\n currentLanguage,\n graphqlUrl,\n notifyMeSubscriptionConfiguration,\n tenant,\n token,\n appName,\n children,\n customerId,\n onlineBaseUrl,\n staticApiUrl,\n subscribe,\n }),\n [\n appName,\n children,\n currentLanguage,\n customerId,\n graphqlUrl,\n notifyMeSubscriptionConfiguration,\n onlineBaseUrl,\n staticApiUrl,\n subscribe,\n tenant,\n token,\n ],\n )}\n >\n {children}\n \n );\n};\n","import { useContext } from 'react';\n\nimport { AppContext } from '../contexts';\n\nexport const useAppContext = () => useContext(AppContext);\n","/* istanbul ignore file */\n/**\n * DO NOT EDIT!\n * This file was autogenerated by npm script `localizations-codegen`.\n * Changes may cause incorrect behavior and will be lost when the file is regenerated.\n *\n * Run `npx localizations-codegen` to regenerate.\n */\nimport { useTranslationsFromNamespace, type UseTranslationsFromNamespaceResult } from '@ori/i18n';\n\nimport type { DefaultTranslations } from '../constants/defaultTranslations';\n\n/**\n * A hook for accessing translations within a specific namespace along with a formatting function.\n *\n * @returns The translations within the specified namespace and a formatting function.\n */\nexport const useTranslations: () => UseTranslationsFromNamespaceResult = () =>\n useTranslationsFromNamespace();\n","/* eslint-disable @typescript-eslint/consistent-type-definitions, id-denylist, @typescript-eslint/no-unused-vars -- generated type definition */\n\n/**\n * DO NOT EDIT!\n * This file was autogenerated by graphql-codegen.\n * Changes may cause incorrect behavior and will be lost when the code is regenerated.\n *\n * Run `npm run codegen` to regenerate.\n */\n\nexport type Maybe = T | null;\nexport type InputMaybe = Maybe;\nexport type Exact = { [K in keyof T]: T[K] };\nexport type MakeOptional = Omit & { [SubKey in K]?: Maybe };\nexport type MakeMaybe = Omit & { [SubKey in K]: Maybe };\nexport type MakeEmpty = { [_ in K]?: never };\nexport type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string };\n String: { input: string; output: string };\n Boolean: { input: boolean; output: boolean };\n Int: { input: number; output: number };\n Float: { input: number; output: number };\n Date: { input: string; output: string };\n JSON: { input: unknown; output: unknown };\n Void: { input: unknown; output: unknown };\n};\n\n/** Enum allowed search results */\nexport enum AddressMetadataAllowedSearchResults {\n Area = 'Area',\n City = 'City',\n Country = 'Country',\n District = 'District',\n Locality = 'Locality',\n Market = 'Market',\n Province = 'Province',\n Region = 'Region',\n Street = 'Street',\n ZipCode = 'ZipCode',\n}\n\n/** Enum address type */\nexport enum AddressType {\n Channel = 'Channel',\n Delivery = 'Delivery',\n Foreign = 'Foreign',\n Home = 'Home',\n Kyc = 'Kyc',\n Other = 'Other',\n}\n\nexport enum ArticleType {\n /** Articles from Beauty Edit section */\n BeautyEdit = 'BeautyEdit',\n /** Articles related to products */\n RelatedToProduct = 'RelatedToProduct',\n /** Default value - not for use with API. Exists to detect errors in parsing values */\n Undefined = 'Undefined',\n}\n\n/** Channel to identify how we should notify user */\nexport enum BackInStockNotificationChannel {\n /** We will notify customer on provided email */\n Email = 'Email',\n /** We will notify customer on provided telephone */\n Sms = 'Sms',\n}\n\n/** Input to let user subscribe to when the product is back in stock */\nexport type BackInStockNotificationSubscriptionInput = {\n /** Email value for notificationChannel.Email */\n readonly email?: InputMaybe;\n /** The product code to watch */\n readonly itemCode: Scalars['String']['input'];\n /** Flag indicating the channel for notification */\n readonly notificationChannel: BackInStockNotificationChannel;\n /** Telephone value for notificationChannel.Telephone */\n readonly telephoneNumber?: InputMaybe;\n};\n\n/** Background types */\nexport enum BackgroundType {\n /** Color as a background */\n Color = 'Color',\n /** Image as a background */\n Image = 'Image',\n /** No background */\n None = 'None',\n /** Video as a background */\n Video = 'Video',\n}\n\nexport enum CatalogueOfferType {\n /** Special offer for buying product */\n Buy = 'Buy',\n /** Choose from products */\n Choose = 'Choose',\n /** Choose a product and choose another */\n ChooseAndChoose = 'ChooseAndChoose',\n /** Choose a product and get another */\n ChooseAndGet = 'ChooseAndGet',\n /** Get a product */\n Get = 'Get',\n /** No type of catalogue offer was specified */\n None = 'None',\n}\n\nexport enum ChannelType {\n Mv7 = 'MV7',\n Website = 'Website',\n}\n\nexport enum ChatBotMode {\n AlwaysEnabled = 'AlwaysEnabled',\n Disabled = 'Disabled',\n NonBusinessHoursOnly = 'NonBusinessHoursOnly',\n}\n\n/** Color type */\nexport enum ColorType {\n Brown = 'Brown',\n Green = 'Green',\n White = 'White',\n}\n\n/** Enum customer category */\nexport enum CustomerCategory {\n Anonymous = 'Anonymous',\n Consultant = 'Consultant',\n Employee = 'Employee',\n EndConsumer = 'EndConsumer',\n EndCustomer = 'EndCustomer',\n Invitation = 'Invitation',\n Other = 'Other',\n}\n\n/** eWallet type */\nexport enum EWalletType {\n Revolut = 'Revolut',\n}\n\n/** Editorial banner layout enumeration */\nexport enum EditorialBannerLayoutEnum {\n /** Banner with four media */\n FourMedia = 'FourMedia',\n /** Banner with headline */\n Headline = 'Headline',\n /** Banner with one media overlayed with text at the bottom */\n OneMediaCenterBottomText = 'OneMediaCenterBottomText',\n /** Banner with one media overlayed with text on the left */\n OneMediaOverlayLeftText = 'OneMediaOverlayLeftText',\n /** Banner with one media overlayed with text on the right */\n OneMediaOverlayRightText = 'OneMediaOverlayRightText',\n /** Banner with one media part and paragraph text */\n OneMediaParagraphText = 'OneMediaParagraphText',\n /** PLP banner with single media */\n OneMediaProductPromo = 'OneMediaProductPromo',\n /** Banner with paragraph text */\n ParagraphText = 'ParagraphText',\n /** Banner with quote */\n Quote = 'Quote',\n /** Banner with three media and right bottom text */\n ThreeMediaRightBottomText = 'ThreeMediaRightBottomText',\n /** Banner with two media parts */\n TwoMedia = 'TwoMedia',\n /** Banner with two media overlayed with text on the top */\n TwoMediaRightTopText = 'TwoMediaRightTopText',\n /** Banner with video */\n Video = 'Video',\n}\n\n/** Editorial banner title color enumeration */\nexport enum EditorialBannerTitleColorEnum {\n /** The black */\n Black = 'Black',\n /** The dark grey */\n DarkGrey = 'DarkGrey',\n /** The white */\n White = 'White',\n}\n\n/** Editorial channel type */\nexport enum EditorialChannelType {\n Mobile = 'Mobile',\n Web = 'Web',\n}\n\n/** Editorial PLP banner size */\nexport enum EditorialPlpPromoBannerSize {\n Size1 = 'Size1',\n Size2 = 'Size2',\n}\n\n/** Feedback Benefit Banner type */\nexport enum FeedbackBenefitBannerType {\n Cashback = 'Cashback',\n ShareAndEarn = 'ShareAndEarn',\n}\n\n/** Enum gender */\nexport enum Gender {\n Man = 'Man',\n Other = 'Other',\n Woman = 'Woman',\n}\n\n/** Enum language type */\nexport enum LanguageType {\n Alternative = 'Alternative',\n Default = 'Default',\n}\n\nexport enum MobileAppType {\n None = 'None',\n ToSell = 'ToSell',\n ToShop = 'ToShop',\n}\n\n/** Possible types of Navigation items */\nexport enum NavigationLinkType {\n /** All category */\n AllCategory = 'AllCategory',\n /** Bottom part of the footer */\n Bottom = 'Bottom',\n /** Bottom part of the footer with copyright info */\n BottomCopyright = 'BottomCopyright',\n /** Links from the bottom part of the footer */\n BottomLinks = 'BottomLinks',\n /** Catalogue page */\n Catalogue = 'Catalogue',\n /** Catalogues page */\n Catalogues = 'Catalogues',\n /** Category */\n Category = 'Category',\n /** Catalogue for the current period */\n DigitalCatalogueCurrent = 'DigitalCatalogueCurrent',\n /** Catalogue for the next period */\n DigitalCatalogueNext = 'DigitalCatalogueNext',\n /** Focus page */\n FocusPage = 'FocusPage',\n /** Column of a footer */\n FooterColumn = 'FooterColumn',\n /** Item placed in footer's column */\n FooterColumnItem = 'FooterColumnItem',\n /** I Don't know yet link */\n IDontKnowYet = 'IDontKnowYet',\n /** Inspiration section */\n Inspiration = 'Inspiration',\n /** Join rewards */\n JoinRewards = 'JoinRewards',\n /** Key ingredients page */\n KeyIngredients = 'KeyIngredients',\n /** Menu tiles */\n MenuTiles = 'MenuTiles',\n /** New products */\n New = 'New',\n /** No link type was specified for this item */\n None = 'None',\n /** Our applications */\n OurApps = 'OurApps',\n /** Outlet shop */\n OutletShop = 'OutletShop',\n /** Payment method */\n PaymentMethod = 'PaymentMethod',\n /** Available payment methods */\n PaymentMethods = 'PaymentMethods',\n /** Popular brand */\n PopularBrand = 'PopularBrand',\n /** Popular brands */\n PopularBrands = 'PopularBrands',\n /** Popular lookbook */\n PopularLookbook = 'PopularLookbook',\n /** Turkish QR code */\n Qrtr = 'QRTR',\n /** Rewards shop page */\n RewardsShop = 'RewardsShop',\n /** Sample shop page */\n SampleShop = 'SampleShop',\n /** Segment of subcategory */\n Segment = 'Segment',\n /** Subcategory */\n SubCategory = 'SubCategory',\n /** Support center */\n SupportCenter = 'SupportCenter',\n /** Top navigation */\n TopNavigation = 'TopNavigation',\n /** What's new in the category */\n WhatsNewInCategory = 'WhatsNewInCategory',\n}\n\n/** Possible types of navigations */\nexport enum NavigationType {\n /** About tiles section content */\n AboutTiles = 'AboutTiles',\n /** Footer section */\n Footer = 'Footer',\n /** Inspiration tiles content */\n InspirationTiles = 'InspirationTiles',\n /** Join section content */\n JoinTiles = 'JoinTiles',\n /** Shop section content */\n ShopSection = 'ShopSection',\n /** Top navigation bar items */\n TopNavigation = 'TopNavigation',\n}\n\nexport enum NotificationBannerThemeType {\n Black = 'Black',\n Grey = 'Grey',\n}\n\n/** Olapic type enumeration */\nexport enum OlapicTypeEnum {\n /** Category widget */\n Category = 'Category',\n /** Front page widget */\n FrontPage = 'FrontPage',\n /** Gallery widget */\n Gallery = 'Gallery',\n /** Product detail page widget */\n ProductDetails = 'ProductDetails',\n}\n\n/** Product Label Domain Type */\nexport enum ProductLabelDomainType {\n /** Only Offer, New, SuperDeal */\n Deal = 'Deal',\n /** All of the ProductLabelType except Offer, New, SuperDeal, AddToBasketVisible */\n Ppa = 'PPA',\n /** Domain Type for AddToBasketVisible ProductLabelType */\n Shopping = 'Shopping',\n}\n\nexport enum ProductListType {\n Favorite = 'Favorite',\n Personal = 'Personal',\n Private = 'Private',\n Wishlist = 'Wishlist',\n}\n\n/** Enum ProductListingBannerVideoType */\nexport enum ProductListingBannerVideoType {\n Mp4 = 'Mp4',\n None = 'None',\n Youku = 'Youku',\n Youtube = 'Youtube',\n}\n\n/** Relation types */\nexport enum ProductRelationEnum {\n RecentlyViewed = 'RecentlyViewed',\n Related = 'Related',\n}\n\nexport enum ProductType {\n Bundle = 'Bundle',\n Composite = 'Composite',\n Fee = 'Fee',\n Product = 'Product',\n Sample = 'Sample',\n}\n\n/** ResponseMessageNewsletterSubsciptionsType */\nexport enum ResponseMessageNewsletterSubsciptionsType {\n /** Cleaned */\n Cleaned = 'Cleaned',\n /** New */\n New = 'New',\n /** Pending */\n Pending = 'Pending',\n /** Subscribed */\n Subscribed = 'Subscribed',\n /** Unsubscribed */\n Unsubscribed = 'Unsubscribed',\n}\n\nexport enum SettingsClientType {\n OnlineReportingGrid = 'OnlineReportingGrid',\n WellnessClub = 'WellnessClub',\n}\n\nexport enum SettingsFormatType {\n Json = 'Json',\n String = 'String',\n Xml = 'Xml',\n}\n\n/** Live video show type */\nexport enum ShowType {\n /** Show is recorded */\n Ended = 'Ended',\n /** Show is running now */\n Live = 'Live',\n /** Show not started yet */\n Scheduled = 'Scheduled',\n}\n\n/** Types of social contact */\nexport enum SocialContactType {\n /** Email */\n Email = 'Email',\n /** Facebook */\n Facebook = 'Facebook',\n /** Phone */\n PhoneNumber = 'PhoneNumber',\n /** VKontakte */\n VKontakte = 'VKontakte',\n /** WeChat */\n WeChat = 'WeChat',\n /** WhatsUp */\n WhatsUpNumber = 'WhatsUpNumber',\n}\n\n/** Types of social media */\nexport enum SocialMediaType {\n /** Facebook */\n Facebook = 'Facebook',\n /** Instagram */\n Instagram = 'Instagram',\n /** Line */\n Line = 'Line',\n /** Odnoklassniki */\n Odnoklassniki = 'Odnoklassniki',\n /** Pinterest */\n Pinterest = 'Pinterest',\n /** QQ */\n Qq = 'QQ',\n /** Twitter */\n Twitter = 'Twitter',\n /** VKontakte */\n VKontakte = 'VKontakte',\n /** Weibo */\n Weibo = 'Weibo',\n /** YouTube */\n YouTube = 'YouTube',\n /** Youku */\n Youku = 'Youku',\n}\n\n/** Sponsor type */\nexport enum SponsorType {\n DirectSponsor = 'DirectSponsor',\n}\n\n/** Colors enum referring to FE storybook */\nexport enum StorybookColor {\n /** Shades/palette.brown[300] */\n Brown300 = 'Brown300',\n /** Palette - Main colors/palette.default.contrastText */\n DefaultContrastText = 'DefaultContrastText',\n /** Shades/palette.grey[50] */\n Grey50 = 'Grey50',\n /** Shades/palette.purple[200] */\n Purple200 = 'Purple200',\n /** Palette - Main colors/palette.secondary.main */\n SecondaryMain = 'SecondaryMain',\n /** Typography/palette.text.primary */\n TextPrimary = 'TextPrimary',\n /** Typography/palette.text.secondary */\n TextSecondary = 'TextSecondary',\n /** Undefined value, its an error when this occurs */\n Undefined = 'Undefined',\n}\n\n/** Enum telephone type */\nexport enum TelephoneType {\n Business = 'Business',\n Fax = 'Fax',\n Home = 'Home',\n Mobile = 'Mobile',\n}\n\n/** Content vertical alignment */\nexport enum VerticalContentAlignment {\n Bottom = 'Bottom',\n Middle = 'Middle',\n Top = 'Top',\n Undefined = 'Undefined',\n}\n\nexport enum VideoType {\n /** Video in MP4 file format */\n Mp4 = 'Mp4',\n /** Video hosted on Youku */\n Youku = 'Youku',\n /** Video hosted on YouTube */\n Youtube = 'Youtube',\n}\n\n/** Possible types of visitor segment */\nexport enum VisitorSegment {\n /** Anonymous */\n Anonymous = 'Anonymous',\n /** Consultant */\n Consultant = 'Consultant',\n /** Director and above */\n DirectorAndAbove = 'DirectorAndAbove',\n /** End customer */\n EndCustomer = 'EndCustomer',\n /** Manager */\n Manager = 'Manager',\n /** Member */\n Member = 'Member',\n /** New consultant */\n NewConsultant = 'NewConsultant',\n /** Not defined */\n NotDefined = 'NotDefined',\n /** Spo */\n Spo = 'Spo',\n}\n","import type { AxiosError } from '@ori/axios';\nimport { useSWR } from '@ori/fetching';\n\nimport type { UseUserDataParams } from './types';\nimport { useAppContext } from './useAppContext';\nimport type { UserData } from '../api';\nimport { getUserData } from '../api';\nimport { onUserDataFetchSuccess } from '../utils';\n\nexport const useUserData = (params: UseUserDataParams) => {\n const { onlineBaseUrl } = useAppContext();\n\n const { data, error } = useSWR([onlineBaseUrl], async () => getUserData({ onlineBaseUrl }), {\n onSuccess: onUserDataFetchSuccess(params),\n revalidateIfStale: false,\n revalidateOnFocus: false,\n revalidateOnReconnect: false,\n });\n\n return {\n userData: data ?? { email: null, telephoneNumber: null },\n loading: data === undefined && error === undefined,\n error,\n };\n};\n","import type { UserData } from '../api';\nimport type { UseUserDataParams } from '../hooks/types';\nimport { BackInStockNotificationChannel } from '../models';\n\nexport const onUserDataFetchSuccess =\n ({ currentType, setInputData }: UseUserDataParams) =>\n (fetchedData: UserData) => {\n if (fetchedData.email && currentType === BackInStockNotificationChannel.Email) {\n setInputData(fetchedData.email);\n } else if (fetchedData.telephoneNumber && currentType === BackInStockNotificationChannel.Sms) {\n setInputData(fetchedData.telephoneNumber);\n }\n };\n","import { axios } from '@ori/axios';\nimport { handleResponse, validateStatus } from '@ori/fetching';\nimport type { SpaConfigContext } from '@ori-appshell/config';\n\ntype GetUserData = Pick;\n\nexport interface UserData {\n email: string | null;\n telephoneNumber: string | null;\n}\n\nexport const getUserData = async ({ onlineBaseUrl }: GetUserData): Promise => {\n const response = await axios.get(\n new URL('/system/ajax/stockNotification/userData', onlineBaseUrl ?? window.location.origin).toString(),\n {\n validateStatus,\n },\n );\n\n return handleResponse(response, {\n onError: () => ({ email: null, telephoneNumber: null }),\n onSuccess: (res) => res.data,\n });\n};\n","import { Box, styled } from '@ori-ui/mui';\n\nexport const Root = styled(Box)({\n alignItems: 'center',\n display: 'flex',\n flexDirection: 'column',\n height: 'inherit',\n justifyContent: 'center',\n textAlign: 'center',\n});\n","import { CircularProgress } from '@ori-ui/mui';\n\nimport { Root } from './styles';\n\nexport const Loading = () => (\n \n \n \n);\n","import { shouldForwardProp } from '@ori/presentation-utils';\nimport { styled } from '@ori-ui/mui';\n\ninterface IsValidProps {\n isValid: boolean;\n}\ninterface IsInvalidProps {\n isInvalid: boolean;\n}\n\nexport const Root = styled('div')(({ theme }) => ({\n alignItems: 'center',\n backgroundColor: theme.palette.common.white,\n borderRadius: theme.spacing(0, 0, 1, 1),\n display: 'flex',\n flexDirection: 'column',\n}));\n\nexport const Form = styled('form')(() => ({\n display: 'flex',\n flexDirection: 'column',\n width: '100%',\n}));\n\nexport const Field = styled('div')(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n marginBottom: theme.spacing(1),\n position: 'relative',\n}));\n\nexport const Label = styled('label', {\n shouldForwardProp: shouldForwardProp(),\n})(({ isValid, theme }) => ({\n color: isValid ? theme.palette.error.main : theme.palette.text.secondary,\n fontSize: theme.typography.pxToRem(12),\n lineHeight: '20px',\n marginBottom: '11px',\n}));\n\nexport const Input = styled('input', {\n shouldForwardProp: shouldForwardProp(),\n})(({ isInvalid, theme }) => ({\n border: `solid ${theme.palette.grey[300]}`,\n borderBottomColor: isInvalid ? theme.palette.error.main : theme.palette.grey[300],\n borderWidth: '0 0 1px 0',\n boxSizing: 'border-box',\n fontSize: theme.typography.pxToRem(14),\n height: '28px',\n lineHeight: '19px',\n outline: 'none',\n padding: theme.spacing(2, 0),\n}));\n\nconst buttonAndInformationBase: Record = {\n backgroundColor: 'transparent',\n border: 'none',\n bottom: '0',\n cursor: 'pointer',\n fontSize: '30px',\n padding: '0',\n position: 'absolute',\n transition: '0.3s',\n};\n\nexport const Information = styled('div', {\n shouldForwardProp: shouldForwardProp(),\n})(({ isInvalid, theme }) => ({\n ...buttonAndInformationBase,\n color: isInvalid ? theme.palette.error.main : theme.palette.grey[300],\n display: 'flex',\n opacity: isInvalid ? 1 : 0,\n right: 0,\n}));\n\nexport const Button = styled('button', {\n shouldForwardProp: shouldForwardProp(),\n})(({ isInvalid, isValid, theme }) => ({\n ...buttonAndInformationBase,\n color: isValid ? theme.palette.primary.main : theme.palette.error.main,\n display: 'flex',\n right: isInvalid ? theme.spacing(6) : 0,\n}));\n\nexport const ValidateInfo = styled('p')(({ theme }) => ({\n color: theme.palette.error.main,\n fontSize: theme.typography.pxToRem(12),\n lineHeight: '20px',\n margin: theme.spacing(0, 0, 2),\n [theme.breakpoints.up('sm')]: {\n marginBottom: 0,\n },\n}));\n","import useTestId from '@ori/testid-generator';\nimport { ErrorCircle, Send, SendFilled } from '@ori-ui/icons';\nimport type { FC, FormEvent, SyntheticEvent } from 'react';\nimport React, { useCallback, useMemo } from 'react';\nimport { z } from 'zod';\n\nimport { NOTIFY_FORM } from './constants';\nimport { Button, Field, Form, Information, Input, Label, Root, ValidateInfo } from './styles';\nimport { useAppContext, useTranslations } from '../../hooks';\nimport { BackInStockNotificationChannel } from '../../models';\n\nexport interface NotifyFormProps {\n currentType: string;\n inputData: string;\n productCode: string;\n onChange: (event: FormEvent) => void;\n onSubmit: () => void;\n}\n\nexport const NotifyForm: FC = ({ currentType, inputData, onSubmit, onChange, productCode }) => {\n const { getTestId } = useTestId();\n const { subscribe } = useAppContext();\n const { translations } = useTranslations();\n const isEmail: boolean = BackInStockNotificationChannel.Email === currentType;\n const isCorrectInputData: boolean = isEmail ? z.string().email().safeParse(inputData).success : !!inputData.length;\n const isValid = isCorrectInputData && !!inputData.length;\n const isInvalid = !inputData.length || !isCorrectInputData;\n\n const label = useMemo(\n () => (isEmail ? translations.enterYourEmail : translations.enterTelephoneNumber),\n [isEmail, translations.enterTelephoneNumber, translations.enterYourEmail],\n );\n const errorLabel = useMemo(\n () => (isEmail ? translations.invalidEmail : translations.invalidTelephoneNumber),\n [isEmail, translations.invalidEmail, translations.invalidTelephoneNumber],\n );\n\n const onClick = useCallback(\n async (event: SyntheticEvent) => {\n event.preventDefault();\n\n if (!isCorrectInputData) {\n return;\n }\n\n await subscribe(\n isEmail\n ? {\n notificationChannel: BackInStockNotificationChannel.Email,\n itemCode: productCode,\n email: inputData,\n }\n : {\n notificationChannel: BackInStockNotificationChannel.Sms,\n itemCode: productCode,\n telephoneNumber: inputData,\n },\n );\n\n onSubmit();\n },\n [onSubmit, inputData, isCorrectInputData, isEmail, productCode, subscribe],\n );\n\n return (\n \n
\n \n \n \n \n \n \n \n {isCorrectInputData ? : }\n \n \n {!isCorrectInputData && {errorLabel}}\n
\n
\n );\n};\n","export const NOTIFY_FORM = 'notify-form';\n","import { RadioGroup, styled } from '@ori-ui/mui';\n\nexport const Root = styled(RadioGroup)(({ theme }) => ({\n alignItems: 'stretch',\n color: theme.palette.text.primary,\n display: 'flex',\n flexDirection: 'column',\n fontSize: theme.typography.pxToRem(14),\n lineHeight: '21px',\n margin: theme.spacing(0, 6, 3, 0),\n\n [theme.breakpoints.up('sm')]: {\n flexDirection: 'row',\n marginBottom: '18px',\n },\n}));\n","import useTestId from '@ori/testid-generator';\nimport { FormControlLabel, Radio } from '@ori-ui/mui';\nimport type { FC, FormEvent } from 'react';\nimport React from 'react';\n\nimport { NOTIFY_TYPE } from './constants';\nimport { Root } from './styles';\nimport { useAppContext, useTranslations } from '../../hooks';\nimport { BackInStockNotificationChannel } from '../../models';\n\nexport interface NotifyTypeProps {\n currentType: string;\n onChange: (event: FormEvent) => void;\n}\n\nexport const NotifyType: FC = ({ currentType, onChange }) => {\n const { getTestId } = useTestId();\n const { notifyMeSubscriptionConfiguration } = useAppContext();\n const { translations } = useTranslations();\n\n if (!notifyMeSubscriptionConfiguration.IsSmsSubscriptionEnabled) {\n return null;\n }\n\n return (\n \n }\n label={translations.email}\n />\n }\n label={translations.sms}\n />\n \n );\n};\n","export const NOTIFY_TYPE = 'notify-type';\n","import { styled } from '@ori-ui/mui';\n\nexport const Root = styled('p')(({ theme }) => ({\n color: theme.palette.grey[600],\n fontSize: theme.typography.pxToRem(20),\n fontWeight: theme.typography.fontWeightBold,\n lineHeight: '29px',\n margin: theme.spacing(0, 0, 6),\n textAlign: 'center',\n}));\n","import type { FC } from 'react';\nimport React from 'react';\n\nimport { Root } from './styles';\n\nexport interface PopupHeaderProps {\n title: string;\n}\n\nexport const PopupHeader: FC = ({ title }) => {title};\n","import { styled } from '@ori-ui/mui';\n\nexport const Root = styled('div')(({ theme }) => ({\n display: 'block',\n minHeight: '60px',\n '.ori-icon::before': {\n bottom: theme.spacing(-11),\n position: 'absolute',\n right: '1px',\n [theme.breakpoints.up('sm')]: {\n lineHeight: theme.typography.pxToRem(50),\n position: 'static',\n },\n },\n}));\n\nexport const IconWrap = styled('div')(({ theme }) => ({\n color: theme.palette.primary.main,\n display: 'flex',\n fontSize: theme.typography.pxToRem(58),\n justifyContent: 'center',\n marginBottom: theme.spacing(6),\n position: 'relative',\n [theme.breakpoints.up('sm')]: {\n fontSize: theme.typography.pxToRem(73),\n },\n}));\n\nexport const Header = styled('h2')(({ theme }) => ({\n color: theme.palette.text.primary,\n display: 'flex',\n fontSize: theme.typography.pxToRem(20),\n justifyContent: 'center',\n lineHeight: theme.typography.pxToRem(20),\n marginBottom: theme.spacing(3),\n}));\n\nexport const TextInfo = styled('p')(({ theme }) => ({\n color: theme.palette.text.primary,\n fontSize: theme.typography.pxToRem(14),\n lineHeight: theme.typography.pxToRem(19),\n margin: 0,\n paddingBottom: theme.spacing(1),\n textAlign: 'center',\n}));\n","import { styled } from '@ori-ui/mui';\n\nimport { IconWrap as IconWrapComponent } from '../Thanks/styles';\n\nexport const IconWrap = styled(IconWrapComponent)(({ theme }) => ({\n color: theme.palette.error.main,\n}));\n","import useTestId from '@ori/testid-generator';\nimport { ClearCircle } from '@ori-ui/icons';\nimport type { FC } from 'react';\nimport React from 'react';\n\nimport { REQUEST_FAILED } from './constants';\nimport { IconWrap } from './styles';\nimport { useTranslations } from '../../hooks';\nimport { Header, Root, TextInfo } from '../Thanks/styles';\n\nexport const RequestFailed: FC = () => {\n const { getTestId } = useTestId();\n const { translations } = useTranslations();\n\n return (\n \n \n \n \n
{translations.requestFailed}
\n {translations.pleaseTryAgainLater}\n
\n );\n};\n","export const REQUEST_FAILED = 'request-failed';\n","/* istanbul ignore file */\n/**\n * DO NOT EDIT!\n * This file was autogenerated by npm script `localizations-codegen`.\n * Changes may cause incorrect behavior and will be lost when the file is regenerated.\n *\n * Run `npx localizations-codegen` to regenerate.\n */\n\nexport enum TranslationKey {\n chooseAnOption = 'chooseAnOption',\n email = 'email',\n enterTelephoneNumber = 'enterTelephoneNumber',\n enterYourEmail = 'enterYourEmail',\n invalidEmail = 'invalidEmail',\n invalidTelephoneNumber = 'invalidTelephoneNumber',\n notifyMe = 'notifyMe',\n notifyMeSuccess = 'notifyMeSuccess',\n pleaseTryAgainLater = 'pleaseTryAgainLater',\n requestFailed = 'requestFailed',\n sms = 'sms',\n thankYou = 'thankYou',\n}\n","import useTestId from '@ori/testid-generator';\nimport { CheckCircle } from '@ori-ui/icons';\nimport type { FC } from 'react';\nimport React from 'react';\n\nimport { THANKS } from './constants';\nimport { Header, IconWrap, Root, TextInfo } from './styles';\nimport { useTranslations } from '../../hooks';\nimport { BackInStockNotificationChannel, TranslationKey } from '../../models';\n\nexport interface ThanksProps {\n currentType: BackInStockNotificationChannel;\n}\n\nexport const Thanks: FC = ({ currentType }) => {\n const { getTestId } = useTestId();\n const { formatMessage, translations } = useTranslations();\n\n return (\n \n \n \n \n
{translations.thankYou}
\n \n {formatMessage(TranslationKey.notifyMeSuccess, {\n 0: currentType === BackInStockNotificationChannel.Email ? translations.email : translations.sms,\n })}\n \n
\n );\n};\n","export const THANKS = 'thanks';\n","import type { FC, FormEvent } from 'react';\nimport React, { useCallback, useState } from 'react';\n\nimport { Root } from './styles';\nimport { useAppContext, useTranslations, useUserData } from '../../hooks';\nimport { BackInStockNotificationChannel } from '../../models';\nimport { Loading } from '../Loading';\nimport { NotifyForm } from '../NotifyForm';\nimport { NotifyType } from '../NotifyType';\nimport { PopupHeader } from '../PopupHeader';\nimport { RequestFailed } from '../RequestFailed';\nimport { Thanks } from '../Thanks';\n\ninterface NotifyCumulusProps {\n productCode: string;\n}\n\nexport const NotifyCumulus: FC = ({ productCode }) => {\n const { notifyMeSubscriptionConfiguration } = useAppContext();\n const { translations } = useTranslations();\n const [currentType, setCurrentType] = useState(BackInStockNotificationChannel.Email);\n const [inputData, setInputData] = useState('');\n const [isReserved, setIsReserved] = useState(false);\n const { userData, loading, error } = useUserData({ currentType, setInputData });\n\n const onChangeData = useCallback(\n (event: FormEvent) => {\n if (!notifyMeSubscriptionConfiguration.IsEditionEnabled) {\n return;\n }\n\n const trimmedValue = event.currentTarget.value.trim();\n\n setInputData(trimmedValue);\n },\n [notifyMeSubscriptionConfiguration.IsEditionEnabled],\n );\n\n const onChangeType = useCallback(\n (event: FormEvent): void => {\n const { value } = event.currentTarget;\n\n setCurrentType(value as BackInStockNotificationChannel);\n if (userData.email && value === BackInStockNotificationChannel.Email) {\n setInputData(userData.email);\n } else if (userData.telephoneNumber && value === BackInStockNotificationChannel.Sms) {\n setInputData(userData.telephoneNumber);\n }\n },\n [userData.email, userData.telephoneNumber],\n );\n\n const onSubmit = useCallback((): void => {\n setIsReserved(true);\n }, []);\n\n if (loading) {\n return (\n \n \n \n );\n }\n\n if (error) {\n return (\n \n \n \n );\n }\n\n return (\n \n {isReserved ? (\n \n ) : (\n <>\n \n \n \n \n )}\n \n );\n};\n","import type { Event } from '@ori-events/open-back-in-stock-notification-dialog';\nimport { Name } from '@ori-events/open-back-in-stock-notification-dialog';\nimport { DialogBase } from '@ori-ui/components';\nimport type { FC } from 'react';\nimport React, { useCallback, useEffect, useState } from 'react';\n\nimport { NotifyCumulus } from '../NotifyCumulus/NotifyCumulus';\n\nexport const NotifyPopup: FC = () => {\n const [productCode, setProductCode] = useState('');\n const [isDialogOpen, setIsDialogOpen] = useState(false);\n const closeDialog = useCallback(() => {\n setIsDialogOpen(false);\n }, []);\n\n useEffect(() => {\n const openDialog = (event: Event): void => {\n const { code } = event.detail;\n\n setIsDialogOpen(true);\n setProductCode(code);\n };\n\n window.addEventListener(Name, openDialog);\n\n return () => window.removeEventListener(Name, openDialog);\n }, []);\n\n return (\n \n \n \n );\n};\n","/**\n * Name of this package.\n */\nexport const PACKAGE_NAME = 'back-in-stock-notification';\n","/* istanbul ignore file */\n/**\n * DO NOT EDIT!\n * This file was autogenerated by npm script `localizations-codegen`.\n * Changes may cause incorrect behavior and will be lost when the file is regenerated.\n *\n * Run `npx localizations-codegen` to regenerate.\n */\n\nimport type { TranslationKey } from '../models/TranslationKey';\n\nexport type DefaultTranslations = Record;\n\nexport const defaultTranslations: DefaultTranslations = {\n chooseAnOption: 'Choose an option',\n email: 'Email',\n enterTelephoneNumber: 'Enter telephone number',\n enterYourEmail: 'Enter your email below to be notified when this item is back on stock.',\n invalidEmail: 'Email address is not valid.',\n invalidTelephoneNumber: 'Telephone number is not valid.',\n notifyMe: 'Notify me when the product becomes available',\n notifyMeSuccess: 'You will get an {0} when this product is back in stock!',\n pleaseTryAgainLater: 'Please try again later.',\n requestFailed: 'Request failed.',\n sms: 'SMS',\n thankYou: 'Thank you!',\n};\n\nexport const translationsNamespace = 'back-in-stock-notification';\n","import { TranslationsNamespaceProvider, TranslationsProvider } from '@ori/i18n';\nimport { ErrorBoundary } from '@ori/presentation-components';\nimport { Team, TestIdProvider } from '@ori/testid-generator';\nimport type { FC } from 'react';\nimport React, { Suspense } from 'react';\n\nimport type { BackInStockNotificationControllerProps } from './types';\nimport { NotifyPopup } from '../../components';\nimport { PACKAGE_NAME, defaultTranslations } from '../../constants';\nimport { AppContextProvider } from '../../contexts';\n\nexport const BackInStockNotificationController: FC = ({\n currentLanguage,\n customerId,\n graphqlUrl,\n staticApiUrl,\n notifyMeSubscriptionConfiguration,\n tenant,\n token,\n appName,\n onlineBaseUrl,\n translations,\n}) => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n);\n","import { useToken } from '@ori/auth';\nimport type { ConfigValues } from '@ori/back-in-stock-notification';\nimport { BackInStockNotificationController } from '@ori/back-in-stock-notification';\nimport type { parseSpaConfig } from '@ori-appshell/config';\nimport type { FC } from 'react';\n\nimport { APP_NAME } from './constants';\n\nexport type AppProps = ReturnType>;\n\nexport const App: FC = ({\n currentLanguage,\n graphqlUrl,\n notifyMeSubscriptionConfiguration,\n tenant,\n onlineBaseUrl,\n staticApiUrl,\n}) => {\n const { customerId, token } = useToken();\n\n if (!token) {\n return null;\n }\n\n return (\n \n );\n};\n","import { UniversalTokenProvider, doDevelopmentLogin } from '@ori/auth';\nimport type { ConfigValues } from '@ori/back-in-stock-notification';\nimport { ErrorBoundary } from '@ori/presentation-components';\nimport { parseSpaConfig } from '@ori-appshell/config';\nimport { ThemeProvider } from '@ori-ui/mui';\nimport { createRoot } from 'react-dom/client';\n\nimport { App } from './App';\nimport { EMOTION_CACHE_KEY } from './constants';\n\n/**\n * React app renderer that is used when app is used as a standalone app\n */\nexport async function render(rootElement: HTMLElement) {\n const { config = '' } = rootElement.dataset;\n const appConfig = parseSpaConfig(config);\n const { customerId, identityUrl, tenant } = appConfig;\n\n if (!identityUrl) {\n throw new Error('Missing Identity URL!');\n }\n\n // Get token for local development\n if (process.env.NODE_ENV !== 'production') {\n // when using Requestly we do not want to load token\n if (process.env.REACT_APP_USE_REQUESTLY === '1') {\n // eslint-disable-next-line no-console -- we need to log this info\n console.log('USING REQUESTLY');\n } else if (process.env.REACT_APP_ANONYMOUS_MODE !== '1') {\n await doDevelopmentLogin({ identityUrl, tenant });\n }\n }\n\n createRoot(rootElement).render(\n \n \n \n \n \n \n ,\n );\n}\n"],"names":["Name","Root","styled","_ref","theme","_defineProperty","height","overflow","breakpoints","up","boxSizing","padding","spacing","width","subscribeToBackInStockNotification","gql","_templateObject","_taggedTemplateLiteral","AppContext","createContext","notifyMeSubscriptionConfiguration","IsCumulusMarket","IsEditionEnabled","IsSmsSubscriptionEnabled","MarketingApprovalWarningText","ShowMarketingApprovalWarning","currentLanguage","customerId","NOT_LOGGED_IN_USER_ID","graphqlUrl","onlineBaseUrl","staticApiUrl","tenant","token","subscribe","async","AppContextProvider","appName","children","useCallback","input","fetchGraphql","query","url","headers","getHeaders","language","sourceAppName","variables","_jsx","Provider","value","useMemo","useAppContext","useContext","useTranslations","useTranslationsFromNamespace","BackInStockNotificationChannel","useUserData","params","currentType","setInputData","_useSWR","useSWR","response","axios","get","URL","window","location","origin","toString","validateStatus","handleResponse","onError","email","telephoneNumber","onSuccess","res","data","getUserData","fetchedData","Email","Sms","revalidateIfStale","revalidateOnFocus","revalidateOnReconnect","error","userData","loading","undefined","Box","alignItems","display","flexDirection","justifyContent","textAlign","Loading","CircularProgress","size","backgroundColor","palette","common","white","borderRadius","Form","Field","_ref2","marginBottom","position","Label","shouldForwardProp","_ref3","isValid","color","main","text","secondary","fontSize","typography","pxToRem","lineHeight","Input","_ref4","isInvalid","border","concat","grey","borderBottomColor","borderWidth","outline","buttonAndInformationBase","bottom","cursor","transition","Information","_ref5","_objectSpread","opacity","right","Button","_ref6","primary","ValidateInfo","_ref7","margin","NotifyForm","inputData","onSubmit","onChange","productCode","getTestId","useTestId","translations","isEmail","isCorrectInputData","z","string","safeParse","success","length","label","enterYourEmail","enterTelephoneNumber","errorLabel","invalidEmail","invalidTelephoneNumber","onClick","event","preventDefault","notificationChannel","itemCode","_jsxs","type","ErrorCircle","SendFilled","Send","RadioGroup","NotifyType","chooseAnOption","name","FormControlLabel","id","control","Radio","sms","fontWeight","fontWeightBold","PopupHeader","title","minHeight","IconWrap","Header","TextInfo","paddingBottom","IconWrapComponent","RequestFailed","ClearCircle","requestFailed","pleaseTryAgainLater","TranslationKey","Thanks","_useTranslations","formatMessage","CheckCircle","thankYou","notifyMeSuccess","NotifyCumulus","_useState","useState","_useState2","_slicedToArray","setCurrentType","_useState3","_useState4","_useState5","_useState6","isReserved","setIsReserved","_useUserData","onChangeData","trimmedValue","currentTarget","trim","onChangeType","_Fragment","notifyMe","NotifyPopup","setProductCode","isDialogOpen","setIsDialogOpen","closeDialog","useEffect","openDialog","code","detail","addEventListener","removeEventListener","DialogBase","open","onClose","PACKAGE_NAME","defaultTranslations","BackInStockNotificationController","TestIdProvider","team","Team","Presentation","project","ErrorBoundary","Suspense","fallback","TranslationsProvider","defaultTranslationsWithNamespaces","translationsWithNamespaces","clientFetchConfiguration","baseUrl","console","TranslationsNamespaceProvider","namespace","App","_useToken","useToken","APP_NAME","render","rootElement","_rootElement$dataset$","dataset","config","appConfig","parseSpaConfig","identityUrl","Error","createRoot","UniversalTokenProvider","initialToken","ThemeProvider","enableCacheProvider","cacheKey","EMOTION_CACHE_KEY"],"sourceRoot":""}