{
  "version": 3,
  "sources": ["ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/pendantAttachments.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/pendantCollections.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/pendantMaterials.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/productFormats.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/pendantSizes.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/pendantTypes.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/productTypes.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/utils/productUtils.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/utils/pendantInfoUtils.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/facebook.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/config/environment.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/countries.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/tracking/shared/helpers.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/tracking/facebook/facebook.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/utils/cookie.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/utils/nanoid.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/brands.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/foilColors.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/starmap/colors.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/resources/starmap/themes.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/utils/themeUtils.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/utils/productSku.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/tracking/tiktok/tiktokPixel.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/tracking/tiktok/tiktok.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/tracking/server/logging.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/tracking/google/ga4Analytics.js", "ssg:https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/tracking/tracking.js", "ssg:https://framerusercontent.com/modules/hf8dXdUvjqiYuDILvSsp/Gi5PnTUcxsp6SWj1IYtB/utils_Tracking.js"],
  "sourcesContent": ["// src/resources/pendantAttachments.ts\nvar PendantAttachments;\n(function(PendantAttachments2) {\n  PendantAttachments2[\"SILVER\"] = \"silver\";\n  PendantAttachments2[\"GOLD\"] = \"gold\";\n  PendantAttachments2[\"GDVM\"] = \"gdvm\";\n  PendantAttachments2[\"CORD\"] = \"cord\";\n  PendantAttachments2[\"NO_ATTACHMENT\"] = \"no_attachment\";\n  PendantAttachments2[\"LAYERED_ON_PENDANT\"] = \"layered_on_pendant\";\n  PendantAttachments2[\"BRACELET_GOLD\"] = \"bracelet_gold\";\n  PendantAttachments2[\"BRACELET_SILVER\"] = \"bracelet_silver\";\n  PendantAttachments2[\"BRACELET_CORD\"] = \"bracelet_cord\";\n  PendantAttachments2[\"BRACELET_GDVM\"] = \"bracelet_gdvm\";\n})(PendantAttachments || (PendantAttachments = {}));\nexport {\n  PendantAttachments\n};\n", "// src/resources/pendantCollections.ts\nvar PendantCollections;\n(function(PendantCollections2) {\n  PendantCollections2[\"NIGHT_SKY\"] = \"NIGHT_SKY\";\n  PendantCollections2[\"MOMENTS\"] = \"MOMENTS\";\n})(PendantCollections || (PendantCollections = {}));\nexport {\n  PendantCollections\n};\n", "// src/resources/pendantMaterials.ts\nvar PendantMaterials;\n(function(PendantMaterials2) {\n  PendantMaterials2[\"ONYX_15\"] = \"onyx_15mm\";\n  PendantMaterials2[\"ONYX_20\"] = \"onyx_20mm\";\n  PendantMaterials2[\"ONYX\"] = \"onyx\";\n  PendantMaterials2[\"GONYX_15\"] = \"gonyx_15mm\";\n  PendantMaterials2[\"GONYX_20\"] = \"gonyx_20mm\";\n  PendantMaterials2[\"GONYX\"] = \"gonyx\";\n  PendantMaterials2[\"SILVER_15\"] = \"silver_15mm\";\n  PendantMaterials2[\"SILVER_20\"] = \"silver_20mm\";\n  PendantMaterials2[\"SILVER\"] = \"silver\";\n  PendantMaterials2[\"GOLD_15\"] = \"gold_15mm\";\n  PendantMaterials2[\"GOLD_20\"] = \"gold_20mm\";\n  PendantMaterials2[\"GOLD\"] = \"gold\";\n  PendantMaterials2[\"GDVM_15\"] = \"gdvm_15mm\";\n  PendantMaterials2[\"GDVM_20\"] = \"gdvm_20mm\";\n  PendantMaterials2[\"GDVM\"] = \"gdvm\";\n  PendantMaterials2[\"LOCKET_SILVER_20\"] = \"locket_silver_20mm\";\n  PendantMaterials2[\"LOCKET_GDVM_20\"] = \"locket_gdvm_20mm\";\n  PendantMaterials2[\"BEZEL_SILV_ONYX_25\"] = \"bezel_silver_onyx_25mm\";\n  PendantMaterials2[\"BEZEL_SILV_ONYX_20\"] = \"bezel_silver_onyx_20mm\";\n  PendantMaterials2[\"BEZEL_SILV_ONYX_15\"] = \"bezel_silver_onyx_15mm\";\n  PendantMaterials2[\"BEZEL_GDVM_ONYX_25\"] = \"bezel_gdvm_onyx_25mm\";\n  PendantMaterials2[\"BEZEL_GDVM_ONYX_20\"] = \"bezel_gdvm_onyx_20mm\";\n  PendantMaterials2[\"BEZEL_GDVM_ONYX_15\"] = \"bezel_gdvm_onyx_15mm\";\n  PendantMaterials2[\"BEZEL_SILV_GONYX_25\"] = \"bezel_silver_gonyx_25mm\";\n  PendantMaterials2[\"BEZEL_SILV_GONYX_20\"] = \"bezel_silver_gonyx_20mm\";\n  PendantMaterials2[\"BEZEL_SILV_GONYX_15\"] = \"bezel_silver_gonyx_15mm\";\n  PendantMaterials2[\"BEZEL_GDVM_GONYX_25\"] = \"bezel_gdvm_gonyx_25mm\";\n  PendantMaterials2[\"BEZEL_GDVM_GONYX_20\"] = \"bezel_gdvm_gonyx_20mm\";\n  PendantMaterials2[\"BEZEL_GDVM_GONYX_15\"] = \"bezel_gdvm_gonyx_15mm\";\n})(PendantMaterials || (PendantMaterials = {}));\nexport {\n  PendantMaterials\n};\n", "// src/resources/productFormats.ts\nvar ProductFormats;\n(function(ProductFormats2) {\n  ProductFormats2[\"PRINT\"] = \"print\";\n  ProductFormats2[\"FRAMED\"] = \"framed\";\n  ProductFormats2[\"CANVAS\"] = \"canvas\";\n  ProductFormats2[\"DIGITAL\"] = \"digital\";\n  ProductFormats2[\"FOIL\"] = \"foil\";\n  ProductFormats2[\"FOIL_FRAMED\"] = \"foil_framed\";\n  ProductFormats2[\"GITD\"] = \"gitd\";\n  ProductFormats2[\"GITD_FRAMED\"] = \"gitd_framed\";\n  ProductFormats2[\"JEWELRY\"] = \"jewelry\";\n  ProductFormats2[\"GIFT_KIT\"] = \"gift_kit\";\n  ProductFormats2[\"SHIPPING_UPGRADE\"] = \"shipping_upgrade\";\n  ProductFormats2[\"SIZE_UPGRADE\"] = \"size_upgrade\";\n  ProductFormats2[\"FRAME_UPGRADE\"] = \"frame_upgrade\";\n  ProductFormats2[\"CANVAS_UPGRADE\"] = \"canvas_upgrade\";\n  ProductFormats2[\"PHONE_CASE\"] = \"phone_case\";\n  ProductFormats2[\"BOOK\"] = \"book\";\n})(ProductFormats || (ProductFormats = {}));\nexport {\n  ProductFormats\n};\n", "// src/resources/pendantSizes.ts\nvar PendantSizes;\n(function(PendantSizes2) {\n  PendantSizes2[\"STANDARD\"] = \"25mm\";\n  PendantSizes2[\"SMALL20MM\"] = \"20mm\";\n  PendantSizes2[\"SMALL15MM\"] = \"15mm\";\n})(PendantSizes || (PendantSizes = {}));\nexport {\n  PendantSizes\n};\n", "// src/resources/pendantTypes.ts\nvar PendantTypes;\n(function(PendantTypes2) {\n  PendantTypes2[\"NIGHT_SKY\"] = \"NIGHT_SKY\";\n  PendantTypes2[\"MOON_PHASE\"] = \"MOON_PHASE\";\n  PendantTypes2[\"BIRTH_CONSTELLATION\"] = \"BIRTH_CONSTELLATION\";\n  PendantTypes2[\"NOTES\"] = \"NOTES\";\n  PendantTypes2[\"DOODLE\"] = \"DOODLE\";\n  PendantTypes2[\"ICON\"] = \"ICON\";\n  PendantTypes2[\"ECLIPSE\"] = \"ECLIPSE\";\n  PendantTypes2[\"FINGER_PRINTS\"] = \"FINGER_PRINTS\";\n  PendantTypes2[\"PAW_PRINTS\"] = \"PAW_PRINTS\";\n  PendantTypes2[\"LOVE_NOTES\"] = \"LOVE_NOTES\";\n  PendantTypes2[\"HANDWRITING\"] = \"HANDWRITING\";\n  PendantTypes2[\"INITIALS\"] = \"INITIALS\";\n})(PendantTypes || (PendantTypes = {}));\nexport {\n  PendantTypes\n};\n", "// src/resources/productTypes.ts\nvar ProductTypes;\n(function(ProductTypes2) {\n  ProductTypes2[\"STARMAP\"] = \"starmap\";\n  ProductTypes2[\"PENDANT\"] = \"pendant\";\n  ProductTypes2[\"ORRERY\"] = \"orrery\";\n  ProductTypes2[\"GIFT_KIT\"] = \"gift_kit\";\n  ProductTypes2[\"NIGHT_SKY_MAPS\"] = \"nightskymaps\";\n  ProductTypes2[\"DRAW_MY_TRIBE\"] = \"draw_my_tribe\";\n  ProductTypes2[\"MYEVERMAP\"] = \"myevermap\";\n  ProductTypes2[\"BOOK\"] = \"book\";\n})(ProductTypes || (ProductTypes = {}));\nexport {\n  ProductTypes\n};\n", "// src/utils/productUtils.ts\nimport { ProductFormats } from \"../resources/productFormats.js\";\nimport { ProductTypes } from \"../resources/productTypes.js\";\nimport { pendantInfoUtils } from \"./pendantInfoUtils.js\";\nvar ensureProductFormatSet = (item) => {\n  if (!item.productFormat || item.productFormat === void 0 || item.productFormat === null) {\n    let productFormat = null;\n    if (item.sku && item.sku === \"TNS_GIFT_KIT\") {\n      productFormat = ProductFormats.GIFT_KIT;\n    } else if (item.sku && item.sku === \"PHBK_21_SQ_HPC\") {\n      productFormat = ProductFormats.BOOK;\n    } else if (item.design && item.design.productType === ProductTypes.BOOK) {\n      productFormat = ProductFormats.BOOK;\n    } else if (item.sku && item.sku === \"TNS_SHIPPING_UPGRADE\") {\n      productFormat = ProductFormats.SHIPPING_UPGRADE;\n    } else if (item.sku && item.sku === \"TNS_FRAME_UPGRADE\") {\n      productFormat = ProductFormats.FRAME_UPGRADE;\n    } else if (item.sku && item.sku === \"TNS_CANVAS_UPGRADE\") {\n      productFormat = ProductFormats.CANVAS_UPGRADE;\n    } else if (item.sku && item.sku === \"TNS_SIZE_UPGRADE\") {\n      productFormat = ProductFormats.SIZE_UPGRADE;\n    } else if (item.sku && item.sku === \"TNS_PHONE_CASE\") {\n      productFormat = ProductFormats.PHONE_CASE;\n    } else if (item.isDigital === true) {\n      productFormat = ProductFormats.DIGITAL;\n    } else if (item.isPendant === true) {\n      productFormat = ProductFormats.JEWELRY;\n    } else if (item.isCanvas === true) {\n      productFormat = ProductFormats.CANVAS;\n    } else if (item.isFramed === true) {\n      productFormat = ProductFormats.FRAMED;\n    } else if (item.sku && item.sku.indexOf(\"FAP-\") >= 0) {\n      productFormat = ProductFormats.PRINT;\n    } else if (item.sku && item.sku === \"digital\") {\n      productFormat = ProductFormats.DIGITAL;\n    }\n    if (productFormat !== null) {\n      item.productFormat = productFormat;\n    } else {\n      item.productFormat = ProductFormats.PRINT;\n    }\n  }\n  return item;\n};\nvar getProductFormatPrint = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  switch (item.productFormat) {\n    case ProductFormats.PRINT:\n    case ProductFormats.CANVAS:\n    case ProductFormats.FRAMED:\n      return ProductFormats.PRINT;\n    case ProductFormats.FOIL:\n    case ProductFormats.FOIL_FRAMED:\n      return ProductFormats.FOIL;\n    case ProductFormats.GITD:\n    case ProductFormats.GITD_FRAMED:\n      return ProductFormats.GITD;\n    default:\n      return ProductFormats.PRINT;\n  }\n};\nvar getProductFormatFramed = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  switch (item.productFormat) {\n    case ProductFormats.PRINT:\n    case ProductFormats.CANVAS:\n    case ProductFormats.FRAMED:\n      return ProductFormats.FRAMED;\n    case ProductFormats.FOIL:\n    case ProductFormats.FOIL_FRAMED:\n      return ProductFormats.FOIL_FRAMED;\n    case ProductFormats.GITD:\n    case ProductFormats.GITD_FRAMED:\n      return ProductFormats.GITD_FRAMED;\n    default:\n      return ProductFormats.FRAMED;\n  }\n};\nvar getProductFormatCanvas = (_itemParam) => {\n  return ProductFormats.CANVAS;\n};\nvar formatIsPrint = (productFormat) => {\n  return productFormat ? [ProductFormats.PRINT, ProductFormats.FOIL, ProductFormats.GITD].includes(productFormat) : false;\n};\nvar isPrint = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  return formatIsPrint(item.productFormat);\n};\nvar formatIsFramed = (productFormat) => {\n  return productFormat ? [\n    ProductFormats.FRAMED,\n    ProductFormats.FOIL_FRAMED,\n    ProductFormats.GITD_FRAMED\n  ].includes(productFormat) : false;\n};\nvar isFramed = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  return formatIsFramed(item.productFormat);\n};\nvar formatIsFoilGitd = (productFormat) => {\n  return productFormat ? [\n    ProductFormats.FOIL,\n    ProductFormats.FOIL_FRAMED,\n    ProductFormats.GITD,\n    ProductFormats.GITD_FRAMED\n  ].includes(productFormat) : false;\n};\nvar isFoilGitd = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  return formatIsFoilGitd(item.productFormat);\n};\nvar formatIsGitd = (productFormat) => {\n  return productFormat ? [ProductFormats.GITD, ProductFormats.GITD_FRAMED].includes(productFormat) : false;\n};\nvar isGitd = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  return formatIsGitd(item.productFormat);\n};\nvar formatIsFoil = (productFormat) => {\n  return productFormat ? [ProductFormats.FOIL, ProductFormats.FOIL_FRAMED].includes(productFormat) : false;\n};\nvar isFoil = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  return formatIsFoil(item.productFormat);\n};\nvar formatIsCanvas = (productFormat) => {\n  return productFormat ? [ProductFormats.CANVAS].includes(productFormat) : false;\n};\nvar isCanvas = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  return formatIsCanvas(item.productFormat);\n};\nvar formatIsJewelry = (productFormat) => {\n  return productFormat ? [ProductFormats.JEWELRY].includes(productFormat) : false;\n};\nvar isJewelry = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  return formatIsJewelry(item.productFormat);\n};\nvar formatIsDigital = (productFormat) => {\n  return productFormat ? [ProductFormats.DIGITAL].includes(productFormat) : false;\n};\nvar isDigital = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  return formatIsDigital(item.productFormat);\n};\nvar formatIsAddOn = (productFormat) => {\n  return productFormat ? [\n    ProductFormats.BOOK,\n    ProductFormats.GIFT_KIT,\n    ProductFormats.SHIPPING_UPGRADE,\n    ProductFormats.FRAME_UPGRADE,\n    ProductFormats.CANVAS_UPGRADE\n  ].includes(productFormat) : false;\n};\nvar isAddOn = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  return formatIsAddOn(item.productFormat);\n};\nvar formatIsGiftKit = (productFormat) => {\n  return productFormat ? [ProductFormats.GIFT_KIT].includes(productFormat) : false;\n};\nvar isGiftKit = (itemParam) => {\n  const item = ensureProductFormatSet(itemParam);\n  return formatIsGiftKit(item.productFormat);\n};\nvar productFormatIsFoil = (productFormat) => {\n  if (productFormat && [ProductFormats.FOIL, ProductFormats.FOIL_FRAMED].includes(productFormat)) {\n    return true;\n  }\n  return false;\n};\nvar productFormatIsGitd = (productFormat) => {\n  if ([ProductFormats.GITD, ProductFormats.GITD_FRAMED].includes(productFormat)) {\n    return true;\n  }\n  return false;\n};\nvar productFormatShortCategoryName = (p) => {\n  switch (p) {\n    default:\n    case ProductFormats.PRINT:\n    case ProductFormats.FRAMED:\n    case ProductFormats.CANVAS:\n    case ProductFormats.DIGITAL:\n    case ProductFormats.FOIL:\n    case ProductFormats.FOIL_FRAMED:\n    case ProductFormats.GITD:\n    case ProductFormats.GITD_FRAMED:\n      return \"Prints\";\n    case ProductFormats.JEWELRY:\n    case ProductFormats.GIFT_KIT:\n      return \"Jewelry\";\n    case ProductFormats.SIZE_UPGRADE:\n    case ProductFormats.SHIPPING_UPGRADE:\n    case ProductFormats.CANVAS_UPGRADE:\n    case ProductFormats.FRAME_UPGRADE:\n      return \"Upgrade\";\n    case ProductFormats.PHONE_CASE:\n      return \"Phone Case\";\n    case ProductFormats.BOOK:\n      return \"Book\";\n  }\n};\nvar getProductNameForGA = (item, allItems) => {\n  let productName = \"Classic Print\";\n  if (productUtils.isJewelry(item)) {\n    productName = pendantInfoUtils.getJewelryNameForAnalytics(item, allItems || []);\n  } else if (productUtils.isDigital(item)) {\n    productName = \"Digital Download\";\n  } else if (productUtils.isCanvas(item)) {\n    productName = \"Canvas\";\n    if (productUtils.isGitd(item)) {\n      productName = \"Canvas GITD\";\n    } else if (productUtils.isFoil(item)) {\n      productName = \"Canvas Foil\";\n    }\n  } else if (productUtils.isFramed(item)) {\n    productName = \"Framed\";\n    if (productUtils.isGitd(item)) {\n      productName = \"Framed GITD Print\";\n    } else if (productUtils.isFoil(item)) {\n      productName = \"Framed Foil Print\";\n    }\n  } else if (productUtils.isGitd(item)) {\n    productName = \"GITD Print\";\n    if (productUtils.isFramed(item)) {\n      productName = \"Framed GITD Print\";\n    } else if (productUtils.isCanvas(item)) {\n      productName = \"Canvas GITD\";\n    }\n  } else if (productUtils.isFoil(item)) {\n    productName = \"Foil Print\";\n    if (productUtils.isFramed(item)) {\n      productName = \"Framed Foil Print\";\n    } else if (productUtils.isCanvas(item)) {\n      productName = \"Canvas Foil\";\n    }\n  }\n  return productName;\n};\nvar productUtils = {\n  ensureProductFormatSet,\n  getProductFormatPrint,\n  getProductFormatFramed,\n  getProductFormatCanvas,\n  isPrint,\n  formatIsPrint,\n  isFramed,\n  formatIsFramed,\n  formatIsFoilGitd,\n  isFoilGitd,\n  isGitd,\n  isFoil,\n  isCanvas,\n  formatIsCanvas,\n  isJewelry,\n  formatIsJewelry,\n  isDigital,\n  formatIsDigital,\n  formatIsFoil,\n  formatIsGitd,\n  isAddOn,\n  formatIsAddOn,\n  isGiftKit,\n  formatIsGiftKit,\n  productFormatIsFoil,\n  productFormatIsGitd,\n  productFormatShortCategoryName,\n  getProductNameForGA\n};\nexport {\n  getProductNameForGA,\n  productUtils\n};\n", "// src/utils/pendantInfoUtils.ts\nimport { PendantAttachments } from \"../resources/pendantAttachments.js\";\nimport { PendantCollections } from \"../resources/pendantCollections.js\";\nimport { PendantMaterials } from \"../resources/pendantMaterials.js\";\nimport { ProductFormats } from \"../resources/productFormats.js\";\nimport { PendantSizes } from \"../resources/pendantSizes.js\";\nimport { PendantTypes } from \"../resources/pendantTypes.js\";\nimport { productUtils } from \"./productUtils.js\";\nvar getJewelryNameForAnalytics = (item, allItems) => {\n  const itemsLayeredOnThis = allItems.filter((x) => item.id !== x.id && productUtils.isJewelry(x) && x.pendantAttachment && isLayer(x.pendantAttachment) && x.pendantAttachedToItemId && x.pendantAttachedToItemId === item.id);\n  return getPendantProductNameShort(item.pendantType, item.pendantMaterial, item.pendantAttachment, itemsLayeredOnThis);\n};\nvar isLayer = (pendantAttachment) => {\n  return PendantAttachments.LAYERED_ON_PENDANT === pendantAttachment;\n};\nvar isPendantLayer = (pendantAttachment) => {\n  return isLayer(pendantAttachment);\n};\nvar isOverlay = (pendantAttachment) => {\n  return isLayer(pendantAttachment);\n};\nvar getBaseMaterial = (pendantMaterial) => {\n  switch (pendantMaterial) {\n    case PendantMaterials.GDVM:\n    case PendantMaterials.GDVM_20:\n    case PendantMaterials.GDVM_15:\n    case PendantMaterials.LOCKET_GDVM_20:\n      return PendantMaterials.GDVM;\n    case PendantMaterials.GOLD:\n    case PendantMaterials.GOLD_20:\n    case PendantMaterials.GOLD_15:\n      return PendantMaterials.GOLD;\n    case PendantMaterials.SILVER:\n    case PendantMaterials.SILVER_20:\n    case PendantMaterials.SILVER_15:\n    case PendantMaterials.LOCKET_SILVER_20:\n      return PendantMaterials.SILVER;\n    case PendantMaterials.ONYX:\n    case PendantMaterials.ONYX_20:\n    case PendantMaterials.ONYX_15:\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n    case PendantMaterials.BEZEL_SILV_ONYX_25:\n    case PendantMaterials.BEZEL_GDVM_ONYX_20:\n    case PendantMaterials.BEZEL_GDVM_ONYX_25:\n      return PendantMaterials.ONYX;\n    case PendantMaterials.GONYX:\n    case PendantMaterials.BEZEL_SILV_GONYX_20:\n    case PendantMaterials.BEZEL_SILV_GONYX_25:\n    case PendantMaterials.BEZEL_GDVM_GONYX_20:\n    case PendantMaterials.BEZEL_GDVM_GONYX_25:\n      return PendantMaterials.GONYX;\n    default:\n      break;\n  }\n  return pendantMaterial;\n};\nvar getPendantInfoTitle = (_pendantCollection, pendantType, pendantMaterial, pendantAttachment, pendantAttachedToMaterial, productFormat) => {\n  let output = \"\";\n  if (productFormat && isPrint(productFormat)) {\n    return \"\";\n  }\n  if (productUtils.formatIsDigital(productFormat)) {\n    return \"\";\n  }\n  switch (pendantType) {\n    case PendantTypes.MOON_PHASE:\n      output += \" Moon Phase\";\n      break;\n    case PendantTypes.NOTES:\n      output += \" Note\";\n      break;\n    case PendantTypes.DOODLE:\n      output += \" Your Design\";\n      break;\n    case PendantTypes.ICON:\n      output += \" Icon\";\n      break;\n    case PendantTypes.ECLIPSE:\n      output += \" Eclipse\";\n      break;\n    case PendantTypes.FINGER_PRINTS:\n      output += \" Finger Prints\";\n      break;\n    case PendantTypes.PAW_PRINTS:\n      output += \" Paw Prints\";\n      break;\n    case PendantTypes.LOVE_NOTES:\n      output += \" Love Notes\";\n      break;\n    case PendantTypes.HANDWRITING:\n      output += \" Handwriting\";\n      break;\n    case PendantTypes.INITIALS:\n      output += \" Initials\";\n      break;\n    case PendantTypes.BIRTH_CONSTELLATION:\n    case PendantTypes.NIGHT_SKY:\n    default:\n      output += \"\";\n      break;\n  }\n  const baseMaterial = getBaseMaterial(pendantMaterial);\n  switch (baseMaterial) {\n    case PendantMaterials.GOLD:\n      output += \" 9k Gold\";\n      break;\n    case PendantMaterials.SILVER:\n      if (PendantTypes.MOON_PHASE === pendantType)\n        output = \" Sterling Silver\" + output;\n      else\n        output += \" Sterling Silver\";\n      break;\n    case PendantMaterials.ONYX:\n      output += \" Black Onyx\";\n      break;\n    case PendantMaterials.GONYX:\n      output += \" Green Onyx\";\n      break;\n    case PendantMaterials.GDVM:\n      if (PendantTypes.MOON_PHASE === pendantType)\n        output = \" 18k Gold Vermeil\" + output;\n      else\n        output += \" 18k Gold Vermeil\";\n      break;\n      break;\n  }\n  const isBezel = isBezelMaterial(pendantMaterial);\n  const isGoldVermeilBezel = [\n    PendantMaterials.BEZEL_GDVM_ONYX_25,\n    PendantMaterials.BEZEL_GDVM_ONYX_20,\n    PendantMaterials.BEZEL_GDVM_ONYX_15,\n    PendantMaterials.BEZEL_GDVM_GONYX_25,\n    PendantMaterials.BEZEL_GDVM_GONYX_20,\n    PendantMaterials.BEZEL_GDVM_GONYX_15\n  ].includes(pendantMaterial);\n  if (isBezel) {\n    if (isGoldVermeilBezel) {\n      output += \" in a Gold Vermeil Bezel\";\n    } else {\n      output += \" in a Silver Bezel\";\n    }\n  } else {\n    if (isBracelet(pendantAttachment)) {\n      output += \" Bracelet\";\n    } else if (isLocketMaterial(pendantMaterial)) {\n      output += \" Locket\";\n    } else {\n      output += \" Pendant\";\n    }\n  }\n  switch (pendantAttachment) {\n    case PendantAttachments.GDVM:\n      if (isLocketMaterial(pendantMaterial)) {\n        output += ` on a 22\" Gold Vermeil chain`;\n      } else if (isBezel) {\n        output += ` on a Gold Vermeil Chain`;\n      }\n      break;\n    case PendantAttachments.GOLD:\n      if (baseMaterial === PendantMaterials.GOLD)\n        output += ` on a Solid Gold Chain`;\n      else\n        output += ` on a 9k Solid Gold Chain`;\n      break;\n    case PendantAttachments.SILVER:\n      output += ` on a Sterling Silver Chain`;\n      break;\n    case PendantAttachments.CORD:\n      output += ` on a Black Cord Necklet`;\n      break;\n    case PendantAttachments.NO_ATTACHMENT:\n      output += ` (no Chain or Necklace)`;\n      break;\n    case PendantAttachments.LAYERED_ON_PENDANT:\n      {\n        let baseLayerType = \"Pendant\";\n        if (pendantAttachedToMaterial && isLocketMaterial(pendantAttachedToMaterial)) {\n          baseLayerType = \"Locket\";\n        } else if (pendantAttachedToMaterial && isBezelMaterial(pendantAttachedToMaterial)) {\n          baseLayerType = \"Bezel\";\n        }\n        switch (getBaseMaterial(pendantAttachedToMaterial || PendantMaterials.SILVER)) {\n          case PendantMaterials.GOLD:\n            output += ` Layered on Gold Pendant`;\n            break;\n          case PendantMaterials.GDVM:\n            output += ` Layered on Gold Vermeil ${baseLayerType}`;\n            break;\n          case PendantMaterials.SILVER:\n            output += ` Layered on Silver ${baseLayerType}`;\n            break;\n          case PendantMaterials.ONYX:\n            output += ` Layered on Onyx Pendant`;\n            break;\n          case PendantMaterials.GONYX:\n            output += ` Layered on a Green Onyx Pendant`;\n            break;\n          default:\n            output += ` Layered on Pendant`;\n            break;\n        }\n      }\n      break;\n    case PendantAttachments.BRACELET_GOLD:\n      output += ` on a Gold Bracelet`;\n      break;\n    case PendantAttachments.BRACELET_GDVM:\n      output += ` on a 18k Gold Vermeil Bracelet`;\n      break;\n    case PendantAttachments.BRACELET_SILVER:\n      output += ` on a Sterling Silver Bracelet`;\n      break;\n    case PendantAttachments.BRACELET_CORD:\n      output += ` on a Black Cord Bracelet`;\n      break;\n  }\n  return \"{size}\" + output;\n};\nvar getPendantBasicDescription = (pendantType, pendantMaterial) => {\n  switch (pendantType) {\n    case PendantTypes.NIGHT_SKY:\n      if (pendantMaterial) {\n        const isBezel = isBezelMaterial(pendantMaterial);\n        const pendantSize = getPendantSizeOfMaterial(pendantMaterial);\n        if (isLocketMaterial(pendantMaterial)) {\n          return `A custom Night Sky, etched on a {size} sterling silver or Gold Vermeil locket that hangs elegantly from an 22\" Sterling Silver or Gold Vermeil chain. Each one is laser engraved and polished by hand.`;\n        } else if (isBezel) {\n          if (pendantSize === PendantSizes.STANDARD) {\n            return `A custom Night Sky, etched on a {size} sterling silver or Gold Vermeil locket that hangs elegantly from an 30\" Sterling Silver or Gold Vermeil chain. Each one is laser engraved and polished by hand.`;\n          } else {\n            return `A custom Night Sky, etched on a {size} sterling silver or Gold Vermeil locket that hangs elegantly from an 18\" Sterling Silver or Gold Vermeil chain. Each one is laser engraved and polished by hand.`;\n          }\n        }\n      }\n      return `A custom Night Sky, etched on a {size} sterling silver, Black Onyx or Gold pendant that hangs elegantly from an 18\" sterling silver, Cord or 9k Gold diamond cut chain. Each one is laser engraved and polished by hand.`;\n    case PendantTypes.NOTES:\n      return `A Love Notes necklace is an utterly unique piece of jewelry created by you. It features a personal handwritten love note engraved on the front with a message on the back. It's a beautiful and timeless piece of jewelry that captures the unique essence of your love.`;\n    case PendantTypes.DOODLE:\n      return `Capture the essence of childhood wonder and imagination with their Doodle etched onto silver, onyx or gold for all time. Our Doodles jewelry transforms a child's simple drawing into a timeless and elegant piece of wearable art.`;\n    case PendantTypes.ICON:\n      return `A unique expression etched on silver, onyx or gold for all time. It's an extraordinary and meaningful keepsake, a precious symbol and reminder of love, friendship and connection.`;\n    case PendantTypes.BIRTH_CONSTELLATION:\n      return `Celebrate your personality with a sterling silver, Black Onyx or 9k Gold personalised star sign. This represents the constellation associated with a chosen date of birth.`;\n    case PendantTypes.MOON_PHASE:\n      return `Celebrate the moon's timeless beauty with our stunning sterling silver moon phase. This represents how the moon was seen on your chosen date. An eye-catching symbol of the natural rhythms of life and a reminder to embrace the cycles of growth and change.`;\n    case PendantTypes.ECLIPSE:\n      return `A Night Sky Eclipse is a unique piece of Jewelry celebrating the once in a lifetime event of the 2024 lunar eclipse. Laser engraved and hand polished in both sterling silver and 18k gold vermeil.`;\n    case PendantTypes.PAW_PRINTS:\n      return `Our unique silver pendants capture the love and memories you share with your dog, allowing you to carry a piece of them with you always. Each pendant is custom engraved with your dog\\u2019s actual paw print, creating a beautiful and unique piece.`;\n    case PendantTypes.LOVE_NOTES:\n      return `A unique expression etched on silver, onyx or gold for all time. It's an extraordinary and meaningful keepsake, a precious symbol and reminder of love, friendship and connection.`;\n    case PendantTypes.HANDWRITING:\n      return `A unique expression etched on silver, onyx or gold for all time. It's an extraordinary and meaningful keepsake, a precious symbol and reminder of love, friendship and connection.`;\n    case PendantTypes.INITIALS:\n      return `Introducing Initials, the personal touch your jewelry collection has been waiting for. Whether it's your initials, a meaningful date, or a blend of significant letters, we bring your vision to life.`;\n    case PendantTypes.FINGER_PRINTS:\n      return `A unique expression etched on silver, onyx or gold for all time. It's an extraordinary and meaningful keepsake, a precious symbol and reminder of love, friendship and connection.`;\n  }\n  return \"\";\n};\nvar getDefaultAttachmentForMaterial = (pendantMaterial, pendantAttachment) => {\n  if (isBezelMaterial(pendantMaterial)) {\n    const { attachment } = getMaterialAndAttachmentForBezel(pendantMaterial, pendantAttachment || PendantAttachments.SILVER);\n    return attachment;\n  }\n  switch (getBaseMaterial(pendantMaterial)) {\n    case PendantMaterials.GOLD: {\n      return PendantAttachments.GOLD;\n    }\n    case PendantMaterials.GDVM: {\n      if (pendantAttachment && isBracelet(pendantAttachment)) {\n        return PendantAttachments.BRACELET_GDVM;\n      }\n      return PendantAttachments.GDVM;\n    }\n    case PendantMaterials.SILVER: {\n      if (pendantAttachment && isBracelet(pendantAttachment)) {\n        return PendantAttachments.BRACELET_SILVER;\n      }\n      return PendantAttachments.SILVER;\n    }\n    case PendantMaterials.ONYX: {\n      if (pendantAttachment && isBracelet(pendantAttachment)) {\n        return PendantAttachments.BRACELET_SILVER;\n      }\n      return PendantAttachments.SILVER;\n    }\n    case PendantMaterials.GONYX: {\n      if (pendantAttachment && isBracelet(pendantAttachment)) {\n        return PendantAttachments.BRACELET_SILVER;\n      }\n      return PendantAttachments.SILVER;\n    }\n    default: {\n      break;\n    }\n  }\n  return PendantAttachments.SILVER;\n};\nvar is20mmPendantSize = (pendantMaterial) => {\n  switch (pendantMaterial) {\n    case PendantMaterials.GOLD_20:\n    case PendantMaterials.GDVM_20:\n    case PendantMaterials.SILVER_20:\n    case PendantMaterials.ONYX_20:\n    case PendantMaterials.LOCKET_SILVER_20:\n    case PendantMaterials.LOCKET_GDVM_20:\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n    case PendantMaterials.BEZEL_GDVM_ONYX_20:\n    case PendantMaterials.BEZEL_SILV_GONYX_20:\n    case PendantMaterials.BEZEL_GDVM_GONYX_20:\n      return true;\n    default:\n      break;\n  }\n  return false;\n};\nvar is15mmPendantSize = (pendantMaterial) => {\n  switch (pendantMaterial) {\n    case PendantMaterials.GOLD_15:\n    case PendantMaterials.GDVM_15:\n    case PendantMaterials.SILVER_15:\n    case PendantMaterials.ONYX_15:\n      return true;\n    default:\n      break;\n  }\n  return false;\n};\nvar getPendantSizeOfMaterial = (pendantMaterial) => {\n  switch (pendantMaterial) {\n    case PendantMaterials.GOLD:\n    case PendantMaterials.GDVM:\n    case PendantMaterials.SILVER:\n    case PendantMaterials.ONYX:\n    case PendantMaterials.GONYX:\n    case PendantMaterials.BEZEL_SILV_ONYX_25:\n    case PendantMaterials.BEZEL_GDVM_ONYX_25:\n    case PendantMaterials.BEZEL_SILV_GONYX_25:\n    case PendantMaterials.BEZEL_GDVM_GONYX_25:\n    default: {\n      return PendantSizes.STANDARD;\n    }\n    case PendantMaterials.GOLD_20:\n    case PendantMaterials.GDVM_20:\n    case PendantMaterials.SILVER_20:\n    case PendantMaterials.ONYX_20:\n    case PendantMaterials.LOCKET_SILVER_20:\n    case PendantMaterials.LOCKET_GDVM_20:\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n    case PendantMaterials.BEZEL_GDVM_ONYX_20:\n    case PendantMaterials.BEZEL_SILV_GONYX_20:\n    case PendantMaterials.BEZEL_GDVM_GONYX_20: {\n      return PendantSizes.SMALL20MM;\n    }\n    case PendantMaterials.GOLD_15:\n    case PendantMaterials.GDVM_15:\n    case PendantMaterials.SILVER_15:\n    case PendantMaterials.ONYX_15: {\n      return PendantSizes.SMALL15MM;\n    }\n  }\n};\nvar getPendantSizeForMaterial = (pendantMaterial, pendantSize) => {\n  switch (pendantMaterial) {\n    case PendantMaterials.GOLD:\n    case PendantMaterials.GOLD_20:\n    case PendantMaterials.GOLD_15: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.GOLD_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.GOLD_15;\n      }\n      return PendantMaterials.GOLD;\n    }\n    case PendantMaterials.GDVM:\n    case PendantMaterials.GDVM_20:\n    case PendantMaterials.GDVM_15: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.GDVM_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.GDVM_15;\n      }\n      return PendantMaterials.GDVM;\n    }\n    case PendantMaterials.SILVER:\n    case PendantMaterials.SILVER_20:\n    case PendantMaterials.SILVER_15: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.SILVER_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.SILVER_15;\n      }\n      return PendantMaterials.SILVER;\n    }\n    case PendantMaterials.ONYX:\n    case PendantMaterials.ONYX_20:\n    case PendantMaterials.ONYX_15: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.ONYX_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.ONYX_15;\n      }\n      return PendantMaterials.ONYX;\n    }\n    case PendantMaterials.GONYX:\n    case PendantMaterials.GONYX_20:\n    case PendantMaterials.GONYX_15: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.GONYX_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.GONYX_15;\n      }\n      return PendantMaterials.GONYX;\n    }\n    case PendantMaterials.LOCKET_SILVER_20:\n      return PendantMaterials.LOCKET_SILVER_20;\n    case PendantMaterials.LOCKET_GDVM_20:\n      return PendantMaterials.LOCKET_GDVM_20;\n    case PendantMaterials.BEZEL_SILV_ONYX_25: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.BEZEL_SILV_ONYX_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.BEZEL_SILV_ONYX_15;\n      } else if (pendantSize === PendantSizes.STANDARD) {\n        return PendantMaterials.BEZEL_SILV_ONYX_25;\n      }\n      return PendantMaterials.BEZEL_SILV_ONYX_25;\n    }\n    case PendantMaterials.BEZEL_SILV_ONYX_20: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.BEZEL_SILV_ONYX_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.BEZEL_SILV_ONYX_15;\n      } else if (pendantSize === PendantSizes.STANDARD) {\n        return PendantMaterials.BEZEL_SILV_ONYX_25;\n      }\n      return PendantMaterials.BEZEL_SILV_ONYX_20;\n    }\n    case PendantMaterials.BEZEL_GDVM_ONYX_25: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.BEZEL_GDVM_ONYX_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.BEZEL_GDVM_ONYX_15;\n      } else if (pendantSize === PendantSizes.STANDARD) {\n        return PendantMaterials.BEZEL_GDVM_ONYX_25;\n      }\n      return PendantMaterials.BEZEL_GDVM_ONYX_25;\n    }\n    case PendantMaterials.BEZEL_GDVM_ONYX_20: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.BEZEL_GDVM_ONYX_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.BEZEL_GDVM_ONYX_15;\n      } else if (pendantSize === PendantSizes.STANDARD) {\n        return PendantMaterials.BEZEL_GDVM_ONYX_25;\n      }\n      return PendantMaterials.BEZEL_GDVM_ONYX_20;\n    }\n    case PendantMaterials.BEZEL_SILV_GONYX_25: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.BEZEL_SILV_GONYX_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.BEZEL_SILV_GONYX_15;\n      } else if (pendantSize === PendantSizes.STANDARD) {\n        return PendantMaterials.BEZEL_SILV_GONYX_25;\n      }\n      return PendantMaterials.BEZEL_SILV_GONYX_25;\n    }\n    case PendantMaterials.BEZEL_SILV_GONYX_20: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.BEZEL_SILV_GONYX_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.BEZEL_SILV_GONYX_15;\n      } else if (pendantSize === PendantSizes.STANDARD) {\n        return PendantMaterials.BEZEL_SILV_GONYX_25;\n      }\n      return PendantMaterials.BEZEL_SILV_GONYX_20;\n    }\n    case PendantMaterials.BEZEL_GDVM_GONYX_25: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.BEZEL_GDVM_GONYX_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.BEZEL_GDVM_GONYX_15;\n      } else if (pendantSize === PendantSizes.STANDARD) {\n        return PendantMaterials.BEZEL_GDVM_GONYX_25;\n      }\n      return PendantMaterials.BEZEL_GDVM_GONYX_25;\n    }\n    case PendantMaterials.BEZEL_GDVM_GONYX_20: {\n      if (pendantSize === PendantSizes.SMALL20MM) {\n        return PendantMaterials.BEZEL_GDVM_GONYX_20;\n      } else if (pendantSize === PendantSizes.SMALL15MM) {\n        return PendantMaterials.BEZEL_GDVM_GONYX_15;\n      } else if (pendantSize === PendantSizes.STANDARD) {\n        return PendantMaterials.BEZEL_GDVM_GONYX_25;\n      }\n      return PendantMaterials.BEZEL_GDVM_GONYX_20;\n    }\n    default:\n      break;\n  }\n  return pendantMaterial;\n};\nvar countryIsMetricLocation = (countryCode) => {\n  let metricLocation = true;\n  switch (countryCode) {\n    case \"US\":\n    case \"CA\":\n    case \"MX\":\n    case \"AU\":\n    case \"NZ\": {\n      metricLocation = false;\n      break;\n    }\n    default: {\n      metricLocation = true;\n      break;\n    }\n  }\n  return metricLocation;\n};\nvar getPendantSizeText = (pendantMaterial, countryCode) => {\n  const metricLocation = countryCode ? countryIsMetricLocation(countryCode) : false;\n  const pendantSize = getPendantSizeOfMaterial(pendantMaterial);\n  switch (pendantSize) {\n    case PendantSizes.STANDARD:\n      return metricLocation ? `25mm` : `1\"`;\n    case PendantSizes.SMALL20MM:\n      return \"20mm\";\n    case PendantSizes.SMALL15MM:\n      return \"15mm\";\n  }\n  return \"\";\n};\nvar getAttachmentText = (pendantAttachment, pendantMaterial, pendantAttachedToMaterial) => {\n  const isBezel = isBezelMaterial(pendantMaterial);\n  const isLocket = isLocketMaterial(pendantMaterial);\n  const pendantSize = getPendantSizeOfMaterial(pendantMaterial);\n  switch (pendantAttachment) {\n    case PendantAttachments.SILVER:\n      if (isBezel) {\n        if (pendantSize === PendantSizes.STANDARD) {\n          return '30\" Sterling Silver chain';\n        }\n      } else if (isLocket) {\n        return '22\" Sterling Silver chain';\n      }\n      return '18\" Sterling Silver chain';\n    case PendantAttachments.GOLD:\n      return '16\"- 18\" 9k Gold chain';\n    case PendantAttachments.GDVM:\n      if (isBezel) {\n        if (pendantSize === PendantSizes.STANDARD) {\n          return '30\" Gold Vermeil chain';\n        }\n      } else if (isLocket) {\n        return '22\" Gold Vermeil chain';\n      }\n      return '18\" Gold Vermeil chain';\n    case PendantAttachments.CORD:\n      return \"Black Cord necklace\";\n    case PendantAttachments.NO_ATTACHMENT:\n      return \"None (no Chain or Necklace)\";\n    case PendantAttachments.LAYERED_ON_PENDANT: {\n      let baseLayerType = \"Pendant\";\n      if (pendantAttachedToMaterial && isLocketMaterial(pendantAttachedToMaterial)) {\n        baseLayerType = \"Locket\";\n      } else if (pendantAttachedToMaterial && isBezelMaterial(pendantAttachedToMaterial)) {\n        baseLayerType = \"Bezel\";\n      }\n      switch (getBaseMaterial(pendantAttachedToMaterial || PendantMaterials.SILVER)) {\n        case PendantMaterials.GOLD:\n          return `Layered on Gold ${baseLayerType}`;\n        case PendantMaterials.GDVM:\n          return `Layered on Gold Vermeil ${baseLayerType}`;\n        case PendantMaterials.SILVER:\n          return `Layered on Silver ${baseLayerType}`;\n        case PendantMaterials.ONYX:\n          return `Layered on Onyx ${baseLayerType}`;\n        case PendantMaterials.GONYX:\n          return `Layered on Green Onyx ${baseLayerType}`;\n        default:\n          return `Layered on ${baseLayerType}`;\n      }\n    }\n    case PendantAttachments.BRACELET_GOLD:\n      return \"Gold Bracelet\";\n    case PendantAttachments.BRACELET_GDVM:\n      return \"Gold Vermeil Bracelet\";\n    case PendantAttachments.BRACELET_SILVER:\n      return \"Silver Bracelet\";\n    case PendantAttachments.BRACELET_CORD:\n      return \"Cord Bracelet\";\n    default:\n      break;\n  }\n  return \"\";\n};\nvar jewelryComboIsAllowed = (_pendantCollection, pendantType, pendantMaterial, pendantAttachment) => {\n  try {\n    switch (pendantType) {\n      default:\n      case PendantTypes.BIRTH_CONSTELLATION:\n      case PendantTypes.NIGHT_SKY: {\n        switch (pendantMaterial) {\n          case PendantMaterials.ONYX: {\n            switch (pendantAttachment) {\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.GDVM:\n              case PendantAttachments.GOLD:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.BRACELET_GDVM:\n                return true;\n              case PendantAttachments.BRACELET_GOLD:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.ONYX_20: {\n            switch (pendantAttachment) {\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.GDVM:\n              case PendantAttachments.GOLD:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.BRACELET_GDVM:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT:\n                return true;\n              case PendantAttachments.BRACELET_GOLD:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.ONYX_15: {\n            switch (pendantAttachment) {\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.GDVM:\n              case PendantAttachments.GOLD:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT:\n                return true;\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.BRACELET_GDVM:\n              case PendantAttachments.BRACELET_GOLD:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.GONYX: {\n            return false;\n          }\n          case PendantMaterials.SILVER: {\n            switch (pendantAttachment) {\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.GOLD:\n              case PendantAttachments.GDVM:\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.BRACELET_GDVM:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.SILVER_20: {\n            switch (pendantAttachment) {\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.GOLD:\n              case PendantAttachments.GDVM:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.SILVER_15: {\n            switch (pendantAttachment) {\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.BRACELET_GDVM:\n              case PendantAttachments.GOLD:\n              case PendantAttachments.GDVM:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.GOLD: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GOLD:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.GDVM:\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.BRACELET_GDVM:\n              case PendantAttachments.BRACELET_SILVER:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.GOLD_20: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GOLD:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.GDVM:\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.BRACELET_GDVM:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.GOLD_15: {\n            if (pendantType && [\n              PendantTypes.NIGHT_SKY,\n              PendantTypes.BIRTH_CONSTELLATION\n            ].includes(pendantType)) {\n              switch (pendantAttachment) {\n                case PendantAttachments.GOLD:\n                case PendantAttachments.LAYERED_ON_PENDANT:\n                case PendantAttachments.NO_ATTACHMENT: {\n                  return true;\n                }\n                case PendantAttachments.GDVM:\n                case PendantAttachments.CORD:\n                case PendantAttachments.SILVER:\n                case PendantAttachments.BRACELET_GOLD:\n                case PendantAttachments.BRACELET_GDVM:\n                case PendantAttachments.BRACELET_CORD:\n                case PendantAttachments.BRACELET_SILVER:\n                default:\n                  return false;\n              }\n            }\n            return false;\n          }\n          case PendantMaterials.GDVM: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GDVM:\n              case PendantAttachments.BRACELET_GDVM:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.GOLD:\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.GDVM_20: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GDVM:\n              case PendantAttachments.BRACELET_GDVM:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.GOLD:\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.BRACELET_CORD:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.GDVM_15: {\n            if (pendantType && [\n              PendantTypes.NIGHT_SKY,\n              PendantTypes.BIRTH_CONSTELLATION\n            ].includes(pendantType)) {\n              switch (pendantAttachment) {\n                case PendantAttachments.GDVM:\n                case PendantAttachments.LAYERED_ON_PENDANT:\n                case PendantAttachments.NO_ATTACHMENT: {\n                  return true;\n                }\n                case PendantAttachments.GOLD:\n                case PendantAttachments.CORD:\n                case PendantAttachments.SILVER:\n                case PendantAttachments.BRACELET_GOLD:\n                case PendantAttachments.BRACELET_GDVM:\n                case PendantAttachments.BRACELET_CORD:\n                case PendantAttachments.BRACELET_SILVER:\n                default:\n                  return false;\n              }\n            }\n            return false;\n          }\n          case PendantMaterials.LOCKET_SILVER_20: {\n            switch (pendantAttachment) {\n              case PendantAttachments.SILVER:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT:\n                return true;\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.LOCKET_GDVM_20: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GDVM:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT:\n                return true;\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.BEZEL_SILV_ONYX_25: {\n            switch (pendantAttachment) {\n              case PendantAttachments.SILVER:\n              case PendantAttachments.BRACELET_SILVER:\n                return true;\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.BEZEL_SILV_GONYX_25: {\n            switch (pendantAttachment) {\n              case PendantAttachments.SILVER:\n              case PendantAttachments.BRACELET_SILVER:\n                return true;\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.BEZEL_SILV_ONYX_20:\n          case PendantMaterials.BEZEL_SILV_GONYX_20: {\n            switch (pendantAttachment) {\n              case PendantAttachments.SILVER:\n              case PendantAttachments.BRACELET_SILVER:\n                return true;\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.BEZEL_GDVM_ONYX_25: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GDVM:\n              case PendantAttachments.BRACELET_GDVM:\n                return true;\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.BEZEL_GDVM_GONYX_25: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GDVM:\n              case PendantAttachments.BRACELET_GDVM:\n                return true;\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.BEZEL_GDVM_ONYX_20:\n          case PendantMaterials.BEZEL_GDVM_GONYX_20: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GDVM:\n              case PendantAttachments.BRACELET_GDVM:\n                return true;\n              default:\n                return false;\n            }\n          }\n          default:\n            return false;\n        }\n      }\n      case PendantTypes.MOON_PHASE: {\n        switch (pendantMaterial) {\n          case PendantMaterials.SILVER_15: {\n            switch (pendantAttachment) {\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.GOLD:\n              case PendantAttachments.GDVM:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.BRACELET_GDVM:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.GDVM_15: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GDVM:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.CORD:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.GOLD:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.BRACELET_GDVM:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.SILVER:\n          case PendantMaterials.SILVER_20:\n          case PendantMaterials.GOLD:\n          case PendantMaterials.GOLD_20:\n          case PendantMaterials.GOLD_15:\n          case PendantMaterials.GDVM:\n          case PendantMaterials.GDVM_20:\n          case PendantMaterials.ONYX:\n          case PendantMaterials.ONYX_20:\n          case PendantMaterials.ONYX_15:\n          default:\n            return false;\n        }\n      }\n      case PendantTypes.ECLIPSE: {\n        switch (pendantMaterial) {\n          case PendantMaterials.SILVER_15: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GDVM:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.CORD:\n              case PendantAttachments.GOLD:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.BRACELET_GDVM:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.GDVM_15: {\n            switch (pendantAttachment) {\n              case PendantAttachments.GDVM:\n              case PendantAttachments.SILVER:\n              case PendantAttachments.LAYERED_ON_PENDANT:\n              case PendantAttachments.NO_ATTACHMENT: {\n                return true;\n              }\n              case PendantAttachments.CORD:\n              case PendantAttachments.GOLD:\n              case PendantAttachments.BRACELET_CORD:\n              case PendantAttachments.BRACELET_SILVER:\n              case PendantAttachments.BRACELET_GOLD:\n              case PendantAttachments.BRACELET_GDVM:\n              default:\n                return false;\n            }\n          }\n          case PendantMaterials.SILVER:\n          case PendantMaterials.SILVER_20:\n          case PendantMaterials.GOLD:\n          case PendantMaterials.GOLD_20:\n          case PendantMaterials.GOLD_15:\n          case PendantMaterials.GDVM:\n          case PendantMaterials.GDVM_20:\n          case PendantMaterials.ONYX:\n          case PendantMaterials.ONYX_20:\n          case PendantMaterials.ONYX_15:\n          default:\n            return false;\n        }\n      }\n    }\n  } catch (error) {\n    throw Error(`Pendant Combination is not Allowed`);\n  }\n  return false;\n};\nvar getPendantSku = (pendantCollection, pendantType, pendantMaterial, pendantAttachmentParam) => {\n  const DEFAULT_FALLBACK_SKU = \"TNS_PENDANT_V1\";\n  try {\n    if (!jewelryComboIsAllowed(pendantCollection, pendantType, pendantMaterial, pendantAttachmentParam)) {\n      return \"\";\n    }\n    if (!pendantMaterial) {\n      return DEFAULT_FALLBACK_SKU;\n    }\n    const pendantAttachment = pendantAttachmentParam || getDefaultAttachmentForMaterial(pendantMaterial);\n    let sku = \"TNS_PEN\";\n    switch (pendantType) {\n      default:\n      case PendantTypes.NIGHT_SKY: {\n        sku = \"TNS_PEN\";\n        break;\n      }\n      case PendantTypes.MOON_PHASE: {\n        sku = \"TNS_MNP\";\n        break;\n      }\n      case PendantTypes.BIRTH_CONSTELLATION: {\n        sku = \"TNS_BCN\";\n        break;\n      }\n      case PendantTypes.NOTES: {\n        sku = \"TNS_NTE\";\n        break;\n      }\n      case PendantTypes.DOODLE: {\n        sku = \"TNS_DDL\";\n        break;\n      }\n      case PendantTypes.ICON: {\n        sku = \"TNS_ICN\";\n        break;\n      }\n      case PendantTypes.ECLIPSE: {\n        sku = \"TNS_ECL\";\n        break;\n      }\n      case PendantTypes.FINGER_PRINTS:\n        sku = \"TNS_FIP\";\n        break;\n      case PendantTypes.PAW_PRINTS:\n        sku = \"TNS_PAW\";\n        break;\n      case PendantTypes.LOVE_NOTES:\n        sku = \"TNS_LOV\";\n        break;\n      case PendantTypes.HANDWRITING:\n        sku = \"TNS_HWR\";\n        break;\n      case PendantTypes.INITIALS:\n        sku = \"TNS_INI\";\n        break;\n    }\n    switch (getBaseMaterial(pendantMaterial)) {\n      case PendantMaterials.ONYX: {\n        sku += \"_ONYX\";\n        break;\n      }\n      case PendantMaterials.GONYX: {\n        sku += \"_GONYX\";\n        break;\n      }\n      case PendantMaterials.SILVER: {\n        if (`${PendantMaterials.LOCKET_SILVER_20}` === `${pendantMaterial}`) {\n          sku += \"_LKAG\";\n        } else {\n          sku += \"_SILV\";\n        }\n        break;\n      }\n      case PendantMaterials.GOLD: {\n        sku += \"_GOLD\";\n        break;\n      }\n      case PendantMaterials.GDVM: {\n        if (`${PendantMaterials.LOCKET_GDVM_20}` === `${pendantMaterial}`) {\n          sku += \"_LKGV\";\n        } else {\n          sku += \"_GDVM\";\n        }\n        break;\n      }\n      default:\n        break;\n    }\n    if (is20mmPendantSize(pendantMaterial)) {\n      sku += \"20\";\n    } else if (is15mmPendantSize(pendantMaterial)) {\n      sku += \"15\";\n    } else {\n      sku += \"25\";\n    }\n    switch (pendantMaterial) {\n      case PendantMaterials.BEZEL_SILV_ONYX_25:\n      case PendantMaterials.BEZEL_SILV_ONYX_20:\n      case PendantMaterials.BEZEL_SILV_GONYX_25:\n      case PendantMaterials.BEZEL_SILV_GONYX_20: {\n        sku += \"_SB\";\n        break;\n      }\n      case PendantMaterials.BEZEL_GDVM_ONYX_25:\n      case PendantMaterials.BEZEL_GDVM_ONYX_20:\n      case PendantMaterials.BEZEL_GDVM_GONYX_25:\n      case PendantMaterials.BEZEL_GDVM_GONYX_20: {\n        sku += \"_VB\";\n        break;\n      }\n      default:\n        break;\n    }\n    switch (pendantAttachment) {\n      case PendantAttachments.BRACELET_CORD: {\n        sku += \"_BC\";\n        break;\n      }\n      case PendantAttachments.BRACELET_GOLD: {\n        sku += \"_BG\";\n        break;\n      }\n      case PendantAttachments.BRACELET_GDVM: {\n        sku += \"_BV\";\n        break;\n      }\n      case PendantAttachments.BRACELET_SILVER: {\n        sku += \"_BS\";\n        break;\n      }\n      case PendantAttachments.CORD: {\n        sku += \"_NC\";\n        break;\n      }\n      case PendantAttachments.GOLD: {\n        sku += \"_NG\";\n        break;\n      }\n      case PendantAttachments.GDVM: {\n        sku += \"_NV\";\n        break;\n      }\n      case PendantAttachments.SILVER: {\n        sku += \"_NS\";\n        break;\n      }\n      case PendantAttachments.NO_ATTACHMENT: {\n        sku += \"_NA\";\n        break;\n      }\n      case PendantAttachments.LAYERED_ON_PENDANT: {\n        sku += \"_LP\";\n        break;\n      }\n      default:\n        break;\n    }\n    return sku;\n  } catch (error) {\n    return DEFAULT_FALLBACK_SKU;\n  }\n};\nvar pendantHasTwoHoles = (pendantAttachment, pendantMaterial) => {\n  if (pendantMaterial && isBezelMaterial(pendantMaterial)) {\n    return false;\n  }\n  switch (pendantAttachment) {\n    case PendantAttachments.BRACELET_CORD:\n    case PendantAttachments.BRACELET_GOLD:\n    case PendantAttachments.BRACELET_GDVM:\n    case PendantAttachments.BRACELET_SILVER: {\n      return true;\n    }\n    case PendantAttachments.CORD:\n    case PendantAttachments.GOLD:\n    case PendantAttachments.GDVM:\n    case PendantAttachments.SILVER:\n    case PendantAttachments.NO_ATTACHMENT:\n    case PendantAttachments.LAYERED_ON_PENDANT:\n    default: {\n      break;\n    }\n  }\n  return false;\n};\nvar pendantHasOneHole = (pendantAttachment) => {\n  switch (pendantAttachment) {\n    case PendantAttachments.BRACELET_CORD:\n    case PendantAttachments.BRACELET_GOLD:\n    case PendantAttachments.BRACELET_GDVM:\n    case PendantAttachments.BRACELET_SILVER: {\n      return false;\n    }\n    case PendantAttachments.CORD:\n    case PendantAttachments.GOLD:\n    case PendantAttachments.GDVM:\n    case PendantAttachments.SILVER:\n    case PendantAttachments.NO_ATTACHMENT:\n    case PendantAttachments.LAYERED_ON_PENDANT:\n    default: {\n      break;\n    }\n  }\n  return true;\n};\nvar overlayAllowedOnMaterial = (_pendantMaterial, pendantAttachment) => {\n  return pendantAttachment !== PendantAttachments.LAYERED_ON_PENDANT;\n};\nvar getPendantProductName = (pendantType, pendantMaterial, pendantAttachment, overlaidItems) => {\n  let productName = \"\";\n  const attachment = pendantAttachment || pendantInfoUtils.getDefaultAttachmentForMaterial(pendantMaterial || PendantMaterials.SILVER);\n  let productTypeName = \"Pendant\";\n  switch (pendantType) {\n    default:\n    case PendantTypes.NIGHT_SKY: {\n      productTypeName = \"Pendant\";\n      if (pendantInfoUtils.isBracelet(attachment)) {\n        productTypeName = \"Bracelet\";\n      } else if (pendantMaterial && isLocketMaterial(pendantMaterial)) {\n        productTypeName = \"Locket\";\n      } else if (pendantMaterial && isBezelMaterial(pendantMaterial)) {\n        switch (pendantMaterial) {\n          case PendantMaterials.BEZEL_SILV_ONYX_25:\n          case PendantMaterials.BEZEL_SILV_ONYX_20:\n          case PendantMaterials.BEZEL_SILV_GONYX_25:\n          case PendantMaterials.BEZEL_SILV_GONYX_20:\n            productTypeName = \"in Silver Bezel\";\n            break;\n          case PendantMaterials.BEZEL_GDVM_ONYX_25:\n          case PendantMaterials.BEZEL_GDVM_ONYX_20:\n          case PendantMaterials.BEZEL_GDVM_GONYX_25:\n          case PendantMaterials.BEZEL_GDVM_GONYX_20:\n            productTypeName = \"in Vermeil Bezel\";\n            break;\n          default:\n            productTypeName = \"Bezel\";\n            break;\n        }\n      }\n      break;\n    }\n    case PendantTypes.MOON_PHASE: {\n      productTypeName = \"Moon Phase\";\n      break;\n    }\n    case PendantTypes.BIRTH_CONSTELLATION: {\n      productTypeName = \"Star Sign\";\n      break;\n    }\n    case PendantTypes.NOTES: {\n      productTypeName = \"Note\";\n      break;\n    }\n    case PendantTypes.DOODLE: {\n      productTypeName = \"Your Design\";\n      break;\n    }\n    case PendantTypes.ICON: {\n      productTypeName = \"Icon\";\n      break;\n    }\n    case PendantTypes.ECLIPSE: {\n      productTypeName = \"Eclipse\";\n      break;\n    }\n    case PendantTypes.FINGER_PRINTS:\n      productTypeName = \"Finger Prints\";\n      break;\n    case PendantTypes.PAW_PRINTS:\n      productTypeName = \"Paw Prints\";\n      break;\n    case PendantTypes.LOVE_NOTES:\n      productTypeName = \"Love Notes\";\n      break;\n    case PendantTypes.HANDWRITING:\n      productTypeName = \"Handwriting\";\n      break;\n    case PendantTypes.INITIALS:\n      productTypeName = \"Initials\";\n      break;\n  }\n  let pendantMaterialName = \"\";\n  switch (pendantMaterial) {\n    case PendantMaterials.BEZEL_SILV_ONYX_25:\n    case PendantMaterials.BEZEL_GDVM_ONYX_25:\n    case PendantMaterials.ONYX: {\n      pendantMaterialName = `1\" Black Onyx ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.ONYX_20:\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n    case PendantMaterials.BEZEL_GDVM_ONYX_20: {\n      pendantMaterialName = `20mm Black Onyx ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.ONYX_15: {\n      pendantMaterialName = `15mm Black Onyx ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.GONYX:\n    case PendantMaterials.BEZEL_SILV_GONYX_25:\n    case PendantMaterials.BEZEL_GDVM_GONYX_25: {\n      pendantMaterialName = `1\" Green Onyx ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.BEZEL_SILV_GONYX_20:\n    case PendantMaterials.BEZEL_GDVM_GONYX_20: {\n      pendantMaterialName = `20mm Green Onyx ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.SILVER: {\n      pendantMaterialName = `1\" Silver ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.SILVER_20:\n    case PendantMaterials.LOCKET_SILVER_20: {\n      pendantMaterialName = `20mm Silver ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.SILVER_15: {\n      pendantMaterialName = `15mm Silver ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.GOLD: {\n      pendantMaterialName = `1\" Gold ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.GOLD_20: {\n      pendantMaterialName = `20mm Gold ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.GOLD_15: {\n      pendantMaterialName = `15mm Gold ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.GDVM: {\n      pendantMaterialName = `1\" Gold Vermeil ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.GDVM_20:\n    case PendantMaterials.LOCKET_GDVM_20: {\n      pendantMaterialName = `20mm Gold Vermeil ${productTypeName}`;\n      break;\n    }\n    case PendantMaterials.GDVM_15: {\n      pendantMaterialName = `15mm Gold Vermeil ${productTypeName}`;\n      break;\n    }\n    default: {\n      pendantMaterialName = productTypeName;\n      break;\n    }\n  }\n  if (overlaidItems && overlaidItems[0]) {\n    let overlayText = `with Overlay`;\n    const { pendantType: pendantType2 } = overlaidItems[0];\n    if (pendantType2 === PendantTypes.MOON_PHASE) {\n      overlayText = \"with Moon Phase Layer\";\n    } else if (pendantType2 === PendantTypes.BIRTH_CONSTELLATION) {\n      overlayText = \"with Star Sign Layer\";\n    } else if (pendantType2 === PendantTypes.NOTES) {\n      overlayText = \"with Note Layer\";\n    } else if (pendantType2 === PendantTypes.DOODLE) {\n      overlayText = \"with Your Design Layer\";\n    } else if (pendantType2 === PendantTypes.ICON) {\n      overlayText = \"with Icon Layer\";\n    } else if (pendantType2 === PendantTypes.ECLIPSE) {\n      overlayText = \"with Eclipse Layer\";\n    } else if (pendantType2 === PendantTypes.FINGER_PRINTS) {\n      overlayText = \"with Finger Prints Layer\";\n    } else if (pendantType2 === PendantTypes.PAW_PRINTS) {\n      overlayText = \"with Pawprint Layer\";\n    } else if (pendantType2 === PendantTypes.LOVE_NOTES) {\n      overlayText = \"with Love Notes Layer\";\n    } else if (pendantType2 === PendantTypes.HANDWRITING) {\n      overlayText = \"with Handwriting Layer\";\n    } else if (pendantType2 === PendantTypes.INITIALS) {\n      overlayText = \"with Initials Layer\";\n    } else {\n      switch (overlaidItems[0].pendantMaterial) {\n        case PendantMaterials.ONYX:\n          overlayText = \"with 25mm Onyx Layer\";\n          break;\n        case PendantMaterials.ONYX_20:\n          overlayText = \"with 20mm Onyx Layer\";\n          break;\n        case PendantMaterials.ONYX_15:\n          overlayText = \"with 15mm Onyx Layer\";\n          break;\n        case PendantMaterials.GONYX:\n          overlayText = \"with 25mm Green Onyx Layer\";\n          break;\n        case PendantMaterials.SILVER:\n          overlayText = \"with 25mm Silver Layer\";\n          break;\n        case PendantMaterials.SILVER_20:\n        case PendantMaterials.LOCKET_SILVER_20:\n          overlayText = \"with 20mm Silver Layer\";\n          break;\n        case PendantMaterials.SILVER_15:\n          overlayText = \"with 15mm Silver Layer\";\n          break;\n        case PendantMaterials.GOLD:\n          overlayText = \"with 25mm Gold Layer\";\n          break;\n        case PendantMaterials.GOLD_20:\n          overlayText = \"with 20mm Gold Layer\";\n          break;\n        case PendantMaterials.GOLD_15:\n          overlayText = \"with 15mm Gold Layer\";\n          break;\n        case PendantMaterials.GDVM:\n          overlayText = \"with 25mm Gold Vermeil Layer\";\n          break;\n        case PendantMaterials.LOCKET_GDVM_20:\n        case PendantMaterials.GDVM_20:\n          overlayText = \"with 20mm Gold Vermeil Layer\";\n          break;\n        case PendantMaterials.GDVM_15:\n          overlayText = \"with 15mm Gold Vermeil Layer\";\n          break;\n      }\n    }\n    productName = `${pendantMaterialName} ${overlayText}`;\n  } else {\n    let attachmentTitle = \"\";\n    switch (pendantAttachment) {\n      case PendantAttachments.SILVER:\n        attachmentTitle = \" on a Silver Chain\";\n        break;\n      case PendantAttachments.GOLD:\n        attachmentTitle = \" on a 9k Gold Chain\";\n        break;\n      case PendantAttachments.GDVM:\n        attachmentTitle = \" on a Gold Vermeil Chain\";\n        break;\n      case PendantAttachments.CORD:\n        attachmentTitle = \" on a Black Cord\";\n        break;\n      case PendantAttachments.LAYERED_ON_PENDANT:\n        attachmentTitle = \" Layer\";\n        break;\n      case PendantAttachments.BRACELET_CORD:\n        attachmentTitle = \" on a Black Cord Bracelet\";\n        break;\n      case PendantAttachments.BRACELET_SILVER:\n        attachmentTitle = \" on a Silver Bracelet\";\n        break;\n      case PendantAttachments.BRACELET_GOLD:\n        attachmentTitle = \" on a Gold Bracelet\";\n        break;\n      case PendantAttachments.BRACELET_GDVM:\n        attachmentTitle = \" on a Gold Vermeil Bracelet\";\n        break;\n      case PendantAttachments.NO_ATTACHMENT:\n        attachmentTitle = \"\";\n        break;\n    }\n    productName = `${pendantMaterialName}${attachmentTitle}`;\n  }\n  return productName;\n};\nvar getPendantMaterialName = (pendantMaterial) => {\n  switch (pendantMaterial) {\n    case PendantMaterials.ONYX: {\n      return `1\" Onyx`;\n    }\n    case PendantMaterials.GONYX: {\n      return `1\" Green Onyx`;\n    }\n    case PendantMaterials.ONYX_20: {\n      return `20mm Onyx`;\n    }\n    case PendantMaterials.ONYX_15: {\n      return `15mm Onyx`;\n    }\n    case PendantMaterials.SILVER: {\n      return `1\" Silver`;\n    }\n    case PendantMaterials.SILVER_20:\n    case PendantMaterials.LOCKET_SILVER_20: {\n      return `20mm Silver`;\n    }\n    case PendantMaterials.SILVER_15: {\n      return `15mm Silver`;\n    }\n    case PendantMaterials.GOLD: {\n      return `1\" Gold`;\n    }\n    case PendantMaterials.GOLD_20: {\n      return `20mm Gold`;\n    }\n    case PendantMaterials.GOLD_15: {\n      return `15mm Gold`;\n    }\n    case PendantMaterials.GDVM: {\n      return `1\" Gold Vermeil`;\n    }\n    case PendantMaterials.LOCKET_GDVM_20:\n    case PendantMaterials.GDVM_20: {\n      return `20mm Gold Vermeil`;\n    }\n    case PendantMaterials.GDVM_15: {\n      return `15mm Gold Vermeil`;\n    }\n    case PendantMaterials.BEZEL_SILV_ONYX_25: {\n      return `1\" Onyx in Silver Bezel`;\n    }\n    case PendantMaterials.BEZEL_SILV_ONYX_20: {\n      return `20mm Onyx in Silver Bezel`;\n    }\n    case PendantMaterials.BEZEL_GDVM_ONYX_25: {\n      return `1\" Onyx in Gold Vermeil Bezel`;\n    }\n    case PendantMaterials.BEZEL_GDVM_ONYX_20: {\n      return `20mm Onyx in Gold Vermeil Bezel`;\n    }\n    case PendantMaterials.BEZEL_SILV_GONYX_25: {\n      return `1\" Green Onyx in Silver Bezel`;\n    }\n    case PendantMaterials.BEZEL_SILV_GONYX_20: {\n      return `20mm Green Onyx in Silver Bezel`;\n    }\n    case PendantMaterials.BEZEL_GDVM_GONYX_25: {\n      return `1\" Green Onyx in Gold Vermeil Bezel`;\n    }\n    case PendantMaterials.BEZEL_GDVM_GONYX_20: {\n      return `20mm Green Onyx in Gold Vermeil Bezel`;\n    }\n  }\n  return pendantMaterial;\n};\nvar getPendantAttachmentName = (pendantAttachment) => {\n  switch (pendantAttachment) {\n    case PendantAttachments.SILVER: {\n      return `Silver Necklace`;\n    }\n    case PendantAttachments.GOLD: {\n      return `Gold Necklace`;\n    }\n    case PendantAttachments.GDVM: {\n      return `Gold Vermeil Necklace`;\n    }\n    case PendantAttachments.CORD: {\n      return `Cord Necklace`;\n    }\n    case PendantAttachments.NO_ATTACHMENT: {\n      return `No Attachment`;\n    }\n    case PendantAttachments.LAYERED_ON_PENDANT: {\n      return `Layer`;\n    }\n    case PendantAttachments.BRACELET_GOLD: {\n      return `Gold Bracelet`;\n    }\n    case PendantAttachments.BRACELET_SILVER: {\n      return `Silver Bracelet`;\n    }\n    case PendantAttachments.BRACELET_CORD: {\n      return `Cord Bracelet`;\n    }\n    case PendantAttachments.BRACELET_GDVM: {\n      return `Gold Vermeil Bracelet`;\n    }\n    default: {\n      return `${pendantAttachment}`;\n    }\n  }\n  return pendantAttachment;\n};\nvar getPendantAttachmentNameForMonday = (pendantMaterial, pendantAttachment) => {\n  const isLocket = isLocketMaterial(pendantMaterial);\n  switch (pendantAttachment) {\n    case PendantAttachments.SILVER: {\n      if (isLocket) {\n        return `Silver 22 Necklace`;\n      }\n      return `Silver Necklace`;\n    }\n    case PendantAttachments.GOLD: {\n      return `Gold Necklace`;\n    }\n    case PendantAttachments.GDVM: {\n      if (isLocket) {\n        return `Gold Vermeil 22 Necklace`;\n      }\n      return `Gold Vermeil Necklace`;\n    }\n    case PendantAttachments.CORD: {\n      return `Cord Necklace`;\n    }\n    case PendantAttachments.NO_ATTACHMENT: {\n      return `Layer`;\n    }\n    case PendantAttachments.LAYERED_ON_PENDANT: {\n      return `Layer`;\n    }\n    case PendantAttachments.BRACELET_GOLD: {\n      return `Gold Bracelet`;\n    }\n    case PendantAttachments.BRACELET_SILVER: {\n      return `Silver Bracelet`;\n    }\n    case PendantAttachments.BRACELET_CORD: {\n      return `Cord Necklace`;\n    }\n    case PendantAttachments.BRACELET_GDVM: {\n      return `Gold Vermeil Bracelet`;\n    }\n    default: {\n      return `${pendantAttachment}`;\n    }\n  }\n  return pendantAttachment;\n};\nvar getPendantMaterialColor = (pendantMaterial) => {\n  switch (getBaseMaterial(pendantMaterial)) {\n    case PendantMaterials.ONYX: {\n      return `Onyx`;\n    }\n    case PendantMaterials.GONYX: {\n      return `Green Onyx`;\n    }\n    case PendantMaterials.SILVER: {\n      return `Silver`;\n    }\n    case PendantMaterials.GDVM: {\n      return `Gold Vermeil`;\n    }\n    case PendantMaterials.GOLD: {\n      return `Gold`;\n    }\n  }\n  return pendantMaterial;\n};\nvar getPendantProductNameShort = (pendantType, pendantMaterial, pendantAttachment, overlaidItems) => {\n  let productName = \"\";\n  const material = pendantMaterial || PendantMaterials.SILVER;\n  const attachment = pendantAttachment || pendantInfoUtils.getDefaultAttachmentForMaterial(material);\n  let productTypeName = \"Pendant\";\n  switch (pendantType) {\n    default:\n    case PendantTypes.NIGHT_SKY: {\n      productTypeName = \"Pendant\";\n      if (pendantInfoUtils.isBracelet(attachment)) {\n        productTypeName = \"Bracelet\";\n      } else if (pendantMaterial && isLocketMaterial(pendantMaterial)) {\n        productTypeName = \"Locket\";\n      }\n      break;\n    }\n    case PendantTypes.MOON_PHASE: {\n      productTypeName = \"Moon Phase\";\n      break;\n    }\n    case PendantTypes.BIRTH_CONSTELLATION: {\n      productTypeName = \"Star Sign\";\n      break;\n    }\n    case PendantTypes.NOTES: {\n      productTypeName = \"Note\";\n      break;\n    }\n    case PendantTypes.DOODLE: {\n      productTypeName = \"Your Design\";\n      break;\n    }\n    case PendantTypes.ICON: {\n      productTypeName = \"Icon\";\n      break;\n    }\n    case PendantTypes.ECLIPSE: {\n      productTypeName = \"Eclipse\";\n      break;\n    }\n    case PendantTypes.FINGER_PRINTS:\n      productTypeName = \"Finger Prints\";\n      break;\n    case PendantTypes.PAW_PRINTS:\n      productTypeName = \"Paw Prints\";\n      break;\n    case PendantTypes.LOVE_NOTES:\n      productTypeName = \"Love Notes\";\n      break;\n    case PendantTypes.HANDWRITING:\n      productTypeName = \"Handwriting\";\n      break;\n    case PendantTypes.INITIALS:\n      productTypeName = \"Initials\";\n      break;\n  }\n  productName = `${getPendantMaterialName(pendantMaterial || PendantMaterials.SILVER)} ${productTypeName}`;\n  if (overlaidItems && overlaidItems.length > 0 && overlaidItems[0]) {\n    let overlayText = `with Overlay`;\n    switch (overlaidItems[0].pendantMaterial) {\n      case PendantMaterials.BEZEL_SILV_ONYX_25:\n      case PendantMaterials.BEZEL_SILV_ONYX_20:\n      case PendantMaterials.BEZEL_GDVM_ONYX_25:\n      case PendantMaterials.BEZEL_GDVM_ONYX_20:\n      case PendantMaterials.ONYX:\n      case PendantMaterials.ONYX_20:\n      case PendantMaterials.ONYX_15:\n        overlayText = \"& Onyx Layer\";\n        break;\n      case PendantMaterials.BEZEL_SILV_GONYX_25:\n      case PendantMaterials.BEZEL_SILV_GONYX_20:\n      case PendantMaterials.BEZEL_GDVM_GONYX_25:\n      case PendantMaterials.BEZEL_GDVM_GONYX_20:\n      case PendantMaterials.GONYX:\n        overlayText = \"& Green Onyx Layer\";\n        break;\n      case PendantMaterials.SILVER:\n      case PendantMaterials.SILVER_20:\n      case PendantMaterials.SILVER_15:\n      case PendantMaterials.LOCKET_SILVER_20:\n        overlayText = \"& Silver Layer\";\n        break;\n      case PendantMaterials.GOLD:\n      case PendantMaterials.GOLD_20:\n      case PendantMaterials.GOLD_15:\n        overlayText = \"& Gold Layer\";\n        break;\n      case PendantMaterials.GDVM:\n      case PendantMaterials.GDVM_20:\n      case PendantMaterials.GDVM_15:\n      case PendantMaterials.LOCKET_GDVM_20:\n        overlayText = \"& Gold Vermeil Layer\";\n        break;\n      default:\n        break;\n    }\n    if (isLayer(attachment)) {\n      overlayText = \"Layer\";\n    }\n    productName = `${productName} ${overlayText}`;\n  }\n  return productName.trim();\n};\nvar getBraceletForPendantMaterial = (pendantMaterialParam, pendantAttachmentParam) => {\n  let pendantMaterial = pendantMaterialParam;\n  const pendantSize = getPendantSizeOfMaterial(pendantMaterial);\n  pendantMaterial = getPendantSizeForMaterial(pendantMaterialParam, pendantSize);\n  switch (pendantMaterial) {\n    case PendantMaterials.ONYX: {\n      pendantMaterial = PendantMaterials.ONYX;\n      break;\n    }\n    case PendantMaterials.GONYX: {\n      pendantMaterial = PendantMaterials.GONYX;\n      break;\n    }\n    case PendantMaterials.ONYX_20:\n    case PendantMaterials.ONYX_15: {\n      pendantMaterial = PendantMaterials.ONYX_20;\n      break;\n    }\n    default:\n    case PendantMaterials.SILVER: {\n      pendantMaterial = PendantMaterials.SILVER;\n      break;\n    }\n    case PendantMaterials.LOCKET_SILVER_20:\n    case PendantMaterials.SILVER_20:\n    case PendantMaterials.SILVER_15: {\n      pendantMaterial = PendantMaterials.SILVER_20;\n      break;\n    }\n    case PendantMaterials.GOLD: {\n      pendantMaterial = PendantMaterials.GDVM;\n      break;\n    }\n    case PendantMaterials.GOLD_20:\n    case PendantMaterials.GOLD_15: {\n      pendantMaterial = PendantMaterials.GDVM_20;\n      break;\n    }\n    case PendantMaterials.GDVM: {\n      pendantMaterial = PendantMaterials.GDVM;\n      break;\n    }\n    case PendantMaterials.LOCKET_GDVM_20:\n    case PendantMaterials.GDVM_20:\n    case PendantMaterials.GDVM_15: {\n      pendantMaterial = PendantMaterials.GDVM_20;\n      break;\n    }\n    case PendantMaterials.BEZEL_SILV_ONYX_25: {\n      pendantMaterial = PendantMaterials.BEZEL_SILV_ONYX_25;\n      break;\n    }\n    case PendantMaterials.BEZEL_SILV_ONYX_20: {\n      pendantMaterial = PendantMaterials.BEZEL_SILV_ONYX_20;\n      break;\n    }\n    case PendantMaterials.BEZEL_GDVM_ONYX_25: {\n      pendantMaterial = PendantMaterials.BEZEL_GDVM_ONYX_25;\n      break;\n    }\n    case PendantMaterials.BEZEL_GDVM_ONYX_20: {\n      pendantMaterial = PendantMaterials.BEZEL_GDVM_ONYX_20;\n      break;\n    }\n    case PendantMaterials.BEZEL_SILV_GONYX_25: {\n      pendantMaterial = PendantMaterials.BEZEL_SILV_GONYX_25;\n      break;\n    }\n    case PendantMaterials.BEZEL_SILV_GONYX_20: {\n      pendantMaterial = PendantMaterials.BEZEL_SILV_GONYX_20;\n      break;\n    }\n    case PendantMaterials.BEZEL_GDVM_GONYX_25: {\n      pendantMaterial = PendantMaterials.BEZEL_GDVM_GONYX_25;\n      break;\n    }\n    case PendantMaterials.BEZEL_GDVM_GONYX_20: {\n      pendantMaterial = PendantMaterials.BEZEL_GDVM_GONYX_20;\n      break;\n    }\n  }\n  let pendantAttachment = pendantAttachmentParam;\n  if (isBezelMaterial(pendantMaterial)) {\n    switch (pendantMaterial) {\n      case PendantMaterials.BEZEL_SILV_ONYX_25:\n      case PendantMaterials.BEZEL_SILV_ONYX_20:\n      case PendantMaterials.BEZEL_GDVM_ONYX_25:\n      case PendantMaterials.BEZEL_GDVM_ONYX_20:\n        pendantAttachment = PendantAttachments.BRACELET_SILVER;\n        break;\n      case PendantMaterials.BEZEL_SILV_GONYX_25:\n      case PendantMaterials.BEZEL_SILV_GONYX_20:\n      case PendantMaterials.BEZEL_GDVM_GONYX_25:\n      case PendantMaterials.BEZEL_GDVM_GONYX_20:\n        pendantAttachment = PendantAttachments.BRACELET_GDVM;\n        break;\n    }\n    return {\n      material: pendantMaterial,\n      attachment: pendantAttachment\n    };\n  }\n  switch (getBaseMaterial(pendantMaterial)) {\n    case PendantMaterials.ONYX: {\n      switch (pendantAttachment) {\n        case PendantAttachments.SILVER:\n        case PendantAttachments.BRACELET_SILVER:\n          pendantAttachment = PendantAttachments.BRACELET_SILVER;\n          break;\n        case PendantAttachments.GOLD:\n        case PendantAttachments.BRACELET_GOLD:\n          pendantAttachment = PendantAttachments.BRACELET_GDVM;\n          break;\n        case PendantAttachments.GDVM:\n        case PendantAttachments.BRACELET_GDVM:\n          pendantAttachment = PendantAttachments.BRACELET_GDVM;\n          break;\n        case PendantAttachments.CORD:\n        case PendantAttachments.BRACELET_CORD:\n          pendantAttachment = PendantAttachments.BRACELET_CORD;\n          break;\n        default:\n        case PendantAttachments.LAYERED_ON_PENDANT:\n        case PendantAttachments.NO_ATTACHMENT:\n          break;\n      }\n      break;\n    }\n    case PendantMaterials.GONYX: {\n      switch (pendantAttachment) {\n        case PendantAttachments.SILVER:\n        case PendantAttachments.BRACELET_SILVER:\n          pendantAttachment = PendantAttachments.BRACELET_SILVER;\n          break;\n        case PendantAttachments.GOLD:\n        case PendantAttachments.BRACELET_GOLD:\n          pendantAttachment = PendantAttachments.BRACELET_GDVM;\n          break;\n        case PendantAttachments.GDVM:\n        case PendantAttachments.BRACELET_GDVM:\n          pendantAttachment = PendantAttachments.BRACELET_GDVM;\n          break;\n        case PendantAttachments.CORD:\n        case PendantAttachments.BRACELET_CORD:\n          pendantAttachment = PendantAttachments.BRACELET_CORD;\n          break;\n        default:\n        case PendantAttachments.LAYERED_ON_PENDANT:\n        case PendantAttachments.NO_ATTACHMENT:\n          break;\n      }\n      break;\n    }\n    default:\n    case PendantMaterials.SILVER: {\n      switch (pendantAttachment) {\n        case PendantAttachments.SILVER:\n        case PendantAttachments.BRACELET_SILVER:\n          pendantAttachment = PendantAttachments.BRACELET_SILVER;\n          break;\n        case PendantAttachments.GOLD:\n        case PendantAttachments.BRACELET_GOLD:\n        case PendantAttachments.GDVM:\n        case PendantAttachments.BRACELET_GDVM:\n          pendantAttachment = PendantAttachments.BRACELET_SILVER;\n          break;\n        case PendantAttachments.CORD:\n        case PendantAttachments.BRACELET_CORD:\n          pendantAttachment = PendantAttachments.BRACELET_CORD;\n          break;\n        default:\n        case PendantAttachments.LAYERED_ON_PENDANT:\n        case PendantAttachments.NO_ATTACHMENT:\n          break;\n      }\n      break;\n    }\n    case PendantMaterials.GDVM: {\n      switch (pendantAttachment) {\n        case PendantAttachments.SILVER:\n        case PendantAttachments.BRACELET_SILVER:\n          pendantAttachment = PendantAttachments.BRACELET_GDVM;\n          break;\n        case PendantAttachments.GOLD:\n        case PendantAttachments.BRACELET_GOLD:\n          pendantAttachment = PendantAttachments.BRACELET_GDVM;\n          break;\n        case PendantAttachments.GDVM:\n        case PendantAttachments.BRACELET_GDVM:\n          pendantAttachment = PendantAttachments.BRACELET_GDVM;\n          break;\n        case PendantAttachments.CORD:\n        case PendantAttachments.BRACELET_CORD:\n          pendantAttachment = PendantAttachments.BRACELET_GDVM;\n          break;\n        default:\n        case PendantAttachments.LAYERED_ON_PENDANT:\n        case PendantAttachments.NO_ATTACHMENT:\n          break;\n      }\n      break;\n    }\n    case PendantMaterials.GOLD: {\n      switch (pendantAttachment) {\n        case PendantAttachments.SILVER:\n        case PendantAttachments.BRACELET_SILVER:\n          pendantAttachment = PendantAttachments.BRACELET_GOLD;\n          break;\n        case PendantAttachments.GOLD:\n        case PendantAttachments.BRACELET_GOLD:\n          pendantAttachment = PendantAttachments.BRACELET_GOLD;\n          break;\n        case PendantAttachments.GDVM:\n        case PendantAttachments.BRACELET_GDVM:\n          pendantAttachment = PendantAttachments.BRACELET_GOLD;\n          break;\n        case PendantAttachments.CORD:\n        case PendantAttachments.BRACELET_CORD:\n          pendantAttachment = PendantAttachments.BRACELET_GOLD;\n          break;\n        default:\n        case PendantAttachments.LAYERED_ON_PENDANT:\n        case PendantAttachments.NO_ATTACHMENT:\n          break;\n      }\n      break;\n    }\n  }\n  return {\n    material: pendantMaterial,\n    attachment: pendantAttachment\n  };\n};\nvar getPendantForBraceletMaterial = (pendantMaterialParam, pendantAttachmentParam) => {\n  const pendantMaterial = pendantMaterialParam;\n  let pendantAttachment = pendantAttachmentParam;\n  switch (getBaseMaterial(pendantMaterial)) {\n    case PendantMaterials.ONYX: {\n      switch (pendantAttachment) {\n        case PendantAttachments.SILVER:\n        case PendantAttachments.BRACELET_SILVER:\n          pendantAttachment = PendantAttachments.SILVER;\n          break;\n        case PendantAttachments.GOLD:\n        case PendantAttachments.BRACELET_GOLD:\n          pendantAttachment = PendantAttachments.GOLD;\n          break;\n        case PendantAttachments.GDVM:\n        case PendantAttachments.BRACELET_GDVM:\n          pendantAttachment = PendantAttachments.GDVM;\n          break;\n        case PendantAttachments.CORD:\n        case PendantAttachments.BRACELET_CORD:\n          pendantAttachment = PendantAttachments.CORD;\n          break;\n        default:\n        case PendantAttachments.LAYERED_ON_PENDANT:\n        case PendantAttachments.NO_ATTACHMENT:\n          break;\n      }\n      break;\n    }\n    default:\n    case PendantMaterials.SILVER: {\n      switch (pendantAttachment) {\n        case PendantAttachments.SILVER:\n        case PendantAttachments.BRACELET_SILVER:\n          pendantAttachment = PendantAttachments.SILVER;\n          break;\n        case PendantAttachments.GOLD:\n        case PendantAttachments.BRACELET_GOLD:\n        case PendantAttachments.GDVM:\n        case PendantAttachments.BRACELET_GDVM:\n          pendantAttachment = PendantAttachments.SILVER;\n          break;\n        case PendantAttachments.CORD:\n        case PendantAttachments.BRACELET_CORD:\n          pendantAttachment = PendantAttachments.CORD;\n          break;\n        default:\n        case PendantAttachments.LAYERED_ON_PENDANT:\n        case PendantAttachments.NO_ATTACHMENT:\n          break;\n      }\n      break;\n    }\n    case PendantMaterials.GDVM: {\n      switch (pendantAttachment) {\n        case PendantAttachments.SILVER:\n        case PendantAttachments.BRACELET_SILVER:\n          pendantAttachment = PendantAttachments.GDVM;\n          break;\n        case PendantAttachments.GOLD:\n        case PendantAttachments.BRACELET_GOLD:\n          pendantAttachment = PendantAttachments.GDVM;\n          break;\n        case PendantAttachments.GDVM:\n        case PendantAttachments.BRACELET_GDVM:\n          pendantAttachment = PendantAttachments.GDVM;\n          break;\n        case PendantAttachments.CORD:\n        case PendantAttachments.BRACELET_CORD:\n          pendantAttachment = PendantAttachments.CORD;\n          break;\n        default:\n        case PendantAttachments.LAYERED_ON_PENDANT:\n        case PendantAttachments.NO_ATTACHMENT:\n          break;\n      }\n      break;\n    }\n    case PendantMaterials.GOLD: {\n      switch (pendantAttachment) {\n        case PendantAttachments.SILVER:\n        case PendantAttachments.BRACELET_SILVER:\n          pendantAttachment = PendantAttachments.GOLD;\n          break;\n        case PendantAttachments.GOLD:\n        case PendantAttachments.BRACELET_GOLD:\n          pendantAttachment = PendantAttachments.GOLD;\n          break;\n        case PendantAttachments.GDVM:\n        case PendantAttachments.BRACELET_GDVM:\n          pendantAttachment = PendantAttachments.GOLD;\n          break;\n        case PendantAttachments.CORD:\n        case PendantAttachments.BRACELET_CORD:\n          pendantAttachment = PendantAttachments.GOLD;\n          break;\n        default:\n        case PendantAttachments.LAYERED_ON_PENDANT:\n        case PendantAttachments.NO_ATTACHMENT:\n          break;\n      }\n      break;\n    }\n  }\n  return {\n    material: getPendantSizeForMaterial(pendantMaterial, PendantSizes.STANDARD),\n    attachment: pendantAttachment\n  };\n};\nvar isBracelet = (pendantAttachment) => {\n  switch (pendantAttachment) {\n    case PendantAttachments.BRACELET_CORD:\n    case PendantAttachments.BRACELET_GDVM:\n    case PendantAttachments.BRACELET_SILVER:\n    case PendantAttachments.BRACELET_GOLD: {\n      return true;\n    }\n    default: {\n      return false;\n    }\n  }\n};\nvar isLocketMaterial = (pendantMaterial) => {\n  switch (pendantMaterial) {\n    case PendantMaterials.LOCKET_SILVER_20:\n    case PendantMaterials.LOCKET_GDVM_20: {\n      return true;\n    }\n    default: {\n      return false;\n    }\n  }\n};\nvar isBezelMaterial = (pendantMaterial) => {\n  switch (pendantMaterial) {\n    case PendantMaterials.BEZEL_SILV_ONYX_25:\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n    case PendantMaterials.BEZEL_GDVM_ONYX_25:\n    case PendantMaterials.BEZEL_GDVM_ONYX_20:\n    case PendantMaterials.BEZEL_SILV_GONYX_25:\n    case PendantMaterials.BEZEL_SILV_GONYX_20:\n    case PendantMaterials.BEZEL_GDVM_GONYX_25:\n    case PendantMaterials.BEZEL_GDVM_GONYX_20: {\n      return true;\n    }\n    default: {\n      return false;\n    }\n  }\n};\nvar isBezelMaterialSilver = (pendantMaterial) => {\n  switch (pendantMaterial) {\n    case PendantMaterials.BEZEL_SILV_ONYX_25:\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n    case PendantMaterials.BEZEL_SILV_GONYX_25:\n    case PendantMaterials.BEZEL_SILV_GONYX_20: {\n      return true;\n    }\n    default: {\n      return false;\n    }\n  }\n};\nvar isBraceletNotCord = (pendantAttachment) => {\n  switch (pendantAttachment) {\n    case PendantAttachments.BRACELET_SILVER:\n    case PendantAttachments.BRACELET_GDVM:\n    case PendantAttachments.BRACELET_GOLD: {\n      return true;\n    }\n    default: {\n      return false;\n    }\n  }\n};\nvar isCordAttachment = (pendantAttachment) => {\n  switch (pendantAttachment) {\n    case PendantAttachments.BRACELET_CORD:\n    case PendantAttachments.CORD: {\n      return true;\n    }\n    default: {\n      return false;\n    }\n  }\n};\nvar getEmojiForMaterial = (pendantMaterial) => {\n  switch (pendantMaterial) {\n    case PendantMaterials.GOLD:\n    case PendantMaterials.GOLD_20:\n    case PendantMaterials.GOLD_15:\n      return \"\\u{1F7E1}\";\n    case PendantMaterials.GDVM:\n    case PendantMaterials.GDVM_20:\n    case PendantMaterials.GDVM_15:\n    case PendantMaterials.LOCKET_GDVM_20:\n      return \"\\u{1F7E0}\";\n    case PendantMaterials.SILVER:\n    case PendantMaterials.SILVER_20:\n    case PendantMaterials.SILVER_15:\n    case PendantMaterials.LOCKET_SILVER_20:\n      return \"\\u26AA\";\n    case PendantMaterials.ONYX:\n    case PendantMaterials.ONYX_20:\n    case PendantMaterials.ONYX_15:\n      return \"\\u26AB\";\n    case PendantMaterials.GONYX:\n      return \"\\u{1F7E2}\";\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n    case PendantMaterials.BEZEL_SILV_ONYX_25:\n    case PendantMaterials.BEZEL_GDVM_ONYX_20:\n    case PendantMaterials.BEZEL_GDVM_ONYX_25:\n    case PendantMaterials.BEZEL_SILV_GONYX_20:\n    case PendantMaterials.BEZEL_SILV_GONYX_25:\n    case PendantMaterials.BEZEL_GDVM_GONYX_20:\n    case PendantMaterials.BEZEL_GDVM_GONYX_25:\n      return \"\\u{1F518}\";\n    default:\n      break;\n  }\n  return \"\\u2753\";\n};\nvar getEmojiForAttachment = (_pendantType, pendantAttachment, pendantAttachedToMaterial) => {\n  switch (pendantAttachment) {\n    case PendantAttachments.SILVER:\n      return \"\\u26D3\\uFE0F\\u{1F646}\\u200D\\u2640\\uFE0F\";\n    case PendantAttachments.GOLD:\n      return \"\\u{1F947}\\u{1F646}\\u200D\\u2640\\uFE0F\";\n    case PendantAttachments.GDVM:\n      return \"\\u{1F949}\\u{1F646}\\u200D\\u2640\\uFE0F\";\n    case PendantAttachments.CORD:\n      return \"\\u27B0\\u{1F646}\\u200D\\u2640\\uFE0F\";\n    case PendantAttachments.NO_ATTACHMENT:\n      return \"\";\n    case PendantAttachments.LAYERED_ON_PENDANT:\n      switch (getBaseMaterial(pendantAttachedToMaterial || PendantMaterials.SILVER)) {\n        case PendantMaterials.GOLD:\n          return \"\\u{1F495}\\u{1F7E1}\";\n        case PendantMaterials.GDVM:\n          return \"\\u{1F495}\\u{1F7E0}\";\n        case PendantMaterials.SILVER:\n          return \"\\u{1F495}\\u26AA\";\n        case PendantMaterials.ONYX:\n          return \"\\u{1F495}\\u26AB\";\n        case PendantMaterials.GONYX:\n          return \"\\u{1F495}\\u{1F7E2}\";\n        default:\n          return \"\\u{1F495}\\u2753\";\n      }\n    case PendantAttachments.BRACELET_GOLD:\n      return \"\\u{1F947}\\u270B\";\n    case PendantAttachments.BRACELET_GDVM:\n      return \"\\u{1F949}\\u270B\";\n    case PendantAttachments.BRACELET_SILVER:\n      return \"\\u26D3\\uFE0F\\u270B\";\n    case PendantAttachments.BRACELET_CORD:\n      return \"\\u27B0\\u270B\";\n    default:\n      break;\n  }\n  return \"\\u2753\";\n};\nvar getPendantHsInfo = (pendantMaterial) => {\n  let hsCode = \"\";\n  let hsDescription = \"Jewellery\";\n  switch (pendantMaterial) {\n    case PendantMaterials.ONYX:\n    case PendantMaterials.ONYX_20:\n    case PendantMaterials.ONYX_15:\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n    case PendantMaterials.BEZEL_SILV_ONYX_25:\n    case PendantMaterials.BEZEL_GDVM_ONYX_20:\n    case PendantMaterials.BEZEL_GDVM_ONYX_25:\n    case PendantMaterials.BEZEL_SILV_GONYX_20:\n    case PendantMaterials.BEZEL_SILV_GONYX_25:\n    case PendantMaterials.BEZEL_GDVM_GONYX_20:\n    case PendantMaterials.BEZEL_GDVM_GONYX_25:\n    case PendantMaterials.GONYX:\n      hsCode = \"HS711790\";\n      hsDescription = \"Fashion Accessory\";\n      break;\n    default:\n    case PendantMaterials.SILVER:\n    case PendantMaterials.SILVER_20:\n    case PendantMaterials.SILVER_15:\n    case PendantMaterials.LOCKET_SILVER_20:\n      hsCode = \"HS711311\";\n      hsDescription = \"Fashion Accessory\";\n      break;\n    case PendantMaterials.GOLD:\n    case PendantMaterials.GOLD_20:\n    case PendantMaterials.GOLD_15:\n      hsCode = \"HS711319\";\n      hsDescription = \"Fashion Accessory\";\n      break;\n    case PendantMaterials.GDVM:\n    case PendantMaterials.GDVM_20:\n    case PendantMaterials.GDVM_15:\n    case PendantMaterials.LOCKET_GDVM_20:\n      hsCode = \"HS711319\";\n      hsDescription = \"Fashion Accessory\";\n      break;\n  }\n  return {\n    code: hsCode,\n    description: hsDescription\n  };\n};\nvar getPendantHsCode = (pendantMaterial) => {\n  const hsInfo = getPendantHsInfo(pendantMaterial);\n  return hsInfo ? hsInfo.code : \"\";\n};\nvar getPendantHsDesc = (pendantMaterial) => {\n  const hsInfo = getPendantHsInfo(pendantMaterial);\n  return hsInfo ? hsInfo.description : \"\";\n};\nvar getPendantHsInfoDetailed = (pendantCollection, pendantType, pendantMaterial, pendantAttachment, pendantAttachedToMaterial, productFormat, countryCode) => {\n  let hsCode = \"\";\n  let hsDescription = \"Jewellery\";\n  hsDescription = \"Fashion Accessory\";\n  const infoTitle = getPendantInfoTitle(pendantCollection, pendantType, pendantMaterial, pendantAttachment, pendantAttachedToMaterial, productFormat);\n  if (infoTitle) {\n    hsDescription = infoTitle;\n  }\n  const sizeMetric = getPendantSizeText(pendantMaterial, \"IE\");\n  const sizeImperial = getPendantSizeText(pendantMaterial, \"US\");\n  const metricLocation = countryCode ? pendantInfoUtils.countryIsMetricLocation(countryCode) : true;\n  const size = metricLocation === true ? sizeMetric : sizeImperial;\n  hsDescription = hsDescription.replace(/{size}/g, size);\n  switch (pendantMaterial) {\n    case PendantMaterials.SILVER:\n    case PendantMaterials.SILVER_20:\n    case PendantMaterials.SILVER_15:\n    case PendantMaterials.LOCKET_SILVER_20:\n      hsCode = \"HS711311\";\n      break;\n    case PendantMaterials.ONYX:\n    case PendantMaterials.ONYX_20:\n    case PendantMaterials.ONYX_15:\n    case PendantMaterials.GONYX:\n    case PendantMaterials.GONYX_20:\n    case PendantMaterials.GONYX_15:\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n    case PendantMaterials.BEZEL_SILV_ONYX_25:\n    case PendantMaterials.BEZEL_SILV_GONYX_20:\n    case PendantMaterials.BEZEL_SILV_GONYX_25:\n      hsCode = \"HS711311\";\n      break;\n    case PendantMaterials.GDVM:\n    case PendantMaterials.GDVM_20:\n    case PendantMaterials.GDVM_15:\n    case PendantMaterials.LOCKET_GDVM_20:\n      hsCode = \"HS711319\";\n      break;\n    case PendantMaterials.BEZEL_GDVM_ONYX_20:\n    case PendantMaterials.BEZEL_GDVM_ONYX_25:\n    case PendantMaterials.BEZEL_GDVM_GONYX_20:\n    case PendantMaterials.BEZEL_GDVM_GONYX_25:\n      hsCode = \"711319\";\n      break;\n    case PendantMaterials.GOLD:\n    case PendantMaterials.GOLD_20:\n    case PendantMaterials.GOLD_15:\n      hsCode = \"711319\";\n      break;\n  }\n  return {\n    code: hsCode,\n    description: hsDescription\n  };\n};\nvar changeMaterialGetEquivalentSize = (currentPendantMaterial, newPendantMaterial, pendantAttachment) => {\n  const returnBezel = newPendantMaterial === PendantMaterials.GONYX || isBezelMaterial(newPendantMaterial) || isBezelMaterial(currentPendantMaterial) && [PendantMaterials.ONYX, PendantMaterials.GONYX].includes(getBaseMaterial(newPendantMaterial));\n  if (returnBezel) {\n    const { material } = getMaterialAndAttachmentForBezel(newPendantMaterial, pendantAttachment);\n    let pendantSize = getPendantSizeOfMaterial(currentPendantMaterial);\n    if (pendantSize === PendantSizes.SMALL15MM) {\n      pendantSize = PendantSizes.SMALL20MM;\n    }\n    const pendantMaterialInCorrectSize = getPendantSizeForMaterial(material, pendantSize);\n    return pendantMaterialInCorrectSize;\n  }\n  switch (getBaseMaterial(newPendantMaterial)) {\n    case PendantMaterials.ONYX: {\n      if (is20mmPendantSize(currentPendantMaterial)) {\n        return PendantMaterials.ONYX_20;\n      } else if (is15mmPendantSize(currentPendantMaterial)) {\n        return PendantMaterials.ONYX_15;\n      } else {\n        return PendantMaterials.ONYX;\n      }\n    }\n    case PendantMaterials.GONYX: {\n      return PendantMaterials.GONYX;\n    }\n    default:\n    case PendantMaterials.SILVER: {\n      if (is20mmPendantSize(currentPendantMaterial)) {\n        if (isLocketMaterial(currentPendantMaterial)) {\n          return PendantMaterials.LOCKET_SILVER_20;\n        }\n        return PendantMaterials.SILVER_20;\n      } else if (is15mmPendantSize(currentPendantMaterial)) {\n        return PendantMaterials.SILVER_15;\n      } else {\n        return PendantMaterials.SILVER;\n      }\n    }\n    case PendantMaterials.GOLD: {\n      if (is20mmPendantSize(currentPendantMaterial)) {\n        return PendantMaterials.GOLD_20;\n      } else if (is15mmPendantSize(currentPendantMaterial)) {\n        return PendantMaterials.GOLD_15;\n      } else {\n        return PendantMaterials.GOLD;\n      }\n    }\n    case PendantMaterials.GDVM: {\n      if (is20mmPendantSize(currentPendantMaterial)) {\n        if (isLocketMaterial(currentPendantMaterial)) {\n          return PendantMaterials.LOCKET_GDVM_20;\n        }\n        return PendantMaterials.GDVM_20;\n      } else if (is15mmPendantSize(currentPendantMaterial)) {\n        return PendantMaterials.GDVM_15;\n      } else {\n        return PendantMaterials.GDVM;\n      }\n    }\n  }\n};\nvar getMaterialForNightSky = (currentMaterial) => {\n  switch (getBaseMaterial(currentMaterial)) {\n    case PendantMaterials.ONYX:\n      return PendantMaterials.ONYX;\n    case PendantMaterials.GONYX:\n      return PendantMaterials.GONYX;\n    default:\n    case PendantMaterials.SILVER:\n      return PendantMaterials.SILVER;\n    case PendantMaterials.GOLD:\n      return PendantMaterials.GOLD;\n    case PendantMaterials.GDVM:\n      return PendantMaterials.GDVM;\n  }\n};\nvar getMaterialForMoonPhase = (currentMaterial) => {\n  switch (getBaseMaterial(currentMaterial)) {\n    case PendantMaterials.ONYX:\n    case PendantMaterials.GONYX:\n      return PendantMaterials.SILVER_15;\n    default:\n    case PendantMaterials.SILVER:\n      return PendantMaterials.SILVER_15;\n    case PendantMaterials.GOLD: {\n      return PendantMaterials.GDVM_15;\n    }\n    case PendantMaterials.GDVM: {\n      return PendantMaterials.GDVM_15;\n    }\n  }\n};\nvar getMaterialForBirthConstellation = (currentMaterial) => {\n  switch (currentMaterial) {\n    case PendantMaterials.ONYX:\n      return PendantMaterials.ONYX;\n    case PendantMaterials.ONYX_20:\n      return PendantMaterials.ONYX_20;\n    case PendantMaterials.ONYX_15:\n      return PendantMaterials.ONYX_15;\n    case PendantMaterials.GONYX:\n      return PendantMaterials.GONYX;\n    default:\n    case PendantMaterials.SILVER:\n      return PendantMaterials.SILVER;\n    case PendantMaterials.SILVER_20:\n      return PendantMaterials.SILVER_20;\n    case PendantMaterials.SILVER_15:\n      return PendantMaterials.SILVER_15;\n    case PendantMaterials.GOLD:\n      return PendantMaterials.GOLD;\n    case PendantMaterials.GOLD_20:\n      return PendantMaterials.GOLD_20;\n    case PendantMaterials.GOLD_15:\n      return PendantMaterials.GOLD_15;\n    case PendantMaterials.GDVM:\n      return PendantMaterials.GDVM;\n    case PendantMaterials.GDVM_20:\n      return PendantMaterials.GDVM_20;\n    case PendantMaterials.GDVM_15:\n      return PendantMaterials.GDVM_15;\n    case PendantMaterials.LOCKET_GDVM_20:\n      return PendantMaterials.LOCKET_GDVM_20;\n    case PendantMaterials.LOCKET_SILVER_20:\n      return PendantMaterials.LOCKET_SILVER_20;\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n      return PendantMaterials.BEZEL_SILV_ONYX_20;\n    case PendantMaterials.BEZEL_SILV_ONYX_25:\n      return PendantMaterials.BEZEL_SILV_ONYX_25;\n    case PendantMaterials.BEZEL_GDVM_ONYX_20:\n      return PendantMaterials.BEZEL_GDVM_ONYX_20;\n    case PendantMaterials.BEZEL_GDVM_ONYX_25:\n      return PendantMaterials.BEZEL_GDVM_ONYX_25;\n    case PendantMaterials.BEZEL_SILV_GONYX_20:\n      return PendantMaterials.BEZEL_SILV_GONYX_20;\n    case PendantMaterials.BEZEL_SILV_GONYX_25:\n      return PendantMaterials.BEZEL_SILV_GONYX_25;\n    case PendantMaterials.BEZEL_GDVM_GONYX_20:\n      return PendantMaterials.BEZEL_GDVM_GONYX_20;\n    case PendantMaterials.BEZEL_GDVM_GONYX_25:\n      return PendantMaterials.BEZEL_GDVM_GONYX_25;\n  }\n};\nvar getPendantMaterialInPendantSize = (pendantSize, pendantMaterial) => {\n  if (isBezelMaterial(pendantMaterial)) {\n    switch (pendantMaterial) {\n      case PendantMaterials.BEZEL_SILV_ONYX_25:\n      case PendantMaterials.BEZEL_SILV_ONYX_20:\n        switch (pendantSize) {\n          default:\n          case PendantSizes.STANDARD:\n            return PendantMaterials.BEZEL_SILV_ONYX_25;\n          case PendantSizes.SMALL20MM:\n          case PendantSizes.SMALL15MM:\n            return PendantMaterials.BEZEL_SILV_ONYX_20;\n        }\n      case PendantMaterials.BEZEL_GDVM_ONYX_25:\n      case PendantMaterials.BEZEL_GDVM_ONYX_20:\n        switch (pendantSize) {\n          default:\n          case PendantSizes.STANDARD:\n            return PendantMaterials.BEZEL_GDVM_ONYX_25;\n          case PendantSizes.SMALL20MM:\n          case PendantSizes.SMALL15MM:\n            return PendantMaterials.BEZEL_GDVM_ONYX_20;\n        }\n      case PendantMaterials.BEZEL_SILV_GONYX_25:\n      case PendantMaterials.BEZEL_SILV_GONYX_20:\n        switch (pendantSize) {\n          default:\n          case PendantSizes.STANDARD:\n            return PendantMaterials.BEZEL_SILV_GONYX_25;\n          case PendantSizes.SMALL20MM:\n          case PendantSizes.SMALL15MM:\n            return PendantMaterials.BEZEL_SILV_GONYX_20;\n        }\n      case PendantMaterials.BEZEL_GDVM_GONYX_25:\n      case PendantMaterials.BEZEL_GDVM_GONYX_20:\n        switch (pendantSize) {\n          default:\n          case PendantSizes.STANDARD:\n            return PendantMaterials.BEZEL_GDVM_GONYX_25;\n          case PendantSizes.SMALL20MM:\n          case PendantSizes.SMALL15MM:\n            return PendantMaterials.BEZEL_GDVM_GONYX_20;\n        }\n    }\n  }\n  switch (getBaseMaterial(pendantMaterial)) {\n    case PendantMaterials.ONYX:\n      switch (pendantSize) {\n        default:\n        case PendantSizes.STANDARD:\n          return PendantMaterials.ONYX;\n        case PendantSizes.SMALL20MM:\n          return PendantMaterials.ONYX_20;\n        case PendantSizes.SMALL15MM:\n          return PendantMaterials.ONYX_15;\n      }\n    case PendantMaterials.GONYX:\n      return PendantMaterials.GONYX;\n    default:\n    case PendantMaterials.SILVER: {\n      if (isLocketMaterial(pendantMaterial)) {\n        return PendantMaterials.LOCKET_SILVER_20;\n      } else {\n        switch (pendantSize) {\n          default:\n          case PendantSizes.STANDARD:\n            return PendantMaterials.SILVER;\n          case PendantSizes.SMALL20MM:\n            return PendantMaterials.SILVER_20;\n          case PendantSizes.SMALL15MM:\n            return PendantMaterials.SILVER_15;\n        }\n      }\n    }\n    case PendantMaterials.GOLD: {\n      switch (pendantSize) {\n        default:\n        case PendantSizes.STANDARD:\n          return PendantMaterials.GOLD;\n        case PendantSizes.SMALL20MM:\n          return PendantMaterials.GOLD_20;\n        case PendantSizes.SMALL15MM:\n          return PendantMaterials.GOLD_15;\n      }\n    }\n    case PendantMaterials.GDVM: {\n      if (isLocketMaterial(pendantMaterial)) {\n        return PendantMaterials.LOCKET_GDVM_20;\n      } else {\n        switch (pendantSize) {\n          default:\n          case PendantSizes.STANDARD:\n            return PendantMaterials.GDVM;\n          case PendantSizes.SMALL20MM:\n            return PendantMaterials.GDVM_20;\n          case PendantSizes.SMALL15MM:\n            return PendantMaterials.GDVM_15;\n        }\n      }\n    }\n  }\n};\nvar isBackTextAllowed = (pendantType, _pendantMaterial) => {\n  if (pendantType === PendantTypes.MOON_PHASE) {\n    return false;\n  } else if (pendantType === PendantTypes.ECLIPSE) {\n    return false;\n  } else if (pendantType === PendantTypes.NIGHT_SKY) {\n    return true;\n  }\n  return true;\n};\nvar getPendantTypeForCollection = (pendantCollection, pendantType, pendantAttachment) => {\n  switch (pendantCollection) {\n    default:\n    case PendantCollections.NIGHT_SKY: {\n      switch (pendantType) {\n        default:\n        case PendantTypes.NIGHT_SKY:\n          return pendantType;\n        case PendantTypes.BIRTH_CONSTELLATION:\n        case PendantTypes.MOON_PHASE: {\n          if (!isLayer(pendantAttachment)) {\n            return PendantTypes.NIGHT_SKY;\n          }\n          return pendantType;\n        }\n        case PendantTypes.NOTES: {\n          return PendantTypes.NIGHT_SKY;\n        }\n        case PendantTypes.DOODLE: {\n          return PendantTypes.NIGHT_SKY;\n        }\n        case PendantTypes.ICON: {\n          return PendantTypes.NIGHT_SKY;\n        }\n        case PendantTypes.ECLIPSE: {\n          return PendantTypes.NIGHT_SKY;\n        }\n        case PendantTypes.FINGER_PRINTS:\n        case PendantTypes.PAW_PRINTS:\n        case PendantTypes.LOVE_NOTES:\n        case PendantTypes.HANDWRITING:\n        case PendantTypes.INITIALS: {\n          return PendantTypes.NIGHT_SKY;\n        }\n      }\n    }\n    case PendantCollections.MOMENTS: {\n      switch (pendantType) {\n        default:\n        case PendantTypes.NIGHT_SKY: {\n          return PendantTypes.BIRTH_CONSTELLATION;\n        }\n        case PendantTypes.BIRTH_CONSTELLATION:\n        case PendantTypes.MOON_PHASE:\n        case PendantTypes.NOTES:\n        case PendantTypes.DOODLE:\n        case PendantTypes.ICON:\n        case PendantTypes.ECLIPSE:\n        case PendantTypes.FINGER_PRINTS:\n        case PendantTypes.PAW_PRINTS:\n        case PendantTypes.LOVE_NOTES:\n        case PendantTypes.HANDWRITING:\n        case PendantTypes.INITIALS: {\n          return pendantType;\n        }\n      }\n    }\n  }\n};\nvar backTextShowsLocationAndCoords = (_pendantCollection, pendantType) => {\n  switch (pendantType) {\n    default:\n    case PendantTypes.NIGHT_SKY:\n      return true;\n    case PendantTypes.BIRTH_CONSTELLATION:\n    case PendantTypes.MOON_PHASE:\n    case PendantTypes.NOTES:\n    case PendantTypes.DOODLE:\n    case PendantTypes.ICON:\n    case PendantTypes.ECLIPSE:\n    case PendantTypes.FINGER_PRINTS:\n    case PendantTypes.PAW_PRINTS:\n    case PendantTypes.LOVE_NOTES:\n    case PendantTypes.HANDWRITING:\n    case PendantTypes.INITIALS: {\n      return false;\n    }\n  }\n};\nfunction cartShortTitles({\n  pendantMaterial,\n  pendantAttachment,\n  pendantType,\n  productFormat,\n  foilColor\n}) {\n  if (productUtils.formatIsDigital(productFormat)) {\n    return \"Night Sky Digital Download\";\n  }\n  if (isPrint(productFormat)) {\n    if (ProductFormats.CANVAS === productFormat) {\n      return \"Canvas Night Sky Print\";\n    }\n    let output = \"\";\n    switch (productFormat) {\n      case ProductFormats.FRAMED:\n      case ProductFormats.FOIL_FRAMED:\n      case ProductFormats.GITD_FRAMED:\n        output += \"Framed \";\n    }\n    switch (productFormat) {\n      case ProductFormats.GITD:\n      case ProductFormats.GITD_FRAMED:\n        return output + \"Glow In The Dark Night Sky Print\";\n      case ProductFormats.FOIL:\n      case ProductFormats.FOIL_FRAMED:\n        return output + foilColor.charAt(0).toUpperCase() + foilColor.slice(1) + \" Foil Night Sky Print\";\n        return;\n      default:\n        return output + \"Classic Night Sky Print\";\n    }\n  }\n  const [materialText, materialType] = cartShortTitlesPendant(getBaseMaterial(pendantMaterial));\n  if (isBracelet(pendantAttachment)) {\n    switch (pendantAttachment) {\n      case PendantAttachments.BRACELET_CORD:\n        return materialText + \" Pendant on a Black Cord Bracelet\";\n      case PendantAttachments.BRACELET_SILVER:\n        return materialText + ` Pendant on a Silver Bracelet`;\n      case PendantAttachments.BRACELET_GDVM:\n        return materialText + ` Pendant on a Gold Vermeil Bracelet`;\n      case PendantAttachments.BRACELET_GOLD:\n        return materialText + ` Pendant on a Gold Bracelet`;\n      default:\n        return materialText + ` Pendant on a Bracelet`;\n    }\n  } else if (isLocketMaterial(pendantMaterial)) {\n    return materialText + ` Locket`;\n  } else if (pendantType === PendantTypes.MOON_PHASE) {\n    let output = getBaseMaterial(pendantMaterial) === PendantMaterials.SILVER ? \"Sterling Silver\" : \"Gold Vermeil\";\n    output += \" Moon \";\n    output += pendantAttachment === PendantAttachments.CORD ? \"with Black Cord\" : \"Phase Necklace\";\n    return output;\n  }\n  const bandText = cartShortTitlesBand(pendantAttachment, materialType);\n  const pendantTypeText = cartShortPendantType(pendantType);\n  return materialText + pendantTypeText + \" Pendant\" + bandText;\n}\nfunction cartShortPendantType(pendantType) {\n  switch (pendantType) {\n    case PendantTypes.MOON_PHASE:\n      return \" Moon Phase\";\n    case PendantTypes.BIRTH_CONSTELLATION:\n      return \" Star Sign\";\n    case PendantTypes.NOTES:\n      return \" Notes\";\n    case PendantTypes.DOODLE:\n      return \" Your Design\";\n    case PendantTypes.ICON:\n      return \" Icon\";\n    case PendantTypes.ECLIPSE:\n      return \" Eclipse\";\n    case PendantTypes.FINGER_PRINTS:\n      return \" Finger Prints\";\n    case PendantTypes.PAW_PRINTS:\n      return \" Paw Print\";\n    case PendantTypes.LOVE_NOTES:\n      return \" Love Notes\";\n    case PendantTypes.HANDWRITING:\n      return \" Handwriting\";\n    case PendantTypes.INITIALS:\n      return \" Initials\";\n    case PendantTypes.NIGHT_SKY:\n    default:\n      break;\n  }\n  return \"\";\n}\nfunction cartShortTitlesBand(pendantAttachment, materialType) {\n  switch (pendantAttachment) {\n    case PendantAttachments.CORD:\n      return \" with Black Cord\";\n    case PendantAttachments.GOLD:\n      if (materialType === PendantMaterials.GOLD)\n        return \" and Chain\";\n      else\n        return \" with Solid Gold Chain\";\n      break;\n    case PendantAttachments.GDVM:\n      if (materialType === PendantMaterials.GDVM)\n        return \" and Chain\";\n      else\n        return \" with Gold Vermeil Chain\";\n      break;\n    case PendantAttachments.SILVER:\n      if (materialType === PendantMaterials.SILVER)\n        return \" and Chain\";\n      else\n        return \" on a Silver Chain\";\n      break;\n  }\n  return \"\";\n}\nfunction cartShortTitlesPendant(baseMaterial) {\n  switch (baseMaterial) {\n    case PendantMaterials.ONYX:\n      return [\"Onyx\", baseMaterial];\n    case PendantMaterials.GONYX:\n      return [\"Green Onyx\", baseMaterial];\n    case PendantMaterials.GOLD:\n      return [\"Solid Gold\", baseMaterial];\n    case PendantMaterials.GDVM:\n      return [\"Gold Vermeil\", baseMaterial];\n    case PendantMaterials.SILVER:\n      return [\"Sterling Silver\", baseMaterial];\n  }\n  return [\"\", void 0];\n}\nfunction isPrint(productFormat) {\n  if (!productFormat) {\n    return false;\n  }\n  return productUtils.formatIsPrint(productFormat) || productUtils.formatIsFramed(productFormat) || productUtils.formatIsCanvas(productFormat);\n}\nvar isMomentsCollection = (pendantType) => {\n  return [\n    PendantTypes.MOON_PHASE,\n    PendantTypes.BIRTH_CONSTELLATION,\n    PendantTypes.NOTES,\n    PendantTypes.DOODLE,\n    PendantTypes.ICON,\n    PendantTypes.ECLIPSE,\n    PendantTypes.FINGER_PRINTS,\n    PendantTypes.PAW_PRINTS,\n    PendantTypes.LOVE_NOTES,\n    PendantTypes.HANDWRITING,\n    PendantTypes.INITIALS\n  ].includes(pendantType);\n};\nvar getDefaultMaterialForPiece = (pieceType) => {\n  if (pieceType === \"locket\") {\n    return PendantMaterials.LOCKET_SILVER_20;\n  } else if (pieceType === \"bracelet\") {\n    return PendantMaterials.SILVER;\n  } else if (pieceType === \"bezel\") {\n    return PendantMaterials.BEZEL_GDVM_GONYX_25;\n  }\n  return PendantMaterials.SILVER;\n};\nvar getMaterialAndAttachmentForLocket = (pendantMaterialParam, _pendantAttachmentParam) => {\n  switch (getBaseMaterial(pendantMaterialParam)) {\n    case PendantMaterials.ONYX:\n    case PendantMaterials.GONYX:\n    case PendantMaterials.SILVER:\n    default: {\n      return {\n        material: PendantMaterials.LOCKET_SILVER_20,\n        attachment: PendantAttachments.SILVER\n      };\n    }\n    case PendantMaterials.GOLD:\n    case PendantMaterials.GDVM: {\n      return {\n        material: PendantMaterials.LOCKET_GDVM_20,\n        attachment: PendantAttachments.GDVM\n      };\n    }\n  }\n};\nvar getMaterialAndAttachmentForCharm = (pendantMaterialParam, _pendantAttachmentParam) => {\n  let pendantMaterial = pendantMaterialParam;\n  const pendantAttachment = PendantAttachments.NO_ATTACHMENT;\n  if (isLocketMaterial(pendantMaterial)) {\n    switch (getBaseMaterial(pendantMaterialParam)) {\n      case PendantMaterials.SILVER:\n      default:\n        pendantMaterial = PendantMaterials.SILVER_20;\n        break;\n      case PendantMaterials.GDVM:\n        pendantMaterial = PendantMaterials.SILVER_20;\n        break;\n    }\n  }\n  return {\n    material: pendantMaterial,\n    attachment: pendantAttachment\n  };\n};\nvar getMaterialAndAttachmentForBezel = (pendantMaterialParam, pendantAttachmentParam) => {\n  let pendantMaterial = pendantMaterialParam;\n  let pendantAttachment = pendantAttachmentParam;\n  const isGoldVermeilBezel = [\n    PendantMaterials.BEZEL_GDVM_ONYX_25,\n    PendantMaterials.BEZEL_GDVM_ONYX_20,\n    PendantMaterials.BEZEL_GDVM_ONYX_15,\n    PendantMaterials.BEZEL_GDVM_GONYX_25,\n    PendantMaterials.BEZEL_GDVM_GONYX_20,\n    PendantMaterials.BEZEL_GDVM_GONYX_15\n  ].includes(pendantMaterial);\n  const useGdvmBezel = isGoldVermeilBezel;\n  switch (getBaseMaterial(pendantMaterial)) {\n    case PendantMaterials.BEZEL_SILV_ONYX_25:\n    case PendantMaterials.BEZEL_GDVM_ONYX_25:\n    case PendantMaterials.ONYX:\n    default:\n      if (useGdvmBezel) {\n        pendantMaterial = PendantMaterials.BEZEL_GDVM_ONYX_25;\n      } else {\n        pendantMaterial = PendantMaterials.BEZEL_SILV_ONYX_25;\n      }\n      break;\n    case PendantMaterials.BEZEL_SILV_ONYX_20:\n    case PendantMaterials.BEZEL_GDVM_ONYX_20:\n      if (useGdvmBezel) {\n        pendantMaterial = PendantMaterials.BEZEL_GDVM_ONYX_20;\n      } else {\n        pendantMaterial = PendantMaterials.BEZEL_SILV_ONYX_20;\n      }\n      break;\n    case PendantMaterials.BEZEL_SILV_ONYX_15:\n    case PendantMaterials.BEZEL_GDVM_ONYX_15:\n      if (useGdvmBezel) {\n        pendantMaterial = PendantMaterials.BEZEL_GDVM_ONYX_15;\n      } else {\n        pendantMaterial = PendantMaterials.BEZEL_SILV_ONYX_15;\n      }\n      break;\n    case PendantMaterials.BEZEL_SILV_GONYX_25:\n    case PendantMaterials.BEZEL_GDVM_GONYX_25:\n    case PendantMaterials.GONYX:\n      if (useGdvmBezel) {\n        pendantMaterial = PendantMaterials.BEZEL_GDVM_GONYX_25;\n      } else {\n        pendantMaterial = PendantMaterials.BEZEL_SILV_GONYX_25;\n      }\n      break;\n    case PendantMaterials.BEZEL_SILV_GONYX_20:\n    case PendantMaterials.BEZEL_GDVM_GONYX_20:\n      if (useGdvmBezel) {\n        pendantMaterial = PendantMaterials.BEZEL_GDVM_GONYX_20;\n      } else {\n        pendantMaterial = PendantMaterials.BEZEL_SILV_GONYX_20;\n      }\n      break;\n    case PendantMaterials.BEZEL_SILV_GONYX_15:\n    case PendantMaterials.BEZEL_GDVM_GONYX_15:\n      if (useGdvmBezel) {\n        pendantMaterial = PendantMaterials.BEZEL_GDVM_GONYX_15;\n      } else {\n        pendantMaterial = PendantMaterials.BEZEL_SILV_GONYX_15;\n      }\n      break;\n  }\n  if (useGdvmBezel) {\n    if (isBracelet(pendantAttachment)) {\n      pendantAttachment = PendantAttachments.BRACELET_GDVM;\n    } else {\n      pendantAttachment = PendantAttachments.GDVM;\n    }\n  } else {\n    if (isBracelet(pendantAttachment)) {\n      pendantAttachment = PendantAttachments.BRACELET_SILVER;\n    } else {\n      pendantAttachment = PendantAttachments.SILVER;\n    }\n  }\n  return {\n    material: pendantMaterial,\n    attachment: pendantAttachment\n  };\n};\nvar getMaterialAndAttachmentForBracelet = (pendantCollection, pendantType, pendantMaterialParam, pendantAttachmentParam) => {\n  let pendantMaterial = pendantMaterialParam;\n  let pendantAttachment = pendantAttachmentParam;\n  if (isLocketMaterial(pendantMaterial)) {\n    switch (pendantMaterial) {\n      case PendantMaterials.LOCKET_SILVER_20:\n        pendantMaterial = PendantMaterials.SILVER_20;\n        break;\n      case PendantMaterials.LOCKET_GDVM_20:\n        pendantMaterial = PendantMaterials.GDVM_20;\n        break;\n      default:\n        break;\n    }\n  }\n  switch (pendantMaterial) {\n    case PendantMaterials.GOLD:\n      pendantMaterial = PendantMaterials.GDVM;\n      break;\n    case PendantMaterials.GOLD_20:\n      pendantMaterial = PendantMaterials.GDVM_20;\n      break;\n    case PendantMaterials.GOLD_15:\n      pendantMaterial = PendantMaterials.GDVM_15;\n      break;\n    default:\n      break;\n  }\n  const basePendantMaterial = pendantInfoUtils.getBaseMaterial(pendantMaterial);\n  switch (pendantAttachment) {\n    case PendantAttachments.GOLD:\n      if ([\n        PendantMaterials.GDVM,\n        PendantMaterials.ONYX,\n        PendantMaterials.GONYX\n      ].includes(basePendantMaterial)) {\n        pendantAttachment = PendantAttachments.BRACELET_GDVM;\n      } else {\n        pendantAttachment = PendantAttachments.BRACELET_SILVER;\n      }\n      break;\n    case PendantAttachments.GDVM:\n    case PendantAttachments.BRACELET_GDVM:\n      if ([\n        PendantMaterials.GDVM,\n        PendantMaterials.ONYX,\n        PendantMaterials.GONYX\n      ].includes(basePendantMaterial)) {\n        pendantAttachment = PendantAttachments.BRACELET_GDVM;\n      } else {\n        pendantAttachment = PendantAttachments.BRACELET_SILVER;\n      }\n      break;\n    case PendantAttachments.SILVER:\n    case PendantAttachments.BRACELET_SILVER:\n      if ([\n        PendantMaterials.SILVER,\n        PendantMaterials.ONYX,\n        PendantMaterials.GONYX\n      ].includes(basePendantMaterial)) {\n        pendantAttachment = PendantAttachments.BRACELET_SILVER;\n      } else if ([PendantMaterials.GDVM].includes(basePendantMaterial)) {\n        pendantAttachment = PendantAttachments.BRACELET_GDVM;\n      } else {\n        pendantAttachment = PendantAttachments.BRACELET_SILVER;\n      }\n      break;\n    case PendantAttachments.CORD:\n    case PendantAttachments.BRACELET_CORD:\n      if ([\n        PendantMaterials.SILVER,\n        PendantMaterials.ONYX,\n        PendantMaterials.GONYX\n      ].includes(basePendantMaterial)) {\n        pendantAttachment = PendantAttachments.BRACELET_CORD;\n      } else if ([PendantMaterials.GDVM].includes(basePendantMaterial)) {\n        pendantAttachment = PendantAttachments.BRACELET_GDVM;\n      } else {\n        pendantAttachment = PendantAttachments.BRACELET_SILVER;\n      }\n      break;\n    case PendantAttachments.NO_ATTACHMENT:\n    case PendantAttachments.LAYERED_ON_PENDANT:\n    default:\n      pendantAttachment = PendantAttachments.BRACELET_SILVER;\n      break;\n  }\n  if (!jewelryComboIsAllowed(pendantCollection, pendantType, pendantMaterial, pendantAttachmentParam)) {\n    pendantMaterial = getMaterialForNightSky(pendantMaterial);\n  }\n  return {\n    material: pendantMaterial,\n    attachment: pendantAttachment\n  };\n};\nvar getMaterialAndAttachmentForNecklace = (pendantCollection, pendantType, pendantMaterialParam, pendantAttachmentParam) => {\n  let pendantMaterial = pendantMaterialParam;\n  let pendantAttachment = pendantAttachmentParam;\n  if (isLocketMaterial(pendantMaterial)) {\n    switch (pendantMaterial) {\n      case PendantMaterials.LOCKET_GDVM_20:\n        pendantMaterial = PendantMaterials.GDVM_20;\n        break;\n      case PendantMaterials.LOCKET_SILVER_20:\n        pendantMaterial = PendantMaterials.SILVER_20;\n        break;\n    }\n  }\n  switch (pendantAttachment) {\n    case PendantAttachments.GOLD:\n      pendantAttachment = PendantAttachments.GOLD;\n      break;\n    case PendantAttachments.GDVM:\n    case PendantAttachments.BRACELET_GDVM:\n      pendantAttachment = PendantAttachments.GDVM;\n      break;\n    case PendantAttachments.SILVER:\n    case PendantAttachments.BRACELET_SILVER:\n      pendantAttachment = PendantAttachments.SILVER;\n      break;\n    case PendantAttachments.CORD:\n    case PendantAttachments.BRACELET_CORD:\n      pendantAttachment = PendantAttachments.CORD;\n      break;\n      break;\n    case PendantAttachments.NO_ATTACHMENT:\n    case PendantAttachments.LAYERED_ON_PENDANT:\n    default:\n      pendantAttachment = PendantAttachments.SILVER;\n      break;\n  }\n  if (!jewelryComboIsAllowed(pendantCollection, pendantType, pendantMaterial, pendantAttachment)) {\n    pendantAttachment = getDefaultAttachmentForMaterial(pendantMaterial);\n  }\n  return {\n    material: pendantMaterial,\n    attachment: pendantAttachment\n  };\n};\nvar pendantTypeIsMoment = (pendantType) => {\n  switch (pendantType) {\n    case PendantTypes.NIGHT_SKY:\n    default:\n      return false;\n    case PendantTypes.MOON_PHASE:\n    case PendantTypes.BIRTH_CONSTELLATION:\n    case PendantTypes.NOTES:\n    case PendantTypes.DOODLE:\n    case PendantTypes.ICON:\n    case PendantTypes.ECLIPSE:\n    case PendantTypes.FINGER_PRINTS:\n    case PendantTypes.PAW_PRINTS:\n    case PendantTypes.LOVE_NOTES:\n    case PendantTypes.HANDWRITING:\n    case PendantTypes.INITIALS:\n      return true;\n  }\n};\nvar pendantInfoUtils = {\n  getPendantInfoTitle,\n  getPendantBasicDescription,\n  getDefaultAttachmentForMaterial,\n  is20mmPendantSize,\n  is15mmPendantSize,\n  getPendantSizeForMaterial,\n  getBaseMaterial,\n  getPendantSizeText,\n  countryIsMetricLocation,\n  getAttachmentText,\n  isPendantLayer,\n  isOverlay,\n  isLayer,\n  getPendantSku,\n  pendantHasTwoHoles,\n  pendantHasOneHole,\n  overlayAllowedOnMaterial,\n  getPendantProductName,\n  getPendantMaterialColor,\n  getPendantMaterialName,\n  getPendantAttachmentName,\n  getPendantAttachmentNameForMonday,\n  getPendantProductNameShort,\n  getJewelryNameForAnalytics,\n  getBraceletForPendantMaterial,\n  getPendantForBraceletMaterial,\n  isBracelet,\n  isBraceletNotCord,\n  isLocketMaterial,\n  isBezelMaterial,\n  isBezelMaterialSilver,\n  isCordAttachment,\n  getEmojiForMaterial,\n  getEmojiForAttachment,\n  getPendantHsInfoDetailed,\n  getPendantHsCode,\n  getPendantHsDesc,\n  changeMaterialGetEquivalentSize,\n  getMaterialForNightSky,\n  getMaterialForMoonPhase,\n  getMaterialForBirthConstellation,\n  getPendantSizeOfMaterial,\n  getPendantMaterialInPendantSize,\n  isBackTextAllowed,\n  backTextShowsLocationAndCoords,\n  getPendantTypeForCollection,\n  jewelryComboIsAllowed,\n  cartShortTitles,\n  isMomentsCollection,\n  getDefaultMaterialForPiece,\n  getMaterialAndAttachmentForLocket,\n  getMaterialAndAttachmentForBracelet,\n  getMaterialAndAttachmentForNecklace,\n  getMaterialAndAttachmentForCharm,\n  getMaterialAndAttachmentForBezel,\n  pendantTypeIsMoment\n};\nexport {\n  pendantInfoUtils\n};\n", "// src/resources/facebook.ts\nimport { pendantInfoUtils } from \"../utils/pendantInfoUtils.js\";\nimport { productUtils } from \"../utils/productUtils.js\";\nimport { PendantAttachments } from \"./pendantAttachments.js\";\nimport { PendantMaterials } from \"./pendantMaterials.js\";\nvar facebookContentCategoryForPrint = \"Home & Garden > Decor > Artwork > Posters, Prints, & Visual Artwork\";\nvar facebookContentCategoryForJewelry = \"Apparel & Accessories > Jewelry\";\nvar facebookGroupId = \"NSSTARMAP\";\nvar facebookGroupTitle = \"Custom Star Map\";\nvar facebookGroupTitleForPendant = \"Night Sky Pendant\";\nvar facebookPendantCatalog = [\n  {\n    id: \"TNS-US-PEN-S\",\n    type: \"pendant\",\n    stars: true,\n    constellations: false,\n    grid: false\n  },\n  {\n    id: \"TNS-US-PEN-C\",\n    type: \"pendant\",\n    stars: false,\n    constellations: true,\n    grid: false\n  },\n  {\n    id: \"TNS-US-PEN-G\",\n    type: \"pendant\",\n    stars: false,\n    constellations: false,\n    grid: true\n  },\n  {\n    id: \"TNS-US-PEN-SCG\",\n    type: \"pendant\",\n    stars: true,\n    constellations: true,\n    grid: true\n  },\n  {\n    id: \"TNS-US-PEN-SC\",\n    type: \"pendant\",\n    stars: true,\n    constellations: true,\n    grid: false\n  },\n  {\n    id: \"TNS-US-PEN-SG\",\n    type: \"pendant\",\n    stars: true,\n    constellations: false,\n    grid: true\n  },\n  {\n    id: \"TNS-US-PEN-CG\",\n    type: \"pendant\",\n    stars: false,\n    constellations: true,\n    grid: true\n  }\n];\nvar facebookCatalogPrints = [\n  {\n    id: \"NS-B\",\n    type: \"print\"\n  },\n  {\n    id: \"GF-12x12-B\",\n    type: \"foil\"\n  },\n  {\n    id: \"GID-12x12-A\",\n    type: \"gitd\"\n  },\n  {\n    id: \"CAN-12x12-A\",\n    type: \"canvas\"\n  }\n];\nvar getSkuForJewelryItem = (item) => {\n  try {\n    if (productUtils.isJewelry(item)) {\n      const pendantMaterial = item.pendantMaterial || PendantMaterials.SILVER;\n      const baseMaterial = pendantInfoUtils.getBaseMaterial(pendantMaterial);\n      const pendantAttachment = pendantInfoUtils.getDefaultAttachmentForMaterial(pendantMaterial);\n      const isBracelet = pendantInfoUtils.isBracelet(pendantAttachment);\n      const isLocket = pendantInfoUtils.isLocketMaterial(pendantMaterial);\n      const isBezel = pendantInfoUtils.isBezelMaterial(pendantMaterial);\n      const isBezelMaterialSilver = pendantInfoUtils.isBezelMaterialSilver(pendantMaterial);\n      switch (item.pendantType) {\n        case \"MOON_PHASE\":\n          if (baseMaterial === PendantMaterials.GDVM) {\n            return \"MP-V-15\";\n          }\n          return \"MP-S-15\";\n        case \"ECLIPSE\":\n          if (baseMaterial === PendantMaterials.GDVM) {\n            return \"EC-V-15\";\n          }\n          return \"EC-S-15\";\n        case \"BIRTH_CONSTELLATION\":\n          if (baseMaterial === PendantMaterials.GDVM) {\n            return \"BC-V-15-C\";\n          }\n          return \"BC-SV-15-C\";\n        default:\n          switch (baseMaterial) {\n            case PendantMaterials.ONYX: {\n              if (isBezel) {\n                if (isBezelMaterialSilver) {\n                  if (isBracelet) {\n                    return \"SM-OSB-B\";\n                  }\n                  return \"SM-OSB-N\";\n                } else {\n                  if (isBracelet) {\n                    return \"SM-OVB-B\";\n                  }\n                  return \"SM-OVB-N\";\n                }\n              } else if (isBracelet) {\n                return \"SM-OX-20-B\";\n              }\n              return \"NS-ONYX-PEN-C\";\n            }\n            case PendantMaterials.GONYX: {\n              if (isBezelMaterialSilver) {\n                if (isBracelet) {\n                  return \"SM-GOSB-B\";\n                }\n                return \"SM-GOSB-N\";\n              }\n              if (isBracelet) {\n                return \"SM-GOVB-B\";\n              }\n              return \"SM-GOVB-N\";\n            }\n            case PendantMaterials.SILVER: {\n              if (isLocket) {\n                return \"SM-S-L\";\n              } else if ([\n                PendantAttachments.NO_ATTACHMENT,\n                PendantAttachments.LAYERED_ON_PENDANT\n              ].includes(pendantAttachment)) {\n                return \"SM-SV-15-NA\";\n              } else if (isBracelet) {\n                return \"NS-BRA-S\";\n              } else {\n                return \"NS-PEN-C\";\n              }\n            }\n            case PendantMaterials.GDVM: {\n              if (isLocket) {\n                return \"SM-V-L\";\n              } else if (isBracelet) {\n                return \"SM-V-15-B\";\n              } else {\n                return \"SM-V-15-S\";\n              }\n            }\n            case \"gold\": {\n              return \"BC-G-15-GN\";\n            }\n            default:\n              break;\n          }\n          break;\n      }\n    }\n  } catch (err) {\n  }\n  return \"\";\n};\nvar facebookCatalogAllLiveIds = [\n  \"NS-B\",\n  \"GF-12x12-B\",\n  \"GID-12x12-A\",\n  \"CAN-12x12-A\",\n  \"NS-PEN-C\",\n  \"NS-BRA-S\",\n  \"SM-S-L\",\n  \"NS-ONYX-PEN-C\",\n  \"SM-OX-20-B\",\n  \"SM-V-15-S\",\n  \"SM-V-15-B\",\n  \"SM-V-L\",\n  \"BC-G-15-GN\",\n  \"MP-S-15\",\n  \"MP-V-15\",\n  \"EC-S-15\",\n  \"EC-V-15\",\n  \"BC-SV-15-C\",\n  \"BC-V-15-C\",\n  \"SM-SV-15-NA\",\n  \"SM-GOSB-N\",\n  \"SM-GOVB-N\",\n  \"SM-OSB-N\",\n  \"SM-OVB-N\",\n  \"SM-GOSB-B\",\n  \"SM-GOVB-B\",\n  \"SM-OSB-B\",\n  \"SM-OVB-B\"\n];\nvar facebookCatalogLivePrintIds = facebookCatalogPrints.map((x) => x.id);\nvar facebookCatalogLiveJewelryIds = [\n  \"NS-PEN-C\",\n  \"NS-BRA-S\",\n  \"SM-S-L\",\n  \"NS-ONYX-PEN-C\",\n  \"SM-OX-20-B\",\n  \"SM-V-15-S\",\n  \"SM-V-15-B\",\n  \"SM-V-L\",\n  \"BC-G-15-GN\",\n  \"MP-S-15\",\n  \"MP-V-15\",\n  \"EC-S-15\",\n  \"EC-V-15\",\n  \"BC-SV-15-C\",\n  \"BC-V-15-C\",\n  \"SM-SV-15-NA\",\n  \"SM-GOSB-N\",\n  \"SM-GOVB-N\",\n  \"SM-OSB-N\",\n  \"SM-OVB-N\",\n  \"SM-GOSB-B\",\n  \"SM-GOVB-B\",\n  \"SM-OSB-B\",\n  \"SM-OVB-B\"\n];\nexport {\n  facebookCatalogAllLiveIds,\n  facebookCatalogLiveJewelryIds,\n  facebookCatalogLivePrintIds,\n  facebookCatalogPrints,\n  facebookContentCategoryForJewelry,\n  facebookContentCategoryForPrint,\n  facebookGroupId,\n  facebookGroupTitle,\n  facebookGroupTitleForPendant,\n  facebookPendantCatalog,\n  getSkuForJewelryItem\n};\n", "// src/config/environment.ts\nvar config = {\n  FBP_TRACKING_ID: `406491799699930`,\n  RDT_TRACKING_ID: `a2_eolp411828on`,\n  GOOGLE_TAG_MANAGER_AUTHENV: \"&gtm_auth=SQkMeg3CPICqReButc4Cug&gtm_preview=env-1&gtm_cookies_win=x\",\n  TIKTOK_TRACKING_ID: \"CA16N4BC77UCFR8RG400\",\n  TNS_PLATFORM_API: `https://api-server.thenightsky.com`\n};\nvar environment_default = config;\nexport {\n  environment_default as default\n};\n", "// src/resources/countries.ts\nvar countryCodes = [\n  \"AF\",\n  \"AX\",\n  \"AL\",\n  \"DZ\",\n  \"AS\",\n  \"AD\",\n  \"AO\",\n  \"AI\",\n  \"AQ\",\n  \"AG\",\n  \"AR\",\n  \"AM\",\n  \"AW\",\n  \"AU\",\n  \"AT\",\n  \"AZ\",\n  \"BS\",\n  \"BH\",\n  \"BD\",\n  \"BB\",\n  \"BY\",\n  \"BE\",\n  \"BZ\",\n  \"BJ\",\n  \"BM\",\n  \"BT\",\n  \"BO\",\n  \"BA\",\n  \"BW\",\n  \"BV\",\n  \"BR\",\n  \"IO\",\n  \"BN\",\n  \"BG\",\n  \"BF\",\n  \"BI\",\n  \"KH\",\n  \"CM\",\n  \"CA\",\n  \"CV\",\n  \"KY\",\n  \"CF\",\n  \"TD\",\n  \"CL\",\n  \"CN\",\n  \"CX\",\n  \"CC\",\n  \"CO\",\n  \"KM\",\n  \"CG\",\n  \"CD\",\n  \"CK\",\n  \"CR\",\n  \"CI\",\n  \"HR\",\n  \"CU\",\n  \"CY\",\n  \"CZ\",\n  \"DK\",\n  \"DJ\",\n  \"DM\",\n  \"DO\",\n  \"EC\",\n  \"EG\",\n  \"SV\",\n  \"GQ\",\n  \"ER\",\n  \"EE\",\n  \"ET\",\n  \"FK\",\n  \"FO\",\n  \"FJ\",\n  \"FI\",\n  \"FR\",\n  \"GF\",\n  \"PF\",\n  \"TF\",\n  \"GA\",\n  \"GM\",\n  \"GE\",\n  \"DE\",\n  \"GH\",\n  \"GI\",\n  \"GR\",\n  \"GL\",\n  \"GD\",\n  \"GP\",\n  \"GU\",\n  \"GT\",\n  \"GG\",\n  \"GN\",\n  \"GW\",\n  \"GY\",\n  \"HT\",\n  \"HM\",\n  \"VA\",\n  \"HN\",\n  \"HK\",\n  \"HU\",\n  \"IS\",\n  \"IN\",\n  \"ID\",\n  \"IR\",\n  \"IQ\",\n  \"IE\",\n  \"IM\",\n  \"IL\",\n  \"IT\",\n  \"JM\",\n  \"JP\",\n  \"JE\",\n  \"JO\",\n  \"KZ\",\n  \"KE\",\n  \"KI\",\n  \"KP\",\n  \"KR\",\n  \"XK\",\n  \"KW\",\n  \"KG\",\n  \"LA\",\n  \"LV\",\n  \"LB\",\n  \"LS\",\n  \"LR\",\n  \"LY\",\n  \"LI\",\n  \"LT\",\n  \"LU\",\n  \"MO\",\n  \"MK\",\n  \"MG\",\n  \"MW\",\n  \"MY\",\n  \"MV\",\n  \"ML\",\n  \"MT\",\n  \"MH\",\n  \"MQ\",\n  \"MR\",\n  \"MU\",\n  \"YT\",\n  \"MX\",\n  \"FM\",\n  \"MD\",\n  \"MC\",\n  \"MN\",\n  \"ME\",\n  \"MS\",\n  \"MA\",\n  \"MZ\",\n  \"MM\",\n  \"NA\",\n  \"NR\",\n  \"NP\",\n  \"NL\",\n  \"AN\",\n  \"NC\",\n  \"NZ\",\n  \"NI\",\n  \"NE\",\n  \"NG\",\n  \"NU\",\n  \"NF\",\n  \"MP\",\n  \"NO\",\n  \"OM\",\n  \"PK\",\n  \"PW\",\n  \"PS\",\n  \"PA\",\n  \"PG\",\n  \"PY\",\n  \"PE\",\n  \"PH\",\n  \"PN\",\n  \"PL\",\n  \"PT\",\n  \"PR\",\n  \"QA\",\n  \"RE\",\n  \"RO\",\n  \"RU\",\n  \"RW\",\n  \"BL\",\n  \"SH\",\n  \"KN\",\n  \"LC\",\n  \"MF\",\n  \"PM\",\n  \"VC\",\n  \"WS\",\n  \"SM\",\n  \"ST\",\n  \"SA\",\n  \"SN\",\n  \"RS\",\n  \"SC\",\n  \"SL\",\n  \"SG\",\n  \"SX\",\n  \"SK\",\n  \"SI\",\n  \"SB\",\n  \"SO\",\n  \"ZA\",\n  \"GS\",\n  \"ES\",\n  \"LK\",\n  \"SD\",\n  \"SR\",\n  \"SJ\",\n  \"SZ\",\n  \"SE\",\n  \"CH\",\n  \"SY\",\n  \"TW\",\n  \"TJ\",\n  \"TZ\",\n  \"TH\",\n  \"TL\",\n  \"TG\",\n  \"TK\",\n  \"TO\",\n  \"TT\",\n  \"TN\",\n  \"TR\",\n  \"TM\",\n  \"TC\",\n  \"TV\",\n  \"UG\",\n  \"UA\",\n  \"AE\",\n  \"GB\",\n  \"UM\",\n  \"US\",\n  \"UY\",\n  \"UZ\",\n  \"VU\",\n  \"VE\",\n  \"VN\",\n  \"VG\",\n  \"VI\",\n  \"WF\",\n  \"EH\",\n  \"YE\",\n  \"ZM\",\n  \"ZW\"\n];\nexport {\n  countryCodes\n};\n", "var __async = (__this, __arguments, generator) => {\n  return new Promise((resolve, reject) => {\n    var fulfilled = (value) => {\n      try {\n        step(generator.next(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var rejected = (value) => {\n      try {\n        step(generator.throw(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);\n    step((generator = generator.apply(__this, __arguments)).next());\n  });\n};\n\n// src/tracking/shared/helpers.ts\nimport { countryCodes } from \"../../resources/countries.js\";\nvar buildUserData = (customerEmail, customerId, customerCountryCode) => {\n  const userData = {};\n  if ((customerId || \"\") !== \"\" && `${customerId || \"\"}`.length > 6) {\n    userData.externalId = `${customerId || \"\"}`;\n  } else {\n  }\n  if ((customerEmail || \"\").trim() !== \"\") {\n    userData.email = (customerEmail || \"\").trim();\n  }\n  if (customerCountryCode && customerCountryCode !== \"\" && countryCodes.includes(customerCountryCode.substring(0, 2).toUpperCase())) {\n    userData.countryCode = customerCountryCode.substring(0, 2).toUpperCase();\n  }\n  return userData;\n};\nvar hashAndTrimStringIfRequested = (hashed, inputParam) => __async(void 0, null, function* () {\n  try {\n    const input = (inputParam || \"\").trim();\n    if (!input) {\n      return null;\n    }\n    if (hashed === true) {\n      const textAsBuffer = new TextEncoder().encode(input);\n      const hashBuffer = yield window.crypto.subtle.digest(\"SHA-256\", textAsBuffer);\n      const hashArray = Array.from(new Uint8Array(hashBuffer));\n      const hash = hashArray.map((item) => item.toString(16).padStart(2, \"0\")).join(\"\");\n      let returnValue = `${hash || \"\"}`.trim();\n      if (returnValue.length > 128) {\n        returnValue = `${returnValue.substring(0, 128)}`;\n      }\n      return returnValue;\n    } else {\n      return input;\n    }\n  } catch (error) {\n  }\n  return null;\n});\nvar getSourceUrl = () => {\n  try {\n    if (typeof window !== \"undefined\" && window.location && window.location.href && window.location.href !== \"\") {\n      return `${window.location.href}`;\n    }\n  } catch (error) {\n    console.error(error);\n  }\n  return \"\";\n};\nexport {\n  buildUserData,\n  getSourceUrl,\n  hashAndTrimStringIfRequested\n};\n", "var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\nvar __async = (__this, __arguments, generator) => {\n  return new Promise((resolve, reject) => {\n    var fulfilled = (value) => {\n      try {\n        step(generator.next(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var rejected = (value) => {\n      try {\n        step(generator.throw(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);\n    step((generator = generator.apply(__this, __arguments)).next());\n  });\n};\n\n// src/tracking/facebook/facebook.ts\nimport {\n  facebookGroupTitle,\n  facebookCatalogPrints,\n  facebookContentCategoryForPrint,\n  facebookContentCategoryForJewelry,\n  facebookCatalogAllLiveIds,\n  facebookCatalogLivePrintIds,\n  facebookCatalogLiveJewelryIds,\n  getSkuForJewelryItem\n} from \"../../resources/facebook.js\";\nimport { ProductTypes } from \"../../resources/productTypes.js\";\nimport { productUtils } from \"../../utils/productUtils.js\";\nimport envConfig from \"../../config/environment.js\";\n\n// src/tracking/facebook/react-facebook-pixel.js\nvar initialized = false;\nvar debug = false;\nvar warn = (...args) => {\n  if (!debug) {\n    return;\n  }\n  console.info(...[\"[react-facebook-pixel]\"].concat(args));\n};\nvar log = (...args) => {\n  if (!debug) {\n    return;\n  }\n  console.info(...[\"[react-facebook-pixel]\"].concat(args));\n};\nvar verifyInit = () => {\n  if (!initialized) {\n    warn(\"Pixel not initialized before using call Pixel init with required params\");\n  }\n  return initialized;\n};\nvar defaultOptions = {\n  autoConfig: true,\n  debug: false\n};\nvar facebookPixel = {\n  load() {\n    !function(f, b, e, v, n, t, s) {\n      if (f.fbq)\n        return;\n      n = f.fbq = function() {\n        n.callMethod ? n.callMethod.apply(n, arguments) : n.queue.push(arguments);\n      };\n      if (!f._fbq)\n        f._fbq = n;\n      n.push = n;\n      n.loaded = true;\n      n.version = \"2.0\";\n      n.queue = [];\n      t = b.createElement(e);\n      t.async = true;\n      t.src = v;\n      s = b.getElementsByTagName(e)[0];\n      s.parentNode.insertBefore(t, s);\n    }(window, document, \"script\", \"https://connect.facebook.net/en_US/fbevents.js\");\n  },\n  fbq(...args) {\n    if (!verifyInit()) {\n      return;\n    }\n    window.fbq(...args);\n    if (debug) {\n      log(`called fbq('${args.slice(0, 2).join(\"', '\")}')`);\n      if (args[2]) {\n        log(\"with data\", args[2]);\n      }\n    }\n  },\n  init(pixelId, advancedMatching = {}, options = defaultOptions) {\n    initialized = typeof window !== \"undefined\" && !!window.fbq;\n    if (!initialized) {\n      this.load();\n    }\n    if (!pixelId) {\n      warn(\"Please insert pixel id for initializing\");\n    } else {\n      if (options.autoConfig === false) {\n        fbq(\"set\", \"autoConfig\", false, pixelId);\n      }\n      this.fbq(\"init\", pixelId, advancedMatching);\n      initialized = true;\n      debug = options.debug;\n    }\n  },\n  track(title, data, eventData) {\n    if (!verifyInit()) {\n      return;\n    }\n    this.fbq(\"track\", title, data, eventData);\n    if (debug) {\n      log(`called fbq('track', '${title}',);`);\n      if (data) {\n        log(\"with data\", data);\n      }\n      if (eventData) {\n        log(\"and eventData\", eventData);\n      }\n    }\n  }\n};\nvar react_facebook_pixel_default = facebookPixel;\n\n// src/tracking/facebook/facebook.ts\nimport {\n  hashAndTrimStringIfRequested\n} from \"../shared/helpers.js\";\nvar deliveryCategory = \"home_delivery\";\nvar getFacebookCatalogEntryForAllItems = () => {\n  return {\n    contentIds: facebookCatalogAllLiveIds,\n    contentType: \"product\",\n    contentName: facebookGroupTitle,\n    contentCategory: void 0\n  };\n};\nvar getFacebookCatalogEntryForItem = (item) => {\n  if (item.isAddOn) {\n    if (item.design && item.design.productType === ProductTypes.GIFT_KIT) {\n      return {\n        contentId: \"TNS_GIFT_KIT\",\n        contentType: \"product\",\n        contentName: \"Gift Kit\",\n        contentGroupId: \"TNS_GIFT_KIT\"\n      };\n    }\n    return {\n      contentId: \"ADD_ON\",\n      contentType: \"product\",\n      contentName: \"Add On\",\n      contentGroupId: \"ADD_ON\"\n    };\n  }\n  if (productUtils.isJewelry(item)) {\n    const catalogId = getSkuForJewelryItem(item);\n    if (catalogId) {\n      return {\n        contentId: catalogId,\n        contentType: \"product\",\n        contentName: facebookGroupTitle,\n        contentCategory: facebookContentCategoryForPrint,\n        contentGroupId: \"\"\n      };\n    }\n    const randCatalogId2 = facebookCatalogLiveJewelryIds[Math.floor(Math.random() * facebookCatalogLiveJewelryIds.length)];\n    return {\n      contentId: randCatalogId2 || \"\",\n      contentType: \"product\",\n      contentName: facebookGroupTitle,\n      contentCategory: facebookContentCategoryForJewelry,\n      contentGroupId: \"\"\n    };\n  }\n  const catalog = facebookCatalogPrints.filter((c) => item.productFormat === \"canvas\" && c.type === \"canvas\" || (item.productFormat || \"\").indexOf(\"foil\") >= 0 && c.type === \"foil\" || (item.productFormat || \"\").indexOf(\"gitd\") >= 0 && c.type === \"gitd\" || item.productFormat !== \"canvas\" && (item.productFormat || \"\").indexOf(\"foil\") < 0 && (item.productFormat || \"\").indexOf(\"gitd\") < 0 && c.type === \"classic\");\n  if (catalog && catalog.length > 0 && catalog[0]) {\n    return {\n      contentId: catalog[0].id,\n      contentType: \"product\",\n      contentName: facebookGroupTitle,\n      contentCategory: facebookContentCategoryForPrint,\n      contentGroupId: \"\"\n    };\n  }\n  const randCatalogId = facebookCatalogLivePrintIds[Math.floor(Math.random() * facebookCatalogLivePrintIds.length)];\n  return {\n    contentId: randCatalogId || \"\",\n    contentType: \"product\",\n    contentName: facebookGroupTitle,\n    contentCategory: facebookContentCategoryForPrint,\n    contentGroupId: \"\"\n  };\n};\nvar getFBCustomData = (items, currencyParam, valueInUnits) => {\n  let currency = `${currencyParam || \"\"}`.trim().toUpperCase() || \"USD\";\n  const { contentType, contentName, contentCategory } = getFacebookCatalogEntryForAllItems();\n  const catalogItems = items.map((item) => {\n    const fbCatalogEntry = getFacebookCatalogEntryForItem(item);\n    const {\n      contentId,\n      contentName: itemContentName,\n      contentCategory: itemContentCategory,\n      contentGroupId: itemContentGroupId\n    } = fbCatalogEntry;\n    return __spreadValues({\n      id: contentId,\n      name: itemContentName,\n      category: itemContentCategory,\n      quantity: item.copies\n    }, itemContentGroupId && itemContentGroupId !== \"\" ? { group_id: itemContentGroupId } : null);\n  });\n  return {\n    content_ids: catalogItems.map((x) => x.id),\n    content_type: contentType,\n    content_name: catalogItems.length === 1 && catalogItems[0] ? catalogItems[0].name : contentName,\n    content_category: catalogItems.length === 1 && catalogItems[0] ? catalogItems[0].category : contentCategory,\n    num_items: catalogItems.length,\n    currency,\n    value: valueInUnits,\n    delivery_category: deliveryCategory\n  };\n};\nvar buildFBAdvancedMatchingData = (userData, hashed, facebookClickId, facebookPixelId) => __async(void 0, null, function* () {\n  const advancedMatchingData = {};\n  if (facebookClickId && facebookClickId !== \"\") {\n    advancedMatchingData.fbc = facebookClickId;\n  }\n  if (facebookPixelId && facebookPixelId !== \"\") {\n    advancedMatchingData.fbp = facebookPixelId;\n  }\n  if (userData && userData.externalId && userData.externalId !== void 0 && userData.externalId !== null && userData.externalId !== \"\" && `${userData.externalId}` !== \"undefined\" && `${userData.externalId}` !== \"null\" && `${userData.externalId}`.length > 6) {\n    advancedMatchingData.external_id = yield hashAndTrimStringIfRequested(hashed, userData.externalId);\n  } else {\n  }\n  advancedMatchingData.em = yield hashAndTrimStringIfRequested(hashed, userData.email);\n  advancedMatchingData.ph = yield hashAndTrimStringIfRequested(hashed, userData.phone);\n  advancedMatchingData.fn = yield hashAndTrimStringIfRequested(hashed, (userData.firstName || \"\").toLowerCase());\n  advancedMatchingData.ln = yield hashAndTrimStringIfRequested(hashed, (userData.lastName || \"\").toLowerCase());\n  advancedMatchingData.ct = yield hashAndTrimStringIfRequested(hashed, (userData.city || \"\").toLowerCase().replace(/ /g, \"\"));\n  advancedMatchingData.st = yield hashAndTrimStringIfRequested(hashed, (userData.stateCode || \"\").toLowerCase());\n  advancedMatchingData.zp = yield hashAndTrimStringIfRequested(hashed, userData.zipCode);\n  advancedMatchingData.country = yield hashAndTrimStringIfRequested(hashed, (userData.countryCode || \"\").toLowerCase());\n  return advancedMatchingData;\n});\nvar initFBPixel = (advMatchingData) => __async(void 0, null, function* () {\n  const pixelOptions = {\n    autoConfig: true,\n    debug: false\n  };\n  react_facebook_pixel_default.init(envConfig.FBP_TRACKING_ID, advMatchingData, pixelOptions);\n});\nvar sendFbTrackingEvent = (eventId, eventTimestamp, eventName, customData, advMatchingData) => __async(void 0, null, function* () {\n  yield initFBPixel(advMatchingData);\n  react_facebook_pixel_default.track(eventName, customData, {\n    eventID: eventId,\n    eventName,\n    eventTimestamp\n  });\n});\nexport {\n  buildFBAdvancedMatchingData,\n  getFBCustomData,\n  getFacebookCatalogEntryForAllItems,\n  sendFbTrackingEvent\n};\n", "// src/utils/cookie.ts\nfunction getCookie(name) {\n  try {\n    var nameEQ = name + \"=\";\n    var ca = document.cookie.split(\";\");\n    for (var i = 0; i < ca.length; i++) {\n      var c = ca[i];\n      if (c !== void 0) {\n        while (c.charAt(0) == \" \")\n          c = c.substring(1, c.length);\n        if (c.indexOf(nameEQ) == 0)\n          return c.substring(nameEQ.length, c.length);\n      }\n    }\n  } catch (e) {\n  }\n  return null;\n}\nvar cookie_default = {\n  getCookie\n};\nexport {\n  cookie_default as default\n};\n", "// src/utils/nanoid.ts\nvar customAlphabet = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\nvar idLength = 16;\nvar nanoid = () => {\n  let id = \"\";\n  let i = idLength;\n  while (i--) {\n    id += customAlphabet[Math.random() * customAlphabet.length | 0];\n  }\n  return id;\n};\nexport {\n  nanoid\n};\n", "// src/resources/brands.ts\nvar Brands;\n(function(Brands2) {\n  Brands2[\"TNS\"] = \"TNS\";\n  Brands2[\"TPA\"] = \"TPA\";\n})(Brands || (Brands = {}));\nexport {\n  Brands\n};\n", "// src/resources/foilColors.ts\nvar FoilColors;\n(function(FoilColors2) {\n  FoilColors2[\"SILVER\"] = \"silver\";\n  FoilColors2[\"GOLD\"] = \"gold\";\n})(FoilColors || (FoilColors = {}));\nexport {\n  FoilColors\n};\n", "var __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\n\n// src/resources/starmap/colors.ts\nvar GITD_DISPLAY_COLOR = \"#c7f1f0\";\nvar display = {\n  white: `#ffffff`,\n  black: `#111111`,\n  darkGray: `#333333`,\n  grayBlue: `#3B4655`,\n  midnightBlue: `#1A1D28`,\n  aquamarine: `#234955`,\n  vintageblue: `#3B4655`,\n  jade: `#234955`,\n  softgrey: `#898989`,\n  mauve: `#A696AE`,\n  burntorange: `#B34C1F`,\n  babyblue: `#99CFE0`\n};\nvar print = {\n  white: `#ffffff`,\n  black: `#0b0b0b`,\n  darkGray: `#BBBEC1`,\n  grayBlue: `#4a5768`,\n  midnightBlue: `#011740`,\n  aquamarine: `#006674`,\n  vintageblue: `#3B4655`,\n  jade: `#234955`,\n  softgrey: `#898989`,\n  mauve: `#A696AE`,\n  burntorange: `#B34C1F`,\n  babyblue: `#99CFE0`\n};\nvar gbPrint = {\n  white: `#ffffff`,\n  black: `#0b0b0b`,\n  darkGray: `#BBBEC1`,\n  grayBlue: `#4a5768`,\n  midnightBlue: `#1A1D28`,\n  aquamarine: `#006674`,\n  vintageblue: `#3B4655`,\n  jade: `#234955`,\n  softgrey: `#898989`,\n  mauve: `#A696AE`,\n  burntorange: `#B34C1F`,\n  babyblue: `#99CFE0`\n};\nvar usPrint = {\n  white: `#ffffff`,\n  black: `#0b0b0b`,\n  darkGray: `#BBBEC1`,\n  grayBlue: `#424E61`,\n  midnightBlue: `#16192E`,\n  aquamarine: `#006172`,\n  vintageblue: `#3B4655`,\n  jade: `#234955`,\n  softgrey: `#898989`,\n  mauve: `#A696AE`,\n  burntorange: `#B34C1F`,\n  babyblue: `#99CFE0`\n};\nvar foil = {\n  black: `#111111`,\n  grayBlue: `#3B4655`,\n  midnightBlue: `#1E253E`,\n  aquamarine: `#234955`,\n  white: `#ffffff`\n};\nvar digital = {\n  white: `#ffffff`,\n  black: `#111111`,\n  darkGray: `#333333`,\n  grayBlue: `#3B4655`,\n  midnightBlue: `#1A1D28`,\n  aquamarine: `#234955`,\n  vintageblue: `#3B4655`,\n  jade: `#234955`,\n  softgrey: `#898989`,\n  mauve: `#A696AE`,\n  burntorange: `#B34C1F`,\n  babyblue: `#99CFE0`\n};\nvar canvas = {\n  white: `#ffffff`,\n  black: `#050505`,\n  darkGray: `#333333`,\n  grayBlue: `#434f5f`,\n  midnightBlue: `#011130`,\n  aquamarine: `#234955`,\n  vintageblue: `#3B4655`,\n  jade: `#234955`,\n  softgrey: `#898989`,\n  mauve: `#A696AE`,\n  burntorange: `#B34C1F`,\n  babyblue: `#99CFE0`\n};\nvar gbCanvas = __spreadProps(__spreadValues({}, canvas), {\n  midnightBlue: `#1A1D28`\n});\nexport {\n  GITD_DISPLAY_COLOR,\n  canvas,\n  digital,\n  display,\n  foil,\n  gbCanvas,\n  gbPrint,\n  print,\n  usPrint\n};\n", "// src/resources/starmap/themes.ts\nimport { FoilColors } from \"../foilColors.js\";\nimport {\n  print,\n  usPrint,\n  gbPrint,\n  display,\n  digital,\n  canvas,\n  gbCanvas,\n  foil,\n  GITD_DISPLAY_COLOR\n} from \"./colors.js\";\nvar parentFoilColors = [\n  {\n    foilColor: FoilColors.GOLD,\n    label: \"Gold\",\n    displayBackgroundUrl: \"/images/foil-bg-gold.jpg\"\n  },\n  {\n    foilColor: FoilColors.SILVER,\n    label: \"Silver\",\n    displayBackgroundUrl: \"/images/foil-bg-silver.jpg\"\n  }\n];\nvar parentThemes = [\n  {\n    id: \"black\",\n    label: \"Black\",\n    display: {\n      darkColor: display.black,\n      lightColor: display.white\n    },\n    print: {\n      darkColor: print.black,\n      lightColor: print.white\n    },\n    print_us: {\n      darkColor: usPrint.black,\n      lightColor: usPrint.white\n    },\n    print_gb: {\n      darkColor: gbPrint.black,\n      lightColor: gbPrint.white\n    },\n    digital: {\n      darkColor: digital.black,\n      lightColor: digital.white\n    },\n    canvas: {\n      darkColor: canvas.black,\n      lightColor: canvas.white\n    },\n    canvas_gb: {\n      darkColor: gbCanvas.black,\n      lightColor: gbCanvas.white\n    },\n    foil: {\n      darkColor: foil.black,\n      lightColor: foil.white\n    }\n  },\n  {\n    id: \"midnightblue\",\n    label: \"Midnight Blue\",\n    display: {\n      darkColor: display.midnightBlue,\n      lightColor: display.white\n    },\n    print: {\n      darkColor: print.midnightBlue,\n      lightColor: print.white\n    },\n    print_us: {\n      darkColor: usPrint.midnightBlue,\n      lightColor: usPrint.white\n    },\n    print_gb: {\n      darkColor: gbPrint.midnightBlue,\n      lightColor: gbPrint.white\n    },\n    digital: {\n      darkColor: digital.midnightBlue,\n      lightColor: digital.white\n    },\n    canvas: {\n      darkColor: canvas.midnightBlue,\n      lightColor: canvas.white\n    },\n    canvas_gb: {\n      darkColor: gbCanvas.midnightBlue,\n      lightColor: gbCanvas.white\n    },\n    foil: {\n      darkColor: foil.midnightBlue,\n      lightColor: foil.white\n    }\n  },\n  {\n    id: \"grayblue\",\n    label: \"Gray Blue\",\n    display: {\n      darkColor: display.grayBlue,\n      lightColor: display.white\n    },\n    print: {\n      darkColor: print.grayBlue,\n      lightColor: print.white\n    },\n    print_us: {\n      darkColor: usPrint.grayBlue,\n      lightColor: usPrint.white\n    },\n    print_gb: {\n      darkColor: gbPrint.grayBlue,\n      lightColor: gbPrint.white\n    },\n    digital: {\n      darkColor: digital.grayBlue,\n      lightColor: digital.white\n    },\n    canvas: {\n      darkColor: canvas.grayBlue,\n      lightColor: canvas.white\n    },\n    canvas_gb: {\n      darkColor: gbCanvas.grayBlue,\n      lightColor: gbCanvas.white\n    },\n    foil: {\n      darkColor: foil.grayBlue,\n      lightColor: foil.white\n    }\n  },\n  {\n    id: \"aquamarine\",\n    label: \"Aquamarine\",\n    display: {\n      darkColor: display.aquamarine,\n      lightColor: display.white\n    },\n    print: {\n      darkColor: print.aquamarine,\n      lightColor: print.white\n    },\n    print_us: {\n      darkColor: usPrint.aquamarine,\n      lightColor: usPrint.white\n    },\n    print_gb: {\n      darkColor: gbPrint.aquamarine,\n      lightColor: gbPrint.white\n    },\n    digital: {\n      darkColor: digital.aquamarine,\n      lightColor: digital.white\n    },\n    canvas: {\n      darkColor: canvas.aquamarine,\n      lightColor: canvas.white\n    },\n    canvas_gb: {\n      darkColor: gbCanvas.aquamarine,\n      lightColor: gbCanvas.white\n    },\n    foil: {\n      darkColor: foil.aquamarine,\n      lightColor: foil.white\n    }\n  }\n];\nvar starmapThemes = {};\nvar getStandardColorPalette = (isBackgroundFilled, isMapFilled, darkColor, lightColor) => {\n  if (isBackgroundFilled && isMapFilled) {\n    return {\n      backgroundUrl: \"\",\n      bgColor: darkColor,\n      mapMarginColor: lightColor,\n      textColor: lightColor,\n      marginColor: lightColor,\n      mapColor: darkColor,\n      starColor: lightColor,\n      labelsColor: lightColor\n    };\n  } else if (isBackgroundFilled && !isMapFilled) {\n    return {\n      backgroundUrl: \"\",\n      bgColor: darkColor,\n      mapMarginColor: darkColor,\n      textColor: lightColor,\n      marginColor: lightColor,\n      mapColor: lightColor,\n      starColor: darkColor,\n      labelsColor: darkColor\n    };\n  } else if (!isBackgroundFilled && isMapFilled) {\n    return {\n      backgroundUrl: \"\",\n      bgColor: lightColor,\n      mapMarginColor: lightColor,\n      textColor: darkColor,\n      marginColor: darkColor,\n      mapColor: darkColor,\n      starColor: lightColor,\n      labelsColor: lightColor\n    };\n  } else {\n    return {\n      backgroundUrl: \"\",\n      bgColor: lightColor,\n      mapMarginColor: darkColor,\n      textColor: darkColor,\n      marginColor: darkColor,\n      mapColor: lightColor,\n      starColor: darkColor,\n      labelsColor: darkColor\n    };\n  }\n};\nvar getGitdColorPalette = (isBackgroundFilled, isMapFilled, darkColor, lightColor) => {\n  if (isBackgroundFilled && isMapFilled) {\n    return {\n      backgroundUrl: \"\",\n      bgColor: darkColor,\n      mapMarginColor: lightColor,\n      textColor: lightColor,\n      marginColor: lightColor,\n      mapColor: darkColor,\n      starColor: lightColor,\n      labelsColor: lightColor\n    };\n  } else if (isBackgroundFilled && !isMapFilled) {\n    return {\n      backgroundUrl: \"\",\n      bgColor: darkColor,\n      mapMarginColor: darkColor,\n      textColor: lightColor,\n      marginColor: lightColor,\n      mapColor: lightColor,\n      starColor: darkColor,\n      labelsColor: darkColor\n    };\n  } else if (!isBackgroundFilled && isMapFilled) {\n    return {\n      backgroundUrl: \"\",\n      bgColor: lightColor,\n      mapMarginColor: lightColor,\n      textColor: darkColor,\n      marginColor: darkColor,\n      mapColor: darkColor,\n      starColor: lightColor,\n      labelsColor: lightColor\n    };\n  } else {\n    return {\n      backgroundUrl: \"\",\n      bgColor: lightColor,\n      mapMarginColor: darkColor,\n      textColor: darkColor,\n      marginColor: darkColor,\n      mapColor: lightColor,\n      starColor: darkColor,\n      labelsColor: darkColor\n    };\n  }\n};\nvar getFoilColorPalette = (isBackgroundFilled, isMapFilled, backgroundUrl, darkColor) => {\n  if (isBackgroundFilled && isMapFilled) {\n    return {\n      backgroundUrl,\n      bgColor: darkColor,\n      mapMarginColor: \"clip\",\n      textColor: \"clip\",\n      marginColor: \"clip\",\n      mapColor: darkColor,\n      starColor: \"clip\",\n      labelsColor: \"clip\"\n    };\n  } else if (isBackgroundFilled && !isMapFilled) {\n    return {\n      backgroundUrl,\n      bgColor: darkColor,\n      mapMarginColor: darkColor,\n      textColor: \"clip\",\n      marginColor: \"clip\",\n      mapColor: \"clip\",\n      starColor: darkColor,\n      labelsColor: darkColor\n    };\n  } else if (!isBackgroundFilled && isMapFilled) {\n    return {\n      backgroundUrl,\n      bgColor: \"clip\",\n      mapMarginColor: \"clip\",\n      textColor: darkColor,\n      marginColor: darkColor,\n      mapColor: darkColor,\n      starColor: \"clip\",\n      labelsColor: \"clip\"\n    };\n  } else {\n    return {\n      backgroundUrl,\n      bgColor: \"clip\",\n      mapMarginColor: darkColor,\n      textColor: darkColor,\n      marginColor: darkColor,\n      mapColor: \"clip\",\n      starColor: darkColor,\n      labelsColor: darkColor\n    };\n  }\n};\nvar getTransparentColorPalette = (darkColor) => {\n  return {\n    backgroundUrl: \"\",\n    bgColor: \"clip\",\n    mapMarginColor: darkColor,\n    textColor: darkColor,\n    marginColor: darkColor,\n    mapColor: \"clip\",\n    starColor: darkColor,\n    labelsColor: darkColor\n  };\n};\nObject.values(parentThemes).forEach((parentTheme) => {\n  let isBackgroundFilled = true;\n  let isMapFilled = true;\n  starmapThemes[`${parentTheme.id}_bgcolor_diskcolor`] = {\n    themeId: `${parentTheme.id}_bgcolor_diskcolor`,\n    label: `${parentTheme.label} / Color / Color`,\n    isBackgroundFilled,\n    isMapFilled,\n    display: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.display.darkColor, parentTheme.display.lightColor),\n    print: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print.darkColor, parentTheme.print.lightColor),\n    print_us: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print_us.darkColor, parentTheme.print_us.lightColor),\n    print_gb: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print_gb.darkColor, parentTheme.print_gb.lightColor),\n    digital: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.digital.darkColor, parentTheme.digital.lightColor),\n    canvas: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.canvas.darkColor, parentTheme.canvas.lightColor),\n    canvas_gb: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.canvas_gb.darkColor, parentTheme.canvas_gb.lightColor)\n  };\n  isBackgroundFilled = true;\n  isMapFilled = false;\n  starmapThemes[`${parentTheme.id}_bgcolor_diskblank`] = {\n    themeId: `${parentTheme.id}_bgcolor_diskblank`,\n    label: `${parentTheme.label} / Color / Blank`,\n    isBackgroundFilled,\n    isMapFilled,\n    display: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.display.darkColor, parentTheme.display.lightColor),\n    print: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print.darkColor, parentTheme.print.lightColor),\n    print_us: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print_us.darkColor, parentTheme.print_us.lightColor),\n    print_gb: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print_gb.darkColor, parentTheme.print_gb.lightColor),\n    digital: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.digital.darkColor, parentTheme.digital.lightColor),\n    canvas: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.canvas.darkColor, parentTheme.canvas.lightColor),\n    canvas_gb: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.canvas_gb.darkColor, parentTheme.canvas_gb.lightColor)\n  };\n  isBackgroundFilled = false;\n  isMapFilled = true;\n  starmapThemes[`${parentTheme.id}_bgblank_diskcolor`] = {\n    themeId: `${parentTheme.id}_bgblank_diskcolor`,\n    label: `${parentTheme.label} / Blank / Color`,\n    isBackgroundFilled,\n    isMapFilled,\n    display: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.display.darkColor, parentTheme.display.lightColor),\n    print: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print.darkColor, parentTheme.print.lightColor),\n    print_us: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print_us.darkColor, parentTheme.print_us.lightColor),\n    print_gb: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print_gb.darkColor, parentTheme.print_gb.lightColor),\n    digital: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.digital.darkColor, parentTheme.digital.lightColor),\n    canvas: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.canvas.darkColor, parentTheme.canvas.lightColor),\n    canvas_gb: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.canvas_gb.darkColor, parentTheme.canvas_gb.lightColor)\n  };\n  isBackgroundFilled = false;\n  isMapFilled = false;\n  starmapThemes[`${parentTheme.id}_bgblank_diskblank`] = {\n    themeId: `${parentTheme.id}_bgblank_diskblank`,\n    label: `${parentTheme.label} / Blank / Blank`,\n    isBackgroundFilled,\n    isMapFilled,\n    display: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.display.darkColor, parentTheme.display.lightColor),\n    print: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print.darkColor, parentTheme.print.lightColor),\n    print_us: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print_us.darkColor, parentTheme.print_us.lightColor),\n    print_gb: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.print_gb.darkColor, parentTheme.print_gb.lightColor),\n    digital: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.digital.darkColor, parentTheme.digital.lightColor),\n    canvas: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.canvas.darkColor, parentTheme.canvas.lightColor),\n    canvas_gb: getStandardColorPalette(isBackgroundFilled, isMapFilled, parentTheme.canvas_gb.darkColor, parentTheme.canvas_gb.lightColor)\n  };\n  isBackgroundFilled = true;\n  isMapFilled = true;\n  starmapThemes[`${parentTheme.id}_bgcolor_diskcolor_gitd`] = {\n    themeId: `${parentTheme.id}_bgcolor_diskcolor_gitd`,\n    label: `${parentTheme.label} / Color / Color / Glow in the Dark`,\n    isBackgroundFilled,\n    isMapFilled,\n    display: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.display.darkColor, GITD_DISPLAY_COLOR),\n    print: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\"),\n    print_us: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\"),\n    print_gb: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\")\n  };\n  isBackgroundFilled = true;\n  isMapFilled = false;\n  starmapThemes[`${parentTheme.id}_bgcolor_diskblank_gitd`] = {\n    themeId: `${parentTheme.id}_bgcolor_diskblank_gitd`,\n    label: `${parentTheme.label} / Color / Blank / Glow in the Dark`,\n    isBackgroundFilled,\n    isMapFilled,\n    display: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.display.darkColor, GITD_DISPLAY_COLOR),\n    print: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\"),\n    print_us: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\"),\n    print_gb: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\")\n  };\n  isBackgroundFilled = false;\n  isMapFilled = true;\n  starmapThemes[`${parentTheme.id}_bgblank_diskcolor_gitd`] = {\n    themeId: `${parentTheme.id}_bgblank_diskcolor_gitd`,\n    label: `${parentTheme.label} / Blank / Color / Glow in the Dark`,\n    isBackgroundFilled,\n    isMapFilled,\n    display: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.display.darkColor, GITD_DISPLAY_COLOR),\n    print: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\"),\n    print_us: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\"),\n    print_gb: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\")\n  };\n  isBackgroundFilled = false;\n  isMapFilled = false;\n  starmapThemes[`${parentTheme.id}_bgblank_diskblank_gitd`] = {\n    themeId: `${parentTheme.id}_bgblank_diskblank_gitd`,\n    label: `${parentTheme.label} / Blank / Blank / Glow in the Dark`,\n    isBackgroundFilled,\n    isMapFilled,\n    display: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.display.darkColor, GITD_DISPLAY_COLOR),\n    print: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\"),\n    print_us: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\"),\n    print_gb: getGitdColorPalette(isBackgroundFilled, isMapFilled, parentTheme.foil.darkColor, \"clip\")\n  };\n  Object.values(parentFoilColors).forEach((parentFoilColor) => {\n    isBackgroundFilled = true;\n    isMapFilled = true;\n    starmapThemes[`${parentTheme.id}_bgcolor_diskcolor_foil_${parentFoilColor.foilColor.toString().toLowerCase()}`] = {\n      themeId: `${parentTheme.id}_bgcolor_diskcolor_foil_${parentFoilColor.foilColor.toString().toLowerCase()}`,\n      label: `${parentTheme.label} / Color / Color / ${parentFoilColor.label} Foil`,\n      isBackgroundFilled,\n      isMapFilled,\n      display: getFoilColorPalette(isBackgroundFilled, isMapFilled, parentFoilColor.displayBackgroundUrl, parentTheme.display.darkColor),\n      print: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor),\n      print_us: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor),\n      print_gb: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor)\n    };\n    isBackgroundFilled = true;\n    isMapFilled = false;\n    starmapThemes[`${parentTheme.id}_bgcolor_diskblank_foil_${parentFoilColor.foilColor.toString().toLowerCase()}`] = {\n      themeId: `${parentTheme.id}_bgcolor_diskblank_foil_${parentFoilColor.foilColor.toString().toLowerCase()}`,\n      label: `${parentTheme.label} / Color / Blank / ${parentFoilColor.label} Foil`,\n      isBackgroundFilled,\n      isMapFilled,\n      display: getFoilColorPalette(isBackgroundFilled, isMapFilled, parentFoilColor.displayBackgroundUrl, parentTheme.display.darkColor),\n      print: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor),\n      print_us: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor),\n      print_gb: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor)\n    };\n    isBackgroundFilled = false;\n    isMapFilled = true;\n    starmapThemes[`${parentTheme.id}_bgblank_diskcolor_foil_${parentFoilColor.foilColor.toString().toLowerCase()}`] = {\n      themeId: `${parentTheme.id}_bgblank_diskcolor_foil_${parentFoilColor.foilColor.toString().toLowerCase()}`,\n      label: `${parentTheme.label} / Blank / Color / ${parentFoilColor.label} Foil`,\n      isBackgroundFilled,\n      isMapFilled,\n      display: getFoilColorPalette(isBackgroundFilled, isMapFilled, parentFoilColor.displayBackgroundUrl, parentTheme.display.darkColor),\n      print: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor),\n      print_us: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor),\n      print_gb: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor)\n    };\n    isBackgroundFilled = false;\n    isMapFilled = false;\n    starmapThemes[`${parentTheme.id}_bgblank_diskblank_foil_${parentFoilColor.foilColor.toString().toLowerCase()}`] = {\n      themeId: `${parentTheme.id}_bgblank_diskblank_foil_${parentFoilColor.foilColor.toString().toLowerCase()}`,\n      label: `${parentTheme.label} / Blank / Blank / ${parentFoilColor.label} Foil`,\n      isBackgroundFilled,\n      isMapFilled,\n      display: getFoilColorPalette(isBackgroundFilled, isMapFilled, parentFoilColor.displayBackgroundUrl, parentTheme.display.darkColor),\n      print: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor),\n      print_us: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor),\n      print_gb: getFoilColorPalette(isBackgroundFilled, isMapFilled, \"\", parentTheme.foil.darkColor)\n    };\n    isBackgroundFilled = false;\n    isMapFilled = false;\n    starmapThemes[`${parentTheme.id}_transparent`] = {\n      themeId: `${parentTheme.id}_transparent`,\n      label: `${parentTheme.label} / Transparent`,\n      isBackgroundFilled,\n      isMapFilled,\n      display: getTransparentColorPalette(parentTheme.display.darkColor),\n      print: getTransparentColorPalette(parentTheme.foil.darkColor),\n      print_us: getTransparentColorPalette(parentTheme.foil.darkColor),\n      print_gb: getTransparentColorPalette(parentTheme.foil.darkColor)\n    };\n  });\n});\nexport {\n  starmapThemes\n};\n", "var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\n\n// src/utils/themeUtils.ts\nimport { FoilColors } from \"../resources/foilColors.js\";\nimport { starmapThemes } from \"../resources/starmap/themes.js\";\nimport { productUtils } from \"./productUtils.js\";\nvar PosterColor_black = `#000000`;\nvar PosterColor_grayBlue = `#576274`;\nvar PosterColor_midnightBlue = `#2B3045`;\nvar PosterColor_aquamarine = `#538174`;\nvar getThemeIdForThemesArray = (themeId) => {\n  try {\n    let themeIdForThemesArray = themeId;\n    if (!themeIdForThemesArray || themeIdForThemesArray === ``) {\n      themeIdForThemesArray = `midnightblue_bgcolor_diskcolor`;\n    } else if (themeIdForThemesArray.toLowerCase() === `midnightblue`) {\n      themeIdForThemesArray = `midnightblue_bgcolor_diskcolor`;\n    } else if (themeIdForThemesArray.toLowerCase() === `midnightblue_white` || themeIdForThemesArray.toLowerCase() === `midnightbluewhite`) {\n      themeIdForThemesArray = `midnightblue_bgblank_diskcolor`;\n    } else if (themeIdForThemesArray.toLowerCase() === `black`) {\n      themeIdForThemesArray = `black_bgcolor_diskcolor`;\n    } else if (themeIdForThemesArray.toLowerCase() === `black_white` || themeIdForThemesArray.toLowerCase() === `blackwhite`) {\n      themeIdForThemesArray = `black_bgblank_diskcolor`;\n    } else if (themeIdForThemesArray.toLowerCase() === `aquamarine`) {\n      themeIdForThemesArray = `aquamarine_bgcolor_diskcolor`;\n    } else if (themeIdForThemesArray.toLowerCase() === `aquamarine_white` || themeIdForThemesArray.toLowerCase() === `aquamarinewhite`) {\n      themeIdForThemesArray = `aquamarine_bgblank_diskcolor`;\n    } else if (themeIdForThemesArray.toLowerCase() === `grayblue`) {\n      themeIdForThemesArray = `grayblue_bgcolor_diskcolor`;\n    } else if (themeIdForThemesArray.toLowerCase() === `grayblue_white` || themeIdForThemesArray.toLowerCase() === `graybluewhite`) {\n      themeIdForThemesArray = `grayblue_bgblank_diskcolor`;\n    } else if (themeId !== void 0 && themeId !== null && themeId !== ``) {\n      if (themeIdForThemesArray.toLowerCase().indexOf(`_foil`) > -1) {\n        themeIdForThemesArray = themeIdForThemesArray.substring(0, themeIdForThemesArray.toLowerCase().indexOf(`_foil`));\n      } else if (themeIdForThemesArray.toLowerCase().indexOf(`_gitd`) > -1) {\n        themeIdForThemesArray = themeIdForThemesArray.substring(0, themeIdForThemesArray.toLowerCase().indexOf(`_gitd`));\n      }\n      return themeIdForThemesArray;\n    }\n    return themeIdForThemesArray;\n  } catch (error) {\n    console.error(`getThemeIdForThemesArray: ${error}`);\n  }\n  return `midnightblue_bgcolor_diskcolor`;\n};\nvar getBaseThemeId = (themeIdParam) => {\n  if (!themeIdParam || themeIdParam === \"\") {\n    return \"\";\n  }\n  let themeId = themeIdParam;\n  const themeParts = themeId.split(\"_\");\n  if (themeParts.length >= 1 && themeParts[0] && themeParts[0] !== \"\") {\n    themeId = themeParts[0];\n  }\n  if (themeId.toLowerCase().substring(themeId.length - 5, themeId.length) === \"white\") {\n    themeId = themeId.substring(0, themeId.length - 5);\n  }\n  return themeId;\n};\nvar getThemeOnWhite = (themeIdParam) => {\n  try {\n    if (!themeIdParam || themeIdParam === \"\") {\n      return false;\n    }\n    const themeId = getThemeIdForThemesArray(themeIdParam);\n    if (starmapThemes && starmapThemes[themeId] && starmapThemes[themeId] !== void 0 && starmapThemes[themeId].isBackgroundFilled === false) {\n      return true;\n    }\n  } catch (error) {\n    console.error(`getThemeOnWhite(${themeIdParam}) failed: ${error}`);\n    return false;\n  }\n  return true;\n};\nvar getThemeIdForDesign = (themeIdParam, isBackgroundFilled, isMapFilled) => {\n  try {\n    if (!themeIdParam || themeIdParam === \"\") {\n      return themeIdParam;\n    }\n    const baseThemeId = getBaseThemeId(themeIdParam);\n    if (starmapThemes) {\n      const themes = Object.values(starmapThemes).filter((x) => baseThemeId === getBaseThemeId(x.themeId) && isBackgroundFilled === x.isBackgroundFilled && isMapFilled === x.isMapFilled);\n      if (themes && themes.length > 0) {\n        const theme = themes[0];\n        if (theme && theme.themeId) {\n          return theme.themeId;\n        }\n      }\n    }\n  } catch (error) {\n    console.error(`getThemeOnWhite(${themeIdParam}) failed: ${error}`);\n  }\n  return themeIdParam;\n};\nvar isThemeBackgroundFilled = (themeIdParam) => {\n  try {\n    if (!themeIdParam || themeIdParam === \"\") {\n      return false;\n    }\n    const themeId = getThemeIdForThemesArray(themeIdParam);\n    if (starmapThemes && starmapThemes[themeId] && starmapThemes[themeId] !== void 0 && starmapThemes[themeId].isBackgroundFilled === true) {\n      return true;\n    }\n  } catch (error) {\n    console.error(`getThemeOnWhite(${themeIdParam}) failed: ${error}`);\n  }\n  return false;\n};\nvar isThemeMapFilled = (themeIdParam) => {\n  try {\n    if (!themeIdParam || themeIdParam === \"\") {\n      return true;\n    }\n    const themeId = getThemeIdForThemesArray(themeIdParam);\n    if (starmapThemes && starmapThemes[themeId] && starmapThemes[themeId] !== void 0 && starmapThemes[themeId].isMapFilled === false) {\n      return false;\n    }\n  } catch (error) {\n    console.error(`getThemeOnWhite(${themeIdParam}) failed: ${error}`);\n  }\n  return true;\n};\nvar getBaseColorForThemeId = (themeId) => {\n  const baseTheme = getBaseThemeId(themeId);\n  switch (baseTheme) {\n    case \"midnightblue\":\n      return PosterColor_midnightBlue;\n    case \"grayblue\":\n      return PosterColor_grayBlue;\n    case \"aquamarine\":\n      return PosterColor_aquamarine;\n    case \"black\":\n    default:\n      return PosterColor_black;\n  }\n};\nvar getFrameColorName = (frameColor) => {\n  if (!frameColor) {\n    return \"\";\n  }\n  switch (frameColor.toLowerCase()) {\n    case \"natural\":\n      return \"Wood\";\n    case \"black\":\n      return \"Black\";\n    case \"white\":\n      return \"White\";\n    default:\n      return frameColor;\n  }\n};\nvar getThemeInAnotherColor = (themeIdParam, changeToThemeIdParam) => {\n  try {\n    if (!themeIdParam || themeIdParam === \"\") {\n      return null;\n    }\n    const themeId = getThemeIdForThemesArray(themeIdParam);\n    if (!changeToThemeIdParam || changeToThemeIdParam === \"\") {\n      return null;\n    }\n    const changeToBaseThemeId = getBaseThemeId(changeToThemeIdParam);\n    const backgroundFilled = isThemeBackgroundFilled(themeId);\n    const mapFilled = isThemeMapFilled(themeId);\n    const matchingThemes = Object.values(starmapThemes).filter((x) => getBaseThemeId(x.themeId) === changeToBaseThemeId && x.isBackgroundFilled === backgroundFilled && x.isMapFilled === mapFilled);\n    if (matchingThemes && matchingThemes.length > 0 && matchingThemes[0] && matchingThemes[0].themeId) {\n      return matchingThemes[0].themeId;\n    }\n    return themeIdParam;\n  } catch (error) {\n    console.error(`getThemeOnWhite(${themeIdParam}, ${changeToThemeIdParam}) failed: ${error}`);\n  }\n  return null;\n};\nvar getThemeForRenderType = (renderTypeParam, themeIdParam, productFormat, foilColor) => {\n  let themeIdKey = getThemeIdForThemesArray(themeIdParam);\n  if (productFormat && productUtils.productFormatIsFoil(productFormat)) {\n    themeIdKey = `${themeIdKey}_foil_${(foilColor || FoilColors.GOLD).toString().toLowerCase()}`;\n  } else if (productFormat && productUtils.productFormatIsGitd(productFormat)) {\n    themeIdKey = `${themeIdKey}_gitd`;\n  }\n  const theme = starmapThemes[themeIdKey];\n  switch (renderTypeParam) {\n    case \"preview\": {\n      theme.colors = __spreadValues({}, theme.display);\n      break;\n    }\n    case \"print\": {\n      theme.colors = __spreadValues({}, theme.print);\n      break;\n    }\n    case \"print_us\": {\n      theme.colors = __spreadValues({}, theme.print);\n      break;\n    }\n    case \"print_gb\": {\n      theme.colors = __spreadValues({}, theme.print_gb);\n      break;\n    }\n    case \"project_circle\": {\n      theme.colors = __spreadValues({}, theme.display);\n      break;\n    }\n    case \"digital\": {\n      theme.colors = __spreadValues({}, theme.digital);\n      break;\n    }\n    case \"thumbnail\": {\n      theme.colors = __spreadValues({}, theme.display);\n      break;\n    }\n    case \"canvas\": {\n      theme.colors = __spreadValues({}, theme.canvas);\n      break;\n    }\n    case \"canvas_gb\": {\n      theme.colors = __spreadValues({}, theme.canvas_gb);\n      break;\n    }\n    case \"previewNoWatermark\": {\n      theme.colors = __spreadValues({}, theme.display);\n      break;\n    }\n    case \"review\": {\n      theme.colors = __spreadValues({}, theme.display);\n      break;\n    }\n    default: {\n      theme.colors = __spreadValues({}, theme.display);\n      break;\n    }\n  }\n  return theme;\n};\nvar prettyPrintThemeId = (themeId, isGitd, isFoil, foilColor) => {\n  try {\n    let themeName = themeId;\n    let bgWhiteColor = \"White\";\n    if (isGitd) {\n      bgWhiteColor = \"GitD\";\n    } else if (isFoil) {\n      bgWhiteColor = \"Foil\";\n      if (foilColor && foilColor === FoilColors.SILVER) {\n        bgWhiteColor = \"Silver\";\n      } else if (foilColor && foilColor === FoilColors.GOLD) {\n        bgWhiteColor = \"Gold\";\n      }\n    }\n    switch (themeUtils.getBaseThemeId(themeId)) {\n      case \"midnightblue\": {\n        themeName = \"Midnight Blue\";\n        break;\n      }\n      case \"midnightblueWhite\": {\n        themeName = `Midnight Blue/${bgWhiteColor}`;\n        break;\n      }\n      case \"grayblue\": {\n        themeName = `Gray Blue`;\n        break;\n      }\n      case \"grayblueWhite\": {\n        themeName = `Gray Blue/${bgWhiteColor}`;\n        break;\n      }\n      case \"black\": {\n        themeName = `Black`;\n        break;\n      }\n      case \"vintageblue\": {\n        themeName = `Vintage Blue`;\n        break;\n      }\n      case \"jade\": {\n        themeName = `Jade`;\n        break;\n      }\n      case \"softgrey\": {\n        themeName = `Soft Grey`;\n        break;\n      }\n      case \"mauve\": {\n        themeName = `Mauve`;\n        break;\n      }\n      case \"burntorange\": {\n        themeName = `Burnt Orange`;\n        break;\n      }\n      case \"babyblue\": {\n        themeName = `Baby Blue`;\n        break;\n      }\n      case \"blackWhite\": {\n        themeName = `Black/${bgWhiteColor}`;\n        break;\n      }\n      case \"aquamarine\": {\n        themeName = `Aquamarine`;\n        break;\n      }\n      case \"aquamarineWhite\": {\n        themeName = `Aquamarine/${bgWhiteColor}`;\n        break;\n      }\n      case \"vintageBlueWhite\": {\n        themeName = `Vintage Blue/${bgWhiteColor}`;\n        break;\n      }\n      case \"jadeWhite\": {\n        themeName = `Jade/${bgWhiteColor}`;\n        break;\n      }\n      case \"softgreyWhite\": {\n        themeName = `Soft Grey/${bgWhiteColor}`;\n        break;\n      }\n      case \"mauveWhite\": {\n        themeName = `Mauve/${bgWhiteColor}`;\n        break;\n      }\n      case \"burntorangeWhite\": {\n        themeName = `Burnt Orange/${bgWhiteColor}`;\n        break;\n      }\n      case \"babyblueWhite\": {\n        themeName = `Baby Blue/${bgWhiteColor}`;\n        break;\n      }\n      case \"white\": {\n        themeName = `White`;\n        break;\n      }\n      default: {\n        themeName = ``;\n        break;\n      }\n    }\n    const themeParts = themeId.split(\"_\");\n    if (themeParts.length > 1) {\n      if (themeParts[1] === \"bgblank\") {\n        themeName += ` / ${bgWhiteColor} Bg`;\n      }\n    }\n    if (themeParts.length > 2) {\n      if (themeParts[2] === \"diskblank\") {\n        themeName += ` / ${bgWhiteColor} Map Bg`;\n      }\n    }\n    return themeName;\n  } catch (error) {\n    return themeId;\n  }\n};\nvar themeUtils = {\n  getThemeIdForThemesArray,\n  getBaseThemeId,\n  getThemeOnWhite,\n  getBaseColorForThemeId,\n  getFrameColorName,\n  PosterColor_black,\n  PosterColor_grayBlue,\n  PosterColor_midnightBlue,\n  PosterColor_aquamarine,\n  isThemeBackgroundFilled,\n  isThemeMapFilled,\n  getThemeIdForDesign,\n  getThemeInAnotherColor,\n  getThemeForRenderType,\n  prettyPrintThemeId\n};\nexport {\n  themeUtils\n};\n", "// src/utils/productSku.ts\nimport { Brands } from \"../resources/brands.js\";\nimport { FoilColors } from \"../resources/foilColors.js\";\nimport { PendantCollections } from \"../resources/pendantCollections.js\";\nimport { PendantMaterials } from \"../resources/pendantMaterials.js\";\nimport { PendantTypes } from \"../resources/pendantTypes.js\";\nimport { ProductFormats } from \"../resources/productFormats.js\";\nimport { pendantInfoUtils } from \"./pendantInfoUtils.js\";\nimport { productUtils } from \"./productUtils.js\";\nimport { themeUtils } from \"./themeUtils.js\";\nfunction getFoilText(foil = \"\") {\n  switch (foil) {\n    case FoilColors.SILVER:\n      return \"Silver \";\n    case FoilColors.GOLD:\n      return \"Gold \";\n  }\n  return \"\";\n}\nfunction getFrameText(frameColor = \"\") {\n  switch (frameColor) {\n    case \"white\":\n      return \"White \";\n    case \"black\":\n      return \"Black \";\n    case \"natural\":\n      return \"Natural Wood \";\n  }\n  return \"\";\n}\nvar getProductTitle = (item, overlaidItems) => {\n  var _a;\n  const productType = ((_a = item == null ? void 0 : item.design) == null ? void 0 : _a.productType) || \"\";\n  const productLabel = productType === \"orrery\" ? \"TPA\" : \"\";\n  if (item.productFormat) {\n    switch (item.productFormat) {\n      case ProductFormats.PRINT:\n        return `Classic Star Map Print`;\n      case ProductFormats.FRAMED:\n        return `${productLabel}${getFrameText(`${item.frameColor}`)}Framed Print`;\n      case ProductFormats.CANVAS:\n        return `${productLabel}Canvas`;\n      case ProductFormats.DIGITAL:\n        return `${productLabel}Download`;\n      case ProductFormats.FOIL:\n        return `${productLabel}${getFoilText(`${item.foilColor}`)}Foil Print`;\n      case ProductFormats.FOIL_FRAMED:\n        return `${productLabel}${getFoilText(`${item.foilColor}`)}Foil Framed Print`;\n      case ProductFormats.GITD:\n        return `${productLabel}Glow in the Dark Print`;\n      case ProductFormats.GITD_FRAMED:\n        return `${productLabel}Glow in the Dark Print in a ${getFrameText(`${item.frameColor}`)}Frame`;\n      case ProductFormats.JEWELRY:\n        return pendantInfoUtils.getPendantProductName(item.pendantType || PendantTypes.NIGHT_SKY, item.pendantMaterial, item.pendantAttachment, overlaidItems);\n      case ProductFormats.GIFT_KIT:\n        return `${productLabel}Gift Kit`;\n      case ProductFormats.SHIPPING_UPGRADE:\n        return `${productLabel}Shipping Upgrade`;\n      case ProductFormats.FRAME_UPGRADE:\n        return `${productLabel}Frame Upgrade`;\n      case ProductFormats.CANVAS_UPGRADE:\n        return `${productLabel}Canvas Upgrade`;\n    }\n    return productLabel;\n  } else {\n    if (item.isPendant && !item.isDigital) {\n      return pendantInfoUtils.getPendantProductName(item.pendantType || PendantTypes.NIGHT_SKY, item.pendantMaterial, item.pendantAttachment, overlaidItems);\n    }\n    if (item.isDigital) {\n      return `${productLabel}Digital Download`;\n    }\n    if (item.isAddOn) {\n      return \"Add On\";\n    }\n    if (item.isFramed) {\n      return `${productLabel}in a ${getFrameText(`${item.frameColor}`)} Frame`;\n    }\n    if (item.isCanvas) {\n      return `${productLabel}on Canvas`;\n    }\n    return `${productLabel}Print`;\n  }\n};\nvar getSkuDetails = (brand, item) => {\n  var _a, _b, _c, _d;\n  const isPrint = productUtils.isPrint(item);\n  const isFramed = productUtils.isFramed(item);\n  const isCanvas = productUtils.isCanvas(item);\n  const isDigital = productUtils.isDigital(item);\n  const isJewelry = productUtils.isJewelry(item);\n  const isAddOn = productUtils.isAddOn(item);\n  const frameColor = productUtils.isFramed(item) && item.frameColor ? item.frameColor.toLowerCase() : \"\";\n  const orientation = ((_b = (_a = item == null ? void 0 : item.design) == null ? void 0 : _a.customProps) == null ? void 0 : _b.orientation) || \"portrait\";\n  const themeId = ((_d = (_c = item == null ? void 0 : item.design) == null ? void 0 : _c.customProps) == null ? void 0 : _d.themeId) ? themeUtils.getBaseThemeId(item.design.customProps.themeId) : \"\";\n  let productImage = \"\", productSku = \"\", productDesc = \"\", productUrl = \"\";\n  if (isJewelry) {\n    productSku = pendantInfoUtils.getPendantSku(item.pendantCollection || PendantCollections.NIGHT_SKY, item.pendantType || PendantTypes.NIGHT_SKY, item.pendantMaterial || PendantMaterials.SILVER, item.pendantAttachment || pendantInfoUtils.getDefaultAttachmentForMaterial(item.pendantMaterial || PendantMaterials.SILVER));\n    productDesc = getProductTitle(item);\n    productUrl = \"https://create.thenightsky.com/the-night-sky-pendant\";\n    return {\n      productDesc,\n      productSku,\n      productUrl,\n      productImage: `https://s3.thenightsky.com/products/tp/${productImage}.jpg`\n    };\n  }\n  if (isAddOn) {\n    productSku = item.sku || \"\";\n    productDesc = getProductTitle(item);\n    productUrl = \"https://create.thenightsky.com/the-night-sky-star-map\";\n    return {\n      productDesc,\n      productSku,\n      productUrl,\n      productImage: \"\"\n    };\n  }\n  if (brand === Brands.TNS) {\n    productSku += \"TNS\";\n    productDesc = getProductTitle(item);\n    productUrl = \"https://create.thenightsky.com/the-night-sky-star-map\";\n  } else if (brand === Brands.TPA) {\n    productSku += \"TPA\";\n    productDesc = getProductTitle(item);\n    productUrl = \"https://create.theplanetsaligned.com/en/design\";\n  }\n  if (isDigital) {\n    productImage += \"p\";\n    productSku += \"D\";\n  } else if (isFramed) {\n    productImage += \"f\";\n    productSku += \"F\";\n  } else if (isCanvas) {\n    productImage += \"c\";\n    productSku += \"C\";\n  } else {\n    productImage += \"p\";\n    productSku += \"P\";\n  }\n  switch (themeId) {\n    case \"aquamarine\":\n      productImage += \"am\";\n      productSku += \"AM\";\n      break;\n    case \"black\":\n      productImage += \"b\";\n      productSku += \"BK\";\n      break;\n    case \"grayblue\":\n    case \"greyblue\":\n      productImage += \"gb\";\n      productSku += \"GB\";\n      break;\n    case \"midnightblue\":\n    default:\n      productImage += \"mb\";\n      productSku += \"MB\";\n      break;\n  }\n  if (orientation === \"square\") {\n    productImage += \"s\";\n    productSku += \"S\";\n  } else if (orientation === \"landscape\") {\n    productSku += \"L\";\n  } else {\n    productSku += \"P\";\n  }\n  if (isFramed && !isCanvas && !isPrint) {\n    if (frameColor === \"black\") {\n      productImage += \"b\";\n      productSku += \"B\";\n      productDesc = `Black Framed ${productDesc}`;\n    } else if (frameColor === \"white\") {\n      productImage += \"white\";\n      productSku += \"W\";\n      productDesc = `White Framed ${productDesc}`;\n    } else if (frameColor === \"natural\") {\n      productImage += \"w\";\n      productSku += \"N\";\n      productDesc = `Wood Framed ${productDesc}`;\n    }\n  }\n  productImage = `https://s3.thenightsky.com/products/tp/${productImage}.jpg`;\n  return {\n    productDesc,\n    productImage,\n    productSku,\n    productUrl\n  };\n};\nvar productSkuUtils = {\n  getSkuDetails\n};\nexport {\n  productSkuUtils\n};\n", "// src/tracking/tiktok/tiktokPixel.ts\nimport envConfig from \"../../config/environment.js\";\nvar debug = false;\nvar log = (...args) => {\n  if (!debug) {\n    return;\n  }\n  console.info(...[\"[tiktok-pixel]\"].concat(args));\n};\nvar tiktokPixelTracker = {\n  ttq() {\n    return window.ttq;\n  },\n  init() {\n    var _a;\n    if (!window || !((_a = envConfig) == null ? void 0 : _a.TIKTOK_TRACKING_ID)) {\n      log(`TikTok Pixel not Initialized.`);\n      return;\n    }\n    const initialized = typeof window !== \"undefined\" && !!window.ttq;\n    if (!initialized) {\n      return;\n    }\n  },\n  logPageView(identifyData) {\n    if (!this.ttq()) {\n      log(`TikTok Not Initialized`);\n      return;\n    }\n    log(`TikTok Log Page View.`);\n    if (identifyData.external_id && identifyData.external_id !== \"\" || identifyData.email && identifyData.email !== \"\" || identifyData.phone_number && identifyData.phone_number !== \"\") {\n      log(`ttq.identify(${JSON.stringify(identifyData)});`);\n      const ttqAgent = this.ttq();\n      if (ttqAgent) {\n        ttqAgent.identify(identifyData);\n      }\n    }\n    this.ttq().page();\n  },\n  track(eventName, eventData, eventIdData, identifyData) {\n    if (!this.ttq()) {\n      log(`TikTok Not Initialized`);\n      return;\n    }\n    const ttqAgent = this.ttq();\n    if (ttqAgent) {\n      ttqAgent.identify(identifyData);\n    }\n    if (debug) {\n      log(`called ttq.identify('${identifyData}`);\n    }\n    this.ttq().track(eventName, eventData, eventIdData);\n    if (debug) {\n      log(`called ttq('${eventName}', ${JSON.stringify(eventData)}`);\n    }\n  }\n};\nvar tiktokPixel_default = tiktokPixelTracker;\nexport {\n  tiktokPixel_default as default\n};\n", "var __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __async = (__this, __arguments, generator) => {\n  return new Promise((resolve, reject) => {\n    var fulfilled = (value) => {\n      try {\n        step(generator.next(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var rejected = (value) => {\n      try {\n        step(generator.throw(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);\n    step((generator = generator.apply(__this, __arguments)).next());\n  });\n};\n\n// src/tracking/tiktok/tiktok.ts\nimport { Brands } from \"../../resources/brands.js\";\nimport { productSkuUtils } from \"../../utils/productSku.js\";\nimport { buildUserData, hashAndTrimStringIfRequested } from \"../shared/helpers.js\";\nimport tiktokPixelTracker from \"./tiktokPixel.js\";\nvar buildTikTokContextData = (customerEmail, customerId, customerCountryCode, tiktokClickId, tiktokPixelId, ip, url, userAgent, refererUrl) => __async(void 0, null, function* () {\n  const userData = buildUserData(customerEmail, customerId, customerCountryCode);\n  const contextData = {};\n  if (ip && ip !== \"\") {\n    contextData.ip = ip;\n  }\n  if (userAgent && userAgent !== \"\") {\n    contextData.user_agent = userAgent;\n  }\n  contextData.page = {};\n  if (url && url !== \"\") {\n    contextData.page = __spreadValues({\n      url\n    }, refererUrl ? { referrer: refererUrl } : null);\n  } else if (refererUrl) {\n    contextData.page = {\n      referrer: refererUrl\n    };\n  }\n  if (tiktokClickId) {\n    contextData.ad = {\n      callback: tiktokClickId\n    };\n  }\n  contextData.user = {};\n  if (tiktokPixelId) {\n    contextData.user.ttp = tiktokPixelId;\n  }\n  if (`${(userData == null ? void 0 : userData.externalId) || \"\"}`.length > 6) {\n    const hashed = yield hashAndTrimStringIfRequested(true, userData.externalId);\n    if (hashed && hashed !== \"\") {\n      contextData.user.external_id = hashed;\n    }\n  }\n  if (userData.email) {\n    const hashed = yield hashAndTrimStringIfRequested(true, userData.email);\n    if (hashed && hashed !== \"\") {\n      contextData.user.email = hashed;\n    }\n  }\n  if (userData.phone) {\n    const hashed = yield hashAndTrimStringIfRequested(true, userData.phone);\n    if (hashed && hashed !== \"\") {\n      contextData.user.phone_number = hashed;\n    }\n  }\n  return contextData;\n});\nvar buildTikTokCustomData = (items, currencyParam, valueInUnits, orderOrCartId) => {\n  let currency = currencyParam !== void 0 && currencyParam !== null && currencyParam !== \"\" ? currencyParam.toString().trim().toUpperCase() : \"USD\";\n  let contentData = {};\n  if (items && items.length > 0) {\n    const contentsArray = items.map((item) => {\n      const skuDetails = productSkuUtils.getSkuDetails(Brands.TNS, item);\n      let itemPriceInUnits = valueInUnits;\n      if (item.price) {\n        if (item.price.currency && item.price.currency !== \"\" && item.price.currency.trim().length > 0 && item.price.productPrice && item.price.productPrice >= 0) {\n          currency = item.price.currency.trim().toUpperCase();\n          itemPriceInUnits = (item.price.productPrice / 100).toFixed(2);\n        }\n      }\n      return {\n        order_id: orderOrCartId || \"\",\n        price: itemPriceInUnits,\n        quantity: item.copies,\n        content_id: skuDetails.productSku,\n        content_name: skuDetails.productDesc\n      };\n    });\n    contentData = {\n      contents: contentsArray\n    };\n  }\n  return __spreadProps(__spreadValues({\n    content_type: \"product\"\n  }, contentData), {\n    currency,\n    value: valueInUnits\n  });\n};\nvar buildTikTokUserData = (customerEmail, customerId, customerCountryCode, customerPhone) => {\n  const userData = {};\n  if ((customerId || \"\") !== \"\" && `${customerId || \"\"}`.length > 6) {\n    userData.external_id = `${customerId}`;\n  }\n  if ((customerEmail || \"\").trim() !== \"\") {\n    userData.email = (customerEmail || \"\").trim().toLowerCase();\n  }\n  try {\n    if (customerPhone) {\n      userData.phone_number = customerPhone;\n    }\n  } catch (error) {\n  }\n  return userData;\n};\nvar sendTikTokTrackingEvent = (eventId, eventTimestamp, eventName, customData) => {\n  const userData = buildTikTokUserData();\n  tiktokPixelTracker.track(eventName, __spreadValues({}, customData), {\n    event_id: eventId,\n    event_name: eventName,\n    event_timestamp: eventTimestamp\n  }, userData);\n};\nexport {\n  buildTikTokContextData,\n  buildTikTokCustomData,\n  sendTikTokTrackingEvent\n};\n", "var __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __async = (__this, __arguments, generator) => {\n  return new Promise((resolve, reject) => {\n    var fulfilled = (value) => {\n      try {\n        step(generator.next(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var rejected = (value) => {\n      try {\n        step(generator.throw(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);\n    step((generator = generator.apply(__this, __arguments)).next());\n  });\n};\n\n// src/tracking/server/logging.ts\nimport envConfig from \"../../config/environment.js\";\nvar logEventToServer = (eventID, eventTimestamp, fbEventName, facebookCustomData, facebookUserData, ttEventName, ttCustomData, ttContextData, eventSourceUrl, pixelTestEventCode, customerOptOut) => __async(void 0, null, function* () {\n  var _a;\n  try {\n    let eventData = {\n      eventID,\n      eventTimestamp,\n      eventName: fbEventName,\n      userData: facebookUserData,\n      customData: facebookCustomData,\n      fbEventName,\n      facebookUserData,\n      facebookCustomData,\n      ttEventName,\n      ttCustomData,\n      ttContextData\n    };\n    if (eventTimestamp !== void 0) {\n      eventData = __spreadProps(__spreadValues({}, eventData), { eventTimestamp });\n    }\n    if (eventSourceUrl) {\n      eventData = __spreadProps(__spreadValues({}, eventData), { eventSourceUrl });\n    }\n    if (customerOptOut) {\n      eventData = __spreadProps(__spreadValues({}, eventData), { customerOptOut });\n    }\n    if (pixelTestEventCode) {\n      eventData = __spreadProps(__spreadValues({}, eventData), { pixelTestEventCode });\n    }\n    const url = `${(_a = envConfig) == null ? void 0 : _a.TNS_PLATFORM_API}/api/events/logServerEvent`;\n    const requestBody = `${JSON.stringify(JSON.parse(JSON.stringify(eventData)))}`;\n    const response = yield fetch(url, {\n      method: \"POST\",\n      headers: {\n        Accept: \"application/json\",\n        \"Content-Type\": \"application/json\"\n      },\n      body: requestBody\n    });\n    return response.json();\n  } catch (err) {\n    console.error(err.response ? err.response.data : \"Something went wrong\");\n    throw err;\n  }\n});\nexport {\n  logEventToServer\n};\n", "var __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n  for (var prop in b || (b = {}))\n    if (__hasOwnProp.call(b, prop))\n      __defNormalProp(a, prop, b[prop]);\n  if (__getOwnPropSymbols)\n    for (var prop of __getOwnPropSymbols(b)) {\n      if (__propIsEnum.call(b, prop))\n        __defNormalProp(a, prop, b[prop]);\n    }\n  return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __async = (__this, __arguments, generator) => {\n  return new Promise((resolve, reject) => {\n    var fulfilled = (value) => {\n      try {\n        step(generator.next(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var rejected = (value) => {\n      try {\n        step(generator.throw(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);\n    step((generator = generator.apply(__this, __arguments)).next());\n  });\n};\n\n// src/tracking/google/ga4Analytics.ts\nvar getGa4DateTimeString = () => {\n  const now = new Date();\n  const day = String(now.getUTCDate()).padStart(2, \"0\");\n  const month = String(now.getUTCMonth() + 1).padStart(2, \"0\");\n  const year = now.getUTCFullYear();\n  const hours = String(now.getUTCHours()).padStart(2, \"0\");\n  const minutes = String(now.getUTCMinutes()).padStart(2, \"0\");\n  const seconds = String(now.getUTCSeconds()).padStart(2, \"0\");\n  return `${day}/${month}/${year} - ${hours}:${minutes}:${seconds}`;\n};\nvar logPageView = (pageViewEventProps) => {\n  try {\n    const pageViewEvent = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({\n      event: \"page_view\",\n      date_time: getGa4DateTimeString()\n    }, pageViewEventProps.page_location ? { page_location: pageViewEventProps.page_location } : {}), pageViewEventProps.page_path ? { page_path: pageViewEventProps.page_path } : {}), pageViewEventProps.page_title ? { page_title: pageViewEventProps.page_title } : {}), pageViewEventProps.page_category ? { page_category: pageViewEventProps.page_category } : {}), pageViewEventProps.customerId ? { customerId: pageViewEventProps.customerId } : {}), pageViewEventProps.countryCode ? { countryCode: pageViewEventProps.countryCode } : {}), pageViewEventProps.tns_experiment ? { tns_experiment: pageViewEventProps.tns_experiment } : {});\n    window.dataLayer = window.dataLayer || [];\n    window.dataLayer.push({ ecommerce: null });\n    window.dataLayer.push(pageViewEvent);\n  } catch (error) {\n    console.error(error);\n  }\n};\nvar logContentViewEvent = (contentViewEventProps, userData) => {\n  try {\n    if (userData && userData.customerId) {\n      window.dataLayer = window.dataLayer || [];\n      window.dataLayer.push({\n        user_id: userData.customerId\n      });\n    }\n    if (!contentViewEventProps.itemId || contentViewEventProps.value === void 0) {\n      console.log(`Do not log empty content view event`);\n      return;\n    }\n    const contentViewEvent = {\n      event: \"view_item\",\n      date_time: getGa4DateTimeString(),\n      ecommerce: __spreadProps(__spreadValues(__spreadValues({}, contentViewEventProps.currency ? { currency: contentViewEventProps.currency } : {}), contentViewEventProps.value !== void 0 ? { value: contentViewEventProps.value } : {}), {\n        items: [\n          __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues({\n            index: 0\n          }, contentViewEventProps.itemId !== void 0 ? { item_id: contentViewEventProps.itemId } : {}), contentViewEventProps.itemName !== void 0 ? { item_name: contentViewEventProps.itemName } : {}), contentViewEventProps.itemBrand !== void 0 ? { item_brand: contentViewEventProps.itemBrand } : {}), contentViewEventProps.price !== void 0 ? { price: contentViewEventProps.price } : {}), {\n            quantity: 1\n          })\n        ]\n      })\n    };\n    window.dataLayer = window.dataLayer || [];\n    window.dataLayer.push({ ecommerce: null });\n    window.dataLayer.push(contentViewEvent);\n  } catch (error) {\n    console.error(error);\n  }\n};\nvar logContentEvent = (eventId, eventProps, experiment) => __async(void 0, null, function* () {\n  var _a, _b;\n  try {\n    if (eventProps == null ? void 0 : eventProps.customerId) {\n      window.dataLayer = window.dataLayer || [];\n      window.dataLayer.push({\n        user_id: eventProps.customerId\n      });\n    }\n    if (eventId === \"purchase\") {\n      console.error(`Tracking not optimized for Purchase event!`);\n    }\n    const convertCartItemForEvent = (item, index) => {\n      var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j;\n      return __spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({\n        index\n      }, (item == null ? void 0 : item.sku) !== void 0 ? { item_id: item.sku } : {}), (item == null ? void 0 : item.itemName) !== void 0 ? { item_name: item.itemName } : {}), (item == null ? void 0 : item.itemBrand) !== void 0 ? { item_brand: item.itemBrand } : {}), (item == null ? void 0 : item.itemCategory) !== void 0 ? { item_category: item.itemCategory } : {}), ((_a2 = item == null ? void 0 : item.price) == null ? void 0 : _a2.grossPrice) !== void 0 ? {\n        price: ((_b2 = item.price) == null ? void 0 : _b2.grossPrice) > 0 ? ((_c = item.price) == null ? void 0 : _c.grossPrice) / 100 : 0\n      } : {}), ((_d = item == null ? void 0 : item.price) == null ? void 0 : _d.discountAmountOff) !== void 0 ? {\n        discount: ((_e = item.price) == null ? void 0 : _e.discountAmountOff) > 0 ? ((_f = item.price) == null ? void 0 : _f.discountAmountOff) / 100 : 0\n      } : {}), ((_h = (_g = eventProps == null ? void 0 : eventProps.cart) == null ? void 0 : _g.discount) == null ? void 0 : _h.code) ? { coupon: (_j = (_i = eventProps == null ? void 0 : eventProps.cart) == null ? void 0 : _i.discount) == null ? void 0 : _j.code } : {}), {\n        quantity: 1\n      });\n    };\n    const contentEvent = __spreadValues(__spreadValues({\n      event: eventId,\n      date_time: getGa4DateTimeString()\n    }, experiment ? { tns_experiment: experiment } : {}), ((_a = eventProps.cart) == null ? void 0 : _a.price) ? {\n      ecommerce: __spreadProps(__spreadValues(__spreadValues({}, eventProps.cart.price.currency ? { currency: eventProps.cart.price.currency } : {}), eventProps.cart.price.productPrice !== void 0 ? {\n        value: eventProps.cart.price.productPrice > 0 ? eventProps.cart.price.productPrice / 100 : 0\n      } : {}), {\n        items: (((_b = eventProps == null ? void 0 : eventProps.cart) == null ? void 0 : _b.items) || []).map((item, index) => convertCartItemForEvent(item, index))\n      })\n    } : {});\n    window.dataLayer = window.dataLayer || [];\n    if (contentEvent.event === \"save_design\") {\n      window.dataLayer.push({ ecommerce: null });\n      window.dataLayer.push(__spreadProps(__spreadValues({}, contentEvent), {\n        event: \"add_to_wishlist\"\n      }));\n    }\n    window.dataLayer.push({ ecommerce: null });\n    window.dataLayer.push(contentEvent);\n  } catch (error) {\n    console.error(error);\n  }\n});\nvar logSaveDesignViewed = (pageViewEventProps) => {\n  try {\n    const pageViewEvent = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({\n      event: \"save_design_viewed\",\n      date_time: getGa4DateTimeString()\n    }, pageViewEventProps.page_location ? { page_location: pageViewEventProps.page_location } : {}), pageViewEventProps.page_path ? { page_path: pageViewEventProps.page_path } : {}), pageViewEventProps.page_title ? { page_title: pageViewEventProps.page_title } : {}), pageViewEventProps.page_category ? { page_category: pageViewEventProps.page_category } : {}), pageViewEventProps.customerId ? { customerId: pageViewEventProps.customerId } : {}), pageViewEventProps.countryCode ? { countryCode: pageViewEventProps.countryCode } : {}), pageViewEventProps.tns_experiment ? { tns_experiment: pageViewEventProps.tns_experiment } : {}), pageViewEventProps.itemBrand ? { itemBrand: pageViewEventProps.itemBrand } : {}), pageViewEventProps.itemName ? { itemName: pageViewEventProps.itemName } : {});\n    window.dataLayer = window.dataLayer || [];\n    window.dataLayer.push({ ecommerce: null });\n    window.dataLayer.push(pageViewEvent);\n  } catch (error) {\n    console.error(error);\n  }\n};\nvar ga4Analytics = {\n  logPageView,\n  logContentViewEvent,\n  logContentEvent,\n  logSaveDesignViewed\n};\nvar ga4Analytics_default = ga4Analytics;\nexport {\n  ga4Analytics_default as default\n};\n", "var __async = (__this, __arguments, generator) => {\n  return new Promise((resolve, reject) => {\n    var fulfilled = (value) => {\n      try {\n        step(generator.next(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var rejected = (value) => {\n      try {\n        step(generator.throw(value));\n      } catch (e) {\n        reject(e);\n      }\n    };\n    var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);\n    step((generator = generator.apply(__this, __arguments)).next());\n  });\n};\n\n// src/tracking/tracking.ts\nimport {\n  buildFBAdvancedMatchingData,\n  getFacebookCatalogEntryForAllItems,\n  getFBCustomData,\n  sendFbTrackingEvent\n} from \"./facebook/facebook.js\";\nimport cookieUtils from \"../utils/cookie.js\";\nimport { nanoid } from \"../utils/nanoid.js\";\nimport {\n  buildTikTokContextData,\n  buildTikTokCustomData,\n  sendTikTokTrackingEvent\n} from \"./tiktok/tiktok.js\";\nimport { logEventToServer } from \"./server/logging.js\";\nimport { buildUserData, getSourceUrl } from \"./shared/helpers.js\";\nimport ga4Analytics from \"./google/ga4Analytics.js\";\nvar pixelTestEventCode = \"\";\nvar trackPageView = (props) => __async(void 0, null, function* () {\n  const {\n    customerId,\n    email,\n    countryCode,\n    facebookClickId: facebookClickIdParam,\n    facebookPixelId: facebookPixelIdParam\n  } = props;\n  ga4Analytics.logPageView(props);\n  let facebookClickId = facebookClickIdParam || cookieUtils.getCookie(`_fbc`) || \"\";\n  let facebookPixelId = facebookPixelIdParam || cookieUtils.getCookie(`_fbp`) || \"\";\n  const eventId = `${nanoid()}_${new Date().getTime()}`;\n  const eventTimestamp = Math.floor(new Date().getTime() / 1e3);\n  const userData = buildUserData(email, customerId, countryCode);\n  const fbEventName = \"PageView\";\n  const fbAdvMatchingData = yield buildFBAdvancedMatchingData(userData, true, facebookClickId, facebookPixelId);\n  sendFbTrackingEvent(eventId, eventTimestamp, fbEventName, null, fbAdvMatchingData);\n});\nvar trackContentEvent = (eventType, props, experiment) => __async(void 0, null, function* () {\n  var _a, _b, _c, _d;\n  const {\n    orderId,\n    customerId,\n    email,\n    cartId,\n    itemId,\n    cart,\n    countryCode,\n    facebookClickId: facebookClickIdParam,\n    facebookPixelId: facebookPixelIdParam,\n    tiktokClickId: tiktokClickIdParam,\n    tiktokPixelId: tiktokPixelIdParam\n  } = props;\n  let fbEventName = \"\";\n  let ttEventName = \"\";\n  let ga4EventName = \"\";\n  switch (eventType) {\n    case \"AddToCart\":\n      fbEventName = \"AddToCart\";\n      ttEventName = \"AddToCart\";\n      ga4EventName = \"add_to_cart\";\n      break;\n    case \"SaveDesign\":\n      fbEventName = \"AddToWishlist\";\n      ttEventName = \"AddToWishlist\";\n      ga4EventName = \"save_design\";\n      break;\n    case \"SaveDesignSkipped\":\n      fbEventName = \"\";\n      ttEventName = \"\";\n      ga4EventName = \"save_design_skipped\";\n      break;\n    default:\n      break;\n  }\n  const currency = (((_a = cart == null ? void 0 : cart.price) == null ? void 0 : _a.currency) || \"\").trim().toUpperCase();\n  const productPriceCents = ((_b = cart == null ? void 0 : cart.price) == null ? void 0 : _b.productPrice) < 0 ? -1 : (_c = cart == null ? void 0 : cart.price) == null ? void 0 : _c.productPrice;\n  const item = ((_d = cart == null ? void 0 : cart.items) == null ? void 0 : _d.find((i) => i.id === itemId)) || {};\n  const items = [item];\n  const productPriceInUnits = productPriceCents && productPriceCents > 0 ? productPriceCents / 100 : 0;\n  if (!currency || productPriceCents < 0) {\n    return;\n  }\n  const eventId = `${nanoid()}_${new Date().getTime()}`;\n  const eventTimestamp = Math.floor(new Date().getTime() / 1e3);\n  if (ga4EventName) {\n    yield ga4Analytics.logContentEvent(ga4EventName, props, experiment);\n  }\n  const fbCustomData = getFBCustomData(items, currency, productPriceInUnits.toFixed(2));\n  let facebookClickId = facebookClickIdParam || cookieUtils.getCookie(`_fbc`) || \"\";\n  let facebookPixelId = facebookPixelIdParam || cookieUtils.getCookie(`_fbp`) || \"\";\n  const userData = buildUserData(email, customerId, countryCode);\n  const fbAdvMatchingData = yield buildFBAdvancedMatchingData(userData, true, facebookClickId, facebookPixelId);\n  if (fbEventName) {\n    sendFbTrackingEvent(eventId, eventTimestamp, fbEventName, fbCustomData, fbAdvMatchingData);\n  }\n  let tiktokClickId = tiktokClickIdParam || cookieUtils.getCookie(`ttclid`) || \"\";\n  let tiktokPixelId = tiktokPixelIdParam || cookieUtils.getCookie(`_ttp`) || \"\";\n  const tiktokCustomData = buildTikTokCustomData(items, currency, productPriceInUnits.toFixed(2), orderId || cartId || \"\");\n  if (ttEventName) {\n    sendTikTokTrackingEvent(eventId, eventTimestamp, ttEventName, tiktokCustomData);\n  }\n  const tiktokContextData = yield buildTikTokContextData(email, customerId, countryCode, tiktokClickId, tiktokPixelId);\n  var referer = document.referrer;\n  var userAgent = window.navigator.userAgent;\n  logEventToServer(eventId, eventTimestamp, fbEventName, fbCustomData, fbAdvMatchingData, ttEventName, tiktokCustomData, tiktokContextData, getSourceUrl() || \"\", pixelTestEventCode || \"\");\n});\nvar trackSaveDesign = (props, experiment) => __async(void 0, null, function* () {\n  return trackContentEvent(\"SaveDesign\", props, experiment);\n});\nvar trackSaveDesignSkipped = (props, experiment) => __async(void 0, null, function* () {\n  return trackContentEvent(\"SaveDesignSkipped\", props, experiment);\n});\nvar trackSaveDesignViewed = (props) => __async(void 0, null, function* () {\n  ga4Analytics.logSaveDesignViewed(props);\n});\nvar trackAddToCart = (props, experiment) => __async(void 0, null, function* () {\n  return trackContentEvent(\"AddToCart\", props, experiment);\n});\nvar trackContentView = (contentViewEventProps) => __async(void 0, null, function* () {\n  const {\n    jewelryPage: boolean,\n    facebookClickId: facebookClickIdParam,\n    facebookPixelId: facebookPixelIdParam,\n    email,\n    customerId,\n    countryCode\n  } = contentViewEventProps;\n  let facebookClickId = facebookClickIdParam || cookieUtils.getCookie(`_fbc`) || \"\";\n  let facebookPixelId = facebookPixelIdParam || cookieUtils.getCookie(`_fbp`) || \"\";\n  const eventId = `${nanoid()}_${new Date().getTime()}`;\n  const eventTimestamp = Math.floor(new Date().getTime() / 1e3);\n  const { contentIds, contentType, contentName, contentCategory } = getFacebookCatalogEntryForAllItems();\n  const fbEventName = \"ViewContent\";\n  const fbCustomData = {\n    content_ids: contentIds,\n    content_type: contentType,\n    content_name: contentName,\n    content_category: contentCategory\n  };\n  const userData = buildUserData(email, customerId, countryCode);\n  ga4Analytics.logContentViewEvent(contentViewEventProps, userData);\n  const fbAdvMatchingData = yield buildFBAdvancedMatchingData(userData, true, facebookClickId, facebookPixelId);\n  sendFbTrackingEvent(eventId, eventTimestamp, fbEventName, fbCustomData, fbAdvMatchingData);\n});\nvar tracking = {\n  trackPageView,\n  trackContentView,\n  trackSaveDesign,\n  trackSaveDesignSkipped,\n  trackAddToCart,\n  trackSaveDesignViewed\n};\nexport {\n  tracking\n};\n", "import{tracking}from\"https://storage.googleapis.com/backend.thenightsky.com/libraries/tns-framer-shared/v1.0.82/index.js\";const trackPageView=pageViewEventProps=>{return tracking.trackPageView(pageViewEventProps);};const trackContentView=contentViewProps=>{return tracking.trackContentView(contentViewProps);};const trackSaveDesign=(eventData,experiment)=>{return tracking.trackSaveDesign(eventData);};const trackSaveDesignSkipped=(eventData,experiment)=>{return tracking.trackSaveDesignSkipped(eventData);};const trackAddToCart=(eventData,experiment)=>{return tracking.trackAddToCart(eventData);};const trackSaveDesignViewed=eventData=>{return tracking.trackSaveDesignViewed(eventData);};// dataLayer.push({ ecommerce: null });  // Clear the previous ecommerce object.\n// dataLayer.push({\n//     event: \"view_item\",\n//     ecommerce: {\n//         ...(value > 0 ? { value } : {}),\n//         currency,\n//         value: price,\n//         items: [\n//             {\n//                 index: 0,\n//                 item_id: \"SKU_12345\",\n//                 item_name: \"Stan and Friends Tee\",\n//                 //\n//                 // affiliation: \"Google Merchandise Store\",\n//                 //\n//                 item_brand: \"TheNightSky\",\n//                 item_category: store.productFormat,\n//                 // item_category2: \"Adult\",\n//                 // item_category3: \"Shirts\",\n//                 // item_category4: \"Crew\",\n//                 // item_category5: \"Short sleeve\",\n//                 //\n//                 // item_list_id: \"related_products\",\n//                 // item_list_name: \"Related Products\",\n//                 // item_variant: \"green\",\n//                 //\n//                 ...(price > 0 ? { price } : {}),\n//                 // discount: 2.22,\n//                 // coupon: \"SUMMER_FUN\",\n//                 quantity: 1,\n//             },\n//         ],\n//     },\n// })\nexport default{trackSaveDesign,trackSaveDesignSkipped,trackAddToCart,trackPageView,trackContentView,trackSaveDesignViewed}// declare global {\n//     interface Window {\n//         dataLayer: any[]\n//     }\n// }\n// function pad(n) {\n//     return 1 === n.length ? \"0\" + n : n\n// }\n// function getGa4Date() {\n//     const e = new Date()\n//     return (\n//         e.toLocaleDateString(\"en-IE\") +\n//         \" \" +\n//         pad(e.getHours()) +\n//         \":\" +\n//         pad(e.getMinutes()) +\n//         \":\" +\n//         pad(e.getSeconds())\n//     )\n// }\n// function gtag(...args: any) {\n//     window.dataLayer = window.dataLayer || []\n//     window.dataLayer.push(args)\n// }\n// function updatePageCategory(pageCategory) {\n//     if (!pageCategory) {\n//         return\n//     }\n//     window.dataLayer = window.dataLayer || []\n//     window.dataLayer.push({\n//         // date_time: getGa4Date(),\n//         page_category: pageCategory,\n//     })\n// }\n;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./utils_Tracking.map"],
  "mappings": "yCACA,IAAIA,GACH,SAASC,EAAqB,CAC7BA,EAAoB,OAAY,SAChCA,EAAoB,KAAU,OAC9BA,EAAoB,KAAU,OAC9BA,EAAoB,KAAU,OAC9BA,EAAoB,cAAmB,gBACvCA,EAAoB,mBAAwB,qBAC5CA,EAAoB,cAAmB,gBACvCA,EAAoB,gBAAqB,kBACzCA,EAAoB,cAAmB,gBACvCA,EAAoB,cAAmB,eACzC,GAAGD,IAAuBA,EAAqB,CAAC,EAAE,ECZlD,IAAIE,GACH,SAASC,EAAqB,CAC7BA,EAAoB,UAAe,YACnCA,EAAoB,QAAa,SACnC,GAAGD,IAAuBA,EAAqB,CAAC,EAAE,ECJlD,IAAIE,GACH,SAASC,EAAmB,CAC3BA,EAAkB,QAAa,YAC/BA,EAAkB,QAAa,YAC/BA,EAAkB,KAAU,OAC5BA,EAAkB,SAAc,aAChCA,EAAkB,SAAc,aAChCA,EAAkB,MAAW,QAC7BA,EAAkB,UAAe,cACjCA,EAAkB,UAAe,cACjCA,EAAkB,OAAY,SAC9BA,EAAkB,QAAa,YAC/BA,EAAkB,QAA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ET,KAAKJ,EAAiB,OACpB,OAAIK,EACK,SACE,CACTG,EAAmB,cACnBA,EAAmB,kBACrB,EAAE,SAASL,CAAiB,EACnB,cACEC,EACF,WAEA,WAGX,KAAKJ,EAAiB,KACpB,OAAIK,EACK,SACED,EACF,YAEA,YAGX,IAAK,OACH,MAAO,aAET,QACE,KACJ,CACA,KACJ,CACF,CACF,MAAc,CACd,CACA,MAAO,EACT,EACIK,GAA4B,CAC9B,OACA,aACA,cACA,cACA,WACA,WACA,SACA,gBACA,aACA,YACA,YACA,SACA,aACA,UACA,UACA,UACA,UACA,aACA,YACA,cACA,YACA,YACA,WACA,WACA,YACA,YACA,WACA,UACF,EACIC,GAA8Bf,GAAsB,IAAKgB,GAAMA,EAAE,EAAE,EACnEC,GAAgC,CAClC,WACA,WACA,SACA,gBACA,aACA,YACA,YACA,SACA,aACA,UACA,UACA,UACA,UACA,aACA,YACA,cACA,YACA,YACA,WACA,WACA,YACA,YACA,WACA,UACF,ECpOA,IAAIC,GAAS,CACX,gBAAiB,kBACjB,gBAAiB,kBACjB,2BAA4B,uEAC5B,mBAAoB,uBACpB,iBAAkB,oCACpB,EACIC,GAAsBD,GCP1B,IAAIE,GAAe,CACjB,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,IACF,EC1PA,IAAIC,GAAU,CAACC,EAAQC,EAAaC,IAC3B,IAAI,QAAQ,CAACC,EAASC,IAAW,CACtC,IAAIC,EAAaC,GAAU,CACzB,GAAI,CACFC,EAAKL,EAAU,KAAKI,CAAK,CAAC,CAC5B,OAASE,EAAG,CACVJ,EAAOI,CAAC,CACV,CACF,EACIC,EAAYH,GAAU,CACxB,GAAI,CACFC,EAAKL,EAAU,MAAMI,CAAK,CAAC,CAC7B,OAASE,EAAG,CACVJ,EAAOI,CAAC,CACV,CACF,EACID,EAAQG,GAAMA,EAAE,KAAOP,EAAQO,EAAE,KAAK,EAAI,QAAQ,QAAQA,EAAE,KAAK,EAAE,KAAKL,EAAWI,CAAQ,EAC/FF,GAAML,EAAYA,EAAU,MAAMF,EAAQC,CAAW,GAAG,KAAK,CAAC,CAChE,CAAC,EAKCU,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AAsBC,EACzB,CACL,cAAe,GACf,QAASE,EACT,eAAgBA,EAChB,UAAWD,EACX,YAAaA,EACb,SAAUA,EACV,UAAWC,EACX,YAAaA,CACf,EAEO,CACL,cAAe,GACf,QAASA,EACT,eAAgBD,EAChB,UAAWA,EACX,YAAaA,EACb,SAAUC,EACV,UAAWD,EACX,YAAaA,CACf,EAGAE,EAAsB,CAACJ,EAAoBC,EAAaC,EAAWC,IACjEH,GAAsBC,EACjB,CACL,cAAe,GACf,QAASC,EACT,eAAgBC,EAChB,UAAWA,EACX,YAAaA,EACb,SAAUD,EACV,UAAWC,EACX,YAAaA,CACf,EACSH,GAAsB,CAACC,EACzB,CACL,cAAe,GACf,QAASC,EACT,eAAgBA,EAChB,UAAWC,EACX,YAAaA,EACb,SAAUA,EACV,UAAWD,EACX,YAAaA,CACf,EACS,CAACF,GAAsBC,EACzB,CACL,cAAe,GACf,QAASE,EACT,eAAgBA,EAChB,UAAWD,EACX,YAAaA,EACb,SAAUA,EACV,UAAWC,EACX,YAAaA,CACf,EAEO,CACL,cAAe,GACf,QAASA,EACT,eAAgBD,EAChB,UAAWA,EACX,YAAaA,EACb,SAAUC,EACV,UAAWD,EACX,YAAaA,CACf,EAGAG,EAAsB,CAACL,EAAoBC,EAAaK,EAAeJ,IACrEF,GAAsBC,EACjB,CACL,cAAAK,EACA,QAASJ,EACT,eAAgB,OAChB,UAAW,OACX,YAAa,OACb,SAAUA,EACV,UAAW,OACX,YAAa,MACf,EACSF,GAAsB,CAACC,EACzB,CACL,cAAAK,EACA,QAASJ,EACT,eAAgBA,EAChB,UAAW,OACX,YAAa,OACb,SAAU,OACV,UAAWA,EACX,YAAaA,CACf,EACS,CAACF,GAAsBC,EACzB,CACL,cAAAK,EACA,QAAS,OACT,eAAgB,OAChB,UAAWJ,EACX,YAAaA,EACb,SAAUA,EACV,UAAW,OACX,YAAa,MACf,EAEO,CACL,cAAAI,EACA,QAAS,OACT,eAAgBJ,EAChB,UAAWA,EACX,YAAaA,E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GAAe,cAAAT,GAAc,iBAAAG,GAAiB,sBAAAO,EAAqB",
  "names": ["PendantAttachments", "PendantAttachments2", "PendantCollections", "PendantCollections2", "PendantMaterials", "PendantMaterials2", "ProductFormats", "ProductFormats2", "PendantSizes", "PendantSizes2", "PendantTypes", "PendantTypes2", "ProductTypes", "ProductTypes2", "ensureProductFormatSet", "item", "productFormat", "ProductFormats", "ProductTypes", "getProductFormatPrint", "itemParam", "getProductFormatFramed", "getProductFormatCanvas", "_itemParam", "formatIsPrint", "isPrint", "formatIsFramed", "isFramed", "formatIsFoilGitd", "isFoilGitd", "formatIsGitd", "isGitd", "formatIsFoil", "isFoil", "formatIsCanvas", "isCanvas", "formatIsJewelry", "isJewelry", "formatIsDigital", "isDigital", "formatIsAddOn", "isAddOn", "formatIsGiftKit", "isGiftKit", "productFormatIsFoil", "productFormatIsGitd", "productFormatShortCategoryName", "p", "getProductNameForGA", "allItems", "productName", "productUtils", "pendantInfoUtils", "getJewelryNameForAnalytics", "item", "allItems", "itemsLayeredOnThis", "x", "productUtils", "isLayer", "getPendantProductNameShort", "pendantAttachment", "PendantAttachments", "isPendantLayer", "isOverlay", "getBaseMaterial", "pendantMaterial", "PendantMaterials", "getPendantInfoTitle", "_pendantCollection", "pendantType", "pendantAttachedToMaterial", "productFormat", "output", "isPrint", "PendantTypes", "baseMaterial", "isBezel", "isBezelMaterial", "isGoldVermeilBezel", "isBracelet", "isLocketMaterial", "baseLayerType", "getPendantBasicDescription", "pendantSize", "getPendantSizeOfMaterial", "PendantSizes", "getDefaultAttachmentForMaterial", "attachment", "getMaterialAndAttachmentForBezel", "is20mmPendantSize", "is15mmPendantSize", "getPendantSizeForMaterial", "countryIsMetricLocation", "countryCode", "metricLocation", "getPendantSizeText", "getAttachmentText", "isLocket", "jewelryComboIsAllowed", "getPendantSku", "pendantCollection", "pendantAttachmentParam", "DEFAULT_FALLBACK_SKU", "sku", "pendantHasTwoHoles", "pendantHasOneHole", "overlayAllowedOnMaterial", "_pendantMaterial", "getPendantProductName", "overlaidItems", "productName", "pendantInfoUtils", "productTypeName", "pendantMaterialName", "overlayText", "pendantType2", "attachmentTitle", "getPendantMaterialName", "getPendantAttachmentName", "getPendantAttachmentNameForMonday", "getPendantMaterialColor", "material", "getBraceletForPendantMaterial", "pendantMaterialParam", "getPendantForBraceletMaterial", "isBezelMaterialSilver", "isBraceletNotCord", "isCordAttachment", "getEmojiForMaterial", "getEmojiForAttachment", "_pendantType", "getPendantHsInfo", "hsCode", "hsDescription", "getPendantHsCode", "hsInfo", "getPendantHsDesc", "getPendantHsInfoDetailed", "infoTitle", "sizeMetric", "sizeImperial", "size", "changeMaterialGetEquivalentSize", "currentPendantMaterial", "newPendantMaterial", "getMaterialForNightSky", "currentMaterial", "getMaterialForMoonPhase", "getMaterialForBirthConstellation", "getPendantMaterialInPendantSize", "isBackTextAllowed", "getPendantTypeForCollection", "PendantCollections", "backTextShowsLocationAndCoords", "cartShortTitles", "foilColor", "ProductFormats", "materialText", "materialType", "cartShortTitlesPendant", "bandText", "cartShortTitlesBand", "pendantTypeText", "cartShortPendantType", "isMomentsCollection", "getDefaultMaterialForPiece", "pieceType", "getMaterialAndAttachmentForLocket", "_pendantAttachmentParam", "getMaterialAndAttachmentForCharm", "useGdvmBezel", "getMaterialAndAttachmentForBracelet", "basePendantMaterial", "getMaterialAndAttachmentForNecklace", "pendantTypeIsMoment", "facebookContentCategoryForPrint", "facebookContentCategoryForJewelry", "facebookGroupTitle", "facebookCatalogPrints", "getSkuForJewelryItem", "item", "productUtils", "pendantMaterial", "PendantMaterials", "baseMaterial", "pendantInfoUtils", "pendantAttachment", "isBracelet", "isLocket", "isBezel", "isBezelMaterialSilver", "PendantAttachments", "facebookCatalogAllLiveIds", "facebookCatalogLivePrintIds", "x", "facebookCatalogLiveJewelryIds", "config", "environment_default", "countryCodes", "__async", "__this", "__arguments", "generator", "resolve", "reject", "fulfilled", "value", "step", "e", "rejected", "x", "buildUserData", "customerEmail", "customerId", "customerCountryCode", "userData", "countryCodes", "hashAndTrimStringIfRequested", "hashed", "inputParam", "input", "textAsBuffer", "hashBuffer", "window", "returnValue", "item", "getSourceUrl", "error", "__defProp", "__getOwnPropSymbols", "__hasOwnProp", "__propIsEnum", "__defNormalProp", "obj", "key", "value", "__spreadValues", "a", "b", "prop", "__async", "__this", "__arguments", "generator", "resolve", "reject", "fulfilled", "step", "e", "rejected", "x", "initialized", "debug", "warn", "args", "log", "verifyInit", "defaultOptions", "facebookPixel", "f", "v", "n", "t", "s", "window", "pixelId", "advancedMatching", "options", "title", "data", "eventData", "react_facebook_pixel_default", "deliveryCategory", "getFacebookCatalogEntryForAllItems", "facebookCatalogAllLiveIds", "facebookGroupTitle", "getFacebookCatalogEntryForItem", "item", "ProductTypes", "productUtils", "catalogId", "getSkuForJewelryItem", "facebookContentCategoryForPrint", "facebookCatalogLiveJewelryIds", "facebookContentCategoryForJewelry", "catalog", "facebookCatalogPrints", "facebookCatalogLivePrintIds", "getFBCustomData", "items", "currencyParam", "valueInUnits", "currency", "contentType", "contentName", "contentCategory", "catalogItems", "fbCatalogEntry", "contentId", "itemContentName", "itemContentCategory", "itemContentGroupId", "buildFBAdvancedMatchingData", "userData", "hashed", "facebookClickId", "facebookPixelId", "advancedMatchingData", "hashAndTrimStringIfRequested", "initFBPixel", "advMatchingData", "pixelOptions", "environment_default", "sendFbTrackingEvent", "eventId", "eventTimestamp", "eventName", "customData", "getCookie", "name", "nameEQ", "ca", "i", "c", "cookie_default", "customAlphabet", "idLength", "nanoid", "id", "i", "Brands", "Brands2", "FoilColors", "FoilColors2", "__defProp", "__defProps", "__getOwnPropDescs", "__getOwnPropSymbols", "__hasOwnProp", "__propIsEnum", "__defNormalProp", "obj", "key", "value", "__spreadValues", "a", "b", "prop", "__spreadProps", "GITD_DISPLAY_COLOR", "display", "print", "gbPrint", "usPrint", "foil", "digital", "canvas", "gbCanvas", "parentFoilColors", "FoilColors", "parentThemes", "display", "print", "usPrint", "gbPrint", "digital", "canvas", "gbCanvas", "foil", "starmapThemes", "getStandardColorPalette", "isBackgroundFilled", "isMapFilled", "darkColor", "lightColor", "getGitdColorPalette", "getFoilColorPalette", "backgroundUrl", "getTransparentColorPalette", "parentTheme", "GITD_DISPLAY_COLOR", "parentFoilColor", "__defProp", "__getOwnPropSymbols", "__hasOwnProp", "__propIsEnum", "__defNormalProp", "obj", "key", "value", "__spreadValues", "a", "b", "prop", "PosterColor_black", "PosterColor_grayBlue", "PosterColor_midnightBlue", "PosterColor_aquamarine", "getThemeIdForThemesArray", "themeId", "themeIdForThemesArray", "error", "getBaseThemeId", "themeIdParam", "themeParts", "getThemeOnWhite", "starmapThemes", "getThemeIdForDesign", "isBackgroundFilled", "isMapFilled", "baseThemeId", "themes", "x", "theme", "isThemeBackgroundFilled", "isThemeMapFilled", "getBaseColorForThemeId", "getFrameColorName", "frameColor", "getThemeInAnotherColor", "changeToThemeIdParam", "changeToBaseThemeId", "backgroundFilled", "mapFilled", "matchingThemes", "getThemeForRenderType", "renderTypeParam", "productFormat", "foilColor", "themeIdKey", "productUtils", "FoilColors", "prettyPrintThemeId", "isGitd", "isFoil", "themeName", "bgWhiteColor", "themeUtils", "getFoilText", "foil", "FoilColors", "getFrameText", "frameColor", "getProductTitle", "item", "overlaidItems", "_a", "productLabel", "ProductFormats", "pendantInfoUtils", "PendantTypes", "getSkuDetails", "brand", "_b", "_c", "_d", "isPrint", "productUtils", "isFramed", "isCanvas", "isDigital", "isJewelry", "isAddOn", "orientation", "themeId", "themeUtils", "productImage", "productSku", "productDesc", "productUrl", "PendantCollections", "PendantMaterials", "Brands", "productSkuUtils", "debug", "log", "args", "tiktokPixelTracker", "window", "_a", "environment_default", "identifyData", "ttqAgent", "eventName", "eventData", "eventIdData", "tiktokPixel_default", "__defProp", "__defProps", "__getOwnPropDescs", "__getOwnPropSymbols", "__hasOwnProp", "__propIsEnum", "__defNormalProp", "obj", "key", "value", "__spreadValues", "a", "b", "prop", "__spreadProps", "__async", "__this", "__arguments", "generator", "resolve", "reject", "fulfilled", "step", "e", "rejected", "x", "buildTikTokContextData", "customerEmail", "customerId", "customerCountryCode", "tiktokClickId", "tiktokPixelId", "ip", "url", "userAgent", "refererUrl", "userData", "buildUserData", "contextData", "hashed", "hashAndTrimStringIfRequested", "buildTikTokCustomData", "items", "currencyParam", "valueInUnits", "orderOrCartId", "currency", "contentData", "item", "skuDetails", "productSkuUtils", "Brands", "itemPriceInUnits", "buildTikTokUserData", "customerPhone", "sendTikTokTrackingEvent", "eventId", "eventTimestamp", "eventName", "customData", "tiktokPixel_default", "__defProp", "__defProps", "__getOwnPropDescs", "__getOwnPropSymbols", "__hasOwnProp", "__propIsEnum", "__defNormalProp", "obj", "key", "value", "__spreadValues", "a", "b", "prop", "__spreadProps", "__async", "__this", "__arguments", "generator", "resolve", "reject", "fulfilled", "step", "e", "rejected", "x", "logEventToServer", "eventID", "eventTimestamp", "fbEventName", "facebookCustomData", "facebookUserData", "ttEventName", "ttCustomData", "ttContextData", "eventSourceUrl", "pixelTestEventCode", "customerOptOut", "_a", "eventData", "url", "environment_default", "requestBody", "err", "__defProp", "__defProps", "__getOwnPropDescs", "__getOwnPropSymbols", "__hasOwnProp", "__propIsEnum", "__defNormalProp", "obj", "key", "value", "__spreadValues", "a", "b", "prop", "__spreadProps", "__async", "__this", "__arguments", "generator", "resolve", "reject", "fulfilled", "step", "e", "rejected", "x", "getGa4DateTimeString", "now", "day", "month", "year", "hours", "minutes", "seconds", "logPageView", "pageViewEventProps", "pageViewEvent", "window", "error", "logContentViewEvent", "contentViewEventProps", "userData", "contentViewEvent", "logContentEvent", "eventId", "eventProps", "experiment", "_a", "_b", "convertCartItemForEvent", "item", "index", "_a2", "_b2", "_c", "_d", "_e", "_f", "_g", "_h", "_i", "_j", "contentEvent", "logSaveDesignViewed", "ga4Analytics", "ga4Analytics_default", "__async", "__this", "__arguments", "generator", "resolve", "reject", "fulfilled", "value", "step", "e", "rejected", "x", "pixelTestEventCode", "trackPageView", "props", "customerId", "email", "countryCode", "facebookClickIdParam", "facebookPixelIdParam", "ga4Analytics_default", "facebookClickId", "cookie_default", "facebookPixelId", "eventId", "nanoid", "eventTimestamp", "userData", "buildUserData", "fbEventName", "fbAdvMatchingData", "buildFBAdvancedMatchingData", "sendFbTrackingEvent", "trackContentEvent", "eventType", "experiment", "_a", "_b", "_c", "_d", "orderId", "cartId", "itemId", "cart", "tiktokClickIdParam", "tiktokPixelIdParam", "ttEventName", "ga4EventName", "currency", "productPriceCents", "items", "i", "productPriceInUnits", "fbCustomData", "getFBCustomData", "tiktokClickId", "tiktokPixelId", "tiktokCustomData", "buildTikTokCustomData", "sendTikTokTrackingEvent", "tiktokContextData", "buildTikTokContextData", "referer", "userAgent", "window", "logEventToServer", "getSourceUrl", "trackSaveDesign", "trackSaveDesignSkipped", "trackSaveDesignViewed", "trackAddToCart", "trackContentView", "contentViewEventProps", "boolean", "contentIds", "contentType", "contentName", "contentCategory", "getFacebookCatalogEntryForAllItems", "tracking", "trackPageView", "pageViewEventProps", "tracking", "trackContentView", "contentViewProps", "trackSaveDesign", "eventData", "experiment", "trackSaveDesignSkipped", "trackAddToCart", "trackSaveDesignViewed", "utils_Tracking_default"]
}
