@revley/sandbox-checkout-package 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var T=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var O=Object.prototype.hasOwnProperty;var H=(s,c,d,b)=>{if(c&&typeof c=="object"||typeof c=="function")for(let l of x(c))!O.call(s,l)&&l!==d&&T(s,l,{get:()=>c[l],enumerable:!(b=U(c,l))||b.enumerable});return s};var M=s=>H(T({},"__esModule",{value:!0}),s);var B={};module.exports=M(B);var j=(s,c)=>{var L,R;if(window.__checkoutInterceptInstalled)return;window.__checkoutInterceptInstalled=!0;let d=[/^\/(?:cart\/)?checkout(?:[?#]|$)/i,/^\/checkouts(?:\/|$|\?|#)/i],b=!1,l=(...t)=>b?console.debug("[checkout-intercept]",...t):void 0,A=t=>t.replace(/\/+$/,""),C=t=>t.endsWith(".myshopify.com")||t===location.hostname;function w(t,e=location.origin){try{return t instanceof URL?t:new URL(String(t),e)}catch{return null}}function p(t){let e=w(t);if(!e||!C(e.hostname))return!1;let n=A(e.pathname),i=d.some(r=>r.test(n));return i&&l("detected checkout-like URL:",String(e)),i}function E(t){let e=t==null?void 0:t.getAttribute("variant-params");if(!e)return null;let n=e.includes(""")?e.replace(/"/g,'"'):e;try{let i=JSON.parse(n);return Array.isArray(i)?i:null}catch{return null}}async function S(t,e=1){let n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(t),quantity:e}]}),credentials:"same-origin"});if(!n.ok){let i=await n.text().catch(()=>"");throw new Error(`cart/add.js failed (${n.status}): ${i}`)}return n.json()}async function _(){let e=await(await fetch("/cart.js")).json(),n={},i=["_fbp","_fbc","_fbq","_ig_","_igbp","_igshid","_igsh","_ig_visitor_id","_gclid","_gcl_au","_gcl_aw","_gcl_dc","_gcl_gb","_ttp","_tt_enable_cookie","_scid","_sctr","_pin_unauth","_pin_id","_twitter_ads_id","_li_ss","_uetsid","_uetvid","_amzn","_amzn_ads_","_yclid","_ycl_","_rdt_uid","_quora_","_tb_","_ob_","_criteo_","_adobe_","_ttd_","_dv360_","_fbcv","_shopify_pixel_"],r=g=>i.some(m=>g===m||g.startsWith(m)||g.includes(m));document.cookie&&document.cookie.split(";").forEach(g=>{let m=g.trim();if(m){let[y,...I]=m.split("="),P=I.join("=");y&&P&&r(y)&&(n[y]=P)}});let a=`gid://shopify/Cart/${e.token}`,u=await(await fetch(`${c}/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({storeId:s,cartId:a,cookies:n})})).text();if(console.log("checkoutUrl",u),!u){console.error("No checkout ID received from backend");return}let h=w(u);if(!h){console.error("Invalid checkout URL received from backend:",u);return}location.assign(h.href)}let k=!1;function o(t){return k||!p(t)?!1:(k=!0,_(),!0)}if(window.__isCheckoutLike=p,window.__maybeRedirect=o,(L=window.Shopify)!=null&&L.designMode)return;{let t=window.location,e=t.assign.bind(t),n=t.replace.bind(t);try{Object.defineProperty(t,"assign",{value:i=>{o(i)||e(i)},writable:!0,configurable:!0}),Object.defineProperty(t,"replace",{value:i=>{o(i)||n(i)},writable:!0,configurable:!0})}catch(i){l("Could not override location methods, relying on Service Worker:",i)}}{let t=window.open;window.open=function(e,n,i){return e&&o(e)?null:t.call(window,e,n,i)}}{let t=history.pushState.bind(history),e=history.replaceState.bind(history);history.pushState=function(n,i,r){if(!(r!=null&&o(r)))return t(n,i,r)},history.replaceState=function(n,i,r){if(!(r!=null&&o(r)))return e(n,i,r)},addEventListener("popstate",()=>void o(location.href),!0)}{let t=e=>e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0;addEventListener("click",e=>{let n=e;if(n.defaultPrevented||t(n))return;let i=e.target;for(;i&&i.nodeType===1&&i.tagName!=="A";)i=i.parentElement;let r=i;!r||!r.href||p(r.href)&&(n.preventDefault(),n.stopPropagation(),_())},!0)}{let t=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){try{if(v(this))return t.call(this);let n=this.getAttribute("action")||"";if(o(n)||Array.from(this.elements).some(r=>(r==null?void 0:r.name)==="checkout")&&o("/checkout"))return}catch{}return t.call(this)},addEventListener("submit",e=>{try{let n=e.target;if(v(n))return;let i=(n==null?void 0:n.getAttribute("action"))||"",r=Array.from((n==null?void 0:n.elements)||[]);(p(i)||r.some(a=>(a==null?void 0:a.name)==="checkout"))&&(e.preventDefault(),e.stopPropagation(),_())}catch{}},!0)}{let t=location.href;setInterval(()=>{location.href!==t&&(t=location.href,o(t))},250)}{let t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(n,i,r,a,f){try{typeof i=="string"&&p(i)&&o(i)}catch{}return t.call(this,n,i,!!r,a,f)}}{let t=window.fetch.bind(window);window.fetch=function(n,i){try{let r=typeof n=="string"||n instanceof URL?String(n):n.url;r&&p(r)&&o(r)}catch{}return t(n,i)}}let v=t=>t?Array.from(t.elements).some(e=>{var i,r;let n=e;return((i=n.name)==null?void 0:i.includes("__kaching_bundles"))||((r=n.name)==null?void 0:r.includes("kaching"))||t.classList.contains("kaching-form")}):!1;document.addEventListener("click",async t=>{var r,a,f;let e=t.target,n=(r=e==null?void 0:e.closest)==null?void 0:r.call(e,"button.shopify-payment-button__button");if(!n)return;let i=n.closest("shopify-accelerated-checkout");if(i){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation();try{let u=E(i),h=(f=(a=u==null?void 0:u[0])==null?void 0:a.id)!=null?f:51504147202335;if(!h)throw new Error("Could not determine variant id");try{window.upcartOpenOnAddToCartOverride=!1,window.upcartShouldOpenOnAddToCartBackgroundNetworkCall=!1}catch{console.log("Failed to prevent upcart from opening")}await S(h,1),await _()}catch(u){console.error("Intercepted Buy It Now failed; falling back:",u),window.location.assign("/checkout")}}},!0);{let t={},e;(R=window.kachingCartApi)!=null&&R.updateTieredPromotionsBar&&(e=window.kachingCartApi.updateTieredPromotionsBar,Object.assign(t,window.kachingCartApi)),window.kachingCartApi=new Proxy(t,{get(n,i){return i==="updateTieredPromotionsBar"?async function(...r){e&&await e.apply(this,r),await Promise.all([new Promise(a=>setTimeout(a,1e4)),_()])}:n[i]},set(n,i,r){return i==="updateTieredPromotionsBar"&&(e=r,l("Kaching updateTieredPromotionsBar captured")),n[i]=r,!0}})}},q=()=>{let s=document.currentScript;if(!s)return;let c=s.dataset.revleyStoreId,d=s.dataset.revleyCheckoutHost;c&&d&&j(c,d)};q();
1
+ "use strict";var P=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var H=(c,l,p,y)=>{if(l&&typeof l=="object"||typeof l=="function")for(let d of U(l))!x.call(c,d)&&d!==p&&P(c,d,{get:()=>l[d],enumerable:!(y=M(l,d))||y.enumerable});return c};var j=c=>H(P({},"__esModule",{value:!0}),c);var N={};module.exports=j(N);var B=(c,l)=>{var R,T;if(window.__checkoutInterceptInstalled)return;window.__checkoutInterceptInstalled=!0;let p=[/^\/(?:cart\/)?checkout(?:[?#]|$)/i,/^\/checkouts(?:\/|$|\?|#)/i],y=!1,d=(...t)=>y?console.debug("[checkout-intercept]",...t):void 0,S=t=>t.replace(/\/+$/,""),A=t=>t.endsWith(".myshopify.com")||t===location.hostname;function w(t,e=location.origin){try{return t instanceof URL?t:new URL(String(t),e)}catch{return null}}function m(t){let e=w(t);if(!e||!A(e.hostname))return!1;let r=S(e.pathname),n=p.some(i=>i.test(r));return n&&d("detected checkout-like URL:",String(e)),n}function C(t){let e=t==null?void 0:t.getAttribute("variant-params");if(!e)return null;let r=e.includes(""")?e.replace(/"/g,'"'):e;try{let n=JSON.parse(r);return Array.isArray(n)?n:null}catch{return null}}async function I(t,e=1){let r=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(t),quantity:e}]}),credentials:"same-origin"});if(!r.ok){let n=await r.text().catch(()=>"");throw new Error(`cart/add.js failed (${r.status}): ${n}`)}return r.json()}async function g(){let e=await(await fetch("/cart.js")).json(),r={},n=["_fbp","_fbc","_fbq","_ig_","_igbp","_igshid","_igsh","_ig_visitor_id","_gclid","_gcl_au","_gcl_aw","_gcl_dc","_gcl_gb","_ttp","_tt_enable_cookie","_scid","_sctr","_pin_unauth","_pin_id","_twitter_ads_id","_li_ss","_uetsid","_uetvid","_amzn","_amzn_ads_","_yclid","_ycl_","_rdt_uid","_quora_","_tb_","_ob_","_criteo_","_adobe_","_ttd_","_dv360_","_fbcv","_shopify_pixel_"],i=_=>n.some(h=>_===h||_.startsWith(h)||_.includes(h));document.cookie&&document.cookie.split(";").forEach(_=>{let h=_.trim();if(h){let[b,...O]=h.split("="),E=O.join("=");b&&E&&i(b)&&(r[b]=E)}});let o=`gid://shopify/Cart/${e.token}`,a=await(await fetch(`${l}/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({storeId:c,cartId:o,cookies:r})})).text();if(console.log("checkoutUrl",a),!a){console.error("No checkout ID received from backend");return}let f=w(a);if(!f){console.error("Invalid checkout URL received from backend:",a);return}sessionStorage.setItem("__revley_checkout_redirect","1"),location.assign(f.href)}let v=!1;function s(t){return v||!m(t)?!1:(v=!0,g(),!0)}if(window.__isCheckoutLike=m,window.__maybeRedirect=s,(R=window.Shopify)!=null&&R.designMode)return;window.addEventListener("pageshow",t=>{t.persisted&&sessionStorage.getItem("__revley_checkout_redirect")&&(sessionStorage.removeItem("__revley_checkout_redirect"),location.reload())});{let t=window.location,e=t.assign.bind(t),r=t.replace.bind(t);try{Object.defineProperty(t,"assign",{value:n=>{s(n)||e(n)},writable:!0,configurable:!0}),Object.defineProperty(t,"replace",{value:n=>{s(n)||r(n)},writable:!0,configurable:!0})}catch(n){d("Could not override location methods, relying on Service Worker:",n)}}{let t=window.open;window.open=function(e,r,n){return e&&s(e)?null:t.call(window,e,r,n)}}{let t=history.pushState.bind(history),e=history.replaceState.bind(history);history.pushState=function(r,n,i){if(!(i!=null&&s(i)))return t(r,n,i)},history.replaceState=function(r,n,i){if(!(i!=null&&s(i)))return e(r,n,i)},addEventListener("popstate",()=>void s(location.href),!0)}{let t=e=>e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0;addEventListener("click",e=>{let r=e;if(r.defaultPrevented||t(r))return;let n=e.target;for(;n&&n.nodeType===1&&n.tagName!=="A";)n=n.parentElement;let i=n;!i||!i.href||m(i.href)&&(r.preventDefault(),r.stopPropagation(),g())},!0)}{let t=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){try{if(k(this))return t.call(this);let r=this.getAttribute("action")||"";if(s(r)||Array.from(this.elements).some(i=>(i==null?void 0:i.name)==="checkout")&&s("/checkout"))return}catch{}return t.call(this)},addEventListener("submit",e=>{try{let r=e.target;if(k(r))return;let n=(r==null?void 0:r.getAttribute("action"))||"",i=Array.from((r==null?void 0:r.elements)||[]);(m(n)||i.some(o=>(o==null?void 0:o.name)==="checkout"))&&(e.preventDefault(),e.stopPropagation(),g())}catch{}},!0)}{let t=location.href;setInterval(()=>{location.href!==t&&(t=location.href,s(t))},250)}{let t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(r,n,i,o,u){try{typeof n=="string"&&m(n)&&s(n)}catch{}return t.call(this,r,n,!!i,o,u)}}{let t=window.fetch.bind(window);window.fetch=function(r,n){try{let i=typeof r=="string"||r instanceof URL?String(r):r.url;i&&m(i)&&s(i)}catch{}return t(r,n)}}let k=t=>t?Array.from(t.elements).some(e=>{var n,i;let r=e;return((n=r.name)==null?void 0:n.includes("__kaching_bundles"))||((i=r.name)==null?void 0:i.includes("kaching"))||t.classList.contains("kaching-form")}):!1;document.addEventListener("click",async t=>{var i,o,u;let e=t.target,r=(i=e==null?void 0:e.closest)==null?void 0:i.call(e,"button.shopify-payment-button__button");if(!r)return;let n=r.closest("shopify-accelerated-checkout");if(n){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation();try{let a=C(n),f=(u=(o=a==null?void 0:a[0])==null?void 0:o.id)!=null?u:51504147202335;if(!f)throw new Error("Could not determine variant id");try{window.upcartOpenOnAddToCartOverride=!1,window.upcartShouldOpenOnAddToCartBackgroundNetworkCall=!1}catch{console.log("Failed to prevent upcart from opening")}await I(f,1),await g()}catch(a){console.error("Intercepted Buy It Now failed; falling back:",a),window.location.assign("/checkout")}}},!0);{let t={},e;(T=window.kachingCartApi)!=null&&T.updateTieredPromotionsBar&&(e=window.kachingCartApi.updateTieredPromotionsBar,Object.assign(t,window.kachingCartApi)),window.kachingCartApi=new Proxy(t,{get(r,n){return n==="updateTieredPromotionsBar"?async function(...i){throw document.querySelectorAll(".shop-add-to-cart-button.product-form_submit").forEach(o=>{var a;o.disabled=!0,o.style.pointerEvents="none",o.style.opacity="0.5";let u=o.cloneNode(!0);u.disabled=!0,u.style.pointerEvents="none",u.style.opacity="0.5",(a=o.parentNode)==null||a.replaceChild(u,o)}),e&&await e.apply(this,i),await Promise.all([new Promise(o=>setTimeout(o,1e4)),g()]),new Error("STOP")}:r[n]},set(r,n,i){return n==="updateTieredPromotionsBar"&&(e=i,d("Kaching updateTieredPromotionsBar captured")),r[n]=i,!0}})}function L(){var r;let t=document.querySelector("#kaching-cart__checkout-button");if(!t||t.dataset.revleyReplaced)return;let e=t.cloneNode(!0);e.querySelectorAll(".kaching-cart__loading-spinner").forEach(n=>n.remove()),e.dataset.revleyReplaced="true",e.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),e.disabled=!0,e.style.pointerEvents="none",e.style.opacity="0.5",g()}),(r=t.parentNode)==null||r.replaceChild(e,t)}L(),new MutationObserver(()=>L()).observe(document.body,{childList:!0,subtree:!0})},q=()=>{let c=document.currentScript;if(!c)return;let l=c.dataset.revleyStoreId,p=c.dataset.revleyCheckoutHost;l&&p&&B(l,p)};q();
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- var E=(l,p)=>{if(window.__checkoutInterceptInstalled)return;window.__checkoutInterceptInstalled=!0;let g=[/^\/(?:cart\/)?checkout(?:[?#]|$)/i,/^\/checkouts(?:\/|$|\?|#)/i],L=!1,f=(...t)=>L?console.debug("[checkout-intercept]",...t):void 0,P=t=>t.replace(/\/+$/,""),R=t=>t.endsWith(".myshopify.com")||t===location.hostname;function b(t,i=location.origin){try{return t instanceof URL?t:new URL(String(t),i)}catch{return null}}function s(t){let i=b(t);if(!i||!R(i.hostname))return!1;let n=P(i.pathname),e=g.some(r=>r.test(n));return e&&f("detected checkout-like URL:",String(i)),e}function T(t){let i=t?.getAttribute("variant-params");if(!i)return null;let n=i.includes(""")?i.replace(/"/g,'"'):i;try{let e=JSON.parse(n);return Array.isArray(e)?e:null}catch{return null}}async function A(t,i=1){let n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(t),quantity:i}]}),credentials:"same-origin"});if(!n.ok){let e=await n.text().catch(()=>"");throw new Error(`cart/add.js failed (${n.status}): ${e}`)}return n.json()}async function u(){let i=await(await fetch("/cart.js")).json(),n={},e=["_fbp","_fbc","_fbq","_ig_","_igbp","_igshid","_igsh","_ig_visitor_id","_gclid","_gcl_au","_gcl_aw","_gcl_dc","_gcl_gb","_ttp","_tt_enable_cookie","_scid","_sctr","_pin_unauth","_pin_id","_twitter_ads_id","_li_ss","_uetsid","_uetvid","_amzn","_amzn_ads_","_yclid","_ycl_","_rdt_uid","_quora_","_tb_","_ob_","_criteo_","_adobe_","_ttd_","_dv360_","_fbcv","_shopify_pixel_"],r=d=>e.some(c=>d===c||d.startsWith(c)||d.includes(c));document.cookie&&document.cookie.split(";").forEach(d=>{let c=d.trim();if(c){let[h,...C]=c.split("="),k=C.join("=");h&&k&&r(h)&&(n[h]=k)}});let a=`gid://shopify/Cart/${i.token}`,m=await(await fetch(`${p}/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({storeId:l,cartId:a,cookies:n})})).text();if(console.log("checkoutUrl",m),!m){console.error("No checkout ID received from backend");return}let v=b(m);if(!v){console.error("Invalid checkout URL received from backend:",m);return}location.assign(v.href)}let y=!1;function o(t){return y||!s(t)?!1:(y=!0,u(),!0)}if(window.__isCheckoutLike=s,window.__maybeRedirect=o,window.Shopify?.designMode)return;{let t=window.location,i=t.assign.bind(t),n=t.replace.bind(t);try{Object.defineProperty(t,"assign",{value:e=>{o(e)||i(e)},writable:!0,configurable:!0}),Object.defineProperty(t,"replace",{value:e=>{o(e)||n(e)},writable:!0,configurable:!0})}catch(e){f("Could not override location methods, relying on Service Worker:",e)}}{let t=window.open;window.open=function(i,n,e){return i&&o(i)?null:t.call(window,i,n,e)}}{let t=history.pushState.bind(history),i=history.replaceState.bind(history);history.pushState=function(n,e,r){if(!(r!=null&&o(r)))return t(n,e,r)},history.replaceState=function(n,e,r){if(!(r!=null&&o(r)))return i(n,e,r)},addEventListener("popstate",()=>void o(location.href),!0)}{let t=i=>i.metaKey||i.ctrlKey||i.shiftKey||i.altKey||i.button!==0;addEventListener("click",i=>{let n=i;if(n.defaultPrevented||t(n))return;let e=i.target;for(;e&&e.nodeType===1&&e.tagName!=="A";)e=e.parentElement;let r=e;!r||!r.href||s(r.href)&&(n.preventDefault(),n.stopPropagation(),u())},!0)}{let t=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){try{if(w(this))return t.call(this);let n=this.getAttribute("action")||"";if(o(n)||Array.from(this.elements).some(r=>r?.name==="checkout")&&o("/checkout"))return}catch{}return t.call(this)},addEventListener("submit",i=>{try{let n=i.target;if(w(n))return;let e=n?.getAttribute("action")||"",r=Array.from(n?.elements||[]);(s(e)||r.some(a=>a?.name==="checkout"))&&(i.preventDefault(),i.stopPropagation(),u())}catch{}},!0)}{let t=location.href;setInterval(()=>{location.href!==t&&(t=location.href,o(t))},250)}{let t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(n,e,r,a,_){try{typeof e=="string"&&s(e)&&o(e)}catch{}return t.call(this,n,e,!!r,a,_)}}{let t=window.fetch.bind(window);window.fetch=function(n,e){try{let r=typeof n=="string"||n instanceof URL?String(n):n.url;r&&s(r)&&o(r)}catch{}return t(n,e)}}let w=t=>t?Array.from(t.elements).some(i=>{let n=i;return n.name?.includes("__kaching_bundles")||n.name?.includes("kaching")||t.classList.contains("kaching-form")}):!1;document.addEventListener("click",async t=>{let n=t.target?.closest?.("button.shopify-payment-button__button");if(!n)return;let e=n.closest("shopify-accelerated-checkout");if(e){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation();try{let a=T(e)?.[0]?.id??51504147202335;if(!a)throw new Error("Could not determine variant id");try{window.upcartOpenOnAddToCartOverride=!1,window.upcartShouldOpenOnAddToCartBackgroundNetworkCall=!1}catch{console.log("Failed to prevent upcart from opening")}await A(a,1),await u()}catch(r){console.error("Intercepted Buy It Now failed; falling back:",r),window.location.assign("/checkout")}}},!0);{let t={},i;window.kachingCartApi?.updateTieredPromotionsBar&&(i=window.kachingCartApi.updateTieredPromotionsBar,Object.assign(t,window.kachingCartApi)),window.kachingCartApi=new Proxy(t,{get(n,e){return e==="updateTieredPromotionsBar"?async function(...r){i&&await i.apply(this,r),await Promise.all([new Promise(a=>setTimeout(a,1e4)),u()])}:n[e]},set(n,e,r){return e==="updateTieredPromotionsBar"&&(i=r,f("Kaching updateTieredPromotionsBar captured")),n[e]=r,!0}})}},S=()=>{let l=document.currentScript;if(!l)return;let p=l.dataset.revleyStoreId,g=l.dataset.revleyCheckoutHost;p&&g&&E(p,g)};S();
1
+ var C=(d,m)=>{if(window.__checkoutInterceptInstalled)return;window.__checkoutInterceptInstalled=!0;let g=[/^\/(?:cart\/)?checkout(?:[?#]|$)/i,/^\/checkouts(?:\/|$|\?|#)/i],P=!1,f=(...t)=>P?console.debug("[checkout-intercept]",...t):void 0,R=t=>t.replace(/\/+$/,""),T=t=>t.endsWith(".myshopify.com")||t===location.hostname;function y(t,e=location.origin){try{return t instanceof URL?t:new URL(String(t),e)}catch{return null}}function c(t){let e=y(t);if(!e||!T(e.hostname))return!1;let n=R(e.pathname),r=g.some(i=>i.test(n));return r&&f("detected checkout-like URL:",String(e)),r}function E(t){let e=t?.getAttribute("variant-params");if(!e)return null;let n=e.includes(""")?e.replace(/"/g,'"'):e;try{let r=JSON.parse(n);return Array.isArray(r)?r:null}catch{return null}}async function S(t,e=1){let n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(t),quantity:e}]}),credentials:"same-origin"});if(!n.ok){let r=await n.text().catch(()=>"");throw new Error(`cart/add.js failed (${n.status}): ${r}`)}return n.json()}async function l(){let e=await(await fetch("/cart.js")).json(),n={},r=["_fbp","_fbc","_fbq","_ig_","_igbp","_igshid","_igsh","_ig_visitor_id","_gclid","_gcl_au","_gcl_aw","_gcl_dc","_gcl_gb","_ttp","_tt_enable_cookie","_scid","_sctr","_pin_unauth","_pin_id","_twitter_ads_id","_li_ss","_uetsid","_uetvid","_amzn","_amzn_ads_","_yclid","_ycl_","_rdt_uid","_quora_","_tb_","_ob_","_criteo_","_adobe_","_ttd_","_dv360_","_fbcv","_shopify_pixel_"],i=p=>r.some(u=>p===u||p.startsWith(u)||p.includes(u));document.cookie&&document.cookie.split(";").forEach(p=>{let u=p.trim();if(u){let[h,...A]=u.split("="),L=A.join("=");h&&L&&i(h)&&(n[h]=L)}});let o=`gid://shopify/Cart/${e.token}`,_=await(await fetch(`${m}/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({storeId:d,cartId:o,cookies:n})})).text();if(console.log("checkoutUrl",_),!_){console.error("No checkout ID received from backend");return}let k=y(_);if(!k){console.error("Invalid checkout URL received from backend:",_);return}sessionStorage.setItem("__revley_checkout_redirect","1"),location.assign(k.href)}let b=!1;function a(t){return b||!c(t)?!1:(b=!0,l(),!0)}if(window.__isCheckoutLike=c,window.__maybeRedirect=a,window.Shopify?.designMode)return;window.addEventListener("pageshow",t=>{t.persisted&&sessionStorage.getItem("__revley_checkout_redirect")&&(sessionStorage.removeItem("__revley_checkout_redirect"),location.reload())});{let t=window.location,e=t.assign.bind(t),n=t.replace.bind(t);try{Object.defineProperty(t,"assign",{value:r=>{a(r)||e(r)},writable:!0,configurable:!0}),Object.defineProperty(t,"replace",{value:r=>{a(r)||n(r)},writable:!0,configurable:!0})}catch(r){f("Could not override location methods, relying on Service Worker:",r)}}{let t=window.open;window.open=function(e,n,r){return e&&a(e)?null:t.call(window,e,n,r)}}{let t=history.pushState.bind(history),e=history.replaceState.bind(history);history.pushState=function(n,r,i){if(!(i!=null&&a(i)))return t(n,r,i)},history.replaceState=function(n,r,i){if(!(i!=null&&a(i)))return e(n,r,i)},addEventListener("popstate",()=>void a(location.href),!0)}{let t=e=>e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0;addEventListener("click",e=>{let n=e;if(n.defaultPrevented||t(n))return;let r=e.target;for(;r&&r.nodeType===1&&r.tagName!=="A";)r=r.parentElement;let i=r;!i||!i.href||c(i.href)&&(n.preventDefault(),n.stopPropagation(),l())},!0)}{let t=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){try{if(w(this))return t.call(this);let n=this.getAttribute("action")||"";if(a(n)||Array.from(this.elements).some(i=>i?.name==="checkout")&&a("/checkout"))return}catch{}return t.call(this)},addEventListener("submit",e=>{try{let n=e.target;if(w(n))return;let r=n?.getAttribute("action")||"",i=Array.from(n?.elements||[]);(c(r)||i.some(o=>o?.name==="checkout"))&&(e.preventDefault(),e.stopPropagation(),l())}catch{}},!0)}{let t=location.href;setInterval(()=>{location.href!==t&&(t=location.href,a(t))},250)}{let t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(n,r,i,o,s){try{typeof r=="string"&&c(r)&&a(r)}catch{}return t.call(this,n,r,!!i,o,s)}}{let t=window.fetch.bind(window);window.fetch=function(n,r){try{let i=typeof n=="string"||n instanceof URL?String(n):n.url;i&&c(i)&&a(i)}catch{}return t(n,r)}}let w=t=>t?Array.from(t.elements).some(e=>{let n=e;return n.name?.includes("__kaching_bundles")||n.name?.includes("kaching")||t.classList.contains("kaching-form")}):!1;document.addEventListener("click",async t=>{let n=t.target?.closest?.("button.shopify-payment-button__button");if(!n)return;let r=n.closest("shopify-accelerated-checkout");if(r){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation();try{let o=E(r)?.[0]?.id??51504147202335;if(!o)throw new Error("Could not determine variant id");try{window.upcartOpenOnAddToCartOverride=!1,window.upcartShouldOpenOnAddToCartBackgroundNetworkCall=!1}catch{console.log("Failed to prevent upcart from opening")}await S(o,1),await l()}catch(i){console.error("Intercepted Buy It Now failed; falling back:",i),window.location.assign("/checkout")}}},!0);{let t={},e;window.kachingCartApi?.updateTieredPromotionsBar&&(e=window.kachingCartApi.updateTieredPromotionsBar,Object.assign(t,window.kachingCartApi)),window.kachingCartApi=new Proxy(t,{get(n,r){return r==="updateTieredPromotionsBar"?async function(...i){throw document.querySelectorAll(".shop-add-to-cart-button.product-form_submit").forEach(o=>{o.disabled=!0,o.style.pointerEvents="none",o.style.opacity="0.5";let s=o.cloneNode(!0);s.disabled=!0,s.style.pointerEvents="none",s.style.opacity="0.5",o.parentNode?.replaceChild(s,o)}),e&&await e.apply(this,i),await Promise.all([new Promise(o=>setTimeout(o,1e4)),l()]),new Error("STOP")}:n[r]},set(n,r,i){return r==="updateTieredPromotionsBar"&&(e=i,f("Kaching updateTieredPromotionsBar captured")),n[r]=i,!0}})}function v(){let t=document.querySelector("#kaching-cart__checkout-button");if(!t||t.dataset.revleyReplaced)return;let e=t.cloneNode(!0);e.querySelectorAll(".kaching-cart__loading-spinner").forEach(n=>n.remove()),e.dataset.revleyReplaced="true",e.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),e.disabled=!0,e.style.pointerEvents="none",e.style.opacity="0.5",l()}),t.parentNode?.replaceChild(e,t)}v(),new MutationObserver(()=>v()).observe(document.body,{childList:!0,subtree:!0})},I=()=>{let d=document.currentScript;if(!d)return;let m=d.dataset.revleyStoreId,g=d.dataset.revleyCheckoutHost;m&&g&&C(m,g)};I();
@@ -1 +1 @@
1
- "use strict";var SandboxCheckoutPkg=(()=>{var T=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var O=Object.prototype.hasOwnProperty;var H=(s,c,d,b)=>{if(c&&typeof c=="object"||typeof c=="function")for(let l of x(c))!O.call(s,l)&&l!==d&&T(s,l,{get:()=>c[l],enumerable:!(b=U(c,l))||b.enumerable});return s};var M=s=>H(T({},"__esModule",{value:!0}),s);var B={};var j=(s,c)=>{var L,R;if(window.__checkoutInterceptInstalled)return;window.__checkoutInterceptInstalled=!0;let d=[/^\/(?:cart\/)?checkout(?:[?#]|$)/i,/^\/checkouts(?:\/|$|\?|#)/i],b=!1,l=(...t)=>b?console.debug("[checkout-intercept]",...t):void 0,A=t=>t.replace(/\/+$/,""),C=t=>t.endsWith(".myshopify.com")||t===location.hostname;function w(t,i=location.origin){try{return t instanceof URL?t:new URL(String(t),i)}catch(e){return null}}function p(t){let i=w(t);if(!i||!C(i.hostname))return!1;let e=A(i.pathname),n=d.some(r=>r.test(e));return n&&l("detected checkout-like URL:",String(i)),n}function E(t){let i=t==null?void 0:t.getAttribute("variant-params");if(!i)return null;let e=i.includes(""")?i.replace(/"/g,'"'):i;try{let n=JSON.parse(e);return Array.isArray(n)?n:null}catch(n){return null}}async function S(t,i=1){let e=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(t),quantity:i}]}),credentials:"same-origin"});if(!e.ok){let n=await e.text().catch(()=>"");throw new Error(`cart/add.js failed (${e.status}): ${n}`)}return e.json()}async function _(){let i=await(await fetch("/cart.js")).json(),e={},n=["_fbp","_fbc","_fbq","_ig_","_igbp","_igshid","_igsh","_ig_visitor_id","_gclid","_gcl_au","_gcl_aw","_gcl_dc","_gcl_gb","_ttp","_tt_enable_cookie","_scid","_sctr","_pin_unauth","_pin_id","_twitter_ads_id","_li_ss","_uetsid","_uetvid","_amzn","_amzn_ads_","_yclid","_ycl_","_rdt_uid","_quora_","_tb_","_ob_","_criteo_","_adobe_","_ttd_","_dv360_","_fbcv","_shopify_pixel_"],r=g=>n.some(m=>g===m||g.startsWith(m)||g.includes(m));document.cookie&&document.cookie.split(";").forEach(g=>{let m=g.trim();if(m){let[y,...I]=m.split("="),P=I.join("=");y&&P&&r(y)&&(e[y]=P)}});let a=`gid://shopify/Cart/${i.token}`,u=await(await fetch(`${c}/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({storeId:s,cartId:a,cookies:e})})).text();if(console.log("checkoutUrl",u),!u){console.error("No checkout ID received from backend");return}let h=w(u);if(!h){console.error("Invalid checkout URL received from backend:",u);return}location.assign(h.href)}let k=!1;function o(t){return k||!p(t)?!1:(k=!0,_(),!0)}if(window.__isCheckoutLike=p,window.__maybeRedirect=o,(L=window.Shopify)!=null&&L.designMode)return;{let t=window.location,i=t.assign.bind(t),e=t.replace.bind(t);try{Object.defineProperty(t,"assign",{value:n=>{o(n)||i(n)},writable:!0,configurable:!0}),Object.defineProperty(t,"replace",{value:n=>{o(n)||e(n)},writable:!0,configurable:!0})}catch(n){l("Could not override location methods, relying on Service Worker:",n)}}{let t=window.open;window.open=function(i,e,n){return i&&o(i)?null:t.call(window,i,e,n)}}{let t=history.pushState.bind(history),i=history.replaceState.bind(history);history.pushState=function(e,n,r){if(!(r!=null&&o(r)))return t(e,n,r)},history.replaceState=function(e,n,r){if(!(r!=null&&o(r)))return i(e,n,r)},addEventListener("popstate",()=>void o(location.href),!0)}{let t=i=>i.metaKey||i.ctrlKey||i.shiftKey||i.altKey||i.button!==0;addEventListener("click",i=>{let e=i;if(e.defaultPrevented||t(e))return;let n=i.target;for(;n&&n.nodeType===1&&n.tagName!=="A";)n=n.parentElement;let r=n;!r||!r.href||p(r.href)&&(e.preventDefault(),e.stopPropagation(),_())},!0)}{let t=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){try{if(v(this))return t.call(this);let e=this.getAttribute("action")||"";if(o(e)||Array.from(this.elements).some(r=>(r==null?void 0:r.name)==="checkout")&&o("/checkout"))return}catch(e){}return t.call(this)},addEventListener("submit",i=>{try{let e=i.target;if(v(e))return;let n=(e==null?void 0:e.getAttribute("action"))||"",r=Array.from((e==null?void 0:e.elements)||[]);(p(n)||r.some(a=>(a==null?void 0:a.name)==="checkout"))&&(i.preventDefault(),i.stopPropagation(),_())}catch(e){}},!0)}{let t=location.href;setInterval(()=>{location.href!==t&&(t=location.href,o(t))},250)}{let t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(e,n,r,a,f){try{typeof n=="string"&&p(n)&&o(n)}catch(u){}return t.call(this,e,n,!!r,a,f)}}{let t=window.fetch.bind(window);window.fetch=function(e,n){try{let r=typeof e=="string"||e instanceof URL?String(e):e.url;r&&p(r)&&o(r)}catch(r){}return t(e,n)}}let v=t=>t?Array.from(t.elements).some(i=>{var n,r;let e=i;return((n=e.name)==null?void 0:n.includes("__kaching_bundles"))||((r=e.name)==null?void 0:r.includes("kaching"))||t.classList.contains("kaching-form")}):!1;document.addEventListener("click",async t=>{var r,a,f;let i=t.target,e=(r=i==null?void 0:i.closest)==null?void 0:r.call(i,"button.shopify-payment-button__button");if(!e)return;let n=e.closest("shopify-accelerated-checkout");if(n){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation();try{let u=E(n),h=(f=(a=u==null?void 0:u[0])==null?void 0:a.id)!=null?f:51504147202335;if(!h)throw new Error("Could not determine variant id");try{window.upcartOpenOnAddToCartOverride=!1,window.upcartShouldOpenOnAddToCartBackgroundNetworkCall=!1}catch(g){console.log("Failed to prevent upcart from opening")}await S(h,1),await _()}catch(u){console.error("Intercepted Buy It Now failed; falling back:",u),window.location.assign("/checkout")}}},!0);{let t={},i;(R=window.kachingCartApi)!=null&&R.updateTieredPromotionsBar&&(i=window.kachingCartApi.updateTieredPromotionsBar,Object.assign(t,window.kachingCartApi)),window.kachingCartApi=new Proxy(t,{get(e,n){return n==="updateTieredPromotionsBar"?async function(...r){i&&await i.apply(this,r),await Promise.all([new Promise(a=>setTimeout(a,1e4)),_()])}:e[n]},set(e,n,r){return n==="updateTieredPromotionsBar"&&(i=r,l("Kaching updateTieredPromotionsBar captured")),e[n]=r,!0}})}},q=()=>{let s=document.currentScript;if(!s)return;let c=s.dataset.revleyStoreId,d=s.dataset.revleyCheckoutHost;c&&d&&j(c,d)};q();return M(B);})();
1
+ "use strict";var SandboxCheckoutPkg=(()=>{var P=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var H=(c,l,p,y)=>{if(l&&typeof l=="object"||typeof l=="function")for(let d of U(l))!x.call(c,d)&&d!==p&&P(c,d,{get:()=>l[d],enumerable:!(y=M(l,d))||y.enumerable});return c};var j=c=>H(P({},"__esModule",{value:!0}),c);var N={};var B=(c,l)=>{var R,T;if(window.__checkoutInterceptInstalled)return;window.__checkoutInterceptInstalled=!0;let p=[/^\/(?:cart\/)?checkout(?:[?#]|$)/i,/^\/checkouts(?:\/|$|\?|#)/i],y=!1,d=(...t)=>y?console.debug("[checkout-intercept]",...t):void 0,S=t=>t.replace(/\/+$/,""),A=t=>t.endsWith(".myshopify.com")||t===location.hostname;function w(t,e=location.origin){try{return t instanceof URL?t:new URL(String(t),e)}catch(n){return null}}function m(t){let e=w(t);if(!e||!A(e.hostname))return!1;let n=S(e.pathname),r=p.some(i=>i.test(n));return r&&d("detected checkout-like URL:",String(e)),r}function C(t){let e=t==null?void 0:t.getAttribute("variant-params");if(!e)return null;let n=e.includes(""")?e.replace(/"/g,'"'):e;try{let r=JSON.parse(n);return Array.isArray(r)?r:null}catch(r){return null}}async function I(t,e=1){let n=await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({items:[{id:Number(t),quantity:e}]}),credentials:"same-origin"});if(!n.ok){let r=await n.text().catch(()=>"");throw new Error(`cart/add.js failed (${n.status}): ${r}`)}return n.json()}async function g(){let e=await(await fetch("/cart.js")).json(),n={},r=["_fbp","_fbc","_fbq","_ig_","_igbp","_igshid","_igsh","_ig_visitor_id","_gclid","_gcl_au","_gcl_aw","_gcl_dc","_gcl_gb","_ttp","_tt_enable_cookie","_scid","_sctr","_pin_unauth","_pin_id","_twitter_ads_id","_li_ss","_uetsid","_uetvid","_amzn","_amzn_ads_","_yclid","_ycl_","_rdt_uid","_quora_","_tb_","_ob_","_criteo_","_adobe_","_ttd_","_dv360_","_fbcv","_shopify_pixel_"],i=_=>r.some(h=>_===h||_.startsWith(h)||_.includes(h));document.cookie&&document.cookie.split(";").forEach(_=>{let h=_.trim();if(h){let[b,...O]=h.split("="),E=O.join("=");b&&E&&i(b)&&(n[b]=E)}});let o=`gid://shopify/Cart/${e.token}`,a=await(await fetch(`${l}/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({storeId:c,cartId:o,cookies:n})})).text();if(console.log("checkoutUrl",a),!a){console.error("No checkout ID received from backend");return}let f=w(a);if(!f){console.error("Invalid checkout URL received from backend:",a);return}sessionStorage.setItem("__revley_checkout_redirect","1"),location.assign(f.href)}let v=!1;function s(t){return v||!m(t)?!1:(v=!0,g(),!0)}if(window.__isCheckoutLike=m,window.__maybeRedirect=s,(R=window.Shopify)!=null&&R.designMode)return;window.addEventListener("pageshow",t=>{t.persisted&&sessionStorage.getItem("__revley_checkout_redirect")&&(sessionStorage.removeItem("__revley_checkout_redirect"),location.reload())});{let t=window.location,e=t.assign.bind(t),n=t.replace.bind(t);try{Object.defineProperty(t,"assign",{value:r=>{s(r)||e(r)},writable:!0,configurable:!0}),Object.defineProperty(t,"replace",{value:r=>{s(r)||n(r)},writable:!0,configurable:!0})}catch(r){d("Could not override location methods, relying on Service Worker:",r)}}{let t=window.open;window.open=function(e,n,r){return e&&s(e)?null:t.call(window,e,n,r)}}{let t=history.pushState.bind(history),e=history.replaceState.bind(history);history.pushState=function(n,r,i){if(!(i!=null&&s(i)))return t(n,r,i)},history.replaceState=function(n,r,i){if(!(i!=null&&s(i)))return e(n,r,i)},addEventListener("popstate",()=>void s(location.href),!0)}{let t=e=>e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0;addEventListener("click",e=>{let n=e;if(n.defaultPrevented||t(n))return;let r=e.target;for(;r&&r.nodeType===1&&r.tagName!=="A";)r=r.parentElement;let i=r;!i||!i.href||m(i.href)&&(n.preventDefault(),n.stopPropagation(),g())},!0)}{let t=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){try{if(k(this))return t.call(this);let n=this.getAttribute("action")||"";if(s(n)||Array.from(this.elements).some(i=>(i==null?void 0:i.name)==="checkout")&&s("/checkout"))return}catch(n){}return t.call(this)},addEventListener("submit",e=>{try{let n=e.target;if(k(n))return;let r=(n==null?void 0:n.getAttribute("action"))||"",i=Array.from((n==null?void 0:n.elements)||[]);(m(r)||i.some(o=>(o==null?void 0:o.name)==="checkout"))&&(e.preventDefault(),e.stopPropagation(),g())}catch(n){}},!0)}{let t=location.href;setInterval(()=>{location.href!==t&&(t=location.href,s(t))},250)}{let t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(n,r,i,o,u){try{typeof r=="string"&&m(r)&&s(r)}catch(a){}return t.call(this,n,r,!!i,o,u)}}{let t=window.fetch.bind(window);window.fetch=function(n,r){try{let i=typeof n=="string"||n instanceof URL?String(n):n.url;i&&m(i)&&s(i)}catch(i){}return t(n,r)}}let k=t=>t?Array.from(t.elements).some(e=>{var r,i;let n=e;return((r=n.name)==null?void 0:r.includes("__kaching_bundles"))||((i=n.name)==null?void 0:i.includes("kaching"))||t.classList.contains("kaching-form")}):!1;document.addEventListener("click",async t=>{var i,o,u;let e=t.target,n=(i=e==null?void 0:e.closest)==null?void 0:i.call(e,"button.shopify-payment-button__button");if(!n)return;let r=n.closest("shopify-accelerated-checkout");if(r){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation();try{let a=C(r),f=(u=(o=a==null?void 0:a[0])==null?void 0:o.id)!=null?u:51504147202335;if(!f)throw new Error("Could not determine variant id");try{window.upcartOpenOnAddToCartOverride=!1,window.upcartShouldOpenOnAddToCartBackgroundNetworkCall=!1}catch(_){console.log("Failed to prevent upcart from opening")}await I(f,1),await g()}catch(a){console.error("Intercepted Buy It Now failed; falling back:",a),window.location.assign("/checkout")}}},!0);{let t={},e;(T=window.kachingCartApi)!=null&&T.updateTieredPromotionsBar&&(e=window.kachingCartApi.updateTieredPromotionsBar,Object.assign(t,window.kachingCartApi)),window.kachingCartApi=new Proxy(t,{get(n,r){return r==="updateTieredPromotionsBar"?async function(...i){throw document.querySelectorAll(".shop-add-to-cart-button.product-form_submit").forEach(o=>{var a;o.disabled=!0,o.style.pointerEvents="none",o.style.opacity="0.5";let u=o.cloneNode(!0);u.disabled=!0,u.style.pointerEvents="none",u.style.opacity="0.5",(a=o.parentNode)==null||a.replaceChild(u,o)}),e&&await e.apply(this,i),await Promise.all([new Promise(o=>setTimeout(o,1e4)),g()]),new Error("STOP")}:n[r]},set(n,r,i){return r==="updateTieredPromotionsBar"&&(e=i,d("Kaching updateTieredPromotionsBar captured")),n[r]=i,!0}})}function L(){var n;let t=document.querySelector("#kaching-cart__checkout-button");if(!t||t.dataset.revleyReplaced)return;let e=t.cloneNode(!0);e.querySelectorAll(".kaching-cart__loading-spinner").forEach(r=>r.remove()),e.dataset.revleyReplaced="true",e.addEventListener("click",r=>{r.preventDefault(),r.stopPropagation(),e.disabled=!0,e.style.pointerEvents="none",e.style.opacity="0.5",g()}),(n=t.parentNode)==null||n.replaceChild(e,t)}L(),new MutationObserver(()=>L()).observe(document.body,{childList:!0,subtree:!0})},q=()=>{let c=document.currentScript;if(!c)return;let l=c.dataset.revleyStoreId,p=c.dataset.revleyCheckoutHost;l&&p&&B(l,p)};q();return j(N);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revley/sandbox-checkout-package",
3
- "version": "0.3.00",
3
+ "version": "0.3.02",
4
4
  "description": "Tiny TS package optimized for browsers with modern & legacy outputs",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.cjs",