{
  "version": 3,
  "sources": ["/cdn/shop/t/161/assets/k2-pdp-shipping-estimator.js?k2_shipping_v=11"],
  "sourcesContent": ["(function() {\n  window.K2ShippingAssetVersion = 'v11';\n  console.warn('[K2 shipping ASSET] Loaded VERSION 11');\n\n  const TOKEN = 'c913e8a3f3b8482d41ab221c52791ffa';\n  const SHOP_DOMAIN = 'k2-industries.myshopify.com';\n  const API_VERSION = '2026-04';\n\n  const FORCE_US_TEST_LOCATION = false;\n\n  const TEST_GEO = {\n    country_code: 'US',\n    region_code: 'FL',\n    postal: '34952',\n    city: 'Port St. Lucie'\n  };\n\n  window.K2ShippingRateCache = window.K2ShippingRateCache || {};\n\n  function parseGraphQLMultipart(text) {\n  const parts = [];\n\n  text.split('--graphql').forEach(function(chunk) {\n    const jsonStart = chunk.indexOf('{');\n    const jsonEnd = chunk.lastIndexOf('}');\n\n    if (jsonStart === -1 || jsonEnd === -1) return;\n\n    const jsonText = chunk.slice(jsonStart, jsonEnd + 1);\n\n    try {\n      parts.push(JSON.parse(jsonText));\n    } catch (error) {}\n  });\n\n  return parts;\n}\n\nfunction postStorefrontGraphQL(query, variables) {\n  return new Promise(function(resolve, reject) {\n    const xhr = new XMLHttpRequest();\n    const url = 'https://' + SHOP_DOMAIN + '/api/' + API_VERSION + '/graphql.json';\n\n    xhr.open('POST', url, true);\n    xhr.timeout = 20000;\n\n    xhr.setRequestHeader('Content-Type', 'application/json');\n    xhr.setRequestHeader('X-Shopify-Storefront-Access-Token', TOKEN);\n\n    xhr.onload = function() {\n      const contentType = xhr.getResponseHeader('content-type') || '';\n      const text = xhr.responseText || '';\n\n      if (contentType.includes('multipart/mixed') || text.includes('--graphql')) {\n        const parts = parseGraphQLMultipart(text);\n\n        resolve({\n          status: xhr.status,\n          json: parts[0] || null,\n          parts: parts,\n          raw: text\n        });\n\n        return;\n      }\n\n      let json;\n\n      try {\n        json = JSON.parse(text);\n      } catch (error) {\n        reject(new Error('Could not parse Shopify response: ' + text));\n        return;\n      }\n\n      resolve({\n        status: xhr.status,\n        json: json,\n        parts: [json],\n        raw: text\n      });\n    };\n\n    xhr.onerror = function() {\n      reject(new Error('Shopify Storefront XHR failed'));\n    };\n\n    xhr.ontimeout = function() {\n      reject(new Error('Shopify Storefront XHR timed out'));\n    };\n\n    xhr.send(JSON.stringify({\n      query: query,\n      variables: variables\n    }));\n  });\n}\n\n  function formatMoney(amount, currencyCode) {\n    return new Intl.NumberFormat('en-US', {\n      style: 'currency',\n      currency: currencyCode || 'USD'\n    }).format(Number(amount));\n  }\n\n  function getVariantId(root) {\n    const input =\n      document.querySelector('form[action*=\"/cart/add\"] [name=\"id\"]') ||\n      document.querySelector('form[action*=\"/cart/add\"] [name=\"id\"]');\n\n    return input ? input.value : root.dataset.currentVariantId;\n  }\n\n  function getGeo() {\n    if (FORCE_US_TEST_LOCATION) {\n      return Promise.resolve(TEST_GEO);\n    }\n\n    if (window._k2GeoCache) {\n      return Promise.resolve(window._k2GeoCache);\n    }\n\n    return fetch('https://ipapi.co/json/')\n      .then(function(response) {\n        return response.json();\n      })\n      .then(function(geo) {\n        window._k2GeoCache = geo;\n        return geo;\n      });\n  }\n\n  function clearFreeShippingUI(root) {\n    const freeBadgeEl = root.querySelector('[data-free-shipping-badge]');\n\n    root.classList.remove('is-k2-free-shipping');\n\n    if (freeBadgeEl) {\n        freeBadgeEl.classList.add('is-hidden');\n    }\n    }\n\n    function showFreeShipping(root) {\n    const estimateEl = root.querySelector('[data-pdp-shipping-estimate]');\n    const freeBadgeEl = root.querySelector('[data-free-shipping-badge]');\n    const freeBadgeText = root.querySelector('[data-free-shipping-badge-text]');\n\n    root.classList.add('is-k2-free-shipping');\n\n    if (estimateEl) {\n        estimateEl.classList.add('is-hidden');\n        estimateEl.textContent = '';\n    }\n\n    if (freeBadgeEl) {\n        freeBadgeEl.classList.remove('is-hidden');\n    }\n\n    if (freeBadgeText) {\n        freeBadgeText.textContent = 'FREE Shipping';\n    }\n    }\n\n    function shouldShowFreeShipping(root, countryCode) {\n    const mode = root.dataset.freeShippingMode || 'none';\n\n    if (mode === 'worldwide') {\n        return true;\n    }\n\n    if (mode === 'us-only' && countryCode === 'US') {\n        return true;\n    }\n\n    return false;\n    }\n\n  function showText(root, text) {\n    const estimateEl = root.querySelector('[data-pdp-shipping-estimate]');\n\n    if (!estimateEl) return;\n\n    clearFreeShippingUI(root);\n\n    estimateEl.classList.remove('is-hidden');\n    estimateEl.textContent = text;\n    }\n\n  function showHtml(root, html) {\n    const estimateEl = root.querySelector('[data-pdp-shipping-estimate]');\n\n    if (!estimateEl) return;\n\n    clearFreeShippingUI(root);\n\n    estimateEl.classList.remove('is-hidden');\n    estimateEl.innerHTML = html;\n    }\n\n  function getCheapestOption(groups) {\n    const options = [];\n\n    (groups || []).forEach(function(group) {\n      (group.deliveryOptions || []).forEach(function(option) {\n        if (!option || !option.estimatedCost) return;\n\n        if (option.deliveryMethodType && option.deliveryMethodType !== 'SHIPPING') {\n          return;\n        }\n\n        options.push(option);\n      });\n    });\n\n    if (!options.length) return null;\n\n    return options.reduce(function(a, b) {\n      return Number(a.estimatedCost.amount) < Number(b.estimatedCost.amount) ? a : b;\n    });\n  }\n\n  function renderResult(root, city, option) {\n    const price = option.estimatedCost;\n    const amount = Number(price.amount);\n\n    if (amount === 0) {\n        showFreeShipping(root);\n        return;\n    }\n\n    showHtml(\n      root,\n      'Estimated oversized item fee to ' +\n      city +\n      ': <strong>' +\n      formatMoney(price.amount, price.currencyCode) +\n      '</strong>'\n    );\n  }\n\n  function wait(ms) {\n  return new Promise(function(resolve) {\n    setTimeout(resolve, ms);\n  });\n}\n\nasync function queryCartRates(cartId) {\n  const query = `\n    query GetEstimateCart($cartId: ID!) {\n      cart(id: $cartId) {\n        id\n        ...DeliveryGroups @defer\n      }\n    }\n\n    fragment DeliveryGroups on Cart {\n      deliveryGroups(first: 10, withCarrierRates: true) {\n        nodes {\n          deliveryOptions {\n            title\n            handle\n            deliveryMethodType\n            estimatedCost {\n              amount\n              currencyCode\n            }\n          }\n        }\n      }\n    }\n  `;\n\n  const result = await postStorefrontGraphQL(query, {\n    cartId: cartId\n  });\n\n  const groups = [];\n\n  (result.parts || [result.json]).forEach(function(part) {\n    const directGroups =\n      part &&\n      part.data &&\n      part.data.cart &&\n      part.data.cart.deliveryGroups &&\n      part.data.cart.deliveryGroups.nodes;\n\n    if (directGroups && directGroups.length) {\n      groups.push.apply(groups, directGroups);\n    }\n\n    const incremental = part && part.incremental ? part.incremental : [];\n\n    incremental.forEach(function(increment) {\n      const deferredGroups =\n        increment &&\n        increment.data &&\n        increment.data.deliveryGroups &&\n        increment.data.deliveryGroups.nodes;\n\n      if (deferredGroups && deferredGroups.length) {\n        groups.push.apply(groups, deferredGroups);\n      }\n    });\n  });\n\n  const cheapest = getCheapestOption(groups);\n\n  console.error('[K2 shipping ASSET] Carrier poll result:', {\n    status: result.status,\n    cartId: cartId,\n    deliveryGroupsCount: groups.length,\n    cheapest: cheapest,\n    parts: result.parts,\n    raw: result.raw\n  });\n\n  return cheapest;\n}\n\nasync function pollCartForRates(cartId) {\n  const delays = [700, 1200, 2000, 3000];\n\n  for (const delay of delays) {\n    await wait(delay);\n\n    const cheapest = await queryCartRates(cartId);\n\n    if (cheapest) {\n      return cheapest;\n    }\n  }\n\n  return null;\n}\n\nasync function addDeliveryAddressToCart(cartId, address) {\n  const query = `\n    mutation CartDeliveryAddressesAdd($id: ID!, $addresses: [CartSelectableAddressInput!]!) {\n      cartDeliveryAddressesAdd(cartId: $id, addresses: $addresses) {\n        userErrors {\n          field\n          message\n          code\n        }\n        warnings {\n          message\n          code\n          target\n        }\n        cart {\n          id\n          delivery {\n            addresses {\n              id\n              selected\n              oneTimeUse\n              address {\n                ... on CartDeliveryAddress {\n                  address1\n                  city\n                  provinceCode\n                  zip\n                  countryCode\n                }\n              }\n            }\n          }\n          deliveryGroups(first: 10) {\n            nodes {\n              deliveryOptions {\n                title\n                handle\n                deliveryMethodType\n                estimatedCost {\n                  amount\n                  currencyCode\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  `;\n\n  const result = await postStorefrontGraphQL(query, {\n    id: cartId,\n    addresses: [\n      {\n        selected: true,\n        address: {\n          deliveryAddress: address\n        }\n      }\n    ]\n  });\n\n  const payload = result.json?.data?.cartDeliveryAddressesAdd;\n  const cart = payload?.cart;\n  const groups = cart?.deliveryGroups?.nodes || [];\n  const cheapest = getCheapestOption(groups);\n\n  console.error('[K2 shipping ASSET] Address add result:', {\n    status: result.status,\n    userErrors: payload?.userErrors || [],\n    warnings: payload?.warnings || [],\n    addresses: cart?.delivery?.addresses || [],\n    deliveryGroupsCount: groups.length,\n    cheapest,\n    fullResponse: result.json\n  });\n\n  return {\n    cart,\n    groups,\n    cheapest,\n    payload,\n    result\n  };\n}\n\n  async function estimateShipping(root, forceRun) {\n    if (!root) return;\n\n    const variantId = getVariantId(root);\n\n    if (!variantId) {\n      showText(root, 'Oversized item fee calculated at checkout');\n      console.warn('[K2 shipping ASSET] No variant ID found.');\n      return;\n    }\n\n    if (root.dataset.k2EstimatorInFlight === 'true') {\n      console.log('[K2 shipping ASSET] Already running, skip duplicate.');\n      return;\n    }\n\n    const geo = await getGeo();\n\n    const countryCode = String(geo.country_code || 'US').toUpperCase();\n    const provinceCode = String(geo.region_code || '').replace(/^[A-Z]+-/, '').toUpperCase();\n    const zip = geo.postal || '';\n    const city = geo.city || '';\n\n    if (shouldShowFreeShipping(root, countryCode)) {\n        showFreeShipping(root);\n\n        root.dataset.k2EstimatorDone = 'true';\n        root.dataset.k2EstimatorInFlight = 'false';\n\n        return;\n    }\n\n    if (!countryCode || !zip) {\n      showText(root, 'Oversized item fee calculated at checkout');\n      console.warn('[K2 shipping ASSET] Missing country/zip:', geo);\n      return;\n    }\n\n    const cacheKey = [variantId, countryCode, provinceCode, zip].join('|');\n\n    if (!forceRun && root.dataset.k2EstimatorKey === cacheKey && root.dataset.k2EstimatorDone === 'true') {\n      return;\n    }\n\n    if (window.K2ShippingRateCache[cacheKey]) {\n      renderResult(root, city, window.K2ShippingRateCache[cacheKey]);\n      return;\n    }\n\n    root.dataset.k2EstimatorInFlight = 'true';\n    root.dataset.k2EstimatorKey = cacheKey;\n    root.dataset.k2EstimatorDone = 'false';\n\n    showText(root, 'Detecting oversized item fee...');\n\n    const query = `\n      mutation CreateEstimateCart($input: CartInput!) {\n        cartCreate(input: $input) {\n          cart {\n            id\n            deliveryGroups(first: 10) {\n              nodes {\n                deliveryOptions {\n                  title\n                  handle\n                  deliveryMethodType\n                  estimatedCost {\n                    amount\n                    currencyCode\n                  }\n                }\n              }\n            }\n          }\n          userErrors {\n            field\n            message\n          }\n          warnings {\n            message\n          }\n        }\n      }\n    `;\n\n    const address = {\n      firstName: 'Shipping',\n      lastName: 'Estimate',\n      address1: '123 Main St',\n      city: city,\n      countryCode: countryCode,\n      zip: zip\n    };\n\n    if (provinceCode) {\n      address.provinceCode = provinceCode;\n    }\n\n    const variables = {\n      input: {\n        lines: [\n          {\n            quantity: 1,\n            merchandiseId: 'gid://shopify/ProductVariant/' + variantId\n          }\n        ],\n        buyerIdentity: {\n          countryCode: countryCode\n        },\n        delivery: {\n          addresses: [\n            {\n              selected: true,\n              oneTimeUse: true,\n              validationStrategy: 'COUNTRY_CODE_ONLY',\n              address: {\n                deliveryAddress: address\n              }\n            }\n          ]\n        }\n      }\n    };\n\n    try {\n      const result = await postStorefrontGraphQL(query, variables);\n      const json = result.json;\n\n      const payload = json && json.data && json.data.cartCreate;\n      const cart = payload && payload.cart;\n      const groups = cart && cart.deliveryGroups && cart.deliveryGroups.nodes ? cart.deliveryGroups.nodes : [];\n      let cheapest = getCheapestOption(groups);\n\nif (!cheapest && cart && cart.id) {\n  console.error('[K2 shipping ASSET] No delivery groups after cartCreate. Adding delivery address...');\n\n  const addressResult = await addDeliveryAddressToCart(cart.id, address);\n\n  if (addressResult.cheapest) {\n    cheapest = addressResult.cheapest;\n  }\n}\n\nif (!cheapest && cart && cart.id) {\n  console.error('[K2 shipping ASSET] Still no delivery groups after address add. Polling cart...');\n  cheapest = await pollCartForRates(cart.id);\n}\n\n        window.K2ShippingLastResult = {\n        status: result.status,\n        cartCreated: Boolean(cart && cart.id),\n        cartId: cart && cart.id,\n        userErrors: payload && payload.userErrors ? payload.userErrors : [],\n        warnings: payload && payload.warnings ? payload.warnings : [],\n        deliveryGroupsCount: groups.length,\n        cheapest: cheapest,\n        fullResponse: json\n        };\n\n        console.warn('[K2 shipping ASSET] Result:', window.K2ShippingLastResult);\n\n        if (!cheapest) {\n        showText(root, 'Oversized item fee calculated at checkout');\n        return;\n        }\n\n        window.K2ShippingRateCache[cacheKey] = cheapest;\n        renderResult(root, city, cheapest);\n\n        root.dataset.k2EstimatorDone = 'true';\n    } catch (error) {\n      window.K2ShippingLastError = error;\n      console.warn('[K2 shipping ASSET] Failed:', error);\n      showText(root, 'Oversized item fee calculated at checkout');\n    } finally {\n      root.dataset.k2EstimatorInFlight = 'false';\n    }\n  }\n\n  function initK2ShippingEstimator(forceRun) {\n  const roots = Array.from(document.querySelectorAll('[data-delivery-stock-fee]'));\n\n  console.error('[K2 shipping ASSET] Delivery blocks found:', roots.length);\n\n  if (!roots.length) {\n    return Promise.resolve({\n      ok: false,\n      reason: 'No [data-delivery-stock-fee] blocks found',\n      version: window.K2ShippingAssetVersion\n    });\n  }\n\n  const jobs = roots.map(function(root) {\n    return estimateShipping(root, Boolean(forceRun));\n  });\n\n  return Promise.allSettled(jobs).then(function(results) {\n    return {\n      ok: true,\n      version: window.K2ShippingAssetVersion,\n      blocks: roots.length,\n      estimateText: document.querySelector('[data-pdp-shipping-estimate]')?.textContent.trim(),\n      lastResult: window.K2ShippingLastResult || null,\n      lastError: window.K2ShippingLastError ? String(window.K2ShippingLastError) : null,\n      jobs: results,\n      dataset: { ...roots[0].dataset }\n    };\n  });\n}\n\nwindow.K2RunShippingEstimator = function(forceRun) {\n  return initK2ShippingEstimator(Boolean(forceRun));\n};\n\nsetTimeout(function() {\n  initK2ShippingEstimator(false);\n}, 700);\n\nsetTimeout(function() {\n  initK2ShippingEstimator(false);\n}, 1800);\n\ndocument.addEventListener('change', function(event) {\n  if (\n    event.target.matches('[name=\"id\"]') ||\n    event.target.matches('select') ||\n    event.target.matches('input[type=\"radio\"]')\n  ) {\n    setTimeout(function() {\n      initK2ShippingEstimator(true);\n    }, 500);\n  }\n});\n})();"],
  "mappings": "CAAC,UAAW,CACV,OAAO,uBAAyB,MAChC,QAAQ,KAAK,uCAAuC,EAEpD,MAAM,MAAQ,mCACR,YAAc,8BACd,YAAc,UAEd,uBAAyB,GAEzB,SAAW,CACf,aAAc,KACd,YAAa,KACb,OAAQ,QACR,KAAM,gBACR,EAEA,OAAO,oBAAsB,OAAO,qBAAuB,CAAC,EAE5D,SAAS,sBAAsB,KAAM,CACrC,MAAM,MAAQ,CAAC,EAEf,YAAK,MAAM,WAAW,EAAE,QAAQ,SAAS,MAAO,CAC9C,MAAM,UAAY,MAAM,QAAQ,GAAG,EAC7B,QAAU,MAAM,YAAY,GAAG,EAErC,GAAI,YAAc,IAAM,UAAY,GAAI,OAExC,MAAM,SAAW,MAAM,MAAM,UAAW,QAAU,CAAC,EAEnD,GAAI,CACF,MAAM,KAAK,KAAK,MAAM,QAAQ,CAAC,CACjC,MAAgB,CAAC,CACnB,CAAC,EAEM,KACT,CAEA,SAAS,sBAAsB,MAAO,UAAW,CAC/C,OAAO,IAAI,QAAQ,SAAS,QAAS,OAAQ,CAC3C,MAAM,IAAM,IAAI,eACV,IAAM,WAAa,YAAc,QAAU,YAAc,gBAE/D,IAAI,KAAK,OAAQ,IAAK,EAAI,EAC1B,IAAI,QAAU,IAEd,IAAI,iBAAiB,eAAgB,kBAAkB,EACvD,IAAI,iBAAiB,oCAAqC,KAAK,EAE/D,IAAI,OAAS,UAAW,CACtB,MAAM,YAAc,IAAI,kBAAkB,cAAc,GAAK,GACvD,KAAO,IAAI,cAAgB,GAEjC,GAAI,YAAY,SAAS,iBAAiB,GAAK,KAAK,SAAS,WAAW,EAAG,CACzE,MAAM,MAA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