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,iBAAkBC,aAAc,MAC3C,CAAED,QAAS,QAASC,aAAc,MAClC,CAAED,QAAS,SAAUC,aAAc,MACnC,CAAED,QAAS,WAAYC,aAAc,MACrC,CAAED,QAAS,mBAAiBC,aAAc,OAG/BC,EAAc,sB,gGCjR3B,IA5DA,SAAkB7M,GAChB,MAAM8M,GAAc7V,EAAAA,EAAAA,OAEb8V,EAAqBC,IAA0BC,EAAAA,EAAAA,WACpDhR,EAAAA,EAAAA,MAkBF,OAAOiR,EAAAA,EAAAA,UAAQ,KACb,MAAMjK,GAAYD,EAAAA,EAAAA,KAAYjD,EAAAA,EAAAA,IAAgBC,IACxC9P,GAAYyN,EAAAA,EAAAA,IAAesF,GAC3B9J,GAAQ6J,EAAAA,EAAAA,IAAYC,EAAW,CACnC/S,YACA2L,YAAa,CACXsR,KAAMA,IACJ,wEACFC,KAAMA,IAAM,kCAEdjK,OAAQ,CACNkK,eAAiBC,GACXvR,EAAAA,GACMgR,EAAsBO,EAAW,IAEpC,GAAGA,OAGd9V,MAAO,CACL+V,SAAU,CACRjX,UAAWA,IAAMwW,EAAYU,SAE/BpH,WAAY,CACV9P,UAAWA,IAAMwW,EAAYU,YAKnC,MAAO,IACFrU,EACHjJ,WAAW4M,EAAAA,EAAAA,IACT,YACA3D,EAAMjJ,WAET,GACA,CAAC4c,EAAa9M,EAAU+M,GAC7B,C","sources":["webpack://shopify_zero/./app/javascript/shared/modules/error-notifier.js","webpack://shopify_zero/./app/javascript/consumer-app/config.js","webpack://shopify_zero/./app/javascript/shared/modules/error-emitter.js","webpack://shopify_zero/./app/javascript/shared/modules/apollo.js","webpack://shopify_zero/./app/javascript/consumer-app/contexts/backdropContainer.js","webpack://shopify_zero/./app/javascript/shared/modules/function.js","webpack://shopify_zero/./app/javascript/shared/modules/localStorage.js","webpack://shopify_zero/./app/javascript/consumer-app/components/CssBaseline.js","webpack://shopify_zero/./app/javascript/shared/modules/frame.js","webpack://shopify_zero/./app/javascript/consumer-app/theme/styles.js","webpack://shopify_zero/./node_modules/moment/locale/ sync [/\\\\](de(\\.js)","webpack://shopify_zero/./app/javascript/consumer-app/components/ErrorSnackbar.js","webpack://shopify_zero/./app/javascript/retailer-app/constants/branding.js","webpack://shopify_zero/./app/javascript/shared/theme/create-theme.js","webpack://shopify_zero/./app/javascript/shared/theme/styles.js","webpack://shopify_zero/./app/javascript/shared/modules/fonts.js","webpack://shopify_zero/./app/javascript/shared/modules/decodeError.js","webpack://shopify_zero/./app/javascript/shared/modules/config.js","webpack://shopify_zero/./app/javascript/consumer-app/theme/mui.js"],"sourcesContent":["import Rollbar from \"rollbar\";\nimport get from \"lodash/get\";\n\nlet rollbarInstance = {};\n\nconst nvoConfig = get(window, \"nvo_config\");\n\nconst init = (token, env, optionsOverride = {}) => {\n const accessToken = token || get(window, \"nvo_config.rollbarKey\");\n const environment = env || get(window, \"nvo_config.environment\");\n\n rollbarInstance = new Rollbar({\n accessToken,\n captureUncaught: true,\n captureUnhandledRejections: false,\n includeItemsInTelemetry: true,\n maxTelemetryEvents: 100, // maximum rollbar events queue size, payload should < 100kb in normal situation\n verbose: true,\n autoInstrument: {\n networkRequestBody: true, // log request body, better visibility for graphql request\n },\n\n // > Source maps are automatically enabled in your project, but you still\n // > need to add the code_version parameter to the _rollbarConfig object:\n // https://docs.rollbar.com/docs/source-maps#2-configure-the-rollbarjs-sdk-to-support-source-maps\n //\n // I think we don't ever have to change this `codeVersion`, because we have\n // configured Sprockets to add a digest to our file names.\n codeVersion: \"1\",\n\n scrubFields: [\n \"rollbarKey\",\n \"rollbarKeyForShopNow\",\n \"google_fonts_api_key\",\n \"apiKey\",\n \"shop_stripe_acc\",\n \"country_codes\",\n ],\n enabled: true,\n environment,\n hostSafeList: [\"shopifyzero.narvar.com\", \"szero.narvar.com\"],\n ignoredMessages: [\n \"Order not found\",\n \"Could not find any order.\",\n \"Could not retrieve order details.\",\n \"Email address does not match order number\",\n \"(unknown): Script error.\",\n \"Stores not found within\", // Our consumer app returns this when the instore return location picker does not find any stores.\n \"No locations found near ZIP code\",\n /GraphQL\\(GetReturnLocations\\):/, // no return locations found and no error message translation in consumer app\n \"Unable to return all items in the same method. Please try again by returning one item at a time.\",\n \"There was an issue generating your return label. Please verify your address and try again.\",\n \"One or more items are not eligible for return\",\n \"All items have been returned.\",\n \"There was an issue generating your label\",\n \"One or more items are not eligible for return\",\n \"There was an error submitting the return. Please try again.\",\n \"Address Not Found\",\n \"Unexpected token < in JSON at position 0 at new t\", // The order lookup graphql call results in this from apollo\n \"JSON Parse error\", // The order lookup graphql call results in this from apollo\n \"JSON\\\\.parse\", // This happens on 500\n \"Invalid Request For Shop Context\", // Returned when the requested ID of an object does not match the shop context\n \"Unexpected token < in JSON\", // This happens on 500\n \"Received status code 500\",\n \"Network error: undefined\",\n \"PG::QueryCanceled: ERROR: canceling statement due to statement timeout\",\n \"Carrier service cannot be removed because it is used by a Return Method Rule\",\n \"Could not find tracking information\",\n \"AbortError: Request signal is aborted\",\n \"Request signal is aborted\",\n \"What is your address?\", // in-store order(POS order) won't have an address, expected error\n \"ResizeObserver loop\", // https://app.rollbar.com/a/narvar/fix/item/ShopifyZero/3191\n ],\n filterTelemetry(event) {\n // ignore all console.debug() log and do not store in rollbar\n if (event.type === \"log\" && event.level === \"debug\") {\n return true;\n }\n\n // only keep data and geocoding XHR, ignore others map styles and images fetching\n if (\n event.type === \"network\" &&\n (event.body.subtype === \"xhr\" || event.body.subtype === \"fetch\") &&\n /^https:\\/\\/api\\.maptiler\\.com\\/(?!(data\\/|geocoding\\/))/.test(\n event.body.url,\n )\n ) {\n return true;\n }\n\n return false;\n },\n ...optionsOverride,\n });\n\n return rollbarInstance;\n};\nconst configure = (cfg) => {\n if (rollbarInstance) {\n rollbarInstance.configure(cfg);\n }\n};\n\nconst setUser = (user) => configure({ payload: { person: user } });\n\n// update and merge feature flags (A/B testing) as global rollbar debug payload\nconst setFeatures = (feature_flags) =>\n configure({ payload: { feature_flags } });\n\nconst createLogger = (level) => (msg, meta) => {\n console.log(`reporting ${level} message:`, msg, get(msg, \"message\"));\n rollbarInstance[level](get(msg, \"message\") || msg, { nvoConfig, meta });\n};\n\nconst debug = createLogger(\"debug\");\nconst info = createLogger(\"info\");\nconst warn = createLogger(\"warn\"); // handled error can log as warning\nconst error = createLogger(\"error\"); // all apollo error should log as error\nconst critical = createLogger(\"critical\"); // all uncaught error should log as critical, and have meta { caughtByErrorBoundary: true }\n\nexport default {\n init,\n configure,\n setUser,\n setFeatures,\n debug,\n info,\n warn,\n error,\n critical,\n};\n","import keyBy from \"lodash/keyBy\";\nimport mapValues from \"lodash/mapValues\";\nimport { getConfig, getTranslation } from \"../shared/modules/config\";\nimport { isLocalStorageEnabled } from \"../shared/modules/localStorage\";\n\nconst baseClassName = \"consumer-app\";\n\nconst host = getConfig(\"host\");\nconst shopDomain = getConfig(\"domain\");\nconst isExchangesEnabled = getConfig(\"is_exchanges_enabled\");\nconst isUnevenExchangesEnabled = getConfig(\"is_uneven_exchanges_enabled\");\nconst isStripeEnabled = getConfig(\"is_stripe_enabled\");\nconst isPaymentFlowEnabled = getConfig(\"is_payment_flow_enabled\");\nconst isRefundAutomationEnabled = getConfig(\"is_refund_automation_enabled\");\nconst isGiftZipEnabled = getConfig(\"is_gift_zip_enabled\");\nconst isGiftReceiptEnabled = getConfig(\"is_gift_receipt_enabled\");\nconst isShopNowEnabled =\n getConfig(\"is_shop_now_enabled\") && isLocalStorageEnabled;\nconst isShopNowWithCreditEnabled =\n isShopNowEnabled && getConfig(\"is_shop_now_with_credit_enabled\");\nconst isInAppLabelEnabled = getConfig(\"enable_in_app_label\");\nconst hideReturnMethodPrice = getConfig(\"hide_return_method_price\");\nconst onlyShowEstimatedRefund = getConfig(\"only_show_estimated_refund\");\nconst sortExchangeVariantsByAvailability = getConfig(\n \"sort_exchange_variants_by_availability\",\n);\nconst isAddressProvinceDisabled = getConfig(\"disable_modify_address_province\");\nconst isNthUi = getConfig(\"is_nth_ui\");\nconst isNthLoginUi = getConfig(\"is_nth_login_ui\");\nconst isReturnUpsellDisabled = getConfig(\"is_return_upsell_disabled\");\nconst isUserPreferencesEnabled =\n isNthUi && getConfig(\"is_user_preferences_enabled\");\nconst isIncludeCurrency = getConfig(\"is_include_currency\");\nconst environment = getConfig(\"environment\");\nconst stripePubKey = getConfig(\"stripe_pub_key\");\nconst stripeAccount = getConfig(\"shop_stripe_acc\");\nconst shid = getConfig(\"shid\");\nconst shopifyCollectiveEnabled = getConfig(\"shopify_collective_enabled\");\nconst isReshopSmsUpdates = getConfig(\"is_reshop_sms_updates\");\nconst isReshopEarlyHardApproval = getConfig(\"is_reshop_early_hard_approval\");\nconst isCropItemThumbnail = getConfig(\"is_crop_item_thumbnail\");\nconst showItemSku = getConfig(\"show_item_sku\");\n\nconst shouldHideNarvarSeamlessExchangeValue = getConfig(\n \"should_hide_narvar_seamless_exchange_value\",\n);\n\nconst userPreferencesEndpoint =\n environment === \"development\"\n ? \"https://customer-accounts.qa04.narvar.qa\"\n : \"https://profile.narvar.com\";\n\nconst translations = getConfig(\"translations\") || {\n order_lookup_not_found:\n \"We couldn't find that order. Make sure your order number and billing email are correct and try again.\",\n order_lookup_option_return_progress: \"You have a return in progress.\",\n order_lookup_return_has_been_cancelled:\n \"The return has been cancelled successfully.\",\n order_lookup_option_cancel_return: \"Cancel outstanding Return\",\n order_lookup_option_different_order: \"Return a Different Order\",\n order_lookup_option_view_policy: \"View Our Return Policy\",\n order_lookup_find_another_order: \"Find another order\",\n order_lookup_return_window_prefix: \"You can make returns on this order until\",\n order_lookup_gift_title_start_return: \"Start a gift return\",\n order_lookup_not_gift_link: \"Not returning a gift?\",\n order_lookup_gift_link: \"Returning a gift?\",\n order_lookup_gift_start_instructions:\n \"Changed your mind about a gift? We won't tell. Return your gift now for store credit or exchange it for something else.\",\n order_lookup_gift_shipping_zip: \"Shipping Zip Code\",\n order_lookup_gift_code: \"Gift Code\",\n order_lookup_gift_email_helper:\n \"We’ll use this to send you your return label and refund.\",\n order_lookup_gift_code_helper:\n \"Can’t find this? Try looking on your gift receipt, or email customer service and we’ll help you out.\",\n order_lookup_title_start_return: \"Start a Return\",\n order_lookup_start_return_instructions:\n \"Enter your order information to get started.\",\n order_lookup_title_no_eligible_items:\n \"No items in this order are eligible for return\",\n order_lookup_submit: \"Find My Order\",\n choose_items_title: \"What would you like to return?\",\n choose_items_none_eligible: \"None of these items is eligible for return.\",\n choose_items_select_reason_prompt: \"Select a Return Reason\",\n choose_items_select_reason_prompt_exchange: \"Select an Exchange Reason\",\n choose_items_exchange_wizard_unavailable_title:\n \"This product is unavailable for exchange.\",\n choose_items_exchange_item_button_out_of_stock: \"Out Of Stock\",\n choose_items_exchange_wizard_unavailable_go_back: \"Go Back\",\n choose_items_select_subreason_prompt: \"Tell us more\",\n choose_items_select_quantity_prompt: \"Select a Return Quantity\",\n choose_items_select_quantity_prompt_exchange: \"Select an Exchange Quantity\",\n choose_items_quantity_label: \"Select a Return Quantity\",\n choose_items_comment_title: \"Additional Comments\",\n choose_items_add_comment: \"Add Comment\",\n choose_items_edit_comment: \"Edit Comment\",\n choose_items_comment_helper_text:\n \"Please tell us in 1 or 2 sentences why you would like to return this item\",\n choose_items_comment_optional_placeholder: \"Leave a comment (optional)\",\n choose_items_comment_required_placeholder: \"Leave a comment (required)\",\n choose_items_comment_continue_label: \"Continue\",\n choose_items_return_item_button_label: \"Return Item\",\n choose_items_exchange_item_button_label: \"Exchange Item\",\n choose_items_exchange_wizard_title: \"Select a new item\",\n choose_items_return_button_label: \"Return %{quantity} %{label}\",\n choose_items_exchange_button_label: \"Exchange %{quantity} %{label}\",\n choose_items_exchange_variant_option_unavailable_label:\n \"– Not available in selected\",\n choose_items_return_and_exchange_button_label:\n \"Return & Exchange %{quantity} %{label}\",\n choose_items_choose_exchange_variant_label_general: \"Choose\",\n choose_items_exchange_one_item_button_label: \"Exchange 1 Item\",\n choose_items_choose_exchange_variant_not_available: \"– not available\",\n choose_items_choose_exchange_variant_not_available_in_selected:\n \"– not available in selected options\",\n choose_items_cancel_exchange_button_label: \"Cancel Exchange\",\n choose_items_find_another_item_button_label: \"Find Another Item\",\n choose_items_back_to_details_label: \"Back to Details\",\n choose_items_find_another_item_title: \"Find Another Item\",\n choose_items_exchange_search_placeholder: \"Search by keyword\",\n choose_items_exchange_showing_results_label: \"Showing %{count} results\",\n choose_items_next_button_label: \"Next\",\n choose_method_title: \"How would you like to return it?\",\n choose_method_no_intersection:\n \"No valid return methods for the selected items. Please try with a different combination of items.\",\n choose_method_card_in_store_title: \"Visit Our Store\",\n choose_method_card_in_store_subtitle:\n \"Come to our store to return it in person and get a quick refund\",\n choose_method_card_ship_on_your_own_title: \"Mail It\",\n choose_method_card_ship_on_your_own_subtitle:\n \"Securely pack and seal your return, and drop it off at your local shipping center.\",\n choose_method_substep_in_store_title: \"Find a Store\",\n choose_method_substep_in_store_form_find_stores_near:\n \"Search for locations near\",\n choose_method_substep_in_store_locations_near: \"Locations near\",\n choose_method_card_by_mail_title: \"Drop Off at the Post Office\",\n choose_method_card_by_mail_subtitle:\n \"Securely pack and seal your return, and drop it off at your local post office.\",\n choose_method_next_button_label: \"Next\",\n choose_method_substep_next_button_label: \"Next\",\n mailing_address_section_title: \"Mailing Address\",\n mailing_address_form_title: \"Change Mailing Address\",\n mailing_address_form_address_line_1: \"Street Address\",\n mailing_address_form_address_line_2: \"Address Line 2\",\n mailing_address_form_city: \"City\",\n mailing_address_form_state: \"State\",\n mailing_address_form_zip: \"Zip Code\",\n mailing_address_form_first_name: \"First Name\",\n mailing_address_form_last_name: \"Last Name\",\n gift_exchange_mailing_address_title: \"Where should we send your new items\",\n gift_exchange_mailing_address_save: \"Confirm Address\",\n gift_exchange_mailing_address_change: \"change\",\n home_pickup_mailing_address_title: \"Where are you shipping from?\",\n bad_mailing_address_title: \"Please update your address\",\n bad_mailing_address_submit: \"Confirm Address and Submit Again\",\n return_review_title: \"Return Details\",\n return_review_comments_title: \"Comments\",\n return_review_keep_item_disclaimer:\n \"You do not need to return this item please keep it or donate it.\",\n return_review_exchange_item_disclaimer: \"Exchanging for %{name}\",\n return_review_estimated_refund: \"Estimated Refund\",\n return_review_items: \"Items\",\n return_review_returning: \"Returning\",\n return_review_receiving: \"Receiving\",\n return_review_return_method: \"Return Method\",\n return_review_subtotal: \"Subtotal\",\n return_review_original_purchase_shipping: \"Original Shipping Price\",\n return_review_total_tax: \"Total Tax\",\n return_review_charge_total: \"Total\",\n return_review_disclaimer:\n \"Actual refund amount is subject to applied discounts, tax, shipping costs, and item condition.\",\n return_review_original_payment_method: \"Original Payment Method\",\n return_review_submit_return: \"SUBMIT MY RETURN\",\n return_review_error_contact_retailer: \"Please contact the retailer.\",\n return_review_item_quantity: \"Quantity\",\n shopnow_outstanding_credit_alert:\n \"You have %{amount} shop now credit outstanding.\",\n shopnow_cancel_session_confirm_message:\n \"This will cancel outstanding shop now sessions. Would you like to continue?\",\n shopnow_cancel_session_success:\n \"Your outstanding shop now sessions have been cancelled. The remaining credit will be issued back.\",\n shopnow_opt_in_title: \"Want to use your return credit to shop now?\",\n shopnow_opt_in_description:\n \"We’ll automatically add a credit to your cart to make sure you get the items you want even faster.\",\n shopnow_opt_in_incentive_description:\n \"We’ll even add %{amount} to your credit!\",\n shopnow_opt_in_yes: \"Shop Now With %{amount}\",\n shopnow_opt_in_no: \"Get a Refund For %{amount}\",\n choose_refund_method_gift_card: \"%{shop_name} Gift Card\",\n choose_refund_method_original_payment: \"Original Form of Payment\",\n choose_refund_method_incentive_amount: \"+ %{amount} Reward\",\n choose_refund_method_next_button_label: \"Next\",\n choose_items_shopnow_remarks:\n \"*You will be able to shop for your new items after completing your return selections\",\n choose_items_choose_exchange_variant_shopnow_action_description:\n \"Not seeing what you want?\",\n choose_items_choose_exchange_variant_shopnow_action_link:\n \"Shop with credit instead\",\n away: \"away\",\n email: \"Email\",\n cancel: \"cancel\",\n color: \"color\",\n edit: \"edit\",\n free: \"free\",\n order_number: \"order number\",\n quantity: \"quantity\",\n save: \"save\",\n search: \"search\",\n size: \"size\",\n zipcode: \"zipcode\",\n exit: \"Exit\",\n order_lookup_supplementary_text1: \"\",\n order_lookup_supplementary_text2: \"\",\n return_confirmation_subtitle_label_retry_enqueued:\n \"We've sent a confirmation email with next steps for your return to %{email}. We will email you your shipping label once it is ready for printing.\",\n};\n\nconst countryCodes = getConfig(\"country_codes\");\n\nconst countryNamesByCode = mapValues(\n keyBy(countryCodes, \"country_code\"),\n \"country\",\n);\n\nexport const getAddressFormConfig = (overrides) => ({\n firstName: {\n type: \"text\",\n value: \"\",\n label: getTranslation(\"mailing_address_form_first_name\"),\n },\n lastName: {\n type: \"text\",\n value: \"\",\n label: getTranslation(\"mailing_address_form_last_name\"),\n },\n address1: {\n type: \"text\",\n value: \"\",\n label: getTranslation(\"mailing_address_form_address_line_1\"),\n },\n address2: {\n type: \"text\",\n value: \"\",\n label: getTranslation(\"mailing_address_form_address_line_2\"),\n },\n city: {\n type: \"text\",\n value: \"\",\n label: getTranslation(\"mailing_address_form_city\"),\n },\n province: {\n type: \"text\",\n value: \"\",\n label: getTranslation(\"mailing_address_form_state\"),\n },\n zip: {\n type: \"text\",\n value: \"\",\n label: getTranslation(\"mailing_address_form_zip\"),\n },\n countryCode: { type: \"text\", value: \"\" },\n ...overrides,\n});\n\nconst addressDefaults = Object.entries(getAddressFormConfig({})).reduce(\n (acc, [key, data]) => ({ ...acc, ...{ [key]: { value: data.value } } }),\n {},\n);\n\nexport const config = {\n baseClassName,\n countryCodes,\n countryNamesByCode,\n isExchangesEnabled,\n isUnevenExchangesEnabled,\n isStripeEnabled,\n isPaymentFlowEnabled,\n isRefundAutomationEnabled,\n isGiftZipEnabled,\n isGiftReceiptEnabled,\n isShopNowEnabled,\n isShopNowWithCreditEnabled,\n isInAppLabelEnabled,\n hideReturnMethodPrice,\n onlyShowEstimatedRefund,\n sortExchangeVariantsByAvailability,\n isAddressProvinceDisabled,\n isNthUi,\n isNthLoginUi,\n isReturnUpsellDisabled,\n isUserPreferencesEnabled,\n isIncludeCurrency,\n isReshopSmsUpdates,\n isReshopEarlyHardApproval,\n isCropItemThumbnail,\n showItemSku,\n shouldHideNarvarSeamlessExchangeValue,\n userPreferencesEndpoint,\n environment,\n stripePubKey,\n stripeAccount,\n translations,\n host,\n shopDomain,\n shid,\n shopifyCollectiveEnabled,\n getAddressFormConfig,\n addressDefaults,\n // dynamic value, value exists after receiving `nvo_config_liquid` iframe message\n get logoImg() {\n return getConfig(\"logo_img\");\n },\n get shopName() {\n return getConfig(\"shop_name\");\n },\n get shopUrl() {\n return getConfig(\"shop_url\");\n },\n};\n","import EventEmitter from \"eventemitter3\";\n\nexport const ERROR_EVENTS = {\n generalError: \"GENERAL_ERROR\",\n sessionInvalid: \"SESSION_INVALID\",\n sessionStale: \"SESSION_STALE\",\n shopUserUnregistered: \"SHOP_USER_UNREGISTERED\",\n shopUserUnverified: \"SHOP_USER_UNVERIFIED\",\n shopUserUnauthorized: \"SHOP_USER_UNAUTHORIZED\",\n shopUserDisabled: \"SHOP_USER_DISABLED\",\n};\n\nconst emitter = new EventEmitter();\n\nexport const emitSessionStale = (error) => {\n emitter.emit(ERROR_EVENTS.sessionStale, error);\n};\n\nexport const emitSessionInvalid = (error) => {\n emitter.emit(ERROR_EVENTS.sessionInvalid, error);\n};\n\nexport const emitGeneralError = (error) => {\n emitter.emit(ERROR_EVENTS.generalError, error);\n};\n\nexport const emitShopUserUnauthorized = (error) => {\n emitter.emit(ERROR_EVENTS.shopUserUnauthorized, error);\n};\n\nexport const onSessionStale = (fn) => {\n emitter.on(ERROR_EVENTS.sessionStale, fn);\n return () => emitter.removeListener(ERROR_EVENTS.sessionStale, fn);\n};\n\nexport const onSessionInvalid = (fn) => {\n emitter.on(ERROR_EVENTS.sessionInvalid, fn);\n return () => emitter.removeListener(ERROR_EVENTS.sessionInvalid, fn);\n};\n\nexport const onGeneralError = (fn) => {\n emitter.on(ERROR_EVENTS.generalError, fn);\n return () => emitter.removeListener(ERROR_EVENTS.generalError, fn);\n};\n\nexport const onShopUserUnauthorized = (fn) => {\n emitter.on(ERROR_EVENTS.shopUserUnauthorized, fn);\n return () => emitter.removeListener(ERROR_EVENTS.shopUserUnauthorized, fn);\n};\n","import fetch from \"unfetch\";\nimport { ApolloClient, HttpLink, ApolloLink } from \"@apollo/client\";\nimport { InMemoryCache } from \"@apollo/client/cache\";\nimport { onError } from \"@apollo/client/link/error\";\nimport get from \"lodash/get\";\nimport last from \"lodash/last\";\n\nimport errorNotifier from \"../../shared/modules/error-notifier\";\n\nimport {\n ERROR_EVENTS,\n emitSessionInvalid,\n emitSessionStale,\n emitGeneralError,\n emitShopUserUnauthorized,\n} from \"./error-emitter\";\nimport { authenticatedFetch } from \"@shopify/app-bridge-utils\";\n\nexport const createCache = (config) => {\n const cache = new InMemoryCache(config);\n if (process.env.NODE_ENV === \"development\") {\n window.secretVariableToStoreCache = cache;\n }\n return cache;\n};\n\nexport const getGraphQLPath = () => {\n const shid = get(window, \"nvo_config.shid\");\n // TODO: may need to add this back in for the webpack dev app.\n // if (last(pathname) === \"/\") return `${pathname}graphql?shid=${shid}`;\n return `${window.location.origin}/app_proxy/graphql?shid=${shid}`;\n};\n\nconst handleErrorByCode = (err, operationName, isNetwork) => {\n // If the graphql request returns 500, the error object is on err.result.error\n let error = get(err, \"result.error\") || err;\n const code = get(error, \"extensions.code\");\n console.error(\"apollo error\", error, \"code\", code);\n\n switch (code) {\n case ERROR_EVENTS.sessionStale:\n emitSessionStale(error);\n break;\n case ERROR_EVENTS.sessionInvalid:\n emitSessionInvalid(error);\n break;\n case ERROR_EVENTS.shopUserUnauthorized:\n emitShopUserUnauthorized(error);\n break;\n case ERROR_EVENTS.shopUserUnregistered:\n case ERROR_EVENTS.shopUserUnverified:\n case ERROR_EVENTS.shopUserDisabled:\n // noop to prevent default error banner given the registration/verification dialog will display instead\n break;\n default: {\n // If the error object comes in as { isTrusted: true } only, then\n // it's from the window \"error\" event listener and CORS is blocking the\n // full error. We can investigate our CORS settings to capture those.\n // https://stackoverflow.com/questions/44815172/log-shows-error-object-istrustedtrue-instead-of-actual-error-data\n // https://blog.sentry.io/2016/05/17/what-is-script-error#the-fix-cors-attributes-and-headers\n const isGenericError = Object.keys(error).every((i) => i === \"isTrusted\");\n\n // log error in rollbar\n if (!isGenericError) {\n error = Object.assign({}, error); // clone error object\n let logFunc = errorNotifier.error; // default all apollo errors as `error` log level\n let errorGroup = `GraphQL(${operationName})`; // define a more readable error message\n // meta data for rollbar to query\n const meta = {\n graphql: {\n error: true,\n isNetwork,\n operationName,\n },\n };\n if (isNetwork) {\n // normal API errors would return HTTP 200 and treat as non-network\n // errors, network error throws when received HTTP 4xx, 5xx. These\n // errors should related to backend, however sometime backend cannot\n // catch the error\n // (eg. #4848 PG::InvalidTextRepresentation: ERROR: malformed array literal:)\n const errorName = get(err, \"name\") || \"UnknownNetworkError\";\n const statusCode = get(err, \"statusCode\");\n errorGroup += `: ${errorName}[${statusCode}]`;\n meta.graphql.statusCode = statusCode;\n }\n error.message = `${errorGroup}: ${error.message}`;\n logFunc(error, meta);\n }\n emitGeneralError(error);\n break;\n }\n }\n};\n\nconst createErrorLink = () =>\n onError(({ graphQLErrors, networkError, operation }) => {\n const logError = (error, operation, isNetwork) => {\n const { operationName } = operation;\n console.debug(\n `GraphQL - ${isNetwork ? \"Network\" : \"\"}Error (${operationName})`,\n {\n error,\n operation,\n },\n );\n let errors = isNetwork ? [error] : error;\n errors.forEach((err) => handleErrorByCode(err, operationName, isNetwork));\n };\n\n if (graphQLErrors) {\n logError(graphQLErrors, operation, false);\n }\n if (networkError) {\n logError(networkError, operation, true);\n }\n });\n\nconst isTestEnv = () => {\n return window.nvo_config.environment === \"test\";\n};\n\n/* authenticatedFetch uses the JWT (adds an `Authorization` header)\n * https://shopify.dev/apps/auth/session-tokens#how-session-tokens-work\n *\n * In the test env, we must use an un-authenticated fetch, because we don't\n * have a real `shop_session`.\n */\nconst fetchFunctionForHttpLink = (app) => {\n return app && !isTestEnv() ? authenticatedFetch(app) : fetch;\n};\n\nconst createHttpLink = (uri, app) => {\n return new HttpLink({\n uri,\n credentials: \"same-origin\", // previously, we used \"include\"\n fetch: fetchFunctionForHttpLink(app),\n includeExtensions: true, // we're keeping this, but we don't know what it does\n });\n};\n\n/* Use this ApolloClient for authenticated apps, like the retailer dashboard\n * (retailer-app) IOW, when that app's graphql controller (eg.\n * graphql_controller.rb) inherits AuthenticatedController. */\nexport const createClient = (cache, app, requestLink = \"/graphql\") => {\n return new ApolloClient({\n link: ApolloLink.from([\n createErrorLink(),\n createHttpLink(requestLink, app),\n ]),\n cache, // new InMemoryCache()\n });\n};\n\n/* Use this ApolloClient for unauthenticated apps, like `consumer-app` and\n * `track-app`. IOW, when that app's graphql controller (eg.\n * AppProxyController#execute_graphql) does not inherit AuthenticatedController.\n *\n * The \"token\" here used to refer to the [CSRF\n * token](https://guides.rubyonrails.org/security.html#cross-site-request-forgery-csrf)\n * which we no longer use. Now, it refers to the bearer token in the\n * `Authorization` header. */\nexport const createClientWithoutToken = (cache, uri) => {\n return new ApolloClient({\n link: ApolloLink.from([createErrorLink(), createHttpLink(uri)]),\n cache,\n });\n};\n","import React, { useContext, createContext, useRef } from \"react\";\nimport { makeRootStyles } from \"../theme/styles\";\n\nconst BackdropContainerContext = createContext();\n\nconst useStyles = makeRootStyles(\n () => ({\n root: {\n position: \"absolute\",\n left: 0,\n top: 0,\n },\n container: {\n position: \"relative\",\n },\n }),\n { name: \"N0BackdropContainerProvider\" },\n);\n\nexport const BackdropContainerProvider = ({ children }) => {\n const classes = useStyles();\n const containerRef = useRef();\n\n return (\n <>\n \n {children}\n \n
\n
\n
\n \n );\n};\n\nexport const useBackdropContainer = () => {\n const context = useContext(BackdropContainerContext);\n if (!context) throw new Error(\"backdrop is not defined\");\n return context;\n};\n\nexport const withBackdropContainerProvider = (Comp) => {\n const HOC = (props) => (\n \n \n \n );\n HOC.displayName = `WithBackdropContainerProvider(${\n Comp.displayName ?? Comp.name\n })`;\n return HOC;\n};\n\nexport default BackdropContainerContext;\n","import { curry } from \"lodash/fp\";\n\n/**\n * @param {Function} catchCallback\n * @param {Function} func\n * @returns {Function} Try-catch wrapped `func`\n *\n * @example\n * const parseJson = str => JSON.parse(str);\n * const parseJsonSave = tryCatch(\n * ({ args, error }) => console.warn(`parseJson(${...args}) threw: ${error}`),\n * parseJson\n * );\n * parseJsonSave('\"hi'\"); // return \"hi\"\n * parseJsonSave('hi'); // warn there is an error\n */\nexport const tryCatch = curry((catchCallback, func) => (...args) => {\n try {\n return func(...args);\n } catch (error) {\n return catchCallback({ args, error });\n }\n});\n\n/**\n * @param {*} defaultValue\n * @param {Function} func\n * @returns {Function} Try-catch wrapped `func`\n *\n * @example\n * const parseJson = str => JSON.parse(str);\n * const parseJsonSave = safeFunction(null, parseJson);\n * parseJsonSave('\"hi'\"); // return \"hi\"\n * parseJsonSave('hi'); // return null\n */\nexport const safeFunction = curry((defaultValue, func) =>\n tryCatch(() => defaultValue, func),\n);\n","import { safeFunction, tryCatch } from \"./function\";\n\nlet _isLocalStorageEnabled = false;\ntry {\n localStorage.getItem(\"test\");\n _isLocalStorageEnabled = true;\n} catch (e) {\n // do nothing\n}\n\nexport const isLocalStorageEnabled = _isLocalStorageEnabled;\n\nexport const safeLocalStorage = (function () {\n let cache = {};\n return {\n getItem: tryCatch(\n ({ args }) => cache[args?.[0]] ?? null,\n (key) => localStorage.getItem(key),\n ),\n setItem: tryCatch(\n ({ args }) => {\n cache[args?.[0]] = args?.[1];\n },\n (key, value) => localStorage.setItem(key, value),\n ),\n removeItem: tryCatch(\n ({ args }) => {\n delete cache[args?.[0]];\n },\n (key) => localStorage.removeItem(key),\n ),\n clear: tryCatch(\n () => {\n cache = {};\n },\n () => localStorage.clear(),\n ),\n };\n})();\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { makeStyles } from \"@material-ui/core/styles\";\n\nimport { config } from \"../config\";\nimport { getBranding } from \"../../shared/modules/config\";\n\n// https://storage.googleapis.com/website-snippets/bombas-background.png\nexport const buildBackgroundImageStyle = (imageUrl) =>\n imageUrl\n ? {\n background: `url(\"${imageUrl}\") no-repeat center center fixed`,\n backgroundSize: \"cover\",\n }\n : {};\n\nconst removeCssNamespace = (css) => {\n if (!config.isNthUi && !config.isNthLoginUi) return css;\n\n // for integration with NTH components, remove the css namespace for reducing\n // the css selector specificity to avoid baseline css overriding nth's\n // components style\n const namespace = `.${config.baseClassName}`;\n const globalStyle = {};\n const wrapperStyle = {};\n for (let key in css[namespace]) {\n const value = css[namespace][key];\n if (typeof value === \"object\") {\n // nested/namespaced style was found, remove the namespace\n globalStyle[key.replace(/&\\s*/g, \"\")] = value;\n } else {\n // style applied to namespace wrapper\n wrapperStyle[key] = value;\n }\n }\n\n return {\n ...css,\n ...globalStyle,\n [namespace]: wrapperStyle,\n };\n};\n\nconst useStyles = makeStyles(\n (theme) => ({\n \"@global\": removeCssNamespace({\n body: {\n margin: 0,\n },\n\n [`.${config.baseClassName}`]: {\n overflow: \"hidden\",\n\n // CSS Reset: https://gist.github.com/DavidWells/18e73022e723037a50d6\n [`& div, & span, & applet, & object, & iframe,\n & h1, & h2, & h3, & h4, & h5, & h6, & p, & blockquote, & pre,\n & a, & abbr, & acronym, & address, & big, & cite, & code,\n & del, & dfn, & em, & img, & ins, & kbd, & q, & s, & samp,\n & small, & strike, & strong, & sub, & sup, & tt, & var,\n & b, & u, & i, & center,\n & dl, & dt, & dd, & ol, & ul, & li,\n & fieldset, & form, & label, & legend,\n & table, & caption, & tbody, & tfoot, & thead, & tr, & th, & td,\n & article, & aside, & canvas, & details, & embed,\n & figure, & figcaption, & footer, & header, & hgroup,\n & menu, & nav, & output, & ruby, & section, & summary,\n & time, & mark, & audio, & video`]: {\n margin: 0,\n padding: 0,\n border: 0,\n fontSize: \"100%\",\n font: \"inherit\",\n verticalAlign: \"baseline\",\n },\n\n \"& em\": {\n fontStyle: \"italic\",\n },\n\n \"& :focus\": {\n outline: 0,\n },\n\n [`& article, & aside, & details, & figcaption, & figure,\n & footer, & header, & hgroup, & menu, & nav, & section`]: {\n display: \"block\",\n },\n\n \"& ol, & ul\": {\n listStyle: \"none\",\n },\n\n \"& blockquote, & q\": {\n quotes: \"none\",\n },\n\n \"& blockquote:before, & blockquote:after, & q:before, & q:after\": {\n content: \"none\",\n },\n\n \"& table\": {\n borderCollapse: \"collapse\",\n borderSpacing: 0,\n },\n\n [`& input[type=search]::-webkit-search-cancel-button,\n & input[type=search]::-webkit-search-decoration,\n & input[type=search]::-webkit-search-results-button,\n & input[type=search]::-webkit-search-results-decoration`]: {\n appearance: \"none\",\n },\n\n \"& input[type=search]\": {\n appearance: \"none\",\n boxSizing: \"content-box\",\n },\n\n \"& [hidden]\": {\n display: \"none\",\n },\n\n fontSize: \"100%\",\n textSizeAdjust: \"100%\",\n\n \"& a:focus\": {\n outline: \"thin dotted\",\n },\n\n \"& input:focus\": {\n border: \"0 none\",\n },\n\n \"& a:active, & a:hover\": {\n outline: 0,\n },\n\n \"& a\": {\n ...theme.typography.body1,\n color: theme.palette.primary.main,\n fontFamily: theme.typography.secondaryFontFamily,\n textDecoration: \"underline\",\n fontWeight: 400,\n },\n\n \"& a:not([disabled]):hover, & a:focus\": {\n color: theme.palette.primary.dark,\n },\n\n // Pretty hacky solution to fix some styling issues in links\n [`& a.MuiButton-containedSecondary:not([disabled]):hover,\n & a.MuiButton-containedSecondary:focus`]: {\n color: theme.palette.secondary.contrastText,\n },\n\n [`& a.MuiButton-containedPrimary:not([disabled]):hover,\n & a.MuiButton-containedPrimary:focus`]: {\n color: theme.palette.primary.contrastText,\n },\n\n [`& a.MuiTypography-colorSecondary:not([disabled]):hover,\n & a.MuiTypography-colorSecondary:focus`]: {\n color: theme.palette.secondary.dark,\n },\n\n \"& a.MuiTypography-colorPrimary:not([disabled]):hover, & a.MuiTypography-colorPrimary:focus\":\n {\n color: theme.palette.primary.dark,\n },\n\n \"& img\": {\n border: 0,\n interpolationMode: \"bicubic\",\n verticalAlign: \"middle\",\n },\n\n \"& fieldset\": {\n border: 0,\n margin: 0,\n padding: 0,\n },\n\n \"& button, & input, & select, & textarea\": {\n fontSize: \"100%\",\n margin: 0,\n verticalAlign: \"baseline\",\n },\n\n \"& button, & input\": {\n lineHeight: \"normal\",\n },\n\n \"& button, & select\": {\n textTransform: \"none\",\n },\n\n [`& button,\n & input[type=\"button\"],\n & input[type=\"reset\"],\n & input[type=\"submit\"]`]: {\n appearance: \"button\",\n cursor: \"pointer\",\n },\n\n \"& button[disabled], & input[disabled]\": {\n cursor: \"default\",\n },\n\n [`& input[type=\"checkbox\"], & input[type=\"radio\"]`]: {\n boxSizing: \"border-box\",\n padding: 0,\n },\n\n [`& input[type=\"search\"]`]: {\n appearance: \"textfield\",\n boxSizing: \"content-box\",\n },\n\n [`& input[type=\"search\"]::-webkit-search-cancel-button,\n & input[type=\"search\"]::-webkit-search-decoration`]: {\n appearance: \"none\",\n },\n\n [`& button::-moz-focus-inner,\n & input::-moz-focus-inner`]: {\n border: 0,\n padding: 0,\n },\n\n \"& textarea\": {\n overflow: \"auto\",\n verticalAlign: \"top\",\n resize: \"vertical\",\n },\n\n // From Material UI CssBaseline\n // Usually applied to HTML\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n\n // Usually applied to body\n color: theme.palette.text.primary,\n ...theme.typography.body2,\n\n // Change from `box-sizing: content-box` so that `width`\n // is not affected by `padding` or `border`.\n boxSizing: \"border-box\",\n \"& *, & *::before, & *::after\": {\n boxSizing: \"inherit\",\n },\n \"& strong, & b\": {\n fontWeight: \"bolder\",\n },\n \"& h1, & h2, & h3, & h4, & h5, & h6\": {\n textTransform: \"none\",\n letterSpacing: \"normal\",\n },\n\n // Fix iOS automatic zoom when focusing inputs\n ...(getBranding(\"base_body_text_size\") >= 16\n ? {}\n : {\n [`& select, & textarea, & input`]: {\n [`${theme.breakpoints.down(\n \"xs\",\n )} and (-webkit-min-device-pixel-ratio: 0)`]: {\n fontSize: \"16px !important\",\n },\n },\n }),\n },\n }),\n }),\n { name: \"N0CssBaseline\" },\n);\n\nfunction CssBaseline(props) {\n const { children = null } = props;\n useStyles();\n return {children};\n}\nCssBaseline.propTypes = {\n children: PropTypes.node,\n};\nexport default CssBaseline;\n","import get from \"lodash/get\";\n\nexport const isEmbedIframe = window !== window.parent;\n\n// TODO: deprecate.\n// export const getPositionFromDocument = elem => {\n// // crossbrowser version\n// const box = elem.getBoundingClientRect();\n\n// const { body, docEl, pageXOffset, pageYOffset } = parentWindow(w => ({\n// body: w.document.body,\n// docEl: w.document.documentElement,\n// pageXOffset: w.pageXOffset,\n// pageYOffset: w.pageYOffset,\n// }));\n\n// const scrollTop = pageYOffset || docEl.scrollTop || body.scrollTop;\n// const scrollLeft = pageXOffset || docEl.scrollLeft || body.scrollLeft;\n\n// const clientTop = docEl.clientTop || body.clientTop || 0;\n// const clientLeft = docEl.clientLeft || body.clientLeft || 0;\n\n// const top = box.top + scrollTop - clientTop;\n// const left = box.left + scrollLeft - clientLeft;\n\n// return { top: Math.round(top), left: Math.round(left) };\n// };\n\n// export const getWindowFramePosition = () => {\n// console.warn('window.frameElement', window.frameElement)\n// if (window.frameElement) {\n// return getPositionFromDocument(window.frameElement);\n// }\n// return { top: 0, left: 0 };\n// };\n\nexport const getFrameViewportHeight = () => {\n return get(window, \"parentData.innerHeight\");\n};\n\nexport const setWindowFrameBoxSize = (height) => {\n if (!height) return;\n window.parent.postMessage(\n {\n type: \"nvo\",\n action: \"setFrameHeight\",\n data: height,\n },\n \"*\",\n );\n};\n\nexport const scrollToPosition = (top = 0, left = 0, behavior = \"smooth\") => {\n window.parent.postMessage(\n {\n type: \"nvo\",\n action: \"scrollTo\",\n data: { top, left, behavior },\n },\n \"*\",\n );\n};\n\nexport const disableParentScroll = () => {\n window.parent.postMessage({ type: \"nvo\", action: \"disableScroll\" }, \"*\");\n};\n\nexport const reEnableParentScroll = () => {\n window.parent.postMessage({ type: \"nvo\", action: \"reEnableScroll\" }, \"*\");\n};\n\nexport const redirectToShop = () => {\n window.parent.postMessage({ type: \"nvo\", action: \"redirectToShop\" }, \"*\");\n};\n\nexport const redirectToCheckout = (checkoutUrl) => {\n window.parent.postMessage(\n { type: \"nvo\", action: \"redirectToCheckout\", data: checkoutUrl },\n \"*\",\n );\n};\n\nexport const openLabel = (url) => {\n window.parent.postMessage(\n { type: \"nvo\", action: \"openLabel\", data: url },\n \"*\",\n );\n};\n\nexport const cancelShopNowCheckout = () => {\n window.parent.postMessage(\n { type: \"nvo\", action: \"cancelShopNowCheckout\" },\n \"*\",\n );\n};\n\nexport const toggleContainerClass = (className) => {\n window.parent.postMessage(\n { type: \"nvo\", action: \"toggleContainerClass\", data: className },\n \"*\",\n );\n};\n","import merge from \"lodash/merge\";\nimport isPlainObject from \"lodash/isPlainObject\";\nimport { makeStyles } from \"@material-ui/core/styles\";\n\nimport { pseudoClasses, stylesMap } from \"../../shared/theme/styles\";\nimport { config } from \"../config\";\n\nexport const recursivelyApplyImportantToProperty = (property, styles) =>\n Object.keys(styles).reduce(\n (result, key) => {\n const value = styles[key];\n\n if (isPlainObject(value)) {\n return {\n ...result,\n [key]: recursivelyApplyImportantToProperty(property, value),\n };\n }\n\n if (key === property) {\n return {\n ...result,\n [key]: [[].concat(value), \"!important\"],\n };\n }\n\n return result;\n },\n { ...styles },\n );\n\nconst buildComponentOverrides = (styles, overrides = {}) =>\n Object.keys(styles).reduce((mapped, key) => {\n const keyStyles = merge({}, styles[key], overrides[key]);\n\n if (key.startsWith(\"@media\")) {\n mapped[key] = buildComponentOverrides(keyStyles);\n } else if (pseudoClasses.includes(key) || key.startsWith(\"@\")) {\n mapped[key] = keyStyles;\n } else {\n mapped[key] = {\n ...keyStyles,\n [`.${config.baseClassName} &`]: keyStyles,\n };\n }\n return mapped;\n }, {});\n\nexport const buildOverrides = (muiTheme) => {\n const { overrides } = muiTheme;\n\n return Object.keys({ ...overrides, ...stylesMap }).reduce(\n (mapped, component) => {\n const stylesFn = stylesMap[component];\n const styles =\n typeof stylesFn === \"function\" ? stylesFn(muiTheme) : stylesFn;\n\n if (styles) {\n mapped[component] = buildComponentOverrides(\n styles,\n overrides[component],\n );\n } else {\n console.warn(\n `[NO_STYLES_FOUND] Need to import styles for ${component}`,\n );\n mapped[component] = overrides[component];\n }\n\n return mapped;\n },\n {},\n );\n};\n\nexport const makeRootStyles = (stylesFn, opts) => {\n if (typeof stylesFn === \"function\") {\n return makeStyles(\n (theme) =>\n recursivelyApplyImportantToProperty(\n \"boxSizing\",\n buildComponentOverrides(stylesFn(theme)),\n ),\n opts,\n );\n }\n\n return makeStyles(\n recursivelyApplyImportantToProperty(\n \"boxSizing\",\n buildComponentOverrides(stylesFn),\n ),\n opts,\n );\n};\n","var map = {\n\t\"./de\": 77853,\n\t\"./de.js\": 77853,\n\t\"./es\": 97650,\n\t\"./es.js\": 97650,\n\t\"./fi\": 90527,\n\t\"./fi.js\": 90527,\n\t\"./fr\": 85498,\n\t\"./fr.js\": 85498,\n\t\"./it\": 88383,\n\t\"./it.js\": 88383,\n\t\"./ja\": 23827,\n\t\"./ja.js\": 23827,\n\t\"./nb\": 22274,\n\t\"./nb.js\": 22274,\n\t\"./nl\": 92572,\n\t\"./nl.js\": 92572,\n\t\"./ru\": 82271,\n\t\"./ru.js\": 82271,\n\t\"./sv\": 41011,\n\t\"./sv.js\": 41011\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 52022;","import React from \"react\";\nimport SnackbarContent from \"@material-ui/core/SnackbarContent\";\n\nimport { makeRootStyles } from \"../theme/styles\";\n\nconst useStyles = makeRootStyles(\n (theme) => ({\n errorSnackbar: {\n color: theme.palette.error.text,\n backgroundColor: theme.palette.error.main,\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n },\n }),\n { name: \"NV0ErrorSnackbar\" },\n);\n\nconst ErrorSnackbar = ({ message, ...props }) => {\n const classes = useStyles();\n\n return (\n \n );\n};\n\nexport default ErrorSnackbar;\n","export const systemFonts = [\n \"Georgia\",\n \"Arial\",\n \"Helvetica\",\n \"Helvetica Bold\",\n \"Tahoma\",\n \"Geneva\",\n \"Lucida Console\",\n \"sans-serif\",\n \"serif\",\n];\n\nexport const googleFonts = [\n \"Open Sans\",\n \"Roboto\",\n \"Lato\",\n \"Slabo\",\n \"Oswald\",\n \"Source Sans Pro\",\n];\n\nexport const fontPresets = [...systemFonts, ...googleFonts];\n","import { createTheme as createMuiTheme } from \"@material-ui/core/styles\";\nimport merge from \"lodash/merge\";\nimport { buildSansFontFamily } from \"../../shared/modules/fonts\";\n\nconst muiTheme = createMuiTheme();\n\nexport const palette = {\n narvarBlue: \"#0096d4\",\n navy: \"#0e1260\",\n green: \"#43a97a\",\n red: \"#da4a33\",\n frost: \"#e5f5fb\",\n cloud: \"#dadcea\",\n pistachio: \"#e1efe7\",\n coconut: \"#fde8de\",\n};\n\nexport const common = {\n black: \"#000000\",\n charcoal: \"#2C3239\",\n ash: \"#666666\",\n ashGrey: \"#B5B5B5\",\n stone: \"#999999\",\n coin: \"#ADADC9\",\n steal: \"#cccccc\",\n heather: \"#f2f2f2\",\n fog: \"#f9f9f9\",\n white: \"#ffffff\",\n};\n\nexport const misc = {\n alert: \"#f90000\",\n warning: \"#ffcb12\",\n success: \"#00d164\",\n info: \"#0096d4\",\n error: \"#E63935\",\n};\n\nexport const createBaseTheme = (branding) => {\n const fontSize = branding.base_body_text_size;\n\n const borderRadius =\n branding.border_radius < 24 ? branding.border_radius : 24;\n const brandPrimary = `#${branding.brand_primary || \"000000\"}`;\n const brandSecondary = `#${branding.brand_secondary || \"000000\"}`;\n const bodyText = `#${branding.body_text || \"000000\"}`;\n const bodyBackground = `#${branding.body_background || \"FFFFFF\"}`;\n const errorColor = `#${branding.error_color || \"E63935\"}`;\n const errorTextColor = `#${branding.error_text_color || \"FFFFFF\"}`;\n const fontFamily = buildSansFontFamily(branding.primary_font || \"Oswald\");\n const secondaryFontFamily = buildSansFontFamily(\n branding.secondary_font || \"Lato\",\n );\n\n return createMuiTheme({\n palette: {\n background: {\n default: bodyBackground,\n },\n primary: {\n main: brandPrimary,\n },\n secondary: {\n main: brandSecondary,\n },\n text: {\n primary: bodyText,\n },\n error: {\n main: errorColor,\n text: errorTextColor,\n },\n },\n props: {\n MuiAppBar: {\n elevation: 0,\n },\n MuiButton: {\n disableRipple: true,\n },\n MuiButtonBase: {\n disableRipple: true,\n },\n MuiButtonGroup: {\n disableRipple: true,\n },\n MuiIconButton: {\n disableRipple: true,\n },\n MuiLink: {\n underline: branding.is_link_underlined ? \"always\" : \"none\",\n },\n MuiPaper: {\n elevation: 0,\n },\n MuiSwitch: {\n disableRipple: true,\n },\n MuiTypography: {\n color: \"textPrimary\",\n },\n MuiOutlinedInput: {\n notched: false,\n },\n },\n shape: {\n borderRadius,\n },\n typography: {\n fontFamily,\n fontSize,\n secondaryFontFamily,\n isLinkAllCaps: branding.is_link_all_caps,\n body1: {\n fontFamily: secondaryFontFamily,\n fontSize: fontSize, // 14\n lineHeight: 1.715, // 24\n letterSpacing: \"normal\",\n },\n body2: {\n fontFamily: secondaryFontFamily,\n fontSize: fontSize * 1.14, // 16\n lineHeight: 1.5, // 24\n letterSpacing: \"normal\",\n },\n caption: {\n fontFamily: secondaryFontFamily,\n fontSize: fontSize * 0.857, // 12\n lineHeight: 1.33, // 16\n },\n h1: {\n fontSize: fontSize * 2.285, // 32\n fontWeight: 600,\n lineHeight: 1.25, // 40\n letterSpacing: \"normal\",\n },\n h2: {\n fontSize: fontSize * 1.715, // 24\n fontWeight: 600,\n lineHeight: 1.33, // 32\n letterSpacing: \"normal\",\n },\n h3: {\n fontSize: fontSize * 1.285, // 18\n fontWeight: 600,\n lineHeight: 1.33, // 24\n letterSpacing: \"normal\",\n },\n h4: {\n fontSize: fontSize * 1.14, // 16\n fontWeight: 600,\n lineHeight: 1.5, // 24\n letterSpacing: \"normal\",\n },\n h5: {\n fontFamily: secondaryFontFamily,\n fontSize: fontSize * 1,\n fontWeight: 600,\n lineHeight: 1.5, // 24\n letterSpacing: \"normal\",\n },\n h6: {\n fontFamily: secondaryFontFamily,\n fontSize: fontSize * 0.75,\n fontWeight: 600,\n lineHeight: 1.5, // 24\n letterSpacing: \"normal\",\n },\n },\n });\n};\n\nconst buildToolbarHeightForProp = (cssProp = \"minHeight\", negative) => ({\n [cssProp]: negative ? -64 : 64,\n [`${muiTheme.breakpoints.up(\"xs\")} and (orientation: landscape)`]: {\n [cssProp]: negative ? -48 : 48,\n },\n [muiTheme.breakpoints.up(\"sm\")]: {\n [cssProp]: negative ? -80 : 80,\n },\n});\n\nconst createTheme = (baseTheme, overrides) => {\n const paddingRadius =\n baseTheme.shape.borderRadius > 8 ? baseTheme.shape.borderRadius : 8;\n\n return createMuiTheme(\n merge(\n {},\n baseTheme,\n {\n mixins: {\n toolbar: buildToolbarHeightForProp(\"minHeight\"),\n toolbarHeightForProp: buildToolbarHeightForProp,\n },\n overrides: {\n MuiButton: {\n root: {\n padding: `${muiTheme.spacing(1)}px ${muiTheme.spacing(2)}px`,\n },\n contained: {\n boxShadow: \"none\",\n \"&:hover\": {\n boxShadow: \"none\",\n \"@media (hover: none)\": {\n boxShadow: \"none\",\n },\n },\n \"&$focusVisible\": {\n boxShadow: \"none\",\n },\n \"&:active\": {\n boxShadow: \"none\",\n },\n \"&$disabled\": {\n boxShadow: \"none\",\n },\n },\n containedSecondary: {\n color: baseTheme.palette.common.white,\n },\n containedPrimary: {\n color: baseTheme.palette.common.white,\n },\n textPrimary: {\n color: `${baseTheme.palette.primary.main}`,\n textTransform: \"none\",\n fontSize: \"0.875rem\",\n whiteSpace: \"nowrap\",\n \"&:hover\": {\n backgroundColor: \"transparent\",\n textDecoration: \"underline\",\n },\n },\n outlinedPrimary: {\n border: `1px solid ${baseTheme.palette.primary.main}`,\n transition: \"none\",\n \"&:hover\": {\n border: `1px solid ${baseTheme.palette.primary.main}`,\n backgroundColor: \"transparent\",\n },\n },\n },\n MuiExpansionPanel: {\n root: {\n \"&$expanded\": {\n margin: 0,\n },\n },\n },\n MuiExpansionPanelSummary: {\n root: {\n minHeight: \"auto\",\n \"&$expanded\": {\n minHeight: \"auto\",\n },\n },\n content: {\n \"&$expanded\": {\n margin: 0,\n },\n },\n },\n MuiInputBase: {\n input: {\n height: muiTheme.spacing(3),\n },\n },\n MuiInputLabel: {\n outlined: {\n lineHeight: `${muiTheme.spacing(2)}px`,\n transform: `translate(${paddingRadius}px, ${muiTheme.spacing(\n 2,\n )}px) scale(1)`,\n \"&$shrink\": {\n transform: `translate(${paddingRadius}px, ${muiTheme.spacing(\n 1,\n )}px) scale(0.8)`,\n },\n },\n },\n MuiLink: {\n root: {\n cursor: \"pointer\",\n textTransform: baseTheme.typography.isLinkAllCaps\n ? \"uppercase\"\n : \"none\",\n },\n },\n MuiMenuItem: {\n root: {\n fontSize: baseTheme.typography.fontSize,\n lineHeight: 1.715,\n fontWeight: \"bold\",\n },\n },\n MuiOutlinedInput: {\n input: {\n fontSize: baseTheme.typography.fontSize,\n minHeight: \"auto\",\n height: muiTheme.spacing(3),\n padding: `22px ${paddingRadius}px 2px`,\n },\n inputMultiline: {\n height: \"auto\",\n },\n },\n MuiSnackbarContent: {\n root: {\n flexWrap: \"nowrap\",\n alignItems: \"flex-start\",\n },\n },\n },\n },\n overrides,\n ),\n );\n};\n\nexport default createTheme;\n","import { styles as inputBaseStyles } from \"@material-ui/core/InputBase/InputBase\";\nimport { styles as buttonStyles } from \"@material-ui/core/Button/Button\";\nimport { styles as collapseStyles } from \"@material-ui/core/Collapse/Collapse\";\nimport { styles as containerStyles } from \"@material-ui/core/Container/Container\";\nimport { styles as gridStyles } from \"@material-ui/core/Grid/Grid\";\nimport { styles as iconButtonStyles } from \"@material-ui/core/IconButton/IconButton\";\nimport { styles as buttonBaseStyles } from \"@material-ui/core/ButtonBase/ButtonBase\";\nimport { styles as touchRippleStyles } from \"@material-ui/core/ButtonBase/TouchRipple\";\nimport { styles as linkStyles } from \"@material-ui/core/Link/Link\";\nimport { styles as listStyles } from \"@material-ui/core/List/List\";\nimport { styles as listItemStyles } from \"@material-ui/core/ListItem/ListItem\";\nimport { styles as menuItemStyles } from \"@material-ui/core/MenuItem/MenuItem\";\nimport { styles as typographyStyles } from \"@material-ui/core/Typography/Typography\";\nimport { styles as privateNotchedOutlineStyles } from \"@material-ui/core/OutlinedInput/NotchedOutline\";\nimport { styles as outlinedInputStyles } from \"@material-ui/core/OutlinedInput/OutlinedInput\";\nimport { styles as formLabelStyles } from \"@material-ui/core/FormLabel/FormLabel\";\nimport { styles as inputLabelStyles } from \"@material-ui/core/InputLabel/InputLabel\";\nimport { styles as formControlStyles } from \"@material-ui/core/FormControl/FormControl\";\nimport { styles as paperStyles } from \"@material-ui/core/Paper/Paper\";\nimport { styles as popoverStyles } from \"@material-ui/core/Popover/Popover\";\nimport { styles as snackbarContentStyles } from \"@material-ui/core/SnackbarContent/SnackbarContent\";\nimport { styles as svgIconStyles } from \"@material-ui/core/SvgIcon/SvgIcon\";\nimport { styles as textFieldStyles } from \"@material-ui/core/TextField/TextField\";\n\nexport const pseudoClasses = [\n \"checked\",\n \"disabled\",\n \"error\",\n \"focused\",\n \"focusVisible\",\n \"required\",\n \"expanded\",\n \"selected\",\n];\n\nexport const stylesMap = {\n MuiButton: buttonStyles,\n MuiButtonBase: buttonBaseStyles,\n MuiCollapse: collapseStyles,\n MuiContainer: containerStyles,\n MuiFormControl: formControlStyles,\n MuiFormLabel: formLabelStyles,\n MuiGrid: gridStyles,\n MuiIconButton: iconButtonStyles,\n MuiInputBase: inputBaseStyles,\n MuiInputLabel: inputLabelStyles,\n MuiLink: linkStyles,\n MuiList: listStyles,\n MuiListItem: listItemStyles,\n MuiMenuItem: menuItemStyles,\n MuiOutlinedInput: outlinedInputStyles,\n MuiPaper: paperStyles,\n MuiPopover: popoverStyles,\n MuiSnackbarContent: snackbarContentStyles,\n MuiSvgIcon: svgIconStyles,\n MuiTextField: textFieldStyles,\n MuiTouchRipple: touchRippleStyles,\n MuiTypography: typographyStyles,\n PrivateNotchedOutline: privateNotchedOutlineStyles,\n};\n\n/**\n *\n * @param {object} [cfg] config object\n * @param {string} [cfg.prefix=N0] className prefix of auto-generation when stylesheet name is not defined\n * @returns {string} className for material-ui / jss\n * @example\n * // stylesheet name is defined\n * const useStyle = makeStyles(\n * theme => ({ root: {} }),\n * { name: 'Component' },\n * );\n * const classes = useStyle(); // classes.root === 'Component-root'\n * @example\n * // stylesheet name is not defined\n * // stylesheet name is defined\n * const useStyle = makeStyles(\n * theme => ({ root: {} }),\n * );\n * const classes = useStyle(); // classes.root === 'N0-123'\n */\nexport const createClassNameGenerator = (cfg) => {\n const prefix = cfg?.prefix ?? \"N0\";\n let counter = 1;\n return (rule, sheet) => {\n const className = `${sheet.options.classNamePrefix}-${rule.key}`;\n // when stylesheet name is found, return a static / fixed className for material-ui to use\n if (sheet.options.name) {\n return className;\n } else {\n // when stylesheet name is not found, return a auto-generated className\n const autoGenerateClassName = `${prefix}-${counter++}`;\n console.warn(\n `Unnamed style found, mapped className from \"${className}\" to \"${autoGenerateClassName}\".`,\n );\n return autoGenerateClassName;\n }\n };\n};\n\nexport const computeFontStyle = (type, baseFontSize = 14) => {\n const THEME = {\n // fontSize and lineHeight in px\n metadata: { fontSize: 10, lineHeight: 16, letterSpacing: \"0.03em\" },\n label: { fontSize: 12, lineHeight: 16, letterSpacing: \"0.11em\" },\n caption: { fontSize: 12, lineHeight: 16 },\n body: { fontSize: 14, lineHeight: 20 },\n h5: { fontSize: 14, lineHeight: 20 },\n h4: { fontSize: 16, lineHeight: 24 },\n h3: { fontSize: 18, lineHeight: 24 },\n h2: { fontSize: 24, lineHeight: 32 },\n h1: { fontSize: 32, lineHeight: 40 },\n display2: { fontSize: 48, lineHeight: 54 },\n display1: { fontSize: 80, lineHeight: 96 },\n };\n let style = THEME[type] ?? THEME.body;\n style.lineHeight /= style.fontSize; // convert to ratio\n style.fontSize *= baseFontSize / THEME.body.fontSize; // scale font size\n return style;\n};\n","import { systemFonts } from \"../../retailer-app/constants/branding\";\n\nexport const buildSansFontFamily = (...fontFamily) =>\n [\n ...fontFamily.map((family) =>\n systemFonts.includes(family) ? `${family}` : `\"${family}\"`,\n ),\n \"-apple-system\",\n \"BlinkMacSystemFont\",\n '\"Segoe UI\"',\n \"Roboto\",\n '\"Helvetica Neue\"',\n \"Arial\",\n \"sans-serif\",\n '\"Apple Color Emoji\"',\n '\"Segoe UI Emoji\"',\n '\"Segoe UI Symbol\"',\n ].join(\",\");\n","import { get, getOr, compose, curry, find } from \"lodash/fp\";\n\nexport const getGraphQLErrors = (error) => error?.graphQLErrors ?? [];\nexport const getGraphQLError = (error) => getGraphQLErrors(error)?.[0];\nexport const getNetworkError = (error) => error?.networkError;\nexport const getErrorBy = curry((predicate, error) =>\n find(predicate, getGraphQLErrors(error)),\n);\nexport const getError = (error) =>\n getGraphQLError(error) ?? getNetworkError(error);\n\nexport const getSchemaError = getErrorBy(\n compose(\n (code) =>\n [\n \"undefinedField\",\n \"missingRequiredArguments\",\n \"selectionMismatch\",\n \"variableNotUsed\",\n ].indexOf(code) >= 0,\n get(\"extensions.code\"),\n ),\n);\n\n// error that usually auto generated, eg. network error and graphql schema error\nexport const getUnhandledError = (error) =>\n getNetworkError(error) ?? getSchemaError(error);\n\n// error that throw by backend intentional, eg. address error\nexport const getHandledError = (error) =>\n getUnhandledError(error) ? undefined : getGraphQLError(error);\n\n// get handled error message and mask all unhandled errors (network error and\n// schema error)\nexport const getHandledErrorMessage = (error, defaultErrorMessage) =>\n getError(error)\n ? (getHandledError(error)?.message ?? defaultErrorMessage)\n : undefined;\n\nexport const getAddressError = (error) => {\n const err = getErrorBy({ extensions: { error_type: \"address\" } }, error);\n return err?.extensions ?? null;\n};\n\nexport const getIneligibleReturnMethodError = getErrorBy({\n extensions: { error_code: \"INELIGIBLE_RETURN_METHOD\" },\n});\n\nexport const getIneligibleItemsReturnedError = getErrorBy({\n extensions: { error_code: \"INELIGIBLE_ITEMS_RETURNED\" },\n});\n\nexport const getPaymentNewClientSecretError = getErrorBy(\n (err) => !!err?.extensions?.new_client_secret,\n);\n\nexport const getPaymentNewClientSecret = compose(\n getOr(null, \"extensions.new_client_secret\"),\n getPaymentNewClientSecretError,\n);\n\nexport const getReshopError = getErrorBy({\n extensions: { error_type: \"reshop_refund_failed\" },\n});\n\nexport const getReshopCancelError = getErrorBy({\n error_code: \"reshop_refund_cancellation_error\",\n});\n\n// @link /doc/customer_service/z_error_codes.md\nexport const containsZErrorCode = (errorMessage) =>\n /^Z\\d{2,}\\s*:/.test(errorMessage);\n","const brandingDefaults = {\n primary_font: \"Open Sans\",\n secondary_font: \"Roboto\",\n base_body_text_size: 16,\n is_link_underlined: true,\n is_link_all_caps: false,\n border_radius: 0,\n brand_primary: \"ff0000\",\n brand_secondary: \"0000ff\",\n body_text: \"000\",\n body_background: \"cacaca\",\n error_color: \"e63935\",\n error_text_color: \"ffffff\",\n custom_css: \"\",\n background_image_url: null,\n fixed_app_bar: false,\n root_margin_top: 50,\n root_margin_bottom: 50,\n step_delimiter_position: 80,\n};\n\nconst NvoConfigDefaults = {\n branding: brandingDefaults,\n host: \"\",\n is_exchanges_enabled: false,\n is_uneven_exchanges_enabled: false,\n is_stripe_enabled: false,\n is_payment_flow_enabled: false,\n is_refund_automation_enabled: false,\n is_gift_zip_enabled: false,\n is_gift_receipt_enabled: false,\n is_shop_now_enabled: false,\n is_shop_now_with_credit_enabled: false,\n is_xpo_enabled: false,\n is_evri_enabled: false,\n is_ship_engine_enabled: false,\n is_chronopost_enabled: false,\n enable_in_app_label: false,\n logo_img: \"\",\n shop_name: \"\",\n shop_url: \"\",\n country_codes: [],\n translations: {},\n apiKey: \"\",\n shopOrigin: \"\",\n is_distribute_store_credit_enabled: false,\n is_advanced_analytics_enabled: false,\n rollbarKey: \"\",\n rollbarKeyForShopNow: \"\",\n shop_stripe_acc: \"\",\n shid: \"\",\n is_csv_upload_enabled: false,\n google_fonts_api_key: \"\",\n environment: \"\",\n stripe_pub_key: \"\",\n hide_return_method_price: false,\n admin_enabled: false,\n only_show_estimated_refund: false,\n should_hide_narvar_seamless_exchange_value: false,\n};\n\nexport const getBranding = (key) => branding[key];\nexport const getConfig = (key) =>\n window.nvo_config?.[key] ?? NvoConfigDefaults[key];\nexport const getTranslation = (key) =>\n window.nvo_config?.translations?.[key] || NvoConfigDefaults.translations[key];\n\nconst branding = getConfig(\"branding\")\n ? Object.entries(getConfig(\"branding\")).reduce(\n (acc, [key, data]) => ({\n ...acc,\n ...{ [key]: data || brandingDefaults[key] },\n }),\n brandingDefaults,\n )\n : brandingDefaults;\n\nconst nvo_urlParams = new URLSearchParams(window.location.search);\nexport const isAdvanced =\n getConfig(\"admin_enabled\") && nvo_urlParams.get(\"admin\") === \"true\";\n\nexport const adminStyleConfig = `\n[data-styleid] {position: relative;}\n[data-styleid]:after {content: attr(data-styleid);position: absolute;bottom: 0;right: 0;background: white;color: black;border: 1px solid;display: none;font-size: 10px;box-shadow: 1px 1px 10px #ff0000;z-index: 1;font-weight:normal;font-family:sans-serif;}\n[data-styleid]:hover:after {display: block;}\n`;\n\nexport const countryCodes = [\n { country: \"Afghanistan\", country_code: \"AF\" },\n { country: \"Albania\", country_code: \"AL\" },\n { country: \"Algeria\", country_code: \"DZ\" },\n { country: \"American Samoa\", country_code: \"AS\" },\n { country: \"Andorra\", country_code: \"AD\" },\n { country: \"Angola\", country_code: \"AO\" },\n { country: \"Anguilla\", country_code: \"AI\" },\n { country: \"Antarctica\", country_code: \"AQ\" },\n { country: \"Antigua and Barbuda\", country_code: \"AG\" },\n { country: \"Argentina\", country_code: \"AR\" },\n { country: \"Armenia\", country_code: \"AM\" },\n { country: \"Aruba\", country_code: \"AW\" },\n { country: \"Australia\", country_code: \"AU\" },\n { country: \"Austria\", country_code: \"AT\" },\n { country: \"Azerbaijan\", country_code: \"AZ\" },\n { country: \"Bahamas\", country_code: \"BS\" },\n { country: \"Bahrain\", country_code: \"BH\" },\n { country: \"Bangladesh\", country_code: \"BD\" },\n { country: \"Barbados\", country_code: \"BB\" },\n { country: \"Belarus\", country_code: \"BY\" },\n { country: \"Belgium\", country_code: \"BE\" },\n { country: \"Belize\", country_code: \"BZ\" },\n { country: \"Benin\", country_code: \"BJ\" },\n { country: \"Bermuda\", country_code: \"BM\" },\n { country: \"Bhutan\", country_code: \"BT\" },\n { country: \"Bolivia\", country_code: \"BO\" },\n { country: \"Bonaire, Sint Eustatius and Saba\", country_code: \"BQ\" },\n { country: \"Bosnia and Herzegovina\", country_code: \"BA\" },\n { country: \"Botswana\", country_code: \"BW\" },\n { country: \"Bouvet Island\", country_code: \"BV\" },\n { country: \"Brazil\", country_code: \"BR\" },\n { country: \"British Indian Ocean Territory\", country_code: \"IO\" },\n { country: \"Brunei Darussalam\", country_code: \"BN\" },\n { country: \"Bulgaria\", country_code: \"BG\" },\n { country: \"Burkina Faso\", country_code: \"BF\" },\n { country: \"Burundi\", country_code: \"BI\" },\n { country: \"Cabo Verde\", country_code: \"CV\" },\n { country: \"Cambodia\", country_code: \"KH\" },\n { country: \"Cameroon\", country_code: \"CM\" },\n { country: \"Canada\", country_code: \"CA\" },\n { country: \"Canary Islands\", country_code: \"IC\" },\n { country: \"Cayman Islands\", country_code: \"KY\" },\n { country: \"Central African Republic\", country_code: \"CF\" },\n { country: \"Chad\", country_code: \"TD\" },\n { country: \"Chile\", country_code: \"CL\" },\n { country: \"China\", country_code: \"CN\" },\n { country: \"Christmas Island\", country_code: \"CX\" },\n { country: \"Cocos (Keeling) Islands\", country_code: \"CC\" },\n { country: \"Colombia\", country_code: \"CO\" },\n { country: \"Comoros\", country_code: \"KM\" },\n { country: \"Congo\", country_code: \"CG\" },\n { country: \"Congo, The Democratic Republic of the\", country_code: \"CD\" },\n { country: \"Cook Islands\", country_code: \"CK\" },\n { country: \"Costa Rica\", country_code: \"CR\" },\n { country: \"Croatia\", country_code: \"HR\" },\n { country: \"Cuba\", country_code: \"CU\" },\n { country: \"Curaçao\", country_code: \"CW\" },\n { country: \"Cyprus\", country_code: \"CY\" },\n { country: \"Czechia\", country_code: \"CZ\" },\n { country: \"Côte d'Ivoire\", country_code: \"CI\" },\n { country: \"Denmark\", country_code: \"DK\" },\n { country: \"Djibouti\", country_code: \"DJ\" },\n { country: \"Dominica\", country_code: \"DM\" },\n { country: \"Dominican Republic\", country_code: \"DO\" },\n { country: \"Ecuador\", country_code: \"EC\" },\n { country: \"Egypt\", country_code: \"EG\" },\n { country: \"El Salvador\", country_code: \"SV\" },\n { country: \"Equatorial Guinea\", country_code: \"GQ\" },\n { country: \"Eritrea\", country_code: \"ER\" },\n { country: \"Estonia\", country_code: \"EE\" },\n { country: \"Ethiopia\", country_code: \"ET\" },\n { country: \"Falkland Islands (Malvinas)\", country_code: \"FK\" },\n { country: \"Faroe Islands\", country_code: \"FO\" },\n { country: \"Fiji\", country_code: \"FJ\" },\n { country: \"Finland\", country_code: \"FI\" },\n { country: \"France\", country_code: \"FR\" },\n { country: \"French Guiana\", country_code: \"GF\" },\n { country: \"French Polynesia\", country_code: \"PF\" },\n { country: \"French Southern Territories\", country_code: \"TF\" },\n { country: \"Gabon\", country_code: \"GA\" },\n { country: \"Gambia\", country_code: \"GM\" },\n { country: \"Georgia\", country_code: \"GE\" },\n { country: \"Germany\", country_code: \"DE\" },\n { country: \"Ghana\", country_code: \"GH\" },\n { country: \"Gibraltar\", country_code: \"GI\" },\n { country: \"Greece\", country_code: \"GR\" },\n { country: \"Greenland\", country_code: \"GL\" },\n { country: \"Grenada\", country_code: \"GD\" },\n { country: \"Guadeloupe\", country_code: \"GP\" },\n { country: \"Guam\", country_code: \"GU\" },\n { country: \"Guatemala\", country_code: \"GT\" },\n { country: \"Guernsey\", country_code: \"GG\" },\n { country: \"Guinea\", country_code: \"GN\" },\n { country: \"Guinea-Bissau\", country_code: \"GW\" },\n { country: \"Guyana\", country_code: \"GY\" },\n { country: \"Haiti\", country_code: \"HT\" },\n { country: \"Heard Island and McDonald Islands\", country_code: \"HM\" },\n { country: \"Holy See (Vatican City State)\", country_code: \"VA\" },\n { country: \"Honduras\", country_code: \"HN\" },\n { country: \"Hong Kong\", country_code: \"HK\" },\n { country: \"Hungary\", country_code: \"HU\" },\n { country: \"Iceland\", country_code: \"IS\" },\n { country: \"India\", country_code: \"IN\" },\n { country: \"Indonesia\", country_code: \"ID\" },\n { country: \"Iran, Islamic Republic of\", country_code: \"IR\" },\n { country: \"Iraq\", country_code: \"IQ\" },\n { country: \"Ireland\", country_code: \"IE\" },\n { country: \"Isle of Man\", country_code: \"IM\" },\n { country: \"Israel\", country_code: \"IL\" },\n { country: \"Italy\", country_code: \"IT\" },\n { country: \"Jamaica\", country_code: \"JM\" },\n { country: \"Japan\", country_code: \"JP\" },\n { country: \"Jersey\", country_code: \"JE\" },\n { country: \"Jordan\", country_code: \"JO\" },\n { country: \"Kazakhstan\", country_code: \"KZ\" },\n { country: \"Kenya\", country_code: \"KE\" },\n { country: \"Kiribati\", country_code: \"KI\" },\n { country: \"Korea, Democratic People's Republic of\", country_code: \"KP\" },\n { country: \"Korea, Republic of\", country_code: \"KR\" },\n { country: \"Kuwait\", country_code: \"KW\" },\n { country: \"Kyrgyzstan\", country_code: \"KG\" },\n { country: \"Lao People's Democratic Republic\", country_code: \"LA\" },\n { country: \"Latvia\", country_code: \"LV\" },\n { country: \"Lebanon\", country_code: \"LB\" },\n { country: \"Lesotho\", country_code: \"LS\" },\n { country: \"Liberia\", country_code: \"LR\" },\n { country: \"Libya\", country_code: \"LY\" },\n { country: \"Liechtenstein\", country_code: \"LI\" },\n { country: \"Lithuania\", country_code: \"LT\" },\n { country: \"Luxembourg\", country_code: \"LU\" },\n { country: \"Macao\", country_code: \"MO\" },\n { country: \"Macedonia, Republic of\", country_code: \"MK\" },\n { country: \"Madagascar\", country_code: \"MG\" },\n { country: \"Malawi\", country_code: \"MW\" },\n { country: \"Malaysia\", country_code: \"MY\" },\n { country: \"Maldives\", country_code: \"MV\" },\n { country: \"Mali\", country_code: \"ML\" },\n { country: \"Malta\", country_code: \"MT\" },\n { country: \"Marshall Islands\", country_code: \"MH\" },\n { country: \"Martinique\", country_code: \"MQ\" },\n { country: \"Mauritania\", country_code: \"MR\" },\n { country: \"Mauritius\", country_code: \"MU\" },\n { country: \"Mayotte\", country_code: \"YT\" },\n { country: \"Mexico\", country_code: \"MX\" },\n { country: \"Micronesia, Federated States of\", country_code: \"FM\" },\n { country: \"Moldova\", country_code: \"MD\" },\n { country: \"Monaco\", country_code: \"MC\" },\n { country: \"Mongolia\", country_code: \"MN\" },\n { country: \"Montenegro\", country_code: \"ME\" },\n { country: \"Montserrat\", country_code: \"MS\" },\n { country: \"Morocco\", country_code: \"MA\" },\n { country: \"Mozambique\", country_code: \"MZ\" },\n { country: \"Myanmar\", country_code: \"MM\" },\n { country: \"Namibia\", country_code: \"NA\" },\n { country: \"Nauru\", country_code: \"NR\" },\n { country: \"Nepal\", country_code: \"NP\" },\n { country: \"Netherlands\", country_code: \"NL\" },\n { country: \"New Caledonia\", country_code: \"NC\" },\n { country: \"New Zealand\", country_code: \"NZ\" },\n { country: \"Nicaragua\", country_code: \"NI\" },\n { country: \"Niger\", country_code: \"NE\" },\n { country: \"Nigeria\", country_code: \"NG\" },\n { country: \"Niue\", country_code: \"NU\" },\n { country: \"Norfolk Island\", country_code: \"NF\" },\n { country: \"Northern Mariana Islands\", country_code: \"MP\" },\n { country: \"Norway\", country_code: \"NO\" },\n { country: \"Oman\", country_code: \"OM\" },\n { country: \"Pakistan\", country_code: \"PK\" },\n { country: \"Palau\", country_code: \"PW\" },\n { country: \"Palestine, State of\", country_code: \"PS\" },\n { country: \"Panama\", country_code: \"PA\" },\n { country: \"Papua New Guinea\", country_code: \"PG\" },\n { country: \"Paraguay\", country_code: \"PY\" },\n { country: \"Peru\", country_code: \"PE\" },\n { country: \"Philippines\", country_code: \"PH\" },\n { country: \"Pitcairn\", country_code: \"PN\" },\n { country: \"Poland\", country_code: \"PL\" },\n { country: \"Portugal\", country_code: \"PT\" },\n { country: \"Puerto Rico\", country_code: \"PR\" },\n { country: \"Qatar\", country_code: \"QA\" },\n { country: \"Romania\", country_code: \"RO\" },\n { country: \"Russian Federation\", country_code: \"RU\" },\n { country: \"Rwanda\", country_code: \"RW\" },\n { country: \"Réunion\", country_code: \"RE\" },\n { country: \"Saint Barthélemy\", country_code: \"BL\" },\n {\n country: \"Saint Helena, Ascension and Tristan da Cunha\",\n country_code: \"SH\",\n },\n { country: \"Saint Kitts and Nevis\", country_code: \"KN\" },\n { country: \"Saint Lucia\", country_code: \"LC\" },\n { country: \"Saint Martin (French part)\", country_code: \"MF\" },\n { country: \"Saint Pierre and Miquelon\", country_code: \"PM\" },\n { country: \"Saint Vincent and the Grenadines\", country_code: \"VC\" },\n { country: \"Samoa\", country_code: \"WS\" },\n { country: \"San Marino\", country_code: \"SM\" },\n { country: \"Sao Tome and Principe\", country_code: \"ST\" },\n { country: \"Saudi Arabia\", country_code: \"SA\" },\n { country: \"Senegal\", country_code: \"SN\" },\n { country: \"Serbia\", country_code: \"RS\" },\n { country: \"Seychelles\", country_code: \"SC\" },\n { country: \"Sierra Leone\", country_code: \"SL\" },\n { country: \"Singapore\", country_code: \"SG\" },\n { country: \"Sint Maarten (Dutch part)\", country_code: \"SX\" },\n { country: \"Slovakia\", country_code: \"SK\" },\n { country: \"Slovenia\", country_code: \"SI\" },\n { country: \"Solomon Islands\", country_code: \"SB\" },\n { country: \"Somalia\", country_code: \"SO\" },\n { country: \"South Africa\", country_code: \"ZA\" },\n {\n country: \"South Georgia and the South Sandwich Islands\",\n country_code: \"GS\",\n },\n { country: \"South Sudan\", country_code: \"SS\" },\n { country: \"Spain\", country_code: \"ES\" },\n { country: \"Sri Lanka\", country_code: \"LK\" },\n { country: \"Sudan\", country_code: \"SD\" },\n { country: \"Suriname\", country_code: \"SR\" },\n { country: \"Svalbard and Jan Mayen\", country_code: \"SJ\" },\n { country: \"Swaziland\", country_code: \"SZ\" },\n { country: \"Sweden\", country_code: \"SE\" },\n { country: \"Switzerland\", country_code: \"CH\" },\n { country: \"Syrian Arab Republic\", country_code: \"SY\" },\n { country: \"Taiwan\", country_code: \"TW\" },\n { country: \"Tajikistan\", country_code: \"TJ\" },\n { country: \"Tanzania\", country_code: \"TZ\" },\n { country: \"Thailand\", country_code: \"TH\" },\n { country: \"Timor-Leste\", country_code: \"TL\" },\n { country: \"Togo\", country_code: \"TG\" },\n { country: \"Tokelau\", country_code: \"TK\" },\n { country: \"Tonga\", country_code: \"TO\" },\n { country: \"Trinidad and Tobago\", country_code: \"TT\" },\n { country: \"Tunisia\", country_code: \"TN\" },\n { country: \"Turkey\", country_code: \"TR\" },\n { country: \"Turkmenistan\", country_code: \"TM\" },\n { country: \"Turks and Caicos Islands\", country_code: \"TC\" },\n { country: \"Tuvalu\", country_code: \"TV\" },\n { country: \"Uganda\", country_code: \"UG\" },\n { country: \"Ukraine\", country_code: \"UA\" },\n { country: \"United Arab Emirates\", country_code: \"AE\" },\n { country: \"United Kingdom\", country_code: \"GB\" },\n { country: \"United States\", country_code: \"US\" },\n { country: \"United States Minor Outlying Islands\", country_code: \"UM\" },\n { country: \"Uruguay\", country_code: \"UY\" },\n { country: \"Uzbekistan\", country_code: \"UZ\" },\n { country: \"Vanuatu\", country_code: \"VU\" },\n { country: \"Venezuela\", country_code: \"VE\" },\n { country: \"Vietnam\", country_code: \"VN\" },\n { country: \"Virgin Islands, British\", country_code: \"VG\" },\n { country: \"Virgin Islands, U.S.\", country_code: \"VI\" },\n { country: \"Wallis and Futuna\", country_code: \"WF\" },\n { country: \"Western Sahara\", country_code: \"EH\" },\n { country: \"Yemen\", country_code: \"YE\" },\n { country: \"Zambia\", country_code: \"ZM\" },\n { country: \"Zimbabwe\", country_code: \"ZW\" },\n { country: \"Åland Islands\", country_code: \"AX\" },\n];\n\nexport const maptilerKey = \"uHWvzamfnhSgy1sB6ZaA\";\n","import { useMemo, useEffect, useState } from \"react\";\nimport throttle from \"lodash/throttle\";\n\nimport { buildOverrides, recursivelyApplyImportantToProperty } from \"./styles\";\nimport {\n getFrameViewportHeight,\n isEmbedIframe,\n // addParentResizeListener,\n // removeParentResizeListener,\n} from \"../../shared/modules/frame\";\nimport createTheme, { createBaseTheme } from \"../../shared/theme/create-theme\";\nimport { useBackdropContainer } from \"../contexts/backdropContainer\";\n\nfunction useTheme(branding) {\n const backdropRef = useBackdropContainer();\n\n const [frameViewportHeight, setFrameViewportHeight] = useState(\n getFrameViewportHeight(),\n );\n\n // TODO: deprecate. Height adjusts without this.\n // const onMount = () => {\n // const handleResize = throttle((innerHeight) => {\n // setFrameViewportHeight(innerHeight);\n // }, 1000);\n\n // addParentResizeListener(handleResize);\n\n // return () => {\n // removeParentResizeListener(handleResize)\n // };\n // };\n\n // useEffect(onMount, []);\n\n return useMemo(() => {\n const baseTheme = createTheme(createBaseTheme(branding));\n const overrides = buildOverrides(baseTheme);\n const theme = createTheme(baseTheme, {\n overrides,\n breakpoints: {\n ie11: () =>\n \"@media all and (-ms-high-contrast: none), (-ms-high-contrast: active)\",\n edge: () => \"@supports (-ms-ime-align:auto)\",\n },\n mixins: {\n verticalHeight: (percent) => {\n if (isEmbedIframe) {\n return (frameViewportHeight * percent) / 100;\n }\n return `${percent}vh`;\n },\n },\n props: {\n MuiModal: {\n container: () => backdropRef.current,\n },\n MuiPopover: {\n container: () => backdropRef.current,\n },\n },\n });\n\n return {\n ...theme,\n overrides: recursivelyApplyImportantToProperty(\n \"boxSizing\",\n theme.overrides,\n ),\n };\n }, [backdropRef, branding, frameViewportHeight]);\n}\n\nexport default useTheme;\n"],"names":["rollbarInstance","nvoConfig","get","window","configure","cfg","createLogger","level","msg","meta","console","log","debug","info","warn","error","critical","init","token","env","optionsOverride","accessToken","environment","Rollbar","captureUncaught","captureUnhandledRejections","includeItemsInTelemetry","maxTelemetryEvents","verbose","autoInstrument","networkRequestBody","codeVersion","scrubFields","enabled","hostSafeList","ignoredMessages","filterTelemetry","event","type","body","subtype","test","url","setUser","user","payload","person","setFeatures","feature_flags","host","getConfig","shopDomain","isExchangesEnabled","isUnevenExchangesEnabled","isStripeEnabled","isPaymentFlowEnabled","isRefundAutomationEnabled","isGiftZipEnabled","isGiftReceiptEnabled","isShopNowEnabled","isLocalStorageEnabled","isShopNowWithCreditEnabled","isInAppLabelEnabled","hideReturnMethodPrice","onlyShowEstimatedRefund","sortExchangeVariantsByAvailability","isAddressProvinceDisabled","isNthUi","isNthLoginUi","isReturnUpsellDisabled","isUserPreferencesEnabled","isIncludeCurrency","stripePubKey","stripeAccount","shid","shopifyCollectiveEnabled","isReshopSmsUpdates","isReshopEarlyHardApproval","isCropItemThumbnail","showItemSku","shouldHideNarvarSeamlessExchangeValue","userPreferencesEndpoint","translations","order_lookup_not_found","order_lookup_option_return_progress","order_lookup_return_has_been_cancelled","order_lookup_option_cancel_return","order_lookup_option_different_order","order_lookup_option_view_policy","order_lookup_find_another_order","order_lookup_return_window_prefix","order_lookup_gift_title_start_return","order_lookup_not_gift_link","order_lookup_gift_link","order_lookup_gift_start_instructions","order_lookup_gift_shipping_zip","order_lookup_gift_code","order_lookup_gift_email_helper","order_lookup_gift_code_helper","order_lookup_title_start_return","order_lookup_start_return_instructions","order_lookup_title_no_eligible_items","order_lookup_submit","choose_items_title","choose_items_none_eligible","choose_items_select_reason_prompt","choose_items_select_reason_prompt_exchange","choose_items_exchange_wizard_unavailable_title","choose_items_exchange_item_button_out_of_stock","choose_items_exchange_wizard_unavailable_go_back","choose_items_select_subreason_prompt","choose_items_select_quantity_prompt","choose_items_select_quantity_prompt_exchange","choose_items_quantity_label","choose_items_comment_title","choose_items_add_comment","choose_items_edit_comment","choose_items_comment_helper_text","choose_items_comment_optional_placeholder","choose_items_comment_required_placeholder","choose_items_comment_continue_label","choose_items_return_item_button_label","choose_items_exchange_item_button_label","choose_items_exchange_wizard_title","choose_items_return_button_label","choose_items_exchange_button_label","choose_items_exchange_variant_option_unavailable_label","choose_items_return_and_exchange_button_label","choose_items_choose_exchange_variant_label_general","choose_items_exchange_one_item_button_label","choose_items_choose_exchange_variant_not_available","choose_items_choose_exchange_variant_not_available_in_selected","choose_items_cancel_exchange_button_label","choose_items_find_another_item_button_label","choose_items_back_to_details_label","choose_items_find_another_item_title","choose_items_exchange_search_placeholder","choose_items_exchange_showing_results_label","choose_items_next_button_label","choose_method_title","choose_method_no_intersection","choose_method_card_in_store_title","choose_method_card_in_store_subtitle","choose_method_card_ship_on_your_own_title","choose_method_card_ship_on_your_own_subtitle","choose_method_substep_in_store_title","choose_method_substep_in_store_form_find_stores_near","choose_method_substep_in_store_locations_near","choose_method_card_by_mail_title","choose_method_card_by_mail_subtitle","choose_method_next_button_label","choose_method_substep_next_button_label","mailing_address_section_title","mailing_address_form_title","mailing_address_form_address_line_1","mailing_address_form_address_line_2","mailing_address_form_city","mailing_address_form_state","mailing_address_form_zip","mailing_address_form_first_name","mailing_address_form_last_name","gift_exchange_mailing_address_title","gift_exchange_mailing_address_save","gift_exchange_mailing_address_change","home_pickup_mailing_address_title","bad_mailing_address_title","bad_mailing_address_submit","return_review_title","return_review_comments_title","return_review_keep_item_disclaimer","return_review_exchange_item_disclaimer","return_review_estimated_refund","return_review_items","return_review_returning","return_review_receiving","return_review_return_method","return_review_subtotal","return_review_original_purchase_shipping","return_review_total_tax","return_review_charge_total","return_review_disclaimer","return_review_original_payment_method","return_review_submit_return","return_review_error_contact_retailer","return_review_item_quantity","shopnow_outstanding_credit_alert","shopnow_cancel_session_confirm_message","shopnow_cancel_session_success","shopnow_opt_in_title","shopnow_opt_in_description","shopnow_opt_in_incentive_description","shopnow_opt_in_yes","shopnow_opt_in_no","choose_refund_method_gift_card","choose_refund_method_original_payment","choose_refund_method_incentive_amount","choose_refund_method_next_button_label","choose_items_shopnow_remarks","choose_items_choose_exchange_variant_shopnow_action_description","choose_items_choose_exchange_variant_shopnow_action_link","away","email","cancel","color","edit","free","order_number","quantity","save","search","size","zipcode","exit","order_lookup_supplementary_text1","order_lookup_supplementary_text2","return_confirmation_subtitle_label_retry_enqueued","countryCodes","countryNamesByCode","mapValues","keyBy","getAddressFormConfig","overrides","firstName","value","label","getTranslation","lastName","address1","address2","city","province","zip","countryCode","addressDefaults","Object","entries","reduce","acc","key","data","config","baseClassName","logoImg","shopName","shopUrl","ERROR_EVENTS","generalError","sessionInvalid","sessionStale","shopUserUnregistered","shopUserUnverified","shopUserUnauthorized","shopUserDisabled","emitter","EventEmitter","emitSessionStale","emit","emitSessionInvalid","emitGeneralError","emitShopUserUnauthorized","onSessionStale","fn","on","removeListener","onSessionInvalid","onGeneralError","onShopUserUnauthorized","createCache","InMemoryCache","getGraphQLPath","location","origin","createErrorLink","onError","graphQLErrors","networkError","operation","logError","isNetwork","operationName","forEach","err","handleErrorByCode","code","keys","every","i","assign","logFunc","errorNotifier","errorGroup","graphql","errorName","statusCode","message","fetchFunctionForHttpLink","app","nvo_config","authenticatedFetch","fetch","createHttpLink","uri","HttpLink","credentials","includeExtensions","createClient","cache","requestLink","ApolloClient","link","ApolloLink","from","createClientWithoutToken","BackdropContainerContext","createContext","useStyles","makeRootStyles","root","position","left","top","container","name","BackdropContainerProvider","children","classes","containerRef","useRef","React","Provider","className","ref","useBackdropContainer","context","useContext","Error","withBackdropContainerProvider","Comp","HOC","props","displayName","tryCatch","_curry","catchCallback","func","args","defaultValue","_isLocalStorageEnabled","localStorage","getItem","e","safeLocalStorage","setItem","removeItem","clear","buildBackgroundImageStyle","imageUrl","background","backgroundSize","removeCssNamespace","css","namespace","globalStyle","wrapperStyle","replace","makeStyles","theme","margin","overflow","padding","border","fontSize","font","verticalAlign","fontStyle","outline","display","listStyle","quotes","content","borderCollapse","borderSpacing","appearance","boxSizing","textSizeAdjust","typography","body1","palette","primary","main","fontFamily","secondaryFontFamily","textDecoration","fontWeight","dark","secondary","contrastText","interpolationMode","lineHeight","textTransform","cursor","resize","WebkitFontSmoothing","MozOsxFontSmoothing","text","body2","letterSpacing","getBranding","breakpoints","down","isEmbedIframe","parent","getFrameViewportHeight","setWindowFrameBoxSize","height","postMessage","action","scrollToPosition","behavior","redirectToShop","redirectToCheckout","checkoutUrl","openLabel","cancelShopNowCheckout","toggleContainerClass","recursivelyApplyImportantToProperty","property","styles","result","isPlainObject","concat","buildComponentOverrides","mapped","keyStyles","merge","startsWith","pseudoClasses","includes","buildOverrides","muiTheme","stylesMap","component","stylesFn","opts","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","resolve","module","exports","errorSnackbar","backgroundColor","marginTop","spacing","marginBottom","ErrorSnackbar","SnackbarContent","_extends","elevation","systemFonts","fontPresets","createMuiTheme","narvarBlue","navy","green","red","frost","cloud","pistachio","coconut","createBaseTheme","branding","base_body_text_size","borderRadius","border_radius","brandPrimary","brand_primary","brandSecondary","brand_secondary","bodyText","body_text","bodyBackground","body_background","errorColor","error_color","errorTextColor","error_text_color","buildSansFontFamily","primary_font","secondary_font","default","MuiAppBar","MuiButton","disableRipple","MuiButtonBase","MuiButtonGroup","MuiIconButton","MuiLink","underline","is_link_underlined","MuiPaper","MuiSwitch","MuiTypography","MuiOutlinedInput","notched","shape","isLinkAllCaps","is_link_all_caps","caption","h1","h2","h3","h4","h5","h6","buildToolbarHeightForProp","cssProp","negative","up","createTheme","baseTheme","paddingRadius","mixins","toolbar","toolbarHeightForProp","contained","boxShadow","containedSecondary","common","white","containedPrimary","textPrimary","whiteSpace","outlinedPrimary","transition","MuiExpansionPanel","MuiExpansionPanelSummary","minHeight","MuiInputBase","input","MuiInputLabel","outlined","transform","MuiMenuItem","inputMultiline","MuiSnackbarContent","flexWrap","alignItems","buttonStyles","buttonBaseStyles","MuiCollapse","collapseStyles","MuiContainer","containerStyles","MuiFormControl","formControlStyles","MuiFormLabel","formLabelStyles","MuiGrid","gridStyles","iconButtonStyles","inputBaseStyles","inputLabelStyles","linkStyles","MuiList","listStyles","MuiListItem","listItemStyles","menuItemStyles","outlinedInputStyles","paperStyles","MuiPopover","popoverStyles","snackbarContentStyles","MuiSvgIcon","svgIconStyles","MuiTextField","textFieldStyles","MuiTouchRipple","touchRippleStyles","typographyStyles","PrivateNotchedOutline","privateNotchedOutlineStyles","createClassNameGenerator","prefix","counter","rule","sheet","options","classNamePrefix","autoGenerateClassName","computeFontStyle","baseFontSize","THEME","metadata","display2","display1","style","family","join","getGraphQLErrors","getGraphQLError","getNetworkError","getErrorBy","predicate","_find","getError","getSchemaError","_compose","indexOf","_get","getHandledError","getUnhandledError","undefined","getHandledErrorMessage","defaultErrorMessage","getAddressError","extensions","error_type","getIneligibleReturnMethodError","error_code","getIneligibleItemsReturnedError","getPaymentNewClientSecretError","new_client_secret","getPaymentNewClientSecret","_getOr","getReshopError","getReshopCancelError","containsZErrorCode","errorMessage","brandingDefaults","custom_css","background_image_url","fixed_app_bar","root_margin_top","root_margin_bottom","step_delimiter_position","NvoConfigDefaults","is_exchanges_enabled","is_uneven_exchanges_enabled","is_stripe_enabled","is_payment_flow_enabled","is_refund_automation_enabled","is_gift_zip_enabled","is_gift_receipt_enabled","is_shop_now_enabled","is_shop_now_with_credit_enabled","is_xpo_enabled","is_evri_enabled","is_ship_engine_enabled","is_chronopost_enabled","enable_in_app_label","logo_img","shop_name","shop_url","country_codes","apiKey","shopOrigin","is_distribute_store_credit_enabled","is_advanced_analytics_enabled","rollbarKey","rollbarKeyForShopNow","shop_stripe_acc","is_csv_upload_enabled","google_fonts_api_key","stripe_pub_key","hide_return_method_price","admin_enabled","only_show_estimated_refund","should_hide_narvar_seamless_exchange_value","nvo_urlParams","URLSearchParams","isAdvanced","adminStyleConfig","country","country_code","maptilerKey","backdropRef","frameViewportHeight","setFrameViewportHeight","useState","useMemo","ie11","edge","verticalHeight","percent","MuiModal","current"],"sourceRoot":""}