{ "version": 3, "sources": ["../../../../node_modules/lodash/_baseDifference.js", "../../../../node_modules/lodash/difference.js", "../../../javascript/entrypoints/warp/product-form.tsx", "../../../javascript/warp/context/MarketContext.ts", "../../../javascript/warp/context/BrowsingOutOfRegionContext.ts", "../../../javascript/warp/components/pdp/BasicProduct/index.tsx", "../../../javascript/warp/components/BrowsingOutOfRegion.tsx", "../../../javascript/warp/components/OutOfStock.tsx", "../../../javascript/warp/components/ActionButton.tsx", "../../../javascript/warp/utilities/createNotificationRequest.ts", "../../../javascript/warp/components/pdp/BasicProduct/ProductSubmit.tsx", "../../../javascript/warp/components/pdp/BasicProduct/QuantityPicker.tsx", "../../../javascript/warp/components/pdp/BasicProduct/AddToBasket.tsx", "../../../javascript/warp/utilities/localeParams.ts", "../../../javascript/warp/utilities/api.ts", "../../../javascript/warp/components/pdp/VariantSelector/MultipleVariantSelector/index.tsx", "../../../javascript/warp/context/MultipleVariantSelectorContext.tsx", "../../../javascript/warp/components/pdp/VariantSelector/MultipleVariantSelector/MultipleVariantSelectorDialog.tsx", "../../../javascript/warp/components/pdp/VariantSelector/MultipleVariantSelector/OptionSelector.tsx", "../../../javascript/warp/components/pdp/VariantSelector/MultipleVariantSelector/Option.tsx", "../../../javascript/warp/components/pdp/VariantSelector/MultipleVariantSelector/Checkbox.tsx", "../../../javascript/warp/utilities/product.ts", "../../../javascript/warp/components/pdp/VariantSelector/QuantityPicker.tsx", "../../../javascript/warp/components/pdp/Price.tsx", "../../../javascript/warp/components/pdp/VariantSelector/MultipleVariantSelector/Footer.tsx", "../../../javascript/warp/components/pdp/VariantSelector/Slideshow.tsx", "../../../javascript/warp/utilities/translation.ts", "../../../javascript/warp/components/pdp/StitchYourPhoto/index.tsx", "../../../javascript/warp/components/Stepper/index.tsx", "../../../javascript/warp/context/StepperContext.tsx", "../../../javascript/warp/components/Stepper/Step.tsx", "../../../javascript/warp/components/pdp/StitchYourPhoto/Colour.tsx", "../../../javascript/warp/context/StitchYourPhotoContext.tsx", "../../../javascript/warp/components/pdp/StitchYourPhoto/Defaults.ts", "../../../javascript/warp/components/pdp/StitchYourPhoto/Services.ts", "../../../javascript/warp/components/Stepper/SubStep.tsx", "../../../javascript/warp/components/pdp/StitchYourPhoto/Format.tsx", "../../../javascript/warp/icons/QuestionMark.tsx", "../../../javascript/warp/components/pdp/StitchYourPhoto/Thread.tsx", "../../../javascript/warp/components/pdp/StitchYourPhoto/Tools.tsx", "../../../javascript/warp/components/pdp/StitchYourPhoto/Tool.tsx", "../../../javascript/warp/components/pdp/StitchYourPhoto/Upload.tsx", "../../../javascript/warp/icons/Quality.tsx", "../../../javascript/warp/components/pdp/StitchYourPhoto/StitchYourPhotoDialog.tsx", "../../../javascript/warp/components/WizardDialog/index.tsx", "../../../javascript/warp/components/WizardDialog/StepContent.tsx", "../../../javascript/warp/components/pdp/StitchYourPhoto/Footer.tsx", "../../../javascript/warp/icons/ArrowIcon.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/index.tsx", "../../../javascript/warp/context/VariantSelectorWizardContext.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/VariantSelectorWizardDialog.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/WizardDialog.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/Footer.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/SelectedVariantsHeader.tsx", "../../../javascript/warp/components/Carousel/PrevArrow.tsx", "../../../javascript/warp/components/Carousel/NextArrow.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/ColourStep/index.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/ColourStep/FiltersContext.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/ColourStep/Step.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/ColourStep/Colour.tsx", "../../../javascript/warp/components/pdp/VariantSelector/ColourItem.tsx", "../../../javascript/warp/icons/MailIcon.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/ColourStep/ColourBadges.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/ColourStep/Filters.tsx", "../../../javascript/warp/icons/Check.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/ColourStep/SearchFilter.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/ListViewIcon.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/GridViewIcon.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/ArrowIcon.tsx", "../../../javascript/warp/icons/FilterIcon.tsx", "../../../javascript/warp/icons/SearchIcon.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/ColourStep/hooks.ts", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/SingleStepFooter.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/OptionTypeStep.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/OptionValue.tsx", "../../../javascript/warp/components/pdp/VariantSelector/VariantSelectorWizard/SelectedValuesHeader.tsx", "../../../javascript/warp/components/pdp/VariantSelector/KitSelector/index.tsx", "../../../javascript/warp/components/pdp/VariantSelector/KitSelector/Dialog.tsx", "../../../javascript/warp/components/pdp/VariantSelector/KitSelector/Steps/Pattern.tsx", "../../../javascript/warp/components/pdp/VariantSelector/KitSelector/context/KitSelectorContext.tsx", "../../../javascript/warp/components/pdp/VariantSelector/KitSelector/Footer/index.tsx", "../../../javascript/warp/components/pdp/VariantSelector/KitSelector/Footer/Download.tsx", "../../../javascript/warp/components/pdp/VariantSelector/KitSelector/Steps/FixedColours.tsx", "../../../javascript/warp/components/pdp/VariantSelector/KitSelector/Colour.tsx"], "sourcesContent": ["var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n arrayMap = require('./_arrayMap'),\n baseUnary = require('./_baseUnary'),\n cacheHas = require('./_cacheHas');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\nfunction baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseDifference;\n", "var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseRest = require('./_baseRest'),\n isArrayLikeObject = require('./isArrayLikeObject');\n\n/**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\nvar difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n});\n\nmodule.exports = difference;\n", "import ReactDOM from \"react-dom\"\nimport React from \"react\"\n\nimport parseJSONData from \"@warp/utilities/parseJSONData\"\n\nimport MarketContext from \"@warp/context/MarketContext\"\nimport TranslationContext from \"@warp/context/TranslationContext\"\nimport BrowsingOutOfRegionContext from \"@warp/context/BrowsingOutOfRegionContext\"\n\nimport { Badge, Image, ProductData } from \"@warp/types/product\"\nimport BasicProduct from \"@warp/components/pdp/BasicProduct\"\nimport MultipleVariantSelector from \"@warp/components/pdp/VariantSelector/MultipleVariantSelector\"\nimport StitchYourPhoto from \"@warp/components/pdp/StitchYourPhoto\"\nimport VariantSelectorWizard from \"@warp/components/pdp/VariantSelector/VariantSelectorWizard\"\nimport KitSelector from \"@warp/components/pdp/VariantSelector/KitSelector\"\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n const node = document.getElementById(\"react-product-form-data\")\n\n if (node) {\n const pdpType = node.dataset.pdpType || \"unspecified\"\n const customPattern = node.dataset.customPattern === \"true\"\n const currentUserEmail = node.dataset.currentUserEmail\n\n const carouselNode = document.getElementById(\"product-images-carousel-data\")\n let slides: Image[] = []\n let badges: Badge[] = []\n if (carouselNode) {\n slides = parseJSONData(carouselNode.dataset, \"images\")\n badges = parseJSONData(carouselNode.dataset, \"badges\")\n }\n\n const productData = parseJSONData(\n node.dataset,\n \"productData\"\n ) as 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 const hasVariants =\n (productData.variants.filter(\n (variant) => variant.id !== productData.masterVariant.id\n )?.length ?? 0) > 0\n\n let component = null\n\n switch (pdpType) {\n case \"simple_product\":\n case \"simple_bundle\":\n component = hasVariants ? (\n
{translations.step_colour_disclaimer_paragraph_1}
\n{translations.step_colour_disclaimer_paragraph_2}
\n{translations.step_colour_disclaimer_paragraph_3}
\n{translations.step_format_disclaimer}
\n\n {translations.upload_copyright_notice}\n
\n {errorMessage &&{errorMessage}
}\n\n