1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="564fba67-0971-43df-9064-e1fe1ae689c5",t._sentryDebugIdIdentifier="sentry-dbid-564fba67-0971-43df-9064-e1fe1ae689c5")}catch(t){}}(),function(){"use strict";class InstallmentPaymentMessage extends HTMLElement{static get observedAttributes(){return["data-estimated-total"]}onButtonClickBound=this.onButtonClick.bind(this);connectedCallback(){this.initializeShadowRoot();this.shadowRoot.querySelector("button").addEventListener("click",this.onButtonClickBound),this.render()}disconnectedCallback(){const t=this.shadowRoot.querySelector("button");null==t||t.removeEventListener("click",this.onButtonClickBound)}attributeChangedCallback(t,e,n){this.initializeShadowRoot(),this.isConnected&&e!==n&&this.render()}initializeShadowRoot(){this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML='<style>:host{line-height:1.5rem}@media only screen and (max-width:1023px){:host{font-size:.875rem}}p{margin:0}.logo-afterpay,.logo-klarna{vertical-align:middle}.logo-klarna{max-width:59px}@media only screen and (max-width:1023px){.logo-klarna{max-width:51px}}.logo-afterpay{max-width:82px}@media only screen and (max-width:1023px){.logo-afterpay{max-width:73px}}.learn-more-button{padding:0;font-size:.875rem;font-family:inherit;text-decoration:underline;cursor:pointer;background:transparent;border:none;font-weight:700;color:#c12e6f}@media only screen and (max-width:1023px){.learn-more-button{font-size:.75rem}}.learn-more-button:hover{text-decoration:none}:host([data-hide-message=true]){display:none}</style><div class="wrapper"><p id="installments" hidden>Get it for 4 payments of <price-element id="total" data-show-code="true"></price-element> with <img class="logo-klarna" alt="Klarna"> or <nobr><img class="logo-afterpay" alt="Afterpay">.</nobr> <button class="learn-more-button">Learn more</button></p></div>')}render(){parseInt(this.dataset.estimatedTotal,10)<parseInt(this.dataset.threshold,10)?this.setAttribute("data-hide-message","true"):(this.setAttribute("data-hide-message","false"),this.renderInstallments(),this.renderLogo(),this.renderMessages())}renderInstallments(){const t=parseInt(this.dataset.estimatedTotal,10),e=this.shadowRoot.getElementById("total");e?(e.dataset.currencyCode=this.dataset.currencyCode,e.dataset.currencySymbol=this.dataset.currencySymbol,Number.isInteger(t)?e.dataset.subunits=(t/4).toString():e.removeAttribute("data-subunits")):console.log("could not find total element to update")}renderLogo(){const t=this.shadowRoot.querySelectorAll(".logo-klarna");for(const e of t)e.src=this.dataset.logoUrlKlarna;const e=this.shadowRoot.querySelectorAll(".logo-afterpay");for(const t of e)t.src=this.dataset.logoUrlAfterpay}renderMessages(){const t=this.shadowRoot.getElementById("installments");if(!t)return;const e=parseInt(this.dataset.estimatedTotal,10),n=parseInt(this.dataset.threshold,10),o=Number.isInteger(e)&&e>n;t.hidden=!o}onButtonClick(t){const e=t.currentTarget;if(!(e instanceof HTMLElement))return;const n=new Event("focus-stack-push-requested",{bubbles:!0,composed:!0});e.dispatchEvent(n),dispatchEvent(new Event("modal-dismiss-requested"));const o=new Event("installment-payment-modal-requested",{bubbles:!0,composed:!0});this.dispatchEvent(o)}}customElements.get("installment-payment-message")||customElements.define("installment-payment-message",InstallmentPaymentMessage)}(); 2//# sourceMappingURL=installment-payment-message-element-section-41372f4f625ab51448d4c1bb85e481d3.map.json
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.