PageSourceSearch

https://cherimoya.com.ar/wp-content/plugins/woocommerce-mercadopag…/mp-plugins-components.min.js?ver=8.9.5

js cherimoya.com.ar collected 2026-10-09 01:45:02 UTC 75,072 bytes, 1 lines download raw bytes

1(()=>{var t={26:()=>{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)},116:()=>{class t extends HTMLElement{tabNumber=5;connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-checkout-redirect-v3-container"),t.setAttribute("data-cy","checkout-redirect-v3-container"),t.appendChild(this.createTitleContainer()),t.appendChild(this.createDescription()),t}createTitleContainer(){const t=document.createElement("div");return t.classList.add("mp-checkout-redirect-v3-title-container"),t.appendChild(this.createMPLogoImage()),t.appendChild(this.createTitle()),t}createMPLogoImage(){const t=document.createElement("img");return t.classList.add("mp-checkout-redirect-v3-mp-logo-image"),t.setAttribute("aria-hidden","true"),t.src=this.getAttribute("src"),t.alt=this.getAttribute("alt"),t}createTitle(){const t=document.createElement("p");return t.classList.add("mp-checkout-redirect-v3-title"),t.innerHTML=this.getAttribute("title"),t.tabIndex=this.tabNumber,this.tabNumber++,t}createDescription(){const t=document.createElement("p");return t.classList.add("mp-checkout-redirect-v3-description"),t.innerHTML=this.getAttribute("description"),t.tabIndex=this.tabNumber,this.tabNumber++,t}}customElements.define("checkout-redirect-v3",t)},454:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MPE",default:!1,max_length:11,max_length_with_mask:14,min_length:11,placeholder:"99.999.999.999"};static mask(t){const e=t.replace(/\D+/g,"");return e.length<=3?e:e.length<=6?e.slice(0,-3)+"."+e.slice(-3):e.length<=9?e.slice(0,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3):e.slice(0,-9)+"."+e.slice(-9,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3)}static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},540:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MCO",default:!0,max_length:10,min_length:5,max_length_with_mask:13,placeholder:"9.999.999.999"};static mask(t){const e=t.replace(/\D+/g,"");return e.length<=3?e:e.length<=6?e.slice(0,-3)+"."+e.slice(-3):e.length<=9?e.slice(0,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3):e.slice(0,-9)+"."+e.slice(-9,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3)}static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},734:()=>{class t extends HTMLElement{tabNumber=1;connectedCallback(){this.build()}build(){this.appendChild(this.createContainer())}createContainer(){const t=document.createElement("div");return t.classList.add("mp-checkout-benefits-list-container"),t.appendChild(this.createTitle()),t.appendChild(this.createList(
1)),t}createTitle(){const t=document.createElement("p");t.classList.add("mp-checkout-benefits-list-title"),t.innerHTML=this.getAttribute("title"),t.tabIndex=this.tabNumber,this.tabNumber++;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");return i.classList.add("mp-checkout-benefits-list-item"),i.appendChild(this.createCountItem(e)),i.appendChild(this.createSimpleText(t)),i}createSimpleText(t){const e=document.createElement("span");return e.innerHTML=t,e.tabIndex=this.tabNumber,this.tabNumber++,e}createCountItem(t){const e=document.createElement("p");return e.innerText=1+t+".",e.classList.add("mp-checkout-benefits-list-count-list-item"),e}}customElements.define("checkout-benefits-list",t)},893:()=>{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)},938:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MLA",default:!0,max_length:8,max_length_with_mask:10,min_length:7,placeholder:"99.999.999"};static mask(t){const e=t.replace(/\D+/g,"");return e.length<=3?e:e.length<=6?e.slice(0,-3)+"."+e.slice(-3):e.slice(0,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3)}static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},1295:()=>{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(
1)),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:s,rowObs:n,highlight:a,img:r,alt:l,dataRate:c}=t,d=this.getAttribute("name"),o=document.createElement("div");return o.classList.add("mp-input-table-label"),o.appendChild(this.createOption(e,d,i,s,r,l,c)),n&&o.appendChild(this.createRowObs(n,a)),o.onclick=()=>{document.getElementById(e).checked=!0},o}createOption(t,e,i,s,n,a,r){const l=document.createElement("div");return l.classList.add("mp-input-table-option"),l.appendChild(this.createRadio(t,e,i,r)),n?l.appendChild(this.createRowTextWithImg(s,n,a)):l.appendChild(this.createRowText(s)),l}createRadio(t,e,i,s){const n=document.createElement("input-radio");return n.setAttribute("name",e),n.setAttribute("value",i),n.setAttribute("identification",t),n.setAttribute("dataRate",s),n}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 s=document.createElement("span"),n=document.createElement("payment-method-logo");return n.setAttribute("src",e),n.setAttribute("alt",i),n.style.marginRight="10px",s.classList.add("mp-input-table-row-text-image"),s.innerHTML=t,s.appendChild(n),s}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,s){this.validateLimit();for(let n=this.index;n<this.limit;n+=1)s?e.insertBefore(this.createItem(t[n]),i):e.appendChild(this.createItem(t[n]));this.limit>=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)},1807:(t,e,i)=>{const s=i(2781),n=i(6407),a=i(6135),r=i(938),l=i(9794),c=i(1981),d=i(2603),o=i(3505),p=i(9957),u=i(540),h=i(6020),m=i(7749),b=i(2957),g=i(6133),E=i(454);t.exports=class{static handlers={CPF:s,CNPJ:n,CC:u,MLA_CI:o,MLU_CI:p,MCO_CE:h,MPE_CE:m,MLA_DNI:r,MPE_DNI:l,NIT:b,LC:c,LE:d,RUT:g,RUC:E};static getDefaultCountryHandler(t){for(const[e,i]of Object.entries(this.handlers))if(i.CONFIG&&i.CONFIG.site_id===t&&!0===i.CONFIG.default)return e;return null}static getHandler(t){return this.handlers[t]||a}static mask(t,e){return this.getHandler(t).mask(e)}static validate(t,e){return this.getHandler(t).validate(e)}}},1943:()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createLabel())}createLabel(){const t=document.createElement("label");t.classList.add("mp-input-label"),t.setAttribute("data-cy","input-label");const e=this.getAttribute("message");t.textContent=e;const i=this.getAttribute("for");i&&(t.htmlFor=i);let s=this.getAttribute("isOptional");if("string"==typeof s&&(s="false"!==s),!s){const e=document.createElement("b");e.textContent="*",e.style="color: red",t.appendChild(e)}return t}}customElements.define("input-label",t)},1981:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MLA",default:!1,max_length:7,max_length_with_mask:9,min_length:6,placeholder:"9.999.999"};static mask(t){const e=t.replace(/\D+/g,"");return e.length<=3?e:e.length<=6?e.slice(0,-3)+"."+e.slice(-3):e.slice(0,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3)}static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},2119:()=>{class t extends HTMLElement{helper=this.createHelper();input=this.createInput();connectedCallback(){this.build()}build(){const t=this.createInputField();this.appendChild(t)}createInputField(){const t=document.createElement("div");t.classList.add("mp-yape-input-field"),t.setAttribute("data-cy","input-field-container");const e=this.createLabel(this.getAttribute("label-message"));return t.appendChild(e),t.appendChild(this.input),t.appendChild(this.helper),t}createLabel(t){const e=document.createElement("input-label");return e.setAttribute("message",t),e.setAttribute("isOptional","true"),e}validate(){""===this.input.value?(this.helper.firstElementChild.style.display="flex",document.getElementById("helper-input-field").childNodes[1].innerHTML=document.querySelector("input-field").getAttribute("empty-error-message"),this.input.classList.add("mp-input-field-error"),document.querySelector('[data-cy="input-label"]').style.setProperty("color","#f23d4f","important")):this.input.value.length<11?(this.helper.firstElementChild.style.display="flex",document.getElementById("helper-input-field").childNodes[1].innerHTML=document.querySelector("input-field").getAttribute("invalid-error-message"),this.input.classList.add("mp-input-field-error"),document.querySelector('[data-cy="input-label"]').style.setProperty("color","#f23d4f","important")):(this.helper.firstElementChild.style.display="none",document.querySelector('[data-cy="input-label"]').style.setProperty("color","#111111","important"))}createInput(){const t=document.createElement("input");return t.classList.add("mp-yape-input"),t.setAttribute("id","checkout__yapePhoneNumber"),t.setAttribute("maxlength","11"),t.setAttribute("placeholder","Ej.: 872 123 432"),t.setAttribute("aria-hidden","true"),t.setAttribute("data-cy","input-field"),t.setAttribute("name","phoneNumber"),t.setAttribute("required","true"),t.addEventListener("input",(()=>{const e=t.value.replace(/\D/g,"");let i="";for(let t=0;t<e.length;t+=1)i+=e[t],(t+1)%3==0&&t!==e.length-1&&(i+=" ");t.value=i})),t.addEventListener("focus",(()=>{t.classList.add("mp-input-field-focus"),t.classList.remove("mp-in
1put-field-error"),this.helper.firstElementChild.style.display="none"})),t.addEventListener("blur",(()=>{this.validate()})),t}createHelper(){const t=document.createElement("input-helper");return t.setAttribute("isVisible","false"),t.setAttribute("type","error"),t.setAttribute("message","error"),t.setAttribute("input-id","helper-input-field"),t}}customElements.define("input-field",t)},2577:()=>{class t extends HTMLElement{connectedCallback(){this.build()}build(){this.appendChild(this.createHelper())}createHelper(){const t=document.createElement("div"),e=this.getAttribute("type")||"error";t.classList.add("mp-helper"),t.setAttribute("id",this.getAttribute("input-id")),t.setAttribute("data-cy","helper-container"),t.setAttribute("role","error"===e?"alert":"status"),this.validateVisibility(t);const i=this.getAttribute("message"),s=this.createHelperMessage(i,e);if("error"===e){const e=this.createIcon();t.appendChild(e)}return t.appendChild(s),t}createIcon(){const t=document.createElement("div");return t.innerHTML='\n    <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n      <rect width="12" height="12" rx="6" fill="#CC1818"/><path d="M6.72725 2.90918H5.27271L5.45452 6.90918H6.54543L6.72725 2.90918Z" fill="white"/>\n      <path d="M5.99998 7.63645C6.40164 7.63645 6.72725 7.96206 6.72725 8.36373C6.72725 8.76539 6.40164 9.091 5.99998 9.091C5.59832 9.091 5.27271 8.76539 5.27271 8.36373C5.27271 7.96206 5.59832 7.63645 5.99998 7.63645Z" fill="white"/>\n    </svg>',t.classList.add("mp-helper-icon"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t}createHelperMessage(t,e){const i=document.createElement("div");return i.textContent=t,i.classList.add("mp-helper-message"),i.classList.add(e),i.setAttribute("data-cy","helper-message"),i}updateMessage(t){this.setAttribute("message",t),this.querySelector(".mp-helper-message").textContent=t}validateVisibility(t){let e=this.getAttribute("isVisible");"string"==typeof e&&(e="false"!==e),t.style.display=e?"flex":"none"}}customElements.define("input-helper",t)},2603:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MLA",default:!1,max_length:7,max_length_with_mask:9,min_length:6,placeholder:"9.999.999"};static mask(t){const e=t.replace(/\D+/g,"");return e.length<=3?e:e.length<=6?e.slice(0,-3)+"."+e.slice(-3):e.slice(0,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3)}static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},2781:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MLB",default:!0,max_length:11,max_length_with_mask:14,placeholder:"999.999.999-99"};static mask(t){return 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")}static validate(t){if("string"!=typeof t)return{result:!1,type:this.ERROR_TYPES.INVALID};if(!(t=t.replace(/[\s.-]*/gim,""))||0===t.length)return{result:!1,type:this.ERROR_TYPES.EMPTY};if("00000000000"===t||"11111111111"===t||"22222222222"===t||"33333333333"===t||"44444444444"===t||"55555555555"===t||"66666666666"===t||"77777777777"===t||"88888888888"===t||"99999999999"===t)return{result:!1,type:this.ERROR_TYPES.WRONG};if(0===parseInt(t,10))return{result:!1,type:this.ERROR_TYPES.WRONG};if(!t||11!==t.length)return{result:!1,type:this.ERROR_TYPES.INVALID};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{result:!1,type:this.ERROR_TYPES.WRONG};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))?{result:!1,type:this.ERROR_TYPES.WRONG}:{result:!0,type:this.ERROR_TYPES.VALID}}}},2813:()=>{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)}
1,2957:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MCO",default:!1,max_length:16,min_length:7,max_length_with_mask:16,placeholder:"999.999.999-9"};static mask(t){const e=t.replace(/\D+/g,"");if(e.length<=3)return e;if(e.length<=6)return e.slice(0,-3)+"."+e.slice(-3);if(e.length>=9){const t=e.slice(0,-1),i=e.slice(-1);return`${t.replace(/\B(?=(\d{3})+(?!\d))/g,".")}-${i}`}return e.slice(0,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3)}static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},2979:()=>{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)},3007:()=>{class t extends HTMLElement{constructor(){super(),this.state={isOpen:!1,selectedItem:null,focusedIndex:0,hasFocus:!1,isValid:!0,hasInteracted:!1,taxInfo:null,wasClicked:!1,errorCleared:!1,focusOnError:!1}}static get observedAttributes(){return["label","placeholder","hint","required-message","disabled","items","site-id","focus-on-error"]}connectedCallback(){this.build()}isIOS(){if(navigator.userAgentData?.platform)return["iOS"].includes(navigator.userAgentData.platform);const t=navigator.userAgent;return/iPad|iPhone|iPod/.test(t)||t.includes("Mac")&&"ontouchend"in document}attributeChangedCallback(t,e,i){if(e!==i)switch(t){case"disabled":this.setDisabled(null!==i);break;case"items":this.setItems(JSON.parse(i||"[]"));break;case"label":this.updateLabel(i);break;case"hint":this.updateHint(i);break;case"required-message":this.setRequiredMessage(i);break;case"site-id":this.updateTaxInfo();break;case"focus-on-error":this.state.focusOnError=null!==i}}build(){this.classList.add("andes-dropdown","andes-dropdown--form");const t=document.createElement("div");t.classList.add("andes-dropdown__wrapper");const e=this.createTrigger(),i=this.createMenu(),s=this.createDefaultHelper(),n=this.createErrorHelper(),a=this.createTaxInfo();t.appendChild(e),t.appendChild(i);const r=this.createLabel();this.appendChild(r),this.appendChild(t),this.appendChild(s),this.appendChild(n),this.appendChild(a),this.trigger=e,this.menu=i,this.defaultHelper=s,this.errorHelper=n,this.taxInfo=a,this.itemsContainer=i.querySelector(".andes-dropdown__items"),this.setupEventListeners(),this.itemsContainer&&this.renderItems()}createLabel(){const t=document.createElement("label");return t.className="andes-dropdown__label",t.textContent=this.getAttribute("label")||"",t.setAttribute("tabindex","0"),t.setAttribute("for",this.getAttribute("id")||"andes-dropdown"),t}createTrigger(){const t=document.createElement("button");t.type="button",t.className="andes-dropdown__trigger",t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls","andes-dropdown-menu"),t.setAttribute("data-placeholder",!this.state.selectedItem);const e=document.createElement("span");e.className="andes-dropdown__selected-text",e.textContent=this.getAttribute("placeholder")||"";const i=document.createElement("span");return i.className="andes-dropdown__arrow",t.appendChild(e),t.appendChild(i),t}createMenu(){const t=document.createElement("div");t.className="andes-dropdown__menu",t.setAttribute("role","listbox"),t.setAttribute("tabindex","0"),t.setAttribute("aria-required",this.getAttribute("required")||"false"),t.hidden=!0;const e=document.createElement("div");return e.className="andes-dropdown__items",t.appendChild(e),t}createDefaultHelper(){const t=document.createElement("input-helper");return t.setAttribute("input-id",`${this.getAttribute("id")||"andes-dropdown"}-default`),t.setAttribute("message",this.getAttribute("hint")||""),t.setAttribute("type","message"),t.setAttribute("isVisible",this.getAttribute("hint")?"true":"false"),t}createErrorHelper(){const t=document.createElement("input-helper");return t.setAttribute("input-id",`${this.getAttribute("id")||"andes-dropdown"}-error`),t.setAttribute("message",this.getAttribute("required-message")||""),t.setAttribute("type","error"),t.setAttribute("isVisible","false"),t}createTaxInfo(){const t=document.createElement("div");return t.className="andes-dropdown__tax-info",t.style.display="none",t}setupEventListeners(){this.trigger.addEventListener("click",(()=>{this.handleClick(),this.toggleMenu()})),this.trigger.addEventListener("keydown",(t=>this.handleKeyDown(t))),this.trigger.addEventListener("keyup",(t=>this.handleKeyUp(t))),this.trigger.addEventListener("focus",(()=>this.handleFocus())),this.trigger.addEventListener("blur",(()=>this.handleBlur())),this.menu.addEventListener("mousedown",(t=>{t.preventDefault(),t.stopPropagation()})),document.addEventListener("mousedown",(t=>this.handleOutsideClick(t)))}renderItems(){this.itemsContainer&&(this.itemsContainer.innerHTML="",JSON.parse(this.getAttribute("items")||"[]").forEach(((t,e)=>{const i=document.createElement("div");i.className="andes-dropdown__item",i.setAttribute("role","option"),i.setAttribute("aria-selected",this.state.selectedItem&&this.state.selectedItem.value===t.value),i.setAttribute("tabindex","0"),i.setAttribute("aria-label",t.title),i.textContent=t.title,t.disabled&&i.classList.add("andes-dropdown__item--disabled"),this.state.selectedItem&&this.state.selectedItem.value===t.value&&i.classList.add("andes-dropdown__item--selected"),this.state.focusedIndex===e&&this.state.isOpen?(i.classList.add("andes-dropdown__item--focused"),i.setAttribute("aria-selected","true"),this.trigger.setAttribute("aria-activedescendant",`andes-dropdown-item-${e}`),i.id=`andes-dropdown-item-${e}`):(i.setAttribute("aria-selected","false"),i.removeAttribute("id")),t.disabled||(i.addEventListener("mousedown",(i=>{i.preventDefault(),i.stopPropagation();const s=this.state.hasFocus;this.selectItem(t,e),s&&(this.classList.add("andes-dropdown--focused"),setTimeout((()=>{this.trigger.focus()}),10))})),i.addEventListener("mouseenter",(i=>{this.state.focusedIndex=e,this.isIOS()&&setTimeout((()=>this.selectItem(t,e)),300),this.renderItems()}))),this.itemsContainer.appendChild(i)})))}handleClick(){if(this.state.errorCleared=!1,this.state.isOpen)this.classList.remove("andes-dropdown--error"),this.hideErrorMessage();else if(!this.state.isOpen&&this.state.hasInteracted&&!this.state.selectedItem){this.classList.add("andes-dropdown--error");const t=this.getAttribute("required-message");t&&this.setErrorMessage(t)}}toggleMenu(){null===this.getAttribute("disabled")&&(this.state.isOpen||(this.state.wasClicked=!0),this.state.isOpen=!this.state.isOpen,this.updateMenuState(),this.state.isOpen&&(this.state.hasInteracted=!0))}updateMenuState(){if(this.state.isOpen)this.menu.hidden=!1,this.classList.add("andes-dropdown--open"),this.trigger.setAttribute("aria-expanded","true"),this.dispatchEvent(new CustomEvent("mp-open-dropdown")),this.classList.remove("andes-dropdown--error"),this.hideErrorMessage();else if(this.menu.hidden=!0,this.classList.remove("andes-dropdown--open"),this.trigger.setAttribute("aria-expanded","fal
1se"),this.dispatchEvent(new CustomEvent("mp-close-dropdown")),this.state.hasInteracted&&!this.state.selectedItem&&!this.state.errorCleared){this.classList.add("andes-dropdown--error");const t=this.getAttribute("required-message");t&&this.setErrorMessage(t)}this.renderItems()}selectItem(t,e){t.disabled||(this.state.selectedItem=t,this.state.focusedIndex=e,this.state.isOpen=!1,this.updateSelectedText(),this.updateMenuState(),this.updateTaxInfo(),this.classList.remove("andes-dropdown--error"),this.hideErrorMessage(),this.state.wasClicked=!1,this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:t})))}updateSelectedText(){const t=this.trigger.querySelector(".andes-dropdown__selected-text");t&&(this.state.selectedItem?(t.textContent=this.state.selectedItem.title,this.trigger.setAttribute("data-placeholder","false")):(t.textContent=this.getAttribute("placeholder")||"",this.trigger.setAttribute("data-placeholder","true")))}handleOutsideClick(t){setTimeout((()=>{this.trigger.contains(t.target)||this.menu.contains(t.target)||(this.state.isOpen=!1,this.updateMenuState())}),0)}handleKeyDown(t){if(!this.state.isOpen&&("ArrowDown"===t.key||"Enter"===t.key||" "===t.key))return t.preventDefault(),this.state.isOpen=!0,void this.updateMenuState();if(!this.state.isOpen)return;const e=JSON.parse(this.getAttribute("items")||"[]");if("Enter"===t.key||" "===t.key){t.preventDefault();const i=e[this.state.focusedIndex];i&&!i.disabled&&this.selectItem(i,this.state.focusedIndex)}else"Tab"===t.key?t.preventDefault():"Escape"!==t.key&&"Backspace"!==t.key||(t.preventDefault(),this.state.isOpen=!1,this.state.hasInteracted=!0,this.updateMenuState(),this.validate())}handleKeyUp(t){if(!this.state.isOpen)return;const e=JSON.parse(this.getAttribute("items")||"[]");if("Tab"===t.key&&t.shiftKey){let t=this.state.focusedIndex-1;for(;t>=0&&e[t].disabled;)t--;t>=0&&(this.state.focusedIndex=t),this.renderItems()}else if("Tab"===t.key&&!t.shiftKey){let t=this.state.focusedIndex+1;for(;t<e.length&&e[t].disabled;)t++;t<e.length&&(this.state.focusedIndex=t),this.renderItems()}}handleFocus(){if(this.state.hasFocus=!0,this.classList.add("andes-dropdown--focused"),this.classList.remove("andes-dropdown--error"),this.hideErrorMessage(),this.state.wasClicked=!1,this.defaultHelper){const t=this.defaultHelper.querySelector(".mp-helper"),e=this.errorHelper.querySelector(".mp-helper");(t||e)&&(t.style.display="none",e.style.display="none",this.classList.remove("andes-dropdown--error"))}}handleBlur(){this.state.hasFocus=!1,this.state.isOpen=!1,this.state.selectedItem?(this.classList.remove("andes-dropdown--error"),this.classList.remove("andes-dropdown--focused"),this.hideErrorMessage(),this.state.errorCleared=!0,this.menu.hidden=!0,this.classList.remove("andes-dropdown--open"),this.trigger.setAttribute("aria-expanded","false"),this.dispatchEvent(new CustomEvent("mp-close-dropdown")),this.renderItems()):this.classList.add("andes-dropdown--error")}setItems(t){this.setAttribute("items",JSON.stringify(t)),this.renderItems()}setDisabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this.classList.toggle("andes-dropdown--disabled",t)}updateLabel(t){const e=this.querySelector(".andes-dropdown__label");e&&(e.textContent=t||"")}updateHint(t){if(this.defaultHelper){this.defaultHelper.updateMessage(t||"");const e=this.defaultHelper.querySelector(".mp-helper");e&&(e.style.display=t?"flex":"none")}}setRequiredMessage(t){this.errorHelper&&this.errorHelper.setAttribute("message",t||"")}setErrorMessage(t){if(this.errorHelper){this.errorHelper.setAttribute("message",t||"");const e=this.errorHelper.querySelector(".mp-helper");if(e&&(e.style.display="flex",e.setAttribute("tabindex","0"),e.setAttribute("aria-label",t||"")),this.defaultHelper){const t=this.defaultHelper.querySelector(".mp-helper");t&&(t.style.display="none",t.setAttribute("tabindex","-1"),t.setAttribute("aria-label",""))}this.classList.add("andes-dropdown--error")}}hideErrorMessage(){if(this.errorHelper){const t=this.errorHelper.querySelector(".mp-helper");t&&(t.style.display="none")}if(this.defaultHelper){const t=this.defaultHelper.querySelector(".mp-helper");t&&(t.style.display="flex")}this.classList.remove("andes-dropdown--error")}validate(){const t=null!==this.getAttribute("required-message"),e=!t||t&&null!==this.state.selectedItem;if(this.state.isValid=e,!this.state.isOpen&&this.state.hasInteracted&&(this.state.errorCleared=!1),this.state.hasInteracted&&!this.state.isOpen)if(e)this.hideErrorMessage();else{const t=this.getAttribute("required-message");t&&(this.setErrorMessage(t),this.state.focusOnError&&this.trigger.focus())}else this.hideErrorMessage();return e}getValue(){return this.state.selectedItem?this.state.selectedItem.value:null}updateTaxInfo(){if(!this.taxInfo)return;const t=this.getAttribute("site-id");if("mla"===t?.toLowerCase()&&this.state.selectedItem?.taxInfo){const{cft:t,tna:e,tea:i}=this.state.selectedItem.taxInfo;if(parseInt(this.state.selectedItem.value,10)>=2){const s=[];if(t&&s.push(`<b>CFTEA: ${t}%</b>`),e&&s.push(`TNA: ${e}%`),i&&s.push(`TEA: ${i}%`),!s.length)return void(this.taxInfo.style.display="none");this.taxInfo.style.display="block",this.taxInfo.innerHTML=s.join(" - ").concat(". Tasa fija.")}else this.taxInfo.style.display="none"}else this.taxInfo.style.display="none"}}customElements.define("andes-dropdown",t)},3185:()=>{class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.render()}render(){const t=document.createElement("div");t.classList.add("mp-info-notification");const e=document.createElement("div");e.classList.add("content");const i=document.createElement("img");i.src=this.getAttribute("src"),i.alt="Icone de informação",i.classList.add("icon");const s=document.createElement("div");s.classList.add("message"),s.textContent=this.getAttribute("message")||"Mensagem de informação",e.appendChild(i),e.appendChild(s),t.appendChild(e);const n=document.createElement("div");n.classList.add("footer");const a=document.createElement("img");a.src=this.getAttribute("icon"),a.alt="Footer Icon",a.classList.add("footer-icon"),n.appendChild(a),n.appendChild(document.createTextNode(this.getAttribute("footer-text")||"Procesado por Mercado Pago")),this.shadowRoot.append(t),this.shadowRoot.append(n),this.applyStyles()}applyStyles(){const t=document.createElement("style");t.textContent="\n      .mp-info-notification {\n        display: flex !important;\n        flex-direction: column !important;\n        padding: 12px !important;\n        background-color: #f7f7f7 !important;\n        border-radius: 8px !important;\n        border-left: 4px solid var(--andes-accent-color) !important;\n        margin-bottom: 16px !important;\n      }\n\n      .content {\n        display: flex !important;\n        align-items: center !important;\n      }\n\n      .icon {\n        max-width: 16px !important;\n        max-height: 16px !important;\n        margin-right: 8px !important;\n      }\n\n      @media (max-width: 600px) {\n        .icon {\n          margin-bottom: 15px !important;\n        }\n      }\n\n      @media (max-width: 300px) {\n        .icon {\n          margin-bottom: 35px !important;\n        }\n      }\n\n      .message {\n        flex-grow: 1 !important;\n        color: #333 !important;\n        padding: 10px !important;\n        font-family: 'Proxima Nova', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n        font-size: 14px !important;\n        font-weight: 400 !important;\n        line-height: 18px !important;\n        text-align: left !important;\n      }\n\n      .footer {\n        display: flex !important;\n        align-items: center !important;\n        color: #999 !important;\n        margin-top: 24px !important;\n        font-family: 'Proxima Nova', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n        font-size: 12px !important;\n        font-weight: 600 !important;\n        line-height: 15px !important;\n        text-align: left !important;\n      }
1\n\n      .footer-icon {\n        max-width: 20px !important;\n        margin-right: 8px !important;\n      }\n    ",this.shadowRoot.appendChild(t)}}customElements.define("checkout-notice",t)},3291:t=>{t.exports=class{static ERROR_TYPES={INVALID:"invalid",EMPTY:"empty",WRONG:"wrong",VALID:"valid"};static validate(t){throw new Error(`Method 'validate()' must be implemented by ${this.name}`)}static mask(t){return t}}},3505:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MLA",default:!1,max_length:8,max_length_with_mask:10,min_length:7,placeholder:"99.999.999"};static mask(t){const e=t.replace(/\D+/g,"");return e.length<=3?e:e.length<=6?e.slice(0,-3)+"."+e.slice(-3):e.slice(0,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3)}static validate(t){if("string"!=typeof t||0===t.length)return{result:!1,type:this.ERROR_TYPES.EMPTY};if((t=t.replace(/[\s.-]/g,"")).length>this.CONFIG.max_length)return{result:!1,type:this.ERROR_TYPES.WRONG};let e=0,i=0,s=0;const n=t[t.length-1];if(t.length<this.CONFIG.min_length)for(i=t.length;i<this.CONFIG.min_length;i+=1)t=`0${t}`;for(i=0;i<this.CONFIG.min_length;i+=1)e+=parseInt("2987634"[i],10)*parseInt(t[i],10)%10;return s=e%10==0?0:10-e%10,n!==s.toString()?{result:!1,type:this.ERROR_TYPES.WRONG}:{result:!0,type:this.ERROR_TYPES.VALID}}}},4073:()=>{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<e.length-1?i+1:0,setTimeout((()=>{this.createSlider(t,e,i)}),2e3)}}customElements.define("payment-method-logo-slider",t)},4751:()=>{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 s=this.createBadge(),n=this.createTitle(),a=this.createDescription(),r=this.createRetryButton();return e.appendChild(s),i.appendChild(n),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)},5926:()=>{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)}
1,6020:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MCO",default:!1,max_length:7,min_length:6,max_length_with_mask:7,placeholder:"9999999"};static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},6045:(t,e,i)=>{const s=i(1807),n={CPF:"CPF",CNPJ:"CNPJ",DNI:"DNI",CI:"CI",LC:"LC",LE:"LE",OTRO:"Otro",RUT:"RUT",CC:"CC",CE:"CE",NIT:"NIT",RUC:"RUC"},a={MPE:{CE:"C.E"}},r=t=>(t||"").replace(/[^a-zA-Z0-9]/g,"").toUpperCase();class l extends HTMLElement{selectObserver=null;selectObserverTimeout=null;connectedCallback(){this.build()}disconnectedCallback(){this.cleanupSelectObserver()}cleanupSelectObserver(){this.selectObserver&&(this.selectObserver.disconnect(),this.selectObserver=null),this.selectObserverTimeout&&(clearTimeout(this.selectObserverTimeout),this.selectObserverTimeout=null)}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-empty")),s=this.createHiddenField(this.getAttribute("hidden-id")),n=this.createInstruction(),a=this.createInput(i,s,e);return t.appendChild(e),t.appendChild(a),t.appendChild(s),t.appendChild(i),n&&t.appendChild(n),t}elementId(t){return`${this.getAttribute("select-id")||"mp-doc-number"}-${t}`}hasInstruction(){return!(!this.getAttribute("instruction-range")&&!this.getAttribute("instruction-fixed"))}createInstruction(){if(!this.hasInstruction())return null;const t=document.createElement("span");return t.setAttribute("id",this.elementId("instruction")),t.classList.add("mp-sr-only"),this.instructionElement=t,t}updateInstruction(t){const e=this.instructionElement;if(!e)return;const i=t?.CONFIG?.min_length,s=t?.CONFIG?.max_length;e.textContent=s?i&&i!==s?(this.getAttribute("instruction-range")||"").replace("{min}",i).replace("{max}",s):(this.getAttribute("instruction-fixed")||"").replace("{digits}",s):""}createLabel(t){const e=document.createElement("input-label");e.setAttribute("message",t),e.setAttribute("isOptional","false"),e.setAttribute("id",this.elementId("label"));const i=this.getAttribute("select-id");return i&&e.setAttribute("for",i),e}createInput(t,e,i){const s=document.createElement("div");s.classList.add("mp-input"),s.setAttribute("id","form-checkout__identificationNumber-container");const n=JSON.parse(this.getAttribute("documents")),a=this.getAttribute("validate"),r=this.createVerticalLine(),l=this.createSelect(s,t,n,a),c=this.createDocument(s,l,t,i);return l.addEventListener("change",(()=>{s.classList.remove("mp-focus"),this.clearErrorStates(s,t,i),this.setDocumentValidity(c,t,!1),this.setInputProperties(l,c,this.getAttribute("site-id")),this.setMaskInputDocument(l,c,e)})),s.appendChild(l),s.appendChild(r),s.appendChild(c),this.setMaskInputDocument(l,c,e),n&&0!==n.length||this.observeSelectPopulationFromSdk(l,c),s}buildDocumentNameWithSiteId(t,e){const i=r(t);return`${e&&["CE","DNI","CI"].includes(i)?`${e}_`:""}${i}`.toUpperCase()}setInputProperties(t,e,i){const n=this.buildDocumentNameWithSiteId(t.value,i),a=s.getHandler(n);e.value="",e.setAttribute("maxlength",this.getPermissiveMaxLength(t.value,a)),e.setAttribute("placeholder",a.CONFIG.placeholder),this.updateInstruction(a)}getPermissiveMaxLength(t,e){const i={CPF:11,CNPJ:14,CI:8}[t]??20;return e.mask("9".repeat(i)).length}observeSelectPopulationFromSdk(t,e){this.cleanupSelectObserver();const i=new MutationObserver((()=>{if(!this.isConnected||0===t.options.length)return;const i=this.getAttribute("site-id"),n=s.getDefaultCountryHandler(i);this.normalizeDocumentOptionLabels(t,i);const a=n&&Array.from(t.options).find((t=>this.buildDocumentNameWithSiteId(t.value,i)===n));t.value=a?a.value:t.options[0].value,this.setInputProperties(t,e,this.getAttribute("site-id")),this.cleanupSelectObserver()}));this.selectObserver=i,i.observe(t,{childList:!0,subtree:!1}),this.selectObserverTimeout=setTimeout((()=>{this.isConnected&&this.cleanupSelectObserver()}),15e3)}normalizeDocumentOptionLabels(t,e){const i=(e||"").toUpperCase(),s=a[i]||{};
1Array.from(t.options).forEach((t=>{const e=r(t.value),i=s[e]||n[e];i&&(t.textContent=i)}))}createSelect(t,e,i,n){const a=document.createElement("select");if(a.classList.add("mp-document-select"),a.setAttribute("name",this.getAttribute("select-name")),a.setAttribute("id",this.getAttribute("select-id")),a.setAttribute("data-checkout",this.getAttribute("select-data-checkout")),a.setAttribute("data-cy","select-document"),a.setAttribute("aria-required","true"),i&&i.length>0){i.forEach((t=>{this.createOption(a,t)}));const t=this.getAttribute("site-id"),e=s.getDefaultCountryHandler(t),n=e&&i.find((i=>this.buildDocumentNameWithSiteId(i,t)===e));a.value=n||a.options[0].value}return n&&(a.addEventListener("focus",(()=>{t.classList.add("mp-focus"),e.firstElementChild.style.display="none"})),a.addEventListener("focusout",(()=>{t.classList.remove("mp-focus"),e.firstElementChild.style.display="none"}))),a}createOption(t,e){const i=document.createElement("option");i.textContent=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}setMaskInputDocument(t,e,i){e.addEventListener("input",(n=>{const a=this.buildDocumentNameWithSiteId(t.value,this.getAttribute("site-id")),r=s.getHandler(a);if(r&&r.mask&&(n.target.value=r.mask(n.target.value)),i){const t=n.target.value.toUpperCase().replace(/[^A-Z0-9]/g,"");i.value=t}this.validateDocumentRealTime(n.target,t,e.parentElement)}))}validateDocumentRealTime(t,e,i){const n=i.parentElement.querySelector("input-helper"),a=i.parentElement.querySelector("input-label"),r=this.buildDocumentNameWithSiteId(e.value,this.getAttribute("site-id")),l=s.validate(r,t.value);l.result||this.updateHelperErrorMessage(n,this.getAttribute(`helper-${l.type}`)),this.updateValidationState(l.result,t,i,n,a)}updateValidationState(t,e,i,s,n){t?this.setValidState(e,i,s,n):this.setInvalidState(e,i,s,n)}setValidState(t,e,i,s){e.classList.remove("mp-error","mp-error-2px"),i.firstElementChild.style.display="none",t.setAttribute("name",this.getAttribute("input-name")),this.updateLabelState(s,!1),this.setDocumentValidity(t,i,!1)}setDocumentValidity(t,e,i){t.setAttribute("aria-invalid",i?"true":"false");const s=e&&e.getAttribute("id"),n=[this.hasInstruction()?this.elementId("instruction"):null,i?s:null].filter(Boolean);n.length?t.setAttribute("aria-describedby",n.join(" ")):t.removeAttribute("aria-describedby")}setInvalidState(t,e,i,s){""===t.value.trim()?(e.classList.add("mp-error-2px"),i.firstElementChild.style.display="flex",t.setAttribute("name",this.getAttribute("input-name")),this.updateLabelState(s,!0)):(e.classList.add("mp-error-2px"),i.firstElementChild.style.display="flex",t.setAttribute("name",this.getAttribute("flag-error")),this.updateLabelState(s,!0)),this.setDocumentValidity(t,i,!0)}createDocument(t,e,i,s){const n=document.createElement("input");return this.getAttribute("input-id")&&n.setAttribute("id",this.getAttribute("input-id")),n.setAttribute("name",this.getAttribute("input-name")),n.setAttribute("data-checkout",this.getAttribute("input-data-checkout")),n.setAttribute("data-cy","input-document"),n.setAttribute("aria-labelledby",this.elementId("label")),n.setAttribute("aria-required","true"),this.hasInstruction()&&n.setAttribute("aria-describedby",this.elementId("instruction")),n.classList.add("mp-document"),n.type="text",n.inputMode="text",this.setInputProperties(e,n,this.getAttribute("site-id")),n.addEventListener("focus",(()=>{this.handleInputFocus(t,i,n,s)})),n.addEventListener("focusout",(()=>{this.handleInputFocusOut(t,i,n,s)})),n}handleInputFocus(t,e,i,s){if(t.classList.contains("mp-error"))return t.classList.remove("mp-error"),void t.classList.add("mp-error-2px");t.classList.remove("mp-error-2px"),t.classList.add("mp-focus"),e.firstElementChild.style.display="none",i.setAttribute("name",this.getAttribute("input-name")),this.updateLabelState(s,!1),this.setDocumentValidity(i,e,!1)}markInvalidFromSubmit(){const t=this.querySelector("input.mp-document"),e=this.querySelector("input-helper");t&&e&&this.setDocumentValidity(t,e,!0)}handleInputFocusOut(t,e,i,s){t.classList.remove("mp-focus"),""===i.value.trim()?(this.clearErrorStates(t,e,s),this.setDocumentValidity(i,e,!1)):this.handleNonEmptyInput(t)}clearErrorStates(t,e,i){t.classList.remove("mp-error-2px","mp-error"),e&&(e.firstElementChild.style.display="none"),this.updateLabelState(i,!1)}handleNonEmptyInput(t){t.classList.contains("mp-error-2px")&&(t.classList.remove("mp-error-2px"),t.classList.add("mp-error"))}updateLabelState(t,e){e?t.firstElementChild.classList.add("mp-label-error"):t.firstElementChild.classList.remove("mp-label-error")}updateHelperErrorMessage(t,e){t.updateMessage(e)}createHelper(t){const e=document.createElement("input-helper");return e.setAttribute("isVisible",!1),e.setAttribute("type","error"),e.setAttribute("message",t),e.setAttribute("input-id","mp-doc-number-helper"),e.setAttribute("id",this.elementId("helper")),e}}customElements.define("input-document",l)},6133:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MLC",default:!0,max_length:9,max_length_with_mask:12,min_length:8,placeholder:"99.999.999-9"};static mask(t){const e=t.replace(/[^0-9kK]/g,"").toUpperCase();if(e.length<=3)return e;if(e.length>7){const t=e.slice(0,-1),i=e.slice(-1);let s;return s=t.length<=3?t:t.length<=6?t.slice(0,-3)+"."+t.slice(-3):t.slice(0,-6)+"."+t.slice(-6,-3)+"."+t.slice(-3),s+"-"+i}return e.length<=6?e.slice(0,-3)+"."+e.slice(-3):e.slice(0,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3)}static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},6135:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:null,default:!1,min_length:5,max_length:20,max_length_with_mask:20,placeholder:""};static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},6139:()=>{class t extends HTMLElement{connectedCallback(){this.render()}getBadgeIcon(t="warning"){return{error:"X",warning:"!"}[t]}render(){const t=this.getAttribute("description")||"",e=this.getAttribute("type")||"warning",i=this.getBadgeIcon(e);this.innerHTML=`\n      <div class="mp-andes-notice-card ${e}">\n        <div class="mp-andes-notice-card-content">\n          <div class="mp-andes-notice-badge ${e}">${i}</div>
1\n          <span class="mp-andes-notice-description">\n            ${t}\n          </span>\n        </div>\n      </div>\n    `}}customElements.define("andes-notice",t)},6148:()=>{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(((s,n)=>{n<=9||11===e.length?t.appendChild(this.createLogo(s)):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)},6407:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MLB",default:!1,max_length:14,max_length_with_mask:18,placeholder:"99.999.999/9999-99"};static WEIGHTS_DV1=[5,4,3,2,9,8,7,6,5,4,3,2];static WEIGHTS_DV2=[6,5,4,3,2,9,8,7,6,5,4,3,2];static mask(t){const e=t.replace(/[^A-Za-z0-9]/g,""),i=(e.slice(0,12)+e.slice(12).replace(/[^0-9]/g,"")).slice(0,14),s=i.slice(0,2),n=i.slice(2,5),a=i.slice(5,8),r=i.slice(8,12),l=i.slice(12,14);let c=s;return n&&(c+=`.${n}`),a&&(c+=`.${a}`),r&&(c+=`/${r}`),l&&(c+=`-${l}`),c}static charToValue(t){return t.charCodeAt(0)-48}static calculateCheckDigit(t,e){let i=0;for(let s=0;s<t.length;s++)i+=this.charToValue(t[s])*e[s];const s=i%11;return s<2?0:11-s}static validate(t){if("string"!=typeof t)return{result:!1,type:this.ERROR_TYPES.EMPTY};const e=t.replace(/[^A-Za-z0-9]/g,"").toUpperCase();if(""===e)return{result:!1,type:this.ERROR_TYPES.EMPTY};if(14!==e.length)return{result:!1,type:this.ERROR_TYPES.INVALID};if(!/^[A-Z0-9]{12}[0-9]{2}$/.test(e))return{result:!1,type:this.ERROR_TYPES.INVALID};if(/^(.)\1+$/.test(e))return{result:!1,type:this.ERROR_TYPES.WRONG};const i=e.substring(0,12),s=parseInt(e[12],10),n=parseInt(e[13],10),a=this.calculateCheckDigit(i,this.WEIGHTS_DV1);if(a!==s)return{result:!1,type:this.ERROR_TYPES.WRONG};const r=i+a.toString();return this.calculateCheckDigit(r,this.WEIGHTS_DV2)!==n?{result:!1,type:this.ERROR_TYPES.WRONG}:{result:!0,type:this.ERROR_TYPES.VALID}}}},7117:()=>{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.appendChild(this.createHelper()),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"));if(this.getAttribute("default-option")){const e=document.createElement("option");e.setAttribute("selected","selected"),e.setAttribute("hidden","hidden"),e.innerHTML=this.getAttribute("default-option"),t.appendChild(e)}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.description,e.value=t.id,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}createHelper(){const t=document.createElement("input-helper");return t.setAttribute("isVisible",!1),t.setAttribute("message",this.getAttribute("helper-message")),t.setAttribute("input-id","mp-doc-number-helper"),t.setAttribute("type","message"),t}createHiddenField(t){const e=document.createElement("input");return e.setAttribute("type","hidden"),e.setAttribute("id",t),e}}customElements.define("input-select",t)},7702:()=>{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)},7749:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MPE",default:!1,max_length:12,max_length_with_mask:15,min_length:6,placeholder:"999.999.999.999"};static mask(t){const e=t.replace(/[^a-zA-Z0-9]/g,"").toUpperCase();return e.length<=3?e:e.length<=6?e.slice(0,-3)+"."+e.slice(-3):e.length<=9?e.slice(0,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3):e.slice(0,-9)+"."+e.slice(-9,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3)}static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},7887:()=>{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"),s=this.getAttribute("link-src"),n=document.createElement("a");return n.classList.add("mp-test-mode-link"),n.innerHTML=i,n.href=s,n.target="blank",e.appendChild(n),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)},8051:()=>{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:s}=t,n=document.createElement("div");return n.classList.add("mp-payment-method-type-container"),s&&0!==s.length&&(n.appendChild(this.createHeader(e,i)),n.appendChild(this.createContent(s))),n}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,s=document.createElement("payment-method-logo");return s.setAttribute("src",e),s.setAttribute("alt",i),s}}customElements.define("payment-methods",t)},8937:()=>{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(
1)),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-container-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 s=this.getAttribute("list-mode");return"count"===s?(i.appendChild(this.createCountList(e)),i.appendChild(this.createSimpleText(t)),i):"bullet"===s?(i.appendChild(this.createBulletList()),i.appendChild(this.createSimpleText(t)),i):"image"===s&&"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 s=document.createElement("p");s.classList.add("mp-checkout-benefits-item-subtitle"),s.innerHTML=e;const n=document.createElement("span");return n.appendChild(i),n.appendChild(s),n}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)},9241:()=>{class t extends HTMLElement{helper=this.createHelper();inputContainer=this.createInputContainer();connectedCallback(){this.build()}build(){const t=document.createElement("div");t.classList.add("mp-yape-input-code-container");const e=document.createElement("div");e.classList.add("mp-yape-label-container");const i=document.createElement("label");i.setAttribute("id","yape-input-code-label"),i.textContent=this.getAttribute("label")||"Código de aprobación";const s=document.createElement("div");s.classList.add("mp-yape-icon-wrapper");const n=document.createElement("img");n.src=this.getAttribute("src"),n.alt="Icone de ajuda",n.classList.add("mp-yape-icon");const a=document.createElement("div");a.classList.add("mp-yape-tooltip"),a.textContent=this.getAttribute("tooltip-text")||"Encuéntralo en el menú de la app de Yape.",s.appendChild(n),s.appendChild(a),e.appendChild(i),e.appendChild(s),t.appendChild(e),this.inputs=[];for(let t=0;t<6;t+=1){const e=document.createElement("input");e.type="text",e.maxLength="1",e.classList.add("mp-yape-code-input"),e.setAttribute("input-index",t),this.inputs.push(e),e.addEventListener("input",(e=>{/\d/.test(e.target.value)?1===e.target.value.length&&t<5&&this.inputs[t+1].focus():e.target.value="",this.updateClassesOnInput()})),e.addEventListener("keydown",(t=>{const e=parseInt(t.target.getAttribute("input-index"));"ArrowLeft"===t.key&&e>0?this.inputs[e-1].focus():"ArrowRight"===t.key&&e<5?this.inputs[e+1].focus():"Backspace"===t.key&&e>0&&!t.target.value&&this.inputs[e-1].focus()})),0===t&&e.addEventListener("paste",(t=>this.handlePaste(t))),e.addEventListener("focus",(()=>{e.classList.add("mp-input-code-focus"),e.classList.remove("mp-input-code-error"),this.helper.firstElementChild.style.display="none",document.getElementById("yape-input-code-label").style.color="#111111"})),e.addEventListener("blur",(()=>{setTimeout((()=>{this.validate()}),100)})),this.inputContainer.appendChild(e)}t.appendChild(this.inputContainer),this.appendChild(t),this.appendChild(this.helper),this.applyStyles()}validate(){this.checkForErrors(this.helper,this.inputContainer)}handlePaste(t){if(t.preventDefault(),!Array.isArray(this.inputs))return;const e=((t.clipboardData||window.clipboardData).getData("text")||"").split("").filter((t=>/\d/.test(t)));e.length>0&&e.forEach(((t,e)=>{e<this.inputs.length&&(this.inputs[e].value=t)})),this.updateClassesOnInput()}
1updateClassesOnInput(){this.inputs.forEach((t=>{t.classList.remove("mp-input-code-error"),t.classList.add("mp-input-code-focus")}))}checkForErrors(t,e){const i=e.querySelectorAll("input"),s=Array.from(i).every((t=>""!==t.value)),n=Array.from(i).some((t=>""!==t.value));document.activeElement.classList.contains("mp-yape-code-input")||s||(i.forEach((t=>t.classList.add("mp-input-code-error"))),t.firstElementChild.style.display="flex",document.getElementById("yape-input-code-label").style.color="#f23d4f",document.getElementById("helper-approval-code").childNodes[1].innerHTML=n?document.querySelector("input-code").getAttribute("invalid-error-message"):document.querySelector("input-code").getAttribute("empty-error-message"))}applyStyles(){const t=document.createElement("style");t.textContent="\n      .mp-checkout-container .mp-yape-input-code-container {\n        display: flex !important;\n        flex-direction: column !important;\n        font-family: 'Proxima Nova', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n      }\n\n      .mp-checkout-container .mp-yape-label-container {\n        display: flex !important;\n        align-items: flex-start !important;\n        margin-bottom: -8px !important;\n        font-style: normal !important;\n        font-weight: 400 !important;\n        height: 30px !important;\n        line-height: 18px !important;\n        font-size: 14px !important;\n        padding-left: 6px !important\n      }\n\n      .mp-checkout-container .mp-yape-icon-wrapper {\n        position: relative !important;\n        display: flex !important;\n        align-items: center !important;\n      }\n\n      .mp-checkout-container .mp-yape-icon {\n        max-width: 20px !important;\n        margin-left: 4px !important;\n        cursor: pointer !important;\n      }\n\n      .mp-checkout-container .mp-yape-tooltip {\n        display: none !important;\n        position: absolute !important;\n        top: -55px !important;\n        left: 50% !important;\n        transform: translateX(-50%) !important;\n        background-color: white !important;\n        padding: 8px !important;\n        border-radius: 8px !important;\n        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;\n        z-index: 100 !important;\n        white-space: nowrap !important;\n        pointer-events: none !important;\n        font-family: 'Proxima Nova', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n        font-size: 14px !important;\n        font-weight: 400 !important;\n        line-height: 28px !important;\n        text-align: left !important;\n\n      }\n\n      .mp-checkout-container .mp-yape-tooltip::after {\n        content: \"\";\n        position: absolute;\n        bottom: -8px;\n        left: 51%;\n        transform: translateX(-70%);\n        border-width: 8px 8px 0 8px;\n        border-style: solid;\n        z-index: 101;\n        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n        clip-path: polygon(100% 0%, 0% 0%, 50% 100%);\n        color: white;\n      }\n\n      .mp-checkout-container .mp-yape-icon-wrapper:hover .mp-yape-tooltip {\n        display: block !important;\n      }\n\n      .mp-checkout-container .mp-yape-input-container {\n        display: flex !important;\n        gap: 8px !important;\n      }\n\n      .mp-checkout-container .mp-yape-code-input {\n        width: 38px !important;\n        height: 48px !important;\n        background: #ffffff !important;\n        text-align: center !important;\n        font-size: 24px !important;\n        border: 1px solid #ccc !important;\n        border-radius: 4px !important;\n        font-size: 16px !important;\n        line-height: 20px !important;\n        font-family: 'Proxima Nova', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;\n        font-weight: 400 !important;\n        box-sizing: border-box;\n      }\n\n      .mp-checkout-container .mp-yape-code-input:nth-child(4) {\n        margin-left: 10px !important;\n      }\n\n      .mp-checkout-container .mp-input-code-focus {\n        border: 1px solid var(--andes-accent-color) !important;\n      }\n\n      .mp-checkout-container .mp-input-code-error {\n        border: 1px solid #f23d4f !important;\n      }\n\n      @media screen and (max-width: 375px) {\n        #mp-checkout-yape-root.mp-checkout-yape-container .mp-yape-input-container {\n          flex-direction: row !important;\n          gap: 2px !important;\n        }\n\n        #mp-checkout-yape-root.mp-checkout-yape-container {\n          padding: 24px 0!important;\n        }\n      }\n\n      @media only screen and (min-width: 376px) and (max-width: 480px) {\n        #mp-checkout-yape-root.mp-checkout-yape-container {\n          padding: 24px 0!important;\n        }\n      }\n    ",this.appendChild(t)}createInputContainer(){const t=document.createElement("div");return t.classList.add("mp-yape-input-container"),t}createHelper(){const t=document.createElement("input-helper");return t.setAttribute("isVisible",!1),t.setAttribute("type","error"),t.setAttribute("message","error"),t.setAttribute("input-id","helper-approval-code"),t}}customElements.define("input-code",t)},9604:()=>{class t extends HTMLElement{static get observedAttributes(){return["label","placeholder","value","tooltip","validation-regexp","error-message","tooltip-position","tooltip-label"]}constructor(){super(),this._value="",this._showError=!1,this._inputEl=null,this._onDocumentClick=this._onDocumentClick.bind(this)}connectedCallback(){this._value=this.getAttribute("value")||"",this.render()}disconnectedCallback(){document.removeEventListener("click",this._onDocumentClick)}attributeChangedCallback(t,e,i){"value"===t&&this._inputEl&&this._inputEl.value!==i&&(this._inputEl.value=i||"",this._value=i||""),"value"!==t&&this.render()}get value(){return this._inputEl?this._inputEl.value:this._value}set value(t){this.setAttribute("value",t),this._inputEl&&(this._inputEl.value=t),this._value=t}_validate(t){const e=this.getAttribute("validation-regexp");if(!e||!t)return!0;try{return new RegExp(e).test(t)}catch{return!0}}_onInput(t){this._value=t.target.value,this.setAttribute("value",this._value),this._showError&&(this._showError=!1,this._updateErrorState())}_onChange(t){const e=t.target.value;
1e&&!this._validate(e)?this._showError=!0:this._showError=!1,this._updateErrorState(),this.dispatchEvent(new CustomEvent("change",{detail:{value:e,valid:!this._showError}}))}_onDocumentClick(t){this.contains(t.target)||this._hideTooltip()}_toggleTooltip(){this.querySelector(".mp-input-with-tooltip-tooltip-content").classList.contains("show")?this._hideTooltip():this._showTooltip()}_showTooltip(){this.querySelector(".mp-input-with-tooltip-tooltip-content").classList.add("show"),document.addEventListener("click",this._onDocumentClick)}_hideTooltip(){this.querySelector(".mp-input-with-tooltip-tooltip-content").classList.remove("show"),document.removeEventListener("click",this._onDocumentClick)}_updateErrorState(){const t=this.querySelector(".mp-input-with-tooltip-input-container"),e=this.querySelector(".mp-input-with-tooltip-label");t&&(this._showError?(t.classList.add("error"),e.classList.add("error")):(t.classList.remove("error"),e.classList.remove("error")));const i=this.querySelector(".mp-input-with-tooltip-helper-error");i&&(i.style.display=this._showError?"flex":"none")}render(){const t=this.getAttribute("label")||"",e=this.getAttribute("placeholder")||"",i=this.getAttribute("tooltip")||"",s=this.getAttribute("tooltip-label")||"Mais informações",n=this.getAttribute("error-message")||"Valor inválido",a=this._value||"",r=this._showError,l=this.getAttribute("tooltip-position")||"right";this.innerHTML=`\n      <label\n        tabindex="0"\n        for="mp-input-with-tooltip-input"\n        class="mp-input-with-tooltip-label"\n      >${t}</label>\n      <div class="mp-input-with-tooltip-input-container${r?" error":""}">\n        <input\n          id="mp-input-with-tooltip-input"\n          class="mp-input-with-tooltip-input"\n          placeholder="${e}"\n          value="${a}"\n        />\n        <span\n          class="mp-input-with-tooltip-tooltip-icon"\n          tabindex="0"\n          aria-label="${s}"\n          role="button"\n        >?</span>\n        <div\n          aria-describedby="mp-input-with-tooltip-tooltip-content"\n          class="mp-input-with-tooltip-tooltip-content mp-input-with-tooltip-tooltip-${l}"\n        >\n          <span\n            id="mp-input-with-tooltip-tooltip-content"\n            tabindex="0"\n            role="tooltip"\n          >\n            ${i}\n          </span>\n        </div>\n      </div>\n      <div\n        id="mp-input-with-tooltip-helper-error"\n        tabindex="0"\n        class="mp-input-with-tooltip-helper-error"\n        style="display:${r?"block":"none"}"\n      >\n        <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n          <rect width="12" height="12" rx="6" fill="#CC1818"/>\n          <path d="M6.72725 2.90918H5.27271L5.45452 6.90918H6.54543L6.72725 2.90918Z" fill="white"/>\n          <path d="M5.99998 7.63645C6.40164 7.63645 6.72725 7.96206 6.72725 8.36373C6.72725 8.76539 6.40164 9.091 5.99998 9.091C5.59832 9.091 5.27271 8.76539 5.27271 8.36373C5.27271 7.96206 5.59832 7.63645 5.99998 7.63645Z" fill="white"/>\n        </svg>\n        ${n}\n      </div>\n    `,this._inputEl=this.querySelector("input"),this._inputEl.value=a,this._inputEl.addEventListener("input",this._onInput.bind(this)),this._inputEl.addEventListener("change",this._onChange.bind(this));const c=this.querySelector(".mp-input-with-tooltip-tooltip-icon");c.addEventListener("click",(()=>{this._toggleTooltip()})),c.addEventListener("keydown",(t=>{"Enter"!==t.key&&" "!==t.key||this._toggleTooltip()}))}}customElements.define("input-with-tooltip",t)},9794:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MPE",default:!0,max_length:9,max_length_with_mask:12,min_length:8,placeholder:"99.999.999"};static mask(t){const e=t.replace(/\D+/g,"");return e.length<=2?e:`${e.slice(0,2)}.${e.slice(2).replace(/(\d{3})(?=\d)/g,"$1.")}`}static validate(t){return"string"!=typeof t||0===t.length?{result:!1,type:this.ERROR_TYPES.EMPTY}:{result:!0,type:this.ERROR_TYPES.VALID}}}},9957:(t,e,i)=>{const s=i(3291);t.exports=class extends s{static CONFIG={site_id:"MLU",default:!0,max_length:8,max_length_with_mask:11,min_length:7,placeholder:"9.999.999-9"};static mask(t){const e=t.replace(/\D+/g,"");if(e.length<=3)return e;if(e.length>6){const t=e.slice(0,-1),i=e.slice(-1);let s;return s=t.length<=3?t:t.length<=6?t.slice(0,-3)+"."+t.slice(-3):t.slice(0,-6)+"."+t.slice(-6,-3)+"."+t.slice(-3),s+"-"+i}return e.length<=6?e.slice(0,-3)+"."+e.slice(-3):e.slice(0,-6)+"."+e.slice(-6,-3)+"."+e.slice(-3)}static validate(t){if("string"!=typeof t||0===t.length)return{result:!1,type:this.ERROR_TYPES.EMPTY};if((t=t.replace(/[\s.-]/g,"")).length>this.CONFIG.max_length)return{result:!1,type:this.ERROR_TYPES.WRONG};let e=0,i=0,s=0;const n=t[t.length-1];if(t.length<this.CONFIG.min_length)for(i=t.length;i<this.CONFIG.min_length;i+=1)t=`0${t}`;for(i=0;i<this.CONFIG.min_length;i+=1)e+=parseInt("2987634"[i],10)*parseInt(t[i],10)%10;return s=e%10==0?0:10-e%10,n!==s.toString()?{result:!1,type:this.ERROR_TYPES.WRONG}:{result:!0,type:this.ERROR_TYPES.VALID}}}}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var a=e[s]={exports:{}};return t[s](a,a.exports,i),a.exports}i(4751),i(3007),i(6139),i(734),i(8937),i(3185),i(5926),i(116),i(2813),i(9241),i(540),i(6407),i(2781),i(3291),i(1807),i(6135),i(1981),i(2603),i(6020),i(3505),i(938),i(9957),i(7749),i(9794),i(2957),i(454),i(6133),i(6045),i(2119),i(2577),i(1943),i(893),i(7117),i(1295),i(9604),i(4073),i(7702),i(6148),i(8051),i(2979),i(26),i(7887)})();

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.