(()=>{class t extends HTMLElement{static get observedAttributes(){return["title","description","retryButtonText"]}connectedCallback(){this.build()}attributeChangedCallback(){this.firstElementChild&&(this.removeChild(this.firstElementChild),this.build())}build(){const t=this.createAlertDetails(),e=this.createCardContent();t.appendChild(e),this.appendChild(t)}createAlertDetails(){const t=document.createElement("div");return t.classList.add("mp-alert-details-card"),t}createCardContent(){const t=document.createElement("div");t.classList.add("mp-alert-details-card-content");const e=document.createElement("div");e.classList.add("mp-alert-details-card-content-left");const i=document.createElement("div");i.classList.add("mp-alert-details-card-content-right"),t.appendChild(e),t.appendChild(i);const n=this.createBadge(),s=this.createTitle(),a=this.createDescription(),r=this.createRetryButton();return e.appendChild(n),i.appendChild(s),i.appendChild(a),i.appendChild(r),t}createBadge(){const t=document.createElement("div");return t.innerHTML="!",t.classList.add("mp-alert-details-badge"),t}createTitle(){const t=document.createElement("p");return t.innerHTML=this.getAttribute("title"),t.classList.add("mp-alert-details-title"),t}createDescription(){const t=document.createElement("p");return t.innerHTML=this.getAttribute("description"),t.classList.add("mp-alert-details-description"),t}createRetryButton(){const t=this.getAttribute("retryButtonText"),e=document.createElement("button");return e.classList.add("mp-alert-details-retry-button"),e.innerHTML=t,e.onclick=()=>document.location.reload(),e}}customElements.define("alert-details",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-checkout-benefits-container"),t.appendChild(this.createTitle()),t.appendChild(this.createList()),t}createTitle(){const t=document.createElement("p");t.classList.add("mp-checkout-benefits-title"),t.innerHTML=this.getAttribute("title");const e=this.getAttribute("title-align");return"center"===e&&t.style.setProperty("text-align","center","important"),"left"===e&&t.style.setProperty("text-align","left","important"),t}createList(){const t=JSON.parse(this.getAttribute("items")),e=document.createElement("div");return e.classList.add("mp-checkout-benefits-list"),t.forEach(((t,i)=>{e.appendChild(this.createItem(t,i))})),e}createItem(t,e){const i=document.createElement("div");i.classList.add("mp-checkout-benefits-item");const n=this.getAttribute("list-mode");return"count"===n?(i.appendChild(this.createCountList(e)),i.appendChild(this.createSimpleText(t)),i):"bullet"===n?(i.appendChild(this.createBulletList()),i.appendChild(this.createSimpleText(t)),i):"image"===n&&"object"==typeof t?(i.appendChild(this.createImageList(t)),i.appendChild(this.createCompositeText(t)),i):i}createSimpleText(t){const e=document.createElement("span");return e.innerHTML=t,e}createCompositeText({title:t,subtitle:e}){const i=document.createElement("p");i.classList.add("mp-checkout-benefits-item-title"),i.innerHTML=t;const n=document.createElement("p");n.classList.add("mp-checkout-benefits-item-subtitle"),n.innerHTML=e;const s=document.createElement("span");return s.appendChild(i),s.appendChild(n),s}createCountList(t){const e=document.createElement("p");e.innerText=1+t,e.classList.add("mp-checkout-benefits-count-list-item");const i=document.createElement("div");return i.classList.add("mp-checkout-benefits-count-list-div"),i.appendChild(e),i}createBulletList(){const t=document.createElement("div");t.classList.add("mp-checkout-benefits-tick-mark-container");const e=document.createElement("div");return e.classList.add("mp-checkout-benefits-tick-mark"),t.appendChild(e),t}createImageList({image:t}){const e=document.createElement("div");return e.classList.add("mp-checkout-benefits-image-list"),e.appendChild(this.createImage(t)),e}createImage({src:t,alt:e}){const i=document.createElement("img");return i.classList.add("mp-checkout-benefits-image"),i.setAttribute("src",t),i.setAttribute("alt",e),i}}customElements.define("checkout-benefits",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-checkout-redirect-v2-container"),t.setAttribute("data-cy","checkout-redirect-v2-container"),t.appendChild(this.createImage()),t.appendChild(this.createText()),t}createImage(){const t=document.createElement("img");return t.classList.add("mp-checkout-redirect-v2-image"),t.src=this.getAttribute("src"),t.alt=this.getAttribute("alt"),t}createText(){const t=document.createElement("p");return t.classList.add("mp-checkout-redirect-v2-text"),t.innerHTML=this.getAttribute("text"),t}}customElements.define("checkout-redirect-v2",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-checkout-redirect-container"),t.setAttribute("data-cy","checkout-redirect-container"),t.appendChild(this.createImage()),t.appendChild(this.createText()),t}createImage(){const t=document.createElement("img");return t.classList.add("mp-checkout-redirect-image"),t.src=this.getAttribute("src"),t.alt=this.getAttribute("alt"),t}createText(){const t=document.createElement("p");return t.classList.add("mp-checkout-redirect-text"),t.innerHTML=this.getAttribute("text"),t}}customElements.define("checkout-redirect",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){const t=this.createInputDocument();this.appendChild(t)}createInputDocument(){const t=document.createElement("div");t.classList.add("mp-input-document"),t.setAttribute("data-cy","input-document-container");const e=this.createLabel(this.getAttribute("label-message")),i=this.createHelper(this.getAttribute("helper-message")),n=this.createHiddenField(this.getAttribute("hidden-id")),s=this.createInput(i,n);return t.appendChild(e),t.appendChild(s),t.appendChild(n),t.appendChild(i),t}createLabel(t){const e=document.createElement("input-label");return e.setAttribute("message",t),e.setAttribute("isOptional","false"),e}createInput(t,e){const i=document.createElement("div");i.classList.add("mp-input"),i.setAttribute("id","form-checkout__identificationNumber-container");const n=JSON.parse(this.getAttribute("documents")),s=this.getAttribute("validate"),a=this.createVerticalLine(),r=this.createSelect(i,t,n,s),c=this.createDocument(i,r,t);return r.addEventListener("change",(()=>{i.classList.remove("mp-focus"),i.classList.remove("mp-error"),this.setInpuProperties(r,c),this.setMaskInputDocument(r,c,e)})),i.appendChild(r),i.appendChild(a),i.appendChild(c),this.setMaskInputDocument(r,c,e),i}setInpuProperties(t,e){"CPF"===t.value?(e.value="",e.setAttribute("maxlength","14"),e.setAttribute("placeholder","999.999.999-99")):"CNPJ"===t.value?(e.value="",e.setAttribute("maxlength","18"),e.setAttribute("placeholder","99.999.999/0001-99")):"CI"===t.value?(e.value="",e.setAttribute("maxlength","8"),e.setAttribute("placeholder","99999999")):(e.value="",e.setAttribute("maxlength","20"),e.setAttribute("placeholder",""))}createSelect(t,e,i,n){const s=document.createElement("select");return s.classList.add("mp-document-select"),s.setAttribute("name",this.getAttribute("select-name")),s.setAttribute("id",this.getAttribute("select-id")),s.setAttribute("data-checkout",this.getAttribute("select-data-checkout")),s.setAttribute("data-cy","select-document"),i&&i.forEach((t=>{this.createOption(s,t)})),n&&(s.addEventListener("focus",(()=>{t.classList.add("mp-focus"),e.firstElementChild.style.display="none"})),s.addEventListener("focusout",(()=>{t.classList.remove("mp-focus"),e.firstElementChild.style.display="none"}))),s}createOption(t,e){const i=document.createElement("option");i.innerHTML=e,i.value=e,t.appendChild(i)}createHiddenField(t){const e=document.createElement("input");return e.setAttribute("type","hidden"),e.setAttribute("id",t),e}createVerticalLine(){const t=document.createElement("div");return t.classList.add("mp-vertical-line"),t}isValidCPF(t){if("string"!=typeof t)return!1;if(!(t=t.replace(/[\s.-]*/gim,""))||11!==t.length||"00000000000"===t||"11111111111"===t||"22222222222"===t||"33333333333"===t||"44444444444"===t||"55555555555"===t||"66666666666"===t||"77777777777"===t||"88888888888"===t||"99999999999"===t)return!1;let e,i=0;for(let e=1;e<=9;e+=1)i+=parseInt(t.substring(e-1,e))*(11-e);if(e=10*i%11,10!==e&&11!==e||(e=0),e!==parseInt(t.substring(9,10)))return!1;i=0;for(let e=1;e<=10;e+=1)i+=parseInt(t.substring(e-1,e))*(12-e);return e=10*i%11,10!==e&&11!==e||(e=0),e===parseInt(t.substring(10,11))}isValidCNPJ(t){if(""===(t=t.replace(/[^\d]+/g,"")))return!1;if(14!==t.length)return!1;if("00000000000000"===t||"11111111111111"===t||"22222222222222"===t||"33333333333333"===t||"44444444444444"===t||"55555555555555"===t||"66666666666666"===t||"77777777777777"===t||"88888888888888"===t||"99999999999999"===t)return!1;let e=t.length-2,i=t.substring(0,e);const n=t.substring(e);let s=0,a=e-7;for(let t=e;t>=1;t-=1)s+=i.charAt(e-t)*a--,a<2&&(a=9);let r=s%11<2?0:11-s%11;if(r!==Number(n.charAt(0)))return!1;e+=1,i=t.substring(0,e),s=0,a=e-7;for(let t=e;t>=1;t-=1)s+=i.charAt(e-t)*a--,a<2&&(a=9);return r=s%11<2?0:11-s%11,r===Number(n.charAt(1))}isValidCI(t){let e=0,i=0,n=0;const s=t[t.length-1];if(t.length<=6)for(i=t.length;i<7;i+=1)t=`0${t}`;for(i=0;i<7;i+=1)e+=parseInt("2987634"[i],10)*parseInt(t[i],10)%10;return n=e%10==0?0:10-e%10,s===n.toString()}setMaskInputDocument(t,e,i){const n={CPF:t=>t.replace(/\D+/g,"").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})/,"$1-$2").replace(/(-\d{2})\d+?$/,"$1"),CNPJ:t=>t.replace(/\D+/g,"").replace(/(\d{2})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1/$2").replace(/(\d{4})(\d)/,"$1-$2").replace(/(-\d{2})\d+?$/,"$1"),CI:t=>t.replace(/\D+/g,"")};e.addEventListener("input",(e=>{if(void 0!==n[t.value]&&(e.target.value=n[t.value](e.target.value)),i){const t=e.target.value.replace(/\D/g,"");i.value=t}}))}createDocument(t,e,i){const n=document.createElement("input");return n.setAttribute("name",this.getAttribute("input-name")),n.setAttribute("data-checkout",this.getAttribute("input-data-checkout")),n.setAttribute("data-cy","input-document"),n.classList.add("mp-document"),n.type="text",n.inputMode="numeric",this.setInpuProperties(e,n),n.addEventListener("focus",(()=>{t.classList.add("mp-focus"),t.classList.remove("mp-error"),i.firstElementChild.style.display="none"})),n.addEventListener("focusout",(()=>{t.classList.remove("mp-focus");const s={CPF:t=>this.isValidCPF(t),CNPJ:t=>this.isValidCNPJ(t),CI:t=>this.isValidCI(t)};void 0!==s[e.value]&&(s[e.value](n.value)?(t.classList.remove("mp-error"),i.firstElementChild.style.display="none",n.setAttribute("name",this.getAttribute("input-name"))):(t.classList.add("mp-error"),i.firstElementChild.style.display="flex",n.setAttribute("name",this.getAttribute("flag-error"))))})),n}createHelper(t){const e=document.createElement("input-helper");return e.setAttribute("isVisible",!1),e.setAttribute("message",t),e.setAttribute("input-id","mp-doc-number-helper"),e}}customElements.define("input-document",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createHelper())}createHelper(){const t=document.createElement("div");t.classList.add("mp-helper"),t.setAttribute("id",this.getAttribute("input-id")),t.setAttribute("data-cy","helper-container"),this.validateVisibility(t);const e=this.createIcon(),i=this.getAttribute("message"),n=this.createHelperMessage(i);return t.appendChild(e),t.appendChild(n),t}createIcon(){const t=document.createElement("div");return t.innerHTML="!",t.classList.add("mp-helper-icon"),t}createHelperMessage(t){const e=document.createElement("div");return e.innerHTML=t,e.classList.add("mp-helper-message"),e.setAttribute("data-cy","helper-message"),e}validateVisibility(t){let e=this.getAttribute("isVisible");"string"==typeof e&&(e="false"!==e),t.style.display=e?"flex":"none"}}customElements.define("input-helper",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createLabel())}createLabel(){const t=document.createElement("div");t.classList.add("mp-input-label"),t.setAttribute("data-cy","input-label");const e=this.getAttribute("message");t.innerHTML=e;let i=this.getAttribute("isOptional");if("string"==typeof i&&(i="false"!==i),!i){const e=document.createElement("b");e.innerHTML="*",e.style="color: red",t.appendChild(e)}return t}}customElements.define("input-label",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-input-radio-container"),t.appendChild(this.createRadio()),t.appendChild(this.createLabel()),t}createRadio(){const t=document.createElement("input"),e=this.getAttribute("dataRate");return t.classList.add("mp-input-radio-radio"),t.type="radio",t.id=this.getAttribute("identification"),t.name=this.getAttribute("name"),t.value=this.getAttribute("value"),t.setAttribute("data-cy","input-radio"),e&&t.setAttribute("dataRate",e),t}createLabel(){const t=document.createElement("label");return t.classList.add("mp-input-radio-label"),t.htmlFor=this.getAttribute("identification"),t}}customElements.define("input-radio",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-input-select-container"),t.appendChild(this.createLabel()),t.appendChild(this.createInput()),t}createInput(){const t=document.createElement("div");return t.classList.add("mp-input-select-input"),t.appendChild(this.createSelect()),t}createSelect(){const t=document.createElement("select"),e=this.getAttribute("name");t.classList.add("mp-input-select-select"),t.setAttribute("id",e),t.setAttribute("name",e);const i=this.getAttribute("options")&&JSON.parse(this.getAttribute("options"));return i&&0!==i.length&&i.forEach((e=>{t.appendChild(this.createOption(e))})),t}createOption(t){const e=document.createElement("option");return e.innerHTML=t,e.value=t,e}createLabel(){const t=document.createElement("input-label"),e=this.getAttribute("optional");return t.setAttribute("message",this.getAttribute("label")),"false"===e?t.setAttribute("isOptional",e):t.setAttribute("isOptional","true"),t}}customElements.define("input-select",t)})(),(()=>{class t extends HTMLElement{static get observedAttributes(){return["columns","name","button-name","bank-interest-text"]}constructor(){super(),this.index=0,this.limit=5,this.offset=this.limit,this.columns=null,this.total=0}connectedCallback(){this.build()}attributeChangedCallback(){this.firstElementChild&&(this.removeChild(this.firstElementChild),this.build())}build(){this.appendChild(this.createContainer())}setColumns(){return this.columns=JSON.parse(this.getAttribute("columns")),this}setTotal(){return this.total=this.columns.length,this}createContainer(){const t=document.createElement("div");return this.setColumns(),this.columns&&(this.setTotal(),t.classList.add("mp-input-table-container"),t.setAttribute("data-cy","input-table-container"),t.appendChild(this.createList()),t.appendChild(this.createBankInterestDisclaimer())),t}createList(){const t=document.createElement("div");t.classList.add("mp-input-table-list"),t.setAttribute("data-cy","input-table-list");const e=this.createLink();return e.onclick=()=>this.appendItems(this.columns,t,e,!0),this.appendItems(this.columns,t,e,!1),t.appendChild(e),t}createItem(t){const e=document.createElement("div");return e.classList.add("mp-input-table-item"),e.appendChild(this.createLabel(t)),e}createLabel(t){const{id:e,value:i,rowText:n,rowObs:s,highlight:a,img:r,alt:c,dataRate:d}=t,l=this.getAttribute("name"),o=document.createElement("div");return o.classList.add("mp-input-table-label"),o.appendChild(this.createOption(e,l,i,n,r,c,d)),s&&o.appendChild(this.createRowObs(s,a)),o.onclick=()=>{document.getElementById(e).checked=!0},o}createOption(t,e,i,n,s,a,r){const c=document.createElement("div");return c.classList.add("mp-input-table-option"),c.appendChild(this.createRadio(t,e,i,r)),s?c.appendChild(this.createRowTextWithImg(n,s,a)):c.appendChild(this.createRowText(n)),c}createRadio(t,e,i,n){const s=document.createElement("input-radio");return s.setAttribute("name",e),s.setAttribute("value",i),s.setAttribute("identification",t),s.setAttribute("dataRate",n),s}createRowText(t){const e=document.createElement("span");return e.classList.add("mp-input-table-row-text"),e.innerHTML=t,e}createRowTextWithImg(t,e,i){const n=document.createElement("span"),s=document.createElement("payment-method-logo");return s.setAttribute("src",e),s.setAttribute("alt",i),s.style.marginRight="10px",n.classList.add("mp-input-table-row-text-image"),n.innerHTML=t,n.appendChild(s),n}createRowObs(t,e){const i=document.createElement("span");return e?i.classList.add("mp-input-table-row-obs-highlight"):i.classList.add("mp-input-table-row-obs"),i.innerHTML=t,i}createLink(){const t=document.createElement("div");t.classList.add("mp-input-table-container-link");const e=document.createElement("a");return e.setAttribute("id","more-options"),e.classList.add("mp-input-table-link"),e.innerHTML=this.getAttribute("button-name"),t.appendChild(e),t}createBankInterestDisclaimer(){const t=document.createElement("div");t.classList.add("mp-input-table-bank-interest-container");const e=document.createElement("p");return e.classList.add("mp-input-table-bank-interest-text"),e.innerText=this.getAttribute("bank-interest-text"),t.appendChild(e),t}appendItems(t,e,i,n){this.validateLimit();for(let s=this.index;s=this.total&&i.style.setProperty("display","none","important"),this.index+=this.offset,this.limit+=this.offset,this.validateLimit()}validateLimit(){this.limit>this.total&&(this.limit=this.total)}}customElements.define("input-table",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-payment-method-logo-slider-container"),t.appendChild(this.createContent()),t}createContent(){const t=JSON.parse(this.getAttribute("methods")),e=document.createElement("div");e.classList.add("mp-payment-method-logo-slider-content"),e.appendChild(this.createImage(t[0]));const i=e.firstChild;return this.createSlider(i,t),e}createImage({src:t,alt:e}){const i=document.createElement("payment-method-logo");return i.setAttribute("src",t),i.setAttribute("alt",e),i}createSlider(t,e,i=0){t.setAttribute("src",e[i].src),t.setAttribute("alt",e[i].alt),i=i{this.createSlider(t,e,i)}),2e3)}}customElements.define("payment-method-logo-slider",t)})(),(()=>{class t extends HTMLElement{static get observedAttributes(){return["src","alt"]}connectedCallback(){this.build()}attributeChangedCallback(){this.firstElementChild&&(this.removeChild(this.firstElementChild),this.build())}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-payment-method-logo-container"),t.appendChild(this.createImage()),t}createImage(){const t=document.createElement("img");return t.classList.add("mp-payment-method-logo-image"),t.alt=this.getAttribute("alt"),t.src=this.getAttribute("src"),t.onerror=t=>t.target?.parentNode?.parentNode?.parentNode?.removeChild(t.target.parentNode.parentNode),t}}customElements.define("payment-method-logo",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-payment-methods-v2-container"),t.appendChild(this.createContent()),t}createContent(){const t=document.createElement("div");return t.classList.add("mp-payment-methods-v2-content"),t.appendChild(this.createTitle()),t.appendChild(this.createList()),t}createTitle(){const t=document.createElement("p");return t.classList.add("mp-payment-methods-v2-title"),t.innerHTML=this.getAttribute("title"),t}createList(){const t=document.createElement("div");return t.classList.add("mp-payment-methods-v2-list"),this.handleMethodsList(t)}handleMethodsList(t){const e=JSON.parse(this.getAttribute("methods"));let i=!1;if(e.forEach(((n,s)=>{s<=9||11===e.length?t.appendChild(this.createLogo(n)):i=!0})),i){const i=Object.entries(e).slice(10).map((t=>t[1]));t.appendChild(this.createSlider(JSON.stringify(i)))}return t}createLogo({src:t,alt:e}){const i=document.createElement("payment-method-logo");return i.setAttribute("src",t),i.setAttribute("alt",e),i}createSlider(t){const e=document.createElement("payment-method-logo-slider");return e.setAttribute("methods",t),e}}customElements.define("payment-methods-v2",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=JSON.parse(this.getAttribute("methods")),e=document.createElement("div");return e.classList.add("mp-payment-methods-container"),t.forEach((t=>{e.appendChild(this.createPaymentMethodType(t))})),e}createPaymentMethodType(t){const{title:e,label:i,payment_methods:n}=t,s=document.createElement("div");return s.classList.add("mp-payment-method-type-container"),n&&0!==n.length&&(s.appendChild(this.createHeader(e,i)),s.appendChild(this.createContent(n))),s}createHeader(t,e){const i=document.createElement("div");return i.classList.add("mp-payment-methods-header"),t&&i.appendChild(this.createTitle(t)),e&&i.appendChild(this.createBadge(e)),i}createTitle(t){const e=document.createElement("p");return e.classList.add("mp-payment-methods-title"),e.innerHTML=t,e}createBadge(t){const e=document.createElement("div"),i=document.createElement("span");return i.classList.add("mp-payment-methods-badge-text"),i.innerHTML=t,e.classList.add("mp-payment-methods-badge"),e.appendChild(i),e}createContent(t){const e=document.createElement("div");return e.classList.add("mp-payment-methods-content"),t.forEach((t=>{e.appendChild(this.createImage(t))})),e}createImage(t){const{src:e,alt:i}=t,n=document.createElement("payment-method-logo");return n.setAttribute("src",e),n.setAttribute("alt",i),n}}customElements.define("payment-methods",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-pix-template-container"),t.setAttribute("data-cy","pix-template-container"),t.appendChild(this.createImage()),t.appendChild(this.createTitle()),t.appendChild(this.createSubtitle()),t}createTitle(){const t=document.createElement("p");return t.classList.add("mp-pix-template-title"),t.innerText=this.getAttribute("title"),t}createSubtitle(){const t=document.createElement("p");return t.classList.add("mp-pix-template-subtitle"),t.innerText=this.getAttribute("subtitle"),t}createImage(){const t=document.createElement("img");return t.classList.add("mp-pix-template-image"),t.src=this.getAttribute("src"),t.alt=this.getAttribute("alt"),t}}customElements.define("pix-template",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-terms-and-conditions-container"),t.setAttribute("data-cy","terms-and-conditions-container"),t.appendChild(this.createText()),t.appendChild(this.createLink()),t}createText(){const t=document.createElement("span");return t.classList.add("mp-terms-and-conditions-text"),t.innerHTML=this.getAttribute("description"),t}createLink(){const t=document.createElement("a");return t.classList.add("mp-terms-and-conditions-link"),t.innerHTML=this.getAttribute("link-text"),t.href=this.getAttribute("link-src"),t.target="blank",t}}customElements.define("terms-and-conditions",t)})(),(()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){const t=this.createTestMode(),e=this.createCardHeader(),i=this.createCardContent();t.appendChild(e),t.appendChild(i),this.appendChild(t)}createTestMode(){const t=document.createElement("div");return t.classList.add("mp-test-mode-card"),t.setAttribute("data-cy","test-mode-card"),t}createCardContent(){const t=document.createElement("div");t.classList.add("mp-test-mode-card-content");const e=document.createElement("p");e.innerHTML=this.getAttribute("description"),e.classList.add("mp-test-mode-description"),e.setAttribute("data-cy","test-mode-description"),t.appendChild(e);const i=this.getAttribute("link-text"),n=this.getAttribute("link-src"),s=document.createElement("a");return s.classList.add("mp-test-mode-link"),s.innerHTML=i,s.href=n,s.target="blank",e.appendChild(s),t}createCardHeader(){const t=document.createElement("div");t.classList.add("mp-test-mode-card-content");const e=this.createBadge(),i=this.createTitle();return t.appendChild(e),t.appendChild(i),t}createBadge(){const t=document.createElement("div");return t.innerHTML="!",t.classList.add("mp-test-mode-badge"),t}createTitle(){const t=document.createElement("p");return t.innerHTML=this.getAttribute("title"),t.classList.add("mp-test-mode-title"),t.setAttribute("data-cy","test-mode-title"),t}}customElements.define("test-mode",t)})();