{
  "version": 3,
  "sources": ["/cdn/shop/t/996/assets/upsell.js?utm_bot_source=7516fd43adaa"],
  "sourcesContent": ["const CART_UPDATE_EVENT = \"wetheme-cart-update\";\n\nclass Upsell extends HTMLElement {\n  constructor() {\n    super();\n    // sotre data\n    this.upsellsList = null; // the list of upsells available from the store\n    this.availableCountries = null; // a list of available countries from the store\n    // customer data\n    this.cartData = null; // the current cartData.\n    this.customerCountry = null; // the customer country\n    // upsell data. They have getters and setters\n    this.cartElegible = null; // true if the cart is elegible for upsells\n    this.elegibleUpsells = null; // a list of upsells that match the customer country\n    this.upsellProductData = null; // the upsell product data when the cart is elegible for upsells\n    this.foundUpsellFromUpsellList = null; // the upsell product data when the cart is elegible for upsells\n    // run coordination \u2014 coalesce concurrent cart events into a trailing re-run\n    this.isUpdating = false;\n    this.pendingUpdate = false;\n    this._timer = null;\n  }\n\n  async connectedCallback() {\n    if (!window.upsellComponentDisabled) {\n      this.fetchAttributes();\n      await this.runUpdate();\n      this.eventListeners();\n      this._observe();\n    }\n  }\n\n  eventListeners() {\n    document.addEventListener(\"wetheme-cart-update\", () => this.runUpdate());\n  }\n\n  disconnectedCallback() {\n    document.removeEventListener(\"wetheme-cart-update\", () => this.runUpdate());\n  }\n\n  _observe() {\n    try {\n      const observer = new PerformanceObserver((list) => {\n        for (const entry of list.getEntries()) {\n          const isNetwork =\n            entry.initiatorType === \"xmlhttprequest\" ||\n            entry.initiatorType === \"fetch\";\n          if (!isNetwork || this._mutating) continue;\n          if (!/\\/cart\\//.test(entry.name)) continue;\n\n          clearTimeout(this._timer);\n          this._timer = setTimeout(async () => {\n            await this.runUpdate();\n          }, 100);\n        }\n      });\n      observer.observe({ entryTypes: [\"resource\"] });\n    } catch (e) {\n      console.log(\"PerformanceObserver not supported: \" + e.message);\n    }\n  }\n\n  async runUpdate() {\n    if (this.isUpdating) {\n      this.pendingUpdate = true;\n      return;\n    }\n    this.isUpdating = true;\n    try {\n      do {\n        this.pendingUpdate = false;\n        await this.assesingUpsellElegibility();\n        this.renderUpsellContainer();\n      } while (this.pendingUpdate);\n    } finally {\n      this.isUpdating = false;\n      await this.updateCartDrawer(this.cartData);\n    }\n  }\n\n  async updateCartDrawer(cart) {\n    const event = new CustomEvent(CART_UPDATE_EVENT, {\n      detail: {\n        cart,\n      },\n    });\n    document.documentElement.dispatchEvent(event);\n  }\n\n  fetchAttributes() {\n    // getting attributes\n    const upsellsList = this.getAttribute(\"data-upsell-list\");\n    const storeDomain = this.getAttribute(\"data-domain-name\");\n    const availableCountries = this.getAttribute(\"data-available-countries\");\n\n    // setting properties\n    this.upsellsList = JSON.parse(upsellsList);\n    this.availableCountries = JSON.parse(availableCountries);\n    this.storeDomain = storeDomain;\n  }\n\n  // assessing if the cart is elegible for upsells and if so, getting the upsell data\n  async assesingUpsellElegibility() {\n    this.cartElegible = false;\n    this.upsellProductData = null;\n    try {\n      // getting cart data\n      const cartData = await getCart();\n      this.cartData = cartData;\n\n      const itemsMap = new Map(\n        cartData.items.map((item) => [\n          `gid://shopify/ProductVariant/${item.variant_id}`,\n          item,\n        ]),\n      );\n      // getting customer country\n\n      if (!window.Shopify.userCountry) {\n        await detectUserCountry();\n      }\n      this.customerCountry = parseCountry(\n        window.Shopify.userCountry.iso_code.toUpperCase(),\n        this.availableCountries,\n      );\n\n      if (!this.customerCountry) throw new Error(\"Customer country not found\");\n\n      // a list of upsells that match the customer country\n      const elegibleUpsells = this.upsellsList.filter((upsell) =>\n        upsell.countries.includes(this.customerCountry.name),\n      );\n      if (elegibleUpsells.length === 0) throw new Error(\"No elegible upsells\");\n      this.elegibleUpsells = elegibleUpsells;\n\n      for (let i = 0; i < elegibleUpsells.length; i++) {\n        const upsell = elegibleUpsells[i];\n\n        const controller = new AbortController();\n        const upsellFetchInFlight = getProductByVariantIdStorefront(\n          upsell.upsell_product,\n          this.storeDomain,\n          controller,\n        );\n\n        const upsellProductAlreadyInCart = this.itemMatchOnList(itemsMap, [\n          upsell.upsell_product,\n        ]);\n\n        if (upsellProductAlreadyInCart) {\n          this.cartElegible = false;\n          console.log(\"upsell product already in cart\");\n          controller.abort();\n          continue;\n        }\n\n        // checking if the upsell qualifier is in the cart\n        const foundQualifierInCart = this.itemMatchOnList(\n          itemsMap,\n          upsell.qualifiers,\n        );\n\n        if (!foundQualifierInCart) {\n          this.cartElegible = false;\n          console.log(\"upsell qualifier not found in cart\");\n          controller.abort();\n          continue;\n        }\n\n        // checking if the upsell suppressor is in the cart\n        const foundSuppersorInCart = this.itemMatchOnList(\n          itemsMap,\n          upsell.suppressors,\n        );\n\n        if (foundSuppersorInCart) {\n          this.cartElegible = false;\n          console.log(\"upsell suppressor found in cart\");\n          controller.abort();\n          continue;\n        }\n\n        this.foundUpsellFromUpsellList = upsell;\n\n        // getting upsell data\n        const upsellVariantData = await upsellFetchInFlight;\n        this.cartElegible = true;\n        this.upsellProductData = upsellVariantData;\n        break;\n      }\n    } catch (error) {\n      console.log(error);\n      this.foundUpsellFromUpsellList = null;\n    }\n  }\n\n  // ====================== | UI Functions | ===================================\n\n  renderUpsellContainer() {\n    if (!this.cartElegible) {\n      this.replaceChildren();\n      return;\n    }\n\n    const tpl = document.getElementById(\"upsell-tpl\");\n    if (!tpl) {\n      console.warn(\"upsell-tpl template not found in the DOM\");\n      return;\n    }\n\n    const variant = this.upsellProductData;\n    const product = variant.product;\n\n    const node = document.createDocumentFragment();\n    for (const child of tpl.children) {\n      node.appendChild(child.cloneNode(true));\n    }\n    const copy = this.foundUpsellFromUpsellList.copy_text;\n    node.querySelector(\"[data-upsell-title]\").textContent = product.title;\n\n    const imageLink = node.querySelector(\"[data-upsell-image]\");\n    const titleLink = node.querySelector(\"[data-upsell-title]\");\n    const variantId = product.id.split(\"/\").pop();\n    const variantName= variant.title;\n    console.log(variantName);\n    console.log('its hgh');\n    console.log(variant);\n    node.querySelector(\"[data-upsell-variant]\").textContent = variantName;\n    \n    if (imageLink && variantId) {\n      imageLink.href = `/products/${product.handle}?variant=${variantId}`;\n      titleLink.href = `/products/${product.handle}?variant=${variantId}`;\n    }\n\n    const priceEl = node.querySelector(\"[data-upsell-price]\");\n    priceEl.textContent = new Intl.NumberFormat(undefined, {\n      style: \"currency\",\n      currency: variant.price.currencyCode,\n    }).format(parseFloat(variant.price.amount));\n\n    const copyText = copy ?? \"\";\n    node.querySelector(\"[data-upsell-description]\").textContent =\n      copy.length > 90 ? copy.slice(0, 90) + \"\u2026\" : copyText;\n\n    const imageContainer = node.querySelector(\".card--image\");\n    if (product.featuredImage?.url) {\n      const img = document.createElement(\"img\");\n      img.src = product.featuredImage.url;\n      img.alt = product.featuredImage.altText ?? product.title;\n      img.className = \"card--media\";\n      imageContainer.replaceChildren(img);\n    }\n    const numericVariantId = variant.id.split(\"/\").pop();\n    const addButton = node.querySelector(\"[data-upsell-add-button]\");\n    addButton.addEventListener(\"click\", async () => {\n      if (addButton.disabled) return;\n      addButton.disabled = true;\n      try {\n        await addProductToCart(numericVariantId);\n         const freshCart = await getCart();\n        if (window.cart) {\n          window.cart.setData(freshCart);\n          await window.cart.refreshVueCart();\n        } else {\n          window.wetheme?.toggleRightDrawer?.(\"cart\", \"maintain\", { cart: freshCart });\n        }\n      } catch (error) {\n        console.error(\"Failed to add upsell to cart:\", error);\n        addButton.disabled = false;\n      }\n    });\n    this.replaceChildren(node);\n  }\n\n  // ====================== | Helper Functions | ===============================\n\n  itemMatchOnList(items, list) {\n    return list.some((current) => items.get(current));\n  }\n}\n\nif (!customElements.get(\"upsell-component\")) {\n  customElements.define(\"upsell-component\", Upsell);\n}\n\n// ======================== | Storefront API | ================================\n\n// constants for the Storefront API\nconst APIVERSION = \"2024-04\";\nconst UPSELL_CACHE_KEY = \"upsellProductsCached\";\nconst UPSELL_CACHE_TTL_MS = 10 * 60 * 1000;\n\nfunction loadUpsellCache() {\n  try {\n    return JSON.parse(sessionStorage.getItem(UPSELL_CACHE_KEY)) || {};\n  } catch {\n    return {};\n  }\n}\n\nfunction saveUpsellCache(cache) {\n  try {\n    sessionStorage.setItem(UPSELL_CACHE_KEY, JSON.stringify(cache));\n  } catch {}\n}\n\nasync function addProductToCart(variantId) {\n  const response = await fetch(\"/cart/add.js\", {\n    method: \"POST\",\n    headers: {\n      \"Content-Type\": \"application/json\",\n    },\n    body: JSON.stringify({\n      items: [\n        {\n          id: variantId,\n          quantity: 1,\n        },\n      ],\n    }),\n  });\n  if (!response.ok) {\n    throw new Error(\"Failed to add product to cart\");\n  }\n  const result = await response.json();\n  return result;\n}\nasync function getProductByVariantIdStorefront(variantGid, domain, controller) {\n  const cache = loadUpsellCache();\n  const entry = cache[variantGid];\n  if (entry && Date.now() - entry.ts < UPSELL_CACHE_TTL_MS) {\n    return entry.node;\n  }\n\n  const response = await fetch(\n    `https://${domain}/api/${APIVERSION}/graphql.json`,\n    {\n      method: \"POST\",\n      headers: {\n        \"Content-Type\": \"application/json\",\n      },\n      body: JSON.stringify({\n        query,\n        variables: { variantId: variantGid },\n      }),\n      signal: controller.signal,\n    },\n  );\n  const result = await response.json();\n  if (result.errors) {\n    console.error(\"GraphQL errors\", result.errors);\n    throw new Error(\"GraphQL request failed\");\n  }\n  // node might be null or not a ProductVariant, so check:\n  const node = result.data.node;\n  if (!node) {\n    throw new Error(\"Variant not found or not a ProductVariant\");\n  }\n\n  cache[variantGid] = { node, ts: Date.now() };\n  saveUpsellCache(cache);\n  return node;\n}\n\nasync function getCart() {\n  const response = await fetch(\"/cart.js\");\n  if (!response.ok) {\n    throw new Error(\"Failed to fetch cart\");\n  }\n  const result = await response.json();\n  return result;\n}\n\nfunction parseCountry(countryCode, availableCountries) {\n  const userCountry = availableCountries.find(\n    (country) => country.iso_code === countryCode,\n  );\n  return userCountry;\n}\n\nconst detectUserCountry = () => {\n  let userCountryPromise = null;\n\n  console.log(313, window.Shopify);\n  const SHOPIFY_FALLBACK_COUNTRY = {\n    iso_code: window.Shopify.country,\n    name: \"\",\n  };\n\n  if (userCountryPromise) return userCountryPromise;\n  const STORAGE_KEY = \"user_country\";\n  const cached = sessionStorage.getItem(STORAGE_KEY);\n  if (cached) {\n    try {\n      window.Shopify.userCountry = JSON.parse(cached);\n      return (userCountryPromise = Promise.resolve(window.Shopify.userCountry));\n    } catch (e) {\n      sessionStorage.removeItem(STORAGE_KEY);\n    }\n  }\n\n  const useFallback = () => {\n    window.Shopify.userCountry = SHOPIFY_FALLBACK_COUNTRY;\n    return SHOPIFY_FALLBACK_COUNTRY;\n  };\n\n  const endpoint =\n    window.Shopify.routes.root + \"browsing_context_suggestions.json\";\n    userCountryPromise = fetch(endpoint, {\n      headers: { Accept: \"application/json\" },\n    })\n    .then((res) => {\n      if (!res.ok) throw new Error(\"Status \" + res.status);\n      return res.json();\n    })\n    .then((data) => {\n      const detected = data?.detected_values?.country;\n      if (!detected) return useFallback();\n      const country = { iso_code: detected.handle, name: detected.name };\n      sessionStorage.setItem(STORAGE_KEY, JSON.stringify(country));\n      window.Shopify.userCountry = country;\n      return country;\n    })\n    .catch((err) => {\n      console.warn(\n        \"Geo-IP detection failed, using Shopify storefront country\",\n        err,\n      );\n      userCountryPromise = null;\n      return useFallback();\n    });\n  return userCountryPromise;\n};\n\nconst query = `\n  query GetProductByVariantId($variantId: ID!) {\n    node(id: $variantId) {\n      ... on ProductVariant {\n        id\n        title\n        price {\n          amount\n          currencyCode\n        }\n        product {\n          id\n          title\n          handle\n          featuredImage {\n            url\n            altText\n          }\n        }\n      }\n    }\n  }\n`;"],
  "mappings": "AAAA,MAAM,kBAAoB,sBAE1B,MAAM,eAAe,WAAY,CAC/B,aAAc,CACZ,MAAM,EAEN,KAAK,YAAc,KACnB,KAAK,mBAAqB,KAE1B,KAAK,SAAW,KAChB,KAAK,gBAAkB,KAEvB,KAAK,aAAe,KACpB,KAAK,gBAAkB,KACvB,KAAK,kBAAoB,KACzB,KAAK,0BAA4B,KAEjC,KAAK,WAAa,GAClB,KAAK,cAAgB,GACrB,KAAK,OAAS,IAChB,CAEA,MAAM,mBAAoB,CACnB,OAAO,0BACV,KAAK,gBAAgB,EACrB,MAAM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