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webpack://ipf/./src/components/Collection/Specification.tsx","webpack://ipf/./src/components/GatsbyImageWithArtDirection.tsx","webpack://ipf/./src/components/GridSection.tsx","webpack://ipf/./src/reducers/orderCheckoutReducer/types.ts","webpack://ipf/./src/reducers/orderCheckoutReducer/index.ts","webpack://ipf/./src/reducers/orderCheckoutReducer/action-creators.ts","webpack://ipf/./src/components/Input.tsx","webpack://ipf/./src/constants/configuratorTranlsations.ts","webpack://ipf/./src/components/OrderCheckout/OrderCheckout.tsx","webpack://ipf/./src/components/Styled/ConfiguratorIframe.ts","webpack://ipf/./src/components/Wrapper.tsx","webpack://ipf/./src/hooks/useListenIframe.ts"],"sourcesContent":["import React from \"react\";\nimport { get } from \"../../constants/theme\";\nimport { SpecificationsQuery } from \"../../types/pages/collection\";\nimport { graphql, useStaticQuery } from \"gatsby\";\nimport Box from \"../Box/Box\";\nimport styled from \"styled-components\";\nimport { SxProp } from \"../../constants/sx\";\nimport css from \"@styled-system/css\";\nimport { Paragraph, Title } from \"../Styled/Text\";\nimport { clampBuilder } from \"../../helpers/sizeCalc\";\n\ntype Props = {\n listspec:{\n list: Array <{\n field: string;\n value: string;\n }>\n title: string;\n footer?: string;\n }\n};\n\nexport const SpecFieldText = styled(\"span\")`\n font-family: custom_42266;\n font-weight: 400;\n font-size: 12px;\n font-size: clamp(0.75rem, 0.4729rem + 0.7401vw, 1.25rem);\n line-height: 26px;\n text-transform: uppercase;\n text-align: center;\n color: ${get(\"palette.text.brown\")};\n\n @media screen and (max-width: 599px) {\n font-size: 16px;\n line-height: 26px;\n font-size: clamp(1.125rem, 0.4082rem + 3.5842vw, 1.75rem);\n }\n\n ${(p) => p.sx && css({ ...p.sx })};\n`;\n\nconst Specification = ({listspec}: Props) => {\n \n\n return (\n \n \n {listspec.title}\n \n\n :nth-child(1n)\": {\n marginBottom: [0, 0, \"24px\", \"24px\"],\n \"::after\": {\n display: [\"block\", \"block\", \"none\", \"none\"],\n\n content: `\"\"`,\n width: \"50px\",\n height: \"1px\",\n maxHeight: \"1px\",\n opacity: 0.85,\n margin: \"clamp(1.4375rem, -1.1328rem + 12.8516vw, 3.6785rem) 0\",\n background: get(\"palette.text.dark_gold\"),\n },\n },\n \"& > :last-child\": {\n marginBottom: 0,\n \"::after\": {\n display: \"none\",\n },\n },\n }}\n >\n {listspec.list.map((item) => (\n \n \n {item.field}\n \n \n \n {item.value}\n \n \n ))}\n \n {listspec.footer}\n \n \n\n \n );\n};\n\nexport default React.memo(Specification);\n","import { SystemStyleObject } from \"@styled-system/css\";\nimport {\n GatsbyImage,\n IGatsbyImageData,\n withArtDirection,\n GatsbyImageProps,\n} from \"gatsby-plugin-image\";\nimport React, { useMemo } from \"react\";\nimport { breakpoints } from \"../constants/theme\";\nimport Box from \"./Box/Box\";\n\ninterface Props extends Omit {\n desktopImage: IGatsbyImageData;\n alt: string;\n mobileImage?: IGatsbyImageData;\n sx?: SystemStyleObject;\n imgStyle?: React.CSSProperties;\n loading?: \"eager\" | \"lazy\";\n}\n\nfunction GatsbyImageWithArtDirection({\n desktopImage,\n alt,\n mobileImage,\n imgStyle,\n sx,\n loading = undefined,\n ...imgProps\n}: Props) {\n const image = useMemo(() => {\n if (!mobileImage) return desktopImage;\n return withArtDirection(desktopImage, [\n {\n media: `(max-width: ${breakpoints[0]})`,\n image: mobileImage,\n },\n {\n media: `(max-width: ${breakpoints[1]})`,\n image: desktopImage,\n },\n {\n media: `(max-width: ${breakpoints[2]})`,\n image: desktopImage,\n },\n {\n media: `(max-width: ${breakpoints[3]})`,\n image: desktopImage,\n },\n ]);\n }, [desktopImage, mobileImage]);\n\n return (\n \n );\n}\n\nexport default GatsbyImageWithArtDirection;\n","import css, { SystemStyleObject } from \"@styled-system/css\";\nimport React from \"react\";\nimport styled from \"styled-components\";\nimport { variant } from \"styled-system\";\nimport { SxProp } from \"../constants/sx\";\nimport { get } from \"../constants/theme\";\nimport useWindowSize from \"../hooks/useWindowSize\";\nimport Box from \"./Box/Box\";\n\nexport type GridSectionFirstChildrenType =\n | \"textBox\"\n | \"imageBox\"\n | \"topImageBox\"\n | \"topLeftImageBox\";\n\nexport type GridSectionSecondChildrenType =\n | \"textBox\"\n | \"imageBox\"\n | \"bottomTextBox\"\n | \"bottomRightTextBox\";\n\ntype Props = {\n firstChildrenType: GridSectionFirstChildrenType;\n secondChildrenType: GridSectionSecondChildrenType;\n children: [React.ReactNode, React.ReactNode];\n mainContainerSx?: SystemStyleObject;\n firstChildrenWrapperSx?: SystemStyleObject;\n secondChildrenWrapperSx?: SystemStyleObject;\n};\n\nconst GridContainer = styled(Box)`\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n align-items: center;\n flex-direction: row;\n justify-content: space-between;\n margin-top: 40px;\n /* min-height: ${(props) =>\n props.containerMinHeight ? `${props.containerMinHeight}px` : \"100vh\"}; */\n width: 100%;\n & > :nth-child(1n) {\n flex: 1;\n }\n\n @media screen and (max-width: 768px) {\n flex-direction: column;\n padding: 0;\n margin-top: 100px;\n }\n\n ${(props) => props.sx && css({ ...props.sx })};\n`;\n\nconst FirstChildrenWrapper = styled(Box)<\n SxProp & { variant: GridSectionFirstChildrenType }\n>`\n width: 100%;\n\n ${variant({\n variants: {\n textBox: {\n display: \"flex\",\n gridColumnStart: [1, 1, 1, 1],\n gridColumnEnd: [13, 7, 7, 7],\n gridRowStart: [1, 1, 1, 1],\n flexDirection: \"column\",\n justifyContent: \"center\",\n alignItems: \"center\",\n fontWeight: 400,\n fontFamily: \"custom_42264\",\n color: get(\"palette.text.brown\"),\n textAlign: [\"left\", \"left\", \"left\", \"left\"],\n fontSize: \"1.5vmax\",\n width: \"100%\",\n marginTop: [\"20px\", 0, 0, 0],\n marginBottom: [\"20px\", 0, 0, 0],\n },\n imageBox: {\n gridColumnStart: [1, 1, 1, 1],\n gridColumnEnd: [13, 6, 6, 6],\n },\n topImageBox: {\n width: \"100%\",\n marginTop: [0, \"40px\", \"60px\", \"80px\"],\n gridColumnStart: [1, 5, 5, 5],\n gridColumnEnd: [13, 12, 12, 12],\n gridRowStart: [2, 1, 1, 1],\n marginBottom: [0, \"40px\", \"60px\", \"80px\"],\n },\n topLeftImageBox: {\n width: \"100%\",\n gridColumnStart: [1, 2, 2, 2],\n gridColumnEnd: [13, 8, 8, 8],\n gridRowStart: [2, 1, 1, 1],\n marginBottom: [0, \"40px\", \"60px\", \"80px\"],\n },\n },\n })}\n ${(props) => props.sx && css({ ...props.sx })};\n`;\n\nconst SecondChildrenWrapper = styled(Box)<\n SxProp & { variant: GridSectionSecondChildrenType }\n>`\n width: 100%;\n ${variant({\n variants: {\n textBox: {\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n fontWeight: 400,\n fontFamily: \"custom_42264\",\n color: get(\"palette.text.brown\"),\n textAlign: [\"left\", \"left\", \"left\", \"left\"],\n fontSize: \"1.5vmax\",\n gridColumnStart: [1, 7, 7, 7],\n gridColumnEnd: [13, 13, 13, 13],\n gridRowStart: [1, 1, 1, 1],\n marginTop: [\"20px\", 0, 0, 0],\n marginBottom: [\"20px\", 0, 0, 0],\n },\n imageBox: {\n marginBottom: \"20px\",\n gridColumnStart: [1, 8, 8, 8],\n gridColumnEnd: [13, 13, 13, 13],\n gridRowStart: [2, 1, 1, 1],\n },\n bottomTextBox: {\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n fontWeight: 400,\n fontFamily: \"custom_42264\",\n color: get(\"palette.text.brown\"),\n textAlign: [\"left\", \"left\", \"left\", \"left\"],\n fontSize: \"1.5vmax\",\n gridColumnStart: [1, 1, 1, 1],\n gridColumnEnd: [13, 7, 7, 7],\n gridRowStart: [1, 2, 2, 2],\n marginTop: [\"20px\", 0, 0, 0],\n marginBottom: \"20px\",\n },\n bottomRightTextBox: {\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"center\",\n fontWeight: 400,\n fontFamily: \"custom_42264\",\n color: get(\"palette.text.brown\"),\n textAlign: [\"left\", \"left\", \"left\", \"left\"],\n fontSize: \"1.5vmax\",\n gridColumnStart: [1, 7, 7, 7],\n gridColumnEnd: [13, 13, 13, 13],\n gridRowStart: [1, 2, 2, 2],\n marginTop: [\"20px\", 0, 0, 0],\n marginBottom: \"20px\",\n },\n },\n })}\n\n ${(props) => props.sx && css({ ...props.sx })};\n`;\n\nconst GridSection = ({\n firstChildrenType,\n secondChildrenType,\n children,\n mainContainerSx,\n firstChildrenWrapperSx,\n secondChildrenWrapperSx,\n}: Props) => {\n const { height } = useWindowSize();\n\n return (\n \n \n {children[0]}\n \n \n {children[1]}\n \n \n );\n};\n\nexport default React.memo(GridSection);\n","export enum CheckoutState {\n DESIGN_SUBMISSION = \"DESIGN_SUBMISSION\",\n USER_INFO_SUBMISSION = \"USER_INFO_SUBMISSION\",\n ORDER_SUBMITTED = \"ORDER_SUBMITTED\",\n}\n\nexport interface OrderCheckoutState {\n checkoutState: CheckoutState;\n}\n\nexport enum OrderCheckoutActionEnum {\n SET_CHECKOUT_STATE = \"SET_CHECKOUT_STATE\",\n}\n\nexport type SetCheckoutState = {\n type: OrderCheckoutActionEnum.SET_CHECKOUT_STATE;\n payload: CheckoutState;\n};\n\nexport type OrderCheckoutActions = SetCheckoutState;\n","import {\n OrderCheckoutState as State,\n OrderCheckoutActions as Action,\n OrderCheckoutActionEnum,\n CheckoutState,\n} from \"./types\";\n\nexport const initialState: State = {\n checkoutState: CheckoutState.DESIGN_SUBMISSION,\n};\n\nconst orderCheckoutReducer = (state: State, action: Action): State => {\n switch (action.type) {\n case OrderCheckoutActionEnum.SET_CHECKOUT_STATE:\n return { ...state, checkoutState: action.payload };\n\n default:\n return { ...state };\n }\n};\n\nexport default orderCheckoutReducer;\n","import {\n CheckoutState,\n SetCheckoutState,\n OrderCheckoutActionEnum,\n} from \"./types\";\n\nexport const changeCheckoutState = (\n state: CheckoutState\n): SetCheckoutState => ({\n type: OrderCheckoutActionEnum.SET_CHECKOUT_STATE,\n payload: state,\n});\n","import { SystemStyleObject } from \"@styled-system/css\";\nimport React, { HTMLInputTypeAttribute } from \"react\";\nimport { UseFormRegisterReturn } from \"react-hook-form\";\nimport styled from \"styled-components\";\nimport { SxProp } from \"../constants/sx\";\nimport { get } from \"../constants/theme\";\nimport Box from \"./Box/Box\";\n\nexport const StyledInput = styled(\"input\")`\n font-family: custom_42266;\n font-style: normal;\n font-weight: 400;\n width: 100%;\n color: ${get(\"palette.text.dark_gold\")};\n font-feature-settings: \"liga\" 0, \"rlig\" 0, \"dlig\" 0, \"hlig\" 0, \"smcp\" 0;\n text-rendering: optimizelegibility;\n -webkit-font-smoothing: antialiased;\n font-size: 16px;\n font-size: clamp(1rem, 0.4459rem + 1.4801vw, 2rem);\n line-height: 22px;\n margin-bottom: 2px;\n background: transparent;\n outline: 0;\n border-radius: 0;\n border: 0;\n box-shadow: none;\n\n &:-webkit-autofill,\n &:-webkit-autofill:hover,\n &:-webkit-autofill:focus {\n font-family: custom_42266;\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n font-size: clamp(1rem, 0.4459rem + 1.4801vw, 2rem);\n box-shadow: 0 0 0 30px ${(p) => (p.autofill ? p.autofill.bg : \"inherit\")}\n inset !important;\n -webkit-box-shadow: 0 0 0 30px\n ${(p) => (p.autofill ? p.autofill.bg : \"inherit\")} solid !important;\n background-color: ${(p) =>\n p.autofill ? p.autofill.bg : \"inherit\"} !important;\n background-clip: content-box !important;\n caret-color: ${get(\"palette.text.dark_gold\")};\n }\n\n &:-webkit-autofill {\n -webkit-text-fill-color: ${get(\"palette.text.dark_gold\")} !important;\n }\n\n &::placeholder {\n font-family: custom_42266;\n font-style: normal;\n font-weight: 400;\n font-size: 16px;\n font-size: clamp(1rem, 0.4459rem + 1.4801vw, 2rem);\n font-family: custom_42266;\n line-height: 22px;\n font-feature-settings: \"liga\" 0, \"rlig\" 0, \"dlig\" 0, \"hlig\" 0, \"smcp\" 0;\n text-rendering: optimizelegibility;\n -webkit-font-smoothing: antialiased;\n margin-bottom: 2px;\n text-transform: uppercase;\n\n @media screen and (max-width: 599px) {\n font-size: 21px;\n font-size: clamp(1.3125rem, 0.0939rem + 6.0932vw, 2.375rem);\n }\n }\n\n @media screen and (max-width: 599px) {\n font-size: 21px;\n line-height: 21px;\n font-size: clamp(1.3125rem, 0.0939rem + 6.0932vw, 2.375rem);\n\n &:-webkit-autofill,\n &:-webkit-autofill:hover,\n &:-webkit-autofill:focus {\n font-size: 21px;\n line-height: 21px;\n font-size: clamp(1.3125rem, 0.0939rem + 6.0932vw, 2.375rem);\n }\n }\n`;\n\ntype Props = {\n placeholder?: string;\n type: HTMLInputTypeAttribute;\n register: UseFormRegisterReturn;\n sx?: SystemStyleObject;\n autoComplete?: \"off\" | \"on\";\n error?: boolean;\n autofil: {\n bg: any;\n };\n};\n\nconst Input = ({\n placeholder = \"\",\n autoComplete = \"on\",\n type,\n register,\n error = false,\n sx,\n autofil,\n}: Props) => {\n return (\n \n \n \n \n );\n};\n\nexport default React.memo(Input);\n","export const configuratorComponentsTranslation = {\n en: {\n STONE_RING: {\n \"Tiger's Eye\": \"Tiger Jasper\",\n \"Goldstone Green\": \"Goldstone Green\",\n Printstone: \"Red Jasper\",\n \"Natural Agate Brown\": \"Natural Agate Brown\",\n \"Mahagony Obsidian\": \"Mahagony Obsidian\",\n \"Blue Lace\": \"Blue Lace\",\n \"Natural Agate White\": \"Natural Agate White\",\n \"Natural Agate Yellow\": \"Natural Agate Yellow\",\n Carnelian: \"Carnelian\",\n \"Lapis Lazuli\": \"Lapis Lazuli\",\n \"Landscape Jasper\": \"Landscape Jasper\",\n \"Picasso Jasper\": \"Jasper Graphics\",\n \"Kalahari Jasper\": \"Sand Jasper\",\n Dumortierite: \"Dumortierite\",\n \"Brown Agate\": \"Brown Agate\",\n Howlith: \"Howlith\",\n \"Jasper Yellow\": \"Jasper Yellow\",\n \"Quartz Blue\": \"Quartz Blue\",\n Rhodonite: \"Rhodonite\",\n Verdite: \"Verdite\",\n },\n CASE: {\n white: \"WHITE GOLD\",\n rose: \"ROSE GOLD\",\n \"white with diamonds\": \"WHITE GOLD with diamonds\",\n \"rose with diamonds\": \"ROSE GOLD with diamonds\",\n },\n DIAL: {\n \"black gold\": \"black gold\",\n \"black silver\": \"black silver\",\n \"white gold\": \"white gold\",\n \"white blue\": \"white blue\",\n \"white black\": \"white black\",\n \"black black\": \"black black\",\n },\n HANDS: {\n black: \"BLACK\",\n white: \"WHITE\",\n },\n STRAP: {\n brown: \"BROWN\",\n black: \"BLACK\",\n blue: \"BLUE\",\n white: \"WHITE\",\n },\n },\n ru: {\n STONE_RING: {\n \"Tiger's Eye\": \"Тигровая яшма\",\n \"Goldstone Green\": \"Зелёный Авантюрин\",\n Printstone: \"Красная яшма\",\n \"Natural Agate Brown\": \"Коричневый агат \",\n \"Mahagony Obsidian\": \"Махагоновый Обсидиан\",\n \"Blue Lace\": \"Голубой Агат\",\n \"Natural Agate White\": \"Белый Агат\",\n \"Natural Agate Yellow\": \"Желтый Агат\",\n Carnelian: \"Сердолик\",\n \"Lapis Lazuli\": \"Лазурит\",\n \"Landscape Jasper\": \"Пейзажная Яшма\",\n \"Picasso Jasper\": \"Яшма Графика\",\n \"Kalahari Jasper\": \"Песочная яшма\",\n Dumortierite: \"Дюмортьерит\",\n \"Brown Agate\": \"Коричневый Агат\",\n Howlith: \"Говлит\",\n \"Jasper Yellow\": \"Желтая яшма\",\n \"Quartz Blue\": \"Голубой кварц\",\n Rhodonite: \"Родонит\",\n Verdite: \"Вердит\",\n },\n CASE: {\n white: \"Белое Золото\",\n rose: \"Розовое Золото\",\n \"white with diamonds\": \"Белое Золото с бриллиантами\",\n \"rose with diamonds\": \"Розовое Золото с бриллиантами\",\n },\n DIAL: {\n \"black gold\": \"Черный с золотом\",\n \"black silver\": \"Черный с серебром\",\n \"white gold\": \"Белый с золотом\",\n \"white blue\": \"Белый с синим\",\n \"white black\": \"Белый с черным\",\n \"black black\": \"Черный с черным\",\n },\n HANDS: {\n black: \"BLACK\",\n white: \"WHITE\",\n },\n STRAP: {\n brown: \"Коричневый\",\n black: \"Черный\",\n blue: \"Синий\",\n white: \"Белый\",\n },\n },\n};\n","import { graphql, useStaticQuery } from \"gatsby\";\nimport React, { useState } from \"react\";\nimport ReactDom from \"react-dom\";\nimport { FormProvider, useForm } from \"react-hook-form\";\nimport { createNewOrder } from \"../../api/orders\";\nimport { get } from \"../../constants/theme\";\nimport useWindowSize from \"../../hooks/useWindowSize\";\nimport reducer, { initialState } from \"../../reducers/orderCheckoutReducer\";\nimport { changeCheckoutState } from \"../../reducers/orderCheckoutReducer/action-creators\";\nimport { CheckoutState } from \"../../reducers/orderCheckoutReducer/types\";\nimport { OrderSumbmisionState } from \"../../types/common/checkout\";\nimport { OrderCheckoutQuery } from \"../../types/pages/configurator\";\nimport { AnimatePresence } from \"framer-motion\";\nimport Fade from \"../Animations/Fade\";\nimport Box from \"../Box/Box\";\nimport MotionBox from \"../Box/MotionBox\";\nimport { SpecFieldText } from \"../Collection/Specification\";\nimport Input from \"../Input\";\nimport { FormBtn, Paragraph, Title } from \"../Styled/Text\";\nimport { Languages } from \"../../types/common/languages\";\nimport { configuratorComponentsTranslation as translations } from \"../../constants/configuratorTranlsations\";\nimport PersonalDataConsent from \"../PersonalDataConsent\";\nimport useAnalytics from \"../../hooks/useAnalytics\";\n\ninterface OrderCheckoutForm {\n name: string;\n phone: string;\n email: string;\n personalDataConsent: boolean;\n}\n\ntype Props = {\n order: {\n STONE_RING: string;\n CASE: string;\n HANDS: string;\n DIAL: string;\n STRAP: string;\n ENGRAVING: string;\n CUFFLINKS: boolean;\n };\n endSubmission: () => void;\n appearAnimationComplete?: (state: boolean) => void;\n};\n\nconst OrderCheckout = ({\n order,\n endSubmission,\n appearAnimationComplete,\n}: Props) => {\n const [orderSubmissionState, setOrderSubmissionState] =\n React.useState({\n isSendingRequest: false,\n isErrorOccur: null,\n isSucceed: false,\n });\n const { height } = useWindowSize();\n const { reachGoal } = useAnalytics();\n const isMenuOpened = true;\n\n const [{ checkoutState }, dispatch] = React.useReducer(reducer, initialState);\n\n const { site, translationsJson } = useStaticQuery(graphql`\n query ConfiguratorOrderCheckoutQuery {\n translationsJson {\n pages {\n configurator {\n modal {\n design_submission {\n title\n orderDetails {\n STONE_RING\n CASE\n DIAL\n HANDS\n STRAP\n ENGRAVING\n CUFFLINKS\n }\n ENGRAVING_STATUS {\n yes\n no\n }\n CUFFLINKS_STATUS {\n yes\n no\n }\n button\n }\n user_info_submission {\n title\n inputs {\n placeholder\n }\n errorMessage\n button\n }\n order_submitted {\n title\n description\n button\n }\n }\n }\n }\n }\n site {\n siteMetadata {\n lang\n }\n }\n }\n `);\n\n const { design_submission, order_submitted, user_info_submission } =\n translationsJson.pages.configurator.modal;\n\n const submitDesign = React.useCallback(() => {\n dispatch(changeCheckoutState(CheckoutState.USER_INFO_SUBMISSION));\n reachGoal(\"confirm_design\");\n }, [reachGoal]);\n const submitOrder = React.useCallback(() => {\n dispatch(changeCheckoutState(CheckoutState.ORDER_SUBMITTED));\n }, []);\n const finishSubmission = React.useCallback(() => {\n appearAnimationComplete && appearAnimationComplete(false);\n endSubmission();\n }, [endSubmission, appearAnimationComplete]);\n\n const form = useForm();\n\n const {\n register,\n handleSubmit,\n reset,\n formState: { errors },\n } = form;\n\n const submitOrderForm = React.useCallback(\n async (formData: OrderCheckoutForm) => {\n setOrderSubmissionState(() => ({\n isSendingRequest: true,\n isErrorOccur: null,\n isSucceed: false,\n }));\n try {\n await createNewOrder({\n lang: Languages[site.siteMetadata.lang],\n clientData: {\n ...formData,\n },\n orderDetails: {\n stone_ring: order.STONE_RING,\n case: order.CASE,\n dial: order.DIAL,\n hands: order.HANDS,\n strap: order.STRAP,\n engraving: order.ENGRAVING !== \"\" ? order.ENGRAVING : null,\n cufflinks: order.CUFFLINKS,\n },\n });\n reset();\n setOrderSubmissionState(() => ({\n isSendingRequest: false,\n isErrorOccur: null,\n isSucceed: true,\n }));\n submitOrder();\n } catch (error) {\n setOrderSubmissionState(() => ({\n isSendingRequest: false,\n isErrorOccur: \"Unable to create order\",\n isSucceed: false,\n }));\n setTimeout(() => {\n if (\n !orderSubmissionState.isSendingRequest ||\n !orderSubmissionState.isSucceed\n )\n setOrderSubmissionState((prev) => ({\n ...prev,\n isErrorOccur: null,\n }));\n }, 3500);\n } finally {\n reachGoal(\"send_form\");\n }\n },\n [\n order,\n reset,\n orderSubmissionState,\n submitOrder,\n site.siteMetadata.lang,\n reachGoal,\n ]\n );\n\n if (typeof document === \"undefined\") return null;\n\n return ReactDom.createPortal(\n <>\n \n \n \n {checkoutState === CheckoutState.DESIGN_SUBMISSION && (\n <>\n \n {design_submission.title.map((t, i) => (\n \n {t}\n \n ))}\n \n\n \n {Object.keys(design_submission.orderDetails).map((v) => {\n if (v === \"HANDS\") return null;\n return (\n \n \n {\n design_submission.orderDetails[\n v as keyof typeof design_submission.orderDetails\n ]\n }\n \n \n \n {v === \"ENGRAVING\"\n ? order.ENGRAVING.length\n ? design_submission.ENGRAVING_STATUS.yes\n : design_submission.ENGRAVING_STATUS.no\n : null}\n {v === \"CUFFLINKS\"\n ? order.CUFFLINKS\n ? design_submission.CUFFLINKS_STATUS.yes\n : design_submission.CUFFLINKS_STATUS.no\n : null}\n {!(v === \"ENGRAVING\" || v === \"CUFFLINKS\")\n ? //@ts-ignore\n translations[site.siteMetadata.lang][v][order[v]]\n : null}\n \n \n );\n })}\n \n \n {`${design_submission.button}`}\n \n \n )}\n {checkoutState === CheckoutState.USER_INFO_SUBMISSION && (\n <>\n :nth-child(1n)\": {\n textAlign: \"center\",\n },\n }}\n >\n {user_info_submission.title.map((t, i) => (\n \n {t}\n \n ))}\n \n\n \n div > input\": {\n \"::placeholder\": {\n color: get(\"palette.text.gold\"),\n opacity: 0.85,\n },\n },\n }}\n as=\"form\"\n onSubmit={handleSubmit(submitOrderForm)}\n >\n {\n return v.trim().length > 0 ? true : \"error\";\n },\n })}\n />\n\n {\n return v.trim().length > 0 ? true : \"error\";\n },\n })}\n />\n\n ()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,\n })}\n />\n\n \n\n \n {!orderSubmissionState.isErrorOccur ? (\n \n \n {user_info_submission.button}\n \n \n ) : (\n \n \n {user_info_submission.errorMessage}\n \n \n )}\n \n \n \n \n )}\n {checkoutState === CheckoutState.ORDER_SUBMITTED && (\n <>\n {order_submitted.title.map((t, i) => (\n \n {t}\n \n ))}\n \n {order_submitted.description}\n \n \n {`${order_submitted.button}`}\n \n \n )}\n \n\n \n :nth-child(1n)\": {\n position: \"absolute\",\n height: [\"1.5px\", \"3px\", \"3px\", \"3px\"],\n width: \"100%\",\n transition: [\"background\"]\n .map((prop) => `${prop} 0.5s ease-in-out`)\n .join(\",\"),\n background: isMenuOpened\n ? get(\"palette.text.dark_gold\")\n : \"white\",\n },\n }}\n >\n \n \n \n \n \n \n ,\n document.getElementById(\"portal\")!\n );\n};\n\nexport default React.memo(OrderCheckout);\n","import css from \"@styled-system/css\";\nimport { motion } from \"framer-motion\";\nimport styled from \"styled-components\";\nimport { SxProp } from \"../../constants/sx\";\n\nexport const ConfiguratorIframeBox = styled(motion.iframe)<\n SxProp & {\n $iframeHeight?: number | undefined;\n }\n>`\n display: block;\n border: none;\n height: 971px;\n width: 100vw;\n margin-bottom: 80px;\n @media (max-width: 720px) {\n height: 1080px;\n ${(props) => props.$iframeHeight && css({ height: props.$iframeHeight })};\n }\n\n @media (max-width: 420px) {\n height: 780px;\n ${(props) => props.$iframeHeight && css({ height: props.$iframeHeight })};\n }\n\n ${(props) => props.$iframeHeight && css({ height: props.$iframeHeight })};\n\n ${(props) => props.sx && css({ ...props.sx })};\n`;\n\nexport default ConfiguratorIframeBox;\n","import css, { SystemStyleObject } from \"@styled-system/css\";\nimport React from \"react\";\nimport styled from \"styled-components\";\nimport { variant } from \"styled-system\";\nimport { SxProp } from \"../constants/sx\";\nimport { get } from \"../constants/theme\";\nimport useWindowSize from \"../hooks/useWindowSize\";\nimport Box from \"./Box/Box\";\n\nconst Wrapper = styled(Box)`\n\n padding-left: calc(100vw/12 + 5%);\n padding-right: calc(100vw/12);\n max-width: 2560px;\n margin: 0 auto;\n @media screen and (max-width: 768px) {\n padding: 0;\n }\n\n\n ${(props) => props.sx && css({ ...props.sx })};\n`;\n\n\n\n\n\nexport default React.memo(Wrapper);","import React from \"react\";\n\ntype ConfiguratorMessage = {\n kind: string;\n data: any;\n};\n\nconst useListenIframe = () => {\n const [state, setState] = React.useState<\n | {\n STONE_RING: string;\n CASE: string;\n HANDS: string;\n DIAL: string;\n STRAP: string;\n ENGRAVING: string;\n CUFFLINKS: boolean;\n }\n | undefined\n >(undefined);\n\n const [isSubmitting, setIsSubmitting] = React.useState(false);\n const [iframeHeight, setIframeHeight] = React.useState(\n undefined\n );\n const closeSubmission = React.useCallback(() => {\n setIsSubmitting(false);\n }, []);\n\n React.useLayoutEffect(() => {\n window.addEventListener(\n \"message\",\n (s: MessageEvent) => {\n if (\n \"angry.sinoussi.400096.watch.configurator.pub_message\" === s.data.kind\n )\n setState(JSON.parse(s.data.data).orderDetails);\n if (\n \"angry.sinoussi.400096.watch.configurator.pub_message.SUBMIT\" ===\n s.data.kind\n ) {\n setIsSubmitting(true);\n }\n if (\n \"angry.sinoussi.400096.watch.configurator.pub_message.HEIGHT\" ===\n s.data.kind\n ) {\n console.log(\"SETTING IFRAME SIZE \", JSON.parse(s.data.data).height);\n\n setIframeHeight(JSON.parse(s.data.data).height);\n }\n },\n !1\n );\n\n return () => {\n window.removeEventListener(\n \"message\",\n (s: MessageEvent) => {\n if (\n \"angry.sinoussi.400096.watch.configurator.pub_message\" ===\n s.data.kind\n )\n setState(JSON.parse(s.data.data).orderDetails);\n if (\n \"angry.sinoussi.400096.watch.configurator.pub_message.SUBMIT\" ===\n s.data.kind\n ) {\n setIsSubmitting(true);\n }\n if (\n \"angry.sinoussi.400096.watch.configurator.pub_message.HEIGHT\" ===\n s.data.kind\n ) {\n console.log(\n \"SETTING IFRAME SIZE \",\n JSON.parse(s.data.data).height\n );\n\n setIframeHeight(JSON.parse(s.data.data).height);\n }\n },\n !1\n );\n };\n }, []);\n\n return { state, closeSubmission, isSubmitting, iframeHeight };\n};\n\nexport default useListenIframe;\n"],"names":["SpecFieldText","styled","withConfig","_templateObject","get","p","sx","css","Specification","listspec","React","Box","display","flexDirection","background","padding","marginBottom","clampBuilder","marginTop","Title","variant","textAlign","alignSelf","title","width","content","height","maxHeight","opacity","margin","list","map","item","key","field","alignItems","justifyContent","gap","whiteSpace","fontWeight","color","flex","justifySelf","value","Paragraph","footer","desktopImage","alt","mobileImage","imgStyle","loading","undefined","imgProps","image","useMemo","withArtDirection","media","breakpoints","as","GatsbyImage","GridContainer","props","containerMinHeight","FirstChildrenWrapper","_templateObject2","variants","textBox","gridColumnStart","gridColumnEnd","gridRowStart","fontFamily","fontSize","imageBox","topImageBox","topLeftImageBox","SecondChildrenWrapper","_templateObject3","bottomTextBox","bottomRightTextBox","GridSection","firstChildrenType","secondChildrenType","children","mainContainerSx","firstChildrenWrapperSx","secondChildrenWrapperSx","useWindowSize","CheckoutState","OrderCheckoutActionEnum","initialState","checkoutState","DESIGN_SUBMISSION","state","action","type","SET_CHECKOUT_STATE","payload","changeCheckoutState","StyledInput","autofill","bg","Input","placeholder","autoComplete","register","error","autofil","multiple","spellCheck","configuratorComponentsTranslation","en","STONE_RING","Printstone","Carnelian","Dumortierite","Howlith","Rhodonite","Verdite","CASE","white","rose","DIAL","HANDS","black","STRAP","brown","blue","ru","OrderCheckout","order","endSubmission","appearAnimationComplete","isSendingRequest","isErrorOccur","isSucceed","orderSubmissionState","setOrderSubmissionState","reachGoal","useAnalytics","reducer","dispatch","useStaticQuery","site","translationsJson","pages","configurator","modal","design_submission","order_submitted","user_info_submission","submitDesign","USER_INFO_SUBMISSION","submitOrder","ORDER_SUBMITTED","finishSubmission","form","useForm","handleSubmit","reset","errors","formState","submitOrderForm","formData","_context","createNewOrder","lang","Languages","siteMetadata","clientData","orderDetails","stone_ring","case","dial","hands","strap","engraving","ENGRAVING","cufflinks","CUFFLINKS","setTimeout","prev","document","ReactDom","Fade","zIndex","position","top","left","backgroundColor","transform","t","i","Object","keys","v","lineHeight","paddingRight","flexGrow","borderBottom","borderBottomColor","paddingLeft","length","ENGRAVING_STATUS","yes","no","CUFFLINKS_STATUS","translations","FormBtn","onClick","button","FormProvider","onSubmit","inputs","name","required","validate","trim","phone","pattern","email","PersonalDataConsent","AnimatePresence","exitBeforeEnter","MotionBox","initial","animate","transition","duration","ease","exit","cursor","errorMessage","description","prop","join","rotate","translateY","getElementById","ConfiguratorIframeBox","motion","$iframeHeight","Wrapper","setState","isSubmitting","setIsSubmitting","iframeHeight","setIframeHeight","closeSubmission","window","addEventListener","s","data","kind","JSON","parse","console","log","removeEventListener"],"sourceRoot":""}