PageSourceSearch

https://www.stio.com/cdn/shop/t/656/assets/navidium-custom.js?v=96467375524098748441790002699

js stio.com collected 2026-10-02 06:30:05 UTC 41,359 bytes, 327 lines download raw bytes

1function useConsole(...e){nvdControls?.showConsoleMessage&&console.log("%c Navidium App:","color: #00a0e9; font-weight: bold;",...e)}function findClosest(e,t,n="rounding_down"){if(!e||!e.length)return null;let o=parseFloat(t),i=0,a=e.length;for(let t2=0;t2<a;t2++){let a2=e[t2],r=e[t2+1];if(o>=a2&&o<=r){n==="rounding_down"&&(i=a2),n==="rounding_up"&&(i=r);break}if(o<=a2){i=a2;break}}return i}async function removeNavidium(){fetch("/cart.js").then(e=>e.json()).then(e=>{const{items:t}=e;t.forEach(async e2=>{if(e2.handle.includes("navidium")){useConsole("removing navidium ---->>>");const t2={method:"POST",headers:{"Content-Type":"application/json;",Accept:"application/json"},body:JSON.stringify({id:String(e2.variant_id),quantity:0})};fetch("/cart/change.js",t2).then(e3=>e3.json()).then(e3=>location.reload())}})})}(function(){const e="nvd-styles";if(!document.getElementById(e)){const t=document.getElementsByTagName("head")[0],n=document.createElement("link");n.id=e,n.rel="stylesheet",n.type="text/css",n.href="https://navidium-static-assets.s3.us-east-1.amazonaws.com/navidium-widgets/css/index.css",n.media="all",t.appendChild(n)}})(),(function(){const e=Shopify.currency;useConsole("storing currency",e),localStorage.setItem("nvdCurrency",JSON.stringify(e))})();const nvdLocationFinder=location.pathname;function formatMoney(e,t=nvdShopCurrency){typeof e=="string"&&(e=e.replace(".",""));let n="";const o=/\{\{\s*(\w+)\s*\}\}/,i=t||this.money_format;function a(e2,t2){return e2===void 0?t2:e2}function r(e2,t2,n2,o2){if(t2=a(t2,2),n2=a(n2,","),o2=a(o2,"."),isNaN(e2)||e2==null)return 0;const i2=(e2=(e2/100).toFixed(t2)).split(".");return i2[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,`$1${n2}`)+(i2[1]?o2+i2[1]:"")}switch(i.match(o)[1]){case"amount":default:n=r(e,2);break;case"amount_no_decimals":n=r(e,0);break;case"amount_with_comma_separator":n=r(e,2,".",",");break;case"amount_no_decimals_with_comma_separator":n=r(e,0,".",",")}return i.replace(o,n)}nvdLocationFinder==="/account/login"||nvdLocationFinder==="/account/register"?useConsole("Navidium Exist"):removeNavidium();const getNvdConfig=async()=>{const e=await fetch(`https://navidium-static-assets.s3.amazonaws.com/navidium-widgets/json-files/${nvdShop}.json`);return e.status==200?await e.json():await(await fetch(`https://app.navidiumapp.com/api/nvd-widget-v-n-1.php?shop_url=${nvdShop}`)).json()},prefetch=async e=>{fetch("https://geolocation-db.com/json/").then(e2=>e2.json()).then(e2=>{localStorage.setItem("nvdVisitorCountry",e2?.country_name)});let t=localStorage.getItem("nvdconfig")?JSON.parse(localStorage.getItem("nvdconfig")):null;if(t)new Date>new Date(t.expiration)&&(localStorage.removeItem("nvdconfig"),t=null,prefetch()),useConsole("Navidium config avaialable in storage");else{useConsole("Navidium config not available in storage");try{const t2=await getNvdConfig();useConsole(t2);const n=new Date,o={success:t2.success,show_on_cart:t2.nvd_show_cart,show_on_checkout:t2.nvd_show_checkout,widget_location:t2.widget_location,auto_insurance:t2.nvd_auto_insurance,nvd_name:t2.nvd_name,nvd_subtitle:t2.nvd_subtitle,widget_icon:t2.nvd_widget_icon,opt_out_icon:t2.nvd_widget_icon_alt||t2.nvd_widget_icon,learnMore:t2?.nvd_learn_more,nvd_description:t2.nvd_description,nvd_message:t2.nvd_message,protection_variants:t2.nvd_variants,product_exclusion:t2.product_exclusion,min_protection_price:t2.min_protection_value,max_protection_price:t2.max_protection_value,protection_type:t2.nvd_protection_type,protection_percentage:t2.nvd_protection_type_value,min_protection_variant:t2.min_variant_id,max_protection_variant:t2.max_variant_id,expiration:n.setDate(n.getDate()+3),nvd_widget_style:t2.nvd_widget_style,previewMode:t2.nvd_preview_mode,rounding_value:t2.rounding_value,maxThreshold:t2.threshold_value,nvd_widget_template:t2.nvd_widget_template,exclusion_action:t2?.exclusion_action,nvd_international:t2.nvd_international,nvd_international_fee:t2.nvd_international_fee,nvd_international_fee_active:t2.nvd_international_fee_active,nvd_nations:isValidJSON(t2?.nvd_nations)?JSON.parse(t2.nvd_nations):[]};if(localStorage.setItem("nvdconfig",JSON.stringify(o)),e)return e()}catch(e2){useConsole("%c navidium error","color: yellow; background-color: red; font-size: 12px",e2)}}},calculateProtection=async(e,t)=>{let n,o,i=e/parseFloat(Shopify.currency.rate),a=t.protection_type,r=t.protection_percentage,c=Number(t.min_protection_price),s=Number(t.max_protection_price),l=t.min_protection_variant,d=t.max_protection_variant,u=t.protection_variants,p=t.rounding_value;const v=t?.nvd_international_fee_active,g=t?.nvd_international_fee;a=parseInt(a),console.log("113 protection_type",a);const m=localStorage.getItem("nvdVisitorCountry"),h=t.nvd_nations?.map(e2=>e2.name);if(console.log(h),h?.includes(m)||v==1&&(r=g,useConsole("International fee is activated, International fee percentage is",r)),a==1){let e2=i*r/100;if(e2=e2.toFixed(2),e2<c)return console.log("Our protection price is less than minimum"),o=c,n=l,{price:o,variant_id:n};if(e2>s)return console.log("Our protection price is greater than maximum"),o=s,n=d,{price:o,variant_id:n};{console.log("calculating protection");const t2=Object.keys(u);return t2.sort((e3,t3)=>e3-t3),o=findClosest(t2,e2,p),o==0?{price:s,variant_id:d}:(n=u[o],console.log({price:o,variant_id:n}),{price:o,variant_id:n})}}return console.log("protection is static"),(await fetch(`https://app.navidiumapp.com/api/variant-id-checker-api-march6.php?shop_url=${nvdShop}&price=`+i)).json()},nvd_init=async()=>{console.time("nvd_init"),localStorage.setItem("nvd_running",!0);const e=localStorage.getItem("nvdconfig")?JSON.parse(localStorage.getItem("nvdconfig")):null;if(!e)return useConsole("Navidium config not avaialable in storage. Prefetching now"),void await prefetch(nvd_init);useConsole("Navidium config avaialable in storage");const t=localStorage.getItem("cart_protection")?localStorage.getItem("cart_protection"):null,n=Object.keys(JSON.parse(localStorage.getItem("extensionStorage"))||{})?.some(e2=>e2?.includes("nvd_opted_out")),o=Object.keys(JSON.parse(localStorage.getItem("extensionStorage"))||{})?.some(e2=>e2?.includes("nvd_added_from_checkout")),i=JSON.parse(localStorage.getItem("nvd_opted_out"))||n;let a=!0;if(e?.exclusion_action=="0"){const t2=isValidJSON(e.product_exclusion)?JSON.parse(e.product_exclusion):{};(await getCartCallback())?.items?.forEach(e2=>{t2?.sku?.forEach(t3=>{e2.sku===t3&&(a=!1,useConsole("Excluded product in cart, Widget hidden"))}),t2?.types?.forEach(t3=>{e2.product_type===t3&&(a=!1,useConsole("Excluded product in cart, Widget hidden"))})})}const c=localStorage.getItem("nvdVisitorCountry"),s=e.nvd_nations?.map(e2=>e2.name);e.nvd_international==0&&(s?.includes(c)||(a=!1,useConsole("Widget is disabled for international"))),e.show_on_cart==="0"&&(a=!1),useConsole("showWidget",a);const{success:l}=e;let d,u;if(useConsole("in cart protection variant",t),a&&l){const a2=await getCartCallback(checkCart),r2=await a2.total/100;useConsole("after exclusion total price is",r2);const c2=await calculateProtection(r2,e);console.log({getProtection:c2});const s2=await c2.variant_id,l2=await c2.price;e.auto_insurance;let v=parseFloat(e.maxThreshold);v=(v*parseFloat(Shopify.currency.rate)).toFixed(2);const g=r2<=0;if(document.querySelectorAll(".nvd-mini").length,localStorage.setItem("nvdProtectionPrice",l2),localStorage.setItem("nvdVariant",s2),g&&document.querySelectorAll(".nvd-mini").forEach(e2=>e2.innerHTML=""),g||v<=r2)return nvdCursorEvent("enabled"),void console.log("cart total is zero or max threshold true. No need to add protection");var p=parseInt(e.auto_insurance);p!=1&&(d=!1),d=i!=1&&i!=null,p==1&&i==null&&(d=!0),p==1&&i==0&&(d=!0),o&&(
1d=!0),n&&(d=!1);const m=e.nvd_widget_template;let h;useConsole("widget check status: ",d),u=s2,h=m==="widget-1"?buildCustomizeWidgetThemeYellow(e,l2,u,d?"checked":""):m==="widget-2"?buildCustomizeWidgetThemeBlack(e,l2,u,d?"checked":""):m==="widget-3"?buildCustomizeWidgetThemeBlue(e,l2,u,d?"checked":""):m==="widget-4"?buildCustomizeWidgetMini(e,l2,u,d?"checked":""):m==="widget-5"?buildCustomizeWidgetLarge(e,l2,u,d?"checked":""):m==="widget-7"?await buildNewCheckoutWidget(e,l2,s2,d?"checked":""):buildOldWidget(e,l2,u,d?"checked":""),t?t===s2?(useConsole("1. cart variant is same as the api variant,stay idle and build widget",t,s2),u=t,document.querySelector(".nvd-mini")&&document.querySelectorAll(".nvd-mini").forEach(e2=>{e2.innerHTML=h}),checkWidgetView()):(useConsole("cart variant and api variant is not same.swapping them now"),u=s2,t&&d&&useConsole("removing old and adding new protection"),document.querySelector(".nvd-mini")&&document.querySelectorAll(".nvd-mini").forEach(e2=>{e2.innerHTML=h}),checkWidgetView()):d?(useConsole("Protection Not available. Adding now.",t,s2),u=s2,localStorage.setItem("nvd_opted_out",!1),document.querySelector(".nvd-mini")&&document.querySelectorAll(".nvd-mini").forEach(e2=>{e2.innerHTML=h}),checkWidgetView()):(u=s2,useConsole("no protection available, just append snippet"),document.querySelector(".nvd-mini")&&document.querySelectorAll(".nvd-mini").forEach(e2=>{e2.innerHTML=h}),checkWidgetView())}else document.querySelectorAll(".nvd-mini").length&&document.querySelectorAll(".nvd-mini").forEach(e2=>e2.innerHTML=""),useConsole("%c Navidium Message:widget is shut off or limit reached.Please turn on from your app settings or check you have not exceeded your limit","color: yellow; background-color: blue; font-size: 12px");console.timeEnd("nvd_init"),localStorage.setItem("nvd_running",!1),updateLiveCart(),setTimeout(nvdCursorEvent("enabled"),1500)},getCartCallback=async e=>{const t=await fetch("/cart.js"),n=await t.json();return e?e(n):n},isValidJSON=e=>{try{return JSON.parse(e),!0}catch{return!1}},checkCart=async(e,t=null)=>{const n=await e.currency;if(useConsole("cart in check cart",e),e.items.length!=0){const{items:t2}=e;let o=parseFloat(e.total_price);const i=[];let a,r=!1;const c=localStorage.getItem("nvdconfig")?JSON.parse(localStorage.getItem("nvdconfig")):null,s=isValidJSON(c.product_exclusion)?JSON.parse(c.product_exclusion):{};return c||await prefetch(),useConsole("product exclusion",s),await t2.forEach(e2=>{e2.handle.includes("navidium-shipping-protection")?(i.push(e2.variant_id),useConsole("protection available in cart"),localStorage.setItem("cart_protection",e2.variant_id),o-=e2.final_line_price,useConsole("nvd1",o),e2.quantity>1?(useConsole("Found duplicate protection in cart,decreasing now"),r=!0,a=e2.variant_id):useConsole("protection duplication test passed")):s?.length>=0?s?.forEach(t3=>{e2.sku===t3&&(c.exclusion_action=="0"?localStorage.setItem("exclusion_action","hide_widget"):(useConsole("%c Navidium Message:Product is excluded","color: yellow; background-color: blue; font-size: 16px",e2.sku,e2.final_price),o-=e2.final_line_price,useConsole("ex1",o)))}):(s?.sku?.forEach(t3=>{e2.sku===t3&&(useConsole("%c Navidium Message:Product is excluded","color: yellow; background-color: blue; font-size: 16px",e2.sku,e2.final_price),o-=e2.final_line_price,useConsole("ex1",o))}),s?.types?.forEach(t3=>{e2.product_type===t3&&(useConsole("%c Navidium Message:Product is excluded","color: yellow; background-color: blue; font-size: 16px",e2.sku,e2.final_price),o-=e2.final_line_price,useConsole("ex1",o))}))}),r===!0&&(useConsole("calling checkCart function recursively",adjustProtectionQuantity(a,0,!1)),getCartCallback(checkCart)),i.length>1&&(useConsole("%cfound more than one variant of navidium protection in cart,removing all now","color:red"),i.forEach(e2=>{useConsole("removing variant",e2),adjustProtectionQuantity(e2,0),localStorage.removeItem("cart_protection"),r=!1})),i.length==0&&(useConsole("No protection available in cart"),localStorage.removeItem("cart_protection")),i.length==t2.length&&(useConsole("no items in cart rather than protection"),fetch("/cart/clear.js").then(e2=>{useConsole("cart cleared"),window.location.reload(),localStorage.removeItem("cart_protection")})),{total:parseFloat(o),currency:n}}return{total:0,currency:n}},addProtection=async(e,t=1,n=!1)=>
1{if(typeof xck<"u"&&typeof xck=="function"&&await xck()==0)return;const o={method:"POST",headers:{"Content-Type":"application/json;",Accept:"application/json"},body:JSON.stringify({id:e,quantity:t})};(await(await fetch("/cart/add.js",o)).json()).id&&(localStorage.setItem("nvd_opted_out",!1),localStorage.setItem("cart_protection",e),useConsole("%c Protection added successfully","color: white; background-color: green"),localStorage.removeItem("nvdconfig"),(nvdControls?.redirectCheckout?.upsaleOff??1)&&narvarCheckout())},adjustProtectionQuantity=async(e,t,n=!1)=>{const o={method:"POST",headers:{"Content-Type":"application/json;",Accept:"application/json"},body:JSON.stringify({id:String(e),quantity:String(t)})},i=await fetch("/cart/change.js",o),a=await i.json();if(useConsole("%cnew cart instance after duplicate protection quantity decrease","color:yellow",a),console.dir(a),updateLiveCart(a),!n)return a;location.reload()},setNvdStatus=async e=>{try{await fetch("/cart/update.js",{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({attributes:{nvd_opted_out:e}})})}catch{}},getShippingProtection=async(e,t,n)=>{nvdCursorEvent("disabled");const{checked:o}=n;if(o){useConsole("checked and adding protection");const e2=JSON.parse(localStorage.getItem("extensionStorage"))||{};Object.keys(JSON.parse(localStorage.getItem("extensionStorage"))||{})?.forEach(t2=>{t2?.includes("nvd_opted_out")&&(delete e2[t2],localStorage.setItem("extensionStorage",JSON.stringify(e2)))}),localStorage.setItem("nvd_opted_out",!1),await setNvdStatus(0),nvd_init(),updateLiveCart()}else{useConsole("unchecking and removing protection");const e2=JSON.parse(localStorage.getItem("extensionStorage"))||{};localStorage.setItem("nvd_opted_out",!0),Object.keys(JSON.parse(localStorage.getItem("extensionStorage"))||{})?.forEach(t2=>{t2?.includes("nvd_added_from_checkout")&&(delete e2[t2],localStorage.setItem("extensionStorage",JSON.stringify(e2)))}),await setNvdStatus(1),nvd_init(),updateLiveCart()}},updateLiveCart=async(e=null)=>{let t=e;t==null&&(t=await getCartCallback());let n=Shopify.currency.rate,o=t.total_price;const i=Number(localStorage.getItem("nvdProtectionPrice"));let a;useConsole("protection price-->>",i);const r=t.items,c=t.item_count,s=localStorage.getItem("nvd_opted_out")?!!JSON.parse(localStorage.getItem("nvd_opted_out")):null,l=document.querySelectorAll(nvdControls?.subtotal_item),d=document.querySelectorAll(".item__cart"),u=Array.from(d);let p,v;s==0&&(p=c,v=o+i*parseFloat(n)*100,a=formatMoney(v,nvdShopCurrency),useConsole("x total price",v)),s!=1&&s!=null||(a=formatMoney(t.total_price,nvdShopCurrency),p=c,useConsole(" total price",a)),useConsole("updating subtotal",a),t.item_count==0&&(p=0),useConsole("current and cart count",p,c),l&&document.querySelector(".nvd-mini")?.innerHTML&&l.forEach(e2=>e2.innerHTML=a),await updateCartLine("data-line",u,r,'[data-action="increase-quantity"]','[data-action="decrease-quantity"]',".line-item__quantity-remove")};let updateCartLine=async(e,t,n,o,i,a)=>{useConsole(t,e),await t.forEach(t2=>{useConsole(t2.innerHTML.toString().includes("/products/navidium-shipping-protection")),t2.innerHTML.toString().includes("/products/navidium-shipping-protection")==1&&(t2.style.display="none !important",t2.remove()),n.forEach((n2,r)=>{if(t2.innerHTML.toString().includes(n2.url)){useConsole(t2.querySelector(`[${e}]`));const c=t2.querySelectorAll(`[${e}]`),s=t2.querySelectorAll(a),l=t2.querySelectorAll(o),d=t2.querySelectorAll(i);c&&c.forEach(t3=>t3.setAttribute(e,r+1)),l&&l.forEach(e2=>e2.setAttribute("data-href",`/cart/change?quantity=${n2.quantity+1}&line=${r+1}`)),d&&d.forEach(e2=>e2.setAttribute("data-href",`/cart/change?quantity=${n2.quantity-1}&line=${r+1}`)),s&&s.forEach(e2=>e2.setAttribute("href",`/cart/change?line=${r+1}&quantity=0`)),useConsole("line id updated")}})})};const checkWidgetView=()=>{const e=localStorage.getItem("nvdconfig")?JSON.parse(localStorage.getItem("nvdconfig")):{},t=e.opt_out_icon,n=e.widget_icon,o=localStorage.getItem("nvd_opted_out"),i=document.querySelector(".nvd-selected"),a=document.querySelector(".nvd-dis-selected");if(o=="true"){let e2=document.querySelector(".navidium-shipping-icon-ld");e2&&(e2.src=t)}else{let e2=document.querySelector(".navidium-shipping-icon-ld");e2&&(e2.src=n)}o=="true"?(i&&(i.style.display="none"),a&&(a.style.display="block")):(i&&(i.style.display="block"),a&&(a.style.display="none"))},trackWidget=()=>{const e=localStorage.getItem("nvd_running");setInterval(()=>{const t=document.querySelector(".nvd-mini");let n;t&&(n=t.innerHTML.length),n<1&&e=="false"&&(useConsole("widget not available, initiating widget"),setTimeout(nvd_init,0))},3e3)};nvdControls?.trackWidget&&trackWidget();const isValidUrl=e=>!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e),buildOldWidget=(e,t,n,o)=>{const{nvd_name:i,nvd_subtitle:a,nvd_description:r,widget_icon:c,nvd_message:s,learnMore:l,nvd_widget_style:d}=e,u=isValidJSON(d)?JSON.parse(d):{},{amountColor:p,cornerRadius:v,optMessageColor:g,sloganColor:m,titleColor:h,topBgColor:y,learnMoreColor:_,switchColor:C,switchColorOptOut:f,hideBadge:w}=u,k=t,S=n,$2=o?"checked":"",b=$2?"'display: block'":"'display: none'",x=$2?"'display: none'":"'display: block'";let N=isValidUrl(l)&&!l?.includes("navidiumapp.com")?` 
2      <a href=${l} title="Learn more" target='_blank' class='tab-icon mini'>
3            <svg fill=${_} width='10'  id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 428.28 428.29"><path d="M214.15,428.26c-49.16,0-98.33.1-147.49-.05-22.42-.07-40.72-8.95-54.21-27.06A62.29,62.29,0,0,1,.13,363.27q-.19-149,0-298C.2,28.79,28.86.26,65.39.12c63-.22,126-.07,189,0,9.74,0,17.75,3.47,22.05,12.67,3.76,8,2.93,16-2.62,23-5,6.4-12.05,8.49-19.93,8.49q-52.26,0-104.5,0-41.25,
30-82.5,0c-14.71,0-22.61,7.83-22.61,22.43q0,147.5,0,295C44.27,376.22,52.22,384,67,384q147.24,0,294.48,0c14.69,0,22.57-7.85,22.58-22.48q.06-93,0-186c0-5.77.65-11.32,4-16.22,5.4-7.84,13.07-10.83,22.18-9.22s14.78,7.33,17.08,16.23a31.85,31.85,0,0,1,.9,7.91q.07,93.75,0,187.49c-.06,32.68-21.24,58.69-52.67,65.1a76.3,76.3,0,0,1-15.4,1.42Q287.15,428.22,214.15,428.26Z"/><path d="M352.54,44.74c-5.35-1-9.85-.17-14.25-1.11-10.53-2.26-18.18-11.18-18.13-21.54A22,22,0,0,1,338.43.75a41.07,41.07,0,0,1,7.43-.67q28.25-.08,56.48,0c17.06,0,25.87,8.85,25.9,25.94,0,19.32.08,38.65,0,58-.06,11.58-6,20.13-15.67,23-14.28,4.32-27.66-5.77-28.45-21.5-.15-2.93,0-5.87,0-9-2.85.59-3.85,2.47-5.19,3.82Q305.2,154,231.59,227.76c-5.6,5.62-11.86,9.33-20,8.19-9-1.26-15.33-6.25-18.28-15s-.56-16.4,5.87-22.82q47.52-47.55,95.1-95,26.87-26.85,53.73-53.7C349.35,48.12,350.58,46.79,352.54,44.74Z"/></svg>
4      </a>
5`:"",q=w?"":` <svg
6          fill="${o?C:f}"
7            width="20"
8            height="26"
9            viewBox="0 0 20 26"
10            fill="none"
11            xmlns="http://www.w3.org/2000/svg">
12            <path
13            fill="${o?C:f}"
14              d="M9.8056 0.867554L0.00976562 4.2023C0.218188 8.16232 -0.177814 14.415 0.635031 17.1245C1.32282 19.4171 7.16558 23.8634 9.8056 25.6698C11.9593 23.9329 17.3442 20.4317 18.3509 18.1666C20.0183 14.415 19.8793 8.09285 19.6014 4.2023L9.8056 0.867554Z"
15              fill="#6D7175"></path>
16            <path
17            fill="${o?C:f}"
18              d="M5.01172 13.1644L7.92963 16.7076L14.3907 10.0381"
19              stroke="white"
20              stroke-width="1.66738"
21              stroke-linecap="round"
22              stroke-linejoin="round"></path>
23          </svg>`;return` 
24  <style>
25    .forms-check-inputCstm-ld:focus-visible {
26      outline: 2px solid #015fcc !important;
27    }
28  </style>
29  <div class="appearance-right-previw-ld" id="nvd-widget-cart" style="background-color:${y}; border-radius:${v};padding: 10px 10px 0px 0px;">
30  <div class="d-flexCstm-ld">
31    <div class="flex-shrink-0Cstm-ld">
32      <div class="form-checkCstm-ld form-switchCstm-ld">
33        <input 
34          style="background-color:${o?C:f};"
35          class="forms-check-inputCstm-ld"
36          type="checkbox"
37          id="shippingProtectionCheckBox"
38          data-protected-variant="${S}"
39          data-protected-price="${k}"
40          onclick="handleShippingProtectionCheckboxClick(event)"
41          onkeydown="handleShippingProtectionCheckboxKeydown(event)"
42          ${$2}
43        />
44        <div class="img">
45          <img
46            class="navidium-shipping-icon-ld"
47            width="auto"
48            height="auto"
49            src=${encodeURI(c)}
50            alt="Navidium icon" />
51         ${q}
52        </div>
53      </div>
54    </div>
55    <div class="flex-grow-1Cstm-ld ms-3Cstm-ld">
56      <h4  style="color:${h}; display:flex; gap:10px;">${i}
57      ${N}
58      </h4>
59      <p style="color:${m};">
60      <span>${a}</span>
61        <strong style="color:${p};" class="shipping-protection-price-ld">   ${formatMoney(100*k*parseFloat(Shopify.currency.rate),nvdShopCurrency)}</strong>
62      </p>
63      <div style="color:${g};">
64      <p class="nvd-selected-ld" style=${b};}>${r}</p>
65      <p class="nvd-dis-selected-ld" style=${x}>${s}</p>
66      </div>
67    
68    </div>
69  </div>
70</div>`},buildCustomizeWidgetThemeYellow=(e,t,n,o)=>{const{nvd_name:i,nvd_subtitle:a,nvd_description:r,widget_icon:c,nvd_message:s,learnMore:l,nvd_widget_style:d}=e,u=isValidJSON(d)?JSON.parse(d):{},{amountColor:p,bottomBgColor:v,cornerRadius:g,logoBg:m,optMessageColor:h,sloganColor:y,titleColor:_,topBgColor:C,learnMoreColor:f,switchColor:w,switchColorOptOut:k}=u,S=t,$2=n,b=o?"checked":"",x=b?"'display: block'":"'display: none'",N=b?"'display: none'":"'display: block'";let q=l;/^https?:\/\//i.test(q)||(q="https://"+q);let O="";return isValidUrl(l)&&!l?.includes("navidiumapp.com")&&(O=`
71      <a style="color:${f};" href="${q}" target="_blank">Learn more</a>
72   `),`
73    <div class="appearance-right-previw">
74        <div class="d-flexCstm" style="background:${C}; border-top-left-radius:${g}; border-top-right-radius:${g};">
75          <div class="flex-shrink-0Cstm">
76            <div class="form-checkCstm form-switchCstm">
77              <input  style="background-color:${o?w:k};" class="forms-check-inputCstm" type="checkbox" id='shippingProtectionCheckBox'  onclick="getShippingProtection('${$2}','${S}', this)" ${b} data-protected-variant="${$2}">
78                <div class="img" style="background:${m};">
79                  <img class="navidium-shipping-icon" src=${encodeURI(c)} alt="Navidium icon">
80                </div>
81            </div>
82          </div>
83          <div class="flex-grow-1Cstm ms-3Cstm">
84             <h4 style="color:${_};">${i}
85             </h4>
86             <p style="color:${y};">${a}</p>
87             <div class="nvd-powered-bx">
88                <p>Powered by <img src="https://navidiumcheckout.com/cdn/powered.png" alt=""></p>
89             </div>
90          </div>
91          <div class="price-right-nvd">
92            <strong 
93            style="color:${p};"
94                >
95                ${formatMoney(100*S*parseFloat(Shopify.currency.rate),nvdShopCurrency)}
96                      
97                </strong>
98          </div>
99        </div>
100        <div class="block collapse_nvd first show" style="background:${v};border-bottom-left-radius:${g}; border-bottom-right-radius:${g};">
101            <div class="block__content_nvd" style="color:${h};">
102                <p style=${x}>${r}</p>
103                <p style=${N}>${s}</p>
104                ${O}
105            </div>
106          </div>
107      </div>
108  `},buildCustomizeWidgetThemeBlack=(e,t,n,o)=>{const{nvd_name:i,nvd_subtitle:a,nvd_description:r,widget_icon:c,nvd_message:s,learnMore:l,nvd_widget_style:d}=e,u=isValidJSON(d)?JSON.parse(d):{},{amountColor:p,cornerRadius:v,logoBg:g,optMessageColor:m,sloganColor:h,titleColor:y,topBgColor:_,bottomBgColor:C,learnMoreColor:f,switchColor:w}=u,k=t,S=o?"checked":"",$2=S?"'display: block'":"'display: none'",b=S?"'display: none'":"'display: block'";let x="";return isValidUrl(l)&&!l?.includes("navidiumapp.com")&&(x=`
109                       <a style="color:${f}" href="${l}" target="_blank">Learn more</a>
110                    `),`
111  <div class="appearance-right-previw nvd-wid-style2 nvd-dark">
112      <div class="d-flexCstm" style="background:${_};border-top-left-radius:${v}; border-top-right-radius:${v};">
113        <div class="flex-shrink-0Cstm">
114          <div class="form-checkCstm form-switchCstm"> 
115            <div class="img" style="background:${g}">
116                <img class="navidium-shipping-icon" src=${encodeURI(c)} alt="Navidium icon">
117            </div>
118          </div>
119        </div>
120        <div class="flex-grow-1Cstm ms-3Cstm">
121            <h4 style="color:${y};">${i}</h4>
122            <p style="color:${h};">${a}</p>
123        </div>
124        <div class="price-right-nvd">
125            <span class="nvd-price-protn" style="color:${p};">
126                  ${formatMoney(100*k*parseFloat(Shopify.currency.rate),nvdShopCurrency)}
127            </span>
128            <p style="color:${w}" class="remove-btn-nvd ${S}" onclick="addShippingProtection()" ${S} id='shippingProtectionCheckBox'>${S?"Remove":"Add"}</p>
129        </div>
130      </div>
131      <div class="d-flexCstm powered-nvd" style="background:${C};">
132      ${x}
133        <div class="nvd-powered-bx">
134        <p>Powered by <img src="https://navidiumcheckout.com/cdn/powered.png" alt=""></p>
135       </div>
136      </div>
137      <div class="block__content_nvd" style="background:${C};color:${m};border-bottom-left-radius:${v}; border-bottom-right-radius:${v};">
138      <p style=${$2}>${r}</p>
139      <p style=${b}>${s}</p>
140      </div>
141  </div>
142  `},buildCustomizeWidgetThemeBlue=(e,t,n,o)=>{const{nvd_name:i,nvd_subtitle:a,nvd_description:r,widget_icon:c,nvd_message:s,learnMore:l,nvd_widget_style:d}=e,u=isValidJSON(d)?JSON.parse(d):{},{amountColor:p,bottomBgColor:v,cornerRadius:g,logoBg:m,optMessageColor:h,sloganColor:y,titleColor:_,topBgColor:C,switchColor:f,learnMoreColor:w,switchColorOptOut:k}=u,S=t,$2=n,b=o?"checked":"",x=b?"'display: block'":"'display: none'",N=b?"'display: none'":"'display: block'";let q="";return isValidUrl(l)&&!l?.includes("navidiumapp.com")&&(q=` 
143      <a style="color:${w}" href="${l}" target="_blank">Learn more</a>
144   `),`
145  <div class="appearance-right-previw nvd-wid-style2 nvd-dark">
146  <div class="d-flexCstm" style="background:${C}; border-top-left-radius:${g}; border-top-right-radius:${g};">
147    <div class="flex-shrink-0Cstm">
148      <div class="form-checkCstm form-switchCstm">
149        <input id='shippingProtectionCheckBox'  style="background-color:${o?f:k};" class="forms-check-inputCstm" type="checkbox"  onclick="getShippingProtection('${$2}','${S}', this)" ${b} data-protected-variant="${$2}">
150        <div class="img" style="background:${m};">
151        <img class="navidium-shipping-icon" src=${encodeURI(c)} alt="Navidium icon">
152      </div>
153      </div>
154    </div>
155    <div class="flex-grow-1Cstm ms-3Cstm">
156    <h4 style="color:${_};">${i} </h4>
157    <p style="color:${y};">${a}</p>
158    </div>
159    <div class="price-right-nvd">
160      <span class="nvd-price-protn"   style="color:${p};">
161      ${formatMoney(100*S*parseFloat(Shopify.currency.rate),nvdShopCurrency)}
162      </span>
163    </div>
164  </div>
165  <div class="block__content_nvd" style="background:${v};color:${h};">
166  <p style=${x}>${r}</p>
167  <p style=${N}>${s}</p>
168</div>
169  <div class="d-flexCstm powered-nvd" style="background:${v};border-bottom-left-radius:${g}; border-bottom-right-radius:${g};">
170  ${q}
171    <div class="nvd-powered-bx" style="background-color:#fff;">
172    <p style="color:#000;">Powered by <img style="filter:none"} src="https://navidiumcheckout.com/cdn/powered.png" alt=""></p>
173   </div>
174  </div>
175      
176</div>
177    
178  `},buildCustomizeWidgetMini=(e,t,n,o)=>{const{nvd_name:i,nvd_subtitle:a,learnMore:r,widget_icon:c,nvd_widget_style:s}=e,l=isValidJSON(s)?JSON.parse(s):{},{amountColor:d,cornerRadius:u,logoBg:p,sloganColor:v,titleColor:g,topBgColor:m,switchColor:h,learnMoreColor:y,switchColorOptOut:_}=l,C=t,f=n,w=o?"checked":"";let k=isValidUrl(r)&&!r?.includes("navidiumapp.com")?` 
179      <a href=${r} target='_blank' class='tab-icon mini'>
180            <svg fill=${y} width='10'  id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 428.28 428.29"><path fill=${y} d="M214.15,428.26c-49.16,0-98.33.1-147.49-.05-22.42-.07-40.72-8.95-54.21-27.06A62.29,62.29,0,0,1,.13,363.27q-.19-149,0-298C.2,28.79,28.86.26,65.39.12c63-.22,126-.07,189,0,9.74,0,17.75,3.47,22.05,12.67,3.76,8,2.93,16-2.62,23-5,6.4-12.05,8.49-19.93,8.49q-52.26,0-104.5,0-41.25,0-82.5,0c-14.71,0-22.61,7.83-22.61,22.43q0,147.5,0,295C44.27,376.22,52.22,384,67,384q147.24,0,294.48,0c14.69,0,22.57-7.85,22.58-22.48q.06-93,0-186c0-5.77.65-11.32,4-16.22,5.4-7.84,13.07-10.83,22.18-9.22s14.78,7.33,17.08,16.23a31.85,31.85,0,0,1,.9,7.91q.07,93.75,0,187.49c-.06,32.68-21.24,58.69-52.67,65.1a76.3,76.3,0,0,1-15.4,1.42Q287.15,428.22,214.15,428.26Z"/><path d="M352.54,44.74c-5.35-1-9.85-.17-14.25-1.11-10.53-2.26-18.18-11.18-18.13-21.54A22,22,0,0,1,338.43.75a41.07,41.07,0,0,1,7.43-.67q28.25-.08,56.48,0c17.06,0,25.87,8.85,25.9,25.94,0,19.32.08,38.65,0,58-.06,11.58-6,20.13-15.67,23-14.28,4.32-27.66-5.77-28.45-21.5-.15-2.93,0-5.87,0-9-2.85.59-3.85,2.47-5.19,3.82Q305.2,154,231.59,227.76c-5.6,5.62-11.86,9.33-20,8.19-9-1.26-15.33-6.25-18.28-15s-.56-16.4,5.87-22.82q47.52-47.55,95.1-95,26.87-26.85,53.73-53.7C349.35,48.12,350.58,46.79,352.54,44.74Z"/></svg>
181      </a>
182`:"";return`
183    <div class="appearance-right-previw">
184        <div class="d-flexCstm" style="background:${m}; border-radius:${u};">
185          <div class="flex-shrink-0Cstm">
186            <div class="form-checkCstm form-switchCstm">
187              <input  style="background-color:${o?h:_};" id='shippingProtectionCheckBox' class="forms-check-inputCstm" type="checkbox"  onclick="getShippingProtection('${f}','${C}', this)" ${w} data-protected-variant="${f}">
188                <div class="img" style="background:${p};">
189                  <img class="navidium-shipping-icon" src=${encodeURI(c)} alt="Navidium icon">
190                </div>
191            </div>
192          </div>
193          <div class="flex-grow-1Cstm ms-3Cstm">
194             <h4 style="color:${g};">
195             ${i}
196             ${k}
197             </h4>
198             <p style="color:${v};">${a}
198</p>
199             <div class="nvd-powered-bx">
200                <p>Powered by <img src="https://navidiumcheckout.com/cdn/powered.png" alt=""></p>
201             </div>
202          </div>
203          <div class="price-right-nvd">
204            <p 
205            style="color:${d};"
206                
207                >
208                ${formatMoney(100*C*parseFloat(Shopify.currency.rate),nvdShopCurrency)}
209                      
210                </p>
211          </div>
212        </div>
213     
214      </div>
215  `},buildCustomizeWidgetLarge=(e,t,n,o)=>{const{nvd_name:i,nvd_subtitle:a,learnMore:r,nvd_widget_style:c}=e,s=isValidJSON(c)?JSON.parse(c):{},{titleColor:l,sloganColor:d,amountColor:u,topBgColor:p,bottomBgColor:v,switchColor:g,learnMoreColor:m,noThanksText:h,noThanksTextColor:y,largeHeading:_}=s,C=t,f=n,w=o?"checked":"";let k="";return k=isValidUrl(r)&&!r?.includes("navidiumapp.com")?` 
216         <a href=${r} target='_blank' class='tab-icon'>
217            <svg fill=${m} width='18'  id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 428.28 428.29"><path fill=${m} d="M214.15,428.26c-49.16,0-98.33.1-147.49-.05-22.42-.07-40.72-8.95-54.21-27.06A62.29,62.29,0,0,1,.13,363.27q-.19-149,0-298C.2,28.79,28.86.26,65.39.12c63-.22,126-.07,189,0,9.74,0,17.75,3.47,22.05,12.67,3.76,8,2.93,16-2.62,23-5,6.4-12.05,8.49-19.93,8.49q-52.26,0-104.5,0-41.25,0-82.5,0c-14.71,0-22.61,7.83-22.61,22.43q0,147.5,0,295C44.27,376.22,52.22,384,67,384q147.24,0,294.48,0c14.69,0,22.57-7.85,22.58-22.48q.06-93,0-186c0-5.77.65-11.32,4-16.22,5.4-7.84,13.07-10.83,22.18-9.22s14.78,7.33,17.08,16.23a31.85,31.85,0,0,1,.9,7.91q.07,93.75,0,187.49c-.06,32.68-21.24,58.69-52.67,65.1a76.3,76.3,0,0,1-15.4,1.42Q287.15,428.22,214.15,428.26Z"/><path d="M352.54,44.74c-5.35-1-9.85-.17-14.25-1.11-10.53-2.26-18.18-11.18-18.13-21.54A22,22,0,0,1,338.43.75a41.07,41.07,0,0,1,7.43-.67q28.25-.08,56.48,0c17.06,0,25.87,8.85,25.9,25.94,0,19.32.08,38.65,0,58-.06,11.58-6,20.13-15.67,23-14.28,4.32-27.66-5.77-28.45-21.5-.15-2.93,0-5.87,0-9-2.85.59-3.85,2.47-5.19,3.82Q305.2,154,231.59,227.76c-5.6,5.62-11.86,9.33-20,8.19-9-1.26-15.33-6.25-18.28-15s-.56-16.4,5.87-22.82q47.52-47.55,95.1-95,26.87-26.85,53.73-53.7C349.35,48.12,350.58,46.79,352.54,44.74Z"/></svg>
218        </a>
219   `:`
220    <div class='tooltipCstmNvd'>
221    <svg
222      xmlns='http://www.w3.org/2000/svg'
223      width='20'
224      height='20'
225      fill=${m}>
226      <path
227        d='M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.478 10-10S15.522 0 10 0zm2.082 15.498a32.99 32.99 0 0 1-1.232.464c-.306.107-.663.16-1.068.16-.623 0-1.108-.152-1.454-.456a1.47 1.47 0 0 1-.517-1.157 4.2 4.2 0 0 1 .038-.558c.026-.19.068-.403.124-.643l.644-2.275c.057-.218.106-.426.145-.619s.058-.373.058-.536c0-.29-.06-.493-.179-.607s-.349-.17-.688-.17c-.166 0-.337.025-.512.076s-.324.102-.448.149l.17-.701a16.05 16.05 0 0 1 1.211-.441c.385-.124.749-.185 1.092-.185.619 0 1.096.151 1.432.449a1.49 1.49 0 0 1 .503 1.165c0 .099-.012.273-.035.522a3.5 3.5 0 0 1-.129.687l-.641 2.269c-.052.182-.099.39-.141.623s-.062.411-.062.53c0 .301.067.507.202.616s.368.164.7.164a2.03 2.03 0 0 0 .53-.082 3.01 3.01 0 0 0 .428-.144l-.172.7zm-.114-9.209a1.53 1.53 0 0 1-1.079.417c-.42 0-.782-.139-1.084-.417a1.33 1.33 0 0 1-.451-1.01c0-.394.152-.732.451-1.012s.664-.421 1.084-.421.781.14 1.079.421a1.34 1.34 0 0 1 .449 1.012c0 .395-.15.732-.449 1.01z'
228        fill=${m}
229      />
230    </svg>
231    <div class='toolltiptextCstmNvd'>${r}</div>
232  </div>
233    
234    
235    `,`
236 <div class="appearance-right-previw-nvd">
237      <div class="protection-title-nvd">
238        <h3>
239          ${_}*
240         ${k}
241        </h3>
242      </div>
243      <div class="d-flexCstmNvd">
244        <div class="flex-shrink-0Cstm">
245          <div class="purchaseYesNvd">
246            <input
247            onclick="getShippingProtection('${f}','${C}', this)" ${w}
248              type="radio"
249              name="nvdProtectionBtn"
250              id="shippingProtectionCheckBox"
251            />
252            <div class="innerContentNvdMn" style="background-color:${p};border-color:${o?g:""}">
253            <h4 style="color:${l};">
254            ${i}
255            <small style="color:${u}">+  ${formatMoney(100*C*parseFloat(Shopify.currency.rate),nvdShopCurrency)}</small>
256          </h4>
257              <p style="color:${d}" >${a}</p>
258              <span class="checkMarkDf" style="background-color:${g}; display:${o?"flex":"none"}">
259                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
260                  <path
261                    d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" />
262                </svg>
263              </span>
264            </div>
265          </div>
266        </div>
267        <div class="flex-grow-1Cstm">
268          <div class="purchaseNopeNvd" >
269            <input
270            ${w?"":"checked"}
271              type="radio"
272              name="nvdProtectionBtn"
273               onclick="getShippingProtection('${f}','${C}', false)"/>
274            <div class="innerContentNvdMn" style="background-color:${v}; border-color:${w?"":g}">
275              <p style="color:${y}">${h}</p>
276            </div>
277          </div>
278        </div>
279      </div>
280    </div>
281    
282    
283  `};function buildNewCheckoutWidget(e,t,n,o){const{nvd_name:i,nvd_subtitle:a,nvd_description:r,widget_icon:c,nvd_message:s,learnMore:l,nvd_widget_style:d}=e,u=isValidJSON(d)?JSON.parse(d):{},{amountColor:p,cornerRadius:v,optMessageColor:g,sloganColor:m,titleColor:h,topBgColor:y,learnMoreColor:_,switchColor:C,switchColorOptOut:f}=u,w=t,k=n,S=o?"checked":"",$2=S?"'display: block'":"'display: none'",b=S?"'display: none'":"'display: block'";let x="";return isValidUrl(l)&&!l?.includes("navidiumapp.com")&&(x=` 
284      <a style="color:${_}" href="${l}" target="_blank">Learn more</a>
285   `),` 
286  <style>
287    .forms-check-inputCstm-ld:focus-visible {
288      outline: 2px solid #015fcc !important;
289    }
290  </style>
291  <div class="appearance-right-previw-ld-new" id="nvd-widget-cart">
292  <div class="d-flexCstm-ld" style="background-color:${y}; border-radius:${v};">
293    <div class="flex-shrink-0Cstm-ld">
294      <div class="form-checkCstm-ld form-switchCstm-ld">
295        <input 
296          style="background-color:${o?C:f};"
297          class="forms-check-inputCstm-ld"
298          type="checkbox"
299          id="shippingProtectionCheckBox"
300          data-protected-variant="${k}"
301          data-protected-price="${w}"
302          onclick="handleShippingProtectionCheckboxClick(event)"
303          onkeydown="handleShippingProtectionCheckboxKeydown(event)"
304          ${S}
305        />
306        <div class="img">
307          <img class="navidium-shipping-icon-ld" width="auto" height="auto" src="${encodeURI(c)}" alt="Navidium icon">
308        </div>
309      </div>
310    </div>
311    <div class="flex-grow-1Cstm-ld ms-3Cstm-ld">
312      <h4 style="color:${h}; display:flex; gap:10px;">${i}
313      <strong style="color:${p}" class="shipping-protection-price">   ${formatMoney(100*w*parseFloat(Shopify.currency.rate),nvdShopCurrency)}</strong>
314      </h4>
315      <p style="color:${m}"  >
316       ${a}
317      </p>
318      
319    </div>
320  </div>
321  <div class="nvd_learnM_txt" style="color:${g}" >
322  <p class="nvd-selected-ld" style=${$2};}>${r}</p>
323  <p class="nvd-dis-selected-ld" style=${b}>${s}</p>
324${x}
325</div>
326</div>`}function handleShippingProtectionCheckboxClick(e){const t=e.target;getShippingProtection(t.dataset.protectedVariant,t.dataset.protectedPrice,t)}function handleShippingProtectionCheckboxKeydown(e){e.key==="Enter"&&e.preventDefault()}const addShippingProtection=()=>{(document.getElementById("shippingProtectionCheckBox")?.classList).toggle("checked")?(useConsole("checked and adding protection"),localStorage.setItem("nvd_opted_out",!1),nvd_init(),updateLiveCart()):(useConsole("unchecking and removing protection"),localStorage.setItem("nvd_opted_out",!0),nvd_init(),updateLiveCart())};function nvdCursorEvent(e){e==="enabled"?Array.from(document.querySelectorAll(nvdControls?.cursorControl)).forEach(e2=>{e2.style.pointerEvents="auto"}):Array.from(document.querySelectorAll(nvdControls?.cursorControl)).forEach(e2=>{e2.style.pointerEvents="none"})}function nvdDebounce(e,t=500,n){var o;return function(){var i=this,a=arguments,r=n&&!o;clearTimeout(o),o=setTimeout(function(){o=null,n||e.apply(i,a)},t),r&&e.apply(i,a)}}let isDOMLoaded=!1;async function xNvd(){(await fetch("/cart.js")).json().then(e=>
326{e.items.forEach(e2=>{if(e2.handle=="shipping-protection"){let t=e2.variant_id;t=t.toString(),console.log("vid = ",t),fetch("/cart/change.json",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({id:t,quantity:0})}).then(e3=>{e3.status==200&&location.reload()})}})})}window.addEventListener("DOMContentLoaded",()=>{isDOMLoaded=!0,prefetch(),new Promise(function(e,t){setTimeout(nvd_init,0)}).then(function(){updateLiveCart(null),console.log("Wrapped setTimeout after 2000ms")})}),window.onload=()=>{setTimeout(nvd_init,2e3),setTimeout(xNvd,2e3)},window.addEventListener("click",e=>{const t=Array.from(document.querySelectorAll(nvdControls?.clickTriggers)),n=e.target;t.includes(n)&&(nvdCursorEvent("disabled"),useConsole("navidium triggered slide cart"),setTimeout(()=>{injectNvdToCart(),nvd_init().then(()=>{updateLiveCart()}).catch(e2=>{nvdCursorEvent("enabled")})},2e3))},nvdControls?.forceClick??!0),window.addEventListener("cartItemsUpdated",()=>{setTimeout(()=>{injectNvdToCart(),nvd_init().then(()=>{updateLiveCart()}).catch(e=>{nvdCursorEvent("enabled")})},100)}),window.addEventListener("change",e=>{const t=Array.from(document.querySelectorAll(nvdControls.changeTrigger)),n=e.target;t.includes(n)&&(nvdCursorEvent("disabled"),useConsole("navidium triggered slide cart"),setTimeout(()=>{nvd_init().then(()=>{updateLiveCart()}).catch(e2=>{nvdCursorEvent("enabled")})},2e3))},!0),$(document).one(`${nvdControls?.iosDeviceListener}`,nvdControls.CheckoutBtns,function(e){console.log("Mini Device:: Clicked on checkout"),e.preventDefault();let t=document.querySelector("#shippingProtectionCheckBox")?.hasAttribute("checked");if(localStorage.getItem("nvdVariant")!=null){let e2=localStorage.getItem("nvdVariant");t?addProtection(e2):(nvdControls,narvarCheckout())}else narvarCheckout()});const narvarCheckout=()=>{if(nv_shopnow.hasSession())return nv_shopnow.checkout().then(function(e){window.location.href=e.weburl});window.location.href="/checkout"},injectNvdToCart=()=>{document.querySelectorAll("vue-mini-cart[data-v-app], #vue-cart").forEach(e=>{if(e.querySelector(".nvd-mini"))return;const t=e.querySelector(".cart__parcel-protection")||e.querySelector(".cart__calc");if(!t)return;const n=document.createElement("div");n.className="nvd-mini w-nvd-100 cart__parcel-protection",t.parentNode.insertBefore(n,t)})};
327//# sourceMappingURL=/cdn/shop/t/656/assets/navidium-custom.js.map?v=96467375524098748441790002699

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.