{
  "version": 3,
  "sources": ["/cdn/shop/t/2/assets/ithara-brand.js?ithara_links=20260602a"],
  "sourcesContent": ["var itharaBrandScript = document.currentScript;\n\ndocument.addEventListener('DOMContentLoaded', function () {\n  var brandScript = itharaBrandScript;\n  var brandAssetBase = brandScript && brandScript.src ? brandScript.src : '';\n  var missingCollectionPaths = [\n    '/collections/him',\n    '/collections/day-out',\n    '/collections/wedding-wear',\n    '/collections/gold',\n    '/collections/rose-gold',\n    '/collections/multicoloured-gemstones'\n  ];\n\n  function itharaAssetUrl(fileName) {\n    if (!brandAssetBase) return '';\n    return new URL(fileName, brandAssetBase).href;\n  }\n\n  function fixMissingCollectionLinks() {\n    document.querySelectorAll('a[href^=\"/collections/\"]').forEach(function (link) {\n      if (missingCollectionPaths.indexOf(link.getAttribute('href')) !== -1) {\n        link.setAttribute('href', '/collections/all');\n        link.removeAttribute('target');\n      }\n    });\n  }\n\n  function refreshColourShop() {\n    var section = document.getElementById('ithara_shop_by_colour');\n    if (!section || document.getElementById('ithara-colour-shop-runtime')) return;\n\n    var css = [\n      '.template-index #MainContent #ithara_shop_by_colour,.template-index #MainContent #ithara_shop_by_colour .section-full{background:#3f295b!important;background-color:#3f295b!important}',\n      '.template-index #MainContent #ithara_shop_by_colour .bls__section-header{max-width:820px!important;margin:0 auto 34px!important}',\n      '.template-index #MainContent #ithara_shop_by_colour .bls__section-heading{color:#fff7ec!important;font-size:clamp(34px,4vw,54px)!important;font-weight:600!important;line-height:1.08!important;text-shadow:0 2px 12px rgba(0,0,0,.18)!important}',\n      '.template-index #MainContent #ithara_shop_by_colour .bls__section-heading:before,.template-index #MainContent #ithara_shop_by_colour .bls__section-heading:after{background:#d9ae4f!important;opacity:.9!important}',\n      '.template-index #MainContent #ithara_shop_by_colour .bls__section-des,.template-index #MainContent #ithara_shop_by_colour .bls__section-des p{color:rgba(255,247,236,.9)!important;font-size:17px!important;font-weight:600!important;line-height:1.45!important}',\n      '.template-index #MainContent #ithara_shop_by_colour .ithara-colour-shop__grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:28px!important;max-width:1180px!important;margin:0 auto!important}',\n      '.template-index #MainContent #ithara_shop_by_colour .ithara-colour-shop__item{display:grid!important;grid-template-rows:1fr auto!important;gap:0!important;overflow:hidden!important;padding:0!important;min-height:360px!important;border:1px solid rgba(217,174,79,.38)!important;border-radius:8px!important;background:#fff!important;box-shadow:0 18px 38px rgba(18,9,33,.22)!important}',\n      '.template-index #MainContent #ithara_shop_by_colour .ithara-colour-shop__image{display:block!important;width:100%!important;height:286px!important;overflow:hidden!important;background:#f3f0eb!important}',\n      '.template-index #MainContent #ithara_shop_by_colour .ithara-colour-shop__image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;transition:transform .35s ease!important}',\n      '.template-index #MainContent #ithara_shop_by_colour .ithara-colour-shop__label{display:flex!important;align-items:center!important;justify-content:center!important;min-height:74px!important;padding:14px 16px!important;background:#fff!important;color:#3f295b!important;font-size:19px!important;font-weight:900!important;line-height:1.18!important;text-align:center!important}',\n      '@media (max-width:991px){.template-index #MainContent #ithara_shop_by_colour .ithara-colour-shop__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.template-index #MainContent #ithara_shop_by_colour .ithara-colour-shop__image{height:240px!important}}',\n      '@media (max-width:575px){.template-index #MainContent #ithara_shop_by_colour .ithara-colour-shop__grid{grid-template-columns:1fr!important;gap:18px!important}.template-index #MainContent #ithara_shop_by_colour .ithara-colour-shop__image{height:230px!important}}'\n    ].join('');\n\n    var style = document.createElement('style');\n    style.id = 'ithara-colour-shop-runtime';\n    style.textContent = css;\n    document.head.appendChild(style);\n\n    var images = {\n      gold: 'ithara-colour-gold.png',\n      'rose gold': 'ithara-colour-rose-gold.png',\n      silver: 'ithara-colour-silver.png',\n      'multicoloured gemstones': 'ithara-colour-multicoloured-gemstones.png'\n    };\n\n    section.querySelectorAll('.ithara-colour-shop__item').forEach(function (card) {\n      var label = card.querySelector('.ithara-colour-shop__label');\n      var image = card.querySelector('.ithara-colour-shop__image img');\n      var key = label ? label.textContent.trim().toLowerCase() : '';\n      if (image && images[key]) {\n        image.src = itharaAssetUrl(images[key]);\n        image.removeAttribute('srcset');\n        image.alt = label.textContent.trim();\n      }\n    });\n  }\n\n  refreshColourShop();\n  fixMissingCollectionLinks();\n\n  document.querySelectorAll('[data-ithara-delivery-check]').forEach(function (box) {\n    var input = box.querySelector('.ithara-delivery-check__input');\n    var button = box.querySelector('.ithara-delivery-check__button');\n    var message = box.querySelector('.ithara-delivery-check__message');\n\n    if (!input || !button || !message) return;\n\n    function formatDate(date) {\n      return date.toLocaleDateString('en-IN', {\n        day: 'numeric',\n        month: 'short'\n      });\n    }\n\n    function checkDelivery() {\n      var pincode = input.value.replace(/\\D/g, '').slice(0, 6);\n      input.value = pincode;\n\n      if (pincode.length !== 6) {\n        message.textContent = 'Please enter a valid 6 digit pincode.';\n        box.classList.add('is-error');\n        return;\n      }\n\n      var start = new Date();\n      var end = new Date();\n      start.setDate(start.getDate() + 4);\n      end.setDate(end.getDate() + 7);\n      message.textContent = 'Expected delivery to ' + pincode + ': ' + formatDate(start) + ' - ' + formatDate(end) + '.';\n      box.classList.remove('is-error');\n    }\n\n    input.addEventListener('input', function () {\n      input.value = input.value.replace(/\\D/g, '').slice(0, 6);\n    });\n    button.addEventListener('click', checkDelivery);\n    input.addEventListener('keydown', function (event) {\n      if (event.key === 'Enter') {\n        event.preventDefault();\n        checkDelivery();\n      }\n    });\n  });\n});\n"],
  "mappings": "AAAA,IAAI,kBAAoB,SAAS,cAEjC,SAAS,iBAAiB,mBAAoB,UAAY,CACxD,IAAI,YAAc,kBACd,eAAiB,aAAe,YAAY,IAAM,YAAY,IAAM,GACpE,uBAAyB,CAC3B,mBACA,uBACA,4BACA,oBACA,yBACA,sCACF,EAEA,SAAS,eAAe,SAAU,CAChC,OAAK,eACE,IAAI,IAAI,SAAU,cAAc,EAAE,KADb,EAE9B,CAEA,SAAS,2BAA4B,CACnC,S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