{ "version": 3, "sources": ["../../javascript/entrypoints/standard-product-form.tsx", "../../javascript/StandardProductForm/App.tsx", "../../javascript/StandardProductForm/api.ts", "../../javascript/components/BrowsingOutOfRegion.tsx", "../../javascript/StandardProductForm/components/Drawer.tsx", "../../javascript/StandardProductForm/components/Option.tsx", "../../javascript/StandardProductForm/components/Swatch.tsx", "../../javascript/StandardProductForm/components/Price.tsx"], "sourcesContent": ["import ReactDOM from \"react-dom\"\nimport React from \"react\"\n\nimport parseJSONData from \"../utilities/parseJSONData\"\n\nimport MarketContext from \"../components/MarketContext\"\nimport TranslationContext from \"../components/TranslationContext\"\nimport BrowsingOutOfRegionContext from \"../components/BrowsingOutOfRegionContext\"\n\nimport StandardProductFormApp, { Variant } from \"../StandardProductForm/App\"\n\nconst node = document.getElementById(\"react-standard-product-form\")\n\nif (node) {\n const productData = parseJSONData(node.dataset, \"productData\")\n const browsingOutOfRegion = node.dataset.browsingOutOfRegion === \"true\"\n const translations = parseJSONData(node.dataset, \"translations\")\n const locale = node.dataset.locale || \"\"\n const stockLocationId: number = Number(node.dataset.stockLocationId)\n const countryIso = node.dataset.countryIso || \"\"\n\n ReactDOM.render(\n \n \n \n \n \n \n ,\n node\n )\n} else {\n console.error(\"Failed to initialize Standard Product Form React App.\")\n}\n", "import React, { useEffect, useState } from \"react\"\n\nimport { addToCart } from \"./api\"\nimport { updateSelectedVariantImage } from \"../entrypoints/product-carousel\"\nimport getAssetPaths from \"../utilities/railsAssetPath\"\n\nimport MarketContext, { Market } from \"../components/MarketContext\"\nimport TranslationContext, {\n Translations\n} from \"../components/TranslationContext\"\nimport AssetsContext from \"../components/AssetsContext\"\nimport BrowsingOutOfRegion from \"../components/BrowsingOutOfRegion\"\n\nimport ProductSubmit from \"../components/products/ProductSubmit\"\nimport Drawer from \"./components/Drawer\"\nimport RadioButtonGroup from \"../components/RadioButtonGroup\"\nimport Option, { OptionProps } from \"./components/Option\"\nimport Swatch from \"./components/Swatch\"\nimport Price from \"./components/Price\"\nimport OutOfStock from \"../components/OutOfStock\"\n\ninterface ProductData {\n variants: Variant[]\n masterVariant: MasterVariant\n optionTypes: string | null\n colourType: string | null\n}\ninterface Variant {\n id: number\n sku: string\n optionValues: string | null\n colour: Colour | null\n price: string\n discountedPrice: string | null\n savings: string | null\n inStock: boolean\n}\ninterface MasterVariant {\n id: number\n sku: string\n}\ninterface Colour {\n id: number\n code: string\n swatch: string\n onSale: boolean\n}\ninterface StandardProductFormAppProps {\n productData: ProductData\n}\n\nconst StandardProductFormApp: React.FC = ({\n productData\n}) => {\n const sellableMasterVariant: boolean =\n !productData.optionTypes && !productData.colourType\n const [quantity, setQuantity] = useState(1)\n const [selectedVariant, setSelectedVariant] = useState(\n sellableMasterVariant ? productData.variants[0] : null\n )\n\n function isColourPresent(colour: Colour | null): colour is Colour {\n return !!colour\n }\n const distinctColours = (): Colour[] | null => {\n let coloursWithoutNulls: Colour[] = []\n\n let coloursFromVariants = new Map(\n productData.variants.map((variant) => [\n variant.colour?.id,\n variant.colour\n ])\n )\n\n productData.variants.forEach((variant) => {\n if (!!variant.colour && !!variant.discountedPrice) {\n let discountedColour = coloursFromVariants.get(variant.colour.id)\n\n if (!!discountedColour) {\n discountedColour.onSale = true\n }\n }\n })\n\n coloursFromVariants.forEach((colour) =>\n isColourPresent(colour) ? coloursWithoutNulls.push(colour) : null\n )\n\n return coloursWithoutNulls.length == 0 ? null : coloursWithoutNulls\n }\n const [colours, setColours] = useState(distinctColours())\n const [selectedOptions, setSelectedOptions] = useState(null)\n const [selectedColour, setSelectedColour] = useState(null)\n\n const [optionsDrawerOpen, setOptionsDrawerOpen] = useState(\n !productData.colourType\n )\n const [colourDrawerOpen, setColourDrawerOpen] = useState(\n !!productData.colourType\n )\n\n const disabledText = (translation: string): string | null => {\n let unselectedDrawerText = null\n\n /* If the translation does not include the placeholder, fallback to default\n * disabled messaging. */\n if (translation.includes(\"$js_drawer\")) {\n if (!selectedColour && !!productData.colourType) {\n unselectedDrawerText = translation.replace(\n \"$js_drawer\",\n productData.colourType\n )\n } else if (!selectedOptions && !!productData.optionTypes) {\n unselectedDrawerText = translation.replace(\n \"$js_drawer\",\n productData.optionTypes\n )\n }\n }\n\n return unselectedDrawerText\n }\n\n const [assets, setAssets] = useState({})\n\n const resetFilters = (): void => {\n setSelectedOptions(null)\n setSelectedColour(null)\n setSelectedVariant(null)\n setOptionsDrawerOpen(false)\n setColourDrawerOpen(false)\n updateSelectedVariantImage(productData.masterVariant)\n }\n\n const buildOptions = (variants: Variant[]) => {\n return variants.map((variant) => {\n return {\n label: variant.optionValues || \"\",\n id: variant.id.toString(),\n isSelected: variant == selectedVariant,\n value: variant.id.toString(),\n key: variant.id.toString(),\n variant: variant,\n handleChange: () => {\n setSelectedVariant(variant)\n setSelectedOptions(variant.optionValues)\n setOptionsDrawerOpen(false)\n updateSelectedVariantImage(variant)\n }\n }\n })\n }\n\n /* Could write a custom hook. */\n const variantsWithColour = (colour: Colour | null): Variant[] => {\n return productData.variants.filter((variant: Variant) => {\n return !!colour ? variant.colour?.id == colour?.id : true\n })\n }\n\n const handleAddToCart = () =>\n !!selectedVariant\n ? addToCart({\n quantity: quantity,\n variantId: selectedVariant?.id\n })\n : null\n\n const handleColourSelection = (colour: Colour): void => {\n let firstVariantWithColour = variantsWithColour(colour)[0]\n\n setSelectedColour(colour)\n setSelectedOptions(null)\n setSelectedVariant(productData.optionTypes ? null : firstVariantWithColour)\n setColourDrawerOpen(false)\n setOptionsDrawerOpen(true)\n updateSelectedVariantImage(firstVariantWithColour)\n }\n\n useEffect(() => {\n const assetsToFetch = {\n arrow: \"dmc/icons/arrow.svg\",\n out_of_stock: \"dmc/icons/modal_failure.svg\"\n }\n\n getAssetPaths(assetsToFetch).then((fingerprintedAssetPaths) =>\n setAssets(fingerprintedAssetPaths)\n )\n }, [])\n\n return (\n \n null}\n renderInRegion={() => }\n />\n {productData.colourType ? (\n /* TODO: We can pass in a render function handling both the swatch thumbnail and the code. */\n \n ) : null\n }\n >\n \n {!!colours &&\n colours.length != 0 &&\n colours.map((colour: Colour) => (\n {\n handleColourSelection(colour)\n }}\n onSale={colour.onSale}\n />\n ))}\n \n \n ) : (\n \"\"\n )}\n {productData.optionTypes ? (\n \n {buildOptions(variantsWithColour(selectedColour)).map(\n (option: OptionProps) => (\n \n )\n )}\n \n ) : (\n \"\"\n )}\n {sellableMasterVariant ? null : (\n \n \n {(translations: Translations) => (\n {\n resetFilters()\n }}\n >\n {translations.reset_filters}\n \n )}\n \n \n )}\n {\n return (\n \n {(translations: Translations) =>\n !!selectedVariant && !selectedVariant?.inStock ? (\n \n {(market: Market) => (\n \n )}\n \n ) : (\n \n )\n }\n \n )\n }}\n renderOutOfRegion={() => null}\n />\n \n )\n}\n\nexport {\n StandardProductFormApp as default,\n Variant as Variant,\n Colour as Colour\n}\n", "import getLocaleParams from \"../utilities/localeParams\"\nimport { handleErrors } from \"@warp/utilities/errors\"\nimport aa from \"search-insights\"\n\ninterface Params {\n quantity: number\n variantId: number\n}\n\nexport const addToCart = (params: Params) => {\n const [country_iso, locale] = getLocaleParams()\n\n const body = JSON.stringify({\n quantity: params.quantity,\n variant_id: params.variantId\n })\n\n return fetch(`/${country_iso}/${locale}/orders/populate`, {\n body: body,\n headers: {\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\"\n },\n method: \"POST\"\n })\n .then((response) => {\n return response.ok\n ? response.json()\n : Promise.reject(handleErrors(response))\n })\n .then((json) => {\n if (!window.miniCartAdded) {\n return\n }\n\n window.miniCartAdded(json.miniCartAdded, json.miniCart, json.itemCount)\n\n // GA4 watches the window's dataLayer for event data.\n window.dataLayer = window.dataLayer || []\n window.dataLayer.push(json.gtmOrder)\n\n // We send Algolia data through the Insights API.\n if (!!json.algoliaData?.insightsData?.userToken) {\n aa(\"init\", {\n appId: json.algoliaData.appId,\n apiKey: json.algoliaData.apiKey,\n region: \"de\",\n // The user token will only be present in the DOM if the user\n // has consented through Cookiebot.\n useCookie: true\n })\n\n aa(json.algoliaData.methodName, json.algoliaData.insightsData)\n }\n })\n}\n", "import React from \"react\"\nimport BrowsingOutOfRegionContext from \"./BrowsingOutOfRegionContext\"\n\ninterface BrowsingOutOfRegion {\n renderOutOfRegion: Function\n renderInRegion: Function\n}\n\nconst BrowsingOutOfRegion: React.FC = ({\n renderOutOfRegion,\n renderInRegion\n}) => {\n return (\n \n {(browsingOutOfRegion) =>\n browsingOutOfRegion ? renderOutOfRegion() : renderInRegion()\n }\n \n )\n}\n\nexport default BrowsingOutOfRegion\n", "import React, {\n Dispatch,\n SetStateAction,\n useState,\n PropsWithChildren\n} from \"react\"\nimport AssetsContext from \"../../components/AssetsContext\"\n\ninterface DrawerProps {\n label: string\n selection: string | null\n locked: boolean\n drawerOpen: boolean\n setDrawerOpen: Dispatch>\n thumbnail: JSX.Element | null\n}\n\nconst Drawer: React.FC> = ({\n label,\n drawerOpen,\n setDrawerOpen,\n locked,\n selection,\n children,\n thumbnail\n}) => {\n return (\n <>\n (locked ? null : setDrawerOpen(!drawerOpen))}\n >\n {label}\n {selection}\n {thumbnail}\n \n {(assets) => (\n \n )}\n \n \n {drawerOpen && (\n {children}\n )}\n >\n )\n}\n\nexport default Drawer\n", "import React, { useState, Dispatch, SetStateAction } from \"react\"\n\nimport BrowsingOutOfRegion from \"../../components/BrowsingOutOfRegion\"\n\nimport { Variant } from \"../App\"\n\ninterface OptionProps {\n label: string\n id: string\n isSelected: boolean\n value: string\n variant: Variant\n handleChange(): void\n}\n\nconst Option: React.FC = ({\n label,\n id,\n isSelected,\n value,\n variant,\n handleChange\n}) => {\n return (\n <>\n \n \n \n \n {label}\n \n\n null}\n renderInRegion={() => {\n return (\n <>\n \n {variant.price}\n \n {variant.discountedPrice ? (\n \n {variant.discountedPrice}\n \n ) : (\n \"\"\n )}\n >\n )\n }}\n />\n \n \n >\n )\n}\n\nexport { Option as default, OptionProps as OptionProps }\n", "import React, { useState, Dispatch, SetStateAction } from \"react\"\nimport TranslationContext, {\n Translations\n} from \"../../components/TranslationContext\"\nimport { Variant, Colour } from \"../App\"\n\ninterface SwatchProps {\n colour: Colour\n isSelected: boolean\n value: string\n handleChange(): void\n onSale: boolean\n}\n\nconst Swatch: React.FC = ({\n colour,\n isSelected,\n value,\n handleChange,\n onSale\n}) => {\n return (\n <>\n \n \n \n \n \n {onSale ? (\n \n {(translations: Translations) => (\n \n {translations[\"components.products.sale\"]}\n \n )}\n \n ) : (\n \"\"\n )}\n \n {colour.code}\n \n \n >\n )\n}\n\nexport { Swatch as default }\n", "import React, { useState, Dispatch, SetStateAction } from \"react\"\nimport { Variant } from \"../App\"\n\ninterface PriceProps {\n variant: Variant | null\n}\n\nconst Price: React.FC = ({ variant }) => {\n return (\n <>\n \n {/* TODO: Add the out of stock logic/text here. */}\n {variant?.discountedPrice ? (\n \n \n {variant?.price}\n \n \n {variant?.discountedPrice}\n \n {variant?.savings}\n \n ) : (\n \n {variant?.price}\n \n )}\n \n {variant ? (\n SKU: {variant?.sku || \"\"}\n ) : null}\n >\n )\n}\n\nexport { Price as default }\n"], "mappings": "6xBAAA,IAAAA,EAAqB,UACrBC,EAAkB,SCDlB,IAAAC,EAA2C,SCE3C,IAAAC,EAAe,UAOFC,EAAaC,GAAmB,CAC3C,GAAM,CAACC,EAAaC,CAAM,EAAIC,EAAgB,EAExCC,EAAO,KAAK,UAAU,CAC1B,SAAUJ,EAAO,SACjB,WAAYA,EAAO,SACrB,CAAC,EAED,OAAO,MAAM,IAAIC,KAAeC,oBAA0B,CACxD,KAAME,EACN,QAAS,CACP,eAAgB,mBAChB,OAAQ,kBACV,EACA,OAAQ,MACV,CAAC,EACE,KAAMC,GACEA,EAAS,GACZA,EAAS,KAAK,EACd,QAAQ,OAAOC,EAAaD,CAAQ,CAAC,CAC1C,EACA,KAAME,GAAS,CA9BpB,IAAAC,EAAAC,EA+BU,CAAC,OAAO,gBAIZ,OAAO,cAAcF,EAAK,cAAeA,EAAK,SAAUA,EAAK,SAAS,EAGtE,OAAO,UAAY,OAAO,WAAa,CAAC,EACxC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CAEJ,EDzSA,IAAMK,EAAO,SAAS,eAAe,6BAA6B,EAElE,GAAIA,EAAM,CACR,IAAMC,EAAcC,EAAcF,EAAK,QAAS,aAAa,EACvDG,EAAsBH,EAAK,QAAQ,sBAAwB,OAC3DI,EAAeF,EAAcF,EAAK,QAAS,cAAc,EACzDK,EAASL,EAAK,QAAQ,QAAU,GAChCM,EAA0B,OAAON,EAAK,QAAQ,eAAe,EAC7DO,EAAaP,EAAK,QAAQ,YAAc,GAE9C,EAAAQ,QAAS,OACP,EAAAC,QAAA,cAACC,EAAmB,SAAnB,CAA4B,MAAON,GAClC,EAAAK,QAAA,cAACE,EAAc,SAAd,CACC,MAAO,CACL,WAAYJ,EACZ,OAAQF,EACR,gBAAiBC,CACnB,GAEA,EAAAG,QAAA,cAACG,EAA2B,SAA3B,CAAoC,MAAOT,GAC1C,EAAAM,QAAA,cAACI,EAAA,CAAuB,YAAaZ,EAAa,CACpD,CACF,CACF,EACAD,CACF,CACF,MACE,QAAQ,MAAM,uDAAuD", "names": ["import_react_dom", "import_react", "import_react", "import_search_insights", "addToCart", "params", "country_iso", "locale", "localeParams_default", "body", "response", "handleErrors", "json", "_a", "_b", "aa", "import_react", "BrowsingOutOfRegion", "renderOutOfRegion", "renderInRegion", "React", "BrowsingOutOfRegionContext", "browsingOutOfRegion", "BrowsingOutOfRegion_default", "import_react", "Drawer", "label", "drawerOpen", "setDrawerOpen", "locked", "selection", "children", "thumbnail", "React", "AssetsContext", "assets", "Drawer_default", "import_react", "Option", "label", "id", "isSelected", "value", "variant", "handleChange", "React", "BrowsingOutOfRegion_default", "import_react", "Swatch", "colour", "isSelected", "value", "handleChange", "onSale", "React", "TranslationContext", "translations", "import_react", "Price", "variant", "React", "StandardProductFormApp", "productData", "sellableMasterVariant", "quantity", "setQuantity", "selectedVariant", "setSelectedVariant", "isColourPresent", "colour", "distinctColours", "coloursWithoutNulls", "coloursFromVariants", "variant", "_a", "discountedColour", "colours", "setColours", "selectedOptions", "setSelectedOptions", "selectedColour", "setSelectedColour", "optionsDrawerOpen", "setOptionsDrawerOpen", "colourDrawerOpen", "setColourDrawerOpen", "disabledText", "translation", "unselectedDrawerText", "assets", "setAssets", "resetFilters", "updateSelectedVariantImage", "buildOptions", "variants", "variantsWithColour", "handleAddToCart", "addToCart", "handleColourSelection", "firstVariantWithColour", "railsAssetPath_default", "fingerprintedAssetPaths", "React", "AssetsContext", "BrowsingOutOfRegion_default", "Price", "Drawer_default", "Swatch", "option", "Option", "TranslationContext", "translations", "MarketContext", "market", "OutOfStock_default", "ProductSubmit_default", "node", "productData", "parseJSONData_default", "browsingOutOfRegion", "translations", "locale", "stockLocationId", "countryIso", "ReactDOM", "React", "TranslationContext", "MarketContext", "BrowsingOutOfRegionContext", "StandardProductFormApp"] }