PageSourceSearch

https://www.washabrush.com/cdn/shopifycloud/shop-js/client.js

js washabrush.com collected 2026-10-10 00:58:22 UTC 371,594 bytes, 4 lines download raw bytes

1!function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};var t=function(){return(t=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}function o(e,t,n,o){return new(n||(n=Promise))((function(i,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}l((o=o.apply(e,t||[])).next())}))}var i=Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]};function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,s=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=s.next()).done;)r.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return r}function a(e){return this instanceof a?(this.v=e,this):new a(e)}var l=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function c(e,t,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(e):o?o.value:t.get(e)}function u(e,t,n,o,i){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?i.call(e,n):i?i.value=n:t.set(e,n),n}var d,h,p=Object.freeze({__proto__:null,__extends:function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)},get __assign(){return t},__rest:n,__decorate:function(e,t,n,o){var i,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(r=(s<3?i(r):s>3?i(t,n,r):i(t,n))||r);return s>3&&r&&Object.defineProperty(t,n,r),r},__param:function(e,t){return function(n,o){t(n,o,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:o,__generator:function(e,t){var n,o,i,s,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=2&s[0]?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,o=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!(i=r.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(6===s[0]&&r.label<i[1]){r.label=i[1],i=s;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(s);break}i[2]&&r.ops.pop(),r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e],o=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},__createBinding:i,__exportStar:function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},__values:s,__read:r,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),i=0;for(t=0;t<n;t++)for(var s=arguments[t],r=0,a=s.length;r<a;r++,i++)o[i]=s[r];return o},__spreadArray:function(e,t,n){if(n||2===arguments.length)for(var o,i=0,s=t.length;i<s;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))},__await:a,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),s=[];return o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o;function r(e){i[e]&&(o[e]=function(t){return new Promise((function(n,o){s.push([e,t,n,o])>1||l(e,t)}))})}function l(e,t){try{!function(e){e.value instanceof a?Promise.resolve(e.value.v).then(c,u):d(s[0][2],e)}(i[e](t))}catch(e){d(s[0][3],e)}}function c(e){l("next",e)}function u(e){l("throw",e)}function d(e,t){e(t),s.shift(),s.length&&l(s[0][0],s[0][1])}},__asyncDelegator:function(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:a(e[o](t)),done:"return"===o}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=s(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,i){(function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)})(o,i,(t=e[n](t)).done,t.value)}))}}}
1,__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return l(t,e),t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:c,__classPrivateFieldSet:u,__classPrivateFieldIn:function(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}});class m{constructor(e,t){d.set(this,void 0),h.set(this,void 0),e&&(u(this,d,e,"f"),u(this,h,(e=>{t(e.target.value)}),"f"),c(this,d,"f").addEventListener("input",c(this,h,"f")))}destroy(){c(this,d,"f")&&c(this,h,"f")&&c(this,d,"f").removeEventListener("input",c(this,h,"f"))}}let f;d=new WeakMap,h=new WeakMap;const g=new Uint8Array(16);function v(){if(!f&&(f="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!f))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return f(g)}var _=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function b(e){return"string"==typeof e&&_.test(e)}const y=[];for(let e=0;e<256;++e)y.push((e+256).toString(16).slice(1));function w(e,t=0){return(y[e[t+0]]+y[e[t+1]]+y[e[t+2]]+y[e[t+3]]+"-"+y[e[t+4]]+y[e[t+5]]+"-"+y[e[t+6]]+y[e[t+7]]+"-"+y[e[t+8]]+y[e[t+9]]+"-"+y[e[t+10]]+y[e[t+11]]+y[e[t+12]]+y[e[t+13]]+y[e[t+14]]+y[e[t+15]]).toLowerCase()}let k,C,S=0,x=0;function E(e){if(!b(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function A(e,t,n){function o(e,o,i,s){var r;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof o&&(o=E(o)),16!==(null===(r=o)||void 0===r?void 0:r.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let a=new Uint8Array(16+e.length);if(a.set(o),a.set(e,o.length),a=n(a),a[6]=15&a[6]|t,a[8]=63&a[8]|128,i){s=s||0;for(let e=0;e<16;++e)i[s+e]=a[e];return i}return w(a)}try{o.name=e}catch(e){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}function T(e){return 14+(e+64>>>9<<4)+1}function P(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function M(e,t,n,o,i,s){return P((r=P(P(t,e),P(o,s)))<<(a=i)|r>>>32-a,n);var r,a}function L(e,t,n,o,i,s,r){return M(t&n|~t&o,e,t,i,s,r)}function j(e,t,n,o,i,s,r){return M(t&o|n&~o,e,t,i,s,r)}function O(e,t,n,o,i,s,r){return M(t^n^o,e,t,i,s,r)}function I(e,t,n,o,i,s,r){return M(n^(t|~o),e,t,i,s,r)}var N=A("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){const t=[],n=32*e.length,o="0123456789abcdef";for(let i=0;i<n;i+=8){const n=e[i>>5]>>>i%32&255,s=parseInt(o.charAt(n>>>4&15)+o.charAt(15&n),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[T(t)-1]=t;let n=1732584193,o=-271733879,i=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){const r=n,a=o,l=i,c=s;n=L(n,o,i,s,e[t],7,-680876936),s=L(s,n,o,i,e[t+1],12,-389564586),i=L(i,s,n,o,e[t+2],17,606105819),o=L(o,i,s,n,e[t+3],22,-1044525330),n=L(n,o,i,s,e[t+4],7,-176418897),s=L(s,n,o,i,e[t+5],12,1200080426),i=L(i,s,n,o,e[t+6],17,-1473231341),o=L(o,i,s,n,e[t+7],22,-45705983),n=L(n,o,i,s,e[t+8],7,1770035416),s=L(s,n,o,i,e[t+9],12,-1958414417),i=L(i,s,n,o,e[t+10],17,-42063),o=L(o,i,s,n,e[t+11],22,-1990404162),n=L(n,o,i,s,e[t+12],7,1804603682),s=L(s,n,o,i,e[t+13],12,-40341101),i=L(i,s,n,o,e[t+14],17,-1502002290),o=L(o,i,s,n,e[t+15],22,1236535329),n=j(n,o,i,s,e[t+1],5,-165796510),s=j(s,n,o,i,e[t+6],9,-1069501632),i=j(i,s,n,o,e[t+11],14,643717713),o=j(o,i,s,n,e[t],20,-373897302),n=j(n,o,i,s,e[t+5],5,-701558691),s=j(s,n,o,i,e[t+10],9,38016083),i=j(i,s,n,o,e[t+15],14,-660478335),o=j(o,i,s,n,e[t+4],20,-405537848),n=j(n,o,i,s,e[t+9],5,568446438),s=j(s,n,o,i,e[t+14],9,-1019803690),i=j(i,s,n,o,e[t+3],14,-187363961),o=j(o,i,s,n,e[t+8],20,1163531501),n=j(n,o,i,s,e[t+13],5,-1444681467),s=j(s,n,o,i,e[t+2],9,-51403784),i=j(i,s,n,o,e[t+7],14,1735328473),o=j(o,i,s,n,e[t+12],20,-1926607734),n=O(n,o,i,s,e[t+5],4,-378558),s=O(s,n,o,i,e[t+8],11,-2022574463),i=O(i,s,n,o,e[t+11],16,1839030562),o=O(o,i,s,n,e[t+14],23,-35309556),n=O(n,o,i,s,e[t+1],4,-1530992060),s=O(s,n,o,i,e[t+4],11,1272893353),i=O(i,s,n,o,e[t+7],16,-155497632),o=O(o,i,s,n,e[t+10],23,-1094730640),n=O(n,o,i,s,e[t+13],4,681279174),s=O(s,n,o,i,e[t],11,-358537222),i=O(i,s,n,o,e[t+3],16,-722521979),o=O(o,i,s,n,e[t+6],23,76029189),n=O(n,o,i,s,e[t+9],4,-640364487),s=O(s,n,o,i,e[t+12],11,-421815835),i=O(i,s,n,o,e[t+15],16,530742520),o=O(o,i,s,n,e[t+2],23,-995338651),n=I(n,o,i,s,e[t],6,-198630844),s=I(s,n,o,i,e[t+7],10,1126891415),i=I(i,s,n,o,e[t+14],15,-1416354905),o=I(o,i,s,n,e[t+5],21,-57434055),n=I(n,o,i,s,e[t+12],6,1700485571),s=I(s,n,o,i,e[t+3],10,-1894986606),i=I(i,s,n,o,e[t+10],15,-1051523),o=I(o,i,s,n,e[t+1],21,-2054922799),n=I(n,o,i,s,e[t+8],6,1873313359),s=I(s,n,o,i,e[t+15],10,-30611744),i=I(i,s,n,o,e[t+6],15,-1560198380),o=I(o,i,s,n,e[t+13],21,1309151649),n=I(n,o,i,s,e[t+4],6,-145523070),s=I(s,n,o,i,e[t+11],10,-1120210379),i=I(i,s,n,o,e[t+2],15,718787259),o=I(o,i,s,n,e[t+9],21,-343485551),n=P(n,r),o=P(o,a),i=P(i,l),s=P(s,c)}return[n,o,i,s]}(function(e){if(0===e.length)return[];const t=8*e.length,n=new Uint32Array(T(t));for(let o=0;o<t;o+=8)n[o>>5]|=(255&e[o/8])<<o%32;return n}(e),8*e.length))}));var z={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function D(e,t,n){if(z.randomUUID&&!t&&!e)return z.randomUUID();const o=(e=e||{}).random||(e.rng||v)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return w(o)}function R(e,t,n,o){switch(e){case 0:return t&n^~t&o;case 1:return t^n^o;case 2:return t&n^t&o^n&o;case 3:return t^n^o}}function B(e,t){return e<<t|e>>>32-t}var F=A("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const o=e.length/4+2,i=Math.ceil(o/16),s=new Array(i);for(let t=0;t<i;++t){const n=new Uint32Array(16);for(let o=0;o<16;++o)n[o]=e[64*t+4*o]<<24|e[64*t+4*o+1]<<16|e[64*t+4*o+2]<<8|e[64*t+4*o+3];s[t]=n}s[i-1][14]=8*(e.length-1)/Math.pow(2,32),s[i-1][14]=Math.floor(s[i-1][14]),s[i-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<i;++e){const o=new Uint32Array(80);for(let t=0;t<16;++t)o[t]=s[e][t];for(let e=16;e<80;++e)o[e]=B(o[e-3]^o[e-8]^o[e-14]^o[e-16],1);let i=n[0],r=n[1],a=n[2],l=n[3],c=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),s=B(i,5)+R(n,r,a,l)+c+t[n]+o[e]>>>0;c=l,l=a,a=B(r,30)>>>0,r=i,i=s}n[0]=n[0]+i>>>0,n[1]=n[1]+r>>>0,n[2]=n[2]+a>>>0,n[3]=n[3]+l>>>0,n[4]=n[4]+c>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>
1>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var U=Object.freeze({__proto__:null,v1:function(e,t,n){let o=t&&n||0;const i=t||new Array(16);let s=(e=e||{}).node||k,r=void 0!==e.clockseq?e.clockseq:C;if(null==s||null==r){const t=e.random||(e.rng||v)();null==s&&(s=k=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==r&&(r=C=16383&(t[6]<<8|t[7]))}let a=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:x+1;const c=a-S+(l-x)/1e4;if(c<0&&void 0===e.clockseq&&(r=r+1&16383),(c<0||a>S)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");S=a,x=l,C=r,a+=122192928e5;const u=(1e4*(268435455&a)+l)%4294967296;i[o++]=u>>>24&255,i[o++]=u>>>16&255,i[o++]=u>>>8&255,i[o++]=255&u;const d=a/4294967296*1e4&268435455;i[o++]=d>>>8&255,i[o++]=255&d,i[o++]=d>>>24&15|16,i[o++]=d>>>16&255,i[o++]=r>>>8|128,i[o++]=255&r;for(let e=0;e<6;++e)i[o+e]=s[e];return t||w(i)},v3:N,v4:D,v5:F,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!b(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)},validate:b,stringify:function(e,t=0){const n=w(e,t);if(!b(n))throw TypeError("Stringified UUID is invalid");return n},parse:E});
1const $="1.0.0",W="show_login_with_shop",q=()=>({width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight});function V({url:e,width:t,height:n,windowName:o,onClose:i}){const s={left:void 0===window.screenLeft?window.screenX:window.screenLeft,top:void 0===window.screenTop?window.screenY:window.screenTop},r=q(),a=r.width||screen.width,l=r.height||screen.height,c=screen.width&&window.screen.availWidth?screen.width/window.screen.availWidth:1,u=(a-t)/2/c+s.left,d=(l-n)/2/c+s.top,h=window.open(e,o,`scrollbars=yes,width=${t},height=${n},top=${d},left=${u}`);if(!h)return null;if(h.focus(),i){const e=setInterval((()=>{h.closed&&(i(),clearInterval(e))}),1e3)}return h}function H(e,t,n){e.getAttribute(t)!==n&&!0!==e[t]&&e.setAttribute(t,n)}function K(e){try{const t=new RegExp(`(${e})=([^;]+)`).exec(document.cookie);return t?t[2]:null}catch(e){return null}}function G(){return D()}function Z(e=location.origin){return o(this,void 0,void 0,(function*(){const t=fetch(`${e}/meta.json`);try{const e=yield t;return yield e.json()}catch(e){return null}}))}function J(e){try{return new URL(e).hostname}catch(t){return console.error(`[Shop Pay] Store URL (${e}) is not valid`,t),null}}function Q(e){return new URLSearchParams(window.location.search).get(e)}function Y(e,t){let n;return(...o)=>{clearTimeout(n),n=setTimeout((()=>{e(...o)}),t)}}function X(){return Boolean(navigator.userAgent)&&/(android|iphone|ipad|mobile|phone)/i.test(navigator.userAgent)}function ee(e){return null===e||""===e.trim()}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function te(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ne(e,t){return e(t={exports:{}},t.exports),t.exports}var oe=ne((function(e,t){e.exports=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var o=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],s=["fileName","functionName","source"],r=["args"],a=["evalOrigin"],l=o.concat(i,s,r,a);function c(e){if(e)for(var n=0;n<l.length;n++)void 0!==e[l[n]]&&this["set"+t(l[n])](e[l[n]])}c.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof c)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new c(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",o=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:o?o+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},c.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),o=e.substring(0,t),i=e.substring(t+1,n).split(","),s=e.substring(n+1);if(0===s.indexOf("@"))var r=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(s,""),a=r[1],l=r[2],u=r[3];return new c({functionName:o,args:i||void 0,fileName:a,lineNumber:l||void 0,columnNumber:u||void 0})};for(var u=0;u<o.length;u++)c.prototype["get"+t(o[u])]=n(o[u]),c.prototype["set"+t(o[u])]=function(e){return function(t){this[e]=Boolean(t)}}(o[u]);for(var d=0;d<i.length;d++)c.prototype["get"+t(i[d])]=n(i[d]),c.prototype["set"+t(i[d])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(i[d]);for(var h=0;h<s.length;h++)c.prototype["get"+t(s[h])]=n(s[h]),c.prototype["set"+t(s[h])]=function(e){return function(t){this[e]=String(t)}}(s[h]);return c}()})),ie=ne((function(e,t){var n,o,i,s;e.exports=(n=oe,o=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,s=/^(eval@)?(\[native code])?$/,{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(i))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(i)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),o=t.match(/ (\(.+\)$)/);t=o?t.replace(o[0],""):t;var i=this.extractLocation(o?o[1]:t),s=o&&t||void 0,r=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new n({functionName:s,fileName:r,lineNumber:i[1],columnNumber:i[2],source:e})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(s)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new n({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(t),i=o&&o[1]?o[1]:void 0,s=this.extractLocation(e.replace(t,""));return new n({functionName:i,fileName:s[0],lineNumber:s[1],columnNumber:s[2],source:e})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,o=e.message.split("\n"),i=[],s=2,r=o.length;s<r;s+=2){var a=t.exec(o[s]);a&&i.push(new n({fileName:a[2],lineNumber:a[1],source:o[s]}))}return i},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,o=e.stacktrace.split("\n"),i=[],s=0,r=o.length;s<r;s+=2){var a=t.exec(o[s]);a&&i.push(new n({functionName:a[3]||void 0,fileName:a[2],lineNumber:a[1],source:o[s]}))}return i},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(o)&&!e.match(/^Error created at/)}),this).map((function(e){var t,o=e.split("@"),i=this.extractLocation(o.pop()),s=o.shift()||"",r=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;s.match(/\(([^)]*)\)/)&&(t=s.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var a=void 0===t||"[arguments not available]"===t?void 0:t.split(",");return new n({functionName:r,args:a,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:e})}),this)}})}));
1const se="development",re="production",ae={name:"Bugsnag JavaScript",version:"7.13.2",url:"https://github.com/bugsnag/bugsnag-js"};function le({error:e,breadcrumbs:t,appId:n,appVersion:o,releaseStage:i,duration:s,time:r,metaData:a}){var l,c;const u=e.name,d=e.message,h=function(e){return ie.parse(e).map((e=>({method:e.functionName,file:e.fileName,lineNumber:e.lineNumber,columnNumber:e.columnNumber})))}(e),p=window.location.href,m=window.location.pathname,f=navigator.userAgent;return{payloadVersion:"4",exceptions:[{errorClass:u,errorMessage:d,type:"browserjs",stacktrace:h,message:d}],severity:"error",unhandled:!1,severityReason:{type:"handledException"},app:{id:n,version:o,releaseStage:i,type:"browser",duration:s},device:{locale:navigator.userLanguage||navigator.language,userAgent:f,time:r,orientation:null===(c=null===(l=window.screen)||void 0===l?void 0:l.orientation)||void 0===c?void 0:c.type},request:{url:p},breadcrumbs:t,context:m,metaData:a,user:{shopifyS:K("_shopify_s")},session:{}}}class ce{constructor({apiKey:e,appId:t,appVersion:n}){this.breadcrumbs=[],this.apiKey=e,this.appId=t,this.appVersion=n,this.startTime=new Date,this.releaseStage=re,this.initWindowErrorHandler(),this.leaveBreadcrumb("Bugsnag started",{},"state")}leaveBreadcrumb(e,t,n){this.breadcrumbs.push({name:e,metaData:t,type:n,timestamp:(new Date).toISOString()})}notify(e,t){this.releaseStage!==se?this.sendToBugsnag(e,t):this.logToConsole(e)}initWindowErrorHandler(){const e=window.onerror;window.onerror=(t,n,o,i,s)=>{s&&function(e){const t=ie.parse(e);return 0!==t.length&&t.some((e=>{var t;return null===(t=e.fileName)||void 0===t?void 0:t.includes("shop-js")}))}(s)&&this.notify(s),"function"==typeof e&&e.apply(this,[t,n,o,i,s])}}logToConsole(e){console.error(`[bugsnag - shop-js] error in ${this.releaseStage}`,{error:e})}sendToBugsnag(e,t){const n=new Date,o=n.toISOString(),i=function(e,t){if(e&&t)return t.getTime()-e.getTime()}(this.startTime,n),{breadcrumbs:s,appId:r,appVersion:a,releaseStage:l}=this,c=le({error:e,breadcrumbs:s,appId:r,appVersion:a,releaseStage:l,duration:i,time:o,metaData:t}),u=new XMLHttpRequest;u.open("POST","https://notify.bugsnag.com/"),u.setRequestHeader("Content-Type","application/json"),u.setRequestHeader("Bugsnag-Api-Key",this.apiKey),u.setRequestHeader("Bugsnag-Payload-Version","4"),u.setRequestHeader("Bugsnag-Sent-At",o);const d={apiKey:this.apiKey,notifier:ae,events:[c]};u.send(JSON.stringify(d))}}let ue;const de=e=>{ue?console.warn("Bugsnag.start() has already been called. Ignoring."):ue=new ce(e)},he=(e,t,n)=>{ue?ue.leaveBreadcrumb(e,t,n):console.warn("Bugsnag.leaveBreadcrumb() called before start().")},pe=(e,t)=>{ue?ue.notify(e,t):console.warn("Bugsnag.notify() called before start().")};function me(e=window.location.origin,t){const n=`${e}/services/login_with_shop/finalize`;return fetch(n).catch(t)}const fe=/^[^@]+@[^@]+\.[^@]{2,}$/i;function ge(e){return!!e&&RegExp(fe).test(e)}function ve({selector:e,onElementFound:t}){const n=new WeakSet,i=new MutationObserver((e=>{let t=!1;for(const n of e)if(n.addedNodes.length>0){t=!0;break}t&&s()}));function s(){document.querySelectorAll(e).forEach((e=>{n.has(e)||(t(e),n.add(e))}))}return function(){o(this,void 0,void 0,(function*(){yield function(){if(document.body)return Promise.resolve();return new Promise((e=>{window.addEventListener("DOMContentLoaded",(()=>e()))}))}(),s(),i.observe(document.body||document.documentElement,{childList:!0,subtree:!0})}))}(),i}function _e(e,t=!0){const n=Boolean(e);return!n&&t&&pe(new Error("HTML Element was not provided")),n}function be(e){return e.split("-")[1]}function ye(e){return"y"===e?"height":"width"}function we(e){return e.split("-")[0]}function ke(e){return["top","bottom"].includes(we(e))?"x":"y"}function Ce(e,t,n){let{reference:o,floating:i}=e;const s=o.x+o.width/2-i.width/2,r=o.y+o.height/2-i.height/2,a=ke(t),l=ye(a),c=o[l]/2-i[l]/2,u="x"===a;let d;switch(we(t)){case"top":d={x:s,y:o.y-i.height};break;case"bottom":d={x:s,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:r};break;case"left":d={x:o.x-i.width,y:r};break;default:d={x:o.x,y:o.y}}switch(be(t)){case"start":d[a]-=c*(n&&u?-1:1);break;case"end":d[a]+=c*(n&&u?-1:1)}return d}function Se(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}
1function xe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Ee(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:s,rects:r,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=t,m=Se(p),f=a[h?"floating"===d?"reference":"floating":d],g=xe(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(f)))||n?f:f.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...r.floating,x:o,y:i}:r.reference,_=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(_))&&await(null==s.getScale?void 0:s.getScale(_))||{x:1,y:1},y=xe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:_,strategy:l}):v);return{top:(g.top-y.top+m.top)/b.y,bottom:(y.bottom-g.bottom+m.bottom)/b.y,left:(g.left-y.left+m.left)/b.x,right:(y.right-g.right+m.right)/b.x}}const Ae=Math.min,Te=Math.max;function Pe(e,t,n){return Te(e,Ae(t,n))}const Me=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=e||{},{x:i,y:s,placement:r,rects:a,platform:l,elements:c}=t;if(null==n)return{};const u=Se(o),d={x:i,y:s},h=ke(r),p=ye(h),m=await l.getDimensions(n),f="y"===h,g=f?"top":"left",v=f?"bottom":"right",_=f?"clientHeight":"clientWidth",b=a.reference[p]+a.reference[h]-d[h]-a.floating[p],y=d[h]-a.reference[h],w=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let k=w?w[_]:0;k&&await(null==l.isElement?void 0:l.isElement(w))||(k=c.floating[_]||a.floating[p]);const C=b/2-y/2,S=u[g],x=k-m[p]-u[v],E=k/2-m[p]/2+C,A=Pe(S,E,x),T=null!=be(r)&&E!=A&&a.reference[p]/2-(E<S?u[g]:u[v])-m[p]/2<0;return{[h]:d[h]-(T?E<S?S-E:x-E:0),data:{[h]:A,centerOffset:E-A}}}});["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);
1const Le={left:"right",right:"left",bottom:"top",top:"bottom"};function je(e){return e.replace(/left|right|bottom|top/g,(e=>Le[e]))}function Oe(e,t,n){void 0===n&&(n=!1);const o=be(e),i=ke(e),s=ye(i);let r="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=je(r)),{main:r,cross:je(r)}}const Ie={start:"end",end:"start"};function Ne(e){return e.replace(/start|end/g,(e=>Ie[e]))}const ze=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:i,rects:s,initialPlacement:r,platform:a,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...f}=e,g=we(o),v=we(r)===r,_=await(null==a.isRTL?void 0:a.isRTL(l.floating)),b=d||(v||!m?[je(r)]:function(e){const t=je(e);return[Ne(e),t,Ne(t)]}(r));d||"none"===p||b.push(...function(e,t,n,o){const i=be(e);let s=function(e,t,n){const o=["left","right"],i=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:o:t?o:i;case"left":case"right":return t?s:r;default:return[]}}(we(e),"start"===n,o);return i&&(s=s.map((e=>e+"-"+i)),t&&(s=s.concat(s.map(Ne)))),s}(r,m,p,_));const y=[r,...b],w=await Ee(t,f),k=[];let C=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&k.push(w[g]),u){const{main:e,cross:t}=Oe(o,s,_);k.push(w[e],w[t])}if(C=[...C,{placement:o,overflows:k}],!k.every((e=>e<=0))){var S,x;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=y[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(x=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:x.placement;if(!n)switch(h){case"bestFit":{var E;const e=null==(E=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:E[0];e&&(n=e);break}case"initialPlacement":n=r}if(o!==n)return{reset:{placement:n}}}return{}}}},De=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,i=await async function(e,t){const{placement:n,platform:o,elements:i}=e,s=await(null==o.isRTL?void 0:o.isRTL(i.floating)),r=we(n),a=be(n),l="x"===ke(n),c=["left","top"].includes(r)?-1:1,u=s&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:h,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}(t,e);return{x:n+i.x,y:o+i.y,data:i}}}};function Re(e){return"x"===e?"y":"x"}const Be=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:o},u=await Ee(t,l),d=ke(we(i)),h=Re(d);let p=c[d],m=c[h];if(s){const e="y"===d?"bottom":"right";p=Pe(p+u["y"===d?"top":"left"],p,p-u[e])}if(r){const e="y"===h?"bottom":"right";m=Pe(m+u["y"===h?"top":"left"],m,m-u[e])}const f=a.fn({...t,[d]:p,[h]:m});return{...f,data:{x:f.x-n,y:f.y-o}}}}},Fe=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:s,middlewareData:r}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:o},d=ke(i),h=Re(d);let p=u[d],m=u[h];const f="function"==typeof a?a(t):a,g="number"==typeof f?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const e="y"===d?"height":"width",t=s.reference[d]-s.floating[e]+g.mainAxis,n=s.reference[d]+s.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,_;const e="y"===d?"width":"height",t=["top","left"].includes(we(i)),n=s.reference[h]-s.floating[e]+(t&&(null==(v=r.offset)?void 0:v[h])||0)+(t?0:g.crossAxis),o=s.reference[h]+s.reference[e]+(t?0:(null==(_=r.offset)?void 0:_[h])||0)-(t?g.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[d]:p,[h]:m}}}};function Ue(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $e(e){return Ue(e).getComputedStyle(e)}function We(e){return e instanceof Ue(e).Node}function qe(e){return We(e)?(e.nodeName||"").toLowerCase():""}let Ve;function He(){if(Ve)return Ve;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Ve=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),Ve):navigator.userAgent}function Ke(e){return e instanceof Ue(e).HTMLElement}function Ge(e){return e instanceof Ue(e).Element}function Ze(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ue(e).ShadowRoot||e instanceof ShadowRoot)}function Je(e){const{overflow:t,overflowX:n,overflowY:o,display:i}=$e(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}function Qe(e){return["table","td","th"].includes(qe(e))}function Ye(e){const t=/firefox/i.test(He()),n=$e(e),o=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!o&&"none"!==o||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function Xe(){return/^((?!chrome|android).)*safari/i.test(He())}function et(e){return["html","body","#document"].includes(qe(e))}const tt=Math.min,nt=Math.max,ot=Math.round;function it(e){const t=$e(e);let n=parseFloat(t.width),o=parseFloat(t.height);const i=Ke(e),s=i?e.offsetWidth:n,r=i?e.offsetHeight:o,a=ot(n)!==s||ot(o)!==r;return a&&(n=s,o=r),{width:n,height:o,fallback:a}}function st(e){return Ge(e)?e:e.contextElement}const rt={x:1,y:1};function at(e){const t=st(e);if(!Ke(t))return rt;const n=t.getBoundingClientRect(),{width:o,height:i,fallback:s}=it(t);let r=(s?ot(n.width):n.width)/o,a=(s?ot(n.height):n.height)/i;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}function lt(e,t,n,o){var i,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),a=st(e);let l=rt;t&&(o?Ge(o)&&(l=at(o)):l=at(e));const c=a?Ue(a):window,u=Xe()&&n;
vendor: 4,513 bytes, line 1
1let d=(r.left+(u&&(null==(i=c.visualViewport)?void 0:i.offsetLeft)||0))/l.x,h=(r.top+(u&&(null==(s=c.visualViewport)?void 0:s.offsetTop)||0))/l.y,p=r.width/l.x,m=r.height/l.y;if(a){const e=Ue(a),t=o&&Ge(o)?Ue(o):o;let n=e.frameElement;for(;n&&o&&t!==e;){const e=at(n),t=n.getBoundingClientRect(),o=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(o.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(o.paddingTop))*e.y,d*=e.x,h*=e.y,p*=e.x,m*=e.y,d+=t.x,h+=t.y,n=Ue(n).frameElement}}return xe({width:p,height:m,x:d,y:h})}function ct(e){return((We(e)?e.ownerDocument:e.document)||window.document).documentElement}function ut(e){return Ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dt(e){return lt(ct(e)).left+ut(e).scrollLeft}function ht(e){if("html"===qe(e))return e;const t=e.assignedSlot||e.parentNode||Ze(e)&&e.host||ct(e);return Ze(t)?t.host:t}function pt(e){const t=ht(e);return et(t)?t.ownerDocument.body:Ke(t)&&Je(t)?t:pt(t)}function mt(e,t){var n;void 0===t&&(t=[]);const o=pt(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=Ue(o);return i?t.concat(s,s.visualViewport||[],Je(o)?o:[]):t.concat(o,mt(o))}function ft(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=Ue(e),o=ct(e),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,a=0,l=0;if(i){s=i.width,r=i.height;const e=Xe();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:r,x:a,y:l}}(e,n);else if("document"===t)o=function(e){const t=ct(e),n=ut(e),o=e.ownerDocument.body,i=nt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=nt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+dt(e);const a=-n.scrollTop;return"rtl"===$e(o).direction&&(r+=nt(t.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:a}}(ct(e));else if(Ge(t))o=function(e,t){const n=lt(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,s=Ke(e)?at(e):{x:1,y:1};return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:i*s.x,y:o*s.y}}(t,n);else{const n={...t};if(Xe()){var i,s;const t=Ue(e);n.x-=(null==(i=t.visualViewport)?void 0:i.offsetLeft)||0,n.y-=(null==(s=t.visualViewport)?void 0:s.offsetTop)||0}o=n}return xe(o)}function gt(e,t){return Ke(e)&&"fixed"!==$e(e).position?t?t(e):e.offsetParent:null}function vt(e,t){const n=Ue(e);if(!Ke(e))return n;let o=gt(e,t);for(;o&&Qe(o)&&"static"===$e(o).position;)o=gt(o,t);return o&&("html"===qe(o)||"body"===qe(o)&&"static"===$e(o).position&&!Ye(o))?n:o||function(e){let t=ht(e);for(;Ke(t)&&!et(t);){if(Ye(t))return t;t=ht(t)}return null}(e)||n}function _t(e,t,n){const o=Ke(t),i=ct(t),s=lt(e,!0,"fixed"===n,t);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==qe(t)||Je(i))&&(r=ut(t)),Ke(t)){const e=lt(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else i&&(a.x=dt(i));return{x:s.left+r.scrollLeft-a.x,y:s.top+r.scrollTop-a.y,width:s.width,height:s.height}}const bt={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=mt(e).filter((e=>Ge(e)&&"body"!==qe(e))),i=null;const s="fixed"===$e(e).position;let r=s?ht(e):e;for(;Ge(r)&&!et(r);){const e=$e(r),t=Ye(r);"fixed"===e.position&&(i=null),(s?t||i:t||"static"!==e.position||!i||!["absolute","fixed"].includes(i.position))?i=e:o=o.filter((e=>e!==r)),r=ht(r)}return t.set(e,o),o}(t,this._c):[].concat(n),o],r=s[0],a=s.reduce(((e,n)=>{const o=ft(t,n,i);return e.top=nt(o.top,e.top),e.right=tt(o.right,e.right),e.bottom=tt(o.bottom,e.bottom),e.left=nt(o.left,e.left),e}),ft(t,r,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=Ke(n),s=ct(n);if(n===s)return t;let r={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==qe(n)||Je(s))&&(r=ut(n)),Ke(n))){const e=lt(n);a=at(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-r.scrollLeft*a.x+l.x,y:t.y*a.y-r.scrollTop*a.y+l.y}},isElement:Ge,getDimensions:function(e){return it(e)},getOffsetParent:vt,getDocumentElement:ct,getScale:at,async getElementRects(e){let{reference:t,floating:n,strategy:o}=e;const i=this.getOffsetParent||vt,s=this.getDimensions;return{reference:_t(t,await i(n),o),floating:{x:0,y:0,...await s(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===$e(e).direction};
1const yt=(e,t,n)=>{const o=new Map,i={platform:bt,...n},s={...i.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,a=s.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ce(c,o,l),h=o,p={},m=0;for(let n=0;n<a.length;n++){const{name:s,fn:f}=a[n],{x:g,y:v,data:_,reset:b}=await f({x:u,y:d,initialPlacement:o,placement:h,strategy:i,middlewareData:p,rects:c,platform:r,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[s]:{...p[s],..._}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await r.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:u,y:d}=Ce(c,h,l))),n=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:p}})(e,t,{...i,platform:s})},wt=430,kt="\n  bottom: 0;\n  top: auto !important;\n  left: 0 !important;\n  right: 0 !important;\n  border-radius: 32px 32px 0 0;\n",Ct=`\n<style>\n.sda-overlay {\n  position: fixed;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(0, 0, 0, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  z-index: 2147483647 !important;\n  will-change: opacity, transform;\n}\n\n.sda-modal {\n  background-color: #fff;\n  position: absolute;\n  min-width: 320px;\n  border-radius: 32px;\n  padding: 40px 28px 16px;\n  will-change: opacity, transform;\n}\n\n.sda-modal:focus {\n  outline: 0;\n}\n\n@media screen and (max-width: 430px) {\n  .sda-modal {\n    ${kt}\n    padding: 32px 0 16px;\n    box-sizing: border-box;\n  }\n\n  .arrow {\n    display: none;\n  }\n}\n\n.sda-modal.disable-popup {\n  ${kt}\n}\n\n.sda-modal-close-button {\n    background: none;\n    border: none;\n    position: absolute;\n    right: 16px;\n    top: 24px;\n    padding: 8px;\n    cursor: pointer;\n    display: flex;\n}\n\n.sda-modal-close-button:focus,\n.sda-modal-close-button:hover {\n  border-radius: 6px;\n  background: rgb(0 0 0 / 0.03);\n  color: #7b61f0;\n  outline: none;\n\n  --icon-color: #7b61f0;\n}\n\n.sda-modal-close-button close-icon {\n    pointer-events: none;\n}\n\n.sda-landing {\n    width: 320px;\n    margin: auto;\n}\n\n.sda-shop-logo {\n    text-align: center;\n    padding: 12px 0 8px 0;\n}\n\n.sda-hidden {\n  height: 0 !important;\n  border: 0;\n  padding: 0;\n  margin: 0;\n  visibility: hidden;\n  overflow: hidden;\n}\n\n.focus-trap {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  white-space: nowrap;\n  width: 1px;\n}\n\n@media (forced-colors: active) {\n  .sda-modal {\n    border: 1px solid;\n  }\n}\n\n.arrow {\n  position: absolute;\n  background-color: #fff;\n  width: 24px;\n  height: 24px;\n  transform: rotate(45deg);\n}\n</style>\n\n<div class="sda-overlay sda-hidden">\n  <button type="button" aria-hidden="true" class="focus-trap focus-trap--start"></button>\n  <section class="sda-modal" part="modal" role="dialog" aria-modal="true" aria-label="Sign in with Shop" tabindex="-1">\n      <button type="button" class="sda-modal-close-button" aria-label="Close">\n          <close-icon size="16"/>\n      </button>\n      <div class="sda-landing">\n          <slot></slot>\n      </div>\n      <div class="sda-shop-logo">\n          <shop-logo role="img" size="20" color="brand" label="Shop"/>\n      </div>\n  </section>\n  <button type="button" aria-hidden="true" class="focus-trap focus-trap--end"></button>\n</div>\n`;var St;!function(e){e.Dynamic="DYNAMIC",e.Static="STATIC",e.Mobile="MOBILE"}(St||(St={}));const xt=new Map([["top","bottom"],["top-end","bottom"],["top-start","bottom"],["right","left"],["right-end","left"],["right-start","left"],["bottom","top"],["bottom-end","top"],["bottom-start","top"],["left","right"],["left-end","right"],["left-start","right"]]),Et={[St.Dynamic]:e=>{let t=e.querySelector(".arrow");return null===t&&(t=document.createElement("div"),t.className="arrow",e.appendChild(t)),{config:{placement:"right",middleware:[De(22),Be({limiter:Fe({offset:64})}),ze({fallbackPlacements:["left","top","bottom"]}),Me({element:t}),{name:"center",fn(){return o(this,void 0,void 0,(function*(){return{data:{center:window.matchMedia("screen and (((min-width: 430px) and (max-width: 1280px)) or (max-height: 750px))").matches}}}))}}]},fn:({x:n,y:o,placement:i,strategy:s,middlewareData:r})=>{const{center:a}=r;if(a.center)return null!==t&&(t.style.display="none"),Object.assign(e.style,{top:(window.innerHeight-e.offsetHeight)/2+"px",left:(window.innerWidth-e.offsetWidth)/2+"px",bottom:"",right:""}),null;Object.assign(e.style,{left:`${n}px`,top:`${o}px`,right:"",bottom:""});const{arrow:l}=r,c=xt.get(i);return null!==t&&Object.assign(t.style,{left:void 0===(null==l?void 0:l.x)?"":`${null==l?void 0:l.x}px`,top:void 0===(null==l?void 0:l.y)?"":`${null==l?void 0:l.y}
1px`,right:"",bottom:"",display:"",[c]:"-12px"}),{x:n,y:o,strategy:s,placement:i,staticSide:c,middlewareData:r}}}},[St.Static]:(e,t={})=>({config:{},fn:()=>{const n=e.querySelector(".arrow");return null!==n&&(n.style.display="none"),Object.assign(e.style,{top:"16px",right:"16px",bottom:"auto",left:"auto"},t),null}}),[St.Mobile]:e=>({config:{},fn:()=>(Object.assign(e.style,{top:"auto !important",right:"0 !important",bottom:"0 !important",left:"auto"}),null)})},At={cleanup:()=>{},updatePosition:()=>o(void 0,void 0,void 0,(function*(){return Promise.resolve(null)}))};function Tt({anchorElement:e,floatingElement:t,behavior:n=St.Static},i={}){if(null===t)return At;const s=null==e&&n!==St.Mobile?Et[St.Static](t,i):Et[n](t,i),r=e||document.body,a=()=>o(this,void 0,void 0,(function*(){const e=yield yt(r,t,s.config);return s.fn(e)}));return{cleanup:function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=!0,animationFrame:a=!1}=o,l=i&&!a,c=l||s?[...Ge(e)?mt(e):e.contextElement?mt(e.contextElement):[],...mt(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let u,d=null;r&&(d=new ResizeObserver((()=>{n()})),Ge(e)&&!a&&d.observe(e),Ge(e)||!e.contextElement||a||d.observe(e.contextElement),d.observe(t));let h=a?lt(e):null;return a&&function t(){const o=lt(e);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n(),h=o,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(u)}}(r,t,a,{ancestorScroll:!1,ancestorResize:!0,elementResize:!0,animationFrame:!1}),updatePosition:a}}var Pt=ne((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.extractDomain=t.PRODUCTION_CANADA_ENDPOINT=t.PRODUCE_ENDPOINT=t.PRODUCE_BATCH_ENDPOINT=t.PRODUCTION_DOMAIN=t.DEVELOPMENT_DOMAIN=void 0,t.DEVELOPMENT_DOMAIN="http://localhost:8082",t.PRODUCTION_DOMAIN="https://monorail-edge.shopifysvc.com",t.PRODUCE_BATCH_ENDPOINT="/unstable/produce_batch",t.PRODUCE_ENDPOINT="/v1/produce",t.PRODUCTION_CANADA_ENDPOINT="https://monorail-edge-ca.shopifycloud.com/v1/produce",t.extractDomain=function(e){return"https://".concat(new URL(e).hostname)}}));te(Pt),Pt.extractDomain,Pt.PRODUCTION_CANADA_ENDPOINT,Pt.PRODUCE_ENDPOINT,Pt.PRODUCE_BATCH_ENDPOINT,Pt.PRODUCTION_DOMAIN,Pt.DEVELOPMENT_DOMAIN;var Mt=ne((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isCompositeMonorailEvent=void 0,t.isCompositeMonorailEvent=function(e){return void 0!==e.schemaId}}));te(Mt),Mt.isCompositeMonorailEvent;var Lt=Mt,jt=ne((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ProducerMiddleware=void 0;var n=function(){function e(e){this.producer=e}return e.prototype.do=function(e,t){return(0,Lt.isCompositeMonorailEvent)(e)?this.producer.produce(e):this.producer.produceBatch(e)},e}();t.ProducerMiddleware=n}));te(jt),jt.ProducerMiddleware;var Ot=ne((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.v4=void 0,t.v4=function(){return"object"==typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():U.v4()}}));te(Ot),Ot.v4;var It=ne((function(e,t){function n(e,t){return void 0===t&&(t=!0),e&&Object.keys(e).length&&t?Object.keys(e).map((function(t){var n;return(n={})[o(t)]=e[t],n})).reduce((function(e,t){return p.__assign(p.__assign({},e),t)})):e}function o(e){return e.split(/(?=[A-Z])/).join("_").toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.toUnderscoreCase=t.convertAllEventsToUnderscoreCase=t.convertStringToUnderscoreCase=void 0,t.toUnderscoreCase=n,t.convertStringToUnderscoreCase=o,t.convertAllEventsToUnderscoreCase=function(e){return e.events.map((function(e){var t=!0,o=!0;return e&&e.options&&Object.prototype.hasOwnProperty.call(e.options,"convertEventCase")&&(t=Boolean(e.options.convertEventCase)),e&&e.options&&Object.prototype.hasOwnProperty.call(e.options,"convertMetaDataCase")&&(o=Boolean(e.options.convertMetaDataCase)),{schema_id:e.schemaId,payload:n(e.payload,t),metadata:n(e.metadata,o)}}))}}));te(It),It.toUnderscoreCase,It.convertAllEventsToUnderscoreCase,It.convertStringToUnderscoreCase;
1var Nt=ne((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MonorailRetriesExceededError=t.MonorailRequestError=t.MonorailBatchProduceError=t.MonorailUnableToProduceError=void 0;var n=function(e){function t(n){var o=e.call(this,"Error producing to the Monorail Edge. Response received: ".concat(JSON.stringify(n)))||this;return o.response=n,Object.setPrototypeOf(o,t.prototype),o}return p.__extends(t,e),t}(Error);t.MonorailUnableToProduceError=n;var o=function(e){function t(n){var o=e.call(this,"Error producing to the Monorail Edge. Response received: ".concat(JSON.stringify(n)))||this;return Object.setPrototypeOf(o,t.prototype),o.response=n,o}return p.__extends(t,e),t}(Error);t.MonorailBatchProduceError=o;var i=function(e){function t(n){var o=e.call(this,"Error completing request. A network failure may have prevented the request from completing. Error: ".concat(n))||this;return Object.setPrototypeOf(o,t.prototype),o}return p.__extends(t,e),t}(Error);t.MonorailRequestError=i;var s=function(e){function t(n){var o=e.call(this,"".concat(n))||this;return Object.setPrototypeOf(o,t.prototype),o}return p.__extends(t,e),t}(Error);t.MonorailRetriesExceededError=s}));te(Nt),Nt.MonorailRetriesExceededError,Nt.MonorailRequestError,Nt.MonorailBatchProduceError,Nt.MonorailUnableToProduceError;var zt=Pt,Dt=It,Rt=Ot,Bt=Nt,Ft=ne((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HttpProducer=void 0;var n=function(){function e(e,t){void 0===e&&(e=zt.DEVELOPMENT_DOMAIN),void 0===t&&(t=!1),this.edgeDomain=e,this.keepalive=t}return e.withEndpoint=function(t){return new e(zt.extractDomain(t))},e.getHeadersFromMetadata=function(e){var t={"Content-Type":"application/json; charset=utf-8","X-Monorail-Edge-Event-Created-At-Ms":(e&&e.eventCreatedAtMs||Date.now()).toString(),"X-Monorail-Edge-Event-Sent-At-Ms":Date.now().toString(),"X-Monorail-Edge-Client-Message-Id":(e&&e.clientMessageId||(0,Rt.v4)()).toString()};return e&&e.userAgent&&(t["User-Agent"]=e.userAgent),t},e.prototype.produceBatch=function(t){return p.__awaiter(this,void 0,void 0,(function(){var n,o,i,s,r,a;return p.__generator(this,(function(l){switch(l.label){case 0:n={events:(0,Dt.convertAllEventsToUnderscoreCase)(t),metadata:(0,Dt.toUnderscoreCase)(t.metadata)},l.label=1;case 1:return l.trys.push([1,3,,4]),[4,fetch(this.produceBatchEndpoint(),{method:"post",headers:e.getHeadersFromMetadata(t.metadata),body:JSON.stringify(n),keepalive:this.keepalive})];case 2:return o=l.sent(),[3,4];case 3:throw i=l.sent(),new Bt.MonorailRequestError(i);case 4:return 207!==o.status?[3,6]:[4,o.json()];case 5:throw s=l.sent(),new Bt.MonorailBatchProduceError(s);case 6:return o.ok?[3,8]:(r=Bt.MonorailUnableToProduceError.bind,a={status:o.status},[4,o.text()]);case 7:throw new(r.apply(Bt.MonorailUnableToProduceError,[void 0,(a.message=l.sent(),a)]));case 8:return[2,{status:o.status}]}}))}))},e.prototype.produce=function(t){return p.__awaiter(this,void 0,void 0,(function(){var n,o,i,s,r,a;return p.__generator(this,(function(l){switch(l.label){case 0:n=!0,t&&t.options&&Object.prototype.hasOwnProperty.call(t.options,"convertEventCase")&&(n=Boolean(t.options.convertEventCase)),o={schema_id:t.schemaId,payload:(0,Dt.toUnderscoreCase)(t.payload,n)},l.label=1;case 1:return l.trys.push([1,3,,4]),[4,fetch(this.produceEndpoint(),{method:"post",headers:e.getHeadersFromMetadata(t.metadata),body:JSON.stringify(o),keepalive:this.keepalive})];case 2:return i=l.sent(),[3,4];case 3:throw s=l.sent(),new Bt.MonorailRequestError(s);case 4:if(!i)throw new Bt.MonorailUnableToProduceError({message:"No response from edge"});return i.ok?[3,6]:(r=Bt.MonorailUnableToProduceError.bind,a={status:i.status},[4,i.text()]);case 5:throw new(r.apply(Bt.MonorailUnableToProduceError,[void 0,(a.message=l.sent(),a)]));case 6:return[2,{status:i.status}]}}))}))},e.prototype.produceBatchEndpoint=function(){return this.edgeDomain+zt.PRODUCE_BATCH_ENDPOINT},e.prototype.produceEndpoint=function(){return this.edgeDomain+zt.PRODUCE_ENDPOINT},e}();t.HttpProducer=n}));te(Ft),Ft.HttpProducer;
1var Ut=ne((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LogProducer=void 0;var n=function(){function e(t){this.sendToConsole=t,t&&e.printWelcomeMessage(t)}return e.printWelcomeMessage=function(e){console.log("%c👋 from Monorail%c\n\n"+"We've noticed that you're".concat(e?"":" not"," ")+"running in debug mode. "+"As such, we will ".concat(e?"produce":"not produce"," ")+"Monorail events to the console. "+"\n\nIf you want Monorail events to ".concat(e?"stop":"start"," ")+"appearing here, %cset debugMode=".concat((!e).toString(),"%c, ")+"for the Monorail Log Producer in your code.","font-size: large;","font-size: normal;","font-weight: bold;","font-weight: normal;")},e.prototype.produce=function(e){return this.sendToConsole&&console.log("Monorail event produced",e),new Promise((function(t){t(e)}))},e.prototype.produceBatch=function(e){return this.sendToConsole&&console.log("Monorail Batch event produced",e),new Promise((function(t){t(e)}))},e}();t.LogProducer=n}));te(Ut),Ut.LogProducer;var $t=jt,Wt=Ft,qt=Ut,Vt=ne((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Monorail=void 0;var n=function(){function e(t,n){this.producer=t,this.middleware=n,this.executeChain=e.buildMiddlewareChain(this.middleware.concat(new $t.ProducerMiddleware(t)))}return e.createLogProducer=function(t){return new e(new qt.LogProducer(t.debugMode),t.middleware||[])},e.createHttpProducerWithEndpoint=function(t,n){return void 0===n&&(n=[]),new e(Wt.HttpProducer.withEndpoint(t),n)},e.createHttpProducer=function(t){var n=t.options&&t.options.keepalive;return new e(t.production?new Wt.HttpProducer(zt.PRODUCTION_DOMAIN,n):new Wt.HttpProducer(zt.DEVELOPMENT_DOMAIN,n),t.middleware||[])},e.buildMiddlewareChain=function(e,t){var n=this;return void 0===t&&(t=0),t===e.length?this.identityFn:function(o){return e[t].do(o,n.buildMiddlewareChain(e,t+1))}},e.prototype.produce=function(e){return e.metadata=p.__assign({eventCreatedAtMs:Date.now(),clientMessageId:(0,Rt.v4)()},e.metadata),this.executeChain(e)},e.prototype.produceBatch=function(e){return this.executeChain(e)},e}();t.Monorail=n}));te(Vt),Vt.Monorail;var Ht=ne((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.RetryMiddleware=void 0;var n=function(){function e(e,t){void 0===e&&(e=3),void 0===t&&(t=150),this.maxRetries=e,this.delayMs=t}return e.prototype.do=function(e,t){return p.__awaiter(this,void 0,void 0,(function(){var n,o,i,s,r;return p.__generator(this,(function(a){switch(a.label){case 0:n=0,a.label=1;case 1:if(!(n<this.maxRetries))return[3,7];i=void 0,a.label=2;case 2:return a.trys.push([2,4,,6]),[4,t(e)];case 3:return i=a.sent(),[3,6];case 4:if(s=a.sent(),o=o||new Error,o=new Error("".concat(o.message," Retry count:").concat(n+1," Error msg:").concat(s.message,"\n")),s instanceof Bt.MonorailUnableToProduceError&&(r=s.response.status)&&r>=400&&r<500)throw s;return[4,this.delay(this.delayMs*Math.pow(2,n))];case 5:return a.sent(),n++,[3,1];case 6:return[2,i];case 7:throw o?o.message="Retry count of ".concat(this.maxRetries," exceeded. Failed with error: \n").concat(o.message," Aborting request for ").concat(JSON.stringify(e)):o=new Error,new Bt.MonorailRetriesExceededError(o)}}))}))},e.prototype.delay=function(e){return new Promise((function(t){return setTimeout(t,e)}))},e}();t.RetryMiddleware=n}));te(Ht),Ht.RetryMiddleware;var Kt=Vt,Gt=Ht,Zt=ne((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.RetryMiddleware=t.MonorailRetriesExceededError=t.MonorailUnableToProduceError=t.MonorailRequestError=t.Monorail=void 0,Object.defineProperty(t,"Monorail",{enumerable:!0,get:function(){return Kt.Monorail}}),Object.defineProperty(t,"MonorailRequestError",{enumerable:!0,get:function(){return Bt.MonorailRequestError}}),Object.defineProperty(t,"MonorailUnableToProduceError",{enumerable:!0,get:function(){return Bt.MonorailUnableToProduceError}}),Object.defineProperty(t,"MonorailRetriesExceededError",{enumerable:!0,get:function(){return Bt.MonorailRetriesExceededError}}),Object.defineProperty(t,"RetryMiddleware",{enumerable:!0,get:function(){return Gt.RetryMiddleware}})}));te(Zt),Zt.RetryMiddleware,Zt.MonorailRetriesExceededError,Zt.MonorailUnableToProduceError,Zt.MonorailRequestError;var Jt,Qt,Yt,Xt,en,tn,nn,on,sn,rn,an=Zt.Monorail;function ln(...e){var t;return o(this,void 0,void 0,(function*(){if(!window.ShopifyAnalytics&&!window.analytics)return{};let n;Boolean(null===(t=window.trekkie)||void 0===t?void 0:t.ready)?n=cn():(window.trekkie=window.trekkie||[],n=new Promise((e=>{window.trekkie.push(["ready",()=>{e(cn())}])})));const o=yield n;return e.reduce(((e,t)=>{const n=o[t];return void 0!==n&&(e[t]=n),e}),{})}))}function cn(){let e;return Promise.race([new Promise((t=>e=setTimeout((()=>t({})),1e4))),new Promise((e=>{var t,n,o;const i=(null===(n=null===(t=window.ShopifyAnalytics)||void 0===t?void 0:t.lib)||void 0===n?void 0:n.ready)||(null===(o=window.analytics)||void 0===o?void 0:o.ready);null==i||i((()=>{var t,n,o;const i=(null===(n=null===(t=window.ShopifyAnalytics)||void 0===t?void 0:t.lib)||void 0===n?void 0:n.trekkie)||(null===(o=window.analytics)||void 0===o?void 0:o.trekkie);e(i.defaultAttributes)}))}))]).finally((()=>clearTimeout(e)))}!function(e){e.Interest="interest",e.SplitPay="split_pay",e.ZeroPercent="zero_percent"}(Jt||(Jt={})),function(e){e.Cart="cart",e.Product="product"}(Qt||(Qt={})),function(e){e.PayInFour="pay_in_4",e.AsLowAs="as_low_as",e.PayInFourAsLowAs="pay_in_4_or_as_low_as"}(Yt||(Yt={})),function(e){e.Standard="standard",e.CustomizedByMerchant="customized_by_merchant"}(Xt||(Xt={})),function(e){e.SplitPay="split_pay",e.ZeroInterest="zero_interest",e.InterestOnly="interest_only",e.ZeroInterestOnly="zero_interest_only",e.Adaptive="adaptive",e.Ineligible="ineligible"}(en||(en={})),function(e){e.Close="close",e.ContinueToCheckout="continue_to_checkout"}(tn||(tn={})),function(e){e.SplitPay="split_pay",e.Monthly="monthly"}(nn||(nn={})),function(e){e.UiImpression="shop_js_ui_impression/1.1",e.InstallmentsModalOpened="shop_pay_installments_dynamic_modal_impression/1.0",e.InstallmentsModalUserAction="shop_pay_installments_dynamic_modal_user_actions/1.0",e.InstallmentsBannerImpression="shop_pay_installments_banner_ui_impression/1.1",e.InstallmentsInvali
1dMetadata="shop_pay_installments_banner_invalid_metadata/1.0",e.ShopLoginFirstTimeRender="shop_js_ui_shop_login_first_time_render/1.0",e.ShopifyLoginWithShopSdkDiscountStatus="shopify_pay_login_with_shop_sdk_discount_status/2.0",e.LoginWithShopSdkPageImpression="shopify_pay_login_with_shop_sdk_page_impressions/3.0",e.LoginWithShopSdkUserAction="shopify_pay_login_with_shop_sdk_user_actions/2.0",e.LoginWithShopSdkErrorEvents="shopify_pay_login_with_shop_sdk_error_events/1.0"}(on||(on={})),function(e){e.AuthorizeModal="AUTHORIZE_MODAL",e.ClassicCustomerAccount="CLASSIC_CUSTOMER_ACCOUNTS_ACCOUNT_PAGE",e.ClassicCustomerAccountCreateAccount="CLASSIC_CUSTOMER_ACCOUNTS_CREATE_ACCOUNT_PAGE",e.ClassicCustomerAccountLogin="CLASSIC_CUSTOMER_ACCOUNTS_LOGIN_PAGE",e.ComponentLoadedFollowing="COMPONENT_LOADED_FOLLOWING",e.ComponentLoadedNotFollowing="COMPONENT_LOADED_NOT_FOLLOWING",e.ContinueWithShop="CONTINUE_WITH_SHOP_PAGE",e.DiscountSaved="DISCOUNT_SAVE_CONFIRMATION_PAGE",e.DiscountShown="DISCOUNT_SHOWN",e.FollowButtonShownInViewport="FOLLOW_BUTTON_SHOWN_IN_VIEWPORT",e.FollowingGetShopAppCta="FOLLOWING_GET_SHOP_APP_CTA",e.PartnerEmailInputShown="PARTNER_EMAIL_INPUT_SHOWN",e.PhoneConsent="TEXT_MARKETING_SIGN_UP",e.PhoneConsentConfirmed="TEXT_MARKETING_CONFIRMED_PAGE",e.PhoneConsentDeclined="TEXT_MARKETING_DECLINED_PAGE",e.SdkLoaded="SDK_HAS_LOADED_INITIAL_PAGE"}(sn||(sn={})),function(e){e.ThirdPartyFormSubmission="3RD_PARTY_EMAIL_CAPTURE_FORM_SUBMISSION_CLICK",e.FollowOnShopClicked="FOLLOW_ON_SHOP_CLICKED",e.FollowingGetShopAppClick="FOLLOWING_GET_SHOP_APP_CLICK",e.ContinueWithShopClicked="CONTINUE_WITH_SHOP_BUTTON_CLICK",e.EmailEntered="EMAIL_ENTERED",e.CreateAccountLinkClicked="CREATE_ACCOUNT_CLICK",e.PhoneConsentProvided="SHARE_PHONE_CLICK",e.PhoneConsentDeclined="DO_NOT_SHARE_PHONE_CLICK"}(rn||(rn={}));const un=an.createHttpProducer({production:!0});class dn{constructor(e,t,n=""){var o,i;this.shopifyPermanentDomain=null!==(i=null===(o=window.Shopify)||void 0===o?void 0:o.shop)&&void 0!==i?i:"",this.impressionTracked=!1,this.bannerImpressionTracked={},this.modalActionTracker={},this.shopLoginFirstTimeRenderTracked={},this.invalidBannerMetadataTracked=!1,this.pageImpressionTracked={AUTHORIZE_MODAL:!1,CLASSIC_CUSTOMER_ACCOUNTS_ACCOUNT_PAGE:!1,CLASSIC_CUSTOMER_ACCOUNTS_CREATE_ACCOUNT_PAGE:!1,CLASSIC_CUSTOMER_ACCOUNTS_LOGIN_PAGE:!1,COMPONENT_LOADED_FOLLOWING:!1,COMPONENT_LOADED_NOT_FOLLOWING:!1,CONTINUE_WITH_SHOP_PAGE:!1,DISCOUNT_SAVE_CONFIRMATION_PAGE:!1,DISCOUNT_SHOWN:!1,FOLLOWING_GET_SHOP_APP_CTA:!1,FOLLOW_BUTTON_SHOWN_IN_VIEWPORT:!1,PARTNER_EMAIL_INPUT_SHOWN:!1,SDK_HAS_LOADED_INITIAL_PAGE:!1,TEXT_MARKETING_SIGN_UP:!1,TEXT_MARKETING_CONFIRMED_PAGE:!1,TEXT_MARKETING_DECLINED_PAGE:!1},this.elementName=e,this.flow=n,this.analyticsTraceId=t,this.initTimestamp=(new Date).getTime()}trackElementImpression(e){return o(this,void 0,void 0,(function*(){if(this.impressionTracked)return;this.impressionTracked=!0;const t=yield ln("uniqToken","visitToken","microSessionId","microSessionCount","shopId","themeId","themeCityHash","contentLanguage","referer"),n=Object.assign(Object.assign({},t),{elementType:e,elementName:this.elementName,shopJsVersion:$});hn({schemaId:on.UiImpression,payload:n},(()=>{this.impressionTracked=!1}))}))}trackPageImpression({shopLoginVersion:e,shopAccountUuid:t,apiKey:n,page:i}){return o(this,void 0,void 0,(function*(){if(this.pageImpressionTracked[i])return;this.pageImpressionTracked[i]=!0;const o=yield ln("uniqToken","visitToken","isPersistentCookie","path","customerId"),s=Object.assign(Object.assign(Object.assign(Object.assign({},o),{shopPermanentDomain:this.shopifyPermanentDomain,flow:this.flow,flowVersion:e,sdkVersion:$,analyticsTraceId:this.analyticsTraceId,pageName:i}),n&&{apiKey:n}),t&&{shopAccountUuid:t});hn({schemaId:on.LoginWithShopSdkPageImpression,payload:s},(()=>{this.pageImpressionTracked[i]=!1}))}))}trackShopLoginFirstTimeRender(e,t=this.initTimestamp){return o(this,void 0,void 0,(function*(){if(this.shopLoginFirstTimeRenderTracked[e])return;this.shopLoginFirstTimeRenderTracked[e]=!0;const n=(new Date).getTime()-t,{shopId:o}
1=yield ln("shopId"),i={analyticsTraceId:this.analyticsTraceId,duration:n,shopId:o,shopLoginVersion:e,url:window.location.href,userAgent:navigator.userAgent};hn({schemaId:on.ShopLoginFirstTimeRender,payload:i},(()=>{this.shopLoginFirstTimeRenderTracked[e]=!1}))}))}trackShopPayLoginWithShopSdkUserAction({apiKey:e,shopLoginVersion:t,userAction:n}){const o=Object.assign(Object.assign({},e&&{apiKey:e}),{flow:this.flow,flowVersion:t,sdkVersion:$,analyticsTraceId:this.analyticsTraceId,shopPermanentDomain:this.shopifyPermanentDomain,userAction:n});hn({schemaId:on.LoginWithShopSdkUserAction,payload:o})}trackShopPayLoginWithSdkErrorEvents({apiKey:e,shopLoginVersion:t,errorCode:n,errorMessage:o}){const i={apiKey:e,flow:this.flow,flowVersion:t,sdkVersion:$,analyticsTraceId:this.analyticsTraceId,shopPermanentDomain:this.shopifyPermanentDomain,errorCode:n,errorMessage:o};hn({schemaId:on.LoginWithShopSdkErrorEvents,payload:i})}trackModalOpened(e,t,n,i,s,r,a){return o(this,void 0,void 0,(function*(){let o;if(o=e===Qt.Cart?`${e}-open`:`${t}-open`,this.modalActionTracker[o])return;this.modalActionTracker[o]=!0;const l=yield ln("uniqToken","visitToken","microSessionId","microSessionCount","shopId","currency"),c=Object.assign(Object.assign({},l),{origin:e,modalToken:t,eligibleSpiPlanType:n,price:r,cartPermalink:a,spiPlanDetails:i,variantId:s,shopJsVersion:$});hn({schemaId:on.InstallmentsModalOpened,payload:c},(()=>{this.modalActionTracker[o]=!1}))}))}trackModalAction(e,t,n){return o(this,void 0,void 0,(function*(){const o=`${e}-${t}`;if(this.modalActionTracker[o])return;this.modalActionTracker[o]=!0;const i=yield ln("uniqToken","visitToken","microSessionId","microSessionCount","shopId"),s=Object.assign(Object.assign({},i),{modalToken:e,action:t,cartPermalink:n,shopJsVersion:$});hn({schemaId:on.InstallmentsModalUserAction,payload:s},(()=>{this.modalActionTracker[o]=!1}))}))}trackInstallmentsBannerImpression(e,t,n,i,s,r){return o(this,void 0,void 0,(function*(){const o=r?String(r):"cart";if(this.bannerImpressionTracked[o])return;this.bannerImpressionTracked[o]=!0;const a=yield ln("uniqToken","visitToken","shopId","microSessionId","contentLanguage","currency"),l=Object.assign(Object.assign({},a),{origin:e,bannerContent:t,eligible:n,bannerTemplateCodeSignature:i,price:s,shopJsVersion:$});hn({schemaId:on.InstallmentsBannerImpression,payload:l},(()=>{this.bannerImpressionTracked[o]=!1}))}))}trackInvalidInstallmentBannerMetadata(e,t){return o(this,void 0,void 0,(function*(){if(this.invalidBannerMetadataTracked)return;this.invalidBannerMetadataTracked=!0;const n=yield ln("uniqToken","visitToken","microSessionId","microSessionCount","shopId"),o=Object.assign(Object.assign({},n),{origin:e,metadata:t,shopJsVersion:$});hn({schemaId:on.InstallmentsInvalidMetadata,payload:o},(()=>{this.invalidBannerMetadataTracked=!1}))}))}}function hn(e,t){un.produce(e).catch((e=>{null==t||t();const n=e instanceof Error?e:new Error(String(e));pe(n)}))}var pn;!function(e){e.Default="loginWithShop",e.ClassicCustomerAccounts="loginWithShopClassicCustomerAccounts"}(pn||(pn={}));const mn={[pn.Default]:"default",[pn.ClassicCustomerAccounts]:"classic_customer_accounts"},fn=1e4,gn={code:"temporarily_unavailable",message:"Shop login is temporarily unavailable"},vn="client-id",_n="version",bn="storefront-origin",yn="email-verification-required",wn="hide-button",kn="disable-sign-up",Cn="redirect-uri",Sn="auto-open",xn="analytics-context",En="analytics-trace-id",An="response-type",Tn="response-mode",Pn="code-challenge",Mn="code-challenge-method",Ln="state",jn="scope",On="use-pay-alt-domain",In="email",Nn="anchor-to";class zn extends dn{constructor(e,t){super(e,t,"follow")}trackFollowButtonPageImpression(e,t){this.trackPageImpression({shopLoginVersion:e,page:t?sn.ComponentLoadedFollowing:sn.ComponentLoadedNotFollowing})}trackFollowButtonInViewport(e){this.trackPageImpression({shopLoginVersion:e,page:sn.FollowButtonShownInViewport})}trackFollowingGetAppButtonPageImpression(e){this.trackPageImpression({shopLoginVersion:e,page:sn.FollowingGetShopAppCta})}trackFollowButtonClicked(e){this.trackShopPayLoginWithShopSdkUserAction({shopLoginVersion:e,userAction:rn.FollowOnShopClicked})}trackFollowingGetAppButtonClicked(e){this.trackShopPayLoginWithShopSdkUserAction({shopLoginVersion:e,userAction:rn.FollowingGetShopAppClick})}}class Dn extends dn{constructor(e,t,n=pn.Default){super(e,t,mn[n]),this._emailEnteredUserActionTracked=!1}trackLoginDefaultButtonClicked(e){this.trackShopPayLoginWithShopSdkUserAction({shopLoginVersion:e,userAction:rn.ContinueWithShopClicked})}trackEmailEnteredAction(e){this._emailEnteredUserActionTracked||(this._emailEnteredUserActionTracked=!0,this.trackShopPayLoginWithShopSdkUserAction({shopLoginVersion:e,userAction:rn.EmailEntered}))}}class Rn extends Dn{constructor(e,t){super(e,t,pn.ClassicCustomerAccounts)}trackClassicCustomerAccountsLoginPageImpression(e){this.trackPageImpression({shopLoginVersion:e,page:sn.ClassicCustomerAccountLogin})}trackClassicCustomerAccountsCreateAccountPageImpression(e){this.trackPageImpression({shopLoginVersion:e,page:sn.ClassicCustomerAccountCreateAccount})}trackClassicCustomerAccountsAccountPageImpression(e){this.trackPageImpression({shopLoginVersion:e,page:sn.ClassicCustomerAccount})}trackClassicCustomerAccountsContinueWithShopPageImpression(e){this.trackPageImpression({shopLoginVersion:e,page:sn.ContinueWithShop})}trackClassicCustomerAccountsCreateAccountAction(e){this.trackShopPayLoginWithShopSdkUserAction({shopLoginVersion:e,userAction:rn.CreateAccountLinkClicked})}}function Bn(){return o(this,void 0,void 0,(function*(){try{if(("/"===(e=window.location.pathname)?e:e.endsWith("/")?e.slice(0,-1):e).endsWith("/account"))return void function(){const e=Q("analytics_trace_id");if(e){new Rn("shop-login-button",e).trackClassicCustomerAccountsAccountPageImpression("2")}const t=K(W);if(t){const e=JSON.parse(decodeURIComponent(JSON.parse(`"${t.replace(/"/g,'\\"')}"`))),s=null==e?void 0:e.analytics_trace_id,r=null==e?void 0:e.email;if(!s)throw new Fn("Missing analytics trace ID in Sign in with Shop cookie");if(!ge(r))throw new Fn("Tried to show Login with Shop on customer account page with an invali
1d email",s);const a=document.createElement("shop-login-button");a.setAttribute("client-id",""),a.setAttribute("action","default"),a.setAttribute("version","2"),a.setAttribute("analytics-context",pn.ClassicCustomerAccounts),a.setAttribute("analytics-trace-id",s),a.setAttribute("hide-button","true"),a.setAttribute("email-verification-required","true"),document.body.appendChild(a),a.requestShow(r),o="/account",K(n=W)&&(document.cookie=`${n}=${o?`;path=${o}`:""}${i?`;domain=${i}`:""};expires=Thu, 01 Jan 1970 00:00:01 GMT`);new Rn("shop-login-button",s).trackClassicCustomerAccountsAccountPageImpression("2")}var n,o,i}();!function(){const e=G(),t=new Rn("shop-login-button",e),n=new WeakMap;let o=null;const i=function({onVisible:e,onFallback:t}){const n=new IntersectionObserver((i=>{for(const s of i){const{target:i,isIntersecting:r}=s;r&&(o(i)?e(i):t(i),n.unobserve(i))}}),{threshold:1});function o(e){let t=e;for(;t;){if(!["","1"].includes(getComputedStyle(t).opacity))return!1;t=t.parentElement}return!0}return n}({onVisible:a,onFallback:e=>{e.addEventListener("focus",s,{once:!0}),t.trackShopPayLoginWithSdkErrorEvents({apiKey:"",shopLoginVersion:"2",errorCode:"fallback_to_focus_event",errorMessage:"Fallback to focus event for classic customer accounts"})}});function s(e){a(e.target)}function r(e,t){var n,o;const i=null===(n=e.elements.namedItem("checkout_url"))||void 0===n?void 0:n.value,s=null===(o=e.elements.namedItem("return_url"))||void 0===o?void 0:o.value,r=new URLSearchParams(Object.assign(Object.assign({analytics_trace_id:t},i&&{checkout_url:i}),s&&{return_url:s}));return`${window.location.origin}/account/redirect?${r.toString()}`}function a(i){var s;const a=i.form;if(!a)return void pe(new Error("Email form missing for classic customer accounts"));n.has(i)&&(pe(new Error("Input listener already exists for input")),null===(s=n.get(i))||void 0===s||s.destroy(),n.delete(i));const l=document.createElement("input");l.type="hidden",l.name="login_with_shop[analytics_trace_id]",l.value=e,a.appendChild(l),o||(o=function(e){const t=document.createElement("shop-login-button");return t.setAttribute("client-id",""),t.setAttribute("action","default"),t.setAttribute("version","2"),t.setAttribute("analytics-context",pn.ClassicCustomerAccounts),t.setAttribute("analytics-trace-id",e),t.setAttribute("hide-button","true"),t.setAttribute("email-verification-required","true"),t.setAttribute("disable-sign-up","true"),t.setAttribute("auto-open","true"),document.body.appendChild(t),t}(e),t.trackClassicCustomerAccountsLoginPageImpression("2"),o.addEventListener("completed",(()=>{const t=r(a,e);window.location.assign(t)}
1))),o.email=i.value,n.set(i,new m(i,(e=>{o.email=e})))}ve({selector:'form[data-login-with-shop-sign-in] input[type="email"],form[data-login-with-shop-sign-in] input[name="customer[email]"]',onElementFound:e=>i.observe(e)})}()}catch(e){if(e instanceof Error&&pe(e),e instanceof Fn){new Rn("shop-login-button",e.analyticsTraceId).trackShopPayLoginWithSdkErrorEvents({apiKey:"",shopLoginVersion:"2",errorCode:e.code,errorMessage:e.message})}}var e}))}class Fn extends Error{constructor(e,t=G()){super(e),this.analyticsTraceId=t,this.name="InitCustomerAccountsError",this.code="init_customer_accounts_error"}}class Un{constructor(e,t,n,o=window){this.subscribers=new Set,this.subscribers.add(n),this.eventListener=n=>{e.isSourceOf(n)&&(t.some((e=>function(e,t){try{const n=new URL(e).host.split(".").reverse(),o=new URL(t).host.split(".").reverse();for(let e=0;e<Math.min(n.length,o.length);e++)if(n[e]!==o[e])return!1;return!0}catch(e){return!1}}(e,n.origin)))?this.notify(n.data):console.error("Origin mismatch for message event",n))},this.eventDestination=o,o.addEventListener("message",this.eventListener,!1)}destroy(){this.eventDestination.removeEventListener("message",this.eventListener,!1)}waitForMessage(e,t){let n;return new Promise(((o,i)=>{const s=()=>{i(new Error("Abort signal received"))};(null==t?void 0:t.aborted)&&s(),n=n=>{n.type===e&&(null==t||t.removeEventListener("abort",s),o(n))},this.subscribers.add(n),null==t||t.addEventListener("abort",s)})).finally((()=>{this.subscribers.delete(n)}))}notify(e){this.subscribers.forEach((t=>t(e)))}}function $n(e){console.error(`[shop-js] ${e}`),pe(new Error(e))}const Wn="https://shop.app",qn="https://pay.shopify.com";class Vn{constructor(e,t){this.eventDestination=e,this.eventOrigins=t}postMessage(e){const t=this.eventDestination instanceof HTMLIFrameElement?this.eventDestination.contentWindow:this.eventDestination;this.eventOrigins.forEach((n=>{null==t||t.postMessage(e,n)}))}}class Hn extends Vn{constructor(e){super(e,[Wn,qn])}}class Kn{constructor(e){this.source=e}isSourceOf(e){return e.source===this.source.contentWindow}}class Gn{constructor(e){this.source=e}isSourceOf(e){return e.source===this.source}}function Zn(e){const t=document.createElement("iframe");return t.src=function(e){const t=new URLSearchParams({client_id:e.clientId,response_mode:e.responseMode||"",response_type:e.responseType||"",redirect_uri:e.redirectUri||"",code_challenge:e.codeChallenge||"",code_challenge_method:e.codeChallengeMethod||"",analytics_trace_id:e.analyticsTraceId||"",analytics_context:e.analyticsContext||"",scope:e.scope||"",state:e.state||"",flow:e.flow,version:"1"});return`${qn}/pay/shop-auth-input?${t}`}(e),t.setAttribute("style","border: none; margin-top: 0.75rem;"),t.setAttribute("allow","publickey-credentials-get *"),t.tabIndex=0,t.width="100%",t.height="0",t}function Jn({loader:e,target:t,targetWrapper:n,attributes:o,analyticsTraceId:i,analyticsContext:s,flow:r,hiddenClassName:a,onLoaded:l}){var c,u;if(!_e(t)||!_e(n))return;a||pe(new Error("Please provide a hiddenClassName value."));const d=Zn(Object.assign(Object.assign({},o),{analyticsTraceId:i,analyticsContext:s,version:"1",flow:r}));d.classList.add(a),d.id="shop-login-email-input-iframe",null===(c=n.parentNode)||void 0===c||c.insertBefore(d,n);const h=new Un(new Kn(d),[Wn,qn,null===(u=null===window||void 0===window?void 0:window.location)||void 0===u?void 0:u.origin],(function(n){const o=(e=>{const t=e.replace("shopify_pay:","");try{return JSON.parse(t)}catch(t){return pe(new Error(`postMessage payload did not match expected shape: ${e}`)),{}}})(n);switch(o.action){case"loaded":!function(){if("shop-loading"===(null==e?void 0:e.getAttribute("data-status")))return d.classList.remove(a),null==e||e.dispatchEvent(new Event("shopinputloaded")),void l();h.destroy(),d.remove(),null==t||t.removeEventListener("change",p),pe(new Error("Input iframe is loading too slow."))}();break;case"error":s=o.message,null==e||e.dispatchEvent(new CustomEvent("processingerror",{detail:{message:s}}));break;case"enterPressed":!function(){(null==t?void 0:t.form)||pe(new Error("Could not find target's form"));t.form.submit()}();break;case"processing":null==e||e.dispatchEvent(new Event("processing"));break;case"resized":i=o.height,d.height=i;break;case"changed":!function(e){if(!_e(t))return;t.value!==e&&(t.value=e,t.dispatchEvent(new Event("input")))}(o.value);break;case"loggedIn":h.destroy()}var i;var s})),p=e=>{const t=e.target;null==m||m.postMessage({type:"emailsubmitted",email:t.value})},m=new Vn(d,[Wn,qn]);t.addEventListener("change",p)}var Qn,Yn,Xn;!function(e){e.Follow="follow",e.Default="default"}(Qn||(Qn={})),function(e){e.Start="start",e.SignUp="signup",e.Verify="verify",e.Captcha="captcha",e.OneClick="one-click"}(Yn||(Yn={})),function(e){e.ApiUnavailable="api_unavailable",e.InvalidApiKey="invalid_api_key",e.ServerError="server_error",e.UserBlocked="user_blocked",e.NoDiscountReceived="no_discount_received",e.InvalidAnalyticsContext="invalid_analytics_context",e.InstallmentsIneligible="installments_ineligible",e.CaptchaChallenge="captcha_challenge"}(Xn||(Xn={}));const eo={clientId:"",responseType:"code",responseMode:"query",scope:"openid email pay:session_token",redirectUri:"",codeChallenge:"",codeChallengeMethod:"",state:""};function to({loaderSelector:e,inputSelector:t,inputWrapperSelector:n,attributes:o,unixTimestamp:i,hiddenClassName:s}){var r;const a=G(),l="loginWithShopSelfServe",c=Qn.Default,u=new dn("new-customer-accounts-passkeys",a);u.trackShopLoginFirstTimeRender("sdk-rendered",i);const d=document.createElement("shop-login-button");d.setAttribute("id","hidden-button-identity"),d.setAttribute("version","1"),d.setAttribute("response-type",eo.responseType),d.setAttribute("response-mode",eo.responseMode),d.setAttribute("scope",eo.scope),d.setAttribute("action","default"),d.setAttribute("analytics-context",l),d.setAttribute("analytics-trace-id",a),d.setAttribute("flow",c),d.setAttribute("email-verification-required",""),d.setAttribute("hide-button",""),d.setAttribute("disable-sign-up",""),d.setAttribute("auto-open",""),d.setAttribute("client-id",o.clientId),d.setAttribute("redirect-uri",o.redirectUri||""),d.setAttribute("state",o.state||""),d.setAttribute("code-challenge",o.codeChallenge||""),d.setAttribute("code-challenge-method",o.codeChallengeMethod||"");const h=function(){const e="shop-passkeys-force",t=Boolean(Q(e)),n=K(e),o=t||Boolean("true"===n),i=!1,s=i,r=X(),a=Bo
1olean(navigator.userAgent)&&/(iphone|ipad|ipod)/i.test(navigator.userAgent),l=r&&!a||a&&"fromAsync"in Array;!l&&o&&console.log(`%cPASSKEYS: Test device is on DESKTOP. Enabling passkeys for testing purposes only!\n        Spin: ${i};\n        QueryParam Override: ${t};\n        Cookie Override: ${n}`,"font-size: 12px; background-color: lightyellow; color:red;");return l||s||o}(),p=document.querySelector(e),m=document.querySelector(t),f=document.querySelector(n);return h?(Jn({loader:p,target:m,targetWrapper:f,attributes:Object.assign(Object.assign({},eo),o),analyticsTraceId:a,analyticsContext:l,flow:c,hiddenClassName:s,onLoaded:()=>{u.trackShopLoginFirstTimeRender("iframed-input-rendered",i)}}),d.setAttribute(Nn,"#shop-login-email-input-iframe")):(null==p||p.dispatchEvent(new Event("inputwillnotload")),d.setAttribute("use-pay-alt-domain",""),d.setAttribute(Nn,"div.next-input.combined-input-wrapper.type-ahead-wrapper")),null===(r=f.parentNode)||void 0===r||r.insertBefore(d,f),d.listenToInput(m),d}class no extends HTMLElement{constructor(){super()}updateAttribute(e,t){this.getAttribute(e)!==t&&(t?this.setAttribute(e,t):this.removeAttribute(e))}getBooleanAttribute(e){const t=this.getAttribute(e);return null!=t}dispatchCustomEvent(e,t){const n=new CustomEvent(e,{bubbles:!0,cancelable:!1,composed:!0,detail:t});this.dispatchEvent(n)}}const oo={brand:"#5a31f4",white:"#fff",black:"#000",warning:"#d02e11",close:"#707070",foregroundSecondary:"#3F454D",backgroundSubdued:"#F2F3F5",backgroundError:"#FFECE9",error:"#D02E11"};function io(e){let t=0,n=0,o=0;return 4===e.length?(t=Number(`0x${e[1]}${e[1]}`),n=Number(`0x${e[2]}${e[2]}`),o=Number(`0x${e[3]}${e[3]}`)):7===e.length&&(t=Number(`0x${e[1]}${e[2]}`),n=Number(`0x${e[3]}${e[4]}`),o=Number(`0x${e[5]}${e[6]}`)),[t,n,o]}function so(e){const t=e.match(/\d+/g)||[],[n=0,o=0,i=0]=t.map((e=>Number(e)));return[n,o,i]}function ro(e){const t=[90,49,244],n=[255,255,255];let o=[255,255,255];return e.startsWith("#")?o=io(e):e.startsWith("rgb(")&&(o=so(e)),co(o,t)>co(o,n)?t:n}function ao(e,t){return co(e.startsWith("#")?io(e):so(e),t.startsWith("#")?io(t):so(t))}function lo(e,t,n){const o=[e,t,n].map((function(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}));return.2126*o[0]+.7152*o[1]+.0722*o[2]}function co(e,t){const n=lo(e[0],e[1],e[2]),o=lo(t[0],t[1],t[2]);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}var uo,ho,po;class mo extends HTMLElement{constructor(){super(),uo.set(this,void 0),u(this,uo,this.attachShadow({mode:"open"}),"f")}connectedCallback(){const e=document.createElement("template"),t=this.getAttribute("size")||"",n=this.getAttribute("color")||"",o=this.getAttribute("label")||"";e.innerHTML=function(e,t="brand",n){return`\n    <style>\n      @keyframes revealIcon {\n        to {\n          stroke-dashoffset: 408;\n        }\n      }\n\n      @keyframes infiniteSpin {\n        0% {\n          transform: rotate(0deg);\n        }\n\n        100% {\n          transform: rotate(360deg);\n        }\n      }\n\n      .Wrapper {\n        @media screen and (-ms-high-contrast: active),\n          screen and (-ms-high-contrast: none) {\n\n        }\n      }\n\n      .ShopLogo {\n        stroke-dashoffset: 136;\n        stroke-dasharray: 136;\n        animation: revealIcon 1.3s ease-in-out 0s reverse infinite;\n\n        // Target IE11 and provide a fallback animation\n        @media screen and (-ms-high-contrast: active),\n          screen and (-ms-high-contrast: none) {\n          stroke-dasharray: 0;\n        }\n      }\n    </style>\n    <svg\n      class="Wrapper"\n      fill="none"\n      width=${e}\n      height=${e}\n      viewBox="0 0 52 58"\n      xmlns="http://www.w3.org/2000/svg"\n    >\n      <title>${n}</title>\n      <path\n        class="ShopLogo"\n        d="M3 13C5 11.75 10.4968 6.92307 21.5 6.4999C34.5 5.99993 42 13 45 23C48.3 34 42.9211 48.1335 30.5 51C17.5 54 6.6 46 6 37C5.46667 29 10.5 25 14 23"\n        stroke=${oo[t]}\n        stroke-width="11"\n      />\n    </svg>\n  `}(t,n,o),c(this,uo,"f").appendChild(e.content.cloneNode(!0))}}uo=new WeakMap,customElements.get("animated-shop-logo")||customElements.define("animated-shop-logo",mo);class fo extends HTMLElement{constructor(){super();const e=document.createElement("template"),t=this.getAttribute("size")||"";e.innerHTML=function(e){return`\n    <style>\n      :host {\n        display: flex;\n      }\n\n      svg path {\n        fill: var(--icon-color, ${oo.close});\n      }\n    </style>\n    <svg\n        aria-hidden="true"\n        width=${e}\n        height=${e}
1\n        viewBox="0 0 17 16"\n        fill="none"\n        xmlns="http://www.w3.org/2000/svg"\n    >\n        <path\n            d="M16.4875 1.5877L14.9125 0.0126953L8.5 6.4252L2.0875 0.0126953L0.512497 1.5877L6.925 8.0002L0.512497 14.4127L2.0875 15.9877L8.5 9.5752L14.9125 15.9877L16.4875 14.4127L10.075 8.0002"\n        />\n    </svg>\n  `}(t),this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}}const go="discount-icon",vo="variant";var _o,bo,yo;!function(e){e.Regular="regular",e.Subdued="subdued",e.Branded="branded"}(_o||(_o={}));class wo extends no{constructor(){super(),ho.set(this,void 0),po.set(this,null);const e=document.createElement("template");e.innerHTML=`\n    <style>\n      :host {\n        display: inline-block;\n        height: 24px;\n      }\n\n      svg {\n        font-size: 0;\n      }\n\n      svg path {\n        stroke-width: 2;\n      }\n\n      svg path, svg circle {\n        transition: fill 200ms ease-in-out, stroke 200ms ease-in-out;\n      }\n\n      .discount-icon--${_o.Regular} path {\n        fill: ${oo.white};\n        stroke: ${oo.foregroundSecondary};\n      }\n\n      .discount-icon--${_o.Regular} circle {\n        fill: ${oo.foregroundSecondary};\n        stroke: ${oo.foregroundSecondary};\n      }\n\n      .discount-icon--${_o.Subdued} path {\n        fill: ${oo.backgroundSubdued};\n        stroke: ${oo.foregroundSecondary};\n      }\n\n      .discount-icon--${_o.Subdued} circle {\n        fill: ${oo.foregroundSecondary};\n        stroke: ${oo.foregroundSecondary};\n      }\n\n      .discount-icon--${_o.Branded} path {\n        fill: ${oo.brand};\n        stroke: ${oo.brand};\n      }\n\n      .discount-icon--${_o.Branded} circle {\n        fill: ${oo.white};\n        stroke: ${oo.white};\n      }\n    </style>\n    <svg\n      width="25"\n      height="24"\n      viewBox="0 0 25 24"\n      fill="none"\n      xmlns="http://www.w3.org/2000/svg"\n    >\n      <path d="M1.83337 11.1238V3.82557L4.64039 1.01855H11.9386L23.1667 12.2466L13.0614 22.3519L1.83337 11.1238Z" />\n      <circle cx="7.44727" cy="6.63245" r="1.18421" />\n    </svg>\n  `,u(this,ho,this.attachShadow({mode:"open"}),"f"),c(this,ho,"f").appendChild(e.content.cloneNode(!0)),u(this,po,c(this,ho,"f").querySelector("svg"),"f")}static get observedAttributes(){return[vo]}connectedCallback(){const e=this.getAttribute(vo);this.initVariant(e)}disconnectedCallback(){}attributeChangedCallback(e,t,n){switch(e){case vo:this.initVariant(n)}}initVariant(e){var t;const n=Object.values(_o),o=e&&n.includes(e)?e:_o.Regular;null===(t=c(this,po,"f"))||void 0===t||t.setAttribute("class",`discount-icon--${o}`)}}ho=new WeakMap,po=new WeakMap,customElements.get(go)||customElements.define(go,wo);const ko="heart-icon";class Co extends HTMLElement{constructor(){var e;super(),bo.set(this,void 0),yo.set(this,null);const t=document.createElement("template");t.innerHTML='\n    <style>\n      :host {\n        display: inline-block;\n        height: 15px;\n        color: #ffffff;\n      }\n\n      svg {\n        font-size: 0;\n      }\n\n      .heart-icon__filled-path,\n      .heart-icon--filled .heart-icon__regular-path {\n        display: none;\n      }\n\n      .heart-icon--filled .heart-icon__filled-path {\n        display: inline;\n      }\n\n      svg path {\n        /* currentColor allows for a forced-colors to override the svg colors */\n        fill: currentColor;\n      }\n\n    </style>\n    <svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg">\n      <path class="heart-icon__regular-path" fill-rule="evenodd" clip-rule="evenodd" d="M6.54472 2.60954C5.45403 1.48463 3.70006 1.48464 2.60939 2.60958C1.50057 3.75323 1.50057 5.62073 2.60939 6.76438L7.99999 12.3243L13.3871 6.76795L13.4392 6.713C14.4985 5.56641 14.4826 3.73943 13.3938 2.61293L13.3408 2.55942C12.248 1.4854 10.53 1.50107 9.45523 2.60958L7.99989 4.11061L6.54472 2.60954ZM1.32887 1.38465C3.11884 -0.461548 6.0353 -0.461548 7.82527 1.38465L7.99998 1.56487L8.17472 1.38465C9.93952 -0.435601 12.8002 -0.461712 14.5965 1.30944L14.6036 1.31645L14.6711 1.38461C16.4188 3.18714 16.4422 6.0802 14.744 7.91243L14.7372 7.91974L14.6711 7.98935L7.99999 14.87L1.32887 7.98931C-0.442958 6.16182 -0.442958 3.21214 1.32887 1.38465Z" />\n      <path class="heart-icon__filled-path" fill-rule="evenodd" clip-rule="evenodd" d="M1.30822 1.36997C3.06735 -0.456657 5.93121 -0.456657 7.69034 1.36997L7.99997 1.69153L8.30965 1.36997C10.0441 -0.43103 12.8532 -0.456731 14.6184 1.29546L14.6242 1.30123L14.6918 1.36994C16.4122 3.15636 16.4354 6.02587 14.7635 7.84188L14.758 7.8479L14.6918 7.91809L7.99999 14.8666L1.30822 7.91806C-0.436073 6.10684 -0.436073 3.1812 1.30822 1.36997Z" />\n    </svg>\n  ',u(this,bo,this.attachShadow({mode:"open"}),"f"),c(this,bo,"f").appendChild(t.content.cloneNode(!0)),u(this,yo,c(this,bo,"f").querySelector("svg"),"f"),null===(e=c(this,yo,"f"))||void 0===e||e.setAttribute("class","heart-icon--regular")}setFilled(){var e;null===(e=c(this,yo,"f"))||void 0===e||e.setAttribute("class","heart-icon--filled")}}function So(){return document.createElement(ko)}bo=new WeakMap,yo=new WeakMap,customElements.get(ko)||customElements.define(ko,Co);class xo extends HTMLElement{constructor(){super();const e=document.createElement("template"),t=this.getAttribute("size")||"",n=this.getAttribute("color")||"",o=this.getAttribute("label")||"";e.innerHTML=function(e,t="brand",n){const o=Math.ceil(2.5*parseInt(e,10));return`\n    <style>\n      :host {\n        color: ${oo[t]};\n      }\n\n      svg path {\n        /* currentColor allows for a forced-colors to override the svg colors */\n        fill: currentColor;\n      }\n    </style>\n    <svg\n      role="img"\n      width=${o}\n      height=${e}
1\n      viewBox="0 0 65 26"\n      aria-labelledby="shop-logo"\n      fill="none"\n      xmlns="http://www.w3.org/2000/svg"\n    >\n      <title id="shop-logo">${n}</title>\n      <path\n        d="M12.5782 8.5748L9.35595 10.1981C8.61942 8.94227 7.6067 8.2992 6.19532 8.2992C4.66089 8.2992 3.89339 8.75853 3.89281 9.6772C3.89281 10.6574 5.02886 10.8715 7.5763 11.4227C10.1237 11.9739 13.0125 12.7703 13.0125 15.9241C13.0125 18.9869 10.6188 20.8243 6.65999 20.8243C3.46809 20.8243 1.10131 19.4766 0 17.0881L3.2223 15.496C3.89716 16.9693 5.0636 17.7311 6.65999 17.7311C8.31717 17.7311 9.14576 17.2718 9.14576 16.2916C9.14576 15.3114 8.0071 15.0973 5.45619 14.5461C2.90528 13.9949 0.027794 13.1985 0.027794 10.0447C0.027794 7.07373 2.3911 5.20607 6.19445 5.20607C9.17355 5.20607 11.4144 6.40033 12.5782 8.5748Z"\n      />\n      <path\n        d="M15.281 0H19.2711V6.98187C20.3133 5.84913 21.8176 5.20607 23.5365 5.20607C26.9742 5.20607 29.4295 7.83987 29.4295 11.5761V20.67H25.4394V11.5761C25.4394 9.8306 24.1505 8.54273 22.37 8.54273C20.5895 8.54273 19.2711 9.8592 19.2711 11.5761V20.67H15.281V0Z"\n      />\n      <path\n        d="M32.0378 6.30846C33.358 5.3898 35.2601 4.74846 37.2864 4.74846C42.6878 4.74846 46.6163 8.3928 46.6163 13.3848C46.6163 18.0388 43.2402 21.2853 38.544 21.2853C34.5235 21.2853 31.6391 18.5909 31.6391 14.9769C31.6391 12.5268 33.1156 10.7198 35.2001 10.0161L36.8877 12.8639C35.7525 13.3839 35.3243 14.1501 35.3243 15.0991C35.3243 16.6591 36.6445 17.7641 38.5466 17.7641C40.8795 17.7641 42.7209 15.9259 42.7209 13.4455C42.7209 10.5361 40.4192 8.33213 37.289 8.33213C36.0587 8.32254 34.8527 8.67394 33.8209 9.34266L32.0378 6.30846Z"\n      />\n      <path\n        d="M52.8152 18.9254V26H48.826V5.35947H52.7231V7.22714C53.9209 5.941 55.6084 5.20607 57.5114 5.20607C61.716 5.20607 65 8.60513 65 13.0156C65 17.4261 61.716 20.8243 57.5114 20.8243C55.6388 20.8243 54.0121 20.1197 52.8152 18.9254ZM61.0403 12.9844C61.0403 10.4425 59.2607 8.5748 56.8357 8.5748C54.442 8.5748 52.6311 10.4737 52.6311 12.9844C52.6311 15.4951 54.442 17.3949 56.8357 17.3949C59.2607 17.3949 61.0429 15.5263 61.0429 12.9844H61.0403Z"\n      />\n    </svg>\n  `}(t,n,o),this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}}function Eo(){return{duration:window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:400}}function Ao(e){const t='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return Array.from(e.assignedElements()).reduce(((e,n)=>{const o=Array.from(n.querySelectorAll(t));return n.matches(t)&&o.unshift(n),[...e,...o]}),[])}var To,Po,Mo,Lo,jo,Oo,Io,No,zo,Do,Ro,Bo,Fo,Uo,$o,Wo,qo,Vo,Ho,Ko,Go,Zo,Jo,Qo,Yo,Xo,ei,ti;const ni="busy",oi="disable-popup",ii="title",si=["Escape","Esc"],ri="anchor-to";class ai extends no{constructor(){super(),To.add(this),Po.set(this,void 0),Mo.set(this,void 0),Lo.set(this,void 0),jo.set(this,void 0),Oo.set(this,void 0),Io.set(this,void 0),No.set(this,void 0),zo.set(this,void 0),Do.set(this,void 0),Ro.set(this,!1),Bo.set(this,!1),Fo.set(this,!1),Uo.set(this,!1),$o.set(this,void 0),Wo.set(this,void 0),qo.set(this,void 0),Vo.set(this,""),ti.set(this,(e=>{c(this,Oo,"f")&&e.target===c(this,zo,"f")&&c(this,Oo,"f").focus(),c(this,Io,"f")&&e.target===c(this,No,"f")&&c(this,Io,"f").focus()})),customElements.get("close-icon")||customElements.define("close-icon",fo),customElements.get("shop-logo")||customElements.define("shop-logo",xo);const e=document.createElement("template");e.innerHTML=Ct,this.attachShadow({mode:"open"}).append(e.content.cloneNode(!0))}static get observedAttributes(){return[ni,ii,ri,En]}connectedCallback(){var e;u(this,Po,this.shadowRoot.querySelector(".sda-overlay"),"f"),u(this,Mo,this.shadowRoot.querySelector(".sda-modal"),"f"),u(this,No,c(this,Po,"f").querySelector(".focus-trap--start"),"f"),u(this,zo,c(this,Po,"f").querySelector(".focus-trap--end"),"f"),u(this,Uo,Boolean(this.getAttribute(oi)),"f"),null===(e=c(this,Mo,"f"))||void 0===e||e.classList.toggle(oi,c(this,Uo,"f")),u(this,Lo,this.shadowRoot.querySelector(".sda-modal-close-button"),"f"),u(this,jo,[c(this,Lo,"f"),c(this,Po,"f")],"f"),c(this,Po,"f").addEventListener("click",c(this,To,"m",Jo).bind(this)),c(this,Do,"f")||(u(this,Do,c(this,To,"m",Zo).bind(this),"f"),window.addEventListener("keydown",c(this,Do,"f")))}disconnectedCallback(){var e;c(this,Do,"f")&&window.removeEventListener("keydown",c(this,Do,"f")),null===(e=c(this,Wo,"f"))||void 0===e||e.call(this)}attributeChangedCallback(e,t,n){var o;switch(e){case ni:u(this,Bo,Boolean(n),"f");break;case oi:u(this,Uo,Boolean(n),"f"),null===(o=c(this,Mo,"f"))||void 0===o||o.classList.toggle(oi,c(this,Uo,"f"));break;case ii:c(this,Mo,"f").setAttribute("aria-label",n||"");break;case ri:{const e=this.getAttribute(ri);null!==e&&""!==e&&u(this,$o,document.querySelector(e),"f");break}}}open(){return o(this,void 0,void 0,(function*(){if(c(this,Ro,"f"))return;u(this,Fo,!0,"f"),u(this,Ro,!0,"f");const e=Object.assign({easing:"cubic-bezier(0, 0, 0.15, 1)"},Eo());c(this,Mo,"f").style.opacity="0",c(this,Po,"f").classList.remove("sda-hidden"),c(this,Po,"f").animate([{opacity:0}
1,{opacity:1}],e),u(this,qo,c(this,To,"m",Ko).call(this),"f");const t=c(this,To,"m",Ho).call(this),{cleanup:n,updatePosition:o}=Tt({anchorElement:c(this,$o,"f"),floatingElement:c(this,Mo,"f"),behavior:c(this,qo,"f")},t);u(this,Wo,n,"f");const i=yield o();if(u(this,Vo,document.documentElement.style.overflow,"f"),document.documentElement.style.overflow="hidden",c(this,qo,"f")===St.Dynamic&&null!==i){const{staticSide:e,middlewareData:t}=i,{arrow:n}=t;"left"!==e&&"right"!==e||(c(this,Mo,"f").style.transformOrigin=`${e} ${null==n?void 0:n.y}px`),"top"!==e&&"bottom"!==e||(c(this,Mo,"f").style.transformOrigin=`${null==n?void 0:n.x}px ${e}`)}try{const{finished:n}=c(this,Mo,"f").animate(Object.keys(t).length?[{opacity:0},{opacity:1}]:(s=c(this,qo,"f"))===St.Dynamic?[{transform:"scale(0)",opacity:0},{transform:"scale(1)",opacity:1}]:[{transform:s===St.Mobile?"translate(0, 100%)":"translate(0, -50%)",opacity:0},{transform:"none",opacity:1}],Object.assign({delay:200},e));yield n}finally{u(this,Fo,!1,"f"),c(this,Mo,"f").style.opacity="1",c(this,To,"m",Yo).call(this),c(this,To,"m",Xo).call(this)}var s}))}close(){var e;return o(this,void 0,void 0,(function*(){if(c(this,Bo,"f")||!c(this,Ro,"f"))return Promise.resolve();u(this,Fo,!0,"f"),c(this,To,"m",ei).call(this);const t=Object.assign({easing:"cubic-bezier(0.45, 0, 1, 1)",duration:333},Eo());var n;c(this,Mo,"f").animate((n=c(this,qo,"f"),n===St.Dynamic?[{transform:"scale(1)",opacity:1},{transform:"scale(0)",opacity:0}]:[{transform:"translate(0, 0)",opacity:1},{transform:n===St.Mobile?"translate(0, 100%)":"",opacity:0}]),t).finished.finally((()=>c(this,Mo,"f").style.display="none"));const o=c(this,Po,"f").animate([{opacity:1},{opacity:0}],Object.assign({delay:200},t));try{yield o.finished}finally{c(this,To,"m",Go).call(this),null===(e=c(this,Wo,"f"))||void 0===e||e.call(this),document.documentElement.style.overflow=c(this,Vo,"f")}return o}))}}var li,ci,ui,di,hi,pi;Po=new WeakMap,Mo=new WeakMap,Lo=new WeakMap,jo=new WeakMap,Oo=new WeakMap,Io=new WeakMap,No=new WeakMap,zo=new WeakMap,Do=new WeakMap,Ro=new WeakMap,Bo=new WeakMap,Fo=new WeakMap,Uo=new WeakMap,$o=new WeakMap,Wo=new WeakMap,qo=new WeakMap,Vo=new WeakMap,ti=new WeakMap,To=new WeakSet,Ho=function(){const e=getComputedStyle(c(this,Mo,"f"));return e.getPropertyValue("--sda-modal-top")&&(e.getPropertyValue("--sda-modal-right")||e.getPropertyValue("--sda-modal-left"))?{top:e.getPropertyValue("--sda-modal-top"),right:e.getPropertyValue("--sda-modal-right")||"auto",bottom:e.getPropertyValue("--sda-modal-bottom")||"auto",left:e.getPropertyValue("--sda-modal-left")||"auto"}:{}},Ko=function(){return q().width<wt||c(this,Uo,"f")?St.Mobile:c(this,$o,"f")?St.Dynamic:St.Static},Go=function(){u(this,Fo,!1,"f"),u(this,Ro,!1,"f"),c(this,Mo,"f").style.display="",c(this,Po,"f").classList.add("sda-hidden")},Zo=function(e){si.includes(e.key)&&c(this,To,"m",Qo).call(this,e)},Jo=function(e){c(this,jo,"f").includes(e.target)&&c(this,To,"m",Qo).call(this,e)},Qo=function(e){!c(this,Ro,"f")||c(this,Bo,"f")||c(this,Fo,"f")||(e.stopPropagation(),this.dispatchCustomEvent("modalcloserequest"))},Yo=function(){const e=new IntersectionObserver((t=>{for(const e of t){e.boundingClientRect.top<0&&window.scrollTo({top:0,left:0})}e.disconnect()}));e.observe(c(this,Mo,"f"))},Xo=function(){var e;const t=[c(this,Lo,"f"),...Ao(c(this,Mo,"f").querySelector("slot"))];u(this,Oo,t[0],"f"),u(this,Io,t[t.length-1],"f");const n=this.getRootNode();(null===(e=n.activeElement)||void 0===e?void 0:e.closest("sheet-modal"))&&n.activeElement.closest("sheet-modal")===this||c(this,Mo,"f").focus(),c(this,Po,"f").addEventListener("focus",c(this,ti,"f"),!0)},ei=function(){u(this,Oo,void 0,"f"),u(this,Io,void 0,"f"),c(this,Po,"f").removeEventListener("focus",c(this,ti,"f"),!0)};class mi{constructor(e){li.add(this),ci.set(this,void 0),ui.set(this,mi.getDefaultLanguage()),u(this,ci,e,"f")}static getDefaultLanguage(){var e,t;try{const n=document.documentElement.lang||(null===(e=window.Shopify)||void 0===e?void 0:e.locale);if(n){const e=new Intl.Locale(n);if(mi.allowedLocales.includes(n))return n;if(mi.allowedLocales.includes(e.language))return e.language;t=`Unsupported locale: "${n}"`,console.warn(t),pe(new Error(t))}for(const e of navigator.languages){if(mi.allowedLocales.includes(e))return e;const t=new Intl.Locale(e);
1if(mi.allowedLocales.includes(t.language))return t.language}}catch(e){}return"en"}get locale(){return c(this,ui,"f")}set locale(e){mi.allowedLocales.includes(e)&&u(this,ui,e,"f")}translate(e,t={}){const n=e.split(".");let o=c(this,ci,"f")[c(this,ui,"f")];try{for(const e of n)switch(typeof o){case"object":o=o[e];break;case"string":case"undefined":throw new ReferenceError}if(void 0===o)throw new ReferenceError;return c(this,li,"m",di).call(this,o,t)&&(o=o[c(this,li,"m",hi).call(this,o,t.count)]),c(this,li,"m",pi).call(this,o,t)}catch(n){return t.defaultValue?t.defaultValue:e}}}ci=new WeakMap,ui=new WeakMap,li=new WeakSet,di=function(e,t={}){return"string"!=typeof e&&"undefined"!==t.count},hi=function(e,t){let n=1===t?"one":"other";return 0===t&&"string"!=typeof e&&"undefined"!==e.zero&&(n="zero"),n},pi=function(e,t={}){const n=e.match(/\{.+?\}/g);return n?n.reduce(((n,o)=>{const i=o.replace(/\{(.*)\}/,"$1");return t[i]?n.replace(o,t[i]):(pe(new Error(`i18n: Missing translation key '${i}' for '${e}'`)),n)}),e):e},mi.allowedLocales=["en","bg-BG","cs","da","de","el","es","fi","fr","hi","hr-HR","hu","id","it","ja","ko","lt-LT","ms","nb","nl","pl","pt-BR","pt-PT","ro-RO","ru","sk-SK","sl-SI","sv","th","tr","vi","zh-CN","zh-TW"];const fi={code:"temporarily_unavailable",message:"Shop login is temporarily unavailable"},gi="discount",vi="sda-content",_i=an.createHttpProducer({production:!0});class bi extends dn{constructor({analyticsTraceId:e,apiKey:t,elementName:n,shopLoginVersion:o}){super(n,e,gi),this.apiKey=t,this.shopLoginVersion=o}update({apiKey:e,shopAccountUuid:t,shopLoginVersion:n}){e&&(this.apiKey=e),t&&(this.shopAccountUuid=t),n&&(this.shopLoginVersion=n)}trackShopPayLoginWithSdkDiscountStatus({discountCode:e}){const t={apiKey:this.apiKey,discountCode:e,flow:gi,flowVersion:this.shopLoginVersion,discountCodeStatus:"received",analyticsTraceId:this.analyticsTraceId,shopPermanentDomain:this.shopifyPermanentDomain};_i.produce({schemaId:on.ShopifyLoginWithShopSdkDiscountStatus,payload:t})}trackPageImpression({page:e}){const t=Object.create(null,{trackPageImpression:{get:()=>super.trackPageImpression}});return o(this,void 0,void 0,(function*(){t.trackPageImpression.call(this,{shopLoginVersion:this.shopLoginVersion,apiKey:this.apiKey,shopAccountUuid:this.shopAccountUuid,page:e})}))}trackShopPayLoginWithShopSdkUserAction({userAction:e}){super.trackShopPayLoginWithShopSdkUserAction({shopLoginVersion:this.shopLoginVersion,apiKey:this.apiKey,userAction:e})}trackShopLoginFirstTimeRender(){const e=Object.create(null,{trackShopLoginFirstTimeRender:{get:()=>super.trackShopLoginFirstTimeRender}});return o(this,void 0,void 0,(function*(){e.trackShopLoginFirstTimeRender.call(this,this.shopLoginVersion)}))}trackShopPayLoginWithSdkErrorEvents({errorCode:e,errorMessage:t}){super.trackShopPayLoginWithSdkErrorEvents({apiKey:this.apiKey,shopLoginVersion:this.shopLoginVersion,errorCode:e,errorMessage:t})}}function yi(e,t){return void 0===t?null:{[e]:t?"true":"false"}}var wi,ki,Ci,Si,xi,Ei,Ai,Ti;const Pi="status-indicator";var Mi;!function(e){e.Branded="branded",e.Regular="regular"}(Mi||(Mi={}));class Li extends HTMLElement{constructor(){super(),wi.add(this),ki.set(this,void 0),Ci.set(this,void 0),Si.set(this,void 0);const e=document.createElement("template");e.innerHTML=`\n    <style>\n      .${Pi} {\n        align-items: center;\n        background-color: #F2F3F5;\n        border-radius: 4px;\n        color: #5433EB;\n        display: flex;\n        font-size: 14px;\n        height: 28px;\n        justify-content: center;\n        padding: 11px;\n      }\n\n      .${Pi}-message {\n        display: inline-flex;\n        align-items: center;\n        font-size: 16px;\n      }\n\n      .${Pi}-error {\n        background-color: ${oo.backgroundError};\n        color: ${oo.error};\n        text-align: left;\n      }\n\n      .${Pi}-branded {\n        background-color: ${oo.brand};\n      }\n\n      .${Pi}-regular {\n        background-color: ${oo.backgroundSubdued};\n      }\n    </style>\n  `,u(this,ki,this.attachShadow({mode:"open"}),"f"),c(this,ki,"f").appendChild(e.content.cloneNode(!0)),u(this,Si,Mi.Regular,"f")}connectedCallback(){c(this,Ci,"f")||(u(this,Ci,document.createElement("div"),"f"),c(this,Ci,"f").setAttribute("class",Pi),c(this,ki,"f").appendChild(c(this,Ci,"f"))),u(this,Si,this.getAttribute("loader")||Mi.Regular,"f")}setStatus(e){switch(e.status){case"loading":c(this,wi,"m",Ai).call(this,e.message);break;case"success":case"error":c(this,wi,"m",Ti).call(this,e)}}}function ji(e=Mi.Regular){const t=document.createElement("status-indicator");return t.setAttribute("loader",e),t}var Oi,Ii,Ni,zi,Di,Ri;ki=new WeakMap,Ci=new WeakMap,Si=new WeakMap,wi=new WeakSet,xi=function(e){c(this,Ci,"f").innerHTML="",c(this,Ci,"f").appendChild(e)},Ei=function(e=""){const t=[Pi,e||`${Pi}-regular`].join(" ");c(this,Ci,"f").setAttribute("class",t)},Ai=function(e){const t="branded"===c(this,Si,"f")?"white":"brand",n=function(){const e=document.createElement("animated-shop-logo");return e.setAttribute("role","img"),e.setAttribute("size","22"),e}();n.setAttribute("color",t),void 0!==e&&n.setAttribute("label",e);const o=`${Pi}-${c(this,Si,"f")}`;c(this,wi,"m",xi).call(this,n),c(this,wi,"m",Ei).call(this,o)},Ti=function({status:e,message:t}
1){if(void 0!==t){const e=document.createElement("span");e.setAttribute("class",`${Pi}-message`),e.textContent=t,c(this,wi,"m",xi).call(this,e)}c(this,wi,"m",Ei).call(this,`${Pi}-${e}`)},customElements.get("status-indicator")||customElements.define("status-indicator",Li);const Bi="discount-code",Fi="code",Ui="saved";class $i extends no{constructor(){super(),Oi.set(this,void 0),Ii.set(this,void 0),Ni.set(this,void 0),zi.set(this,void 0),Di.set(this,null),Ri.set(this,!1);const e=document.createElement("template");e.innerHTML=`\n    <style>\n      :host {\n        display: flex;\n        justify-content: center;\n      }\n\n      .discount-code {\n        background: ${oo.white};\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        border: 1px solid ${oo.backgroundSubdued};\n        border-radius: 100px;\n        padding: 16px;\n        transition: background-color 200ms ease-in-out;\n      }\n\n      .discount-code--code-visible {\n        padding: 16px 24px;\n      }\n\n      .discount-code--subdued {\n        background: ${oo.backgroundSubdued};\n      }\n\n      span {\n        font-weight: 600;\n        font-size: 16px;\n        line-height: 24px;\n        letter-spacing: 0.06em;\n        color: ${oo.foregroundSecondary};\n        padding-left: 13px;\n        max-width: 160px;\n        overflow: hidden;\n        text-overflow: ellipsis;\n        white-space: nowrap;\n      }\n\n      span:empty {\n        padding-left: 0;\n      }\n    </style>\n  `,u(this,Oi,this.attachShadow({mode:"open"}),"f"),c(this,Oi,"f").appendChild(e.content.cloneNode(!0)),u(this,Ii,document.createElement("div"),"f"),u(this,zi,document.createElement(go),"f"),c(this,Ii,"f").appendChild(c(this,zi,"f")),u(this,Ni,document.createElement("span"),"f"),c(this,Ii,"f").appendChild(c(this,Ni,"f")),c(this,Oi,"f").appendChild(c(this,Ii,"f"))}static get observedAttributes(){return[Fi,Ui]}connectedCallback(){const e=this.getAttribute(Fi);this.initCode(e);const t=Boolean(null!==this.getAttribute(Ui));this.initSaved(t)}attributeChangedCallback(e,t,n){const o=Boolean(null!==n);switch(e){case Fi:this.initCode(n);break;case Ui:this.initSaved(o)}}disconnectedCallback(){}updateStyles(){const e=[Bi];c(this,Di,"f")&&e.push("discount-code--code-visible"),c(this,Ri,"f")?c(this,zi,"f").setAttribute("variant",_o.Branded):c(this,Di,"f")?(e.push("discount-code--subdued"),c(this,zi,"f").setAttribute("variant",_o.Subdued)):c(this,zi,"f").setAttribute("variant",_o.Regular);const t=e.join(" ");c(this,Ii,"f").setAttribute("class",t)}initCode(e){c(this,Ni,"f").textContent=e,u(this,Di,e,"f"),this.updateStyles()}initSaved(e){u(this,Ri,e,"f"),this.updateStyles()}}Oi=new WeakMap,Ii=new WeakMap,Ni=new WeakMap,zi=new WeakMap,Di=new WeakMap,Ri=new WeakMap,customElements.get("discount-code")||customElements.define("discount-code",$i);class Wi{constructor(e,t){this.rootElement=e,this.copyTemplateToDom('\n    <template id="shop-discount-auth-landing">\n        <style>\n            :host {\n                display: block;\n                width: 100%;\n                font-family: -apple-system,San Francisco,Roboto,Segoe UI,Helvetica Neue,sans-serif !important;\n                text-align: center;\n                font-style: normal !important;\n            }\n\n            .sda-iframe {\n                width: 100%;\n                height: 0;\n                border: 0;\n                margin: auto;\n            }\n\n            .sda-header {\n                padding-bottom: 16px;\n                text-align: center;\n                margin: 0 20px;\n                -webkit-font-smoothing: antialiased;\n            }\n\n            .sda-header-divider {\n                border-bottom: 1px solid #D9D9D9;\n            }\n\n            .sda-header-title {\n                font-size: 18px;\n                font-weight: 700;\n                line-height: 25px;\n                letter-spacing: -0.2px;\n                color: #000000;\n                margin-bottom: 8px;\n            }\n\n            .sda-header-description {\n                font-size: 14px;\n                font-weight: 400;\n                color: #0F1721;\n                letter-spacing: 0px;\n            }\n\n            .sda-content--fixed {\n                min-height: 151px;\n            }\n\n            .sda-processing {\n                margin: 0 20px 7px 20px;\n            }\n\n            .sda-processing-user {\n                color: #0F1721;\n                font-family: -apple-system, BlinkMacSystemFont, San Francisco, Roboto, Segoe UI, Helvetica Neue, sans-serif;\n                font-size: 12px;\n                letter-spacing: 0px;\n                line-height: 21px;\n                margin: 12px 0;\n                min-height: 21px;\n                overflow: hidden;\n                text-align: left;\n                text-overflow: ellipsis;\n                text-rendering: optimizelegibility;\n                white-space: nowrap;\n                -webkit-font-smoothing: antialiased;\n            }\n\n            .sda-phone-capture {\n                margin: 0 20px;\n            }\n\n            .sda-phone-capture,\n            .sda-phone-capture a {\n                color: #424242;\n            }\n\n            .sda-phone-capture h3 {\n                font-size: 12px;\n                margin: 0px 0 5px 0;\n            }\n\n            .sda-disclosure {\n                border: 1px solid #eee;\n                border-radius: 5px;\n                margin-bottom: 24px;\n                padding: 10px;\n                text-align: left;\n            }\n\n            .sda-disclosure-text-container {\n                border: none;\n                width: 100%;\n            }\n\n            .sda-phone-capture button {\n                /* TODO: Centralize styling of shop branded buttons: https://github.com/Shopify/shop-identity/issues/1252 */\n                border: 0;\n                border-radius: 4px;\n                cursor: pointer;\n                font: 16px/18px -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, Helvetica;\n                margin-bottom: 2px;\n                padding: 16px;\n                transition: background-color 100ms ease-in-out, opacity 100ms ease-out, color 100ms ease-in-out;\n                width: 100%;\n            }\n\n            .sda-phone-capture button:last-of-type {\n                margin-bottom: 0;\n            }\n\n            .sda-phone-capture button.primary {\n                background: #5433EB;\n                color: #fff;\n            }\n\n            .sda-phone-capture button.primary:hover {\n                background: #7f68e9;\n            }\n\n            .sda-phone-capture button.secondary {\n                background: none;\n                color: #5433EB;\n            }\n\n            .sda-phone-capture button.secondary:hover {\n                color: #7b61f0;\n            }\n\n            .sda-hidden {\n                position: absolute;\n                height: 0 !important;\n                border: 0;\n                padding: 0;\n                margin: 0;\n                visibility: hidden;\n                overflow: hidden;\n            }\n\n            discount-code {\n                margin: 0 20px;\n            }\n        </style>\n        <sheet-modal>\n            <div class="sda-header sda-header-divider sda-hidden">\n                <h2 class="sda-header-title"></h2>\n                <div class="sda-header-description"></div>\n            </div>\n            <div class="sda-content">\n                <iframe class="sda-iframe sda-hidden" tabindex="0"></iframe>\n                <div class="sda-phone-capture sda-hidden">\n                    <div class="sda-disclosure">\n                        <h3 class="sda-disclosure-heading"></h3>\n                        <iframe sandbox="allow-same-origin allow-popups" class="sda-disclosure-text-container"></iframe>\n                    </div>\n                    <div class="sda-phone-capture-buttons">\n                        <button class="primary sda-phone-capture-confirm"></button>\n                        <button class="secondary sda-phone-capture-decline"></button>\n                    </div>\n                </div>\n                <div class="sda-processing sda-hidden">\n                    <div class="sda-processing-user"></div>\n                    <div class="sda-processing-status"></div>\n                </div>\n            </div>\n        </sheet-modal>\n    </template>',"shop-discount-auth-landing",this.rootElement),this.sheetModal=this.rootElement.querySelector("sheet-modal"),this.headerElement=this.rootElement.querySelector(".sda-header"),this.headerTitle=this.rootElement.querySelector(".sda-header-title"),this.headerDescription=this.rootElement.querySelector(".sda-header-description"),this.iframe=this.rootElement.querySelector(".sda-iframe"),this.discountCodeElement=document.createElement("discount-code"),this.sheetModal.prepend(this.discountCodeElement),this.processingElement=this.rootElement.querySelector(".sda-processing"),this.processingUserElement=this.processingElement.querySelector(".sda-processing-user"),this.processingStatusElement=this.processingElement.querySelector(".sda-processing-status"),this.phoneCaptureContainer=this.rootElement.querySelector(".sda-phone-capture"),this.phoneCaptureButtonsContainer=this.phoneCaptureContainer.querySelector(".sda-phone-capture-buttons"),this.phoneConsentConfirmButton=this.phoneCaptureContainer.querySelector(".sda-phone-capture-confirm"),this.phoneConsentDeclineButton=this.phoneCaptureContainer.querySelector(".sda-phone-capture-decline"),this.disclosureIframe=this.rootElement.querySelector("iframe.sda-disclosure-text-container"),this.sheetModal.addEventListener("modalcloserequest",t),H(this.iframe,"allow","publickey-credentials-get *")}updateSheetContent({minHeight:e,headerVisible:t,title:n,description:o,headerDivider:i,processingElementVisible:s,processingUserElementVisible:r,processingUser:a,phoneCaptureContainerVisible:l,phoneCaptureButtonsContainerVisible:c,phoneConsentConfirmButton:u,phoneConsentDeclineButton:d,disclosureHeading:h,disclosureText:p,iframeVisible:m,statusIndicator:f,discountCode:g}){var v;if(!0===e?this.setContentMinHeight():!1===e&&this.removeContentMinHeight(),void 0!==t&&qi(this.headerElement,t),void 0!==n&&(this.headerTitle.textContent=n),void 0!==o&&(this.headerDescription.textContent=o),void 0!==i&&this.headerElement.classList.toggle("sda-header-divider",i),void 0!==r&&qi(this.processingUserElement,r),void 0!==s&&qi(this.processingElement,s),void 0!==a&&(this.processingUserElement.textContent=a),void 0!==l&&qi(this.phoneCaptureContainer,l),void 0!==c&&qi(this.phoneCaptureButtonsContainer,c),void 0!==u&&(this.phoneConsentConfirmButton.innerText=u.label,this.phoneConsentConfirmButton.onclick=u.onClick),void 0!==d&&(this.phoneConsentDeclineButton.innerText=d.label,this.phoneConsentDeclineButton.onclick=d.onClick),void 0!==h&&(this.rootElement.querySelector(".sda-disclosure-heading").textContent=h),void 0!==p&&this.updateDisclosureText(p),!0===m?this.showIframe():!1===m&&this.hideIframe(),f){this.statusIndicator||this.initStatusIndicator(f.branded);const{status:e,message:t}=f;null===(v=this.statusIndicator)||void 0===v||v.setStatus({status:e,message:t})}g&&this.updateDiscountCode(g)}showPhoneConsentScreen({title:e,disclosureHeading:t,disclosureText:n,confirmButtonLabel:o,declineButtonLabel:i,discountCode:s,onConfirm:r,onDecline:a}){var l;this.updateSheetContent({title:e,description:"",iframeVisible:!1,headerDivider:!1,processingElementVisible:!1,phoneCaptureContainerVisible:!0,disclosureHeading:t,disclosureText:n,discountCode:s,phoneConsentConfirmButton:{label:o,onClick:()=>{var e;null===(e=this.monorailTracker)||void 0===e||e.trackShopPayLoginWithShopSdkUserAction({userAction:rn.PhoneConsentProvided}),r()}},phoneConsentDeclineButton:{label:i,onClick:()=>{var e;null===(e=this.monorailTracker)||void 0===e||e.trackShopPayLoginWithShopSdkUserAction({userAction:rn.PhoneConsentDeclined}),a()}}}),null===(l=this.monorailTracker)||void 0===l||l.trackPageImpression({page:sn.PhoneConsent})}showTitleAndDescriptionOnlyScreen({title:e,description:t}){this.updateSheetContent({title:e,description:t,processingElementVisible:!1,phoneCaptureContainerVisible:!1,processingUserElementVisible:!1}),this.removeContentMinHeight()}getIframe(){return this.iframe}resizeIframe(e,t,n){this.iframe&&(this.iframe.style.height=`${e}px`,this.iframe.style.width=`${t}px`,n())}toggleModalBusy(e){e?this.sheetModal.setAttribute("busy","true"):this.sheetModal.removeAttribute("busy")}isModalBusy(){return"true"===this.sheetModal.getAttribute("busy")}showModal(){this.sheetModal.open()}hideModal(){return o(this,void 0,void 0,(function*(){return this.sheetModal.close().then((e=>{e&&this.hideIframe()})).catch((()=>this.hideIframe()))}))}reset(){this.hideModal(),this.removeContentMinHeight(),this.updateSheetContent({headerVisible:!1,processingElementVisible:!1,discountCode:{code:"",saved:!1}})}setMonorailTracker(e){this.monorailTracker=e}copyTemplateToDom(e,t,n){const o=document.createElement("div");o.innerHTML=e,o.style.display="none",n.prepend(o);const i=n.querySelector(`#${t}`).content;n.appendChild(i.cloneNode(!0))}initStatusIndicator(e){const t=e?Mi.Branded:Mi.Regular;this.statusIndicator=ji(t),this.processingStatusElement.appendChild(this.statusIndicator)}showIframe(){qi(this.iframe,!0)}hideIframe(){qi(this.iframe,!1)}updateDiscountCode({code:e,saved:t}){var n,o,i,s,r;void 0!==e&&(e?(null===(n=this.discountCodeElement)||void 0===n||n.setAttribute("code",e),null===(o=this.monorailTracker)||void 0===o||o.trackPageImpression({page:sn.DiscountShown})):null===(i=this.discountCodeElement)||void 0===i||i.removeAttribute("code")),void 0!==t&&(t?null===(s=this.discountCodeElement)||void 0===s||s.setAttribute("saved",""):null===(r=this.discountCodeElement)||void 0===r||r.removeAttribute("saved"))}setContentMinHeight(){this.rootElement.querySelector(".sda-content").className="sda-content sda-content--fixed"}removeContentMinHeight(){this.rootElement.querySelector(".sda-content").className=vi}updateDisclosureText(e){var t;if(!this.disclosureContainer){const e=null===(t=this.disclosureIframe.contentDocument)||void 0===t?void 0:t.querySelector("body");e.innerHTML="\n    <style>\n        body {\n            font-family: -apple-system,San Francisco,Roboto,Segoe UI,Helvetica Neue,sans-serif !important;\n            font-style: normal !important;\n            margin: 0;\n        }\n\n        .sda-disclosure-text {\n            color: #424242;\n            font-size: 12px;\n            line-height: 14px;\n            margin: 0;\n        }\n\n        .sda-disclosure-text a {\n            color: #424242;\n        }\n    </style>";const n=document.createElement("div");n.setAttribute("class","sda-disclosure-text"),e.appendChild(n),this.disclosureContainer=n}this.disclosureContainer.innerHTML=e,this.disclosureIframe.setAttribute("height",`${this.disclosureContainer.getBoundingClientRect().height}px`)}}function qi(e,t){e.classList.toggle("sda-hidden",!t)}var Vi,Hi=ne((function(e,t){
2/*! @license DOMPurify 3.0.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.1/LICENSE */
3e.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e}
3)(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function o(e,i,s){return(o=n()?Reflect.construct:function(e,n,o){var i=[null];i.push.apply(i,n);var s=new(Function.bind.apply(e,i));return o&&t(s,o.prototype),s}).apply(null,arguments)}function i(e,t){return a(e)||c(e,t)||u(e,t)||p()}function s(e){return r(e)||l(e)||u(e)||h()}function r(e){if(Array.isArray(e))return d(e)}function a(e){if(Array.isArray(e))return e}function l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,s=[],r=!0,a=!1;try{for(n=n.call(e);!(r=(o=n.next()).done)&&(s.push(o.value),!t||s.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==n.return||n.return()}finally{if(a)throw i}}return s}}function u(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){a=!0,s=e},f:function(){try{r||null==n.return||n.return()}finally{if(a)throw s}}}}var f=Object.entries,g=Object.setPrototypeOf,v=Object.isFrozen,_=Object.getPrototypeOf,b=Object.getOwnPropertyDescriptor,y=Object.freeze,w=Object.seal,k=Object.create,C="undefined"!=typeof Reflect&&Reflect,S=C.apply,x=C.construct;S||(S=function(e,t,n){return e.apply(t,n)}),y||(y=function(e){return e}),w||(w=function(e){return e}),x||(x=function(e,t){return o(e,s(t))});var E=D(Array.prototype.forEach),A=D(Array.prototype.pop),T=D(Array.prototype.push),P=D(String.prototype.toLowerCase),M=D(String.prototype.toString),L=D(String.prototype.match),j=D(String.prototype.replace),O=D(String.prototype.indexOf),I=D(String.prototype.trim),N=D(RegExp.prototype.test),z=R(TypeError);function D(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return S(e,t,o)}}function R(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return x(e,n)}}function B(e,t,n){n=n||P,g&&g(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var s=n(i);s!==i&&(v(t)||(t[o]=s),i=s)}e[i]=!0}return e}function F(e){var t,n=k(null),o=m(f(e));try{for(o.s();!(t=o.n()).done;){var s=i(t.value,2),r=s[0],a=s[1];n[r]=a}}catch(e){o.e(e)}finally{o.f()}return n}function U(e,t){for(;null!==e;){var n=b(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=_(e)}function o(e){return console.warn("fallback value for",e),null}return o}var $=y(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=y(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=y(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),V=y(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=y(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),K=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),G=y(["#text"]),Z=y(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
3spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),J=y(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Q=y(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Y=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),X=w(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ee=w(/<%[\w\W]*|[\w\W]*%>/gm),te=w(/\${[\w\W]*}/gm),ne=w(/^data-[\-\w.\u00B7-\uFFFF]/),oe=w(/^aria-[\-\w]+$/),ie=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),se=w(/^(?:\w+script|data):/i),re=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ae=w(/^html$/i),le=function(){return"undefined"==typeof window?null:window},ce=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var o=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(o=n.currentScript.getAttribute(i));var s="dompurify"+(o?"#"+o:"");try{return t.createPolicy(s,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function ue(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:le(),n=function(e){return ue(e)};if(n.version="3.0.1",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var o=t.document,i=t.document,r=t.DocumentFragment,a=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,p=t.HTMLFormElement,m=t.DOMParser,g=t.trustedTypes,v=c.prototype,_=U(v,"cloneNode"),b=U(v,"nextSibling"),w=U(v,"childNodes"),k=U(v,"parentNode");if("function"==typeof a){var C=i.createElement("template");C.content&&C.content.ownerDocument&&(i=C.content.ownerDocument)}var S=ce(g,o),x=S?S.createHTML(""):"",D=i,R=D.implementation,de=D.createNodeIterator,he=D.createDocumentFragment,pe=D.getElementsByTagName,me=o.importNode,fe={};n.isSupported="function"==typeof f&&"function"==typeof k&&R&&void 0!==R.createHTMLDocument;var ge,ve,_e=X,be=ee,ye=te,we=ne,ke=oe,Ce=se,Se=re,xe=ie,Ee=null,Ae=B({},[].concat(s($),s(W),s(q),s(H),s(G))),Te=null,Pe=B({}
vendor: 5,882 bytes, line 3
3,[].concat(s(Z),s(J),s(Q),s(Y))),Me=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,je=null,Oe=!0,Ie=!0,Ne=!1,ze=!0,De=!1,Re=!1,Be=!1,Fe=!1,Ue=!1,$e=!1,We=!1,qe=!0,Ve=!1,He="user-content-",Ke=!0,Ge=!1,Ze={},Je=null,Qe=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ye=null,Xe=B({},["audio","video","img","source","image","track"]),et=null,tt=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml",st=it,rt=!1,at=null,lt=B({},[nt,ot,it],M),ct=["application/xhtml+xml","text/html"],ut="text/html",dt=null,ht=i.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},mt=function(t){dt&&dt===t||(t&&"object"===e(t)||(t={}),t=F(t),ge=ge=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===ge?M:P,Ee="ALLOWED_TAGS"in t?B({},t.ALLOWED_TAGS,ve):Ae,Te="ALLOWED_ATTR"in t?B({},t.ALLOWED_ATTR,ve):Pe,at="ALLOWED_NAMESPACES"in t?B({},t.ALLOWED_NAMESPACES,M):lt,et="ADD_URI_SAFE_ATTR"in t?B(F(tt),t.ADD_URI_SAFE_ATTR,ve):tt,Ye="ADD_DATA_URI_TAGS"in t?B(F(Xe),t.ADD_DATA_URI_TAGS,ve):Xe,Je="FORBID_CONTENTS"in t?B({},t.FORBID_CONTENTS,ve):Qe,Le="FORBID_TAGS"in t?B({},t.FORBID_TAGS,ve):{},je="FORBID_ATTR"in t?B({},t.FORBID_ATTR,ve):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Oe=!1!==t.ALLOW_ARIA_ATTR,Ie=!1!==t.ALLOW_DATA_ATTR,Ne=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ze=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,De=t.SAFE_FOR_TEMPLATES||!1,Re=t.WHOLE_DOCUMENT||!1,Ue=t.RETURN_DOM||!1,$e=t.RETURN_DOM_FRAGMENT||!1,We=t.RETURN_TRUSTED_TYPE||!1,Fe=t.FORCE_BODY||!1,qe=!1!==t.SANITIZE_DOM,Ve=t.SANITIZE_NAMED_PROPS||!1,Ke=!1!==t.KEEP_CONTENT,Ge=t.IN_PLACE||!1,xe=t.ALLOWED_URI_REGEXP||xe,st=t.NAMESPACE||it,Me=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Me.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Ie=!1),$e&&(Ue=!0),Ze&&(Ee=B({},s(G)),Te=[],!0===Ze.html&&(B(Ee,$),B(Te,Z)),!0===Ze.svg&&(B(Ee,W),B(Te,J),B(Te,Y)),!0===Ze.svgFilters&&(B(Ee,q),B(Te,J),B(Te,Y)),!0===Ze.mathMl&&(B(Ee,H),B(Te,Q),B(Te,Y))),t.ADD_TAGS&&(Ee===Ae&&(Ee=F(Ee)),B(Ee,t.ADD_TAGS,ve)),t.ADD_ATTR&&(Te===Pe&&(Te=F(Te)),B(Te,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&B(et,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Je===Qe&&(Je=F(Je)),B(Je,t.FORBID_CONTENTS,ve)),Ke&&(Ee["#text"]=!0),Re&&B(Ee,["html","head","body"]),Ee.table&&(B(Ee,["tbody"]),delete Le.tbody),y&&y(t),dt=t)},ft=B({},["mi","mo","mn","ms","mtext"]),gt=B({},["foreignobject","desc","title","annotation-xml"]),vt=B({},["title","style","font","a","script"]),_t=B({},W);B(_t,q),B(_t,V);var bt=B({},H);B(bt,K);var yt=function(e){var t=k(e);t&&t.tagName||(t={namespaceURI:st,tagName:"template"});var n=P(e.tagName),o=P(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===ot?t.namespaceURI===it?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===o||ft[o]):Boolean(_t[n]):e.namespaceURI===nt?t.namespaceURI===it?"math"===n:t.namespaceURI===ot?"math"===n&&gt[o]:Boolean(bt[n]):e.namespaceURI===it?!(t.namespaceURI===ot&&!gt[o])&&!(t.namespaceURI===nt&&!ft[o])&&!bt[n]&&(vt[n]||!_t[n]):!("application/xhtml+xml"!==ge||!at[e.namespaceURI]))},wt=function(e){T(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},kt=function(e,t){try{T(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){T(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Te[e])if(Ue||$e)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ct=function(e){var t,n;if(Fe)e="<remove></remove>"+e;else{var o=L(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===ge&&st===it&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var s=S?S.createHTML(e):e;if(st===it)try{t=(new m).parseFromString(s,ge)}catch(e){}if(!t||!t.documentElement){t=R.createDocument(st,"template",null);try{t.documentElement.innerHTML=rt?x:s}catch(e){}}var r=t.body||t.documentElement;return e&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),st===it?pe.call(t,Re?"html":"body")[0]:Re?t.documentElement:r},St=function(e){return de.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},xt=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Et=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},At=function(e,t,o){fe[e]&&E(fe[e],(function(e){e.call(n,t,o,dt)}))},Tt=function(e){var t;if(At("beforeSanitizeElements",e,null),xt(e))return wt(e),!0;var o=ve(e.nodeName);if(At("uponSanitizeElement",e,{tagName:o,allowedTags:Ee}),e.hasChildNodes()&&!Et(e.firstElementChild)&&(!Et(e.content)||!Et(e.content.firstElementChild))&&N(/<[/\w]/g,e.innerHTML)&&N(/<[/\w]/g,e.textContent))return wt(e),!0;
3if(!Ee[o]||Le[o]){if(!Le[o]&&Mt(o)){if(Me.tagNameCheck instanceof RegExp&&N(Me.tagNameCheck,o))return!1;if(Me.tagNameCheck instanceof Function&&Me.tagNameCheck(o))return!1}if(Ke&&!Je[o]){var i=k(e)||e.parentNode,s=w(e)||e.childNodes;if(s&&i)for(var r=s.length-1;r>=0;--r)i.insertBefore(_(s[r],!0),b(e))}return wt(e),!0}return e instanceof c&&!yt(e)?(wt(e),!0):"noscript"!==o&&"noembed"!==o||!N(/<\/no(script|embed)/i,e.innerHTML)?(De&&3===e.nodeType&&(t=e.textContent,t=j(t,_e," "),t=j(t,be," "),t=j(t,ye," "),e.textContent!==t&&(T(n.removed,{element:e.cloneNode()}),e.textContent=t)),At("afterSanitizeElements",e,null),!1):(wt(e),!0)},Pt=function(e,t,n){if(qe&&("id"===t||"name"===t)&&(n in i||n in ht))return!1;if(Ie&&!je[t]&&N(we,t));else if(Oe&&N(ke,t));else if(!Te[t]||je[t]){if(!(Mt(e)&&(Me.tagNameCheck instanceof RegExp&&N(Me.tagNameCheck,e)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(e))&&(Me.attributeNameCheck instanceof RegExp&&N(Me.attributeNameCheck,t)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(t))||"is"===t&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&N(Me.tagNameCheck,n)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(n))))return!1}else if(et[t]);else if(N(xe,j(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==O(n,"data:")||!Ye[e])if(Ne&&!N(Ce,j(n,Se,"")));else if(n)return!1;return!0},Mt=function(e){return e.indexOf("-")>0},Lt=function(t){var o,i,s,r;At("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};for(r=a.length;r--;){var c=o=a[r],u=c.name,d=c.namespaceURI;if(i="value"===u?o.value:I(o.value),s=ve(u),l.attrName=s,l.attrValue=i,l.keepAttr=!0,l.forceKeepAttr=void 0,At("uponSanitizeAttribute",t,l),i=l.attrValue,!l.forceKeepAttr&&(kt(u,t),l.keepAttr))if(ze||!N(/\/>/i,i)){De&&(i=j(i,_e," "),i=j(i,be," "),i=j(i,ye," "));var h=ve(t.nodeName);if(Pt(h,s,i)){if(!Ve||"id"!==s&&"name"!==s||(kt(u,t),i=He+i),S&&"object"===e(g)&&"function"==typeof g.getAttributeType)if(d);else switch(g.getAttributeType(h,s)){case"TrustedHTML":i=S.createHTML(i);break;case"TrustedScriptURL":i=S.createScriptURL(i)}try{d?t.setAttributeNS(d,u,i):t.setAttribute(u,i),A(n.removed)}catch(e){}}}else kt(u,t)}At("afterSanitizeAttributes",t,null)}},jt=function e(t){var n,o=St(t);for(At("beforeSanitizeShadowDOM",t,null);n=o.nextNode();)At("uponSanitizeShadowNode",n,null),Tt(n)||(n.content instanceof r&&e(n.content),Lt(n));At("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var t,i,s,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Et(e)){if("function"!=typeof e.toString)throw z("toString is not a function");if("string"!=typeof(e=e.toString()))throw z("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Be||mt(c),n.removed=[],"string"==typeof e&&(Ge=!1),Ge){if(e.nodeName){var u=ve(e.nodeName);if(!Ee[u]||Le[u])throw z("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)1===(i=(t=Ct("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?t=i:t.appendChild(i);else{if(!Ue&&!De&&!Re&&-1===e.indexOf("<"))return S&&We?S.createHTML(e):e;if(!(t=Ct(e)))return Ue?null:We?x:""}t&&Fe&&wt(t.firstChild);for(var d=St(Ge?e:t);s=d.nextNode();)Tt(s)||(s.content instanceof r&&jt(s.content),Lt(s));if(Ge)return e;if(Ue){if($e)for(a=he.call(t.ownerDocument);t.firstChild;)a.appendChild(t.firstChild);else a=t;return(Te.shadowroot||Te.shadowrootmod)&&(a=me.call(o,a,!0)),a}var h=Re?t.outerHTML:t.innerHTML;return Re&&Ee["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&N(ae,t.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+h),De&&(h=j(h,_e," "),h=j(h,be," "),h=j(h,ye," ")),S&&We?S.createHTML(h):h},n.setConfig=function(e){mt(e),Be=!0},n.clearConfig=function(){dt=null,Be=!1},n.isValidAttribute=function(e,t,n){dt||mt({});var o=ve(e),i=ve(t);return Pt(o,i,n)},n.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],T(fe[e],t))},n.removeHook=function(e){if(fe[e])return A(fe[e])},n.removeHooks=function(e){fe[e]&&(fe[e]=[])},n.removeAllHooks=function(){fe={}},n}return ue()}()}));function Ki(e){return function(e){if(!Hi.isSupported)throw new Error("Disclosure sanitization is not supported in this browser.");return Hi.sanitize(e,{ALLOWED_TAGS:[]})}(e).length}Hi.addHook("afterSanitizeAttributes",(function(e){"target"in e&&e.setAttribute("target","_blank")})),function(e){e.AuthorizeShown="authorize-shown",e.AuthorizeSuccess="authorize-success",e.PhoneConsentShown="phone-consent-shown",e.PhoneConsentDeclined="phone-consent-declined",e.PhoneConsentConfirmed="phone-consent-confirmed",e.CheckYourTexts="check-your-texts",e.Never="never"}(Vi||(Vi={}));const Gi=Object.values(Vi),Zi=[Vi.PhoneConsentShown,Vi.PhoneConsentConfirmed,Vi.Never],Ji=[Vi.AuthorizeShown,Vi.AuthorizeSuccess,Vi.PhoneConsentShown,Vi.PhoneConsentConfirmed,Vi.Never],Qi=[Vi.AuthorizeSuccess,Vi.PhoneConsentConfirmed,Vi.Never];function Yi({phoneCapture:e,showDiscountAt:t,saveDiscountAt:n}){return e?`PHONE_CAPTURE_SHOWN_AT_${t}_SAVED_AT_${n}`.toUpperCase().replace(/[-]/g,"_"):"EMAIL_CAPTURE"}function Xi(e,t){return(e!==Vi.PhoneConsentDeclined||t!==Vi.PhoneConsentConfirmed)&&Gi.indexOf(t)<=Gi.indexOf(e)}var es;!function(e){e.DiscountCodeCallback="discount-code-callback",e.StorefrontOrigin="storefront-origin",e.DevMode="dev-mode",e.ApiKey="api-key",e.Email="email",e.HideChange="hide-change",e.PhoneCapture="phone-capture",e.ShowDiscountAt="show-discount-at",e.SaveDiscountAt="save-discount-at",e.PhoneCaptureDisclosureText="phone-capture-disclosure-text"}(es||(es={}));const ts=[es.DiscountCodeCallback,es.ApiKey];
3class ns extends Error{constructor(e,t=G()){super(e),this.analyticsTraceId=t,this.name="SaveDiscountError",this.code="save_discount_error"}}var os,is,ss,rs,as,ls,cs,us,ds,hs,ps,ms,fs,gs,vs,_s,bs,ys,ws,ks,Cs,Ss,xs,Es,As,Ts,Ps,Ms,Ls,js,Os,Is,Ns,zs,Ds,Rs,Bs,Fs,Us,$s;const Ws={emailCapture:{showDiscountAt:Vi.AuthorizeShown,saveDiscountAt:Vi.AuthorizeSuccess},phoneCapture:{showDiscountAt:Vi.Never,saveDiscountAt:Vi.AuthorizeSuccess}};class qs extends no{constructor(){super(),os.add(this),is.set(this,!1),ss.set(this,!1),rs.set(this,!1),as.set(this,""),ls.set(this,""),cs.set(this,""),us.set(this,null),ds.set(this,void 0),hs.set(this,void 0),ps.set(this,void 0),ms.set(this,void 0),fs.set(this,!1),gs.set(this,void 0),vs.set(this,G()),_s.set(this,""),bs.set(this,null),ys.set(this,void 0),this._phoneCapture=!1,this._showDiscountAt=Ws.emailCapture.showDiscountAt,this._saveDiscountAt=Ws.emailCapture.saveDiscountAt,this._pendingStep=Gi[0],this._discountSaved=!1,this._discountSaveTriggered=!1,this._confirmCompleted=!1,this._isModalClosing=!1,this._phoneCaptureDisclosureText="",this._apiKey="",this._completedEventPayload={loggedIn:!1},customElements.get("sheet-modal")||customElements.define("sheet-modal",ai);const e=this.attachShadow({mode:"production".startsWith("test")?"open":"closed"});this._view=new Wi(e,(()=>{var e;this._confirmCompleted||this._pendingStep===Vi.AuthorizeShown?this.hideModalAndDispatchCompleted():(this._view.hideModal(),this._isModalClosing=!0,null===(e=c(this,ps,"f"))||void 0===e||e.postMessage(Object.assign({type:"phoneshareconsentreceived",consented:this._pendingStep===Vi.PhoneConsentConfirmed},!this._discountSaved&&{skipDiscountSaving:!0})))})),u(this,ds,this._view.getIframe(),"f"),u(this,gs,!1,"f")}static get observedAttributes(){return[es.ApiKey,es.DevMode,es.DiscountCodeCallback,es.Email,es.PhoneCapture,es.PhoneCaptureDisclosureText,es.SaveDiscountAt,es.ShowDiscountAt,es.StorefrontOrigin]}get storefrontOrigin(){return c(this,_s,"f")}set storefrontOrigin(e){u(this,_s,e,"f"),this.updateAttribute(es.StorefrontOrigin,e)}get apiKey(){return this._apiKey}set apiKey(e){this._apiKey=e,this.updateAttribute(es.ApiKey,e)}connectedCallback(){var e;return o(this,void 0,void 0,(function*(){if(c(this,os,"m",Cs).call(this),yield c(this,os,"m",ws).call(this),u(this,fs,this.getBooleanAttribute(es.DevMode),"f"),u(this,gs,null!==this.getAttribute(es.HideChange),"f"),c(this,fs,"f")||c(this,ys,"f")||(u(this,ys,new bi({elementName:"shop-discount-auth",apiKey:this.apiKey,shopLoginVersion:Yi({phoneCapture:this._phoneCapture,showDiscountAt:this._showDiscountAt,saveDiscountAt:this._saveDiscountAt}),analyticsTraceId:c(this,vs,"f")}),"f"),this._view.setMonorailTracker(c(this,ys,"f")),c(this,ys,"f").trackPageImpression({page:sn.SdkLoaded})),c(this,os,"m",Ts).call(this),!c(this,hs,"f")){const t=(null===(e=this.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0,n=c(this,os,"m",ks).call(this);u(this,hs,new Un(new Kn(c(this,ds,"f")),[Wn,qn,n],c(this,os,"m",Us).bind(this),t),"f"),u(this,bs,yield Z(n),"f")}c(this,ps,"f")||u(this,ps,new Hn(c(this,ds,"f")),"f")}))}disconnectedCallback(){var e;null===(e=c(this,hs,"f"))||void 0===e||e.destroy()}attributeChangedCallback(e,t,n){var o;const i=Boolean(null!==n);switch(e){case es.DiscountCodeCallback:this.initDiscountCodeCallback();break;case es.StorefrontOrigin:this.initStorefrontOrigin();break;case es.ApiKey:this.initApiKey(),null===(o=c(this,ys,"f"))||void 0===o||o.update({apiKey:this.apiKey});break;case es.Email:c(this,os,"m",As).call(this,n);break;case es.PhoneCapture:this.initPhoneCapture(i),c(this,os,"m",Ps).call(this);break;case es.ShowDiscountAt:this.initShowDiscountAt(n),c(this,os,"m",Ps).call(this);break;case es.SaveDiscountAt:this.initSaveDiscountAt(n),c(this,os,"m",Ps).call(this);break;case es.PhoneCaptureDisclosureText:this.initPhoneCaptureDisclosureText(n);break;case es.DevMode:this.initDevMode()}}notifyEmailFieldShown(){var e;null===(e=c(this,ys,"f"))||void 0===e||e.trackPageImpression({page:sn.PartnerEmailInputShown})}requestShow(e){if(c(this,is,"f")){if(!e)throw pe(new Error("requestShow called without email")),new Error("Missing email string parameter");c(this,os,"m",As).call(this,e)}else pe(new Error("requestShow called before iframe loaded"))}
3moveToNextStep(e,t=!1){if(this._pendingStep=e,this._discountSaveTriggered&&!this._discountSaved)return;if(function(e,t,n,o){return!n&&!o&&e&&e!==Vi.PhoneConsentDeclined&&Gi.indexOf(e)>=Gi.indexOf(t)}(e,this._saveDiscountAt,this._discountSaved,this._discountSaveTriggered))return this._view.toggleModalBusy(!0),void this.saveDiscountWithPay();let n=0;t&&(n=1500),e===this._showDiscountAt&&(n=2e3),setTimeout((()=>{switch(e){case Vi.AuthorizeShown:case Vi.AuthorizeSuccess:break;case Vi.PhoneConsentShown:this._view.toggleModalBusy(!1),this.updateCompletedPayload({phoneShareConsent:!1}),this.showPhoneConsent();break;case Vi.PhoneConsentConfirmed:this._saveDiscountAt!==Vi.Never&&this.showPhoneConsentConfirmed();break;case Vi.PhoneConsentDeclined:this.showPhoneConsentDeclined()}}),n)}hideModalAndDispatchCompleted(){var e,t;null===(e=c(this,hs,"f"))||void 0===e||e.destroy(),this._view.toggleModalBusy(!1),this.updateCompletedPayload({email:null!==(t=this._completedEventPayload.email)&&void 0!==t?t:c(this,as,"f")}),this._view.hideModal().finally((()=>{this.dispatchCustomEvent("completed",this._completedEventPayload)}))}dispatchCustomEvent(e,t){super.dispatchCustomEvent(e,t)}initDiscountCodeCallback(){const e=this.getAttribute(es.DiscountCodeCallback);e&&u(this,cs,e,"f")}initStorefrontOrigin(){const e=this.getAttribute(es.StorefrontOrigin);e&&(this.storefrontOrigin=e)}initApiKey(){this.apiKey=this.getAttribute(es.ApiKey),c(this,os,"m",Ts).call(this)}initPhoneCapture(e){this._phoneCapture=e,this.initShowDiscountAt(this.getAttribute(es.ShowDiscountAt)),this.initSaveDiscountAt(this.getAttribute(es.SaveDiscountAt)),c(this,os,"m",Ts).call(this)}initShowDiscountAt(e){if(t=e,Boolean(t&&Ji.includes(t)))return this._showDiscountAt=e,void c(this,os,"m",Ts).call(this);var t;this._showDiscountAt=this._phoneCapture?Ws.phoneCapture.showDiscountAt:Ws.emailCapture.showDiscountAt,c(this,os,"m",Ts).call(this),ee(e)||$n(`Invalid value of ${es.ShowDiscountAt} ('${e}'). Must be one of: ${Ji.join(", ")}. Using the default '${this._showDiscountAt}' instead.`)}initSaveDiscountAt(e){if(t=e,Boolean(t&&Qi.includes(t)))return this._saveDiscountAt=e,void c(this,os,"m",Ts).call(this);var t;this._saveDiscountAt=this._phoneCapture?Ws.phoneCapture.saveDiscountAt:Ws.emailCapture.saveDiscountAt,c(this,os,"m",Ts).call(this),ee(e)||$n(`Invalid value of ${es.SaveDiscountAt} ('${e}'). Must be one of: ${Qi.join(", ")}. Using the default '${this._saveDiscountAt}' instead.`)}initPhoneCaptureDisclosureText(e){try{this._phoneCaptureDisclosureText=e?function(e){if(!Hi.isSupported)throw new Error("Disclosure sanitization is not supported in this browser.");return Hi.sanitize(e,{ALLOWED_TAGS:["a"]})}(e):""}catch(e){e instanceof Error&&(pe(e),c(this,os,"m",Is).call(this,"disclosure_parse_error",e.message))}}initDevMode(){u(this,fs,this.getBooleanAttribute(es.DevMode),"f"),c(this,os,"m",Ts).call(this)}showPhoneConsent(){var e;return o(this,void 0,void 0,(function*(){const t=this._saveDiscountAt===Vi.AuthorizeSuccess,n=c(this,us,"f").translate(t?"shop_discount_auth.phone_capture.consent.title_discount_saved":"shop_discount_auth.phone_capture.consent.title_discount_not_saved"),o=(null===(e=c(this,bs,"f"))||void 0===e?void 0:e.name)||"",i=c(this,us,"f").translate("shop_discount_auth.phone_capture.consent.disclosure_heading",{merchantName:o}),s=c(this,us,"f").translate("shop_discount_auth.phone_capture.consent.confirm_button",{phone:this._maskedPhoneNumber}),r=c(this,us,"f").translate("shop_discount_auth.phone_capture.consent.decline_button"),a=Xi(Vi.PhoneConsentShown,this._showDiscountAt);this._view.showPhoneConsentScreen(Object.assign({title:n,disclosureHeading:i,disclosureText:this._phoneCaptureDisclosureText,confirmButtonLabel:s,declineButtonLabel:r,onConfirm:()=>{var e;this._pendingStep=Vi.PhoneConsentConfirmed,null===(e=c(this,ps,"f"))||void 0===e||e.postMessage({type:"phoneshareconsentreceived",consented:!0}),this.updateCompletedPayload({phoneShareConsent:!0}),this._saveDiscountAt===Vi.PhoneConsentConfirmed&&(this._view.toggleModalBusy(!0),this.saveDiscountWithPay())},onDecline:()=>{var e;this._pendingStep=Vi.PhoneConsentDeclined,null===(e=c(this,ps,"f"))||void 0===e||e.postMessage(Object.assign({type:"phoneshareconsentreceived",consented:!1},!this._discountSaved&&{skipDiscountSaving:!0})),this.updateCompletedPayload({phoneShareConsent:!1})}},a&&{discountCode:{code:c(this,ls,"f")}}))}))}
3showPhoneConsentConfirmed(){var e;const t=c(this,us,"f").translate("shop_discount_auth.phone_capture.consent_confirmed.title"),n=c(this,us,"f").translate("shop_discount_auth.phone_capture.consent_confirmed.description");this.showTitleAndDescriptionOnly(t,n),null===(e=c(this,ys,"f"))||void 0===e||e.trackPageImpression({page:sn.PhoneConsentConfirmed})}showPhoneConsentDeclined(){var e,t;if(this._saveDiscountAt!==Vi.AuthorizeSuccess)return void this.hideModalAndDispatchCompleted();const n=(null===(e=c(this,bs,"f"))||void 0===e?void 0:e.name)||"",o=c(this,us,"f").translate("shop_discount_auth.phone_capture.consent_declined.title",{merchantName:n}),i=c(this,us,"f").translate("shop_discount_auth.phone_capture.consent_declined.description");this.showTitleAndDescriptionOnly(o,i),null===(t=c(this,ys,"f"))||void 0===t||t.trackPageImpression({page:sn.PhoneConsentDeclined})}showTitleAndDescriptionOnly(e,t){this._view.showTitleAndDescriptionOnlyScreen({title:e,description:t});const n=Xi(Vi.CheckYourTexts,this._showDiscountAt);this._view.updateSheetContent(Object.assign({iframeVisible:!1},n&&{discountCode:{code:c(this,ls,"f")}})),this._view.toggleModalBusy(!1),setTimeout((()=>{this.hideModalAndDispatchCompleted()}),3e3)}saveDiscountWithPay(){var e;return o(this,void 0,void 0,(function*(){this._discountSaveTriggered=!0;const t=yield c(this,os,"m",$s).call(this,c(this,as,"f"));if(!t)throw new ns("Tried to save a discount code, but no discount code received");null===(e=c(this,ps,"f"))||void 0===e||e.postMessage({type:"savediscount",discountCode:t})}))}updateCompletedPayload(e){this._completedEventPayload=Object.assign(Object.assign({},this._completedEventPayload),e)}}is=new WeakMap,ss=new WeakMap,rs=new WeakMap,as=new WeakMap,ls=new WeakMap,cs=new WeakMap,us=new WeakMap,ds=new WeakMap,hs=new WeakMap,ps=new WeakMap,ms=new WeakMap,fs=new WeakMap,gs=new WeakMap,vs=new WeakMap,_s=new WeakMap,bs=new WeakMap,ys=new WeakMap,os=new WeakSet,ws=function(){return o(this,void 0,void 0,(function*(){try{const e=mi.getDefaultLanguage(),t=yield function(e){switch(e){case"./translations/bg-BG.json":return Promise.resolve().then((function(){return Yl}));case"./translations/cs.json":return Promise.resolve().then((function(){return tc}));case"./translations/da.json":return Promise.resolve().then((function(){return ic}));case"./translations/de.json":return Promise.resolve().then((function(){return ac}));case"./translations/el.json":return Promise.resolve().then((function(){return uc}));case"./translations/en.json":return Promise.resolve().then((function(){return pc}));case"./translations/es.json":return Promise.resolve().then((function(){return gc}));case"./translations/fi.json":return Promise.resolve().then((function(){return bc}));case"./translations/fr.json":return Promise.resolve().then((function(){return kc}));case"./translations/hi.json":return Promise.resolve().then((function(){return xc}));case"./translations/hr-HR.json":return Promise.resolve().then((function(){return Tc}));case"./translations/hu.json":return Promise.resolve().then((function(){return Lc}));case"./translations/id.json":return Promise.resolve().then((function(){return Ic}));case"./translations/it.json":return Promise.resolve().then((function(){return Dc}));case"./translations/ja.json":return Promise.resolve().then((function(){return Fc}));case"./translations/ko.json":return Promise.resolve().then((function(){return Wc}));case"./translations/lt-LT.json":return Promise.resolve().then((function(){return Hc}));case"./translations/ms.json":return Promise.resolve().then((function(){return Zc}));case"./translations/nb.json":return Promise.resolve().then((function(){return Yc}));case"./translations/nl.json":return Promise.resolve().then((function(){return tu}));case"./translations/pl.json":return Promise.resolve().then((function(){return iu}));case"./translations/pt-BR.json":return Promise.resolve().then((function(){return au}));case"./translations/pt-PT.json":return Promise.resolve().then((function(){return uu}));case"./translations/ro-RO.json":return Promise.resolve().then((function(){return pu}));case"./translations/ru.json":return Promise.resolve().then((function(){return gu}));case"./translations/sk-SK.json":return Promise.resolve().then((function(){return bu}));case"./translations/sl-SI.json":return Promise.resolve().then((function(){return ku}));case"./translations/sv.json":return Promise.resolve().then((function(){return xu}));case"./translations/th.json":return Promise.resolve().then((function(){return Tu}));case"./translations/tr.json":return Promise.resolve().then((function(){return Lu}));case"./translations/vi.json":return Promise.resolve().then((function(){return Iu}));case"./translations/zh-CN.json":return Promise.resolve().then((function(){return Du}));case"./translations/zh-TW.json":return Promise.resolve().then((function(){return Fu}));default:return new Promise((function(t,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}}(`./translations/${e}.json`);u(this,us,new mi({[e]:t}),"f")}catch(e){e instanceof Error&&pe(e)}}))},ks=function(){return c(this,_s,"f")||window.location.origin},Cs=function(){var e;
3e=this,ts.forEach((t=>{e.getAttribute(t)||$n(`Missing ${t} attribute`)})),c(this,_s,"f")&&function(e){try{const t=new URL(e);if("https:"!==t.protocol||"/"!==t.pathname||t.hash||t.search)throw new Error("Invalid URL")}catch(t){$n(`Invalid storefront origin: ${e}`)}}(c(this,_s,"f"))},Ss=function(e){return o(this,void 0,void 0,(function*(){const t=yield c(this,os,"m",$s).call(this,e);t&&(u(this,ls,t,"f"),c(this,os,"m",xs).call(this))}))},xs=function(){if(!c(this,ls,"f")||!c(this,ss,"f"))return;const e=Xi(Vi.AuthorizeShown,this._showDiscountAt);this._view.updateSheetContent(Object.assign({iframeVisible:!0},e&&{discountCode:{code:c(this,ls,"f")}})),this._view.showModal()},Es=function(e,t){var n;u(this,is,!0,"f"),c(this,os,"m",Ls).call(this),this._view.updateSheetContent({title:t,headerVisible:e}),this.dispatchCustomEvent(e?"userfound":"usernotfound"),null===(n=c(this,ys,"f"))||void 0===n||n.trackShopLoginFirstTimeRender()},As=function(e){var t,n;if(e){try{!function({isPhoneCapture:e,phoneCaptureDisclosureText:t,saveDiscountAt:n,showDiscountAt:o}){if(e&&!t)throw new Error(`A valid ${es.PhoneCaptureDisclosureText} must be provided when ${es.PhoneCapture} is enabled.`);if(t&&Ki(t)>500)throw new Error(`The attribute ${es.PhoneCaptureDisclosureText} has a max length of 500 characters (excluding HTML tags).`);if(!e&&Zi.includes(o))throw new Error(`The attribute ${es.ShowDiscountAt} can only be set to ${o} when ${es.PhoneCapture} is enabled.`);if(!e&&Zi.includes(n))throw new Error(`The attribute ${es.SaveDiscountAt} can only be set to ${n} when ${es.PhoneCapture} is enabled.`)}({isPhoneCapture:this._phoneCapture,saveDiscountAt:this._saveDiscountAt,showDiscountAt:this._showDiscountAt,phoneCaptureDisclosureText:this._phoneCaptureDisclosureText})}catch(e){return void(e instanceof Error&&($n(`Invalid config. ${e.message}`),c(this,os,"m",Is).call(this,"invalid_config",e.message)))}if(u(this,as,e,"f"),null===(t=c(this,ys,"f"))||void 0===t||t.trackShopPayLoginWithShopSdkUserAction({userAction:rn.ThirdPartyFormSubmission}),c(this,os,"m",Ss).call(this,e),c(this,fs,"f")){if("[email protected]"===e)return this.updateCompletedPayload({email:e,loggedIn:!1}),void c(this,os,"m",zs).call(this);if("[email protected]"===e)return void c(this,os,"m",Is).call(this,"user_blocked","Hardcoded error event test email was entered.",e)}null===(n=c(this,ps,"f"))||void 0===n||n.postMessage({type:"emailsubmitted",email:e,hideChange:c(this,gs,"f")})}},Ts=function(){if(!c(this,ds,"f"))return;const e=(({apiKey:e,analyticsTraceId:t,storefrontOrigin:n,devMode:o,phoneCapture:i,saveDiscountAt:s,flowVersion:r})=>{const a=new URLSearchParams(Object.assign(Object.assign(Object.assign(Object.assign({target_origin:window.location.origin,api_key:e,flow:gi,flow_version:r,locale:mi.getDefaultLanguage()},t&&{analytics_trace_id:t}),yi("phone_capture",i)),o&&yi("dev_mode",o)),s&&{save_discount_at:s}));return`${n||window.location.origin}/services/login_with_shop/authorize?${a}`})({analyticsTraceId:c(this,vs,"f"),storefrontOrigin:c(this,_s,"f"),devMode:c(this,fs,"f"),phoneCapture:this._phoneCapture,saveDiscountAt:this._saveDiscountAt,apiKey:this._apiKey,flowVersion:Yi({phoneCapture:this._phoneCapture,showDiscountAt:this._showDiscountAt,saveDiscountAt:this._saveDiscountAt})});c(this,os,"m",Ms).call(this),H(c(this,ds,"f"),"src",e),he("Iframe url updated",{authorizeUrl:e},"state")},Ps=function(){var e;null===(e=c(this,ys,"f"))||void 0===e||e.update({shopLoginVersion:Yi({phoneCapture:this._phoneCapture,showDiscountAt:this._showDiscountAt,saveDiscountAt:this._saveDiscountAt})})},Ms=function(){c(this,os,"m",Ls).call(this),u(this,ms,setTimeout((()=>{const{message:e,code:t}=fi;this.dispatchCustomEvent("error",{message:e,code:t}),pe(new Error("Pay failed to load within 10000ms.")),c(this,os,"m",Ls).call(this)}),1e4),"f")},Ls=function(){c(this,ms,"f")&&(clearTimeout(c(this,ms,"f")),u(this,ms,void 0,"f"))},js=function(e,t,n){u(this,rs,e,"f"),this._maskedPhoneNumber=t,this._view.updateSheetContent({minHeight:!e,description:n,headerVisible:!0}),u(this,ss,!0,"f"),this.dispatchCustomEvent("shopusermatched"),c(this,os,"m",xs).call(this)},Os=function(e,t,n){this._view.toggleModalBusy(!0);const o=[Vi.PhoneConsentConfirmed,Vi.PhoneConsentDeclined].includes(this._pe
3ndingStep),i={branded:c(this,rs,"f"),status:e,message:t},s=Xi(this._pendingStep,this._showDiscountAt),r=!(this._saveDiscountAt!==Vi.AuthorizeSuccess||this._isModalClosing&&this._pendingStep===Vi.PhoneConsentShown||o);this._isModalClosing||this._view.updateSheetContent({iframeVisible:!1,processingElementVisible:!0,processingUserElementVisible:r,phoneCaptureButtonsContainerVisible:r,processingUser:null!=n?n:c(this,as,"f"),statusIndicator:i,discountCode:Object.assign({},s&&{code:c(this,ls,"f")})})},Is=function(e,t,n){var o;c(this,os,"m",Ls).call(this),null===(o=c(this,ys,"f"))||void 0===o||o.trackShopPayLoginWithSdkErrorEvents({errorCode:e,errorMessage:t}),this.dispatchCustomEvent("error",{code:e,message:t,email:n}),this._view.toggleModalBusy(!1)},Ns=function(){var e;this._discountSaved=!0,this._view.updateSheetContent({discountCode:{saved:this._discountSaved}}),null===(e=c(this,ys,"f"))||void 0===e||e.trackPageImpression({page:sn.DiscountSaved}),this.moveToNextStep(this._pendingStep,!0)},zs=function(e=!1){var t,n;return o(this,void 0,void 0,(function*(){if((null===(t=this._completedEventPayload)||void 0===t?void 0:t.loggedIn)&&e&&me(c(this,_s,"f"),(e=>{pe(new Error(e))})),this._phoneCapture){if(this._isModalClosing)return void this.hideModalAndDispatchCompleted();if(this._saveDiscountAt===Vi.Never&&this._pendingStep===Vi.PhoneConsentConfirmed)return void this.showPhoneConsentConfirmed();this._saveDiscountAt===Vi.PhoneConsentConfirmed&&this._pendingStep!==Vi.PhoneConsentDeclined||this.moveToNextStep(this._pendingStep)}else null===(n=c(this,ys,"f"))||void 0===n||n.trackPageImpression({page:sn.DiscountSaved}),setTimeout((()=>{this.hideModalAndDispatchCompleted()}),2e3)}))},Ds=function(){this._phoneCapture?this.moveToNextStep(Vi.PhoneConsentShown):this.moveToNextStep(Vi.AuthorizeSuccess)},Rs=function(){this._view.reset(),u(this,rs,!1,"f"),u(this,ss,!1,"f"),this.dispatchCustomEvent("restarted")},Bs=function(e,t){this._view.resizeIframe(e,t,(()=>{this.dispatchCustomEvent("resized",{height:e,width:t})}))},Fs=function(){this._view.isModalBusy()||this.hideModalAndDispatchCompleted()},Us=function(e){var t;switch(e.type){case"resize_iframe":c(this,os,"m",Bs).call(this,e.height,e.width);break;case"restarted":c(this,os,"m",Rs).call(this);break;case"completed":{this._confirmCompleted=!0;const{shopAccountUuid:o,shouldFinalizeLogin:i,type:s}=e,r=n(e,["shopAccountUuid","shouldFinalizeLogin","type"]);null===(t=c(this,ys,"f"))||void 0===t||t.update({shopAccountUuid:o}),this.updateCompletedPayload(r),c(this,os,"m",zs).call(this,i);break}case"error":c(this,os,"m",Is).call(this,e.code,e.message,e.email);break;case"shop_user_matched":c(this,os,"m",js).call(this,e.userCookieExists,e.maskedPhoneNumber||"",e.description||"");break;case"loaded":c(this,os,"m",Es).call(this,e.userFound,e.loginTitle);break;case"processing_status_updated":c(this,os,"m",Os).call(this,e.status,e.message,e.email);break;case"discount_saved":c(this,os,"m",Ns).call(this);break;case"close_requested":c(this,os,"m",Fs).call(this);break;case"user_verified":c(this,os,"m",Ds).call(this)}he("Received postMessage",e,"process")},$s=function(e){var t;return o(this,void 0,void 0,(function*(){if(c(this,ls,"f"))return c(this,ls,"f");try{if(c(this,fs,"f")&&"[email protected]"===e)throw new Error("Discount code error");if("string"!=typeof c(this,cs,"f"))throw new Error("discount-code-callback attribute was not provided or is not a string");const n=window[c(this,cs,"f")];if("function"!=typeof n)throw new Error("discount-code-callback attribute did not contain the name of a global function");const o=yield n(e);if("string"!=typeof o||0===o.trim().length)throw new Error("discount code is non-string or empty");return null===(t=c(this,ys,"f"))||void 0===t||t.trackShopPayLoginWithSdkDiscountStatus({discountCode:o}),o}catch(t){t instanceof Error&&c(this,os,"m",Is).call(this,"no_discount_received",t.message,e)}}))};class Vs{constructor(e){this.eventListener=e,window.addEventListener("beforeunload",this.eventListener,!1)}destroy(){window.removeEventListener("beforeunload",this.eventListener,!1)}}
3const Hs=window.location.origin,Ks=({version:e,analyticsTraceId:t,analyticsContext:n,isFullView:o,flow:i,emailVerificationRequired:s,signUpEnabled:r,oauthParams:a,usePayAltDomain:l})=>"1"===e?a?((e,t,n,o,i,s,r,a)=>{const l=e.scope||"openid email",c=e.responseType||"id_token",u=e.responseMode||"web_message",d=e.redirectUri||window.location.origin;return`https://shop.app${a?"/pay/sdk-session":"/pay/sdk-authorize"}?${new URLSearchParams(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({response_mode:u,response_type:c,scope:l,version:"1",redirect_uri:d,locale:mi.getDefaultLanguage()},t&&{analytics_trace_id:t}),n&&{analytics_context:n}),e.clientId&&{client_id:e.clientId}),i&&{flow:i}),e.codeChallenge&&{code_challenge:e.codeChallenge}),e.codeChallengeMethod&&{code_challenge_method:e.codeChallengeMethod}),e.state&&{state:e.state}),yi("full_view",o)),yi("email_verification_required",s)),yi("sign_up_enabled",r)))}`})(a,t,n,o,i,s,r,l):"":((e,t,n,o,i,s)=>{const r=new URLSearchParams(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({target_origin:window.location.origin,api_key:"123",locale:mi.getDefaultLanguage()},e&&{analytics_trace_id:e}),t&&{analytics_context:t}),o&&{flow:o}),yi("full_view",n)),yi("email_verification_required",i)),yi("sign_up_enabled",s)));return`${Hs}/services/login_with_shop/authorize?${r}`})(t,n,o,i,s,r),Gs=e=>"1"===e?Wn:Hs;var Zs,Js;const Qs=[],Ys={[Qn.Follow]:"shop-follow-button",[Qn.Default]:"shop-login-default"};class Xs extends no{constructor(){super(),Zs.set(this,void 0),Js.set(this,void 0),this._emailVerificationRequired=!1,this._analyticsContext="",this._hideButton=!1,this._disableSignUp=!1,this._autoOpen=!1,this._loaded=!1,this._usePayAltDomain=!1,this._email="",this.monorailTracker=new dn("shop-login-button",this._analyticsTraceId)}static get observedAttributes(){return[vn,_n,bn,yn,wn,kn,Sn,Cn,xn,An,Tn,Pn,Mn,Ln,jn,In,Nn]}get popup(){return this._popup}get clientId(){return this._clientId}set clientId(e){this._clientId=e,this.updateAttribute(vn,e),this.updateSrc()}get version(){return this._version}set version(e){this._version=e,this.updateAttribute(_n,e),this.updateSrc()}get email(){return this._email}set email(e){this._email=e,this.updateAttribute(In,e)}connectedCallback(){var e,t;u(this,Zs,this.getAttribute("action"),"f");const n=this.getAttribute(Nn);if(this._emailVerificationRequired=this.getBooleanAttribute(yn),this._hideButton=this.getBooleanAttribute(wn),this._disableSignUp=this.getBooleanAttribute(kn),this._autoOpen=this.getBooleanAttribute(Sn),this._usePayAltDomain=this.getBooleanAttribute(On),this._redirectUri=this.getAttribute(Cn),this._responseType=this.getAttribute(An),this._responseMode=this.getAttribute(Tn),this._codeChallenge=this.getAttribute(Pn),this._codeChallengeMethod=this.getAttribute(Mn),this._state=this.getAttribute(Ln),this._scope=this.getAttribute(jn),this._email=this.getAttribute(In)||"",this._analyticsContext=this.getAttribute(xn)||"",this._analyticsTraceId=this.getAttribute(En)||G(),u(this,Js,this._createActionButton({actionType:c(this,Zs,"f"),attributes:{[_n]:this._version,[vn]:this._clientId,[yn]:this._emailVerificationRequired,[wn]:this._hideButton,[kn]:this._disableSignUp,[Sn]:this._autoOpen,[Cn]:this._redirectUri,[xn]:this._analyticsContext,[En]:this._analyticsTraceId,[An]:this._responseType,[Tn]:this._responseMode,[Pn]:this._codeChallenge,[Mn]:this._codeChallengeMethod,[Ln]:this._state,[jn]:this._scope,[On]:this._usePayAltDomain,[In]:this._email,[Nn]:n}}),"f"),c(this,Js,"f"))return this.attachShadow({mode:"open"}).innerHTML="",void(null===(e=this.shadowRoot)||void 0===e||e.appendChild(c(this,Js,"f")));this.attachShadow({mode:"open"}).innerHTML="<style>:host{display:inline-block;line-height:normal;}iframe{border:none;height:0;width:100%;}</style><iframe></iframe>",this._iframe=this.shadowRoot.querySelector("iframe"),this.monorailTracker.trackElementImpression(),this.version=this._version||"1";const o=Gs(this._version),i=(null===(t=this.ownerDocument)||void 0===t?void 0:t.defaultView)||void 0;this._iframeListener=new Un(new Kn(this._iframe),[o,qn],this.handlePostMessage.bind(this),i),this.validateAttributes(),this.initClientId()}disconnectedCallback(){var e;null===(e=this._iframeListener)||void 0===e||e.destroy(),this.destroyPopup()}attributeChangedCallback(e,t,n){var o,i;switch(e){case vn:this.initClientId();break;case _n:this.initVersion();break;case An:this.initResponseType();break;case Tn:this.initResponseMode();break;
3case Pn:this.initCodeChallenge();break;case Mn:this.initCodeChallengeMethod();break;case Ln:this.initState();break;case jn:this.initScope();break;case In:this.initEmail()}null===n?null===(o=c(this,Js,"f"))||void 0===o||o.removeAttribute(e):null===(i=c(this,Js,"f"))||void 0===i||i.setAttribute(e,n)}requestShow(e){c(this,Js,"f")&&"requestShow"in c(this,Js,"f")&&c(this,Js,"f").requestShow(e)}listenToInput(e){c(this,Js,"f")&&"listenToInput"in c(this,Js,"f")&&c(this,Js,"f").listenToInput(e)}dispatchCustomEvent(e,t){super.dispatchCustomEvent(e,t)}_createActionButton({actionType:e,attributes:t}){const n=Ys[e];if(!n)return;const o=document.createElement(n);return o?(Object.entries(t).forEach((([e,t])=>{t&&o.setAttribute(e,String(t))})),o):void 0}initClientId(){const e=this.getAttribute(vn);this.clientId=e||void 0}initVersion(){const e=this.getAttribute(_n);e&&(this.version=e)}initEmail(){const e=this.getAttribute(In);e&&(this.email=e)}initResponseType(){const e=this.getAttribute(An);this._responseType=e||void 0}initResponseMode(){const e=this.getAttribute(Tn);this._responseMode=e||void 0}initCodeChallenge(){const e=this.getAttribute(Pn);this._codeChallenge=e||void 0}initCodeChallengeMethod(){const e=this.getAttribute(Mn);this._codeChallengeMethod=e||void 0}initState(){const e=this.getAttribute(Ln);this._state=e||void 0}initScope(){const e=this.getAttribute(jn);this._scope=e||void 0}validateAttributes(){Qs.forEach((e=>{this.getAttribute(e)||$n(`Missing ${e} attribute`)}))}initLoadTimeout(){this.clearLoadTimeout(),this._loadTimeout=setTimeout((()=>{const e=gn;this.dispatchCustomEvent("error",{message:e.message,code:e.code}),pe(new Error("Pay failed to load within 10000ms.")),this.clearLoadTimeout()}),fn)}clearLoadTimeout(){this._loadTimeout&&(clearTimeout(this._loadTimeout),this._loadTimeout=void 0)}updateSrc(){const e=Ks(Object.assign({usePayAltDomain:this._usePayAltDomain,version:this._version,analyticsTraceId:this._analyticsTraceId},"1"===this._version&&this._clientId&&{oauthParams:{clientId:this._clientId}}));e&&this._iframe&&(this.initLoadTimeout(),H(this._iframe,"src",e),he("Iframe url updated",{authorizeUrl:e},"state"))}onResizeIframe(e){this._iframe&&(this._iframe.style.height=`${e}px`,e>0&&!this._loaded&&(this.monorailTracker.trackShopLoginFirstTimeRender(this._version),this.dispatchCustomEvent("load"),this._loaded=!0,this.clearLoadTimeout()))}onShowAuthorizePage(){if(!this._clientId)return;if(this._popup&&!this._popup.closed)return void this._popup.focus();const e=(({version:e,clientId:t,analyticsTraceId:n,usePayAltDomain:o,onClose:i})=>V({url:Ks(Object.assign({usePayAltDomain:o,version:e,analyticsTraceId:n,isFullView:!0},t&&{oauthParams:{clientId:t}})),width:432,height:600,onClose:i}))({usePayAltDomain:this._usePayAltDomain,version:this._version,clientId:this._clientId,analyticsTraceId:this._analyticsTraceId,onClose:()=>{this._popup===e&&this.destroyPopup()}});if(!e)return;this._popup&&this.destroyPopup(),this._popup=e;const t=Gs(this._version);this._popupListener=new Un(new Gn(e),[t,qn],this.handlePostMessage.bind(this)),this._beforeUnloadListener=new Vs(this.onAuthorizeCancel.bind(this))}destroyPopup(){var e,t,n;null===(e=this._popup)||void 0===e||e.close(),null===(t=this._popupListener)||void 0===t||t.destroy(),null===(n=this._beforeUnloadListener)||void 0===n||n.destroy(),this._popup=void 0,this._popupListener=void 0,this._beforeUnloadListener=void 0}onAuthorizeSuccess(e){var t;this.dispatchCustomEvent("loginsuccess",e),this.destroyPopup(),null===(t=this._iframeListener)||void 0===t||t.destroy()}onAuthorizeCancel(){this.destroyPopup()}onAuthorizeError(e,t){this.dispatchCustomEvent("error",{message:e,code:t}),pe(new Error(`Authorize Error: ${e} (${t}).`)),this.clearLoadTimeout(),this.destroyPopup()}handlePostMessage(e){switch(e.type){case"resize_iframe":this.onResizeIframe(e.height);break;case"show_authorize_page":this.onShowAuthorizePage();break;case"authorize_success":this.onAuthorizeSuccess(e.payload);break;case"authorize_cancel":this.onAuthorizeCancel();break;case"error":this.onAuthorizeError(e.message,e.code)}he("Received postMessage",e,"process")}}var er,tr,nr,or,ir,sr,rr,ar,lr,cr,ur,dr,hr,pr,mr;Zs=new WeakMap,Js=new WeakMap;class fr extends HTMLElement{constructor(){super(),er.add(this),tr.set(this,void 0),nr.set(this,void 0),or.set(this,void 0),ir.set(this,void 0),sr.set(this,void 0),rr.set(this,void 0),ar.set(this,void 0),lr.set(this,void 0),cr.set(this,void 0),ur.set(this,void 0),dr.set(this,{});const e=document.createElement("template");e.innerHTML='\n    <style>
3\n      .modal-content {\n        border-bottom: 1px solid #D9D9D9;\n        padding-bottom: 20px;\n        text-align: center;\n        margin: 0 20px;\n      }\n\n      .modal-content--small {\n        padding-bottom: 7px;\n      }\n\n      .modal-content.hide-divider {\n        border-bottom-color: transparent;\n      }\n\n      .modal-content-title {\n        font-size: 20px;\n        font-weight: 600;\n        line-height: 25px;\n        letter-spacing: -0.2px;\n        color: #000000;\n        margin-bottom: 8px;\n      }\n\n      .modal-content-description {\n        font-size: 14px;\n        font-weight: 400;\n        color: #0F1721;\n        letter-spacing: 0px;\n      }\n\n      .modal-content-processing {\n        min-height: 97px;\n        margin: 0 20px;\n      }\n\n      .modal-content-processing-user {\n        padding: 15px 0;\n        min-height: 15px;\n        font-size: 12px;\n        color: #0F1721;\n        overflow: hidden;\n        text-overflow: ellipsis;\n        white-space: nowrap;\n        -webkit-font-smoothing: antialiased;\n        -webkit-text-size-adjust: 100%;\n        font-family: -apple-system, BlinkMacSystemFont, San Francisco, Roboto, Segoe UI, Helvetica Neue, sans-serif !important;\n      }\n\n      .modal-content-disclaimer {\n        font-size: 12px;\n        line-height: 1.4;\n        text-align: center;\n        color: rgb(63, 69, 77);\n        padding: 8px 0 5px;\n        margin: 0 20px;\n      }
3\n\n      @media (forced-colors: active) {\n        .modal-content.hide-divider {\n          border-bottom: none;\n        }\n      }\n\n      .hidden {\n        display: none;\n      }\n    </style>\n    <div class="modal-content hidden">\n      <h2 class="modal-content-title hidden"></h2>\n      <div class="modal-content-description hidden"></div>\n    </div>\n    <div class="modal-content-content hidden">\n      <div class="modal-content-processing hidden">\n        <div class="modal-content-processing-user"></div>\n        <div class="modal-content-processing-status"></div>\n      </div>\n      <div class="modal-content-children hidden">\n        <slot></slot>\n      </div>\n      <div class="modal-content-disclaimer hidden"></div>\n    </div>\n  ',u(this,tr,this.attachShadow({mode:"open"}),"f"),c(this,tr,"f").appendChild(e.content.cloneNode(!0)),u(this,nr,c(this,tr,"f").querySelector(".modal-content"),"f"),u(this,or,c(this,tr,"f").querySelector(".modal-content-title"),"f"),u(this,ir,c(this,tr,"f").querySelector(".modal-content-description"),"f"),u(this,sr,c(this,tr,"f").querySelector(".modal-content-content"),"f"),u(this,rr,c(this,tr,"f").querySelector(".modal-content-processing"),"f"),u(this,ar,c(this,tr,"f").querySelector(".modal-content-processing-user"),"f"),u(this,cr,c(this,tr,"f").querySelector(".modal-content-children"),"f"),u(this,ur,c(this,tr,"f").querySelector(".modal-content-disclaimer"),"f")}hideDivider(){c(this,nr,"f").classList.add("hide-divider")}showDivider(){c(this,nr,"f").classList.remove("hide-divider")}update(e){u(this,dr,Object.assign(Object.assign({},c(this,dr,"f")),e),"f"),c(this,er,"m",hr).call(this),c(this,er,"m",pr).call(this),c(this,er,"m",mr).call(this)}}function gr(e,t=!1){const n=document.createElement("modal-content");return t&&n.hideDivider(),n.update(e),n}var vr,_r,br,yr,wr,kr,Cr,Sr,xr,Er,Ar,Tr,Pr;tr=new WeakMap,nr=new WeakMap,or=new WeakMap,ir=new WeakMap,sr=new WeakMap,rr=new WeakMap,ar=new WeakMap,lr=new WeakMap,cr=new WeakMap,ur=new WeakMap,dr=new WeakMap,er=new WeakSet,hr=function(){const{title:e,description:t,authorizeState:n}=c(this,dr,"f"),o=e||t;c(this,nr,"f").classList.toggle("hidden",!o),c(this,or,"f").classList.toggle("hidden",!e),c(this,ir,"f").classList.toggle("hidden",!t),c(this,or,"f").textContent=e||"",c(this,ir,"f").textContent=t||"",n&&(c(this,nr,"f").classList.toggle("hide-divider",n===Yn.Start),c(this,nr,"f").classList.toggle("modal-content--small",n===Yn.Start))},pr=function(){var e;const{authorizeState:t,status:n,email:o}=c(this,dr,"f"),i=Boolean(t||n),s=Boolean(n&&o),r=Boolean(i&&!s);if(c(this,sr,"f").classList.toggle("hidden",!i),c(this,rr,"f").classList.toggle("hidden",!s),c(this,cr,"f").classList.toggle("hidden",!r),!c(this,lr,"f")&&s){const n=t===Yn.OneClick?Mi.Branded:Mi.Regular;u(this,lr,ji(n),"f"),c(this,rr,"f").appendChild(c(this,lr,"f")),null===(e=c(this,lr,"f"))||void 0===e||e.setStatus({status:"loading",message:""})}c(this,ar,"f").textContent=o||""},mr=function(){const{disclaimer:e}=c(this,dr,"f"),t=Boolean(e);c(this,ur,"f").classList.toggle("hidden",!t),c(this,ur,"f").textContent=e||""},customElements.get("modal-content")||customElements.define("modal-content",fr);const Mr="following";class Lr extends HTMLElement{constructor(){super(),vr.add(this),_r.set(this,null),br.set(this,null),yr.set(this,null),wr.set(this,null),kr.set(this,null),Cr.set(this,null),Sr.set(this,null),xr.set(this,0),Er.set(this,0),customElements.get("shop-logo")||customElements.define("shop-logo",xo)}connectedCallback(){var e,t,n,i;return o(this,void 0,void 0,(function*(){yield c(this,vr,"m",Ar).call(this);const o=document.createElement("template");if(o.innerHTML=`\n    <style>\n      @keyframes followBackground {\n        0% {\n          width: 100%;\n          height: 100%;\n          transform: scaleY(1);\n        }\n\n        25% {\n          transform: scaleY(1);\n        }\n\n        50% {\n          transform: scaleY(1.2);\n        }\n\n        100% {\n          transform: scaleY(1);\n          width: 37px;\n          height: 37px;\n        }\n      }\n\n      :host {\n        display: inline-block;\n        line-height: normal;\n\n        --following-text-color: #000000;\n        --border-color: #5433EB;\n        --border-hover-color: #7f68e9;\n        --parent-width: var(--reserved-width, 177px);\n\n        /* Reserve width to prevent layout shifts */\n        width: var(--parent-width);\n      }\n\n      .button {\n        border: none;\n        margin: 0;\n        padding: 0;\n        overflow: visible;\n        isolation: isolate;\n\n        background: transparent;\n        color: #ffffff;\n        font: 16px/19px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica;\n\n        line-height: normal;\n\n        -webkit-font-smoothing: inherit;\n        -moz-osx-font-smoothing: inherit;\n\n        -webkit-appearance: none;\n        position: relative;\n        display: inline-block;\n        align-items: center;\n\n        height: 37px;\n        width: var(--button-width, 100%);\n        border-radius: 48px;\n      }\n\n      .button:focus {\n        outline: none;\n      }\n\n      .button--dark {\n        --following-text-color: #ffffff;\n      }\n\n      .button--bordered {\n        --border-color: #EDEDED;\n        --border-hover-color: #EDEDED;\n      }\n\n      .follow-icon-wrapper {\n        display: flex;\n        align-items: center;\n        width: auto;\n        position: relative;\n        z-index: 1;\n        top: 0;\n        left: 0;\n      }\n\n      .follow-icon-wrapper:before {\n        content: '';\n        background: #5433EB;\n        border-radius: 48px;\n        width: 100%;\n        height: 100%;\n        top: 0;\n        left: 0;\n        position: absolute;\n        z-index: -1;\n        transform-origin: center;\n        box-sizing: border-box;\n        border: 1px solid var(--border-color);\n      }\n\n      .button:not(.button--following):focus .follow-icon-wrapper:before,\n      .button:not(.button--following):hover .follow-icon-wrapper:before {\n        background: #7f68e9;\n        border-color: var(--border-hover-color);\n      }\n\n      .follow-icon-wrapper heart-icon {\n        position: absolute;\n        top: 11px;\n        left: 12px;\n      }\n\n      .follow-text,\n      .following-text {\n        white-space: nowrap;\n        padding: 9px 11px 9px 35px;\n        cursor: pointer;\n      }\n\n      .follow-text shop-logo,\n      .following-text shop-logo {\n        position: relative;\n        top: 3px;\n        padding-left: 1px;\n      }\n\n      .following-text {\n        opacity: 0;\n        pointer-events: none;\n        color: var(--following-text-color);\n        padding: 9px 8px 9px 43px;\n        position: absolute;\n        top: 0;\n        left: 0;\n        box-sizing: border-box;\n        overflow: hidden;\n        max-width: var(--button-width);\n      }\n\n      .following-icon {\n        opacity: 0;\n      }\n\n      .button--following .follow-icon-wrapper:before {\n        position: absolute;\n        width: 37px;\n        height: 37px;\n        padding: 0;\n      }\n\n      .button--following:focus,\n      .button--following:hover {\n        background: rgb(217 217 217 / 0.2);\n      }\n\n      .button--following .follow-text,\n      .button--following .follow-icon {\n        opacity: 0;\n      }\n\n      .button--following .following-text {\n        opacity: 1;\n        width: auto;\n        pointer-events: auto;\n      }\n\n      .button--following .following-icon {\n        opacity: 1;\n      }\n\n      .button--following .follow-icon-wrapper heart-icon {\n        transform: translateX(-1.5px);\n      }\n\n      @media (prefers-reduced-motion: no-preference) {\n        .button--animating {\n          transition: 400ms width cubic-bezier(0.45, 0, 0.15, 1);\n        }\n\n        .button--animating .follow-text {\n          transition: 200ms opacity cubic-bezier(0.45, 0, 1, 1);\n        }\n\n        .button--animating .following-text {\n          transition: 200ms opacity cubic-bezier(0, 0, 0.15, 1);\n          transition-delay: 0.2s;\n        }\n\n        .button--animating.button--following .follow-icon-wrapper:before {\n          animation: followBackgroun
3d 0.4s cubic-bezier(0.45, 0, 0.15, 1);\n        }\n\n        .button--animating.button--following .follow-icon-wrapper heart-icon {\n          transition: 400ms transform cubic-bezier(0.45, 0, 0.15, 1);\n        }\n      }\n    </style>\n    <button class="button">\n      <span class="follow-icon-wrapper">\n        <span class="follow-text">\n          <slot name="follow-text">\n            Follow on ${jr("white")}\n          </slot>\n        </span>\n      </span>\n\n      <span class="following-text" aria-hidden="true">\n        <slot name="following-text">\n          Following on ${jr("black")}\n        </slot>\n      </span>\n    </button>\n  `,u(this,_r,this.attachShadow({mode:"open"}),"f"),c(this,_r,"f").appendChild(o.content.cloneNode(!0)),c(this,Sr,"f")){const e=c(this,Sr,"f").translate("follow_on_shop.follow",{shop:jr("white")}),t=c(this,Sr,"f").translate("follow_on_shop.following",{shop:jr("black")});c(this,_r,"f").querySelector('slot[name="follow-text"]').innerHTML=e,c(this,_r,"f").querySelector('slot[name="following-text"]').innerHTML=t}u(this,br,c(this,_r,"f").querySelector(".button"),"f"),u(this,yr,c(this,br,"f").querySelector(".follow-icon-wrapper"),"f"),u(this,kr,null===(e=c(this,_r,"f"))||void 0===e?void 0:e.querySelector("span.follow-text"),"f"),u(this,Cr,null===(t=c(this,_r,"f"))||void 0===t?void 0:t.querySelector("span.following-text"),"f"),u(this,wr,So(),"f"),c(this,yr,"f").prepend(c(this,wr,"f")),u(this,xr,(null===(n=c(this,_r,"f").querySelector(".follow-text"))||void 0===n?void 0:n.scrollWidth)||0,"f"),u(this,Er,(null===(i=c(this,_r,"f").querySelector(".following-text"))||void 0===i?void 0:i.scrollWidth)||0,"f"),this.style.setProperty("--reserved-width",`${Math.max(c(this,xr,"f"),c(this,Er,"f"))}px`),this.style.setProperty("--button-width",`${c(this,xr,"f")}px`),this.hasAttribute(Mr)&&this.setFollowing(!0),c(this,vr,"m",Tr).call(this)}))}setFollowing(e=!1){var t,n,o,i,s;null===(t=c(this,br,"f"))||void 0===t||t.classList.toggle("button--animating",!e),null===(n=c(this,br,"f"))||void 0===n||n.classList.toggle("button--following"),null!==c(this,kr,"f")&&null!==c(this,Cr,"f")&&(c(this,kr,"f").ariaHidden="true",c(this,Cr,"f").ariaHidden="false"),this.style.setProperty("--button-width",`${c(this,Er,"f")}px`),window.matchMedia("(prefers-reduced-motion: reduce)").matches||e?null===(o=c(this,wr,"f"))||void 0===o||o.setFilled():null===(s=null===(i=c(this,br,"f"))||void 0===i?void 0:i.querySelector(".follow-text"))||void 0===s||s.addEventListener("transitionend",(()=>{var e;null===(e=c(this,wr,"f"))||void 0===e||e.setFilled()}))}setFocused(){var e;null===(e=c(this,br,"f"))||void 0===e||e.focus()}}function jr(e){return`<shop-logo role="img" color=${e} size="15" style="display: inline-flex;" aria-label="Shop"></shop-logo>`}var Or,Ir,Nr,zr,Dr,Rr,Br,Fr,Ur,$r;_r=new WeakMap,br=new WeakMap,yr=new WeakMap,wr=new WeakMap,kr=new WeakMap,Cr=new WeakMap,Sr=new WeakMap,xr=new WeakMap,Er=new WeakMap,vr=new WeakSet,Ar=function(){return o(this,void 0,void 0,(function*(){try{const e=mi.getDefaultLanguage(),t=yield function(e){switch(e){case"../translations/bg-BG.json":return Promise.resolve().then((function(){return Vu}));case"../translations/cs.json":return Promise.resolve().then((function(){return Ju}));case"../translations/da.json":return Promise.resolve().then((function(){return td}));case"../translations/de.json":return Promise.resolve().then((function(){return rd}));case"../translations/el.json":return Promise.resolve().then((function(){return dd}));case"../translations/en.json":return Promise.resolve().then((function(){return gd}));case"../translations/es.json":return Promise.resolve().then((function(){return wd}));case"../translations/fi.json":return Promise.resolve().then((function(){return Ed}));case"../translations/fr.json":return Promise.resolve().then((function(){return Ld}));case"../translations/hi.json":return Promise.resolve().then((function(){return zd}));case"../translations/hr-HR.json":return Promise.resolve().then((function(){return Ud}));case"../translations/hu.json":return Promise.resolve().then((function(){return Hd}));case"../translations/id.json":return Promise.resolve().then((function(){return Qd}));case"../translations/it.json":return Promise.resolve().then((function(){return nh}));case"../translations/ja.json":return Promise.resolve().then((function(){return ah}));case"../translations/ko.json":return Promise.resolve().then((function(){return hh}));case"../translations/lt-LT.json":return Promise.resolve().then((function(){return vh}
3));case"../translations/ms.json":return Promise.resolve().then((function(){return kh}));case"../translations/nb.json":return Promise.resolve().then((function(){return Ah}));case"../translations/nl.json":return Promise.resolve().then((function(){return jh}));case"../translations/pl.json":return Promise.resolve().then((function(){return Dh}));case"../translations/pt-BR.json":return Promise.resolve().then((function(){return $h}));case"../translations/pt-PT.json":return Promise.resolve().then((function(){return Kh}));case"../translations/ro-RO.json":return Promise.resolve().then((function(){return Yh}));case"../translations/ru.json":return Promise.resolve().then((function(){return op}));case"../translations/sk-SK.json":return Promise.resolve().then((function(){return lp}));case"../translations/sl-SI.json":return Promise.resolve().then((function(){return pp}));case"../translations/sv.json":return Promise.resolve().then((function(){return _p}));case"../translations/th.json":return Promise.resolve().then((function(){return Cp}));case"../translations/tr.json":return Promise.resolve().then((function(){return Tp}));case"../translations/vi.json":return Promise.resolve().then((function(){return Op}));case"../translations/zh-CN.json":return Promise.resolve().then((function(){return Rp}));case"../translations/zh-TW.json":return Promise.resolve().then((function(){return Wp}));default:return new Promise((function(t,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}}(`../translations/${e}.json`);u(this,Sr,new mi({[e]:t}),"f")}catch(e){e instanceof Error&&pe(e)}return null}))},Tr=function(){var e,t;const n=c(this,vr,"m",Pr).call(this),o=ao(n,"#ffffff")>ao(n,"#000000"),i=ao(n,"#5433EB")<=3.06;if(null===(e=c(this,br,"f"))||void 0===e||e.classList.toggle("button--dark",o),null===(t=c(this,br,"f"))||void 0===t||t.classList.toggle("button--bordered",i),o&&c(this,Sr,"f")){const e=c(this,Sr,"f").translate("follow_on_shop.following",{shop:jr("white")});c(this,_r,"f").querySelector('slot[name="following-text"]').innerHTML=e}},Pr=function(){var e;const t=null===(e=window.getComputedStyle(this).getPropertyValue("--color-background"))||void 0===e?void 0:e.trim();if(t)return t;for(const e of function*(e){let t=e;for(;t;){if(t.parentElement)t=t.parentElement;else if(t instanceof ShadowRoot)t=t.host;else{if(!(t instanceof Element))break;{const e=t.getRootNode();if(!(e instanceof ShadowRoot))break;t=e.host}}if(yield t,t===document.body)break}}(this)){const t=window.getComputedStyle(e).getPropertyValue("background-color");if(t&&"rgba(0, 0, 0, 0)"!==t)return t}return"#ffffff"},customElements.get("follow-on-shop-button")||customElements.define("follow-on-shop-button",Lr);const Wr="store-logo";class qr extends HTMLElement{constructor(){super(),Or.add(this),Ir.set(this,void 0),Nr.set(this,void 0),zr.set(this,void 0),Dr.set(this,void 0),Rr.set(this,void 0),Br.set(this,void 0),Fr.set(this,""),Ur.set(this,"");const e=document.createElement("template");e.innerHTML=`\n    <style>\n      @keyframes heartBeat {\n        0% {\n          transform: scale(1);\n        }\n\n        25% {\n          transform: scale(1.12);\n        }\n\n        50% {\n          transform: scale(0.9);\n        }\n\n        70% {\n          transform: scale(1);\n        }\n      }\n\n      :host {\n        display: flex;\n        justify-content: center;\n        font-family: -apple-system,San Francisco,Roboto,Segoe UI,Helvetica Neue,sans-serif !important;\n      }\n\n      .store-logo {\n        display: inline-block;\n        position: relative;\n      }\n\n      .store-logo-logo-wrapper {\n        width: 58px;\n        height: 58px;\n        border-radius: 100%;\n        background: linear-gradient(0deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.04)), #FFFFFF;\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        position: relative;\n        overflow: hidden;\n        box-sizing: border-box;\n      }\n\n      .store-logo-logo-wrapper--text {\n        background: ${oo.foregroundSecondary};\n      }\n\n      .store-logo-logo-wrapper--text img,\n      .store-logo-logo-wrapper--image span {\n        display: none;\n      }\n\n      .store-logo-logo-wrapper--text span,\n      .store-logo-logo-wrapper--image img {\n        display: block;\n      }\n\n      .store-logo-logo-wrapper img {\n        max-width: 100%;\n        max-height: 100%;\n        object-fit: contain;\n      }\n\n      .store-logo-icon-wrapper {\n        position: absolute;\n        top: -16px;\n        left: 28px;\n        width: 36px;\n        height: 36px;\n        border-radius: 100%;\n        background: rgba(40, 40, 40, 0.3);\n        /* Note: backdrop-filter has minimal browser support */\n        -webkit-backdrop-filter: blur(24px);\n        backdrop-filter: blur(24px);\n        display: flex;\n        justify-content: center;\n        align-items: center;\n        box-sizing: border-box;\n      }\n\n      .store-logo-text {\n        font-size: 28px;\n        line-height: 32px;\n        font-weight: 500;\n        color: ${oo.white};\n        text-transform: capitalize;\n      }\n\n      .store-logo--favorited .store-logo-icon-wrapper {\n        background: ${oo.brand};\n      }\n\n      @media (forced-colors: active) {\n        .store-logo-logo-wrapper--text,\n        .store-logo-icon-wrapper {\n          border: 1px solid;\n        }\n      }\n\n      @media (prefers-reduced-motion: no-preference) {\n        .store-logo-icon-wrapper {\n          transition: background 0.1s 0.75s cubic-bezier(0.45, 0, 0.15, 1);\n        }\n\n        .store-logo--favorited heart-icon {\n          transform-origin: center;\n          animation: 0.4s cubic-bezier(0.45, 0, 0.15, 1) 0.75s heartBeat;\n        }\n      }\n    </style>\n    <div class="store-logo">\n      <div class="store-logo-logo-wrapper">\n        <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z/C/HgAGgwJ/lK3Q6wAAAABJRU5ErkJggg==" alt="" class="store-logo-image">
3\n        <span class="store-logo-text"></span>\n      </div>\n      <div class="store-logo-icon-wrapper"></div>\n    </div>\n  `,u(this,Ir,this.attachShadow({mode:"open"}),"f"),c(this,Ir,"f").appendChild(e.content.cloneNode(!0)),u(this,Nr,c(this,Ir,"f").querySelector(".store-logo"),"f"),u(this,zr,c(this,Ir,"f").querySelector(".store-logo-logo-wrapper"),"f"),u(this,Dr,c(this,zr,"f").querySelector("img"),"f"),u(this,Rr,c(this,zr,"f").querySelector("span"),"f"),u(this,Br,So(),"f"),c(this,Ir,"f").querySelector(".store-logo-icon-wrapper").append(c(this,Br,"f"))}update({name:e,logoSrc:t}){u(this,Fr,e||c(this,Fr,"f"),"f"),u(this,Ur,t||c(this,Ur,"f"),"f"),c(this,Or,"m",$r).call(this)}connectedCallback(){c(this,Dr,"f").addEventListener("error",(()=>{u(this,Ur,"","f"),c(this,Or,"m",$r).call(this)}))}setFavorited(){return c(this,Nr,"f").classList.add("store-logo--favorited"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?(c(this,Br,"f").setFilled(),Promise.resolve()):new Promise((e=>{c(this,Br,"f").addEventListener("animationstart",(()=>{c(this,Br,"f").setFilled()})),c(this,Br,"f").addEventListener("animationend",(()=>{setTimeout(e,1e3)}))}))}}var Vr,Hr,Kr,Gr,Zr,Jr,Qr,Yr,Xr,ea,ta,na,oa,ia,sa,ra,aa,la,ca,ua,da,ha,pa,ma,fa,ga,va,_a,ba,ya,wa,ka,Ca,Sa,xa,Ea,Aa,Ta,Pa,Ma,La,ja,Oa,Ia;Ir=new WeakMap,Nr=new WeakMap,zr=new WeakMap,Dr=new WeakMap,Rr=new WeakMap,Br=new WeakMap,Fr=new WeakMap,Ur=new WeakMap,Or=new WeakSet,$r=function(){const e=c(this,Fr,"f"),t=c(this,Dr,"f").src;c(this,Rr,"f").textContent=e.charAt(0),c(this,Rr,"f").ariaLabel=e,c(this,Ur,"f")&&c(this,Ur,"f")!==t?(c(this,Dr,"f").src=c(this,Ur,"f"),c(this,Dr,"f").alt=e,c(this,zr,"f").classList.remove("store-logo-logo-wrapper--text"),c(this,zr,"f").classList.add("store-logo-logo-wrapper--image")):c(this,Ur,"f")||(c(this,zr,"f").classList.remove("store-logo-logo-wrapper--image"),c(this,zr,"f").classList.add("store-logo-logo-wrapper--text"))},customElements.get(Wr)||customElements.define(Wr,qr),function(e){e.Closed="closed",e.Mounting="mounting",e.Open="open"}(Ia||(Ia={}));const Na="shop_followed";class za extends no{constructor(){super(),Vr.add(this),Hr.set(this,void 0),Kr.set(this,G()),Gr.set(this,""),Zr.set(this,"2"),Jr.set(this,window.location.origin),Qr.set(this,new zn("shop-follow-button",c(this,Kr,"f"))),Yr.set(this,void 0),Xr.set(this,void 0),ea.set(this,!1),ta.set(this,null),na.set(this,void 0),oa.set(this,void 0),ia.set(this,void 0),sa.set(this,void 0),ra.set(this,void 0),aa.set(this,void 0),la.set(this,Ia.Closed),ca.set(this,void 0),ua.set(this,void 0),da.set(this,void 0),ha.set(this,null),customElements.get("sheet-modal")||customElements.define("sheet-modal",ai),u(this,Hr,this.attachShadow({mode:"open"}),"f"),u(this,ea,"true"===K(Na),"f")}static get observedAttributes(){return[vn,_n,bn]}attributeChangedCallback(e,t,n){switch(e){case _n:u(this,Zr,n,"f"),c(this,Vr,"m",ka).call(this);break;case vn:u(this,Gr,n,"f"),c(this,Vr,"m",ka).call(this);break;case bn:u(this,Jr,n,"f"),c(this,Vr,"m",xa).call(this)}}connectedCallback(){return o(this,void 0,void 0,(function*(){yield c(this,Vr,"m",pa).call(this),c(this,Vr,"m",ma).call(this),c(this,Vr,"m",fa).call(this)}))}disconnectedCallback(){var e,t;null===(e=c(this,oa,"f"))||void 0===e||e.destroy(),null===(t=c(this,Yr,"f"))||void 0===t||t.disconnect()}}var Da,Ra,Ba,Fa,Ua,$a,Wa,qa,Va,Ha,Ka,Ga,Za,Ja,Qa,Ya;Hr=new WeakMap,Kr=new WeakMap,Gr=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,Qr=new WeakMap,Yr=new WeakMap,Xr=new WeakMap,ea=new WeakMap,ta=new WeakMap,na=new WeakMap,oa=new WeakMap,ia=new WeakMap,sa=new WeakMap,ra=new WeakMap,aa=new WeakMap,la=new WeakMap,ca=new WeakMap,ua=new WeakMap,da=new WeakMap,ha=new WeakMap,Vr=new WeakSet,pa=function(){return o(this,void 0,void 0,(function*(){try{const e=mi.getDefaultLanguage(),t=yield function(e){switch(e){case"./translations/bg-BG.json":return Promise.resolve().then((function(){return Vu}));case"./translations/cs.json":return Promise.resolve().then((function(){return Ju}));case"./translations/da.json":return Promise.resolve().then((function(){return td}));case"./translations/de.json":return Promise.resolve().then((function(){return rd}));case"./translations/el.json":return Promise.resolve().then((function(){return dd}));case"./translations/en.json":return Promise.resolve().then((function(){return gd}));case"./translations/es.json":return Promise.resolve().then((function(){return wd}
3));case"./translations/fi.json":return Promise.resolve().then((function(){return Ed}));case"./translations/fr.json":return Promise.resolve().then((function(){return Ld}));case"./translations/hi.json":return Promise.resolve().then((function(){return zd}));case"./translations/hr-HR.json":return Promise.resolve().then((function(){return Ud}));case"./translations/hu.json":return Promise.resolve().then((function(){return Hd}));case"./translations/id.json":return Promise.resolve().then((function(){return Qd}));case"./translations/it.json":return Promise.resolve().then((function(){return nh}));case"./translations/ja.json":return Promise.resolve().then((function(){return ah}));case"./translations/ko.json":return Promise.resolve().then((function(){return hh}));case"./translations/lt-LT.json":return Promise.resolve().then((function(){return vh}));case"./translations/ms.json":return Promise.resolve().then((function(){return kh}));case"./translations/nb.json":return Promise.resolve().then((function(){return Ah}));case"./translations/nl.json":return Promise.resolve().then((function(){return jh}));case"./translations/pl.json":return Promise.resolve().then((function(){return Dh}));case"./translations/pt-BR.json":return Promise.resolve().then((function(){return $h}));case"./translations/pt-PT.json":return Promise.resolve().then((function(){return Kh}));case"./translations/ro-RO.json":return Promise.resolve().then((function(){return Yh}));case"./translations/ru.json":return Promise.resolve().then((function(){return op}));case"./translations/sk-SK.json":return Promise.resolve().then((function(){return lp}));case"./translations/sl-SI.json":return Promise.resolve().then((function(){return pp}));case"./translations/sv.json":return Promise.resolve().then((function(){return _p}));case"./translations/th.json":return Promise.resolve().then((function(){return Cp}));case"./translations/tr.json":return Promise.resolve().then((function(){return Tp}));case"./translations/vi.json":return Promise.resolve().then((function(){return Op}));case"./translations/zh-CN.json":return Promise.resolve().then((function(){return Rp}));case"./translations/zh-TW.json":return Promise.resolve().then((function(){return Wp}));default:return new Promise((function(t,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}}(`./translations/${e}.json`);u(this,ha,new mi({[e]:t}),"f")}catch(e){e instanceof Error&&pe(e)}return null}))},ma=function(){u(this,Xr,function(e){const t=document.createElement("follow-on-shop-button");return e&&t.setAttribute(Mr,""),t}(c(this,ea,"f")),"f"),c(this,Hr,"f").innerHTML="<style>\n  :host {\n    display:inline-block;\n    font-family: -apple-system,San Francisco,Roboto,Segoe UI,Helvetica Neue,sans-serif !important;\n    font-style: normal !important;\n    line-height:normal;\n  }\n  iframe {\n    border:none;\n    height:0;\n    width:100%;\n  }\n  store-logo {\n    margin: 16px 0 29px;\n  }\n\n  .hidden {\n    display: none;\n  }\n\n  @media screen and (min-width: 431px) {\n    store-logo {\n      margin-top: 38px;\n    }\n  }\n  </style>",c(this,Hr,"f").appendChild(c(this,Xr,"f"))},fa=function(){var e;c(this,Vr,"m",Ea).call(this,c(this,ea,"f")),c(this,Vr,"m",Aa).call(this),c(this,Vr,"m",xa).call(this),null===(e=c(this,Xr,"f"))||void 0===e||e.addEventListener("click",(()=>{c(this,ea,"f")?(c(this,Qr,"f").trackFollowingGetAppButtonPageImpression(c(this,Zr,"f")),X()?c(this,Vr,"m",va).call(this):c(this,Vr,"m",wa).call(this)):(c(this,Qr,"f").trackFollowButtonClicked(c(this,Zr,"f")),c(this,Vr,"m",ga).call(this))}))},ga=function(){c(this,sa,"f")?c(this,sa,"f").open():(u(this,ra,c(this,Vr,"m",_a).call(this),"f"),u(this,aa,gr({}),"f"),c(this,aa,"f").append(c(this,Vr,"m",ba).call(this)),u(this,sa,document.createElement("sheet-modal"),"f"),c(this,sa,"f").appendChild(c(this,ra,"f")),c(this,sa,"f").appendChild(c(this,aa,"f")),c(this,sa,"f").addEventListener("modalcloserequest",c(this,Vr,"m",ja).bind(this)),c(this,Hr,"f").appendChild(c(this,sa,"f")),u(this,la,Ia.Mounting,"f"))},va=function(){var e,t,n;return o(this,void 0,void 0,(function*(){if(!c(this,ca,"f")){u(this,ca,document.createElement("sheet-modal"),"f"),c(this,ca,"f").setAttribute("disable-popup","true");const i=yield c(this,Vr,"m",Ta).call(this),s=null!==(e=null==i?void 0:i.name)&&void 0!==e?e:"the store",r=null===(t=c(this,ha,"f"))||void 0===t?void 0:t.translate("follow_on_shop.following_modal.title",{store:s}),a=null===(n=c(this,ha,"f"))||void 0===n?void 0:n.translate("follow_on_shop.following_modal.subtitle");
3u(this,ua,gr({title:r,description:a},!0),"f"),c(this,ca,"f").appendChild(c(this,ua,"f")),c(this,ca,"f").appendChild(yield c(this,Vr,"m",ya).call(this)),c(this,ca,"f").addEventListener("modalcloserequest",(()=>o(this,void 0,void 0,(function*(){var e;c(this,ca,"f")&&(yield c(this,ca,"f").close()),null===(e=c(this,Xr,"f"))||void 0===e||e.setFocused()})))),c(this,Hr,"f").appendChild(c(this,ca,"f")),r&&c(this,ca,"f").setAttribute("title",r)}c(this,ca,"f").open(),c(this,Qr,"f").trackFollowingGetAppButtonPageImpression(c(this,Zr,"f"))}))},_a=function(){const e=document.createElement(Wr);return c(this,Vr,"m",Ta).call(this).then((t=>{e.update({name:(null==t?void 0:t.name)||"",logoSrc:(null==t?void 0:t.id)?`https://shop.app/shops/${t.id}/logo?width=58`:""})})).catch((()=>{})),e},ba=function(){var e;u(this,na,document.createElement("iframe"),"f"),c(this,na,"f").tabIndex=0,c(this,Vr,"m",ka).call(this);const t=(null===(e=this.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0;return u(this,oa,new Un(new Kn(c(this,na,"f")),[Wn,qn,c(this,Jr,"f")],c(this,Vr,"m",Oa).bind(this),t),"f"),H(c(this,na,"f"),"allow","publickey-credentials-get *"),c(this,na,"f")},ya=function(){var e,t;return o(this,void 0,void 0,(function*(){const n=document.createElement("div"),i=yield c(this,Vr,"m",Ta).call(this),s=null==i?void 0:i.id,r=null!==(t=null===(e=c(this,ha,"f"))||void 0===e?void 0:e.translate("follow_on_shop.following_modal.continue",{defaultValue:"Continue"}))&&void 0!==t?t:"",a=s?`https://shop.app/sid/${s}`:"#";return n.innerHTML=((e,t)=>`<style>\n  .fos-get-app-button {\n    color: #fff;\n    font-size: 16px;\n    display: flex;\n    justify-content: center;\n    background: #5433EB;\n    border-radius: 6px;\n    align-items: center;\n    padding: 12px;\n    text-decoration: none;\n    color: #ffffff;\n    line-height: 24px;\n  }</style><a href="${e}" class="fos-get-app-button">${t}</a>`)(a,r),n.addEventListener("click",(()=>o(this,void 0,void 0,(function*(){var e;c(this,Qr,"f").trackFollowingGetAppButtonClicked(c(this,Zr,"f")),null===(e=c(this,ca,"f"))||void 0===e||e.close()})))),n}))},wa=function(){var e,t,n,i,s,r,a;return o(this,void 0,void 0,(function*(){if(!c(this,da,"f")){u(this,da,document.createElement("div"),"f"),c(this,da,"f").classList.add("fos-tooltip","fos-tooltip-hidden");const o=yield c(this,Vr,"m",Ta).call(this),l=null!==(e=null==o?void 0:o.name)&&void 0!==e?e:"the store",d=null!==(n=null===(t=c(this,ha,"f"))||void 0===t?void 0:t.translate("follow_on_shop.following_modal.qr_header",{store:l}))&&void 0!==n?n:"",h=null!==(s=null===(i=c(this,ha,"f"))||void 0===i?void 0:i.translate("follow_on_shop.following_modal.qr_alt_text"))&&void 0!==s?s:"",p=null==o?void 0:o.id,m=p?`https://shop.app/qr/sid/${p}`:"#";c(this,da,"f").innerHTML=((e,t,n)=>`\n<style>\n  .fos-tooltip {\n    position: relative;\n    display: flex;\n    left: -10px;\n  }\n\n  .fos-tooltip-popup {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    visibility: visible;\n    background-color: #fff;\n    text-align: center;\n    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.35);\n    border-radius: 14px;\n    position: absolute;\n    width: 220px;\n    bottom: 78px;\n    z-index: 2147483647 !important;\n  }\n\n  .fos-tooltip-popup::after {\n    content: " ";\n    position: absolute;\n    top: 100%; /* At the bottom of the tooltip */\n    left: 18px;\n    margin-left: -3px;\n    border-width: 13px;\n    border-style: solid;\n    border-color: white transparent transparent transparent;\n    transform: scale(1, 0.75) translateY(-7px);\n  }\n\n  .fos-tooltip-overlay {\n    position: fixed;\n    width: 100%;\n    height: 100%;\n    top: 0;\n    bottom: 0;\n    left: 0;\n    right: 0;\n    z-index: 2147483646 !important;\n    will-change: opacity, transform;\n  }\n\n  .fos-tooltip-text {\n    color: #000;\n    font-size: 16px;\n    line-height: 18px;\n    padding: 24px 24px 16px;\n    max-width: 100%;\n    overflow: hidden;\n    text-overflow: ellipsis;\n  }\n\n  .fos-tooltip-code-frame {\n    background: #ffffff;\n    forced-color-adjust: none;\n  }\n\n  .fos-tooltip-code {\n    width: 147px;\n    height: 147px;\n    display: block;\n  }\n\n  .fos-tooltip-shop-logo {\n    padding: 16px 0 24px 0;\n    display: flex;\n    justify-content: center;\n  }\n\n  .fos-tooltip-shop-logo shop-logo {\n    display: inline-flex;\n  }\n\n  .fos-tooltip-hidden {\n    height: 0 !important;\n    border: 0;\n    padding: 0;\n    margin: 0;\n    visibility: hidden;\n    overflow: hidden;\n  }\n\n  @media (forced-colors: active) {\n    .fos-tooltip-popup {\n      border: 1px solid;\n    }\n\n    .fos-tooltip-popup::after {\n      display: none;\n    }\n  }\n</style>\n<div class="fos-tooltip-overlay"></div>\n<div class="fos-tooltip-popup">\n    <div class="fos-tooltip-text">${e}</div>\n    <div class="fos-tooltip-code-frame">\n      <img src="${t}" class="fos-tooltip-code" alt="${n}"/>\n    </div>\n    <div class="fos-tooltip-shop-logo">\n      <shop-logo role="img" size="20" color="brand" label="Shop"/>\n    </div>\n  </div>\n`)(d,m,h),null===(r=c(this,da,"f").querySelector(".fos-tooltip-overlay"))||void 0===r||r.addEventListener("click",(()=>{var e;null===(e=c(this,da,"f"))||void 0===e||e.classList.toggle("fos-tooltip-hidden",!0)})),null===(a=c(this,da,"f"))||void 0===a||a.addEventListener("click",(()=>{var e;null===(e=c(this,da,"f"))||void 0===e||e.classList.toggle("fos-tooltip-hidden",!0)})),c(this,Hr,"f").appendChild(c(this,da,"f"))}c(this,da,"f").classList.toggle("fos-tooltip-hidden",!1)}))},ka=function(){if(c(this,na,"f")){const e={clientId:c(this,Gr,"f")},t=Ks({version:c(this,Zr,"f"),analyticsTraceId:c(this,Kr,"f"),flow:Qn.Follow,oauthParams:e});c(this,Vr,"m",Ca).call(this),H(c(this,na,"f"),"src",t),he("Iframe url updated",{authorizeUrl:t},"state")}}
3,Ca=function(){c(this,Vr,"m",Sa).call(this),u(this,ia,setTimeout((()=>{const e=gn;this.dispatchCustomEvent("error",{message:e.message,code:e.code}),pe(new Error("Pay failed to load within 10000ms.")),c(this,Vr,"m",Sa).call(this)}),fn),"f")},Sa=function(){c(this,ia,"f")&&(clearTimeout(c(this,ia,"f")),u(this,ia,void 0,"f"))},xa=function(){try{const e=new URL(c(this,Jr,"f"));if("https:"!==e.protocol||"/"!==e.pathname||e.hash||e.search)throw new Error("Invalid URL")}catch(e){$n(`Invalid storefront origin: ${c(this,Jr,"f")}`)}},Ea=function(e){c(this,Qr,"f").trackFollowButtonPageImpression(c(this,Zr,"f"),e)},Aa=function(){u(this,Yr,new IntersectionObserver((e=>{var t;for(const{isIntersecting:n}of e)n&&(null===(t=c(this,Yr,"f"))||void 0===t||t.disconnect(),c(this,Qr,"f").trackFollowButtonInViewport(c(this,Zr,"f")))})),"f"),c(this,Yr,"f").observe(c(this,Xr,"f"))},Ta=function(){return o(this,void 0,void 0,(function*(){return c(this,ta,"f")||u(this,ta,yield Z(c(this,Jr,"f")),"f"),c(this,ta,"f")}))},Pa=function({loggedIn:e,shouldFinalizeLogin:t}){var n,i,s,r;return o(this,void 0,void 0,(function*(){const o=new Date;o.setTime(o.getTime()+31536e6),document.cookie=`shop_followed=true;expires=${o.toUTCString()};path=/`,e&&t&&me(c(this,Jr,"f"),(e=>{pe(new Error(e))})),yield null===(n=c(this,ra,"f"))||void 0===n?void 0:n.setFavorited(),yield null===(i=c(this,sa,"f"))||void 0===i?void 0:i.close(),null===(s=c(this,oa,"f"))||void 0===s||s.destroy(),null===(r=c(this,Xr,"f"))||void 0===r||r.setFollowing(),u(this,ea,!0,"f"),c(this,Vr,"m",Ea).call(this,!0)}))},Ma=function(e,t,n){c(this,Vr,"m",Sa).call(this),this.dispatchCustomEvent("error",{code:e,message:t,email:n})},La=function({clientName:e,logoSrc:t}){return o(this,void 0,void 0,(function*(){(e||t)&&c(this,ra,"f").update({name:e,logoSrc:t}),c(this,la,"f")===Ia.Mounting&&(c(this,sa,"f").open(),u(this,la,Ia.Open,"f"),c(this,Vr,"m",Sa).call(this))}))},ja=function(){var e;return o(this,void 0,void 0,(function*(){c(this,sa,"f")&&(yield c(this,sa,"f").close()),null===(e=c(this,Xr,"f"))||void 0===e||e.setFocused()}))},Oa=function(e){var t,n,o,i;switch(e.type){case"loaded":c(this,Vr,"m",La).call(this,e);break;case"resize_iframe":c(this,na,"f").style.height=`${e.height}px`,c(this,na,"f").style.width=`${e.width}px`;break;case"completed":c(this,Vr,"m",Pa).call(this,e);break;case"error":c(this,Vr,"m",Ma).call(this,e.code,e.message,e.email);break;case"content":null===(t=c(this,sa,"f"))||void 0===t||t.setAttribute("title",e.title),null===(n=c(this,aa,"f"))||void 0===n||n.update(e),null===(o=c(this,ra,"f"))||void 0===o||o.classList.toggle("hidden",e.authorizeState===Yn.Captcha);break;case"processing_status_updated":null===(i=c(this,aa,"f"))||void 0===i||i.update(e);break;case"close_requested":c(this,Vr,"m",ja).call(this)}};class Xa extends HTMLElement{constructor(){super(),Da.add(this),Ra.set(this,null),Ba.set(this,null),customElements.get("shop-logo")||customElements.define("shop-logo",xo)}connectedCallback(){return o(this,void 0,void 0,(function*(){yield c(this,Da,"m",Fa).call(this);const e=document.createElement("template");if(e.innerHTML=`\n    <style>\n      :host {\n        display: inline-block;\n        line-height: normal;\n      }\n\n      /* TODO: Centralize styling of shop branded buttons: https://github.com/Shopify/shop-identity/issues/1252 */\n      .button {\n        border: none;\n        margin: 0;\n        padding: 0;\n        width: auto;\n        overflow: visible;\n\n        background: #5433EB;\n        border-radius: 4px;\n        color: #ffffff;\n        font: 16px/19px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica;\n\n        line-height: normal;\n\n        -webkit-font-smoothing: inherit;\n        -moz-osx-font-smoothing: inherit;\n\n        -webkit-appearance: none;\n        position: relative;\n        display: flex;\n        align-items: center;\n\n        transition: background-color 100ms ease-in-out, opacity 100ms ease-out, color 100ms ease-in-out;\n      }\n\n      .button:hover {\n        background: #7f68e9;\n      }\n\n      .login-text {\n        white-space: nowrap;\n        padding: 14px 45px;\n        cursor: pointer;\n      }\n\n      .login-text shop-logo {\n        position: relative;\n        top: 3px;\n      }\n    </style>\n    <button class="button">
3\n      <span class="login-text">\n        <slot name="login-text">\n          Login with ${el("white")}\n        </slot>\n      </span>\n    </button>\n  `,u(this,Ra,this.attachShadow({mode:"open"}),"f"),c(this,Ra,"f").appendChild(e.content.cloneNode(!0)),c(this,Ba,"f")){const e=c(this,Ba,"f").translate("login_with_shop.login",{shop:el("white")});c(this,Ra,"f").querySelector('slot[name="login-text"]').innerHTML=e}}))}setFocused(){var e,t;null===(t=null===(e=c(this,Ra,"f"))||void 0===e?void 0:e.querySelector("button"))||void 0===t||t.focus()}}function el(e){return`<shop-logo role="img" color=${e} size="15" style="display: inline-flex;"></shop-logo>`}Ra=new WeakMap,Ba=new WeakMap,Da=new WeakSet,Fa=function(){return o(this,void 0,void 0,(function*(){try{const e=mi.getDefaultLanguage(),t=yield function(e){switch(e){case"../translations/bg-BG.json":return Promise.resolve().then((function(){return Vu}));case"../translations/cs.json":return Promise.resolve().then((function(){return Ju}));case"../translations/da.json":return Promise.resolve().then((function(){return td}));case"../translations/de.json":return Promise.resolve().then((function(){return rd}));case"../translations/el.json":return Promise.resolve().then((function(){return dd}));case"../translations/en.json":return Promise.resolve().then((function(){return gd}));case"../translations/es.json":return Promise.resolve().then((function(){return wd}));case"../translations/fi.json":return Promise.resolve().then((function(){return Ed}));case"../translations/fr.json":return Promise.resolve().then((function(){return Ld}));case"../translations/hi.json":return Promise.resolve().then((function(){return zd}));case"../translations/hr-HR.json":return Promise.resolve().then((function(){return Ud}));case"../translations/hu.json":return Promise.resolve().then((function(){return Hd}));case"../translations/id.json":return Promise.resolve().then((function(){return Qd}));case"../translations/it.json":return Promise.resolve().then((function(){return nh}));case"../translations/ja.json":return Promise.resolve().then((function(){return ah}));case"../translations/ko.json":return Promise.resolve().then((function(){return hh}));case"../translations/lt-LT.json":return Promise.resolve().then((function(){return vh}));case"../translations/ms.json":return Promise.resolve().then((function(){return kh}));case"../translations/nb.json":return Promise.resolve().then((function(){return Ah}));case"../translations/nl.json":return Promise.resolve().then((function(){return jh}));case"../translations/pl.json":return Promise.resolve().then((function(){return Dh}));case"../translations/pt-BR.json":return Promise.resolve().then((function(){return $h}));case"../translations/pt-PT.json":return Promise.resolve().then((function(){return Kh}));case"../translations/ro-RO.json":return Promise.resolve().then((function(){return Yh}));case"../translations/ru.json":return Promise.resolve().then((function(){return op}));case"../translations/sk-SK.json":return Promise.resolve().then((function(){return lp}));case"../translations/sl-SI.json":return Promise.resolve().then((function(){return pp}));case"../translations/sv.json":return Promise.resolve().then((function(){return _p}));case"../translations/th.json":return Promise.resolve().then((function(){return Cp}));case"../translations/tr.json":return Promise.resolve().then((function(){return Tp}));case"../translations/vi.json":return Promise.resolve().then((function(){return Op}));case"../translations/zh-CN.json":return Promise.resolve().then((function(){return Rp}));case"../translations/zh-TW.json":return Promise.resolve().then((function(){return Wp}));default:return new Promise((function(t,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}}(`../translations/${e}.json`);u(this,Ba,new mi({[e]:t}),"f")}catch(e){e instanceof Error&&pe(e)}return null}))},customElements.get("login-with-shop-button")||customElements.define("login-with-shop-button",Xa);class tl extends no{constructor(){super(),Ua.add(this),$a.set(this,G()),Wa.set(this,""),qa.set(this,"2"),Va.set(this,window.location.origin),Ha.set(this,new Dn("shop-login-default",c(this,$a,"f"))),Ka.set(this,void 0),this._anchorSelector="",this._emailVerificationRequired=!1,this._hideButton=!1,this._disableSignUp=!1,this._autoOpen=!1,this._analyticsContext=pn.Default,this._usePayAltDomain=!1,this._iframeLoaded=!1,this._email="",this._authorizeModalOpened=!1,customElements.get("sheet-modal")||customElements.define("sheet-modal",ai),this._rootElement=this.attachShadow({mode:"open"}),this._debouncedUpdateEmail=Y((e=>{this._updateEmail(e),ge(e)&&c(this,Ha,"f").trackEmailEnteredAction(c(this,qa,"f"))}),200)}static get observedAttributes(){return[Nn,vn,_n,bn,yn,wn,kn,Sn,Cn,xn,En,An,Tn,Pn,Mn,Ln,jn,On,In]}attributeChangedCallback(e,t,n){var o;const i=Boolean(null!==n);switch(e){case _n:u(this,qa,n,"f"),this._updateSrc();break;case vn:u(this,Wa,n||"","f"),this._updateSrc();break;case An:this._responseType=n||"",this._updateSrc();break;case Tn:this._responseMode=n||"",this._updateSrc();break;case Pn:this._codeChallenge=n||"",this._updateSrc();break;case Mn:this._codeChallengeMethod=n||"",this._updateSrc();break;case Ln:this._state=n||"",this._updateSrc();break;case jn:this._scope=n||"",this._updateSrc();break;case bn:u(this,Va,n||window.location.origin,"f"),c(this,Ua,"m",Qa).call(this);break;case yn:this._emailVerificationRequired=i,this._updateSrc();break;case wn:this._hideButton=i,this._updateSrc();break;case On:this._usePayAltDomain=i,this._updateSrc();break;case kn:this._disableSignUp=i,this._updateSrc();break;case Sn:this._autoOpen=i;break;case Cn:u(this,Ka,n||void 0,"f");break;case xn:this._analyticsContext=n||pn.Default,this._updateMonorailTracker(),this._updateSrc();break;case En:u(this,$a,n||G(),"f"),this._updateMonorailTracker(),this._updateSrc();break;case In:this._initEmail(n||"");break;case Nn:this._anchorSelector=n||"",null===(o=this._authorizeModal)||void 0===o||o.setAttribute(Nn,this._anchorSelector)}}connectedCallback(){this._initElements(),this._initEvents()}_initElements(){this._rootElement.innerHTML="<style>\n  iframe {\n    border:none;\n    height:0;\n    width:100%;\n  }\n  </style>",this._hideButton||(this._continueButton=document.createElement("login-with-shop-button"),this._rootElement.appendChild(this._continueButton)),this._createAuthorizeModal()}_initEvents(){var e;c(this,Ua,"m",Qa).call(this),null===(e=this._continueButton)||void 0===e||e.addEventListener("click",(()=>{c(this,Ha,"f").trackLoginDefaultButtonClicked(c(this,qa,"f")),this._openAuthorizeModal()}))}_initEmail(e){this._email=e,ge(this._email)?this._debouncedUpdateEmail(this._email):this._debouncedUpdateEmail("")}disconnectedCallback(){var e,t;null===(e=this._iframeListener)||void 0===e||e.destroy(),null===(t=this._inputListener)||void 0===t||t.destroy()}requestShow(e){return o(this,void 0,void 0,(function*(){this._iframeLoaded||(pe(new Error("requestShow called before iframe loaded")),yield this._payLoaded),this._authorizeModalOpened?pe(new Error("requestShow called when the modal is not closed")):(e&&this._updateEmail(e),this._openAuthorizeModal())}))}listenToInput(e){this._inputListener&&this._inputListener.destroy();const t=Y((e=>{ge(e)?(this._updateEmail(e),c(this,Ha,"f").trackEmailEnteredAction(c(this,qa,"f"))):this._updateEmail("")}),200);t(e.value),this._inputListener=new m(e,t)}_createAuthorizeModal(){this._authorizeModal||(this._authorizeModal=document.createElement("sheet-modal"),this._authorizeModal.setAttribute(Nn,this._anchorSelector),this._authorizeModal.setAttribute(En,c(this,$a,"f")),this._authorizeModal.appendChild(c(this,Ua,"m",Ga).call(this)),this._authorizeModal.addEventListener("modalcloserequest",this._closeAuthorizeModal.bind(this)),this._rootElement.appendChild(this._authorizeModal))}_openAuthorizeModal(){return o(this,void 0,void 0,(function*(){yield this._payLoaded,this._authorizeModalOpened||(this._authorizeModalOpened=!0,this._authorizeModal.open(),c(this,Ha,"f").trackPageImpression({shopLoginVersion:c(this,qa,"f"),page:sn.AuthorizeModal}))}))}_closeAuthorizeModal(){var e;return o(this,void 0,void 0,(function*(){this._authorizeModal&&(yield this._authorizeModal.close(),this._authorizeModalOpened=!1),null===(e=this._continueButton)||void 0===e||e.setFocused()}))}_updateEmail(e){var t,n;return o(this,void 0,void 0,(function*(){if(!this._authorizeModalOpened){this._updateEmailAbortController&&!(null===(t=this._updateEmailAbortController)||void 0===t?void 0:t.signal.aborted)&&this._updateEmailAbortController.abort(),this._updateEmailAbortController=new AbortController;try{const t=this._iframeLoaded,{userFound:i}=yield this._payLoaded;if(!t&&i&&this._autoOpen)return;null===(n=this._iframeMessenger)||void 0===n||n.postMessage({type:"emailsubmitted",email:e,hideChange:e.length>0});const s=this._iframeListener.waitForMessage("shop_user_matched",this._updateEmailAbortController.signal),r=new Promise(((e,t)=>{const n=()=>o(this,void 0,void 0,(function*(){try{const{code:t}=yield this._iframeListener.waitForMessage("error",this._updateEmailAbortController.signal);t===Xn.CaptchaChallenge?e(void 0):n()}catch(e){t(e)}}));n()}));yield Promise.race([s,r]),this._openAuthorizeModal(),this._updateEmailAbortController.abort()}catch(e){}}}))}_updateSrc(){if(this._iframe){const e={clientId:c(this,Wa,"f"),responseType:this._responseType,responseMode:this._responseMode,redirectUri:c(this,Ka,"f"),codeChallenge:this._codeChallenge,codeChallengeMethod:this._codeChallengeMethod,state:this._state,scope:this._scope},t=Ks(Object.assign(Object.assign({version:c(this,qa,"f"),analyticsTraceId:c(this,$a,"f"),analyticsContext:this._analyticsContext,flow:Qn.Default,emailVerificationRequired:this._emailVerificationRequired,signUpEnabled:!this._disableSignUp},"1"===c(this,qa,"f")&&c(this,Wa,"f")&&{oauthParams:e}),{usePayAltDomain:this._usePayAltDomain}));if(!t)return;c(this,Ua,"m",Za).call(this),H(this._iframe,"src",t),he("Iframe url updated",{authorizeUrl:t},"state")}}_updateMonorailTracker(){u(this,Ha,new Dn("shop-login-default",c(this,$a,"f"),this._analyticsContext),"f")}_handleResizeIframe(e,t){this._iframe.style.height=`${e}px`,this._iframe.style.width=`${t}px`}_handleCompleted(e,t,n,i,s){var r,a;return o(this,void 0,void 0,(function*(){if(e&&s&&(yield me(c(this,Va,"f"),pe)),this._authorizeModal.close(),null===(r=this._iframeListener)||void 0===r||r.destroy(),null===(a=this._inputListener)||void 0===a||a.destroy(),this.dispatchCustomEvent("completed",{loggedIn:e,email:t,customerAccessToken:n,customerAccessTokenExpiresAt:i}),c(this,Ka,"f"))try{let e=c(this,Ka,"f");if(c(this,$a,"f")){const t={analytics_trace_id:c(this,$a,"f")},n=new URLSearchParams(t);e=e.concat(`?${n.toString()}`)}else pe(new Error("Missing analytics trace ID when redirecting to account page"));window.location.assign(e)}catch(e){e instanceof Error&&pe(e)}}))}_handleError(e,t){this.dispatchCustomEvent("error",{message:e,code:t}),pe(new Error(`Authorize Error: ${e} (${t}).`)),c(this,Ua,"m",Ja).call(this)}}$a=new WeakMap,Wa=new WeakMap,qa=new WeakMap,Va=new WeakMap,Ha=new WeakMap,Ka=new WeakMap,Ua=new WeakSet,Ga=function(){var e;this._iframe=document.createElement("iframe"),this._iframe.tabIndex=0,this._updateSrc(),H(this._iframe,"allow","publickey-credentials-get *");const t=(null===(e=this.ownerDocument)||void 0===e?void 0:e.defaultView)||void 0;return this._iframeListener=new Un(new Kn(this._iframe),[Wn,qn,c(this,Va,"f")],c(this,Ua,"m",Ya).bind(this),t),this._iframeMessenger=new Hn(this._iframe),this._payLoaded=this._iframeListener.waitForMessage("loaded"),this._payLoaded.then((({userFound:e})=>{var t;this._iframeLoaded=!0,c(this,Ua,"m",Ja).call(this),e&&this._autoOpen&&(null===(t=this._updateEmailAbortController)||void 0===t||t.abort(),this._openAuthorizeModal())})),this._iframe},Za=function(){c(this,Ua,"m",Ja).call(this),this._iframeLoadTimeout=setTimeout((()=>{const e=gn;this.dispatchCustomEvent("error",{message:e.message,code:e.code}),pe(new Error("Pay failed to load within 10000ms.")),c(this,Ua,"m",Ja).call(this)}),fn)},Ja=function(){this._iframeLoadTimeout&&(clearTimeout(this._iframeLoadTimeout),this._iframeLoadTimeout=void 0)},Qa=function(){try{const e=new URL(c(this,Va,"f"));if("https:"!==e.protocol||"/"!==e.pathname||e.hash||e.search)throw new Error("Invalid URL")}catch(e){$n(`Invalid storefront origin: ${c(this,Va,"f")}`)}},Ya=function(e){switch(e.type){case"resize_iframe":this._handleResizeIframe(e.height,e.width);break;case"completed":this._handleCompleted(e.loggedIn,e.email,e.customerAccessToken,e.customerAccessTokenExpiresAt,e.shouldFinalizeLogin);break;case"error":this._handleError(e.message,e.code);break;case"close_requested":this._closeAuthorizeModal()}};
3class nl extends HTMLElement{constructor(){super();const e=document.createElement("template"),t=this.getAttribute("size")||"",n=this.getAttribute("background-color")||"#FFF";e.innerHTML=function(e,t){const n="large"===e?"shop-pay-logo-large":"shop-pay-logo",[o,i,s]=ro(t),r=`rgb(${o}, ${i}, ${s})`;return`\n    <style>\n      .shop-pay-logo {\n        height: 14px;\n        width: 59px;\n        vertical-align: middle;\n      }\n\n      .shop-pay-logo-large {\n        height: 21px;\n        width: 88px;\n        vertical-align: middle;\n      }\n    </style>\n    <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" class="${n}" viewBox="0 0 424 102" fill="none">\n      <path d="M108.665 32.87c-3.402-7.136-9.852-11.746-19.57-11.746a19.48 19.48 0 00-15.303 7.868l-.355.432V1.454a.61.61 0 00-.61-.61h-13.74a.61.61 0 00-.599.61v80.23a.598.598 0 00.598.598h14.717a.61.61 0 00.609-.598V47.475c0-6.648 4.433-11.358 11.525-11.358 7.757 0 9.718 6.383 9.718 12.888v32.679a.598.598 0 00.599.598h14.682a.609.609 0 00.61-.598v-34.63c0-1.185 0-2.349-.155-3.48a30.617 30.617 0 00-2.726-10.704zM35.184 44.76s-7.491-1.76-10.25-2.47c-2.76-.71-7.58-2.217-7.58-5.863 0-3.646 3.89-4.81 7.834-4.81 3.945 0 8.334.954 8.677 5.331a.632.632 0 00.632.576l14.505-.055a.618.618 0 00.587-.414.62.62 0 00.034-.251C48.725 22.797 36.436 17.788 25.1 17.788c-13.442 0-23.271 8.865-23.271 18.64 0 7.136 2.017 13.829 17.874 18.483 2.782.809 6.56 1.862 9.863 2.781 3.967 1.109 6.105 2.782 6.105 5.42 0 3.058-4.432 5.185-8.787 5.185-6.305 0-10.782-2.338-11.148-6.538a.632.632 0 00-.632-.554l-14.472.067a.631.631 0 00-.632.654C.665 75.145 13.431 82.27 25.332 82.27c17.73 0 25.743-9.973 25.743-19.315.022-4.388-.987-14.384-15.891-18.196zm186.611-23.658c-7.369 0-13.542 4.078-17.52 8.998v-8.422a.597.597 0 00-.587-.599h-13.763a.601.601 0 00-.599.599v78.678a.598.598 0 00.599.587h14.727a.587.587 0 00.587-.587V74.492h.222c2.338 3.568 8.732 7.846 17.087 7.846 15.714 0 28.812-13.032 28.812-30.64.011-16.9-13.021-30.596-29.565-30.596zm-1.363 46.242a15.613 15.613 0 1115.226-15.647 15.4 15.4 0 01-4.362 10.987 15.404 15.404 0 01-10.864 4.66zm-74.689-49.7c-13.73 0-20.578 4.666-26.075 8.4l-.166.11a1.364 1.364 0 00-.41 1.807l5.43 9.353a1.373 1.373 0 00.964.665 1.342 1.342 0 001.108-.3l.433-.354c2.825-2.372 7.358-5.54 18.328-6.405 6.106-.488 11.381 1.108 15.27 4.743 4.278 3.945 6.838 10.316 6.838 17.043 0 12.378-7.292 20.157-19.005 20.312-9.652-.055-16.135-5.086-16.135-12.522 0-3.945 1.785-6.516 5.264-9.087a1.349 1.349 0 00.41-1.728l-4.876-9.22a1.42 1.42 0 00-.853-.687 1.371 1.371 0 00-1.108.144c-5.474 3.247-12.19 9.186-11.824 20.6.443 14.528 12.522 25.62 28.224 26.075h1.862c18.661-.61 32.136-14.462 32.136-33.245 0-17.242-12.566-35.704-35.815-35.704z" fill="${r}"/>\n      <path fill-rule="evenodd" clip-rule="evenodd" d="M281.734 1.044h125.652c8.672 0 15.703 7.03 15.703 15.703V85.54c0 8.672-7.031 15.702-15.703 15.702H281.734c-8.672 0-15.702-7.03-15.702-15.702V16.747c0-8.673 7.03-15.703 15.702-15.703zm28.191 54.488c10.483 0 17.985-7.647 17.985-18.362 0-10.66-7.502-18.351-17.985-18.351h-18.506a.829.829 0 00-.831.83v50.787a.84.84 0 00.831.831h6.959a.831.831 0 00.831-.83V56.362a.83.83 0 01.832-.831h9.884zm-.532-29c5.696 0 9.896 4.498 9.896 10.638 0 6.15-4.2 10.638-9.896 10.638h-9.352a.83.83 0 01-.832-.82V27.363a.844.844 0 01.832-.831h9.352zm20.567 34.995a9.875 9.875 0 014.123-8.467c2.704-2.028 6.892-3.08 13.109-3.324l6.593-.222v-1.95c0-3.89-2.615-5.54-6.815-5.54s-6.848 1.484-7.469 3.911a.793.793 0 01-.797.576h-6.505a.816.816 0 01-.807-.588.815.815 0 01-.024-.354c.975-5.762 5.74-10.14 15.902-10.14 10.793 0 14.682 5.02 14.682 14.606v20.368a.823.823 0 01-.239.595.835.835 0 01-.592.247h-6.571a.836.836 0 01-.592-.247.833.833 0 01-.239-.595v-1.518a.619.619 0 00-.783-.65.62.62 0 00-.325.218c-1.962 2.138-5.153 3.69-10.239 3.69-7.458.022-12.412-3.879-12.412-10.616zm23.825-4.433V55.52l-8.532.444c-4.499.232-7.126 2.105-7.126 5.252 0 2.848 2.405 4.433 6.594 4.433 5.696 0 9.064-3.08 9.064-8.544v-.011zm14.772 23.626v5.928a.854.854 0 00.609.864c1.159.316 2.357.462 3.558.433 6.371 0 12.189-2.327 15.514-11.392l14.627-39.018a.847.847 0 00-.112-.753.848.848 0 00-.675-.355h-6.815a.829.829 0 00-.798.576l-8.056 24.712a.854.854 0 01-1.596 0l-9.286-24.778a.855.855 0 00-.787-.543h-6.649a.841.841 0 00-.786 1.108l13.674 35.128a.82.82 0 010 .565l-.432 1.363a7.877 7.877 0 01-7.945 5.618 16.45 16.45 0 01-3.048-.288.839.839 0 00-.918.472.826.826 0 00-.079.36z" fill="${r}"/>\n    </svg>\n  `}(t,n),this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}}var ol;function il(e){return o(this,void 0,void 0,(function*(){try{const t=yield fetch(`https://${e}/cart.js`);return yield t.json()}catch(t){return $n(`Failed to fetch cart token for ${e} due to error: ${t}`),{token:"",currency:"",items:[]}}}))}function sl(e,t,n,o,i){const s=J(e);if(!s||!t.length)return"#";const r=t.map((e=>`${e.id}:${e.quantity}`)).join(","),a=new URL(`https://${s}/cart/${r}`),l=new URLSearchParams(a.search);return l.append("payment",n||ol.ShopPay),null!==o&&l.append("source",o),null!==i&&l.append("source_token",
3i),`${a.href}?${l}`}function rl(e){return e.split(",").map((e=>{const[t,n]=e.split(":"),o=Number(null!=n?n:1),i=isNaN(o)?1:o;return{id:Number(t),quantity:i}}))}function al(e){const t=document.cookie.split("; ");for(const n of t){const[t,o]=n.split("=");if(t===e)return o}}!function(e){e.ShopPay="shop_pay",e.ShopPayInstallments="shop_pay_installments"}(ol||(ol={}));class ll extends HTMLElement{constructor(){super(),this.monorailTracker=new dn("shop-pay-button"),customElements.get("shop-pay-logo")||customElements.define("shop-pay-logo",nl);const e=this.getAttribute("button-text");this.attachShadow({mode:"open"}).innerHTML=(e=>`<style>*{box-sizing:border-box;}:host{display:inline-block;}.shop-pay-button{background:#5a31f4 !important;line-height:normal;border-radius:4px !important;height:42px !important;width: var(--shop-pay-button-width, 262px)!important;text-decoration: none;color: #ffffff;display: flex; justify-content: center;align-items: center}.shop-pay-button.disabled{opacity: 0.5}shop-pay-logo{display:inline-block;max-height:100%;max-width:100%;}.visually-hidden{position:absolute;border:0;clip:rect(0,0,0,0);overflow:hidden;padding:0;}</style><a id="shop-pay-button-link" href="#" class="shop-pay-button"><span class="visually-hidden">Buy with Shop Pay</span>${e||'<shop-pay-logo aria-hidden="true" role="img" size="large" background-color="#5a31f4"></shop-pay-logo>'}</a>`)(e)}static get observedAttributes(){return["variants","store-url","payment-option","source","source-token","cart","disabled"]}connectedCallback(){this.monorailTracker.trackElementImpression(),this.updateButton()}attributeChangedCallback(){this.updateButton()}buildOnClick(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#shop-pay-button-link");t&&(t.setAttribute("href","#"),t.onclick=()=>{this.handleShopPayButtonClick()},t.classList.toggle("disabled",!1))}handleShopPayButtonClick(){return o(this,void 0,void 0,(function*(){const e=this.getAttribute("store-url");if(!e)return;const t=this.getAttribute("payment-option"),n=this.getAttribute("source"),i=this.getAttribute("source-token"),s=this.getAttribute("cart"),r=J(e),a=yield function(e,t){return o(this,void 0,void 0,(function*(){if(!e)return null;let n,o;t?(n=JSON.parse(decodeURIComponent(t)),o=yield cl(e)):[n,o]=yield Promise.all([il(e),cl(e)]);const i=n.items.some((e=>void 0!==e.selling_plan_allocation&&void 0!==e.selling_plan_allocation.selling_plan&&!e.selling_plan_allocation.selling_plan.fixed_selling_plan));try{const t=yield fetch(`https://${e}/wallets/checkouts.json`,{method:"POST",headers:{"Content-Type":"application/json",authorization:`Basic ${o}`},body:JSON.stringify({checkout:{cart_token:n.token,presentment_currency:n.currency,has_selling_plans:i,secret:!0,wallet_name:"ShopifyPay",page_type:"cart_page"}})});return(yield t.json()).checkout.shop_pay_configuration.transaction_url}catch(t){return $n(`Failed to fetch transaction url for ${e} due to error: ${t}`),null}}))}(r,s);if(a){const e=function(e,t,n,o){const i=new URLSearchParams;i.append("show_login","false"),i.append("redirect_source","direct_checkout_cart"),i.append("pre_select_installments",String(t===ol.ShopPayInstallments));const s=al("_checkout_queue_token"),r=al("_shopify_sa_p");return void 0!==s&&i.append("checkout_queue_token",s),void 0!==r&&"utm_source=shop_app"===decodeURIComponent(r)&&i.append("referrer","shop_app"),null!==n&&i.append("source",n),null!==o&&i.append("source_token",o),`${e.href}&${i}`}(new URL(a),t,n,i);window.location.assign(e)}}))}updateHref(e){var t;const n=this.getAttribute("store-url"),o=this.getAttribute("payment-option"),i=this.getAttribute("source"),s=this.getAttribute("source-token");if(!n)return;const r=rl(e),a=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#shop-pay-button-link");a&&(a.setAttribute("href",sl(n,r,o,i,s)),a.onclick=null,a.classList.toggle("disabled",!1))}updateButton(){var e;const t=this.getAttribute("variants"),n=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#shop-pay-button-link");if(this.hasAttribute("disabled")&&n)return n.setAttribute("href","#"),void n.classList.toggle("disabled",!0);t?this.updateHref(t):this.buildOnClick()}}function cl(e){return o(this,void 0,void 0,(function*(){try{const t=yield fetch(`https://${e}/payments/config.json`),n=yield t.json();return window.btoa(encodeURIComponent(n.paymentInstruments.accessToken))}catch(t){return $n(`Failed to fetch authorization token for ${e} due to error: ${t}`),""}}))}const ul=(e,t)=>
3t.every((t=>t in e));function dl(e,t){return null!=e&&("cart"===(null==e?void 0:e.type)?function(e,t){ul(e,["min_price","max_price","price","eligible","number_of_payment_terms","available_loan_types"])||t(Qt.Cart,JSON.stringify(e))}(e,t):function(e,t){var n;const o=ul(e,["variants","max_price","min_price","number_of_payment_terms"]),i=(null===(n=e.variants)||void 0===n?void 0:n.length)>0&&ul(e.variants[0],["id","price","eligible","available_loan_types","available"]);o&&i||t(Qt.Product,JSON.stringify(e))}(e,t),ul(e,["min_price","max_price"]))}function hl(e,t){return null!=e&&("cart"===e.type?function(e,t){if(!ul(e,["min_price","max_price","price_per_term","eligible","number_of_payment_terms","full_price","financing_plans"]))return null==t||t(Qt.Cart,JSON.stringify(e)),!1;return!0}(e,t):function(e,t){var n;const o=ul(e,["variants","max_price","min_price","financing_plans"]),i=(null===(n=e.variants)||void 0===n?void 0:n.length)>0&&ul(e.variants[0],["id","price_per_term","eligible","full_price","available"]);if(!o||!i)return null==t||t(Qt.Product,JSON.stringify(e)),!1;return!0}(e,t))}class pl extends HTMLElement{constructor(){super(),this.didMount=!1,this.currentBanner=document.createElement("div"),this.attachShadow({mode:"open"})}static get observedAttributes(){return["variant-id","shopify-meta"]}connectedCallback(){var e;const t=this.getNewBannerNode();null===(e=this.shadowRoot)||void 0===e||e.appendChild(t),this.currentBanner=t,this.didMount=!0}attributeChangedCallback(){var e;if(this.didMount){const t=this.getNewBannerNode();null===(e=this.shadowRoot)||void 0===e||e.replaceChild(t,this.currentBanner),this.currentBanner=t}}disconnectedCallback(){var e;null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.currentBanner)}getNewBannerNode(){const e=this.getAttribute("shopify-meta"),t=this.getAttribute("variant-id"),n=Boolean(e&&hl(JSON.parse(e))),o=document.createElement(n?"shop-pay-installments-banner":"shop-pay-banner");return t&&o.setAttribute("variant-id",t),e&&o.setAttribute("shopify-meta",e),o}}var ml,fl,gl;class vl extends HTMLElement{constructor(){super(),ml.add(this),fl.set(this,void 0),customElements.get("shop-pay-logo")||customElements.define("shop-pay-logo",nl)}connectedCallback(){const e=document.createElement("template");e.innerHTML='<style>\n.prequal_overlay {\n  position: fixed;\n  width: 100%;\n  height: 100%;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  text-align: center;\n  z-index: 2147483647 !important;\n  color: white;\n  background: radial-gradient(\n    106.68% 106.68% at 50% 50%,\n    rgba(0, 0, 0, 0.94) 23.96%,\n    rgba(0, 0, 0, 0.6) 100%\n  );\n}\n\np {\n    margin: 1em;\n}\n\na {\n    text-decoration: underline;\n    color: #FFF;\n}\n\n</style>\n\n<div class="prequal_overlay">\n    <shop-pay-logo background-color="#000" size="large"></shop-pay-logo>\n    <p>A new tab will open so you can provide your information securely. If a new tab doesn\'t open automatically, tap continue.</p>\n    <a href="#" id="installments-prequal-overlay-continue">Continue</a>\n</div>\n',this.attachShadow({mode:"open"}).append(e.content.cloneNode(!0)),c(this,ml,"m",gl).call(this)}handleContinueButtonClick(){if(c(this,fl,"f")&&!c(this,fl,"f").closed)c(this,fl,"f").focus();else{u(this,fl,V({url:"https://shop.app/pay/installments/prequalifications/new",width:500,height:750}),"f"),c(this,fl,"f")&&c(this,fl,"f").focus()}}}fl=new WeakMap,ml=new WeakSet,gl=function(){var e;const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector("#installments-prequal-overlay-continue");t&&(t.onclick=()=>{this.handleContinueButtonClick()})};const _l='\n  <style>\n    * {\n      box-sizing: border-box;\n    }\n\n    .visually-hidden {\n      border: 0;\n      clip: rect(0, 0, 0, 0);\n      height: 1px;\n      margin: -1px;\n      overflow: hidden;\n      padding: 0;\n      position: absolute;\n      white-space: nowrap;\n      width: 1px;\n    }\n\n    .shopify-installments {\n      margin-top: 0;\n      margin-bottom: 0;\n    }\n\n    .shopify-installments__content {\n      padding-right: 4px;\n    }\n\n    .shopify-installments__learn-more {\n      color: inherit;\n      font-weight: inherit;\n      font: inherit;\n      background: none;\n      border: none;\n      padding: 0;\n      margin: 0;\n      cursor: pointer;\n      text-decoration: underline;\n    }\n  </style>\n  <p class="shopify-installments" id="shopify-installments">\n    <span class="shopify-installments__content" id="shopify-installments-content"></span>\n    <button aria-haspopup="dialog" class="shopify-installments__learn-more" id="shopify-installments-cta"></button>\n  </p>\n',bl=(e,t)=>
3`\nPay in 4 interest-free installments of <b>${e}</b> with <shop-pay-logo role="img" aria-label="Shop Pay" background-color="${t}"></shop-pay-logo>\n`,yl=(e,t)=>`\nPay in 4 interest-free installments for orders over <b>${e}</b> with <shop-pay-logo role="img" aria-label="Shop Pay" background-color="${t}"></shop-pay-logo>\n`,wl="CA Residents: Loans by Affirm Loan Services, LLC are made or arranged pursuant to a California Finance Lender license.",kl='Rates from 0-36% APR. Payment options through Affirm are subject to an eligibility check, may not be available in all states, and are provided by these lending partners: <a class="help_text__link" href="https://www.affirm.com/licenses" target="_blank" aria-describedby="shopify-payment-terms-modal-warning-text">affirm.com/lenders</a>. Options depend on your purchase amount, and a down payment may be required.',Cl={INTEREST_AND_SPLIT_PAY:`The estimated payment amount excludes taxes and shipping. ${kl} ${wl}`,INTEREST_ONLY:`${kl} ${wl}`,SPLIT_PAY_ONLY:`The estimated payment amount excludes taxes and shipping. Payment options are offered by Affirm and are subject to an eligibility check and might not be available in all states. ${wl}`,INELIGIBLE:`Payment options are offered by Affirm and are subject to an eligibility check and might not be available in all states. ${wl}`,DYNAMIC_PDP:'The estimated payment amount excludes taxes and shipping. Rates range from 0-36% APR. Payment options through Shop Pay Installments are subject to an eligibility check and are provided by these lending partners: <a class="help_text__link" href="https://www.affirm.com/lenders" target="_blank" aria-describedby="shopify-payment-terms-modal-warning-text">affirm.com/lenders</a>. Options depend on your purchase amount, and a down payment may be required. More options may be available upon approval. State notices to consumers: <a class="help_text__link" href="https://www.affirm.com/licenses" target="_blank" aria-describedby="shopify-payment-terms-modal-warning-text">affirm.com/licenses</a>.'},Sl=e=>`Choose your payment schedule at checkout &#8211; starting at 4 interest-free payments of <span class="tagline__bold">${e}</span> every 2 weeks.`,xl=()=>"Choose your payment schedule at checkout to split your purchase into monthly installments.",El=e=>`Select installments at checkout to split your purchase into 4 interest-free payments of <span class="tagline__bold">${e}</span> every 2 weeks.`,Al=e=>`For orders over ${e}, select installments at checkout to split your purchase into 4 interest-free payments.`,Tl=e=>`For orders over ${e}, select installments at checkout to split your purchase into monthly payments.`,Pl=e=>`For orders up to ${e}, select installments at checkout to split your purchase into multiple payments.`,Ml=(e,t)=>`Sample ${1===e?"plan":"plans"} for <b>${t}</b> purchase`,Ll="\n#shopify-payment-terms-modal .visually-hidden {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  white-space: nowrap;\n  width: 1px;\n}\n\n#shopify-payment-terms-modal .modal-wrapper {\n  max-width: 432px;\n}\n\n#shopify-payment-terms-modal p {\n  font-size: 18px;\n  line-height: 150%;\n}\n\n#shopify-payment-terms-modal section {\n  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,\n    Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n}\n\n#shopify-payment-terms-modal .price {\n  color: rgb(90, 49, 244);\n  font-weight: 600;\n  display: inline-flex;\n  flex-direction: column;\n  line-height: 1;\n  align-items: center;\n}\n\n#shopify-payment-terms-modal .price__icon {\n  width: 43px;\n  height: 10px;\n}\n\n#shopify-payment-terms-modal .list {\n  list-style: none;\n  padding: 0;\n  margin: 0;\n}\n\n#shopify-payment-terms-modal .list-item__subheading {\n  font-size: 14px;\n  line-height: 140%;\n  color: rgba(0, 0, 0, 0.7);\n}\n\n#shopify-payment-terms-modal .btn__close--icon {\n  display: inline-flex;\n  flex-shrink: 0;\n  padding: 16px;\n  border-radius: 6px;\n}\n\n#shopify-payment-terms-modal .btn__close--icon:hover,\n#shopify-payment-terms-modal .btn__close--icon:active,\n#shopify-payment-terms-modal .btn__close--icon:focus {\n  background-color: rgb(244, 241, 254);\n  color: rgb(63, 34, 171);\n}\n\n#shopify-payment-terms-modal .help_text {\n  margin-bottom: 19px;\n  margin-top: 16px;\n  font-size: 11px;\n  line-height: 14px;\n  color: rgba(0, 0, 0, 0.6);\n}\n\n#shopify-payment-terms-modal .help_text small {\n  color: inherit;\n  letter-spacing: 0.04rem;\n  font-weight: 300;\n  font-size: 11px;\n}\n\n#shopify-payment-terms-modal .help_text__link {\n  color: rgba(0, 0, 0, 0.6);\n  text-decoration: underline;\n}\n\n#shopify-payment-terms-modal .help_text__link:hover,\n#shopify-payment-terms-modal .help_text__link:active,\n#shopify-payment-terms-modal .help_text__link:focus {\n  color: rgb(63, 34, 171);\n}\n\n#shopify-payment-terms-modal .tagline__bold {\n  font-weight: 700;\n}\n\n#shopify-payment-terms-modal footer {\n  text-align: center;\n}\n\n#shopify-payment-terms-modal .shop-pay-logo-wrapper {\n  margin-bottom: 12px;\n}\n\n#shopify-payment-terms-modal .close__icon {\n  width: 13px;\n  height: 13px;\n}\n\n#shopify-payment-terms-modal .affirm-logo {\n  width: 39px;\n  height: 21px;\n  padding-left: 4px;\n  box-sizing: content-box;\n}\n\n#shopify-payment-terms-modal .affirm-text {\n  display: flex;\n  font-size: 12px;\n  font-weight: 300;\n  line-height: 150%;\n  color: rgba(0, 0, 0, 0.6);\n  justify-content: center;\n  align-items: center;\n}\n",jl="Failed to construct 'HTMLElement': This instance is already constructed";class Ol{constructor(e){this.documentFocusHandler=e=>{this.lastFocusable&&e.target!==this.getShadowRootHost()&&!this.isEventFromModal(e)&&(e.preventDefault(),e.stopPropagation(),this.lastFocusable.focus())},this.shadowRootFocusHandler=e=>{this.firstFocusable&&e.target===this.phantomElement&&this.firstFocusable.focus()},this.htmlElement=e}lock(){const e=this.htmlElement.querySelectorAll('a[href], button:not([disabled]):not([tabindex="-1"]');this.firstFocusable=e[0],this.lastFocusable=e[e.length-1],this.phantomElement=this.createPhantomElement(),this.htmlElement.appendChild(this.phantomElement),this.htmlElement.addEventListener("focus",this.shadowRootFocusHandler,!0),document.addEventListener("focus",this.documentFocusHandler,!0)}release(e={}){this.htmlElement.removeEventListener("focus",this.shadowRootFocusHandler,!0),document.removeEventListener("focus",this.documentFocusHandler,!0),this.removePhantomElement(),e instanceof HTMLElement&&e.focus()}createPhantomElement(){const e=document.createElement("button");return e.setAttribute("aria-hidden","true"),e.className="visually-hidden",e}removePhantomElement(){this.phantomElement&&this.htmlElement.removeChild(this.phantomElement)}isEventFromModal(e){const t=e.composedPath().find((e=>e instanceof Element&&e.ariaModal));return Boolean(t)}getShadowRootHost(){const e=this.htmlElement.getRootNode();return e instanceof ShadowRoot?e.host:null}}function Il(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2}).format(e)}function Nl(){var e,t,n;switch(null===(n=null===(t=null===(e=window.Shopify)||void 0===e?void 0:e.theme)||void 0===t?void 0:t.name)||void 0===n?void 0:n.toLowerCase()){case"boun
3dless":case"brooklyn":return".cart__subtotal";case"dawn":return".totals__subtotal-value, .sections.cart.new_subtotal";case"debut":return".cart-subtotal__price";case"express":return".cart__subtotal, .cart-drawer__subtotal-value";case"minimal":return".h5.cart__subtotal-price";case"narrative":return".cart-subtotal__price, .cart-drawer__subtotal-number";case"simple":return".cart__subtotal.h3";case"supply":return".h1.cart-subtotal--price";case"venture":return".CartSubtotal"}return null}function zl(){document.querySelector("[data-cart-subtotal]")||console.warn("[Shop Pay Installments] Cart price updates may not be handled automatically for this theme. To ensure the price shown in the Shop Pay Installments banner is updated correctly, follow the instructions found here: https://shopify.dev/themes/pricing-payments/installments#updating-the-banner-with-cart-total-changes")}function Dl(e){var t,n,o;const i="#FFF";if(!e)return i;const s=e.host.parentElement&&(null===(t=getComputedStyle(e.host.parentElement).getPropertyValue("--payment-terms-background-color"))||void 0===t?void 0:t.trim()),r=null===(n=getComputedStyle(document.documentElement).getPropertyValue("--payment-terms-background-color"))||void 0===n?void 0:n.trim(),a=null===(o=getComputedStyle(document.documentElement).getPropertyValue("--color-body"))||void 0===o?void 0:o.trim(),l=s||r||a;return l&&CSS.supports("color",l)?l:i}function Rl(e){return parseFloat(e.replace(/[^0-9.]/g,""))}function Bl(e){const t=e.querySelector('select[name^="id"]')||e.querySelector('[name^="id"]');return t?Number(t.value):function(){const e=new URL(document.location.href).searchParams.get("variant");return e?Number(e):void 0}()}class Fl extends HTMLElement{constructor(e,t,n,o,i,s,r,a){super(),this.trackContinueToCheckout=!0,this.handleClose=()=>{this.monorailTracker.trackModalAction(this.modalToken,tn.Close);const e=new Event("shopify_modal_close");this.dispatchEvent(e)},this.handleEscKey=e=>{"Escape"!==e.key&&"Esc"!==e.key||this.handleClose()},this.handleContinueToCheckout=()=>{this.trackContinueToCheckout&&this.monorailTracker.trackModalAction(this.modalToken,tn.ContinueToCheckout)},this.loanTypes=o,this.eligible=t,this.modalToken=i,this.monorailTracker=s;const l=document.createElement("template"),c=function(e){if(e&&e.includes(Jt.Interest))return["No hidden fees, ever.","No impact on your credit score to apply."];return["No fees, ever.","No impact on your credit score."]}(o),{subTitle:u,legalCopy:d}=function(e,t,n,o,i,s){if(!e||!o)return Ul(n,s,i);return e.includes(Jt.Interest)&&e.includes(Jt.SplitPay)?{subTitle:Sl(t),legalCopy:Cl.INTEREST_AND_SPLIT_PAY}:e.includes(Jt.SplitPay)?{subTitle:El(t),legalCopy:Cl.SPLIT_PAY_ONLY}:e.includes(Jt.Interest)?{subTitle:xl(),legalCopy:Cl.INTEREST_ONLY}:Ul(n,s,i)}(o,e,n,t,a,r);l.innerHTML=function(e,t,n){return`\n  <style>\n    ${Ll}\n\n    #shopify-payment-terms-modal header {\n      display: flex;\n      justify-content: space-between;\n      align-items: baseline;\n    }\n\n    #shopify-payment-terms-modal .btn__close {\n      position: absolute;\n      right: 22px;\n      top: 22px;\n      overflow: visible;\n      margin: 0;\n      background: transparent;\n      border: none;\n      -webkit-font-smoothing: inherit;\n      appearance: button;\n      cursor: pointer;\n    }\n\n    #shopify-payment-terms-modal h1 {\n      font-size: 32px;\n      font-weight: 600;\n      line-height: 120%;\n      margin: 0 0 20px;\n      max-width: 295px;\n      font-family: inherit;\n      letter-spacing: 0.02em;\n    }\n\n    #shopify-payment-terms-modal .tagline {\n      margin: 0 0 28px 0;\n      line-height: 24px;\n    }\n\n    #shopify-payment-terms-modal .list-item {\n      display: flex;\n      align-items: center;\n      padding-bottom: 8px;\n    }\n\n    #shopify-payment-terms-modal .list-item__heading {\n      font-size: 16px;\n      line-height: 125%;\n      margin: 0;\n    }\n\n    #shopify-payment-terms-modal .list-item__icon {\n      width: 24px;\n      height: 24px;\n      flex: 0 0 21px;\n      padding-right: 12px;\n      box-sizing: content-box;\n    }\n  </style>\n  <div\n    id="shopify-payment-terms-modal"\n    role="dialog"\n    aria-modal="true"\n    aria-labelledby="shopify-payment-terms-modal-heading"\n    tabindex="-1">\n    <section class="modal-wrapper">\n        <header>\n        <button type="button" class="btn__close btn__close--icon" aria-label="Close">\n          <svg class="close__icon" aria-hidden="true"><use xlink:href="#close" /></svg>\n        </button>\n        <h1 id="shopify-payment-terms-modal-heading">Get it now, pay later</h1>\n      </header>\n      <div hidden id="shopify-payment-terms-modal-warning-text">Opens in a new window.</div>\n      <p class="tagline">${e}</p>\n      <ul class="list">\n        <li class="list-item">\n          <svg role="img" aria-hidden="true" class="list-item__icon"><use xlink:href="#fees-icon" /></svg>
3\n          <span class="list-item__heading">${n[0]}</span>\n        </li>\n        <li class="list-item">\n          <svg role="img" aria-hidden="true" class="list-item__icon"><use xlink:href="#cc-icon" /></svg>\n          <span class="list-item__heading">${n[1]}</span>\n        </li>\n      </ul>\n      <p id="eligibility-approval" class="help_text">\n        <small>\n          ${t}\n        </small>\n      </p>\n      <footer>\n        <div class="shop-pay-logo-wrapper">\n          <shop-pay-logo role="img" aria-label="Shop Pay" size="large"></shop-pay-logo>\n        </div>\n        <div class="affirm-text">\n          <span>Installments in partnership with</span>\n            <svg role="img" aria-labelledby="shopify-payment-terms-modal-affirm" class="affirm-logo"><use xlink:href="#affirm" /></svg>\n        </div>\n      </footer>\n      <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" style="display: none;">\n        <symbol id="fees-icon" viewBox="0 0 21 18" fill="none">\n          <path d="M18.5 10.5474C18.5 15.267 14.5995 19.1236 9.75 19.1236C4.90048 19.1236 1 15.267 1 10.5474C1 5.82767 4.90048 1.97107 9.75 1.97107C14.5995 1.97107 18.5 5.82767 18.5 10.5474Z" stroke="#0B0B0C" stroke-width="2"/>\n          <path d="M11.4875 8.06938C11.8819 8.456 12.515 8.4497 12.9016 8.05531C13.2882 7.66092 13.2819 7.02778 12.8875 6.64117L11.4875 8.06938ZM10.0408 6.55725V7.55725V6.55725ZM7.1335 12.4337C6.70617 12.0838 6.07613 12.1466 5.72626 12.5739C5.37639 13.0013 5.43917 13.6313 5.8665 13.9812L7.1335 12.4337ZM12.1875 7.35527C12.8875 6.64117 12.8872 6.64088 12.887 6.6406C12.8869 6.6405 12.8866 6.64021 12.8864 6.64001C12.8859 6.63961 12.8855 6.6392 12.8851 6.63878C12.8842 6.63793 12.8833 6.63703 12.8823 6.63609C12.8804 6.63419 12.8782 6.6321 12.8758 6.62982C12.871 6.62526 12.8654 6.61993 12.8589 6.61388C12.8459 6.6018 12.8294 6.58683 12.8096 6.5694C12.7699 6.53459 12.7164 6.48973 12.6497 6.43832C12.5166 6.33585 12.328 6.20519 12.0884 6.07602C11.6099 5.81808 10.9106 5.55725 10.0408 5.55725V7.55725C10.5036 7.55725 10.8777 7.69544 11.1394 7.83651C11.2698 7.90684 11.3681 7.97569 11.4293 8.02285C11.4597 8.04625 11.4802 8.06374 11.4903 8.07257C11.4953 8.07696 11.4976 8.07914 11.4972 8.07874C11.497 8.07854 11.4961 8.07769 11.4944 8.07615C11.4936 8.07538 11.4927 8.07443 11.4915 8.07331C11.4909 8.07274 11.4903 8.07214 11.4896 8.07148C11.4893 8.07116 11.4889 8.07082 11.4886 8.07047C11.4884 8.07029 11.4881 8.07002 11.488 8.06993C11.4877 8.06966 11.4875 8.06938 12.1875 7.35527ZM10.0408 5.55725C8.12515 5.55725 6.90378 6.0365 6.19464 6.83562C5.49081 7.62876 5.5 8.51566 5.5 8.77398L7.5 8.77398C7.5 8.58897 7.50919 8.3675 7.69057 8.1631C7.86664 7.96469 8.41567 7.55725 10.0408 7.55725V5.55725ZM5.5 8.77398C5.5 10.0149 6.8138 11.5474 10.0408 11.5474V9.54737C7.35373 9.54737 7.5 8.41981 7.5 8.77398L5.5 8.77398ZM10.0408 11.5474C11.3127 11.5474 11.7267 11.9199 11.8526 12.072C11.9294 12.1647 11.9638 12.2521 11.9797 12.3098C11.9877 12.3388 11.9908 12.3595 11.9919 12.3681C11.9924 12.3721 11.9925 12.3743 11.9927 12.376C11.9927 12.3767 11.9928 12.3777 11.9929 12.3796C11.993 12.3801 11.9934 12.3859 11.9937 12.3909C11.9938 12.3916 11.9953 12.4128 11.9983 12.4379C11.9991 12.4448 12.004 12.4884 12.0163 12.5424C12.0206 12.5613 12.0384 12.6404 12.081 12.7343C12.1072 12.7876 12.1909 12.9199 12.2529 12.9949C12.374 13.1073 12.744 13.2896 12.9915 13.3208V11.3208C13.239 11.3519 13.609 11.5342 13.7301 11.6466C13.7921 11.7215 13.8758 11.8538 13.9019 11.907C13.9445 12.0008 13.9622 12.0798 13.9664 12.0985C13.9786 12.152 13.9835 12.195 13.9842 12.201C13.9859 12.2154 13.9869 12.2264 13.9873 12.2305C13.9877 12.2355 13.988 12.2393 13.9881 12.2405C13.9882 12.2421 13.9883 12.2437 13.988 12.2392C13.9878 12.2363 13.9874 12.2314 13.987 12.2257C13.9852 12.2014 13.9821 12.1655 13.9765 12.121C13.9655 12.0326 13.9455 11.9148 13.9076 11.7775C13.8317 11.5027 13.6833 11.1468 13.3928 10.7961C12.7843 10.0615 11.7261 9.54737 10.0408 9.54737V11.5474ZM12.9915 13.3208C12.7152 13.2818 12.3392 13.0787 12.2329 12.9723C12.1834 12.9097 12.1152 12.8024 12.0934 12.7604C12.0576 12.6873 12.0393 12.6263 12.0345 12.6106C12.0212 12.5665 12.014 12.5313 12.0123 12.5227C12.0071 12.4972 12.0042 12.4778 12.0034 12.4721C12.0011 12.4564 12.0001 12.4462 11.9998 12.4436C11.9991 12.4365 11.9995 12.4381 11.9998 12.4473C12.0003 12.4656 12.0003 12.5037 11.9945 12.5544C11.9827 12.6586 11.9503 12.7886 11.8754 12.9129C11.7692 13.089 11.4095 13.5375 10.0408 13.5375V15.5375C11.9075 15.5375 13.0264 14.8776 13.5883 13.9454C13.8474 13.5154 13.9465 13.0913 13.9818 12.7798C13.9996 12.6227 14.002 12.4876 13.9988 12.3847C13.9972 12.3333 13.9941 12.2872 13.9902 12.2477C13.9883 12.2288 13.9858 12.2062 13.9822 12.1821C13.9808 12.1723 13.9774 12.1497 13.9717 12.122C13.9698 12.1124 13.9624 12.0764 13.9489 12.0317C13.9441 12.0157 13.9257 11.9545 13.8899 11.8814C13.868 11.8393 13.7998 11.7319 13.7502 11.6693C13.6439 11.5628 13.2679 11.3597 12.9915 11.3208V13.3208ZM10.0408 13.5375C9.30305 13.5375 8.58044 13.2774 8.00962 12.9834C7.73057 12.8397 7.50347 12.696 7.34846 12.59C7.27131 12.5372 7.21302 12.4944 7.17616 12.4666C7.15775 12.4527 7.14477 12.4426 7.13753 12.4369C7.13392 12.434 7.13175 12.4323 7.13106 12.4317C7.13071 12.4314 7.13074 12.4315 7.13115 12.4318C7.13135 12.432 7.13165 12.4322 7.13204 12.4325C7.13224 12.4327 7.13245 12.4329 7.1327 12.4331C7.13282 12.4331 7.13302 12.4333 7.13308 12.4334C7.13329 12.4335 7.1335 12.4337 6.5 13.2074C5.8665 13.9812 5.86672 13.9814 5.86696 13.9816C5.86704 13.9816 5.86728 13.9818 5.86745 13.982C5.86779 13.9822 5.86816 13.9825 5.86855 13.9829C5.86934 13.9835 5.87023 13.9842 5.87122 13.985C5.8732 13.9866 5.87559 13.9886 5.87838 13.9908C5.88396 13.9953 5.89114 14.001 5.89989 14.0079C5.91739 14.0217 5.94118 14.0402 5.97093 14.0626C6.03039 14.1075 6.11399 14.1687 6.21908 14.2406C6.42854 14.3839 6.72734 14.5727 7.09394 14.7615C7.81445 15.1326 8.86225 15.5375 10.0408 15.5375V13.5375Z" fill="#0B0B0C"/>\n          <path d="M9.75 4.96118L9.75 16.1335" stroke="#0B0B0C" stroke-width="2" stroke-linecap="round"/>\n        </symbol>
3\n        <symbol id="cc-icon" viewBox="0 0 21 16" fill="none">\n          <path\n          d="M17.3636 1H2.63636C1.73262 1 1 1.7835 1 2.75V13.25C1 14.2165 1.73262 15 2.63636 15H17.3636C18.2674 15 19 14.2165 19 13.25V2.75C19 1.7835 18.2674 1 17.3636 1Z"\n          stroke="#0B0B0C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />\n          <path d="M1 6L19 6" stroke="#0B0B0C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />\n          <path d="M13 11H15" stroke="#0B0B0C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />\n        </symbol>\n        <symbol id="affirm" viewBox="0 0 40 22" fill="none">\n          <title id="shopify-payment-terms-modal-affirm">Affirm</title>\n          <path fill="#000000"\n            d="M3.058 14.543c-.482 0-.724-.236-.724-.623 0-.72.812-.965 2.292-1.121 0 .962-.656 1.744-1.569 1.744zm.638-5.413c-1.058 0-2.275.495-2.936 1.017l.604 1.26c.53-.48 1.386-.892 2.159-.892.734 0 1.14.243 1.14.734 0 .33-.269.497-.777.563C1.99 12.056.5 12.575.5 14.026c0 1.15.826 1.846 2.116 1.846.92 0 1.74-.507 2.129-1.176v.99H6.46v-4.148c0-1.712-1.2-2.408-2.764-2.408zM20.92 9.318v6.367h1.837v-3.068c0-1.458.89-1.886 1.51-1.886.243 0 .57.07.785.23l.334-1.684a2.104 2.104 0 00-.822-.147c-.944 0-1.538.415-1.929 1.258v-1.07h-1.714zM33.899 9.13c-.971 0-1.697.57-2.075 1.118-.35-.709-1.093-1.118-1.983-1.118-.971 0-1.643.535-1.954 1.15v-.962h-1.77v6.367h1.838v-3.277c0-1.177.621-1.742 1.201-1.742.525 0 1.007.337 1.007 1.207v3.812h1.835v-3.277c0-1.19.606-1.742 1.213-1.742.486 0 .998.35.998 1.193v3.826h1.834v-4.401c0-1.431-.971-2.154-2.144-2.154zM16.452 9.317h-1.664v-.648c0-.842.485-1.083.903-1.083.462 0 .822.203.822.203l.566-1.284s-.573-.372-1.617-.372c-1.173 0-2.508.656-2.508 2.716v.468h-2.785v-.648c0-.842.485-1.083.903-1.083.238 0 .557.054.822.203l.566-1.284c-.338-.196-.88-.372-1.617-.372-1.173 0-2.508.656-2.508 2.716v.468H7.269v1.405h1.066v4.963h1.834v-4.963h2.785v4.963h1.834v-4.963h1.664V9.317zM17.547 15.684h1.832V9.317h-1.832v6.367z" />\n          <path fill="#5A31F4"\n            d="M28.24.434c-4.956 0-9.372 3.413-10.625 7.8h1.795C20.457 4.968 24.012 2.1 28.24 2.1c5.14 0 9.582 3.882 9.582 9.925 0 1.356-.177 2.58-.513 3.66h1.743l.017-.059c.286-1.115.431-2.326.431-3.6 0-6.74-4.95-11.59-11.26-11.59z" />\n        </symbol>\n        <symbol id="squiggle" viewBox="0 0 43 10" fill="none">\n          <path\n            d="M9.62095 5.04617C8.94881 5.25492 8.31699 5.39409 7.71878 5.63067C5.84572 6.36986 4.08993 7.39479 2.50965 8.6715C2.22013 8.91561 1.9685 9.20426 1.76356 9.52739C1.64079 9.72655 1.45521 9.87557 1.23834 9.94914C1.02147 10.0227 0.786683 10.0163 0.573866 9.93098C0.150414 9.81964 0.0159848 9.46476 0.0025419 9.03334C-0.0117113 8.78028 0.0341362 8.52746 0.136075 8.29699C0.238015 8.06651 0.392942 7.86541 0.587309 7.71124C1.44731 6.98191 2.34482 6.30131 3.27589 5.67243C4.88859 4.53384 6.69839 3.72817 8.60601 3.2996C9.16432 3.2139 9.72969 3.18825 10.2931 3.22306C10.5766 3.23472 10.8466 3.35146 11.0539 3.552C11.2611 3.75254 11.3919 4.02352 11.4223 4.31553C11.4514 4.96274 11.4401 5.61122 11.3887 6.25693C11.3887 6.47264 11.3416 6.68835 11.2946 7.03628C11.5734 6.98943 11.8463 6.91006 12.1079 6.79969C13.1228 6.23606 14.1243 5.6933 15.1191 5.04617C16.7687 3.80877 18.5394 2.75456 20.4022 1.90096C21.4062 1.47852 22.4848 1.27937 23.568 1.31645C23.7541 1.30668 23.9402 1.33708 24.1144 1.40573C24.2886 1.47438 24.447 1.57978 24.5798 1.71523C24.7125 1.85068 24.8166 2.01322 24.8854 2.19254C24.9542 2.37186 24.9862 2.56402 24.9795 2.75685C24.9795 3.30656 24.9123 3.85628 24.8719 4.46166C24.9997 4.3712 25.1542 4.27378 25.3088 4.17636C26.7002 3.24394 28.0646 2.2628 29.4963 1.393C30.9457 0.454744 32.6266 -0.028641 34.3358 0.00131229C35.3238 0.0361044 35.8078 0.50232 35.8078 1.51129C35.8195 1.97782 35.7835 2.44432 35.7002 2.90297C35.5848 3.41514 35.4389 3.91943 35.2633 4.41295C35.5053 4.26682 35.6666 4.18332 35.8145 4.0859C37.5361 2.791 39.3752 1.67239 41.3059 0.745863C41.5215 0.653045 41.7472 0.587624 41.9781 0.551028C42.1749 0.499154 42.3835 0.528135 42.5601 0.6319C42.7368 0.735666 42.8678 0.906168 42.9258 1.1077C43.0097 1.31745 43.0229 1.55039 42.9631 1.76883C42.9033 1.98728 42.7742 2.17848 42.5964 2.31151C42.5112 2.38001 42.4187 2.43837 42.3209 2.48547C40.393 3.40943 38.5543 4.52081 36.8294 5.80463C36.453 6.05514 36.0766 6.30564 35.6868 6.54223C35.4484 6.71142 35.
31882 6.84495 34.9138 6.93886C33.4082 7.32853 32.5882 6.93886 32.8638 5.28971C32.9948 4.73065 33.1702 4.18373 33.388 3.65448C33.5762 3.11868 33.7913 2.5968 34.0602 1.93575C33.5628 2.02621 33.1864 2.07492 32.8302 2.17234C31.1747 2.70218 29.6179 3.5186 28.226 4.58691C27.1035 5.37321 26.0146 6.20126 24.8652 6.9319C24.4142 7.18452 23.9125 7.32507 23.3999 7.34244C23.2503 7.3709 23.0962 7.3608 22.9512 7.31303C22.8062 7.26527 22.6747 7.18131 22.5685 7.06855C22.4622 6.9558 22.3844 6.81771 22.3418 6.66646C22.2993 6.51521 22.2933 6.35545 22.3245 6.20126C22.4231 5.49335 22.5782 4.79511 22.7883 4.11374C22.8992 3.78799 23.0294 3.46962 23.1781 3.16044C22.6262 3.27341 22.0843 3.43401 21.5583 3.64057C20.2543 4.33641 18.9571 5.03225 17.7001 5.72809C16.3559 6.54223 15.0116 7.44682 13.6673 8.28183C12.8993 8.75227 12.0091 8.96383 11.1198 8.88721C10.8941 8.89799 10.6688 8.85872 10.459 8.77204C10.2491 8.68537 10.0595 8.55327 9.903 8.38461C9.74644 8.21596 9.6265 8.01462 9.5512 7.79409C9.4759 7.57355 9.44697 7.3389 9.46636 7.10586C9.48652 6.50048 9.54702 5.83943 9.62095 5.04617Z"\n            fill="#BDADFB" />\n        </symbol>\n        <symbol id="close" viewBox="0 0 14 14" fill="none">\n          <path fill-rule="evenodd" clip-rule="evenodd" d="M8.547 6.77l5.322-5.086A.468.468 0 0014 1.347a.662.662 0 00-.131-.379l-.875-.842A.725.725 0 0012.6 0c-.175 0-.262.042-.35.126L7 5.136 1.75.127A.508.508 0 001.4 0c-.175 0-.306.042-.394.126L.131.968a.662.662 0 00-.131.38c0 .126.044.252.175.336L5.453 6.73.13 11.816a.468.468 0 00-.131.337c0 .126.044.252.131.379l.875.842a.724.724 0 00.394.126c.175 0 .263-.042.35-.126L7 8.364l5.25 5.01a.508.508 0 00.35.126c.175 0 .306-.042.394-.126l.875-.842a.662.662 0 00.131-.38.378.378 0 00-.175-.336L8.547 6.77z" fill="#000000"/>\n        </symbol>\n      </svg>\n    </section>\n  </div>`}(u,d,c),this.appendChild(l.content.cloneNode(!0))}connectedCallback(){this.closeButtons=this.querySelectorAll(".btn__close"),this.closeButtons&&0!==this.closeButtons.length&&(this.closeButtons.forEach((e=>e.addEventListener("click",this.handleClose))),this.closeButtons[0].focus(),window.addEventListener("keydown",this.handleEscKey))}disconnectedCallback(){this.closeButtons&&(this.closeButtons.forEach((e=>e.removeEventListener("click",this.handleClose))),window.removeEventListener("keydown",this.handleEscKey))}get price(){return this.getAttribute("price")||""}set price(e){this.setAttribute("price",e)}getModalToken(){return this.modalToken}getModalHeight(){var e;return(null===(e=this.loanTypes)||void 0===e?void 0:e.length)&&this.eligible?this.loanTypes.includes(Jt.Interest)&&this.loanTypes.includes(Jt.SplitPay)?"550px":this.loanTypes.includes(Jt.SplitPay)?"508px":this.loanTypes.includes(Jt.Interest)?"515px":"535px":"473px"}getModalType(){var e;return(null===(e=this.loanTypes)||void 0===e?void 0:e.length)&&this.eligible?this.loanTypes.includes(Jt.Interest)&&this.loanTypes.includes(Jt.SplitPay)?en.Adaptive:this.loanTypes.includes(Jt.SplitPay)?en.SplitPay:en.InterestOnly:en.Ineligible}}function Ul(e,t,n){const{minPrice:o,maxPrice:i}=e,s=Rl(o),r=t?Rl(t):null;return!r||r<s?{subTitle:n===nn.Monthly?Tl(o):Al(o),legalCopy:Cl.INELIGIBLE}:{subTitle:Pl(i),legalCopy:Cl.INELIGIBLE}}const $l=(e,t)=>{const n=999999,o=document.createElement("div"),i=document.createElement("div");if(o.setAttribute("id","shopify-payment-terms-cover"),Object.assign(o.style,{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:n,background:"rgba(0,0,0,.3)"}),Object.assign(i.style,{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:n,background:"white",height:t,width:"432px",maxWidth:"95%",maxHeight:"95%",margin:"auto",borderRadius:"7px",padding:"32px",boxSizing:"border-box",overflow:"auto"}),window.innerWidth<430&&Object.assign(i.style,{borderRadius:"0px",height:"auto",width:"auto",maxHeight:"100%",maxWidth:"100%"}),i.appendChild(e),"animate"in i){const e=[{opacity:0},{opacity:1}],t=[{transform:"translateY(-15%)",opacity:0},{transform:"translateY(0)",opacity:1}];i.animate(t,{fill:"forwards",duration:150}),o.animate(e,{fill:"forwards",duration:150})}o.appendChild(i),document.body.appendChild(o),document.body.dataset.paymentTermsInitialStyles=JSON.stringify({overflow:document.body.style.overflow}),document.body.style.overflow="hidden"},Wl=()=>{const e=document.querySelector("#shopify-payment-terms-cover");if(e&&(document.body.removeChild(e),document.body.dataset.paymentTermsInitialStyles)){const e=JSON.parse(document.body.dataset.paymentTermsInitialStyles);document.body.style.overflow=e.overflow,document.body.style.position=e.position,delete document.body.dataset.initialStyles}};class ql extends HTMLElement{constructor(){super(),this.minPrice="$50",this.maxPrice="$3000",this.open=!1,this.eligible=!1,this.numberOfPaymentTerms=4,this.hasChangeEventListener=!1,this.loanTypes=[],this.metaType=Qt.Product,this.backgroundColor="",this.didMount=!1,this.getContent=e=>{if(!this.loanTypes.length)return this.getIneligibleContent();if(this.loanTypes.includes(Jt.SplitPay))return bl(e||"",this.backgroundColor);return this.loanTypes.includes(Jt.Interest)?`\nSplit your purchase into monthly installments with <shop-pay-logo role="img" aria-label="Shop Pay" background-color="${this.backgroundColor}"></shop-pay-logo>\n`:this.getIneligibleContent()},this.getIneligibleContent=()=>
3yl(this.minPrice,this.backgroundColor),this.updateVariant=e=>{var t;const n=null===(t=this.variants)||void 0===t?void 0:t.find((t=>Number(t.id)===e));return this.eligible=Boolean(null==n?void 0:n.eligible),this.loanTypes=(null==n?void 0:n.available_loan_types)||[],this.updateBannerPrice(null==n?void 0:n.price),(null==n?void 0:n.price)||""},this.calculatePricePerTerm=(e,t)=>{const n=t.apr/1200,o=t.installments_count;if(0===n)return Il(e/o);return Il(e*n*Math.pow(1+n,o)/(Math.pow(1+n,o)-1))},this.updateBannerPrice=e=>{var t;let n;n=this.eligible?this.getContent(e):this.getIneligibleContent();const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#shopify-installments-content");o&&(o.innerHTML=n)},this.monorailTracker=new dn("shop-pay-banner"),this.modalMonorailTracker=new dn("shopify-installments-modal"),customElements.get("shopify-installments-modal")||customElements.define("shopify-installments-modal",Fl),customElements.get("shop-pay-logo")||customElements.define("shop-pay-logo",nl),this.attachShadow({mode:"open"}).innerHTML=_l}static get observedAttributes(){return["variant-id","shopify-meta"]}attributeChangedCallback(){this.didMount&&this.updateBanner()}connectedCallback(){return o(this,void 0,void 0,(function*(){this.updateBanner(),this.didMount=!0}))}updateBanner(){try{const e=this.getAttribute("shopify-meta");if(e){const t=JSON.parse(e);this.backgroundColor=Dl(this.shadowRoot),dl(t,this.monorailTracker.trackInvalidInstallmentBannerMetadata.bind(this.monorailTracker))&&(t.type===Qt.Cart?(this.monorailTracker.trackElementImpression(Qt.Cart),this.metaType=Qt.Cart,this.handleCartMeta(t)):(this.monorailTracker.trackElementImpression(Qt.Product),this.metaType=Qt.Product,this.handleProductMeta(t))),this.updateLearnMoreButtonAndModal()}}catch(e){e instanceof TypeError&&e.message.match(jl)?console.error(e):pe(e,this.componentMetadata()),this.clearShadowRoot()}}updateLearnMoreButtonAndModal(){var e;return o(this,void 0,void 0,(function*(){const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".shopify-installments__learn-more"),n=D();if(t){t.innerHTML="Learn&nbsp;more",this.monorailTracker.trackInstallmentsBannerImpression(this.metaType,Yt.PayInFour,this.eligible,Xt.CustomizedByMerchant,void 0,this.currentVariantId);const e=()=>{if(this.pricePerTerm&&!this.open){this.open=!0,this.modalMonorailTracker.trackElementImpression(this.metaType);const e={minPrice:this.minPrice,maxPrice:this.maxPrice},o=new Fl(this.pricePerTerm,this.eligible,e,this.loanTypes,n,this.modalMonorailTracker,void 0,nn.SplitPay),i=new Ol(o.querySelector("#shopify-payment-terms-modal"));o.addEventListener("shopify_modal_close",(()=>{this.open=!1,Wl(),i.release(t)}));const s=o.getModalHeight();$l(o,s),this.instrumentMonorailModalOpenEvent(o,this.metaType),i.lock()}};this.lastLearnMoreEventListener&&t.removeEventListener("click",this.lastLearnMoreEventListener),this.lastLearnMoreEventListener=e,t.addEventListener("click",e)}}))}handleProductMeta(e){this.variants=e.variants,this.minPrice=e.min_price,this.minPriceNumber=Rl(this.minPrice),this.maxPrice=e.max_price,this.maxPriceNumber=Rl(this.maxPrice),this.currentVariantId=Number(this.getAttribute("variant-id")),this.pricePerTerm=this.updateVariant(this.currentVariantId),this.numberOfPaymentTerms=e.number_of_payment_terms;const t=this.getProductForm();if(t){const e=(n=0)=>{if(n>4)return;const o=Bl(t);o&&(this.currentVariantId===o?setTimeout((()=>{e(n+1)}),100):(this.pricePerTerm=this.updateVariant(o),this.currentVariantId=o,this.updateLearnMoreButtonAndModal()))};this.hasChangeEventListener||(this.hasChangeEventListener=!0,t.addEventListener("change",(()=>{e()})))}}handleCartMeta(e){const t=Nl();this.minPrice=e.min_price,this.minPriceNumber=Rl(this.minPrice),this.maxPrice=e.max_price,this.maxPriceNumber=Rl(this.maxPrice),this.loanTypes=e.available_loan_types,this.eligible=e.eligible,this.pricePerTerm=e.price,this.numberOfPaymentTerms=e.number_of_payment_terms,this.updateBannerPrice(this.pricePerTerm),t||zl();new MutationObserver((e=>{e.forEach((e=>{if(e.target.nodeType!==Node.ELEMENT_NODE)return;const n=e.target;if((n.matches("[data-cart-subtotal]")||t&&n.matches(t))&&n.textContent){const e=Rl(n.textContent);if(e){this.eligible=this.priceEligible(e);const t=this.splitCartPrice(e);if(t){const e=Il(t);this.pricePerTerm=e,this.updateBannerPrice(e)}}}}))})).observe(document,{attributes:!0,childList:!0,subtree:!0})}splitCartPrice(e){if(!isNaN(e))return Math.floor(e/this.numberOfPaymentTerms*100)/100}priceEligible(e){return null!=this.minPriceNumber&&null!=this.maxPriceNumber&&e>=this.minPriceNumber&&e<=this.maxPriceNumber}instrumentMonorailModalOpenEvent(e,t){this.modalMonorailTracker.trackModalOpened(t,e.getModalToken(),e.getModalType(),JSON.stringify([]),this.currentVariantId,void 0)}
3getProductForm(){var e,t,n;return null===(n=null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.host.parentNode)||void 0===t?void 0:t.host)||void 0===n?void 0:n.closest("form")}clearShadowRoot(){this.shadowRoot&&(this.shadowRoot.innerHTML="")}componentMetadata(){return{component:{name:"shop-pay-banner",shopifyMeta:this.getAttribute("shopify-meta"),variantId:this.getAttribute("variant-id")}}}}class Vl extends HTMLElement{constructor(e,t,n,o,i,s){var r;super(),this.trackContinueToCheckout=!0,this.handleClose=()=>{this.monorailTracker.trackModalAction(this.modalToken,tn.Close,this.permalink);const e=new Event("shopify_modal_close");this.dispatchEvent(e)},this.handleEscKey=e=>{"Escape"!==e.key&&"Esc"!==e.key||this.handleClose()},this.handleContinueToCheckout=()=>{this.trackContinueToCheckout&&this.monorailTracker.trackModalAction(this.modalToken,tn.ContinueToCheckout,this.permalink)};const a=document.createElement("template");this.modalToken=e,this.monorailTracker=t,this.trackContinueToCheckout=null===(r=null==i?void 0:i.available)||void 0===r||r,this.samplePlans=function(e,t){return e.map((({pricePerTerm:e,apr:n,numberOfPaymentTerms:o,loanType:i})=>{const s=Rl(e)*o,r=Rl(t);return{pricePerTerm:e,apr:n,numberOfPaymentTerms:o,interest:Il(0===n?0:s-r),totalPriceWithInterest:Il(0===n?r:s),loanType:i}}))}(n,o);const{subTitle:l,legalCopy:c}=function(e,t){return{subTitle:Ml(e,t),legalCopy:Cl.DYNAMIC_PDP}}(this.samplePlans.length,o);a.innerHTML=function(e,t,n){return`\n  <style>\n    ${Ll}\n\n    #shopify-payment-terms-modal header {\n      display: flex;\n      flex-direction: column;\n    }\n\n    #shopify-payment-terms-modal #header-icons {\n      display: flex;\n      width: 100%;\n      justify-content: space-between;\n      align-items: baseline;\n      margin-bottom: 16px;\n    }\n\n    #shopify-payment-terms-modal .btn__close {\n      margin: 0;\n      background: transparent;\n      border: none;\n      -webkit-font-smoothing: inherit;\n      appearance: button;\n      cursor: pointer;\n    }\n\n    #shopify-payment-terms-modal h1 {\n      font-size: 30px;\n      font-weight: 600;\n      line-height: 120%;\n      margin: 0;\n      max-width: 100%;\n      font-family: inherit;\n      letter-spacing: 0.02em;\n    }\n\n    #shopify-payment-terms-modal .tagline {\n      margin: 0 0 16px 0;\n      line-height: 24px;\n    }\n\n    #shopify-payment-terms-modal .list-item {\n      display: flex;\n      justify-content: space-between;\n      flex-direction: column;\n      border-radius: 5px;\n      margin-bottom: 12px;\n      padding: 9px 11px;\n      background-color: #F5F5F5;\n      color: #707070;\n    }\n\n    #shopify-payment-terms-modal .list-item__price-per-term {\n      font-size: 18px;\n      font-weight: 600;\n    }\n\n    #shopify-payment-terms-modal .list-item__frequency {\n      font-size: 16px;\n    }\n\n    #shopify-payment-terms-modal .list-item__payment-length {\n      padding: 2px 0px;\n      background: #F0F2F4;\n      border-radius: 4px;\n    }\n    #shopify-payment-terms-modal .list-item__number-of-terms {\n      font-size: 14px;\n    }\n    #shopify-payment-terms-modal .list-item__interest-details-container {\n      display: flex;\n    }\n\n    #shopify-payment-terms-modal .list-item__interest-detail-label {\n      font-size: 12px;\n    }\n\n    #shopify-payment-terms-modal .list-item__interest-detail-value {\n      font-size: 17px;\n    }\n\n    #shopify-payment-terms-modal .list-item__financial-container {\n      display: flex;\n      justify-content: space-between;\n      margin-bottom: 12px;\n    }\n\n    #shopify-payment-terms-modal .list-item__amount-per-interval {\n      display: flex;\n      align-items: center;\n    }\n\n\n    #shopify-payment-terms-modal .list-item__interest-detail {\n      display: flex;\n      flex-direction: column;\n      width: 80px;\n      margin-right: 12px;\n    }\n\n    #shopify-payment-terms-modal .navigation-buttons {\n      display: flex;\n      flex-direction: column;\n      align-items: center;\n      margin-top: 16px;\n    }\n  </style>\n  <div\n    id="shopify-payment-terms-modal"\n    role="dialog"\n    aria-modal="true"\n    aria-labelledby="shopify-payment-terms-modal-heading"\n    tabindex="-1">\n    <section class="modal-wrapper">\n      <header>\n        <div id="header-icons">\n          <h1 id="shopify-payment-terms-modal-heading">Get it now, pay later</h1>\n          <button type="button" class="btn__close btn__close--icon" aria-label="Close">\n            <svg class="close__icon" aria-hidden="true"><use xlink:href="#close" /></svg>\n          </button>\n        </div>\n      </header>\n      <div hidden id="shopify-payment-terms-modal-warning-text">Opens in a new window.</div>\n      <p class="tagline">${e}</p>\n      <ul class="list">\n        ${n.map((({pricePerTerm:e,apr:t,numberOfPaymentTerms:n,interest:o,totalPriceWithInterest:i,loanType:s})=>`\n          <li class="list-item">\n            <div class="list-item__financial-container">
3\n              <span class="list-item__amount-per-interval">\n                <b class="list-item__price-per-term">${e}</b>&nbsp;<span class="list-item__frequency">${s===Jt.SplitPay?"/ 2 weeks":"/ month"}</span>\n              </span>\n              <div class="list-item__payment-length">\n                <span class="list-item__number-of-terms">${s===Jt.SplitPay?2*n+" weeks":`${n} months`}</span>\n              </div>\n            </div>\n            <div class="list-item__interest-details-container">\n              <div class="list-item__interest-detail">\n                <span class="list-item__interest-detail-label">APR</span>\n                <span class="list-item__interest-detail-value list-item__apr-amount">${t}%</span>\n              </div>\n              <div class="list-item__interest-detail">\n                <span class="list-item__interest-detail-label">Interest</span>\n                <span class="list-item__interest-detail-value">${o}</span>\n              </div>\n              <div class="list-item__interest-detail">\n                <span class="list-item__interest-detail-label">Total</span>\n                <span class="list-item__interest-detail-value">${i}</span>\n              </div>\n            </div>\n          </li>\n        `)).join("")}\n      </ul>\n      <div class="navigation-buttons"></div>\n      <p id="eligibility-approval" class="help_text">\n        <small>\n          ${t}\n        </small>\n      </p>\n      <footer>\n        <div class="shop-pay-logo-wrapper">\n          <shop-pay-logo role="img" aria-label="Shop Pay" size="large"></shop-pay-logo>\n        </div>\n        <div class="affirm-text">\n          <span>Installments in partnership with</span>\n            <svg role="img" aria-labelledby="shopify-payment-terms-modal-affirm" class="affirm-logo"><use xlink:href="#affirm" /></svg>\n        </div>\n      </footer>\n      <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" style="display: none;">\n        <symbol id="fees-icon" viewBox="0 0 21 18" fill="none">\n          <path d="M18.5 10.5474C18.5 15.267 14.5995 19.1236 9.75 19.1236C4.90048 19.1236 1 15.267 1 10.5474C1 5.82767 4.90048 1.97107 9.75 1.97107C14.5995 1.97107 18.5 5.82767 18.5 10.5474Z" stroke="#0B0B0C" stroke-width="2"/>\n          <path d="M11.4875 8.06938C11.8819 8.456 12.515 8.4497 12.9016 8.05531C13.2882 7.66092 13.2819 7.02778 12.8875 6.64117L11.4875 8.06938ZM10.0408 6.55725V7.55725V6.55725ZM7.1335 12.4337C6.70617 12.0838 6.07613 12.1466 5.72626 12.5739C5.37639 13.0013 5.43917 13.6313 5.8665 13.9812L7.1335 12.4337ZM12.1875 7.35527C12.8875 6.64117 12.8872 6.64088 12.887 6.6406C12.8869 6.6405 12.8866 6.64021 12.8864 6.64001C12.8859 6.63961 12.8855 6.6392 12.8851 6.63878C12.8842 6.63793 12.8833 6.63703 12.8823 6.63609C12.8804 6.63419 12.8782 6.6321 12.8758 6.62982C12.871 6.62526 12.8654 6.61993 12.8589 6.61388C12.8459 6.6018 12.8294 6.58683 12.8096 6.5694C12.7699 6.53459 12.7164 6.48973 12.6497 6.43832C12.5166 6.33585 12.328 6.20519 12.0884 6.07602C11.6099 5.81808 10.9106 5.55725 10.0408 5.55725V7.55725C10.5036 7.55725 10.8777 7.69544 11.1394 7.83651C11.2698 7.90684 11.3681 7.97569 11.4293 8.02285C11.4597 8.04625 11.4802 8.06374 11.4903 8.07257C11.4953 8.07696 11.4976 8.07914 11.4972 8.07874C11.497 8.07854 11.4961 8.07769 11.4944 8.07615C11.4936 8.07538 11.4927 8.07443 11.4915 8.07331C11.4909 8.07274 11.4903 8.07214 11.4896 8.07148C11.4893 8.07116 11.4889 8.07082 11.4886 8.07047C11.4884 8.07029 11.4881 8.07002 11.488 8.06993C11.4877 8.06966 11.4875 8.06938 12.1875 7.35527ZM10.0408 5.55725C8.12515 5.55725 6.90378 6.0365 6.19464 6.83562C5.49081 7.62876 5.5 8.51566 5.5 8.77398L7.5 8.77398C7.5 8.58897 7.50919 8.3675 7.69057 8.1631C7.86664 7.96469 8.41567 7.55725 10.0408 7.55725V5.55725ZM5.5 8.77398C5.5 10.0149 6.8138 11.5474 10.0408 11.5474V9.54737C7.35373 9.54737 7.5 8.41981 7.5 8.77398L5.5 8.77398ZM10.0408 11.5474C11.3127 11.5474 11.7267 11.9199 11.8526 12.072C11.9294 12.1647 11.9638 12.2521 11.9797 12.3098C11.9877 12.3388 11.9908 12.3595 11.9919 12.3681C11.9924 12.3721 11.9925 12.3743 11.9927 12.376C11.9927 12.3767 11.9928 12.3777 11.9929 12.3796C11.993 12.3801 11.9934 12.3859 11.9937 12.3909C11.9938 12.3916 11.9953 12.4128 11.9983 12.4379C11.9991 12.4448 12.004 12.4884 12.0163 12.5424C12.0206 12.5613 12.0384 12.6404 12.081 12.7343C12.1072 12.7876 12.1909 12.9199 12.2529 12.9949C12.374 13.1073 12.744 13.2896 12.9915 13.3208V11.3208C13.239 11.3519 13.609 
311.5342 13.7301 11.6466C13.7921 11.7215 13.8758 11.8538 13.9019 11.907C13.9445 12.0008 13.9622 12.0798 13.9664 12.0985C13.9786 12.152 13.9835 12.195 13.9842 12.201C13.9859 12.2154 13.9869 12.2264 13.9873 12.2305C13.9877 12.2355 13.988 12.2393 13.9881 12.2405C13.9882 12.2421 13.9883 12.2437 13.988 12.2392C13.9878 12.2363 13.9874 12.2314 13.987 12.2257C13.9852 12.2014 13.9821 12.1655 13.9765 12.121C13.9655 12.0326 13.9455 11.9148 13.9076 11.7775C13.8317 11.5027 13.6833 11.1468 13.3928 10.7961C12.7843 10.0615 11.7261 9.54737 10.0408 9.54737V11.5474ZM12.9915 13.3208C12.7152 13.2818 12.3392 13.0787 12.2329 12.9723C12.1834 12.9097 12.1152 12.8024 12.0934 12.7604C12.0576 12.6873 12.0393 12.6263 12.0345 12.6106C12.0212 12.5665 12.014 12.5313 12.0123 12.5227C12.0071 12.4972 12.0042 12.4778 12.0034 12.4721C12.0011 12.4564 12.0001 12.4462 11.9998 12.4436C11.9991 12.4365 11.9995 12.4381 11.9998 12.4473C12.0003 12.4656 12.0003 12.5037 11.9945 12.5544C11.9827 12.6586 11.9503 12.7886 11.8754 12.9129C11.7692 13.089 11.4095 13.5375 10.0408 13.5375V15.5375C11.9075 15.5375 13.0264 14.8776 13.5883 13.9454C13.8474 13.5154 13.9465 13.0913 13.9818 12.7798C13.9996 12.6227 14.002 12.4876 13.9988 12.3847C13.9972 12.3333 13.9941 12.2872 13.9902 12.2477C13.9883 12.2288 13.9858 12.2062 13.9822 12.1821C13.9808 12.1723 13.9774 12.1497 13.9717 12.122C13.9698 12.1124 13.9624 12.0764 13.9489 12.0317C13.9441 12.0157 13.9257 11.9545 13.8899 11.8814C13.868 11.8393 13.7998 11.7319 13.7502 11.6693C13.6439 11.5628 13.2679 11.3597 12.9915 11.3208V13.3208ZM10.0408 13.5375C9.30305 13.5375 8.58044 13.2774 8.00962 12.9834C7.73057 12.8397 7.50347 12.696 7.34846 12.59C7.27131 12.5372 7.21302 12.4944 7.17616 12.4666C7.15775 12.4527 7.14477 12.4426 7.13753 12.4369C7.13392 12.434 7.13175 12.4323 7.13106 12.4317C7.13071 12.4314 7.13074 12.4315 7.13115 12.4318C7.13135 12.432 7.13165 12.4322 7.13204 12.4325C7.13224 12.4327 7.13245 12.4329 7.1327 12.4331C7.13282 12.4331 7.13302 12.4333 7.13308 12.4334C7.13329 12.4335 7.1335 12.4337 6.5 13.2074C5.8665 13.9812 5.86672 13.9814 5.86696 13.9816C5.86704 13.9816 5.86728 13.9818 5.86745 13.982C5.86779 13.9822 5.86816 13.9825 5.86855 13.9829C5.86934 13.9835 5.87023 13.9842 5.87122 13.985C5.8732 13.9866 5.87559 13.9886 5.87838 13.9908C5.88396 13.9953 5.89114 14.001 5.89989 14.0079C5.91739 14.0217 5.94118 14.0402 5.97093 14.0626C6.03039 14.1075 6.11399 14.1687 6.21908 14.2406C6.42854 14.3839 6.72734 14.5727 7.09394 14.7615C7.81445 15.1326 8.86225 15.5375 10.0408 15.5375V13.5375Z" fill="#0B0B0C"/>\n          <path d="M9.75 4.96118L9.75 16.1335" stroke="#0B0B0C" stroke-width="2" stroke-linecap="round"/>\n        </symbol>\n        <symbol id="cc-icon" viewBox="0 0 21 16" fill="none">\n          <path\n          d="M17.3636 1H2.63636C1.73262 1 1 1.7835 1 2.75V13.25C1 14.2165 1.73262 15 2.63636 15H17.3636C18.2674 15 19 14.2165 19 13.25V2.75C19 1.7835 18.2674 1 17.3636 1Z"\n          stroke="#0B0B0C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />\n          <path d="M1 6L19 6" stroke="#0B0B0C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />\n          <path d="M13 11H15" stroke="#0B0B0C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />\n        </symbol>\n        <symbol id="affirm" viewBox="0 0 40 22" fill="none">\n          <title id="shopify-payment-terms-modal-affirm">Affirm</title>\n          <path fill="#000000"\n            d="M3.058 14.543c-.482 0-.724-.236-.724-.623 0-.72.812-.965 2.292-1.121 0 .962-.656 1.744-1.569 1.744zm.638-5.413c-1.058 0-2.275.495-2.936 1.017l.604 1.26c.53-.48 1.386-.892 2.159-.892.734 0 1.14.243 1.14.734 0 .33-.269.497-.777.563C1.99 12.056.5 12.575.5 14.026c0 1.15.826 1.846 2.116 1.846.92 0 1.74-.507 2.129-1.176v.99H6.46v-4.148c0-1.712-1.2-2.408-2.764-2.408zM20.92 9.318v6.367h1.837v-3.068c0-1.458.89-1.886 1.51-1.886.243 0 .57.07.785.23l.334-1.684a2.104 2.104 0 00-.822-.147c-.944 0-1.538.415-1.929 1.258v-1.07h-1.714zM33.899 9.13c-.971 0-1.697.57-2.075 1.118-.35-.709-1.093-1.118-1.983-1.118-.971 0-1.643.535-1.954 1.15v-.962h-1.77v6.367h1.838v-3.277c0-1.177.621-1.742 1.201-1.742.525 0 1.007.337 1.007 1.207v3.812h1.835v-3.277c0-1.19.606-1.742 1.213-1.742.486 0 .998.35.998 1.193v3.826h1.834v-4.401c0-1.431-.971-2.154-2.144-2.154zM16.452 9.317h-1.664v-.648c0-.842.485-1.083.903-1.083.462 0 .822.203.822.203l.566-1.284s-.573-.372-1.617-.372c-1.173 0-2.508.656-2.508 2.716v.468h-2.785v-.648c0-.842.485-1.083.903-1.083.238 0 .557.054.822.203l.566-1.284c-.338-.196-.88-.372-1.617-.372-1.
3173 0-2.508.656-2.508 2.716v.468H7.269v1.405h1.066v4.963h1.834v-4.963h2.785v4.963h1.834v-4.963h1.664V9.317zM17.547 15.684h1.832V9.317h-1.832v6.367z" />\n          <path fill="#5A31F4"\n            d="M28.24.434c-4.956 0-9.372 3.413-10.625 7.8h1.795C20.457 4.968 24.012 2.1 28.24 2.1c5.14 0 9.582 3.882 9.582 9.925 0 1.356-.177 2.58-.513 3.66h1.743l.017-.059c.286-1.115.431-2.326.431-3.6 0-6.74-4.95-11.59-11.26-11.59z" />\n        </symbol>\n        <symbol id="squiggle" viewBox="0 0 43 10" fill="none">\n          <path\n            d="M9.62095 5.04617C8.94881 5.25492 8.31699 5.39409 7.71878 5.63067C5.84572 6.36986 4.08993 7.39479 2.50965 8.6715C2.22013 8.91561 1.9685 9.20426 1.76356 9.52739C1.64079 9.72655 1.45521 9.87557 1.23834 9.94914C1.02147 10.0227 0.786683 10.0163 0.573866 9.93098C0.150414 9.81964 0.0159848 9.46476 0.0025419 9.03334C-0.0117113 8.78028 0.0341362 8.52746 0.136075 8.29699C0.238015 8.06651 0.392942 7.86541 0.587309 7.71124C1.44731 6.98191 2.34482 6.30131 3.27589 5.67243C4.88859 4.53384 6.69839 3.72817 8.60601 3.2996C9.16432 3.2139 9.72969 3.18825 10.2931 3.22306C10.5766 3.23472 10.8466 3.35146 11.0539 3.552C11.2611 3.75254 11.3919 4.02352 11.4223 4.31553C11.4514 4.96274 11.4401 5.61122 11.3887 6.25693C11.3887 6.47264 11.3416 6.68835 11.2946 7.03628C11.5734 6.98943 11.8463 6.91006 12.1079 6.79969C13.1228 6.23606 14.1243 5.6933 15.1191 5.04617C16.7687 3.80877 18.5394 2.75456 20.4022 1.90096C21.4062 1.47852 22.4848 1.27937 23.568 1.31645C23.7541 1.30668 23.9402 1.33708 24.1144 1.40573C24.2886 1.47438 24.447 1.57978 24.5798 1.71523C24.7125 1.85068 24.8166 2.01322 24.8854 2.19254C24.9542 2.37186 24.9862 2.56402 24.9795 2.75685C24.9795 3.30656 24.9123 3.85628 24.8719 4.46166C24.9997 4.3712 25.1542 4.27378 25.3088 4.17636C26.7002 3.24394 28.0646 2.2628 29.4963 1.393C30.9457 0.454744 32.6266 -0.028641 34.3358 0.00131229C35.3238 0.0361044 35.8078 0.50232 35.8078 1.51129C35.8195 1.97782 35.7835 2.44432 35.7002 2.90297C35.5848 3.41514 35.4389 3.91943 35.2633 4.41295C35.5053 4.26682 35.6666 4.18332 35.8145 4.0859C37.5361 2.791 39.3752 1.67239 41.3059 0.745863C41.5215 0.653045 41.7472 0.587624 41.9781 0.551028C42.1749 0.499154 42.3835 0.528135 42.5601 0.6319C42.7368 0.735666 42.8678 0.906168 42.9258 1.1077C43.0097 1.31745 43.0229 1.55039 42.9631 1.76883C42.9033 1.98728 42.7742 2.17848 42.5964 2.31151C42.5112 2.38001 42.4187 2.43837 42.3209 2.48547C40.393 3.40943 38.5543 4.52081 36.8294 5.80463C36.453 6.05514 36.0766 6.30564 35.6868 6.54223C35.4484 6.71142 35.1882 6.84495 34.9138 6.93886C33.4082 7.32853 32.5882 6.93886 32.8638 5.28971C32.9948 4.73065 33.1702 4.18373 33.388 3.65448C33.5762 3.11868 33.7913 2.5968 34.0602 1.93575C33.5628 2.02621 33.1864 2.07492 32.8302 2.17234C31.1747 2.70218 29.6179 3.5186 28.226 4.58691C27.1035 5.37321 26.0146 6.20126 24.8652 6.9319C24.4142 7.18452 23.9125 7.32507 23.3999 7.34244C23.2503 7.3709 23.0962 7.3608 22.9512 7.31303C22.8062 7.26527 22.6747 7.18131 22.5685 7.06855C22.4622 6.9558 22.3844 6.81771 22.3418 6.66646C22.2993 6.51521 22.2933 6.35545 22.3245 6.20126C22.4231 5.49335 22.5782 4.79511 22.7883 4.11374C22.8992 3.78799 23.0294 3.46962 23.1781 3.16044C22.6262 3.27341 22.0843 3.43401 21.5583 3.64057C20.2543 4.33641 18.9571 5.03225 17.7001 5.72809C16.3559 6.54223 15.0116 7.44682 13.6673 8.28183C12.8993 8.75227 12.0091 8.96383 11.1198 8.88721C10.8941 8.89799 10.6688 8.85872 10.459 8.77204C10.2491 8.68537 10.0595 8.55327 9.903 8.38461C9.74644 8.21596 9.6265 8.01462 9.5512 7.79409C9.4759 7.57355 9.44697 7.3389 9.46636 7.10586C9.48652 6.50048 9.54702 5.83943 9.62095 5.04617Z"\n            fill="#BDADFB" />\n        </symbol>\n        <symbol id="close" viewBox="0 0 14 14" fill="none">\n          <path fill-rule="evenodd" clip-rule="evenodd" d="M8.547 6.77l5.322-5.086A.468.468 0 0014 1.347a.662.662 0 00-.131-.379l-.875-.842A.725.725 0 0012.6 0c-.175 0-.262.042-.35.126L7 5.136 1.75.127A.508.508 0 001.4 0c-.175 0-.306.042-.394.126L.131.968a.662.662 0 00-.131.38c0 .126.044.252.175.336L5.453 6.73.13 11.816a.468.468 0 00-.131.337c0 .126.044.252.131.379l.875.842a.724.724 0 00.394.126c.175 0 .263-.042.35-.126L7 8.364l5.25 5.01a.508.508 0 00.35.126c.175 0 .306-.042.394-.126l.875-.842a.662.662 0 00.131-.38.378.378 0 00-.175-.336L8.547 6.77z" fill="#000000"/>\n        </symbol>\n      </svg>\n    </section>\n  </div>`}(l,c,this.samplePlans),this.appendChild(a.content.cloneNode(!0));const u=this.getElementsByClassName("navigation-buttons")[0];u.innerHTML=function(e,t,n){const o=void 0===t?"":`variants="${t.idQuantityMapping}" ${!1===t.available?"disabled":""}`,i=!1===(null==t?void 0:t.available)?"Unavailable":"Continue to checkout",s=void 0===n?"":`cart=${encodeURIComponent(JSON.stringify({currency:n.currency,items:n.items,token:n.token}
3))}`;return`\n    <style>\n      #shopify-payment-terms-modal .sample-close-button {\n        margin: 23px 0 15px;\n        width: 100%;\n        color: #5a31f4;\n        font-size: 1.5rem;\n      }\n    </style>\n    <shop-pay-button style="width: 100%; --shop-pay-button-width: auto;" store-url="${window.location.origin}" ${o} button-text="${i}" payment-option="shop_pay_installments" source="installments_modal" source-token="${e}" ${s}></shop-pay-button>\n    <button class="btn__close sample-close-button">Close</button>\n  `}(this.modalToken,i,s),this.continueToCheckoutButton=u.querySelector("shop-pay-button"),this.permalink=s?s.token:sl(window.location.origin,i?rl(i.idQuantityMapping):[],ol.ShopPayInstallments,"installments_modal",this.modalToken)}connectedCallback(){this.closeButtons=this.querySelectorAll(".btn__close"),this.closeButtons&&0!==this.closeButtons.length&&(this.closeButtons.forEach((e=>e.addEventListener("click",this.handleClose))),this.closeButtons[0].focus(),this.continueToCheckoutButton&&this.continueToCheckoutButton.addEventListener("click",this.handleContinueToCheckout),window.addEventListener("keydown",this.handleEscKey))}disconnectedCallback(){this.closeButtons&&(this.closeButtons.forEach((e=>e.removeEventListener("click",this.handleClose))),this.continueToCheckoutButton&&this.continueToCheckoutButton.removeEventListener("click",this.handleContinueToCheckout),window.removeEventListener("keydown",this.handleEscKey))}getModalSamplePlans(){return this.samplePlans}getPermalink(){return this.permalink}getModalToken(){return this.modalToken}getModalHeight(){return"717px"}
3getModalType(){if(this.samplePlans.some((e=>0===e.apr&&e.loanType===Jt.Interest))){return this.samplePlans.every((e=>0===e.apr))?en.ZeroInterestOnly:en.ZeroInterest}return this.samplePlans.some((e=>e.loanType===Jt.SplitPay))&&this.samplePlans.some((e=>e.loanType===Jt.Interest))?en.Adaptive:en.InterestOnly}}class Hl extends HTMLElement{constructor(){super(),this.minPrice="$50",this.maxPrice="$3000",this.open=!1,this.eligible=!1,this.numberOfCartPaymentTerms=4,this.hasChangeEventListener=!1,this.loanTypes=[],this.metaType=Qt.Product,this.backgroundColor="",this.didMount=!1,this.variantAvailable=!0,this.getContent=e=>{if(!this.loanTypes.length)return this.getIneligibleContent(this.backgroundColor);if(this.financingTermForBanner&&this.hasZeroInterestLoanType())return t=e,n=this.backgroundColor,o=0===this.financingTermForBanner.apr,`\nFrom <b>${t}</b>/mo ${o?"at":"or"} 0% APR with <shop-pay-logo role="img" aria-label="Shop Pay" background-color="${n}"></shop-pay-logo>\n`;var t,n,o;if(this.financingTermForBanner&&this.isInAdaptiveRangeWithoutZeroInterest())return((e,t)=>`4 interest-free installments or from <b>${e}</b>/mo with <shop-pay-logo role="img" aria-label="Shop Pay" background-color="${t}"></shop-pay-logo>\n`)(e,this.backgroundColor);if(this.loanTypes.includes(Jt.SplitPay))return bl(e||"",this.backgroundColor);return this.loanTypes.includes(Jt.Interest)?((e,t)=>`\nFrom <b>${e}</b>/mo with <shop-pay-logo role="img" aria-label="Shop Pay" background-color="${t}"></shop-pay-logo>\n`)(e,this.backgroundColor):this.getIneligibleContent(this.backgroundColor)},this.getIneligibleContent=e=>{const t=this.minIneligibleMessageType===nn.Monthly?((e,t)=>`\nSplit your purchase into monthly installments for orders over <b>${e}</b> with <shop-pay-logo role="img" aria-label="Shop Pay" background-color="${t}"></shop-pay-logo>\n`)(this.minPrice,this.backgroundColor):yl(this.minPrice,this.backgroundColor);if(!this.fullPrice)return t;return Rl(this.fullPrice)>Rl(this.maxPrice)?((e,t)=>`\nSplit your purchase into installments for orders up to <b>${e}</b> with <shop-pay-logo role="img" aria-label="Shop Pay" background-color="${t}"></shop-pay-logo>\n`)(this.maxPrice,e):t},this.updatePDPVariant=(e,t)=>{var n;const o=null===(n=this.variants)||void 0===n?void 0:n.find((t=>Number(t.id)===e));if(!o)return this.eligible=!1,this.loanTypes=[],this.updateBannerPrice(),"";this.eligible=o.eligible,this.loanTypes=this.getAvailableLoanTypes(o.full_price,t),this.variantAvailable=o.available;const i=Rl(o.full_price),s=this.getFinancingPlanForPrice(i,t);if(!s)return this.updateBannerPrice(o.price_per_term),o.price_per_term;if(this.financingTermForBanner=this.getFinancingTermForBanner(s),this.financingTermForBanner.loan_type===Jt.SplitPay)return this.updateBannerPrice(o.price_per_term),o.price_per_term;const r=this.calculatePricePerTerm(i,this.financingTermForBanner);return this.updateBannerPrice(r),r},this.calculatePricePerTerm=(e,t)=>{const n=t.apr/1200,o=t.installments_count;if(0===n)return Il(e/o);return Il(e*n*Math.pow(1+n,o)/(Math.pow(1+n,o)-1))},this.updateBannerPrice=e=>{var t;let n;n=this.eligible&&e?this.getContent(e):this.getIneligibleContent(this.backgroundColor);const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("#shopify-installments-content");o&&(o.innerHTML=n)},this.monorailTracker=new dn("shop-pay-installments-banner"),this.modalMonorailTracker=new dn("shopify-installments-modal"),customElements.get("shopify-installments-modal")||customElements.define("shopify-installments-modal",Fl),customElements.get("shopify-installments-sample-plans-modal")||customElements.define("shopify-installments-sample-plans-modal",Vl),customElements.get("shop-pay-logo")||customElements.define("shop-pay-logo",nl),this.attachShadow({mode:"open"}).innerHTML=_l}static get observedAttributes(){return["variant-id","shopify-meta"]}attributeChangedCallback(){this.didMount&&this.updateBanner()}connectedCallback(){return o(this,void 0,void 0,(function*(){this.updateBanner(),this.didMount=!0}))}isInAdaptiveRangeWithoutZeroInterest(){return this.eligible&&!this.hasZeroInterestLoanType()&&2===this.loanTypes.length&&this.loanTypes.includes(Jt.SplitPay)&&this.loanTypes.includes(Jt.Interest)}updateBanner(){try{const t=this.getAttribute("shopify-meta");if(t){const n=JSON.parse(t);this.backgroundColor=Dl(this.shadowRoot);const o=this.getLowestLoanTypes(n.financing_plans);this.minIneligibleMessageType=(e=o)&&(e.includes(Jt.Interest)&&!e.includes(Jt.SplitPay)||e.includes(Jt.ZeroPercent))?nn.Monthly:nn.SplitPay,hl(n,this.monorailTracker.trackInvalidInstallmentBannerMetadata.bind(this.monorailTracker))&&(n.type===Qt.Cart?(this.monorailTracker.trackElementImpression(Qt.Cart),this.metaType=Qt.Cart,this.handleCartMeta(n)):(this.monorailTracker.trackElementImpression(Qt.Product),this.metaType=Qt.Product,this.handleProductMeta(n))),this.updateLearnMoreButtonAndModal()}}catch(e){e instanceof TypeError&&e.message.match(jl)?console.error(e):pe(e,this.componentMetadata()),this.clearShadowRoot()}var e}updateLearnMoreButtonAndModal(){var e;return o(this,void 0,void 0,(function*(){const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".shopify-installments__learn-more"),n=D();if(t){const e=1===this.loanTypes.length&&this.loanTypes[0]===Jt.Interest,{fullPrice:o,installmentPlans:i}=this,s=(null==i?void 0:i.length)&&o&&(this.hasZeroInterestLoanType()||e||this.isInAdaptiveRangeWithoutZeroInterest());
3t.innerHTML=s?"View&nbsp;sample&nbsp;plans":"Learn&nbsp;more",this.monorailTracker.trackInstallmentsBannerImpression(this.metaType,this.getInstallmentBanneContentType(Boolean(s)),this.eligible,Xt.Standard,this.fullPrice,this.currentVariantId),this.metaType===Qt.Cart&&s&&(this.cartDetails=yield this.generateCartDetails());const r=()=>{if(!this.pricePerTerm)return;const e=this.getProductForm(),r=this.metaType===Qt.Product?function(e){if(!e)return 1;const t=e.elements.quantity;if(t)return Number(t.value);const n=e.getAttribute("id"),o=null==n?void 0:n.replace("product-form-installment-",""),i=document.getElementById(`Quantity-${o}`);return i?Number(i.value):1}(e):void 0;if(!this.open){this.open=!0,this.modalMonorailTracker.trackElementImpression(this.metaType);const e={minPrice:this.minPrice,maxPrice:this.maxPrice},a=r?this.buildVariantInfo(r):void 0,l=s?new Vl(n,this.modalMonorailTracker,i,o,a,this.cartDetails):new Fl(this.pricePerTerm,this.eligible,e,this.loanTypes,n,this.modalMonorailTracker,this.fullPrice,this.minIneligibleMessageType),c=new Ol(l.querySelector("#shopify-payment-terms-modal"));l.addEventListener("shopify_modal_close",(()=>{this.open=!1,Wl(),c.release(t)}));const u=l.getModalHeight();$l(l,u),this.instrumentMonorailModalOpenEvent(l,this.metaType),c.lock()}};this.lastLearnMoreEventListener&&t.removeEventListener("click",this.lastLearnMoreEventListener),this.lastLearnMoreEventListener=r,t.addEventListener("click",r)}}))}handleProductMeta(e){this.variants=e.variants,this.minPrice=e.min_price,this.minPriceNumber=Rl(this.minPrice),this.maxPrice=e.max_price,this.maxPriceNumber=Rl(this.maxPrice),this.currentVariantId=Number(this.getAttribute("variant-id")),this.fullPrice=this.getVariantFullPrice(this.currentVariantId),this.pricePerTerm=this.updatePDPVariant(this.currentVariantId,e.financing_plans),this.buildInstallmentPlans(e.financing_plans,this.fullPrice);const t=this.getProductForm();if(t){const n=(o=0)=>{if(o>4)return;const i=Bl(t);i&&(this.currentVariantId===i?setTimeout((()=>{n(o+1)}),100):(this.pricePerTerm=this.updatePDPVariant(i,e.financing_plans),this.fullPrice=this.getVariantFullPrice(i),this.buildInstallmentPlans(e.financing_plans,this.fullPrice),this.currentVariantId=i,this.updateLearnMoreButtonAndModal()))};this.hasChangeEventListener||(this.hasChangeEventListener=!0,t.addEventListener("change",(()=>{n()})))}}handleCartMeta(e){const t=Nl();this.minPrice=e.min_price,this.minPriceNumber=Rl(this.minPrice),this.maxPrice=e.max_price,this.maxPriceNumber=Rl(this.maxPrice),this.fullPrice=e.full_price,this.loanTypes=this.getAvailableLoanTypes(this.fullPrice,e.financing_plans),this.eligible=e.eligible,this.financingTermForBanner=this.getFinancingTermForCart(this.fullPrice,e.financing_plans),this.pricePerTerm=this.financingTermForBanner?this.getCartPricePerTerm(this.fullPrice,this.financingTermForBanner):e.price_per_term,this.numberOfCartPaymentTerms=this.financingTermForBanner?this.financingTermForBanner.installments_count:e.number_of_payment_terms,this.updateBannerPrice(this.pricePerTerm),this.loanTypes.length&&this.buildInstallmentPlans(e.financing_plans,e.full_price),t||zl();new MutationObserver((e=>{e.forEach((e=>{if(e.target.nodeType!==Node.ELEMENT_NODE)return;const n=e.target;if((n.matches("[data-cart-subtotal]")||t&&n.matches(t))&&n.textContent){const e=Rl(n.textContent);if(e){this.fullPrice=n.textContent,this.eligible=this.priceEligible(e);const t=this.splitCartPrice(e);if(t){const e=Il(t);this.pricePerTerm=e,this.updateBannerPrice(e)}}}}))})).observe(document,{attributes:!0,childList:!0,subtree:!0})}buildVariantInfo(e){return{idQuantityMapping:`${this.currentVariantId}:${e}`,available:this.variantAvailable}}getCartPricePerTerm(e,t){const n=Rl(e);return this.calculatePricePerTerm(n,t)}getFinancingTermForCart(e,t){const n=Rl(e),o=this.getFinancingPlanForPrice(n,t);if(o)return this.getFinancingTermForBanner(o)}getVariantFullPrice(e){var t;const n=null===(t=this.variants)||void 0===t?void 0:t.find((t=>Number(t.id)===e));return null==n?void 0:n.full_price}generateCartDetails(){return o(this,void 0,void 0,(function*(){const e=J(window.location.origin);if(e)return il(e)}))}getLowestLoanTypes(e){const t=e?e[0]:null;if(!t)return[];return t.terms.map((e=>e.loan_type===Jt.SplitPay?Jt.SplitPay:0===e.apr?Jt.ZeroPercent:Jt.Interest))}getFinancingPlanForPrice(e,t){return t.find((t=>{const n=Rl(t.min_price),o=Rl(t.max_price);return e>=n&&e<=o}))}getFinancingTermForBanner(e){const t=e.terms.reduce(((e,t)=>t.installments_count>e.installments_count?t:e));if(this.hasZeroInterestLoanType())return t;const n=e.terms.find((e=>e.loan_type===Jt.SplitPay));return n&&!this.isInAdaptiveRangeWithoutZeroInterest()?n:t}buildInstallmentPlans(e,t){if(!t)return;const n=Rl(t),o=this.getFinancingPlanForPrice(n,e);o&&(this.installmentPlans=this.getSampleDisplayedTerms(o.terms).map((e=>({pricePerTerm:this.calculatePricePerTerm(n,e),apr:e.apr,numberOfPaymentTerms:e.installments_count,loanType:e.loan_type}))))}getSampleDisplayedTerms(e){if(e.length<3)return e;if(this.isInAdaptiveRangeWithoutZeroInterest())return[e[0],e[e.length-1]];const t=e.filter((e=>e.loan_type!==Jt.SplitPay));return t.length<3?t:[t[0],t[t.length-1]]}splitCartPrice(e){if(!isNaN(e))return Math.floor(e/this.numberOfCartPaymentTerms*100)/100}priceEligible(e){return null!=this.minPriceNumber&&null!=this.maxPriceNumber&&e>=this.minPriceNumber&&e<=this.maxPriceNumber}instrumentMonorailModalOpenEvent(e,t){e instanceof Fl?this.modalMonorailTracker.trackModalOpened(t,e.getModalToken(),e.getModalType(),JSON.stringify([]),this.currentVariantId,this.fullPrice):this.modalMonorailTracker.trackModalOpened(t,e.getModalToken(),e.getModalType(),JSON.stringify(e.getModalSamplePlans()),this.currentVariantId,this.fullPrice,e.getPermalink())}getInstallmentBanneContentType(e){return e?this.isInAdaptiveRangeWithoutZeroInterest()?Yt.PayInFourAsLowAs:Yt.AsLowAs:Yt.PayInFour}hasZeroInterestLoanType(){return this.loanTypes.includes(Jt.ZeroPercent)}getAvailableLoanTypes(e,t){if(!t||0===t.length)return[];const n=Rl(e),o=this.getFinancingPlanForPrice(n,t);if(!o)return[];const i=new Set;
3return o.terms.forEach((e=>{e.loan_type===Jt.SplitPay?i.add(Jt.SplitPay):0===e.apr?i.add(Jt.ZeroPercent):i.add(Jt.Interest)})),Array.from(i)}getProductForm(){var e,t,n;return null===(n=null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.host.parentNode)||void 0===t?void 0:t.host)||void 0===n?void 0:n.closest("form")}clearShadowRoot(){this.shadowRoot&&(this.shadowRoot.innerHTML="")}componentMetadata(){return{component:{name:"shop-pay-installments-banner",shopifyMeta:this.getAttribute("shopify-meta"),variantId:this.getAttribute("variant-id")}}}}var Kl="e35d7136cee78d344ccffdbd5ca710fa";class Gl extends HTMLElement{constructor(){super();const e=document.createElement("template"),t=this.getAttribute("size")||"",n=this.getAttribute("background-color")||"#FFF";e.innerHTML=function(e=23,t){const[n,o,i]=ro(t),s=`rgb(${n}, ${o}, ${i})`,r=1.15,a=e,l=Math.round(a/r);return`\n    <style>\n      .shop-swirl {\n        height: ${a}px;\n        width: ${l}px;\n        vertical-align: middle;\n      }\n    </style>\n    <svg class="shop-swirl" viewBox="0 0 20 23" fill="none" xmlns="http://www.w3.org/2000/svg">\n        <path d="M0.532357 2.97917C2.29529 1.75241 4.83531 0.895996 7.54118 0.895996C14.7541 0.895996 20 5.76253 20 12.4287C20 18.6435 15.4918 22.9788 9.22061 22.9788C3.85178 22.9788 0 19.3807 0 14.5547C0 11.2829 1.9717 8.86993 4.75528 7.93019L7.00882 11.7331C5.49293 12.4275 4.92114 13.4506 4.92114 14.7179C4.92114 16.801 6.68408 18.2766 9.22409 18.2766C12.3394 18.2766 14.7982 15.822 14.7982 12.5097C14.7982 8.62458 11.7247 5.68151 7.54466 5.68151C5.90176 5.66871 4.29131 6.13796 2.91348 7.03095L0.532357 2.97917Z" fill="${s}"/>\n    </svg>\n  `}(Number.parseInt(t,10),n),this.attachShadow({mode:"open"}).appendChild(e.content.cloneNode(!0))}}function Zl(e,t){customElements.get(e)||customElements.define(e,t)}window.customElements&&(de({apiKey:Kl,appId:"shop-js",appVersion:$}),Zl("shop-discount-auth",qs),Zl("shop-login-button",Xs),Zl("shop-pay-button",ll),Zl("shop-swirl",Gl),Zl("shopify-payment-terms",pl),Zl("shop-pay-banner",ql),Zl("shop-pay-installments-banner",Hl),Zl("shop-follow-button",za),Zl("shop-login-default",tl),Zl("installments-prequal-overlay-modal",vl),window.Shopify||(window.Shopify={}),window.Shopify.SignInWithShop||(window.Shopify.SignInWithShop={initCustomerAccounts:Bn,initShopForNewCustomerAccounts:to}));const Jl={phone_capture:{consent:{title_discount_saved:"Регистрирайте се за текстови съобщения, за да получавате най-актуалните предложения и новини",title_discount_not_saved:"Почти сте готови. Регистрирайте се за текстови съобщения, за да запишете отстъпката.",confirm_button:"Влизане с {phone}",decline_button:"Не искам текстови съобщения",disclosure_heading:"Разкриване на информация чрез SMS от {merchantName}"},consent_confirmed:{title:"Към текстовите съобщения",description:"Отговорете на съобщението, за да се запишете. Вашият код за отстъпка ще бъде приложен автоматично при плащането."},consent_declined:{title:"Няма да получавате текстови съобщения от {merchantName}",description:"Вашият код за отстъпка ще бъде приложен автоматично при плащането."}}};var Ql={shop_discount_auth:Jl},Yl=Object.freeze({__proto__:null,shop_discount_auth:Jl,default:Ql});const Xl={phone_capture:{consent:{title_discount_saved:"Přihlaste se k odběru SMS zpráv a získejte nejnovější nabídky a aktualizace",title_discount_not_saved:"Už to skoro je. Přihlaste se k odběru SMS zpráv a získejte slevu.",confirm_button:"Zaregistrovat se s tel. {phone}",decline_button:"Nechci dostávat SMS zprávy",disclosure_heading:"Zpřístupnění SMS zpráv od obchodníka {merchantName}"},consent_confirmed:{title:"Přejděte ke svým textovým zprávám",description:"Udělte souhlas tak, že odpovíte na textovou zprávu. Slevový kód se automaticky uplatní na pokladně."},consent_declined:{title:"Nebudete dostávat textové zprávy od obchodu {merchantName}",description:"Slevový kód se automaticky uplatní na pokladně."}}};var ec={shop_discount_auth:Xl},tc=Object.freeze({__proto__:null,shop_discount_auth:Xl,default:ec});
3const nc={phone_capture:{consent:{title_discount_saved:"Tilmeld dig sms'er for at få de seneste tilbud og opdateringer.",title_discount_not_saved:"Du er der næsten. Tilmeld dig sms'er for at få din rabat.",confirm_button:"Tilmeld dig med {phone}",decline_button:"Jeg vil ikke modtage sms'er",disclosure_heading:"Sms-aftale for {merchantName}"},consent_confirmed:{title:"Gå til dine sms'er",description:"Besvar tekstbeskeden for at tilmelde dig. Din rabatkode anvendes automatisk på betalingssiden."},consent_declined:{title:"Du vil ikke modtage sms'er fra {merchantName}",description:"Din rabatkode anvendes automatisk på betalingssiden."}}};var oc={shop_discount_auth:nc},ic=Object.freeze({__proto__:null,shop_discount_auth:nc,default:oc});const sc={phone_capture:{consent:{title_discount_saved:"Registriere dich für Textnachrichten, um aktuelle Angebote und Updates zu erhalten",title_discount_not_saved:"Fast fertig. Registriere dich für Textnachrichten, um den Rabatt zu speichern.",confirm_button:"Mit {phone} registrieren",decline_button:"Ich möchte keine Textnachrichten erhalten",disclosure_heading:"SMS-Auskunft von {merchantName}"},consent_confirmed:{title:"Gehe zu deinen Textnachrichten",description:"Antworte zum Aktivieren auf die Textnachricht. Dein Rabattcode wird automatisch beim Checkout angewendet."},consent_declined:{title:"Du erhältst keine SMS-Nachrichten von {merchantName}",description:"Dein Rabattcode wird automatisch beim Checkout angewendet."}}};var rc={shop_discount_auth:sc},ac=Object.freeze({__proto__:null,shop_discount_auth:sc,default:rc});const lc={phone_capture:{consent:{title_discount_saved:"Εγγραφείτε για τη λήψη μηνυμάτων, ώστε να λαμβάνετε τις πιο πρόσφατες προσφορές και ενημερώσεις",title_discount_not_saved:"Κοντεύουμε. Εγγραφείτε για τη λήψη μηνυμάτων, ώστε να αποθηκεύσετε την έκπτωση.",confirm_button:"Εγγραφή με {phone}",decline_button:"Δεν θέλω να λαμβάνω μηνύματα",disclosure_heading:"Δήλωση αποποίησης για SMS από {merchantName}"},consent_confirmed:{title:"Μεταβείτε στα μηνύματά σας",description:"Απαντήστε στο γραπτό μήνυμα για να δηλώσετε συμμετοχή. Ο κωδικός έκπτωσης θα εφαρμοστεί αυτόματα κατά την ολοκλήρωση της αγοράς."},consent_declined:{title:"Δεν θα λαμβάνετε μηνύματα από τον έμπορο {merchantName}",description:"Ο κωδικός έκπτωσης θα εφαρμοστεί αυτόματα κατά την ολοκλήρωση της αγοράς."}}};var cc={shop_discount_auth:lc},uc=Object.freeze({__proto__:null,shop_discount_auth:lc,default:cc});const dc={phone_capture:{consent:{title_discount_saved:"Sign up for texts to get the latest offers and updates",title_discount_not_saved:"Almost there. Sign up for texts to save your discount.",confirm_button:"Sign up with {phone}",decline_button:"I don't want texts",disclosure_heading:"SMS Disclosure from {merchantName}"},consent_confirmed:{title:"Head to your texts",description:"Reply to the text message to opt in. Your discount code will be automatically applied at checkout."},consent_declined:{title:"You will not receive texts from {merchantName}",description:"Your discount code will be automatically applied at checkout."}}};var hc={shop_discount_auth:dc},pc=Object.freeze({__proto__:null,shop_discount_auth:dc,default:hc});const mc={phone_capture:{consent:{title_discount_saved:"Regístrate para recibir mensajes que te permitan obtener las ofertas y noticias más recientes",title_discount_not_saved:"Ya casi estás. Regístrate para recibir mensajes que te permitan obtener descuentos.",confirm_button:"Registrarse con {phone}",decline_button:"No quiero mensajes",disclosure_heading:"Información sobre SMS de {merchantName}"},consent_confirmed:{title:"Ir a tus textos",description:"Responde al mensaje de texto para inscribirte. El código de descuento se aplicará automáticamente en la pantalla de pago."},consent_declined:{title:"No recibirás textos de {merchantName}",description:"El código de descuento se aplicará automáticamente en la pantalla de pago."}}};var fc={shop_discount_auth:mc},gc=Object.freeze({__proto__:null,shop_discount_auth:mc,default:fc});const vc={phone_capture:{consent:{title_discount_saved:"Tilaa tekstiviestit, jotta saat tuoreimmat tarjoukset ja päivitykset",title_discount_not_saved:"Melkein valmista. Tilaa tekstiviestit, jotta voit tallentaa alennuksen.",confirm_button:"Kirjaudu käyttämällä palvelua {phone}",decline_button:"En halua tekstiviestejä",disclosure_heading:"Tekstiviesti-ilmoitukset kauppiaalta {merchantName}"}
3,consent_confirmed:{title:"Siirry tekstiviesteihin",description:"Anna suostumuksesi vastaamalla tekstiviestiin. Alennuskoodiasi käytetään automaattisesti kassalla."},consent_declined:{title:"Et saa tekstiviestejä kauppiaalta {merchantName}",description:"Alennuskoodiasi käytetään automaattisesti kassalla."}}};var _c={shop_discount_auth:vc},bc=Object.freeze({__proto__:null,shop_discount_auth:vc,default:_c});const yc={phone_capture:{consent:{title_discount_saved:"Inscrivez-vous aux SMS pour recevoir les dernières offres et nouvelles",title_discount_not_saved:"Nous y sommes presque. Inscrivez-vous aux SMS pour enregistrer votre réduction",confirm_button:"S’inscrire avec {phone}",decline_button:"Je ne veux pas de SMS",disclosure_heading:"Divulgation de {merchantName} en matière de SMS"},consent_confirmed:{title:"Accédez à vos SMS",description:"Répondez au SMS pour vous abonner. Votre code de réduction sera automatiquement appliqué lors du paiement."},consent_declined:{title:"Vous ne recevrez pas de SMS de {merchantName}",description:"Votre code de réduction sera automatiquement appliqué lors du paiement."}}};var wc={shop_discount_auth:yc},kc=Object.freeze({__proto__:null,shop_discount_auth:yc,default:wc});const Cc={phone_capture:{consent:{title_discount_saved:"टेक्स्ट मैसेज के ज़रिए लेटेस्ट ऑफ़र और अपडेट पाने के लिए साइन अप करें",title_discount_not_saved:"बस हो ही गया. टेक्स्ट मैसेज पाने के लिए साइन अप करें ताकि अपनी डिस्काउंट सेव कर सकें.",confirm_button:"{phone} से साइन अप करें",decline_button:"मुझे टेक्स्ट मैसेज नहीं चाहिए",disclosure_heading:"{merchantName} की ओर से SMS डिस्क्लोज़र"},consent_confirmed:{title:"अपने टेक्स्ट मैसेज पर जाएं",description:"ऑप्ट इन करने के लिए टेक्स्ट मैसेज जवाब दें. चेकआउट के समय आपका डिस्काउंट कोड अपने आप लागू हो जाएगा."},consent_declined:{title:"आपको {merchantName} की ओर से टेक्स्ट मैसेज नहीं मिलेगा",description:"चेकआउट के समय आपका डिस्काउंट कोड अपने आप लागू हो जाएगा."}}};var Sc={shop_discount_auth:Cc},xc=Object.freeze({__proto__:null,shop_discount_auth:Cc,default:Sc});const Ec={phone_capture:{consent:{title_discount_saved:"Prijavite se za primanje tekstnih poruka kako biste dobivali najnovije ponude i novosti",title_discount_not_saved:"Još malo i gotovo. Prijavite se za primanje tekstnih poruka kako biste spremili popust.",confirm_button:"Prijavite se rabeći {phone}",decline_button:"Ne želim primati tekstne poruke",disclosure_heading:"SMS poruke od trgovine {merchantName}"},consent_confirmed:{title:"Otvorite SMS poruke",description:"Odgovorite na SMS za potvrdu. Kod za popust automatski će se primijeniti prilikom plaćanja."},consent_declined:{title:"Nećete dobivati SMS-ove iz trgovine {merchantName}",description:"Kod za popust automatski će se primijeniti prilikom plaćanja."}}};var Ac={shop_discount_auth:Ec},Tc=Object.freeze({__proto__:null,shop_discount_auth:Ec,default:Ac});const Pc={phone_capture:{consent:{title_discount_saved:"Iratkozz fel az SMS-ekre, hogy értesülj az új ajánlatokról és hírekről!",title_discount_not_saved:"Már majdnem elkészültél. Iratkozz az SMS-ekre, hogy megőrizd a kedvezményedet!",confirm_button:"Feliratkozom ezzel a számmal: {phone}",decline_button:"Nem kérek SMS-eket",disclosure_heading:"A(z) {merchantName} tájékoztatója az SMS-ekről"},consent_confirmed:{title:"Az SMS-ek megnyitása",description:"A feliratkozáshoz válaszolj az SMS-re. A pénztárnál automatikusan alkalmazza a rendszer a kedvezménykódot."},consent_declined:{title:"Nem fogsz SMS-t kapni tőle: {merchantName}",description:"A pénztárnál automatikusan alkalmazza a rendszer a kedvezménykódot."}}};var Mc={shop_discount_auth:Pc},Lc=Object.freeze({__proto__:null,shop_discount_auth:Pc,default:Mc});
3const jc={phone_capture:{consent:{title_discount_saved:"Daftar SMS untuk mendapatkan penawaran dan pembaruan terkini",title_discount_not_saved:"Hampir selesai. Daftar SMS untuk menyimpan diskon Anda.",confirm_button:"Daftar dengan {phone}",decline_button:"Saya tidak menginginkan SMS",disclosure_heading:"Pengungkapan SMS dari {merchantName}"},consent_confirmed:{title:"Lihat SMS Anda",description:"Balas SMS untuk menyetujui. Kode diskon Anda akan otomatis diterapkan saat checkout."},consent_declined:{title:"Anda tidak akan menerima SMS dari {merchantName}",description:"Kode diskon Anda akan otomatis diterapkan saat checkout."}}};var Oc={shop_discount_auth:jc},Ic=Object.freeze({__proto__:null,shop_discount_auth:jc,default:Oc});const Nc={phone_capture:{consent:{title_discount_saved:"Iscriviti ai messaggi di testo per ricevere le ultime offerte e gli ultimi aggiornamenti",title_discount_not_saved:"Ci sei quasi. Iscriviti ai messaggi di testo per salvare il tuo sconto.",confirm_button:"Iscriviti con il numero {phone}",decline_button:"Non voglio ricevere messaggi",disclosure_heading:"Informativa sugli SMS di {merchantName}"},consent_confirmed:{title:"Titolo dei messaggi",description:"Rispondi all'SMS per acconsentire esplicitamente. Il codice sconto verrà applicato automaticamente al momento del check-out."},consent_declined:{title:"Non riceverai messaggi da {merchantName}",description:"Il codice sconto verrà applicato automaticamente al momento del check-out."}}};var zc={shop_discount_auth:Nc},Dc=Object.freeze({__proto__:null,shop_discount_auth:Nc,default:zc});const Rc={phone_capture:{consent:{title_discount_saved:"テキストに登録して、最新のオファーとアップデートを入手する",title_discount_not_saved:"もうすぐです。テキストに登録して、ディスカウントを保存します。",confirm_button:"{phone}で登録",decline_button:"テキストは要らない",disclosure_heading:"{merchantName}からのSMS開示"},consent_confirmed:{title:"テキストにアクセスする",description:"テキストメッセージに返信してオプトインしてください。チェックアウト時にクーポンコードが自動的に適用されます。"},consent_declined:{title:"{merchantName}からのテキストは届きません",description:"チェックアウト時にクーポンコードが自動的に適用されます。"}}};var Bc={shop_discount_auth:Rc},Fc=Object.freeze({__proto__:null,shop_discount_auth:Rc,default:Bc});const Uc={phone_capture:{consent:{title_discount_saved:"문자에 등록하고 최신 혜택 및 업데이트를 받으세요",title_discount_not_saved:"거의 다 되었습니다. 할인을 저장하려면 문자에 등록하세요.",confirm_button:"{phone}(으)로 등록",decline_button:"문자를 원하지 않습니다",disclosure_heading:"{merchantName}의 SMS 공개 조항"},consent_confirmed:{title:"문자로 이동",description:"옵트인하려면 문자 메시지에 회신하세요. 결제 시 할인 코드가 자동으로 적용됩니다."},consent_declined:{title:"{merchantName}(으)로부터 문자를 받지 않습니다",description:"결제 시 할인 코드가 자동으로 적용됩니다."}}};var $c={shop_discount_auth:Uc},Wc=Object.freeze({__proto__:null,shop_discount_auth:Uc,default:$c});const qc={phone_capture:{consent:{title_discount_saved:"Užsiprenumeruokite tekstinius pranešimus, kad gautumėte naujausius pasiūlymus ir atnaujinimus",title_discount_not_saved:"Beveik baigta. Užsiprenumeruokite tekstinius pranešimus, kad išsaugotumėte nuolaidą.",confirm_button:"Užsiregistruokite naudodami {phone}",decline_button:"Aš nenoriu tekstinių pranešimų",disclosure_heading:"SMS pranešimo atskleidimas iš {merchantName}"},consent_confirmed:{title:"Eikite į savo tekstinius pranešimus",description:"Norėdami užsisakyti, atsakykite į tekstinį pranešimą. Jūsų nuolaidos kodas bus automatiškai pritaikytas atsiskaitant."},consent_declined:{title:"Tekstinių pranešimų iš {merchantName} negausite",description:"Jūsų nuolaidos kodas bus automatiškai pritaikytas atsiskaitant."}}};var Vc={shop_discount_auth:qc},Hc=Object.freeze({__proto__:null,shop_discount_auth:qc,default:Vc});const Kc={phone_capture:{consent:{title_discount_saved:"Daftar untuk menerima teks bagi menerima tawaran dan kemaskinian terkini",title_discount_not_saved:"Hampir selesai. Daftar untuk menerima teks bagi menyimpan diskaun anda.",confirm_button:"Daftar dengan {phone}",decline_button:"Saya tidak mahu menerima teks.",disclosure_heading:"Pendedahan SMS daripada {merchantName}"},consent_confirmed:{title:"Pergi ke teks anda",description:"Balas mesej teks untuk memilih masuk. Kod diskaun anda akan digunakan secara automatik semasa daftar keluar."},consent_declined:{title:"Anda tidak akan menerima mesej teks daripada {merchantName}",description:"Kod diskaun anda akan digunakan secara automatik semasa daftar keluar."}}};var Gc={shop_discount_auth:Kc},Zc=Object.freeze({__proto__:null,shop_discount_auth:Kc,default:Gc});const Jc={phone_capture:{consent:{title_discount_saved:"Registrer deg for å få siste nytt om tilbud og oppdateringer",title_discount_not_saved:"Nesten i mål. Registrer deg for å få tekstmeldinger og lagre rabatten.",confirm_button:"Registrer deg med {phone}",decline_button:"Jeg ønsker ikke tekstmeldinger",disclosure_heading:"SMS-fremlegging fra {merchantName}"},consent_confirmed:{title:"Gå til tekstmeldinger",description:"Svar på tekstmeldingen for å registrere deg. Rabattkoden blir automatisk lagt til i kassen."},consent_declined:{title:"Du får ikke tekstmeldinger fra {merchantName}",description:"Rabattkoden blir automatisk lagt til i kassen."}}};var Qc={shop_discount_auth:Jc},Yc=Object.freeze({__proto__:null,shop_discount_auth:Jc,default:Qc});const Xc={phone_capture:{consent:{title_discount_saved:"Meld je aan voor sms-berichten om de nieuwste aanbiedingen en updates te krijgen",title_discount_not_saved:"Je bent er bijna. Meld je aan voor sms-berichten om je korting op te slaan.",confirm_button:"Aanmelden met {phone}",decline_button:"Ik wil geen sms-berichten ontvangen",disclosure_heading:"Sms-verklaring van {merchantName}"},consent_confirmed:{title:"Naar sms-berichten",description:"Beantwoord de sms om toestemming te geven. De kortingscode wordt automatisch toegepast bij de checkout."},consent_declined:{title:"Je ontvangt geen berichten van {merchantName}",description:"De kortingscode wordt automatisch toegepast bij de checkout."}}};var eu={shop_discount_auth:Xc},tu=Object.freeze({__proto__:null,shop_discount_auth:Xc,default:eu});const nu={phone_capture:{consent:{title_discount_saved:"Zapisz się na wiadomości tekstowe, aby otrzymywać najnowsze oferty i aktualizacje",title_discount_not_saved:"Prawie gotowe. Zapisz się na wiadomości tekstowe, aby zachować swój rabat.",confirm_button:"Zarejestruj się za pomocą {phone}",decline_button:"Nie chcę otrzymywać wiadomości tekstowych",disclosure_heading:"Oświadczenie dotyczące wiadomości SMS od {merchantName}"},consent_confirmed:{title:"Idź do wiadomości tekstowych",description:"Odpowiedz na wiadomość tekstową, aby wyrazić zgodę. Twój kod rabatowy zostanie automatycznie zastosowany podczas realizacji zakupu."},consent_declined:{title:"Nie będziesz otrzymywać wiadomości od {merchantName}",description:"Twój kod rabatowy zostanie automatycznie zastosowany podczas realizacji zakupu."}}};var ou={shop_discount_auth:nu},iu=Object.freeze({__proto__:null,shop_discount_auth:nu,default:ou});const su={phone_capture:{consent:{title_discount_saved:"Inscreva-se para receber mensagens com as ofertas e atualizações mais recentes",title_discount_not_saved:"Quase lá. Inscreva-se para receber mensagens e salvar seu desconto.",confirm_button:"Inscrever-se com {phone}",decline_button:"Não quero receber mensagens de texto",disclosure_heading:"Divulgação sobre SMS da {merchantName}"},consent_confirmed:{title:"Vá para suas mensagens de texto",description:"Responda à mensagem de texto para ativar. O código de desconto será aplicad
3o automaticamente no checkout."},consent_declined:{title:"Você não receberá mensagens de {merchantName}",description:"O código de desconto será aplicado automaticamente no checkout."}}};var ru={shop_discount_auth:su},au=Object.freeze({__proto__:null,shop_discount_auth:su,default:ru});const lu={phone_capture:{consent:{title_discount_saved:"Registe-se para mensagens textos e para conseguir as mais recentes ofertas e atualizações",title_discount_not_saved:"Quase lá. Registe-se para mensagens textos para guardar o seu desconto.",confirm_button:"Criar conta com {phone}",decline_button:"Não quero textos",disclosure_heading:"Divulgação de SMS de {merchantName}"},consent_confirmed:{title:"Dirija-se às suas mensagens de texto",description:"Responda à mensagem de texto para optar ativamente por participar. O seu código de desconto será automaticamente aplicado na finalização da compra."},consent_declined:{title:"Não receberá mensagens de {merchantName}",description:"O seu código de desconto será automaticamente aplicado na finalização da compra."}}};var cu={shop_discount_auth:lu},uu=Object.freeze({__proto__:null,shop_discount_auth:lu,default:cu});const du={phone_capture:{consent:{title_discount_saved:"Înscrie-te pentru mesaje text pentru a primi cele mai recente oferte și actualizări",title_discount_not_saved:"Aproape ai terminat. Înscrie-te pentru mesaje text pentru a salva reducerea.",confirm_button:"Înregistrează-te cu {phone}",decline_button:"Nu vreau mesaje text",disclosure_heading:"Dezvăluire privind mesajele SMS de la {merchantName}"},consent_confirmed:{title:"Accesează secțiunea pentru mesaje text",description:"Răspunde la mesajul text pentru a te înscrie. Codul de reducere va fi aplicat automat la finalizarea comenzii."},consent_declined:{title:"Nu vei primi mesaje text de la {merchantName}",description:"Codul de reducere va fi aplicat automat la finalizarea comenzii."}}};var hu={shop_discount_auth:du},pu=Object.freeze({__proto__:null,shop_discount_auth:du,default:hu});const mu={phone_capture:{consent:{title_discount_saved:"Подпишитесь на рассылку с актуальными новостями и предложениями",title_discount_not_saved:"Почти готово. Подпишитесь на рассылку, чтобы сохранить скидку.",confirm_button:"Подписаться с номером {phone}",decline_button:"Я не хочу получать сообщения",disclosure_heading:"Соглашение об SMS-рассылке от {merchantName}"},consent_confirmed:{title:"Откройте сообщения",description:"Ответьте на сообщение чтобы согласиться. Ваш промокод будет автоматически применен при оформлении заказа."},consent_declined:{title:"Вы не получите сообщение от {merchantName}",description:"Ваш промокод будет автоматически применен при оформлении заказа."}}};var fu={shop_discount_auth:mu},gu=Object.freeze({__proto__:null,shop_discount_auth:mu,default:fu});const vu={phone_capture:{consent:{title_discount_saved:"Zaregistrujte sa na odber najnovších ponúk a aktuálnych informácií",title_discount_not_saved:"Takmer hotovo. Zaregistrujte sa na odber textových správ a ukladajte si zľavy.",confirm_button:"Zaregistrovať sa pomocou telefónu {phone}",decline_button:"Nechcem dostávať textové správy",disclosure_heading:"Sprístupnenie SMS správ od obchodníka {merchantName}"},consent_confirmed:{title:"Prejdite do svojich textových správ",description:"Aktivujte túto možnosť odpoveďou na textovú správu. Váš zľavový kód sa automaticky uplatní pri pokladni."},consent_declined:{title:"Nebudete dostávať textové správy od obchodníka {merchantName}",description:"Váš zľavový kód sa automaticky uplatní pri pokladni."}}};var _u={shop_discount_auth:vu},bu=Object.freeze({__proto__:null,shop_discount_auth:vu,default:_u});const yu={phone_capture:{consent:{title_discount_saved:"Prijavite se na prejemanje sporočil, da prejmete najnovejše ponudbe in posodobitve",title_discount_not_saved:"Skoraj smo končali. Prijavite se na prejemanje sporočil, da shranite popust.",confirm_button:"Prijavite se s {phone}",decline_button:"Ne želim sporočil",disclosure_heading:"SMS-klavzula trgovine {merchantName}"}
3,consent_confirmed:{title:"Odprite sporočila",description:"Za potrditev odgovorite na to besedilno sporočilo. VaÅ¡a koda za popust bo ob zaključku nakupa samodejno uporabljena"},consent_declined:{title:"Ne boste prejemali sporočil trgovca {merchantName}",description:"VaÅ¡a koda za popust bo ob zaključku nakupa samodejno uporabljena"}}};var wu={shop_discount_auth:yu},ku=Object.freeze({__proto__:null,shop_discount_auth:yu,default:wu});const Cu={phone_capture:{consent:{title_discount_saved:"Registrera dig för sms-meddelanden för att fÃ¥ senaste de erbjudandena och uppdateringarna",title_discount_not_saved:"Nästan klart. Registrera dig för sms-meddelanden för att spara din rabatt.",confirm_button:"Registrera dig med {phone}",decline_button:"Jag vill inte ha sms",disclosure_heading:"SMS-upplysningar frÃ¥n {merchantName}"},consent_confirmed:{title:"GÃ¥ till dina sms",description:"Svara pÃ¥ det här sms:et för att anmäla dig. Din rabattkod tillämpas automatiskt i kassan."},consent_declined:{title:"Du kommer inte att fÃ¥ textmeddelanden frÃ¥n {merchantName}",description:"Din rabattkod tillämpas automatiskt i kassan."}}};var Su={shop_discount_auth:Cu},xu=Object.freeze({__proto__:null,shop_discount_auth:Cu,default:Su});const Eu={phone_capture:{consent:{title_discount_saved:"ลงทะเบียนรับข้อความเพื่อรับข้อเสนอและการอัปเดตล่าสุด",title_discount_not_saved:"ใกล้เสร็จสิ้นแล้ว ลงทะเบียนรับข้อความเพื่อบันทึกส่วนลดของคุณ",confirm_button:"ลงทะเบียนด้วย {phone}",decline_button:"ฉันไม่ต้องการข้อความ",disclosure_heading:"การเปิดเผย SMS จาก {merchantName}"},consent_confirmed:{title:"หัวเรื่องไปยังข้อความของคุณ",description:"ตอบกลับข้อความเพื่อเลือกใช้ ระบบจะใช้รหัสส่วนลดของคุณโดยอัตโนมัติที่ขั้นตอนการชำระเงิน"},consent_declined:{title:"คุณจะไม่ได้รับข้อความจาก {merchantName}",description:"ระบบจะใช้รหัสส่วนลดของคุณโดยอัตโนมัติที่ขั้นตอนการชำระเงิน"}}};var Au={shop_discount_auth:Eu},Tu=Object.freeze({__proto__:null,shop_discount_auth:Eu,default:Au});const Pu={phone_capture:{consent:{title_discount_saved:"En son teklif ve güncellemeleri almak için mesajlara kaydolun",title_discount_not_saved:"Neredeyse bitti. İndiriminizi kaydetmek için mesajlara kaydolun.",confirm_button:"{phone} ile kaydol",decline_button:"Mesaj almak istemiyorum",disclosure_heading:"{merchantName} adlı satıcıdan SMS ile beyan"},consent_confirmed:{title:"Mesajlarınıza gidin",description:"Etkinleştirmek için kısa mesajı yanıtlayın. İndirim kodunuz ödeme sırasında otomatik olarak uygulanır."},consent_declined:{title:"{merchantName} satıcısından kısa mesaj almayacaksınız",description:"İndirim kodunuz ödeme sırasında otomatik olarak uygulanır."}}};var Mu={shop_discount_auth:Pu},Lu=Object.freeze({__proto__:null,shop_discount_auth:Pu,default:Mu});const ju={phone_capture:{consent:{title_discount_saved:"Đăng ký nhận tin nhắn để nhận các ưu đãi và thông tin cập nhật mới nhất",title_discount_not_saved:"Sắp hoàn tất. Đăng ký nhận tin nhắn để lưu ưu đãi giảm giá.",confirm_button:"Đăng ký bằng {phone}",decline_button:"Tôi không muốn nhận tin nhắn",disclosure_heading:"Thông tin công khai qua SMS từ {merchantName}"},consent_confirmed:{title:"Kiểm tra tin nhắn cá»§a bạn",description:"Phản hồi tin nhắn văn bản để chọn sá»­ dụng. Mã giảm giá cá»§a bạn sẽ được tá»± động áp dụng khi thanh toán."},consent_declined:{title:"Bạn sẽ không nhận được tin nhắn văn bản từ {merchantName}",description:"Mã giảm giá cá»§a bạn sẽ được tá»± động áp dụng khi thanh toán."}}};var Ou={shop_discount_auth:ju},Iu=Object.freeze({__proto__:null,shop_discount_auth:ju,default:Ou});const Nu={phone_capture:{consent:{title_discount_saved:"注册接收短信以获得最新优惠和更新",title_discount_not_saved:"即将成功。注册接收短信以保存您的折扣。",confirm_button:"使用 {phone} 注册",decline_button:"我不想接收短信",disclosure_heading:"来自 {merchantName} 的短信推送"},consent_confirmed:{title:"进入短信界面",description:"回复短信可选择加入。您的折扣码将在结账时自动应用。"},consent_declined:{title:"您将不会收到 {merchantName} 发送的短信",description:"您的折扣码将在结账时自动应用。"}}};var zu={shop_discount_auth:Nu},Du=Object.freeze({__proto__:null,shop_discount_auth:Nu,default:zu});const Ru={phone_capture:{consent:{title_discount_saved:"訂閱簡訊以取得最新消息與優惠活動",title_discount_not_saved:"快完成了。訂閱簡訊以儲存您的折扣。",confirm_button:"使用 {phone} 訂閱",decline_button:"我不想收到簡訊",disclosure_heading:"{merchantName} 的簡訊揭露聲明"},consent_confirmed:{title:"查看簡訊",description:"回覆簡訊以加入。系統會在您結帳時自動套用折扣代碼。"},consent_declined:{title:"您將不會收到 {merchantName} 的簡訊",description:"系統會在您結帳時自動套用折扣代碼。"}}};var Bu={shop_discount_auth:Ru},Fu=Object.freeze({__proto__:null,shop_discount_auth:Ru,default:Bu});const Uu={follow:"Последвайте в {shop}",following:"Следвате в {shop}",auth_modal:{title:"Последвайте в Shop",description:"Бъдете информирани – не пропускайте разпродажби, ново зареждане на стоки или актуализация на поръчка."},following_modal:{title:"Посетете {store} в Shop",subtitle:"Всичко нужно за пазаруване, проследяване и плащане – Ð
3½Ð° едно място.",qr_header:"Сканирайте, за да посетите {store} в приложението Shop",qr_alt_text:"QR код от приложението Shop",continue:"Продължи"},completed:{title:"Вие следвате {store}",subtitle:"Изпратихме ви имейл с връзка, от която да изтеглите приложението Shop."}},$u={login:"Продължаване с {shop}"},Wu={remember_me:"Записване на информацията ми по сигурен начин за по-бързо влизане навсякъде"};var qu={follow_on_shop:Uu,login_with_shop:$u,customer_accounts:Wu},Vu=Object.freeze({__proto__:null,follow_on_shop:Uu,login_with_shop:$u,customer_accounts:Wu,default:qu});const Hu={follow:"Sledovat: {shop}",following:"Sledujete: {shop}",auth_modal:{title:"Sledování v aplikaci Shop",description:"Zajistěte si o vÅ¡em přehled: Nenechte si ujít prodej, vrácení skladových zásob nebo aktualizaci objednávky."},following_modal:{title:"NavÅ¡tivte obchod {store} v aplikaci Shop",subtitle:"VÅ¡echno, co potřebujete k nákupům, sledování a placení, máte k dispozici na jediném místě.",qr_header:"Naskenujte kód a přejděte do obchodu {store} v aplikaci Shop",qr_alt_text:"QR kód aplikace Shop",continue:"Pokračovat"},completed:{title:"Sledujete obchod {store}",subtitle:"Poslali jsme vám e-mail s odkazem ke stažení aplikace Shop."}},Ku={login:"Pokračovat s: {shop}"},Gu={remember_me:"Uložit bezpečně mé informace v obchodě za účelem rychlejšího přihlaÅ¡ování"};
3var Zu={follow_on_shop:Hu,login_with_shop:Ku,customer_accounts:Gu},Ju=Object.freeze({__proto__:null,follow_on_shop:Hu,login_with_shop:Ku,customer_accounts:Gu,default:Zu});const Qu={follow:"Følg på {shop}",following:"Følger på {shop}",auth_modal:{title:"Følg på Shop",description:"Hold dig ajour – gå aldrig glip af et udsalg, en genopfyldning eller en ordreopdatering."},following_modal:{title:"Gå til {store} på Shop",subtitle:"Alt, du har brug for til at shoppe, spore og betale – alt sammen på ét sted.",qr_header:"Scan for at gå til {store} i Shop-appen",qr_alt_text:"Vis QR-kode for appen",continue:"Fortsæt"},completed:{title:"Du følger {store}",subtitle:"Vi har sendt dig en mail med et link til download af Shop-appen."}},Yu={login:"Fortsæt med {shop}"},Xu={remember_me:"Gem mine oplysninger sikkert med Shop, så jeg kan logge ind hurtigere alle steder"};var ed={follow_on_shop:Qu,login_with_shop:Yu,customer_accounts:Xu},td=Object.freeze({__proto__:null,follow_on_shop:Qu,login_with_shop:Yu,customer_accounts:Xu,default:ed});const nd={follow:"In {shop} folgen",following:"In {shop} gefolgt",auth_modal:{title:"In Shop folgen",description:"Bleibe auf dem neuesten Stand und verpasse niemals einen Sale, einen Restock oder ein Bestellupdate."},following_modal:{title:"{store} in Shop besuchen",subtitle:"Alles, was du zum Einkaufen, Verfolgen und Bezahlen brauchst – an einem zentralen Ort.",qr_header:"Scannen, um {store} in der Shop-App aufzurufen",qr_alt_text:"QR-Code für Shop-App",continue:"Fortfahren"},completed:{title:"Du folgst {store}",subtitle:"Wir haben eine E-Mail mit einem Link zum Herunterladen der Shop-App an dich gesendet."}},od={login:"Mit {shop} fortfahren"},id={remember_me:"Meine Informationen sicher bei Shop abspeichern, um überall ein schnelleres Anmelden zu ermöglichen"};var sd={follow_on_shop:nd,login_with_shop:od,customer_accounts:id},rd=Object.freeze({__proto__:null,follow_on_shop:nd,login_with_shop:od,customer_accounts:id,default:sd});const ad={follow:"Ακολουθήστε στο {shop}",following:"Ακολουθείτε στο {shop}",auth_modal:{title:"Ακολουθήστε στο Shop",description:"Μείνετε ενημερωμένοι—μη χάσετε ούτε μία έκπτωση, ανεφοδιασμό ή ενημέρωση παραγγελίας."},following_modal:{title:"Επισκεφτείτε το κατάστημα {store} στο Shop",subtitle:"Όλα όσα χρειάζεστε για την αγορά, την παρακολούθηση και την πληρωμή—σε ένα μέρος.",qr_header:"Κάντε σάρωση για να επισκεφτείτε το κατάστημα {store} στην εφαρμογή Shop",qr_alt_text:"Κωδικός QR εφαρμογής Shop",continue:"Συνέχεια"},completed:{title:"Ακολουθείτε το κατάστημα {store}",subtitle:"Σας στείλαμε ένα email το οποίο περιέχει έναν σύνδεσμο για τη λήψη της εφαρμογής Shop."}},ld={login:"Συνέχεια με {shop}"},cd={remember_me:"Να αποθηκευτούν οι πληροφορίες μου με ασφάλεια στο Shop για να συνδέομαι ταχύτερα παντού"};var ud={follow_on_shop:ad,login_with_shop:ld,customer_accounts:cd},dd=Object.freeze({__proto__:null,follow_on_shop:ad,login_with_shop:ld,customer_accounts:cd,default:ud});const hd={follow:"Follow on {shop}",following:"Following on {shop}",auth_modal:{title:"Follow on Shop",description:"Stay in the know—never miss a sale, restock, or order update."},following_modal:{title:"Visit {store} on Shop",subtitle:"Everything you need to shop, track, and pay—all in one place.",qr_header:"Scan to visit {store} on the Shop app",qr_alt_text:"Shop app QR code",continue:"Continue"},completed:{title:"You're following {store}",subtitle:"We've sent you an email with a link to download the Shop app."}},pd={login:"Continue with {shop}"},md={remember_me:"Save my info securely with Shop to sign in faster everywhere"};
3var fd={follow_on_shop:hd,login_with_shop:pd,customer_accounts:md},gd=Object.freeze({__proto__:null,follow_on_shop:hd,login_with_shop:pd,customer_accounts:md,default:fd});const vd={follow:"Seguir en {shop}",following:"La sigues en {shop}",auth_modal:{title:"Seguir en Shop",description:"Mantente al día: no te pierdas ninguna venta, reposición o actualización de pedido."},following_modal:{title:"Visitar {store} en Shop",subtitle:"Todo lo que necesitas para comprar, hacer seguimientos y efectuar pagos desde un único lugar.",qr_header:"Escanear para visitar {store} en la aplicación Shop",qr_alt_text:"Código QR de la aplicación Shop",continue:"Continuar"},completed:{title:"Sigues a {store}",subtitle:"Te enviamos un correo electrónico con un enlace para descargar la aplicación Shop."}},_d={login:"Continuar con {shop}"},bd={remember_me:"Guardar mi información de forma segura con Shop para iniciar sesión rápidamente en cualquier sitio"};var yd={follow_on_shop:vd,login_with_shop:_d,customer_accounts:bd},wd=Object.freeze({__proto__:null,follow_on_shop:vd,login_with_shop:_d,customer_accounts:bd,default:yd});const kd={follow:"Seuraa kohteessa {shop}",following:"Seurataan kohteessa {shop}",auth_modal:{title:"Seuraa Shopissa",description:"Pysy ajan tasalla — yksikään myynti, palautus varastoon tai tilauspäivitys ei jää väliin."},following_modal:{title:"Käy kaupassa {store} Shopissa",subtitle:"Kaikki ostosten tekemiseen, seuraamiseen ja maksamiseen tarvitsemasi – yhdessä paikassa.",qr_header:"Skannaa ja käy kaupassa {store} Shop-sovelluksessa",qr_alt_text:"Shop-sovelluksen QR-koodi",continue:"Jatka"},completed:{title:"Seuraat kohdetta {store}",subtitle:"Olemme lähettäneet sinulle sähköpostiviestin, jossa on Shop-sovelluksen latauslinkki."}},Cd={login:"Jatka käyttämällä {shop}-sopimusta"},Sd={remember_me:"Tallenna tietoni turvallisesti Shop-palveluun, jotta voin jatkossa kirjautua sisään entistä nopeammin missä tahansa"};var xd={follow_on_shop:kd,login_with_shop:Cd,customer_accounts:Sd},Ed=Object.freeze({__proto__:null,follow_on_shop:kd,login_with_shop:Cd,customer_accounts:Sd,default:xd});const Ad={follow:"Suivre sur {shop}",following:"Suivi sur {shop}",auth_modal:{title:"Suivre sur Shop",description:"Tenez-vous informé(e) : ne manquez aucune promotion, remise en stock ou mise à jour de commande."},following_modal:{title:"Visiter {store} sur Shop",subtitle:"Tout ce dont vous avez besoin pour effectuer des achats, des suivis de commande et des paiements au même endroit.",qr_header:"Scanner pour visiter {store} sur l’application Shop",qr_alt_text:"Code QR de l'application Shop",continue:"Continuer"},completed:{title:"Vous suivez actuellement {store}",subtitle:"Nous vous avons envoyé un e-mail contenant un lien pour télécharger l’application Shop."}},Td={login:"Continuer avec {shop}"},Pd={remember_me:"Enregistrer mes informations en toute sécurité avec Shop pour me connecter plus vite partout"};var Md={follow_on_shop:Ad,login_with_shop:Td,customer_accounts:Pd},Ld=Object.freeze({__proto__:null,follow_on_shop:Ad,login_with_shop:Td,customer_accounts:Pd,default:Md});const jd={follow:"{shop} पर फ़ॉलो करें",following:"{shop} में नीचे",auth_modal:{title:"Shop पर फ़ॉलो करें",description:"संपर्क में बने रहें—किसी भी सेल, रिस्टॉक या ऑर्डर अपडेट से न चूकें."},following_modal:{title:"Shop पर {store} में विज़िट करें",subtitle:"सब कुछ जिसकी आपको खरीदारी करनी है, ट्रैक करना है और भुगतान करनी है—सब कुछ एक छत के नीचे.",qr_header:"Shop ऐप पर {store} पर जाने के लिए स्कैन करें",qr_alt_text:"Shop ऐप QR कोड",continue:"जारी रहना"},completed:{title:"आप {store} को फ़ॉलो कर रहे हैं",subtitle:"हमने आपको Shop ऐप डाउनलोड करने के लिए लिंक के साथ एक ईमेल भेजा है."}},Od={login:"{shop} के साथ जारी रखें"},Id={remember_me:"हर जगह तेजी से साइन इन करने के लिए मेरी जानकारी को Shop के साथ सुरक्षित रूप से सहेजें"};
3var Nd={follow_on_shop:jd,login_with_shop:Od,customer_accounts:Id},zd=Object.freeze({__proto__:null,follow_on_shop:jd,login_with_shop:Od,customer_accounts:Id,default:Nd});const Dd={follow:"Zapratite na servisu {shop}",following:"Pratite na servisu {shop}",auth_modal:{title:"Pratite na servisu Shop",description:"Budite prvi koji će sve saznati – nikad nemojte propustiti rasprodaju, popunjavanje zaliha ni promjenu narudžbe."},following_modal:{title:"Posjetite {store} na servisu Shop",subtitle:"Sve što trebate kupiti, pratiti i platiti na jednom mjestu.",qr_header:"Skenirajte ako želite posjetiti trgovinu {store} u aplikaciji Shop",qr_alt_text:"QR kod za aplikaciju Shop",continue:"Nastavi"},completed:{title:"Pratite {store}",subtitle:"Poslali smo vam poruku e-pošte s poveznicom za preuzimanje aplikacije Shop."}},Rd={login:"Nastavi s trgovinom {shop}"},Bd={remember_me:"Spremite na siguran način moje podatke za Shop za bržu prijavu u svim trgovinama"};var Fd={follow_on_shop:Dd,login_with_shop:Rd,customer_accounts:Bd},Ud=Object.freeze({__proto__:null,follow_on_shop:Dd,login_with_shop:Rd,customer_accounts:Bd,default:Fd});const $d={follow:"Követés itt: {shop}",following:"Követve itt: {shop}",auth_modal:{title:"Kövesd a Shop appban",description:"Ne maradj le semmiről – értesülj minden akcióról, készletfeltöltésről és a rendeléseid állapotáról."},following_modal:{title:"A(z) {store} felkeresése a Shop appban",subtitle:"Minden, ami a vásárláshoz, a csomagkövetéshez és a fizetéshez kell, egy helyen.",qr_header:"Szkenneld be a kódot a(z) {store} áruház felkereséséhez a Shop appban",qr_alt_text:"A Shop app QR-kódja",continue:"Folytatás"},completed:{title:"Követed a(z) {store} áruházat",subtitle:"E-mailben elküldtük a Shop alkalmazás letöltéséhez szükséges hivatkozást."}},Wd={login:"Folytatás ezzel: {shop}"},qd={remember_me:"Az adataim biztonságos mentése a Shoppal, hogy mindenhol gyorsabb legyen a bejelentkezés"};var Vd={follow_on_shop:$d,login_with_shop:Wd,customer_accounts:qd},Hd=Object.freeze({__proto__:null,follow_on_shop:$d,login_with_shop:Wd,customer_accounts:qd,default:Vd});const Kd={follow:"Ikuti di {shop}",following:"Mengikuti di {shop}",auth_modal:{title:"Ikuti di Shop",description:"Pantau terus—jangan lewatkan obral, isi ulang stok, atau pembaruan pesanan."},following_modal:{title:"Kunjungi {store} di Shop",subtitle:"Semua yang Anda perlukan untuk belanja, melacak, dan membayar—semuanya dalam satu tempat.",qr_header:"Pindai untuk membuka {store} di aplikasi Shop",qr_alt_text:"Kode QR aplikasi Shop",continue:"Lanjutkan"},completed:{title:"Anda mengikuti {store}",subtitle:"Kami telah mengirimi Anda email berisi tautan untuk mengunduh aplikasi Shop."}},Gd={login:"Lanjutkan dengan {shop}"},Zd={remember_me:"Simpan info saya secara aman di Shop untuk masuk lebih cepat di mana saja"};var Jd={follow_on_shop:Kd,login_with_shop:Gd,customer_accounts:Zd},Qd=Object.freeze({__proto__:null,follow_on_shop:Kd,login_with_shop:Gd,customer_accounts:Zd,default:Jd});const Yd={follow:"Segui su {shop}",following:"Segui già su {shop}",auth_modal:{title:"Segui su Shop",description:"Tieni tutto sotto controllo—non perderti neanche una vendita, un rifornimento o un aggiornamento degli ordini."},following_modal:{title:"Visita {store} su Shop",subtitle:"Tutto ciò che ti occorre per fare acquisti, monitorare gli ordini ed effettuare pagamenti, in un unico posto.",qr_header:"Scansiona il codice per visitare {store} sull'app Shop",qr_alt_text:"Codice QR dell'app Shop",continue:"Continua"},completed:{title:"Stai seguendo {store}",subtitle:"Ti abbiamo inviato un'email con il link per scaricare l'app Shop."}},Xd={login:"Continua con {shop}"},eh={remember_me:"Salva le mie informazioni in sicurezza con Shop per accedere velocemente ovunque"};var th={follow_on_shop:Yd,login_with_shop:Xd,customer_accounts:eh},nh=Object.freeze({__proto__:null,follow_on_shop:Yd,login_with_shop:Xd,customer_accounts:eh,default:th});const oh={follow:"{shop}でフォロー",following:"{shop}でフォロー中",auth_modal:{title:"Shopでフォローする",description:"最新情報を取得してセール、再入荷、注文の更新を見逃すことがないようにしましょう。"},following_modal:{title:"Shopで{store}を表示",subtitle:"ショッピング、追跡、支払いに必要なものは何でも—すべてが1か所に",qr_header:"スキャンして、Shopアプリで{store}にアクセスする",qr_alt_text:"ShopアプリのQRコード",continue:"続ける"},completed:{title:"{store}
3をフォロー中",subtitle:"Shopアプリをダウンロードするためのリンクをメールでお送りしました。"}},ih={login:"{shop}で続行する"},sh={remember_me:"Shopを使用して情報を安全に保存して、あらゆる場所ですばやくログインできるようにする"};var rh={follow_on_shop:oh,login_with_shop:ih,customer_accounts:sh},ah=Object.freeze({__proto__:null,follow_on_shop:oh,login_with_shop:ih,customer_accounts:sh,default:rh});const lh={follow:"{shop}에서 팔로우",following:"{shop}에서 팔로우 중",auth_modal:{title:"Shop에서 팔로우",description:"최신 정보를 확인하세요. 할인, 재입고, 주문 업데이트를 놓치지 마세요."},following_modal:{title:"Shop에서 {store} 방문",subtitle:"쇼핑, 추적, 결제에 필요한 모든 것이 한 곳에 있습니다.",qr_header:"스캔하여 Shop 앱에서 {store} 방문",qr_alt_text:"Shop 앱 QR 코드",continue:"계속"},completed:{title:"{store} 팔로우 중",subtitle:"Shop 앱을 다운로드할 수 있는 링크가 포함된 이메일을 보내 드렸습니다."}},ch={login:"{shop}(으)로 계속하기"},uh={remember_me:"어디서나 더 빠르게 로그인할 수 있도록 Shop에 내 정보를 안전하게 저장"};var dh={follow_on_shop:lh,login_with_shop:ch,customer_accounts:uh},hh=Object.freeze({__proto__:null,follow_on_shop:lh,login_with_shop:ch,customer_accounts:uh,default:dh});const ph={follow:"Sekti platformoje „{shop}“",following:"Sekate platformoje „{shop}“",auth_modal:{title:"Sekti platformoje „Shop“",description:"Būkite informuoti – niekada nepraleiskite išpardavimo, atsargų papildymo ar atnaujintos užsakymo informacijos."},following_modal:{title:"Apsilankyti „{store}“ platformoje „Shop“",subtitle:"Viskas, ko reikia apsipirkti, sekti ir sumokėti, – vienoje vietoje.",qr_header:"Nuskenuokite, norėdami apsilankyti „{store}“ „Shop“ programėlėje",qr_alt_text:"„Shop“ programėlės QR kodas",continue:"Tęsti"},completed:{title:"Jūs sekate „{store}“",subtitle:"Išsiuntėme jums el. laišką su nuoroda „Shop“ programėlei atsisiųsti."}},mh={login:"Tęsti su {shop}"},fh={remember_me:"Saugiai išsaugoti mano informaciją „Shop“, kad galėčiau greičiau prisijungti visur"};var gh={follow_on_shop:ph,login_with_shop:mh,customer_accounts:fh},vh=Object.freeze({__proto__:null,follow_on_shop:ph,login_with_shop:mh,customer_accounts:fh,default:gh});const _h={follow:"Ikuti pada {shop}",following:"Mengikuti pada {shop}",auth_modal:{title:"Ikuti pada Shop",description:"Kekal termaklum—tidak lagi ketinggalan kemaskinian jualan, tambah stok semula atau pesanan."},following_modal:{title:"Lawati {store} pada Shop",subtitle:"Semua yang anda perlukan untuk membeli-belah, menjejak dan membayar—di satu tempat yang sama.",qr_header:"Imbas untuk melawat {store} pada aplikasi Shop",qr_alt_text:"Kod QR aplikasi Shop",continue:"Teruskan"},completed:{title:"Anda sedang mengikuti {store}",subtitle:"Kami telah menghantar e-mel kepada anda dengan pautan untuk memuat turun aplikasi Shop."}},bh={login:"Teruskan dengan {shop}"},yh={remember_me:"Simpan maklumat saya dengan selamat dengan Shop untuk daftar masuk yang lebih pantas di mana-mana sahaja"};var wh={follow_on_shop:_h,login_with_shop:bh,customer_accounts:yh},kh=Object.freeze({__proto__:null,follow_on_shop:_h,login_with_shop:bh,customer_accounts:yh,default:wh});const Ch={follow:"Følg på {shop}",following:"Følger på {shop}",auth_modal:{title:"Følg på Shop",description:"Hold deg oppdatert – gå aldri glipp av et salg, lagerpåfyllinger eller bestillingsoppdateringer."},following_modal:{title:"Besøk {store} på Shop",subtitle:"Alt du trenger for å handle, spore og betale – alt på ett sted.",qr_header:"Skann for å besøke {store} i Shop-appen",qr_alt_text:"QR-kode for Shop-appen",continue:"Fortsett"},completed:{title:"Du følger {store}",subtitle:"Vi har sendt deg en e-postmelding med en kobling for å laste ned Shop-appen."}},Sh={login:"Fortsett med {shop}"},xh={remember_me:"Lagre informasjonen min sikkert i Shop for å logge på raskere overalt"};
3var Eh={follow_on_shop:Ch,login_with_shop:Sh,customer_accounts:xh},Ah=Object.freeze({__proto__:null,follow_on_shop:Ch,login_with_shop:Sh,customer_accounts:xh,default:Eh});const Th={follow:"Volgen op {shop}",following:"Volgend op {shop}",auth_modal:{title:"Volgen op Shop",description:"Blijf op de hoogte: mis nooit meer een uitverkoop, voorraadaanvulling of update over een bestelling."},following_modal:{title:"Ga naar {store} in Shop",subtitle:"Alles wat je nodig hebt om te shoppen, te volgen en te betalen—allemaal op één plek.",qr_header:"Scan om {store} te bezoeken in de Shop-app",qr_alt_text:"QR-code van Shop-app",continue:"Doorgaan"},completed:{title:"Je volgt {store}",subtitle:"We hebben je een e-mail gestuurd met een downloadlink voor de Shop-app."}},Ph={login:"Doorgaan met {shop}"},Mh={remember_me:"Sla mijn info veilig op met Shop om overal sneller in te loggen"};var Lh={follow_on_shop:Th,login_with_shop:Ph,customer_accounts:Mh},jh=Object.freeze({__proto__:null,follow_on_shop:Th,login_with_shop:Ph,customer_accounts:Mh,default:Lh});const Oh={follow:"Obserwuj w {shop}",following:"Obserwujesz w {shop}",auth_modal:{title:"Obserwuj w Shop",description:"Bądź na bieżąco — nigdy nie przegapisz wyprzedaży, uzupełnienia zapasów lub aktualizacji zamówienia."},following_modal:{title:"Odwiedź {store} w Shop",subtitle:"Wszystko, czego potrzebujesz, aby robić zakupy, śledzić i płacić — wszystko w jednym miejscu.",qr_header:"Zeskanuj, aby odwiedzić {store} w aplikacji Shop",qr_alt_text:"Kod QR aplikacji Shop",continue:"Kontynuuj"},completed:{title:"Obserwujesz {store}",subtitle:"Wysłaliśmy do Ciebie e-mail z linkiem do pobrania aplikacji Shop."}},Ih={login:"Kontynuuj z {shop}"},Nh={remember_me:"Zapisz moje informacje bezpiecznie w sklepie w celu szybszego logowania"};var zh={follow_on_shop:Oh,login_with_shop:Ih,customer_accounts:Nh},Dh=Object.freeze({__proto__:null,follow_on_shop:Oh,login_with_shop:Ih,customer_accounts:Nh,default:zh});const Rh={follow:"Seguir no {shop}",following:"Seguindo no {shop}",auth_modal:{title:"Seguir no Shop",description:"Fique por dentro de tudo e nunca mais perca promoções, reabastecimentos ou atualizações de pedidos."},following_modal:{title:"Acesse a {store} no Shop",subtitle:"Uma plataforma para você comprar, pagar e acompanhar todos os seus pedidos.",qr_header:"Ler para visitar {store} no app do Shop",qr_alt_text:"Código QR do app do Shop",continue:"Continuar"},completed:{title:"Você está seguindo a {store}",subtitle:"Enviamos um e-mail com um link para você fazer download do app do Shop."}},Bh={login:"Continuar com {shop}"},Fh={remember_me:"Salve minhas informações com o Shop de forma segura para fazer login com mais rapidez em qualquer lugar"};var Uh={follow_on_shop:Rh,login_with_shop:Bh,customer_accounts:Fh},$h=Object.freeze({__proto__:null,follow_on_shop:Rh,login_with_shop:Bh,customer_accounts:Fh,default:Uh});const Wh={follow:"Seguir no {shop}",following:"A seguir no {shop}",auth_modal:{title:"Siga no Shop",description:"Mantenha-se atualizado—nunca perca uma venda, um reabastecimento ou uma atualização a uma encomenda."},following_modal:{title:"Visite a {store} no Shop",subtitle:"Tudo o que necessita para comprar, rastrear e pagar num único local.",qr_header:"Efetue leitura para visitar {store} na aplicação Shop",qr_alt_text:"Código QR para aplicação Shop",continue:"Continuar"},completed:{title:"Está a seguir a {store}",subtitle:"Enviamos um e-mail com uma ligação para transferir a aplicação Shop."}},qh={login:"Continuar com {shop}"},Vh={remember_me:"Guardar as minhas informações em segurança com o Shop para iniciar sessão mais rapidamente em todo o lado"};var Hh={follow_on_shop:Wh,login_with_shop:qh,customer_accounts:Vh},Kh=Object.freeze({__proto__:null,follow_on_shop:Wh,login_with_shop:qh,customer_accounts:Vh,default:Hh});const Gh={follow:"Urmărește în {shop}",following:"Urmărire în {shop}",auth_modal:{title:"Urmărește în Shop",description:"Rămâneți la curent – nu ratați niciodată o reducere, o realimentare a stocului sau o actualizare a comenzilor."},following_modal:{title:"Vizitează {store} în Shop",subtitle:"Tot ce ai nevoie pentru a face cumpărături, a urmări și a plăti – toate într-un singur loc.",qr_header:"Scanează pe
3ntru a vizita {store} în aplicația Shop",qr_alt_text:"Cod QR pentru aplicația Shop",continue:"Continuă"},completed:{title:"Urmărești {store}",subtitle:"Ți-am trimis un e-mail cu un link pentru a descărca aplicația Shop."}},Zh={login:"Continuă cu {shop}"},Jh={remember_me:"Doresc să mi se salveze informațiile în mod securizat în relația cu Shop, pentru a mă conecta mai rapid pe toate dispozitivele"};var Qh={follow_on_shop:Gh,login_with_shop:Zh,customer_accounts:Jh},Yh=Object.freeze({__proto__:null,follow_on_shop:Gh,login_with_shop:Zh,customer_accounts:Jh,default:Qh});const Xh={follow:"Подписаться на {shop}",following:"Подписка на {shop}",auth_modal:{title:"Подписаться на Shop",description:"Будьте в курсе событий. Не пропускайте распродажи, пополнение ассортимента или обновления заказов."},following_modal:{title:"Перейти в магазин {store} в Shop",subtitle:"Все, что вам нужно, чтобы совершать покупки, отслеживать товары и оплачивать их, — собрано в одном приложении.",qr_header:"Сканируйте ,чтобы перейти в магазин {store} в приложении Shop",qr_alt_text:"QR-код приложения Shop",continue:"Продолжить"},completed:{title:"Вы подписаны на {store}",subtitle:"Мы отправили вам письмо со ссылкой для скачивания приложения Shop."}},ep={login:"Продолжить в {shop}"},tp={remember_me:"Надежно сохранить мои данные в Shop, чтобы быстрее выполнять вход в любой момент"};var np={follow_on_shop:Xh,login_with_shop:ep,customer_accounts:tp},op=Object.freeze({__proto__:null,follow_on_shop:Xh,login_with_shop:ep,customer_accounts:tp,default:np});const ip={follow:"Sledujte na: {shop}",following:"Sledujete na: {shop}",auth_modal:{title:"Sledujte v službe Shop",description:"Udržte si prehľad – nezmeškajte aktuálne informácie o výpredaji, naskladnení položky alebo objednávke."},following_modal:{title:"Navštívte obchod {store} v službe Shop",subtitle:"Všetko, čo potrebujete na nakupovanie, sledovanie a platbu – na jednom mieste.",qr_header:"Naskenujte a prejdite do obchodu {store} v aplikácii Shop",qr_alt_text:"QR kód aplikácie Shop",continue:"Pokračovať"},completed:{title:"Sledujete {store}",subtitle:"Odoslali sme vám e-mail s prepojením na stiahnutie aplikácie Shop."}},sp={login:"Pokračovať k obchodu {shop}"},rp={remember_me:"Uložiť moje informácie pomocou služby Shop na rýchlejšie prihlásenie odkiaľkoľvek"};var ap={follow_on_shop:ip,login_with_shop:sp,customer_accounts:rp},lp=Object.freeze({__proto__:null,follow_on_shop:ip,login_with_shop:sp,customer_accounts:rp,default:ap});const cp={follow:"Sledite v trgovini {shop}",following:"Sledenje v trgovini {shop}",auth_modal:{title:"Sledi v trgovini",description:"Ostanite na tekočem – nikoli ne zamudite prodaje, ponovne zaloge ali posodobitve naročila."},following_modal:{title:"V aplikaciji Shop obiščite trgovino {store}",subtitle:"Vse za nakup, sledenje in plačilo na enem mestu.",qr_header:"Optično preberite za obisk trgovine {store} prek aplikacije Shop",qr_alt_text:"Koda QR aplikacije Shop",continue:"Nadaljuj"},completed:{title:"Sledite trgovini {store}",subtitle:"Poslali smo vam e-poštno sporočilo s povezavo za prenos aplikacije Shop."}},up={login:"Nadaljujte v trgovini {shop}"},dp={remember_me:"Moje podatke varno shrani v aplikacijo Shop za hitrejši vpis"};var hp={follow_on_shop:cp,login_with_shop:up,customer_accounts:dp},pp=Object.freeze({__proto__:null,follow_on_shop:cp,login_with_shop:up,customer_accounts:dp,default:hp});const mp={follow:"Följ på {shop}",following:"Följer på {shop}",auth_modal:{title:"Följ på Shop",description:"Håll dig uppdaterad – missa aldrig en uppdatering om försäljning, lagerpåfyllning eller ordrar igen."},following_modal:{title:"Besök {store} på Shop",subtitle:"Allt du behöver för att shoppa, spåra och betala – på ett och samma ställe.",qr_header:"Skanna för att besöka {store} i Shop-appen",qr_alt_text:"Shop-appens QR-kod",continue:"Fortsätt"},completed:{title:"Du följer {store}",subtitle:"Vi har skickat ett e-postmeddelande med en länk för att ladda ned Shop-appen till dig."}},fp={login:"Fortsätt med {shop}"}
3,gp={remember_me:"Spara min information säkert med Shop för att logga in snabbare överallt"};var vp={follow_on_shop:mp,login_with_shop:fp,customer_accounts:gp},_p=Object.freeze({__proto__:null,follow_on_shop:mp,login_with_shop:fp,customer_accounts:gp,default:vp});const bp={follow:"ติดตามบน {shop}",following:"กำลังติดตามบน {shop}",auth_modal:{title:"ติดตามบน Shop",description:"รับรู้ข่าวสารได้ตลอดเวลา และไม่พลาดการลดราคา การคืนสินค้ากลับสต็อกหรือการอัปเดตคำสั่งซื้อ"},following_modal:{title:"เข้าชม {store} บนร้านค้า",subtitle:"ทุกสิ่งที่คุณต้องการในร้านค้า ติดตาม และชำระเงิน — ทั้งหมดในที่เดียว",qr_header:"สแกนเพื่อเยี่ยมชม {store} บนแอป Shop",qr_alt_text:"คิวอาร์โค้ดแอป Shop",continue:"ดำเนินการต่อ"},completed:{title:"คุณกำลังติดตาม {store}",subtitle:"เราได้ส่งอีเมลพร้อมลิงก์สำหรับดาวน์โหลดแอปร้านค้าให้คุณแล้ว"}},yp={login:"ดำเนินการต่อกับ {shop}"},wp={remember_me:"บันทึกข้อมูลของฉันอย่างปลอดภัยด้วย Shop เพื่อให้ลงชื่อเข้าใช้ได้รวดเร็วยิ่งขึ้นจากทุกที่"};var kp={follow_on_shop:bp,login_with_shop:yp,customer_accounts:wp},Cp=Object.freeze({__proto__:null,follow_on_shop:bp,login_with_shop:yp,customer_accounts:wp,default:kp});const Sp={follow:"{shop} üzerinden takip et",following:"{shop} üzerinden takip ediliyor",auth_modal:{title:"Shop'ta takip edin",description:"Haberdar olun - Hiçbir satış, stoka geri ekleme veya sipariş güncellemesini kaçırmayın."},following_modal:{title:"{store} mağazasını Shop'ta ziyaret edin",subtitle:"Alışveriş yapmak, takip etmek ve ödeme yapmak için ihtiyaç duyduklarınızın tümü tek bir yerde.",qr_header:"{store} mağazasını Shop'ta ziyaret etmek için tarayın",qr_alt_text:"Shop uygulaması QR kodu",continue:"Devam"},completed:{title:"{store} mağazasını takip ediyorsunuz",subtitle:"Size Shop uygulamasını indirebileceğiniz bağlantının bulunduğu bir e-posta gönderdik."}},xp={login:"{shop} ile devam et"},Ep={remember_me:"Her yerde daha hızlı giriş yapmak için bilgilerimi Shop'a güvenli bir şekilde kaydet"};var Ap={follow_on_shop:Sp,login_with_shop:xp,customer_accounts:Ep},Tp=Object.freeze({__proto__:null,follow_on_shop:Sp,login_with_shop:xp,customer_accounts:Ep,default:Ap});const Pp={follow:"Theo dõi trên {shop}",following:"Đang theo dõi trên {shop}",auth_modal:{title:"Theo dõi trên Shop",description:"Luôn cập nhật—không bỏ lỡ thông tin nào về đợt giảm giá, bổ sung hàng hoặc đơn hàng."},following_modal:{title:"Truy cập {store} trên Shop",subtitle:"Mọi thứ bạn cần để mua sắm, theo dõi và thanh toán—tất cả ở cùng một nơi.",qr_header:"Quét để truy cập {store} trên ứng dụng Shop",qr_alt_text:"Mã QR của ứng dụng Shop",continue:"Tiếp tục"},completed:{title:"Bạn đang theo dõi {store}",subtitle:"Chúng tôi đã gửi cho bạn email chứa liên kết tải xuống ứng dụng Shop."}},Mp={login:"Tiếp tục với {shop}"},Lp={remember_me:"Lưu thông tin của tôi một cách an toàn bằng Shop để đăng nhập ở mọi nơi nhanh hơn"};var jp={follow_on_shop:Pp,login_with_shop:Mp,customer_accounts:Lp},Op=Object.freeze({__proto__:null,follow_on_shop:Pp,login_with_shop:Mp,customer_accounts:Lp,default:jp});const Ip={follow:"在 {shop} 中关注",following:"在 {shop} 中关注",auth_modal:{title:"在 Shop 中关注",description:"了解最新动态—绝不错过任何促销、补货或订单更新消息。"},following_modal:{title:"在 Shop 中访问 {store}",subtitle:"提供您购物、跟踪和支付所需的一切资源—全部在一个位置。",qr_header:"扫描以在 Shop 应用中访问 {store}",qr_alt_text:"Shop 应用二维码",continue:"继续"},completed:{title:"您即将关注 {store}",subtitle:"我们已向您发送电子邮件,其中包含下载 Shop 应用的链接。"}},Np={login:"继续使用 {shop}"},zp={remember_me:"使用 Shop 安全地保存我的信息,以便随处快速登录"};
3var Dp={follow_on_shop:Ip,login_with_shop:Np,customer_accounts:zp},Rp=Object.freeze({__proto__:null,follow_on_shop:Ip,login_with_shop:Np,customer_accounts:zp,default:Dp});const Bp={follow:"在 {shop} 上追蹤",following:"正在 {shop} 上追蹤",auth_modal:{title:"在 Shop 上追蹤",description:"隨時掌握最新狀況,從不錯過銷售、重新入庫或訂單更新消息。"},following_modal:{title:"造訪 Shop 上的 {store}",subtitle:"透過單一平台,取得購物、追蹤和付款的一切所需。",qr_header:"掃描以前往 Shop 應用程式上的 {store}",qr_alt_text:"Shop 應用程式 QR 碼",continue:"繼續"},completed:{title:"您正在追蹤 {store}",subtitle:"我們已傳送一封已附上 Shop 應用程式下載連結的電子郵件。"}},Fp={login:"以 {shop} 繼續"},Up={remember_me:"使用 Shop 安全地儲存我的資訊,以加速各平台的登入速度"};var $p={follow_on_shop:Bp,login_with_shop:Fp,customer_accounts:Up},Wp=Object.freeze({__proto__:null,follow_on_shop:Bp,login_with_shop:Fp,customer_accounts:Up,default:$p})}();
4//# sourceMappingURL=client.js.map

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.