/*! Copyright (c) Safe As Milk. All rights reserved. */class DynamicButton extends HTMLElement{#mutationObserver;constructor(){super(),this.#mutationObserver=null}connectedCallback(){if(this.children.length>1){const payNowButtonContainer=this.children[this.children.length-1],config={attributes:!1,childList:!0,subtree:!0},callback=(mutationList,observer)=>{if(mutationList.some(mutation=>mutation.type==="childList")){const placeholderButton=this.querySelector(".dynamic-button__placeholder");placeholderButton&&placeholderButton.remove(),observer.disconnect()}};new MutationObserver(callback).observe(payNowButtonContainer,config)}}disconnectedCallback(){this.#mutationObserver&&this.#mutationObserver.disconnect()}}customElements.define("dynamic-button",DynamicButton); //# sourceMappingURL=/cdn/shop/t/100/assets/dynamic-button.js.map?v=124943469890868650071751575324