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D,EAAkB,CAAAE,UACjBmD,EAAAA,EAAAA,KAAC6K,GAAW,iBAS9B,E,sBC7CauB,GAAoB,SAAHxP,GAAA,IAAMyP,EAAezP,EAAfyP,gBAAiBC,EAAU1P,EAAV0P,WAAYnB,EAAYvO,EAAZuO,aAAc7N,EAAMV,EAANU,OAAM,OACnF0C,EAAAA,EAAAA,KAACuM,GAAAA,EAAmB,CAACC,YAAa,CAAE1P,WAAYwP,EAAYnB,aAAAA,GAAetO,UACzEmD,EAAAA,EAAAA,KAACyM,GAAAA,EAAmB,CAACnP,OAAQA,EAAOT,UAClCmD,EAAAA,EAAAA,KAAC4L,EAAAA,EAAoB,CACnBC,kCAAmC,CAAC,EACpCtO,SAAU8O,EACVP,2BAA4B,CAAC,EAAEjP,UAE/BmD,EAAAA,EAAAA,KAACkL,GAAiC,SAGlB,E,mnBCLjBzO,eAAeiQ,GAAOC,GAC3B,IAAAC,EAAwBD,EAAYE,QAA5B3Q,OAAAA,OAAM,IAAA0Q,EAAG,GAAEA,EACnBE,GAAkDC,EAAAA,EAAAA,GAEhD7Q,EAAQ,CAAC,aAAc,eAAgB,SAAU,oBAF3CgB,EAAU4P,EAAV5P,WAA4B8P,GAALF,EAAXG,aAAyBC,EAAAA,EAAAA,GAAAJ,EAAAK,KAG1BH,EAAX1P,QAaR8P,EAAAA,EAAAA,GAAWT,GAAaD,QACtB1M,EAAAA,EAAAA,KAACyL,EAAAA,EAAa,CAAA5O,UACZmD,EAAAA,EAAAA,KAACqN,EAAAA,EAAsB,CACrBnQ,WAAYA,EACZoQ,aAAa,GAAEzQ,UAEfmD,EAAAA,EAAAA,KAACuN,EAAAA,EAAa,CACZC,qBAAmB,EACnBC,SAAUC,GAAAA,GAAkB7Q,UAE5BmD,EAAAA,EAAAA,KAACoM,GAAGuB,GAAA,GAAKX,UAKnB,C","sources":["webpack://oribackinstocknotificationspa/../../../src/constants/app.ts","webpack://oribackinstocknotificationspa/../../src/index.ts","webpack://oribackinstocknotificationspa/../../../src/queries/subscribeToBackInStockMutation.ts","webpack://oribackinstocknotificationspa/../../../src/contexts/AppContext.tsx","webpack://oribackinstocknotificationspa/../../../src/hooks/useDialogProps.ts","webpack://oribackinstocknotificationspa/../../../../src/components/NotifyCumulus/styles.ts","webpack://oribackinstocknotificationspa/../../../../src/components/Loading/styles.ts","webpack://oribackinstocknotificationspa/../../../../src/components/Loading/Loading.tsx","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/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/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/defaultTranslations.ts","webpack://oribackinstocknotificationspa/../../../../src/containers/BackInStockNotificationController/BackInStockNotificationController.tsx","webpack://oribackinstocknotificationspa/./src/App.tsx","webpack://oribackinstocknotificationspa/./src/appRender.tsx"],"sourcesContent":["/**\n * Name of this package.\n */\nexport const PACKAGE_NAME = 'back-in-stock-notification';\n","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 { gql } from '@ori/fetching';\n\nexport const subscribeToBackInStockNotification = gql`\n mutation SubscribeToBackInStock($input: BackInStockNotificationSubscriptionInput!) {\n backInStockNotificationSubscription(input: $input)\n }\n`;\n","import { useToken } from '@ori/auth';\nimport { useServiceUrls } from '@ori/configuration-manager';\nimport { useEnvironmentConfiguration } from '@ori/environment';\nimport { fetchGraphql, getHeaders } from '@ori/fetching';\nimport { useTranslationsWithNamespaces } from '@ori/i18n';\nimport { useGetTenantBackInStockNotificationsConfiguration } from '@ori/static-api-client-react';\nimport type { FC, PropsWithChildren } from 'react';\nimport React, { createContext, useCallback, useContext, useMemo } from 'react';\n\nimport { PACKAGE_NAME } from '../constants';\nimport { useDialogProps } from '../hooks';\nimport type {\n BackInStockNotificationSubscriptionInput,\n SubscribeToBackInStockMutation,\n SubscribeToBackInStockMutationVariables,\n} from '../models';\nimport { subscribeToBackInStockNotification } from '../queries';\nimport type { ContextValues } from './types';\n\n/* istanbul ignore next */\nconst defaultSubscribe = async () => ({});\n/* istanbul ignore next */\nconst defaultClose = () => undefined;\n\nexport const AppContext = createContext({\n config: undefined,\n loading: true,\n open: false,\n productCode: '',\n close: defaultClose,\n subscribe: defaultSubscribe,\n successClose: defaultClose,\n});\n\nexport const AppContextProvider: FC = ({ children }) => {\n const { graphQlUrl } = useServiceUrls(['graphQl']);\n const { customerId, token } = useToken();\n const { tenant = '' } = useEnvironmentConfiguration();\n const { language } = useTranslationsWithNamespaces();\n const { close, open, productCode, successClose } = useDialogProps();\n const subscribe = useCallback(\n async (input: BackInStockNotificationSubscriptionInput) =>\n fetchGraphql({\n query: subscribeToBackInStockNotification,\n url: graphQlUrl,\n headers: getHeaders({\n customerId,\n language,\n sourceAppName: PACKAGE_NAME,\n tenant,\n token,\n }),\n variables: {\n input,\n },\n }),\n [customerId, graphQlUrl, language, tenant, token],\n );\n const { data, error } = useGetTenantBackInStockNotificationsConfiguration(\n tenant,\n { lang: language },\n {\n swr: {\n enabled: open,\n revalidateOnFocus: false,\n revalidateOnReconnect: false,\n revalidateIfStale: false,\n },\n },\n );\n const loading = useMemo(() => data === undefined && error === undefined, [data, error]);\n\n return (\n (\n () => ({\n config: data,\n loading,\n open,\n productCode,\n close,\n subscribe,\n successClose,\n }),\n [close, data, loading, open, productCode, subscribe, successClose],\n )}\n >\n {children}\n \n );\n};\n\nexport const useAppContext = () => useContext(AppContext);\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 { useCallback, useEffect, useState } from 'react';\n\nexport const useDialogProps = () => {\n const [productCode, setProductCode] = useState('');\n const [open, setOpen] = useState(false);\n const close = useCallback(() => {\n setOpen(false);\n }, []);\n\n const successClose = useCallback(() => {\n setTimeout(() => {\n setOpen(false);\n }, 5000);\n }, []);\n\n useEffect(() => {\n const openDialog = (event: Event): void => {\n const { code } = event.detail;\n\n setOpen(true);\n setProductCode(code);\n };\n\n window.addEventListener(Name, openDialog);\n\n return () => window.removeEventListener(Name, openDialog);\n }, []);\n\n return {\n open,\n productCode,\n close,\n successClose,\n };\n};\n","import { styled, Typography } from '@ori-ui/mui';\nimport { shouldForwardProp } from '@ori/presentation-utils';\n\nexport const Root = styled('div', { shouldForwardProp: shouldForwardProp() })<{ isSmsEnabled?: boolean | undefined }>(\n ({ theme, isSmsEnabled = false }) => ({\n overflow: 'hidden',\n height: isSmsEnabled ? 333 : 273,\n [theme.breakpoints.up('sm')]: {\n boxSizing: 'border-box',\n padding: theme.spacing(0, 2),\n width: 360,\n height: isSmsEnabled ? 345 : 285,\n },\n }),\n);\n\nexport const Header = styled(Typography)(({ theme }) => ({\n textAlign: 'center',\n marginBottom: theme.spacing(4),\n}));\n\nexport const InfoText = styled(Typography)(({ theme }) => ({\n marginBottom: theme.spacing(4),\n height: 40,\n overflow: 'hidden',\n display: '-webkit-box',\n WebkitLineClamp: 2,\n WebkitBoxOrient: 'vertical',\n}));\n","import { Box, styled } from '@ori-ui/mui';\n\nexport const Inner = 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 '../NotifyCumulus/styles';\nimport { Inner } from './styles';\n\nexport const Loading = () => (\n \n \n \n \n \n);\n","/* istanbul ignore file */\n\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","/* istanbul ignore file */\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 banner title size enumeration */\nexport enum EditorialBannerTitleSizeEnum {\n H5 = 'H5',\n H6 = 'H6',\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/** Facet filter */\nexport type EditorialPlpRowsFacetFilter = {\n /** Active children keys */\n readonly keys: ReadonlyArray>;\n /** Facet name */\n readonly name: Scalars['String']['input'];\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/** Products order strategies */\nexport enum PlpOrderBy {\n HighestDiscount = 'HighestDiscount',\n HighestPrice = 'HighestPrice',\n HighestRating = 'HighestRating',\n Latest = 'Latest',\n LowestPrice = 'LowestPrice',\n Recommended = 'Recommended',\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/** Input data for updating personal code in share and earn. */\nexport type ShareAndEarnUpdatePersonalCodeInput = {\n /** The customer ID of the customer who wants to update the personal code. */\n readonly customerId: Scalars['String']['input'];\n /** The new personal code */\n readonly newPersonalCode: Scalars['String']['input'];\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 /** Telegram */\n Telegram = 'Telegram',\n /** Twitter */\n Twitter = 'Twitter',\n /** VKontakte */\n VKontakte = 'VKontakte',\n /** WeChat */\n WeChat = 'WeChat',\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.blue[100] */\n Blue100 = 'Blue100',\n /** Shades/palette.brown[50] */\n Brown50 = 'Brown50',\n /** Shades/palette.brown[300] */\n Brown300 = 'Brown300',\n /** Shades/palette.brown[400] */\n Brown400 = 'Brown400',\n /** Palette - Main colors/palette.default.contrastText */\n DefaultContrastText = 'DefaultContrastText',\n /** Shades/palette.green[400] */\n Green400 = 'Green400',\n /** Shades/palette.grey[50] */\n Grey50 = 'Grey50',\n /** InfoDark */\n InfoDark = 'InfoDark',\n /** Shades/palette.pink[50] */\n Pink50 = 'Pink50',\n /** Shades/palette.pink[300] */\n Pink300 = 'Pink300',\n /** PrimaryLight */\n PrimaryLight = 'PrimaryLight',\n /** Shades/palette.purple[50] */\n Purple50 = 'Purple50',\n /** Shades/palette.purple[200] */\n Purple200 = 'Purple200',\n /** Shades/palette.purple[400] */\n Purple400 = 'Purple400',\n /** Shades/palette.red[50] */\n Red50 = 'Red50',\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 /** Shades/palette.yellow[50] */\n Yellow50 = 'Yellow50',\n /** Shades/palette.yellow[400] */\n Yellow400 = 'Yellow400',\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 { UserData } from '../api';\nimport { getUserData } from '../api';\nimport { onUserDataFetchSuccess } from '../utils';\nimport type { UseUserDataParams } from './types';\n\nexport const useUserData = (params: UseUserDataParams) => {\n const { data, error } = useSWR('key', async () => getUserData(), {\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';\n\nexport interface UserData {\n email: string | null;\n telephoneNumber: string | null;\n}\n\nexport const getUserData = async (): Promise => {\n const response = await axios.get(\n new URL('/system/ajax/stockNotification/userData', 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 { LoadingButton, styled } from '@ori-ui/mui';\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 SubmitButton = styled(LoadingButton)(({ theme }) => ({\n marginTop: theme.spacing(3),\n}));\n","import { TextField } from '@ori-ui/mui';\nimport useTestId from '@ori/testid-generator';\nimport type { FC, SyntheticEvent } from 'react';\nimport React, { useState, useCallback, useMemo } from 'react';\nimport { z } from 'zod';\n\nimport { useAppContext } from '../../contexts';\nimport { useTranslations } from '../../hooks';\nimport { BackInStockNotificationChannel } from '../../models';\nimport { NOTIFY_FORM, NOTIFY_FORM_INPUT, NOTIFY_FORM_SUBMIT } from './constants';\nimport { Field, Form, Root, SubmitButton } from './styles';\nimport type { NotifyFormProps } from './types';\n\nconst DATA_TESTID = 'data-testid';\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\n const isCorrectInputData: boolean = isEmail\n ? z.string().email().safeParse(inputData).success\n : z\n .string()\n .regex(/^\\+?\\d+$/)\n .safeParse(inputData).success;\n\n const isInvalid = !inputData.length || !isCorrectInputData;\n const [submitLoading, setSubmitLoading] = useState(false);\n const [isSubmitted, setIsSubmitted] = useState(false);\n\n const isSubmittedWithInvalidData = isInvalid && isSubmitted;\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 setIsSubmitted(true);\n\n if (!isCorrectInputData) {\n return;\n }\n\n try {\n setSubmitLoading(true);\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 } catch (error) {\n // eslint-disable-next-line no-console -- error log\n console.log(error);\n } finally {\n setSubmitLoading(false);\n }\n },\n [isCorrectInputData, subscribe, isEmail, productCode, inputData, onSubmit],\n );\n\n return (\n \n
\n \n \n \n
\n \n {translations.submitNotification}\n \n
\n );\n};\n","export const NOTIFY_FORM = 'notify-form';\nexport const NOTIFY_FORM_INPUT = 'notify-form-input';\nexport const NOTIFY_FORM_SUBMIT = 'notify-form-submit';\n","import { Toggle } from '@ori-ui/components';\nimport { styled } from '@ori-ui/mui';\n\nexport const Root = styled(Toggle)(({ theme }) => ({\n fontSize: theme.typography.pxToRem(14),\n marginBottom: theme.spacing(4),\n}));\n","import useTestId from '@ori/testid-generator';\nimport type { FC } from 'react';\nimport React, { useCallback, useState } from 'react';\n\nimport { useAppContext } from '../../contexts';\nimport { useTranslations } from '../../hooks';\nimport { BackInStockNotificationChannel } from '../../models';\nimport { NOTIFY_TYPE } from './constants';\nimport { Root } from './styles';\nimport type { NotifyTypeProps } from './types';\n\nexport const NotifyType: FC = ({ currentType, onChange }) => {\n const { getTestId } = useTestId();\n const { config } = useAppContext();\n const { translations } = useTranslations();\n const [isSelected, setIsSelected] = useState(currentType !== BackInStockNotificationChannel.Email);\n\n const handleChange = useCallback(\n ({ currentTarget: { checked } }: React.ChangeEvent) => {\n setIsSelected(checked);\n onChange(checked ? BackInStockNotificationChannel.Sms : BackInStockNotificationChannel.Email);\n },\n [onChange],\n );\n\n if (!config?.smsSubscriptionEnabled) {\n return null;\n }\n\n return (\n \n );\n};\n","export const NOTIFY_TYPE = 'notify-type';\n","import { styled, Typography } from '@ori-ui/mui';\n\nexport const Root = styled('div')(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n}));\n\nexport const IconWrap = styled('div')(({ theme }) => ({\n color: theme.palette.primary.main,\n display: 'flex',\n fontSize: theme.typography.pxToRem(80),\n justifyContent: 'center',\n marginTop: theme.spacing(5),\n [theme.breakpoints.up('sm')]: {\n marginTop: theme.spacing(11),\n },\n}));\n\nexport const Header = styled(Typography)(({ theme }) => ({\n color: theme.palette.text.primary,\n display: 'flex',\n fontSize: theme.typography.pxToRem(25),\n justifyContent: 'center',\n lineHeight: theme.typography.pxToRem(20),\n margin: theme.spacing(4, 0),\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 { ClearCircle } from '@ori-ui/icons';\nimport useTestId from '@ori/testid-generator';\nimport type { FC } from 'react';\nimport React from 'react';\n\nimport { useTranslations } from '../../hooks';\nimport { Header, Root, TextInfo } from '../Thanks/styles';\nimport { REQUEST_FAILED } from './constants';\nimport { IconWrap } from './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 submitNotification = 'submitNotification',\n thankYou = 'thankYou',\n}\n","import { CheckCircle } from '@ori-ui/icons';\nimport useTestId from '@ori/testid-generator';\nimport type { FC } from 'react';\nimport React from 'react';\n\nimport { useTranslations } from '../../hooks';\nimport { BackInStockNotificationChannel, TranslationKey } from '../../models';\nimport { THANKS } from './constants';\nimport { Header, IconWrap, Root, TextInfo } from './styles';\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 { ChangeEvent, FC } from 'react';\nimport React, { useEffect, useMemo, useCallback, useState } from 'react';\n\nimport { useAppContext } from '../../contexts';\nimport { useTranslations, useUserData } from '../../hooks';\nimport { BackInStockNotificationChannel } from '../../models';\nimport { Loading } from '../Loading';\nimport { NotifyForm } from '../NotifyForm';\nimport { NotifyType } from '../NotifyType';\nimport { RequestFailed } from '../RequestFailed';\nimport { Thanks } from '../Thanks';\nimport { Header, InfoText, Root } from './styles';\n\nexport const NotifyCumulus: FC = () => {\n const { config, productCode, successClose } = useAppContext();\n const { translations } = useTranslations();\n const [currentType, setCurrentType] = useState(\n config?.isSmsChannelDefault ? BackInStockNotificationChannel.Sms : BackInStockNotificationChannel.Email,\n );\n const [inputData, setInputData] = useState('');\n const [isReserved, setIsReserved] = useState(false);\n const { userData, loading, error } = useUserData({ currentType, setInputData });\n const isEmail: boolean = BackInStockNotificationChannel.Email === currentType;\n\n useEffect(() => {\n if (userData.email && currentType === BackInStockNotificationChannel.Email) {\n setInputData(userData.email);\n } else if (userData.telephoneNumber && currentType === BackInStockNotificationChannel.Sms) {\n setInputData(userData.telephoneNumber);\n }\n }, [currentType, userData.email, userData.telephoneNumber]);\n\n const onChangeData = useCallback((event: ChangeEvent) => {\n const trimmedValue = event.currentTarget.value.trim();\n setInputData(trimmedValue);\n }, []);\n\n const onChangeType = useCallback((selectedType: BackInStockNotificationChannel): void => {\n setCurrentType(selectedType);\n }, []);\n\n const label = useMemo(\n () => (isEmail ? translations.enterYourEmail : translations.enterTelephoneNumber),\n [isEmail, translations.enterTelephoneNumber, translations.enterYourEmail],\n );\n\n const onSubmit = useCallback((): void => {\n setIsReserved(true);\n successClose();\n }, [successClose]);\n\n if (loading) {\n return ;\n }\n\n if (error) {\n return (\n \n \n \n );\n }\n\n return (\n \n {isReserved ? (\n \n ) : (\n <>\n
{translations.notifyMe}
\n {label}\n \n \n \n )}\n
\n );\n};\n","import { Dialog } from '@ori-ui/components';\nimport type { FC } from 'react';\n\nimport { useAppContext } from '../../contexts';\nimport { Loading } from '../Loading';\nimport { NotifyCumulus } from '../NotifyCumulus';\n\nexport const NotifyPopup: FC = () => {\n const { close, loading, open } = useAppContext();\n\n return (\n \n {loading ? : }\n \n );\n};\n","/* istanbul ignore file */\n\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 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 submitNotification: 'Notify me',\n thankYou: 'Thank you!',\n};\n\nexport const translationsNamespace = 'back-in-stock-notification';\n","/* istanbul ignore file */\nimport { useToken } from '@ori/auth';\nimport { useServiceUrls } from '@ori/configuration-manager';\nimport { useEnvironmentConfiguration } from '@ori/environment';\nimport { TranslationsNamespaceProvider, TranslationsProvider, useTranslationsWithNamespaces } from '@ori/i18n';\nimport { ErrorBoundary } from '@ori/presentation-components';\nimport { ApiClientProvider as StaticApiClientProvider } from '@ori/static-api-client-react';\nimport { Team, TestIdProvider } from '@ori/testid-generator';\nimport type { FC } from 'react';\nimport React, { Suspense } from 'react';\n\nimport { NotifyPopup } from '../../components';\nimport { PACKAGE_NAME, defaultTranslations } from '../../constants';\nimport { AppContextProvider } from '../../contexts';\nimport type { BackInStockNotificationControllerProps } from './types';\n\nexport const BackInStockNotificationController: FC = ({ translations }) => {\n const { tenant = '' } = useEnvironmentConfiguration();\n const { language } = useTranslationsWithNamespaces();\n const { staticApiUrl } = useServiceUrls(['staticApi']);\n const { token } = useToken();\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import { BackInStockNotificationController } from '@ori/back-in-stock-notification';\nimport type { PickClientAppDataConfigProps } from '@ori/client-app-config';\nimport { ServiceUrlsProvider } from '@ori/configuration-manager';\nimport { EnvironmentProvider } from '@ori/environment';\nimport { TranslationsProvider } from '@ori/i18n';\nimport type { FC } from 'react';\n\nexport type AppProps = PickClientAppDataConfigProps<'currentLanguage' | 'graphqlUrl' | 'staticApiUrl' | 'tenant'>;\nexport const App: FC = ({ currentLanguage, graphqlUrl, staticApiUrl, tenant }) => (\n \n \n \n \n \n \n \n);\n","import { ThemeProvider } from '@ori-ui/mui';\nimport { UniversalTokenProvider, doDevelopmentLogin } from '@ori/auth';\nimport type { PickClientAppDataConfigProps } from '@ori/client-app-config';\nimport { parseClientAppConfig } from '@ori/client-app-config';\nimport { ErrorBoundary } from '@ori/presentation-components';\nimport { createRoot } from 'react-dom/client';\n\nimport type { AppProps } from './App';\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 { customerId, identityUrl, ...appConfig } = parseClientAppConfig<\n AppProps & PickClientAppDataConfigProps<'customerId' | 'identityUrl'>\n >(config, ['graphqlUrl', 'staticApiUrl', 'tenant', 'currentLanguage']);\n const { tenant } = appConfig;\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":["PACKAGE_NAME","Name","subscribeToBackInStockNotification","gql","_templateObject","_taggedTemplateLiteral","defaultClose","AppContext","createContext","config","undefined","loading","open","productCode","close","subscribe","async","successClose","AppContextProvider","_ref","children","graphQlUrl","useServiceUrls","_useToken","useToken","customerId","token","_useEnvironmentConfig2","useEnvironmentConfiguration","tenant","language","useTranslationsWithNamespaces","_useDialogProps","_useState","useState","_useState2","_slicedToArray","setProductCode","_useState3","_useState4","setOpen","useCallback","setTimeout","useEffect","openDialog","event","code","detail","window","addEventListener","removeEventListener","useDialogProps","input","fetchGraphql","query","url","headers","getHeaders","sourceAppName","variables","_useGetTenantBackInSt","useGetTenantBackInStockNotificationsConfiguration","lang","swr","enabled","revalidateOnFocus","revalidateOnReconnect","revalidateIfStale","data","error","useMemo","_jsx","Provider","value","useAppContext","useContext","Root","styled","shouldForwardProp","theme","_ref$isSmsEnabled","isSmsEnabled","_defineProperty","overflow","height","breakpoints","up","boxSizing","padding","spacing","width","Header","Typography","_ref3","textAlign","marginBottom","InfoText","_ref4","display","WebkitLineClamp","WebkitBoxOrient","Inner","Box","alignItems","flexDirection","justifyContent","Loading","CircularProgress","size","useTranslations","useTranslationsFromNamespace","BackInStockNotificationChannel","useUserData","params","currentType","setInputData","_useSWR","useSWR","response","axios","get","URL","location","origin","toString","validateStatus","handleResponse","onError","email","telephoneNumber","onSuccess","res","getUserData","fetchedData","Email","Sms","userData","backgroundColor","palette","common","white","borderRadius","Form","Field","_ref2","position","SubmitButton","LoadingButton","marginTop","NotifyForm","inputData","onSubmit","onChange","getTestId","useTestId","translations","isEmail","isCorrectInputData","z","string","safeParse","success","regex","isInvalid","length","submitLoading","setSubmitLoading","isSubmitted","setIsSubmitted","isSubmittedWithInvalidData","errorLabel","invalidEmail","invalidTelephoneNumber","onClick","preventDefault","notificationChannel","itemCode","console","log","_jsxs","TextField","required","label","variant","type","helperText","inputProps","fullWidth","color","submitNotification","Toggle","fontSize","typography","pxToRem","NotifyType","isSelected","setIsSelected","handleChange","checked","currentTarget","smsSubscriptionEnabled","firstText","secondText","sms","role","IconWrap","primary","main","text","lineHeight","margin","TextInfo","_ref5","paddingBottom","IconWrapComponent","RequestFailed","ClearCircle","requestFailed","pleaseTryAgainLater","TranslationKey","Thanks","_useTranslations","formatMessage","CheckCircle","thankYou","notifyMeSuccess","NotifyCumulus","_useAppContext","isSmsChannelDefault","setCurrentType","_useState5","_useState6","isReserved","setIsReserved","_useUserData","onChangeData","trimmedValue","trim","onChangeType","selectedType","enterYourEmail","enterTelephoneNumber","_Fragment","notifyMe","NotifyPopup","Dialog","onClose","defaultTranslations","chooseAnOption","BackInStockNotificationController","staticApiUrl","TestIdProvider","team","Team","Presentation","project","ErrorBoundary","Suspense","fallback","TranslationsProvider","defaultTranslationsWithNamespaces","translationsWithNamespaces","clientFetchConfiguration","baseUrl","TranslationsNamespaceProvider","namespace","StaticApiClientProvider","App","currentLanguage","graphqlUrl","ServiceUrlsProvider","serviceUrls","EnvironmentProvider","render","rootElement","_rootElement$dataset$","dataset","_parseClientAppConfig","parseClientAppConfig","appConfig","identityUrl","_objectWithoutProperties","_excluded","createRoot","UniversalTokenProvider","initialToken","ThemeProvider","enableCacheProvider","cacheKey","EMOTION_CACHE_KEY","_objectSpread"],"sourceRoot":""}