1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1602],{81602:function(e,t,n){n.d(t,{L:function(){return C}});/*! ***************************************************************************** 2Copyright (c) Microsoft Corporation. All rights reserved. 3Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4this file except in compliance with the License. You may obtain a copy of the 5License at http://www.apache.org/licenses/LICENSE-2.0 6 7THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10MERCHANTABLITY OR NON-INFRINGEMENT. 11 12See the Apache Version 2.0 License for specific language governing permissions 13and limitations under the License. 14***************************************************************************** */ var o,i,r,s=function(){return(s=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 a(e,t,n,o){return new(n||(n=Promise))(function(i,r){function s(e){try{d(o.next(e))}catch(t){r(t)}}function a(e){try{d(o.throw(e))}catch(t){r(t)}}function d(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}d((o=o.apply(e,t||[])).next())})}function d(e,t){var n,o,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(a){r=[6,a],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}var l,c,u,h,p,f,m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},v=((l=function(e,t){var n;(n=function(e){function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var o={get passive(){n=!0}};window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}var i="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),r=[],s=!1,a=-1,d=void 0,l=void 0,c=function(e){return r.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})},u=function(e){var t=e||window.event;return!!c(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)},h=function(){setTimeout(function(){void 0!==l&&(document.body.style.paddingRight=l,l=void 0),void 0!==d&&(document.body.style.overflow=d,d=void 0)})};e.disableBodyScroll=function(e,o){if(i){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!r.some(function(t){return t.targetElement===e})){var h;r=[].concat(t(r),[{targetElement:e,options:o||{}}]),e.ontouchstart=function(e){1===e.targetTouches.length&&(a=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n;1!==t.targetTouches.length||(n=t.targetTouches[0].clientY-a,c(t.target)||(e&&0===e.scrollTop&&0<n?u(t):e&&e.scrollHeight-e.scrollTop<=e.clientHeight&&n<0?u(t):t.stopPropagation()))},s||(document.addEventListener("touchmove",u,n?{passive:!1}:void 0),s=!0)}}else h=o,setTimeout(function(){if(void 0===l){var e=!!h&&!0===h.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(l=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===d&&(d=document.body.style.overflow,document.body.style.overflow="hidden")}
14),r=[].concat(t(r),[{targetElement:e,options:o||{}}])},e.clearAllBodyScrollLocks=function(){i?(r.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),s&&(document.removeEventListener("touchmove",u,n?{passive:!1}:void 0),s=!1),r=[],a=-1):(h(),r=[])},e.enableBodyScroll=function(e){if(i){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,r=r.filter(function(t){return t.targetElement!==e}),s&&0===r.length&&(document.removeEventListener("touchmove",u,n?{passive:!1}:void 0),s=!1)}else(r=r.filter(function(t){return t.targetElement!==e})).length||h()}})(t)})(c={exports:{}},c.exports),(u=c.exports)&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u),E="https://buy.ramp.network/";function g(e,t,n){return void 0===n&&(n=!1),e[t].filter(function(e){return e.internal===n}).length}function b(e){var t,n=null===(t=e.variant)||void 0===t?void 0:t.toLocaleLowerCase();if("mobile"===n||"desktop"===n||"hosted-mobile"===n||"hosted-desktop"===n||"embedded-desktop"===n||"embedded-mobile"===n)return n;var o=window.matchMedia("(min-width: 920px) and (min-height: 630px)").matches;return"hosted-auto"===n?o?"hosted-desktop":"hosted-mobile":o?"desktop":"mobile"}function _(e){var t,n=new URL(e.url||E),o=window.location.origin;return e.containerNode,e.url,Object.entries(s(s({},function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n}(e,["containerNode","url"])),{hostUrl:o})).forEach(function(e){var t=e[0],o=e[1];o&&n.searchParams.append(t,o)}),n.toString()}function w(e,t,n){var o=document.createElement("iframe");return o.setAttribute("src",e),n?(o.setAttribute("width","desktop"===t||"embedded-desktop"===t?895..toString():n.getBoundingClientRect().width.toString()),o.setAttribute("height","desktop"===t||"embedded-desktop"===t?590..toString():n.getBoundingClientRect().height.toString())):(o.setAttribute("width","desktop"===t||"embedded-desktop"===t?895..toString():window.innerWidth.toString()),o.setAttribute("height","desktop"===t||"embedded-desktop"===t?590..toString():window.innerHeight.toString())),o.setAttribute("allow","microphone;camera"),o.classList.add("iframe"),o}function y(e){var t=document.createElement("style"),n="mobile"===e||"hosted-mobile"===e||"embedded-mobile"===e;return t.textContent="\n\n .background-hider {\n content: '';\n height: 30vh;\n width: 100vw;\n position: fixed;\n bottom: 0;\n transform: translateY(50%);\n background-color: #f5f8fb;\n z-index: 999;\n }\n\n .overlay {\n position: fixed;\n z-index: 1000;\n width: 100vw;\n height: "+(n?"100%;":"100vh;")+"\n top: 0;\n left: 0;\n overflow: hidden;\n background-color: rgba(166, 174, 185, 0.7);\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n "+(n?"align-items: flex-start;":"align-items: center;")+"\n }\n\n .embedded-container {\n z-index: 1000;\n position: relative;\n width: 100%;\n height: 100%;\n display: flex;\n flex-flow: row nowrap;\n justify-content: center;\n "+(n?"align-items: flex-start;":"align-items: center;")+"\n min-width: "+(n?320:895)+"px;\n min-height: "+(n?667:590)+"px;\n }\n\n .loader-container {\n align-self: center;\n }\n\n .loader {\n transform-origin: center;\n animation: logoAnimation 4s linear infinite;\n width: 100px;\n height: auto;\n align-self: center;\n }\n\n .loader path:nth-child(3) {\n transform-origin: center;\n position: relative;\n }\n\n .loader path:nth-child(1) {\n transform-origin: center;\n position: relative;\n animation: box1Animation 4s linear infinite;\n transform: scale(0.4) translateX(6px);\n }\n\n .loader path:nth-child(2) {\n transform-origin: center;\n position: relative;\n animation: box4Animation 4s linear infinite;\n transform: scale(0.4) translateX(-6px);\n }
14\n\n @keyframes logoAnimation {\n 10% {\n transform: rotate(180deg);\n }\n 30%{\n transform: rotate(360deg);\n }\n 70% {\n transform: rotate(360deg);\n }\n 90% {\n transform: rotate(520deg);\n }\n 100% {\n transform: rotate(720deg);\n }\n }\n\n @keyframes box1Animation {\n 0%, 10% {\n transform: scale(0.4) translateX(6px);\n }\n 30%, 70% {\n transform: scale(1) translateX(0);\n }\n 90% {\n transform: scale(0.4) translateX(6px);\n }\n }\n\n\n @keyframes box4Animation {\n 0%, 10% {\n transform: scale(0.4) translateX(-6px);\n }\n 30%, 70% {\n transform: scale(1) translateX(0);\n }\n 90% {\n transform: scale(0.4) translateX(-6px);\n }\n }\n\n .iframe {\n border: none;\n user-select: none;\n visibility: hidden;\n position: absolute;\n }\n\n .iframe.visible {\n visibility: visible;\n "+(!("embedded-mobile"===e||"embedded-desktop"===e)&&n?"\n width: 100vw;\n height: 100%;\n ":"")+"\n }\n\n .close-modal {\n font-family: 'Poppins', sans-serif;\n width: 678px;\n height: 276px;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n z-index: 9999;\n box-shadow: 0px 54px 200px rgba(36, 37, 57, 0.2);\n display: flex;\n flex-flow: column nowrap;\n justify-content: flex-start;\n align-items: center;\n padding: 35px;\n border-radius: 8px;\n background: #fff;\n\n box-sizing: border-box;\n }\n\n .close-modal * {\n box-sizing: border-box;\n }\n\n .close-modal__text {\n margin: 40px auto 30px;\n font-weight: 600;\n font-size: 24px;\n line-height: 36px;\n text-align: center;\n\n color: #242539;\n }\n\n .close-modal__button-container {\n width: 318px;\n display: flex;\n flex-flow: row nowrap;\n justify-content: space-between;\n align-items: center;\n }\n\n .close-modal__button {\n background: #fff;\n border: 2px solid #EDEEF3;\n border-radius: 74px;\n width: 152px;\n height: 56px;\n cursor: pointer;\n font-weight: 600;\n font-size: 14px;\n line-height: 21px;\n color: #2B2D56;\n text-transform: uppercase;\n }\n\n .close-modal__button--exit {\n background: #DD3E56;\n box-shadow: 0px 8px 34px rgba(221, 62, 86, 0.4);\n color: #fff;\n border-color: transparent;\n }\n ",t}(h=o||(o={})).VERBOSE="VERBOSE",h.DEBUG="DEBUG",h.INFO="INFO",h.WARNING="WARNING",h.ERROR="ERROR",h.CRITICAL="CRITICAL",(p=i||(i={})).WIDGET_CLOSE="WIDGET_CLOSE",p.WIDGET_CONFIG_DONE="WIDGET_CONFIG_DONE",p.WIDGET_CONFIG_FAILED="WIDGET_CONFIG_FAILED",p.PURCHASE_CREATED="PURCHASE_CREATED",p.PURCHASE_SUCCESSFUL="PURCHASE_SUCCESSFUL",p.PURCHASE_FAILED="PURCHASE_FAILED",(f=r||(r={})).WIDGET_CLOSE_REQUEST="WIDGET_CLOSE_REQUEST",f.WIDGET_CLOSE_REQUEST_CANCELLED="WIDGET_CLOSE_REQUEST_CANCELLED",f.WIDGET_CLOSE_REQUEST_CONFIRMED="WIDGET_CLOSE_REQUEST_CONFIRMED";var C=function(){function e(e){this._listeners=(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),i=0,t=0;t<n;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,i++)o[i]=r[s];return o}
14)(n=Array.from(Object.values(i)),Array.from(Object.values(r))).reduce(function(e,t){return e[t]=[],e},{}),this._isVisible=!1,this._isPollingForSwapStatus=!1,this._purchasePollingCredentials=null,function(){if(!document.querySelector("[data-ramp-font]")){var e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css?family=Poppins:200,400,500,600,700&display=swap&subset=latin-ext"),e.setAttribute("rel","stylesheet"),e.setAttribute("data-ramp-font",""),document.head.appendChild(e)}}(),this.unsubscribe=this.unsubscribe.bind(this),this.on=this.on.bind(this),this.show=this.show.bind(this),this._handleEscapeClick=this._handleEscapeClick.bind(this),this._dispatchEvent=this._dispatchEvent.bind(this),this._subscribeToWidgetEvents=this._subscribeToWidgetEvents.bind(this),this._on=this._on.bind(this),this._processPurchasePollingLoop=this._processPurchasePollingLoop.bind(this),this._registerSdkEventHandlers=this._registerSdkEventHandlers.bind(this),this._runPostSubscribeHooks=this._runPostSubscribeHooks.bind(this),this._subscribeToWidgetEvents=this._subscribeToWidgetEvents.bind(this),this._rawNormalizedConfig=(a=s({variant:"desktop"},e),d=[],l=s({},a),["desktop","mobile","hosted-desktop","hosted-mobile","hosted-auto","auto","embedded-desktop","embedded-mobile",].includes(a.variant)||(l.variant="desktop",d.push({fieldName:"variant",description:"Invalid value for `variant` config field ",exampleValue:"'desktop'",severity:o.WARNING})),("embedded-desktop"===a.variant||"embedded-mobile"===a.variant)&&function(e,t){if(!document.body)throw Error("Couldn't find <body> element.");if(!(e instanceof HTMLElement))throw Error("Container node has to be a proper HTML element.");if(!document.body.contains(e))throw Error("Container node must be attached to the document.");var n=e.getBoundingClientRect(),o=n.width,i=n.height;if("embedded-desktop"===t){if(o+1<895)throw Error("Container node must be at least 895px wide.");if(i+1<590)throw Error("Container node must be at least 590px tall.")}else if("embedded-mobile"===t){if(o+1<320)throw Error("Container node must be at least 320px wide.");if(i+1<667)throw Error("Container node must be at least 667px tall.")}}(a.containerNode,a.variant),["embedded-desktop","embedded-mobile"].includes(l.variant)||delete l.containerNode,!(t=d).length||(console.group("Config errors"),t.forEach(function(e){console.group(e.fieldName),console.log(e.description),console.log("Example expected value: "+e.exampleValue),console.log("Severity: "+e.severity),console.groupEnd()}),console.groupEnd()),l);var t,n,a,d,l,c=b(this._rawNormalizedConfig);this._config=s(s({},this._rawNormalizedConfig),{variant:c,widgetInstanceId:function(){try{return String(crypto.getRandomValues(new Uint32Array(1))[0])}catch(e){return String(Math.floor(1e7*Math.random()))}}()})}return e.prototype.show=function(){var e;if(this._isVisible)throw Error("Widget is already visible - you can only call this once per instance");return document.activeElement&&"function"==typeof(e=document.activeElement).blur&&document.activeElement.blur(),this._registerSdkEventHandlers(),window.addEventListener("message",this._subscribeToWidgetEvents),this._isConfiguredAsHosted()?this._showUsingHostedMode():this._isConfiguredAsEmbedded()?this._showUsingEmbeddedMode():this._isConfiguredWithOverlay()&&this._showUsingOverlayMode(),window.addEventListener("keydown",this._handleEscapeClick,!0),this},e.prototype.on=function(e,t){return this._on(e,t,!1),this},e.prototype.unsubscribe=function(e,t){var n=this;return"*"===e?Object.entries(this._listeners).forEach(function(e){var o=e[0],i=e[1].filter(function(e){return e.callback!==t});n._listeners[o]=i}):this._listeners[e]=this._listeners[e].filter(function(e){return e.callback!==t}),this},e.prototype._on=function(e,t,n){("*"===e||this._listeners[e]||console.warn("Unknown / unsupported event name - '"+e+"'. This listener will have no effect."),"*"===e)?Object.values(this._listeners).forEach(function(e){return e.push({callback:t,internal:n})}):this._listeners[e].push({callback:t,internal:n}),this._runPostSubscribeHooks(e,n)},e.prototype.close=function(){return this._dispatchEvent({type:i.WIDGET_CLOSE,payload:null,widgetInstanceId:this._config.widgetInstanceId}),this},e.prototype._subscribeToWidgetEvents=function(e){if(e.data&&(t=e.origin,n=this._config.url||E,new URL(t).toString()===new URL(n).toString())){var t,n,o=e.data;o.widgetInstanceId&&o.widgetInstanceId===this._config.widgetInstanceId&&this._dispatchEvent(o)}},e.prototype._registerSdkEventHandlers=function(){var e=this;this._on(i.WIDGET_CLOSE,function(t){var n,o;if(e._isConfiguredAsHosted())try{null===(n=e.widgetWindow)||void 0===n||n.close()}catch(i){throw Error("Could not close the widget window")}else null===(o=e.domNodes)||void 0===o||o.shadowHost.remove(),v.clearAllBodyScrollLocks();e._teardownEventSubscriptions()},!0);var t=function(){if(!e._isConfiguredAsHosted()){null===(t=e.domNodes)||void 0===t||t.iframe.classList.add("visible");
14var t,n,o=null===(n=e.domNodes)||void 0===n?void 0:n.shadow.querySelector(".loader-container");o&&o.remove()}};this._on(i.WIDGET_CONFIG_DONE,t,!0),this._on(i.WIDGET_CONFIG_FAILED,t,!0),this._on(r.WIDGET_CLOSE_REQUEST,function(t){var n,o,i,s,a,d,l;if(!(e._isConfiguredAsHosted()||e._isConfiguredAsEmbedded()))"mobile"!==e._config.variant&&0===(n=e.domNodes.overlay).querySelectorAll(".close-modal").length&&e.domNodes.overlay.appendChild((o=e._dispatchEvent,(i=document.createElement("div")).classList.add("close-modal"),(s=document.createElement("div")).classList.add("close-modal__text"),s.textContent="Are you sure you want to exit Ramp and abandon the transaction?",(a=document.createElement("div")).classList.add("close-modal__button-container"),(d=document.createElement("button")).setAttribute("type","button"),d.classList.add("close-modal__button"),d.classList.add("close-modal__button--cancel"),d.textContent="Cancel",d.addEventListener("click",function(e){e.stopPropagation(),o({type:r.WIDGET_CLOSE_REQUEST_CANCELLED,payload:null,internal:!0})}),(l=document.createElement("button")).setAttribute("type","button"),l.classList.add("close-modal__button"),l.classList.add("close-modal__button--exit"),l.textContent="Exit",l.addEventListener("click",function(e){e.stopPropagation(),o({type:r.WIDGET_CLOSE_REQUEST_CONFIRMED,payload:null,internal:!0})}),a.appendChild(d),a.appendChild(l),i.appendChild(s),i.appendChild(a),i))},!0),this._on(r.WIDGET_CLOSE_REQUEST_CONFIRMED,function(t){e._dispatchEvent({type:i.WIDGET_CLOSE,payload:null,widgetInstanceId:e._config.widgetInstanceId})},!0),this._on(r.WIDGET_CLOSE_REQUEST_CANCELLED,function(t){if(!(e._isConfiguredAsHosted()||e._isConfiguredAsEmbedded())){var n=e.domNodes.overlay.querySelector(".close-modal");n&&n.remove()}},!0),this._on(i.PURCHASE_CREATED,function(t){e._purchasePollingCredentials={apiUrl:t.payload.apiUrl,purchaseExternalId:t.payload.purchase.id,token:t.payload.purchaseViewToken},e._processPurchasePollingLoop(e._purchasePollingCredentials)},!0)},e.prototype._dispatchEvent=function(e){var t=e.type;this._listeners[t].forEach(function(t){return t.callback(e)})},e.prototype._handleEscapeClick=function(e){("Escape"===e.key||"Esc"===e.key||27===e.keyCode)&&this._dispatchEvent({type:r.WIDGET_CLOSE_REQUEST,payload:null,internal:!0})},e.prototype._teardownEventSubscriptions=function(){window.removeEventListener("keydown",this._handleEscapeClick,!0),window.removeEventListener("message",this._subscribeToWidgetEvents)},e.prototype._processPurchasePollingLoop=function(e){var t,n,o=e.apiUrl,r=e.purchaseExternalId,s=e.token;return a(this,void 0,void 0,function(){var e;return d(this,function(l){switch(l.label){case 0:this._isPollingForSwapStatus=!0,l.label=1;case 1:if(!(g(this._listeners,i.PURCHASE_SUCCESSFUL)>0||g(this._listeners,i.PURCHASE_FAILED)>0))return[3,4];return[4,function(e){return a(this,void 0,void 0,function(){return d(this,function(e){return[2,new Promise(function(e){return setTimeout(e,1e3)})]})})}(1e3)];case 2:return l.sent(),[4,function(e,t,n){return a(this,void 0,void 0,function(){var o,i;return d(this,function(i){switch(i.label){case 0:var r,s,a,d,l;return i.trys.push([0,3,,4]),[4,fetch((s="/host-api/purchase/"+t+"?secret="+n,a=(l=e instanceof URL?e.href:e).endsWith("/")?l.slice(0,-1):l,d=s.startsWith("/")?s.substr(1):s,new URL(a+"/"+d)).href,{headers:{"Content-Type":"application/json"}})];case 1:if(!(o=i.sent()).ok)throw Error("Request for purchase #"+t+" failed");return[4,o.json()];case 2:return[2,i.sent()];case 3:return i.sent(),[2,null];case 4:return[2]}})})}(o,r,s)];case 3:if(!(e=l.sent()))return[3,1];if(null===(t=e.actions)||void 0===t?void 0:t.find(function(e){return"RELEASED"===e.newStatus}))return this._dispatchEvent({type:i.PURCHASE_SUCCESSFUL,payload:{purchase:e},widgetInstanceId:this._config.widgetInstanceId}),[2];if(null===(n=e.actions)||void 0===n?void 0:n.find(function(e){return"ERROR"===e.newStatus}))return this._dispatchEvent({type:i.PURCHASE_FAILED,payload:null,widgetInstanceId:this._config.widgetInstanceId}),[2];return[3,1];case 4:return this._isPollingForSwapStatus=!1,[2]}})})},e.prototype._runPostSubscribeHooks=function(e,t){("*"===e||e===i.PURCHASE_SUCCESSFUL||i.PURCHASE_FAILED)&&this._purchasePollingCredentials&&!this._isPollingForSwapStatus&&this._processPurchasePollingLoop(this._purchasePollingCredentials)},e.prototype._showUsingEmbeddedMode=function(){var e,t,n,o,i,r,s,a,d,l,c,u=_(this._config);if(this.domNodes=(this._dispatchEvent,i=this._config,r=document.querySelector("body"),(s=document.createElement("div")).style.width="100%",s.style.height="100%",a=s.attachShadow({mode:"open"}),(d=document.createElement("div")).classList.add("embedded-container"),a.appendChild(d),(l=document.createElement("div")).classList.add("loader-container"),l.innerHTML='\n <svg width="92" height="60" viewB
14ox="0 0 51 32" fill="none" xmlns="http://www.w3.org/2000/svg" class="loader">\n <path d="M16.2232 18.8309L22.282 24.912C22.7953 25.4272 22.7948 26.2647 22.281 26.7792L17.651 31.4158C16.8619 32.1947 15.5719 32.1947 14.7828 31.4158L0.591812 17.4093C-0.197271 16.6305 -0.197271 15.3571 0.591812 14.5783L14.7828 0.584122C15.5719 -0.194707 16.8619 -0.194707 17.651 0.584122L22.281 5.22078C22.7948 5.73535 22.7953 6.57281 22.282 7.08795L16.2232 13.1691C14.645 14.7267 14.645 17.2733 16.2232 18.8309Z" fill="#21BF73"></path>\n <path d="M34.4433 18.8309L28.3845 24.912C27.8712 25.4272 27.8717 26.2647 28.3855 26.7792L33.0155 31.4158C33.8046 32.1947 35.0946 32.1947 35.8837 31.4158L50.0747 17.4093C50.8638 16.6305 50.8638 15.3571 50.0747 14.5783L35.8837 0.584122C35.0946 -0.194707 33.8046 -0.194707 33.0155 0.584122L28.3855 5.22078C27.8717 5.73535 27.8712 6.57281 28.3845 7.08795L34.4433 13.1691C36.0215 14.7267 36.0215 17.2733 34.4433 18.8309Z" fill="#0A6E5C"></path>\n <path d="M17.8128 17.157C17.1737 16.518 17.1737 15.482 17.8128 14.843L24.1765 8.47926C24.8155 7.84025 25.8515 7.84025 26.4905 8.47926L32.8542 14.843C33.4932 15.482 33.4932 16.518 32.8542 17.157L26.4905 23.5207C25.8515 24.1598 24.8155 24.1598 24.1765 23.5207L17.8128 17.157Z" fill="#21BF73"></path>\n </svg>',d.appendChild(l),a.appendChild(y(i.variant)),c=w(u,i.variant,i.containerNode),d.appendChild(c),{body:r,iframe:c,overlay:null,shadow:a,shadowHost:s}),!(null===(e=this.domNodes)||void 0===e?void 0:e.body))throw Error("Couldn't find <body> element.");null===(t=this._config.containerNode)||void 0===t||t.appendChild(this.domNodes.shadowHost),this._isVisible=!0},e.prototype._showUsingOverlayMode=function(){var e,t,n,o,i,s,a,d,l,c,u,h,p,f,m,E,g=_(this._config);if(this.domNodes=(s=this._dispatchEvent,a=this._config,d=document.querySelector("body"),(l=document.createElement("div")).style.width="100%",l.style.height="100%",(c=l.attachShadow({mode:"open"})).appendChild(y(a.variant)),p=u=w(g,a.variant),f=s,(m=document.createElement("div")).classList.add("overlay"),(h=((E=document.createElement("div")).classList.add("loader-container"),E.innerHTML='\n <svg width="92" height="60" viewB
14ox="0 0 51 32" fill="none" xmlns="http://www.w3.org/2000/svg" class="loader">\n <path d="M16.2232 18.8309L22.282 24.912C22.7953 25.4272 22.7948 26.2647 22.281 26.7792L17.651 31.4158C16.8619 32.1947 15.5719 32.1947 14.7828 31.4158L0.591812 17.4093C-0.197271 16.6305 -0.197271 15.3571 0.591812 14.5783L14.7828 0.584122C15.5719 -0.194707 16.8619 -0.194707 17.651 0.584122L22.281 5.22078C22.7948 5.73535 22.7953 6.57281 22.282 7.08795L16.2232 13.1691C14.645 14.7267 14.645 17.2733 16.2232 18.8309Z" fill="#21BF73"></path>\n <path d="M34.4433 18.8309L28.3845 24.912C27.8712 25.4272 27.8717 26.2647 28.3855 26.7792L33.0155 31.4158C33.8046 32.1947 35.0946 32.1947 35.8837 31.4158L50.0747 17.4093C50.8638 16.6305 50.8638 15.3571 50.0747 14.5783L35.8837 0.584122C35.0946 -0.194707 33.8046 -0.194707 33.0155 0.584122L28.3855 5.22078C27.8717 5.73535 27.8712 6.57281 28.3845 7.08795L34.4433 13.1691C36.0215 14.7267 36.0215 17.2733 34.4433 18.8309Z" fill="#0A6E5C"></path>\n <path d="M17.8128 17.157C17.1737 16.518 17.1737 15.482 17.8128 14.843L24.1765 8.47926C24.8155 7.84025 25.8515 7.84025 26.4905 8.47926L32.8542 14.843C33.4932 15.482 33.4932 16.518 32.8542 17.157L26.4905 23.5207C25.8515 24.1598 24.8155 24.1598 24.1765 23.5207L17.8128 17.157Z" fill="#21BF73"></path>\n </svg>',m.appendChild(E),m.addEventListener("click",function(e){e.target===p||m.querySelectorAll(".close-modal").length||f({type:r.WIDGET_CLOSE_REQUEST,payload:null,internal:!0})}),m)).appendChild(u),c.appendChild(h),{body:d,iframe:u,overlay:h,shadow:c,shadowHost:l}),!(null===(o=this.domNodes)||void 0===o?void 0:o.body))throw Error("Couldn't find <body> element.");this.domNodes.body.appendChild(this.domNodes.shadowHost),this._isVisible=!0,v.disableBodyScroll(this.domNodes.iframe);var C=b(this._config);"desktop"!==C&&"embedded-desktop"!==C&&(e=this.domNodes.shadow,(n=document.createElement("div")).classList.add("background-hider"),t&&(n.style.maxWidth=t+"px"),e.appendChild(n))},e.prototype._showUsingHostedMode=function(){var e,t=_(this._config);this.widgetWindow=null!=(e=window.open(t))?e:void 0},e.prototype._isConfiguredWithOverlay=function(){return["desktop","mobile"].includes(this._config.variant)},e.prototype._isConfiguredAsHosted=function(){return["hosted-desktop","hosted-mobile"].includes(this._config.variant)},e.prototype._isConfiguredAsEmbedded=function(){return["embedded-desktop","embedded-mobile"].includes(this._rawNormalizedConfig.variant)},e}()}}]);
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.