{
  "version": 3,
  "sources": ["/cdn/shop/t/35/assets/rav-xmas26-load.js?release=1204"],
  "sourcesContent": ["'use strict';\n(async()=>{\n const node=document.getElementById('rav-xmas-context');\n if(!node)return;\n const c=JSON.parse(node.textContent);\n if(Date.now()>=Date.parse(c.ends))return;\n const apiBase=location.hostname.endsWith('.shopifypreview.com')?(c.store==='us'?'https://ravvast.com':'https://ravvast.eu'):'';\n const shop=async(query,variables)=>{\n  const response=await fetch(apiBase+'/api/2026-10/graphql.json',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({query,variables}),signal:AbortSignal.timeout(15000)});\n  if(!response.ok)throw Error('Storefront');const data=await response.json();if(data.errors)throw Error('Storefront data');return data.data;\n };\n const run=async()=>{\n  const tax=c.vat;c.root=c.root.replace(/\\/?$/,'/');\n  const key=['rav_xmas_quote_v3',c.store,c.country,c.lang,c.currency].join('/');\n  let data=null;try{const v=JSON.parse(sessionStorage.getItem(key));if(v&&Date.now()-v.time<120000)data=v.rows}catch{}\n  const baseOffer=c.store==='us'&&c.currency==='USD'?100:c.store==='eu'&&c.currency==='EUR'?50:0;\n  const liquid=JSON.parse(document.getElementById('rav-wave-liquid')?.textContent||'[]').filter(r=>c.products[r.id]?.[1]===r.sku);\n  if(!data&&baseOffer&&liquid.length===Object.keys(c.products).length)data=liquid.map(r=>({...r,family:c.products[r.id][0],net:Math.max(0,Math.round((r.price-baseOffer)*100)/100)}));\n  if(!data){\n   const ids=Object.keys(c.products).map(id=>'gid://shopify/ProductVariant/'+id);\n   const result=await shop('query($ids:[ID!]!,$country:CountryCode!,$lang:LanguageCode!) @inContext(country:$country,language:$lang){localization{country{isoCode currency{isoCode}}} nodes(ids:$ids){...on ProductVariant{id sku availableForSale price{amount currencyCode} compareAtPrice{amount} image{url(transform:{maxWidth:550})} product{id handle title featuredImage{url(transform:{maxWidth:550})}}}}}',{ids,country:c.country,lang:/^(zh-|pt-br$)/i.test(c.lang)?c.lang.toUpperCase().replace('-','_'):c.lang.split('-')[0].toUpperCase()});\n   if(result.localization.country.isoCode!==c.country||result.localization.country.currency.isoCode!==c.currency)return;\n   const variants=result.nodes.filter(v=>v&&v.price.currencyCode===c.currency&&v.sku===c.products[v.id.split('/').pop()][1]),sample=variants.find(v=>v.availableForSale);\n   if(!sample)return;\n   const calc=baseOffer?null:await shop('mutation($country:CountryCode!,$input:CartInput!) @inContext(country:$country){cartCreate(input:$input){userErrors{message} cart{discountCodes{code applicable} lines(first:1){nodes{discountAllocations{...on CartCodeDiscountAllocation{code} discountedAmount{amount currencyCode}}}}}}}',{country:c.country,input:{buyerIdentity:{countryCode:c.country},lines:[{merchandiseId:sample.id,quantity:1}],discountCodes:['RAVXMAS']}});\n   const cart=calc?.cartCreate.cart,off=baseOffer?{amount:baseOffer,currencyCode:c.currency}:cart?.lines.nodes[0]?.discountAllocations.find(d=>d.code==='RAVXMAS')?.discountedAmount;\n   if(!baseOffer&&(calc.cartCreate.userErrors.length||!cart?.discountCodes.some(x=>x.code==='RAVXMAS'&&x.applicable)||off?.currencyCode!==c.currency))return;\n   const unit=10**new Intl.NumberFormat('en',{style:'currency',currency:c.currency}).resolvedOptions().maximumFractionDigits;\n   data=variants.map(v=>{const id=v.id.split('/').pop(),price=Number(v.price.amount);return {id,sku:v.sku,productId:v.product.id.split('/').pop(),family:c.products[id][0],handle:v.product.handle,name:v.product.title,price,net:Math.max(0,Math.round(price*unit)-Math.round(Number(off.amount)*unit))/unit,compare:Number(v.compareAtPrice?.amount)||null,image:v.image?.url||v.product.featuredImage?.url}});\n   try{sessionStorage.setItem(key,JSON.stringify({time:Date.now(),rows:data}))}catch{}\n  }\n  c.rows=data;c.vat=tax;\n  const rule=c.windows[c.country];delete c.windows;delete c.products;\n  if(rule&&Date.now()<Date.parse(rule[0])){\n   c.deliveryUntil=rule[0];c.day=rule[1];\n   if(c.warehouseUrl)c.stockUrl=c.warehouseUrl;\n  }\n  delete c.warehouseUrl;\n  node.textContent=JSON.stringify(c);\n  const script=document.createElement('script');script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