PageSourceSearch

https://www.hu-vignette.com/build/assets/index-DuEAUiBN.js

js hu-vignette.com collected 2026-10-06 17:00:37 UTC 18,204 bytes, 5 lines download raw bytes

1var Me=h=>{throw TypeError(h)};var he=(h,e,n)=>e.has(h)||Me("Cannot "+n);var t=(h,e,n)=>(he(h,e,"read from private field"),n?n.call(h):e.get(h)),r=(h,e,n)=>e.has(h)?Me("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,n),i=(h,e,n,s)=>(he(h,e,"write to private field"),s?s.call(h,n):e.set(h,n),n),o=(h,e,n)=>(he(h,e,"access private method"),n);import{A as ee}from"./CountrySelector-BlpABzR8.js";import{A as Ye}from"./AddressForm-C3V52c41.js";import{P as We}from"./PhoneNumber-CZB8tCPP.js";import{C as Ke}from"./CartItemErrorManager-Bw_i-WVa.js";import{f as Ne,b as Ae}from"./misc-BVGJYfeR.js";import{A as xe}from"./Axios-BFuQY-8o.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./NewAddressSection-BtGeVq7x.js";import"./index-DcNlVx-A.js";const Ge=()=>({name:"card",savePossible:!0}),qe=()=>({name:"paypal",savePossible:!0}),Re=()=>({name:"paypal_my_bank",savePossible:!1}),He=()=>({name:"twint",savePossible:!0}),de=h=>({name:"onlineBanking_"+h,savePossible:!1}),Ve=()=>({name:"paybybank",savePossible:!1}),Ue=()=>({name:"adyen_giropay_eps",savePossible:!1}),Ze=()=>({name:"adyen_bcmc",savePossible:!1}),$e=()=>({name:"adyen_ideal",savePossible:!1}),je=()=>({name:"valu",savePossible:!1}),ze=()=>({name:"blik",savePossible:!1}),Qe=()=>({name:"bank_transfer_ch",savePossible:!1}),Xe=()=>({name:"adyen_dotpay",savePossible:!1}),a={CARD:Ge(),PAYPAL:qe(),PAYPAL_MY_BANK:Re(),TWINT:He(),ONLINEBANKING_SK:de("SK"),ONLINEBANKING_CZ:de("CZ"),ONLINEBANKING_PL:de("PL"),ADYEN_GIROPAY_EPS:Ue(),ADYEN_BCMC:Ze(),ADYEN_IDEAL:$e(),ADYEN_DOTPAY:Xe(),ADYEN_TINK:Ve(),VALU:je(),BLIK:ze(),BANK_TRANSFER_CH:Qe()};Object.freeze(a);var y,m,Se,P,me,ce;class Je extends ee{constructor(){super();r(this,m);r(this,y);i(this,y,a),o(this,m,Se).call(this),this.set("newPaymentMethods",new ee),this.set("savedPaymentMethods",new ee)}setNewPaymentMethod(n,s){this.newPaymentMethods().set(n.toUpperCase(),s),o(this,m,me).call(this,s.name())&&o(this,m,ce).call(this,s.name(),s)}setSavePaymentMethod(n,s){this.savedPaymentMethods().set(n.toUpperCase(),s),o(this,m,me).call(this,s.name())&&o(this,m,ce).call(this,s.name(),s)}newPaymentMethods(){return this.get("newPaymentMethods")}savedPaymentMethods(){return this.get("savedPaymentMethods")}hasPayPal(){return o(this,m,P).call(this,t(this,y).PAYPAL.name).isNotEmpty()}hasNoPayPal(){return!this.hasPayPal()}hasPayPalMyBank(){return o(this,m,P).call(this,t(this,y).PAYPAL_MY_BANK.name).isNotEmpty()}hasNoPayPalMyBank(){return!this.hasPayPalMyBank()}hasAdyenCard(){return o(this,m,P).call(this,t(this,y).CARD.name).isNotEmpty()}hasNoAdyenCard(){return!this.hasAdyenCard()}hasAdyenBMCM(){return o(this,m,P).call(this,t(this,y).ADYEN_BCMC.name).isNotEmpty()}hasNoAdyenBMCM(){return!this.hasAdyenBMCM()}hasAdyenIdeal(){return o(this,m,P).call(this,t(this,y).ADYEN_IDEAL.name).isNotEmpty()}hasNoAdyenIdeal(){return!this.hasAdyenIdeal()}hasAdyenTink(){return o(this,m,P).call(this,t(this,y).TINK.name).isNotEmpty()}hasNoTink(){return!this.hasAdyenTink()}hasAdyenGiropayEPS(){return o(this,m,P).call(this,t(this,y).ADYEN_GIROPAY_EPS.name).isNotEmpty()}hasNoAdyenGiropayEPS(){return!this.hasAdyenGiropayEPS()}hasTWINT(){return o(this,m,P).call(this,t(this,y).TWINT.name).isNotEmpty()}hasNoTWINT(){return!this.hasTWINT()}hasOnlineBankingCZ(){return o(this,m,P).call(this,t(this,y).ONLINEBANKING_CZ.name).isNotEmpty()}hasOnlineBankingPL(){return o(this,m,P).call(this,t(this,y).ONLINEBANKING_PL.name).isNotEmpty()}hasOnlineBankingSK(){return o(this,m,P).call(this,t(this,y).ONLINEBANKING_SK.name).isNotEmpty()}hasNoOnlineBanking(){return!(this.hasOnlineBankingCZ()||this.hasOnlineBankingPL()||this.hasOnlineBankingSK())}}y=new WeakMap,m=new WeakSet,Se=function(){Object.keys(t(this,y)).forEach(n=>this.set(t(this,y)[n].name,new ee))},P=function(n){return this.get(n)},me=function(n){return this.has(n)},ce=function(n,s){o(this,m,P).call(this,n).set(n,s)};var u,ne,ge;const p=class p{constructor(e){r(this,ne);r(this,u);i(this,u,e)}name(){return t(this,u)}static createFromType(e){return e?p[e]():null}static[a.CARD.name](){return new p(a.CARD.name)}static[a.BANK_TRANSFER_CH.name](){return new p(a.BANK_TRANSFER_CH.name)}static[a.ADYEN_TINK.name](){return new p(a.ADYEN_TINK.name)}static[a.TWINT.name](){return new p(a.TWINT.name)}static[a.PAYPAL.name](){return new p(a.PAYPAL.name)}static[a.PAYPAL_MY_BANK.name](){return new p(a.PAYPAL_MY_BANK.name)}static[a.ONLINEBANKING_SK.name](){return new p(a.ONLINEBANKING_SK.name)}static[a.ONLINEBANKING_PL.name](){return new p(a.ONLINEBANKING_PL.name)}static[a.ONLINEBANKING_CZ.name](){return new p(a.ONLINEBANKING_CZ.name)}static[a.ADYEN_GIROPAY_EPS.name](){return new p(a.ADYEN_GIROPAY_EPS.name)}static[a.ADYEN_BCMC.name](){return new p(a.ADYEN_BCMC.name)}static[a.ADYEN_DOTPAY.name](){return new p(a.ADYEN_DOTPAY.name)}static[a.ADYEN_IDEAL.name](){return new p(a.ADYEN_IDEAL.name)}static[a.VALU.name](){return new p(a.VALU.name)}static[a.BLIK.name](){return new p(a.BLIK.name)}static[a.BLIK.name](){return new p(a.BLIK.name)}isPaypal(){return t(this,u)===a.PAYPAL.name}isPaypalMyBank(){return t(this,u)===a.PAYPAL_MY_BANK.name}isCardAdyen(){return t(this,u)===a.CARD.name}isAdyenGiropay(){return t(this,u)===a.ADYEN_GIROPAY_EPS.name}isAdyenBCMC(){return t(this,u)===a.ADYEN_BCMC.name}isAdyenIdeal(){return t(this,u)===a.ADYEN_IDEAL.name}isAdyenTink(){return t(this,u)===a.ADYEN_TINK.name}isAdyenDotPay(){return t(this,u)===a.ADYEN_DOTPAY.name}isTWINT(){return t(this,u)===a.TWINT.name}isVALU(){return t(this,u)===a.VALU.name}isBLIK(){return t(this,u)===a.BLIK.name}isOnlineBankingCZ(){return t(this,u)===a.ONLINEBANKING_CZ.name}isOnlineBankingSK(){return t(this,u)===a.ONLINEBANKING_SK.name}isOnlineBankingPL(){return t(this,u)===a.ONLINEBANKING_PL.name}canSaveForLater(){return o(this,ne,ge).call(this).savePossible}};u=new WeakMap,ne=new WeakSet,ge=function(){return a[t(this,u).toUpperCase()]};let le=p;var G,K,Le,we,fe;let et=(fe=class{constructor(e){r(this,K);r(this,G);i(this,G,e)}paymentMethodSelection(){return t(this,G)}registerInputEventHooks(e){o(this,K,we).call(this,e)}initEvents(){var n;const e=this;o(n=e,K,Le).call(n,e)}},G=new WeakMap,K=new WeakSet,Le=function(e){e.paymentMethodSelection().newPaymentMethodsList().forEac
1h(function(n){n.addEventListener("change",function(s){n.checked&&e.paymentMethodSelection().updateCheckedInput(n)})})},we=function(e){const n=this;for(let s in e)e[s].forEach(c=>{n.paymentMethodSelection().newPaymentMethodsList().forEach(function(d){d.addEventListener(s,l=>c(l,d,n.paymentMethodSelection()))}),n.paymentMethodSelection().savedPaymentMethodsList().forEach(function(d){d.addEventListener(s,l=>c(l,d,n.paymentMethodSelection()))})})},fe);var q,L,M,N,B,_,g,ke,be,Be;class tt{constructor(){r(this,g);r(this,q,!1);r(this,L,null);r(this,M);r(this,N);r(this,B,null);r(this,_);i(this,L,document.querySelector("[id='payment-element']")),i(this,M,new Je),i(this,N,{}),t(this,N).newPaymentMethods=[],t(this,N).savedPaymentMethods=[],i(this,_,new et(this))}events(){return t(this,_)}watch(){t(this,L)&&(o(this,g,ke).call(this),o(this,g,be).call(this),i(this,q,!0))}isWatching(){return t(this,q)}checkedInput(){return t(this,B)}paymentMethodsMap(){return t(this,M)}updateCheckedInput(e){i(this,B,e)}newPaymentMethodsList(){return t(this,N).newPaymentMethods}savedPaymentMethodsList(){return t(this,N).savedPaymentMethods}mainWrapper(){return t(this,L)}getPaymentMethodFromInput(e){return t(this,M).savedPaymentMethods().has(e.value)?t(this,M).savedPaymentMethods().get(e.value):t(this,M).newPaymentMethods().get(e.value)}}q=new WeakMap,L=new WeakMap,M=new WeakMap,N=new WeakMap,B=new WeakMap,_=new WeakMap,g=new WeakSet,ke=function(){const e=this;t(this,L).querySelectorAll("input[type='radio']").forEach(function(s){var c;try{const d=o(c=e,g,Be).call(c,s);s.checked&&i(e,B,s),s.value.toUpperCase().includes("APM")?(t(e,N).savedPaymentMethods.push(s),t(e,M).setSavePaymentMethod(s.value,d)):(t(e,N).newPaymentMethods.push(s),t(e,M).setNewPaymentMethod(s.value,d))}catch(d){window.log?window.log.logMessageError(d):console.error(d)}})},be=function(){t(this,_).initEvents()},Be=function(e){return le.createFromType(e.dataset.type)};var S,w,R,C,te;class nt{constructor(){r(this,C);r(this,S);r(this,w);r(this,R,!1);i(this,w,document.querySelector("#emission-form")),i(this,S,document.querySelector('#emission-form input[name="emission_upselling_checkbox"]'))}emissionCheckbox(){return t(this,S)}isInitialized(){return t(this,R)}init(){if(!t(this,w)||!t(this,S))return;i(this,R,!0);const e=document.querySelectorAll(".carbon-quantity"),n=document.querySelector("#emission-price-basic"),s=document.querySelector("#emission-price-extended"),c=window.currencySymbol,d=window.currencyDecimalPlaces;fetch("/shopping-cart/emissions/",{method:"GET",headers:{"Content-Type":"application/json","X-CSRF-Token":document.querySelector('meta[name="_token"]').getAttribute("content")}}).then(l=>l.json()).then(l=>{if(l.status==="failed")console.error("/shopping-cart/emissions/ did not respond correctly with: "+l),o(this,C,te).call(this);else if(!l.data)o(this,C,te).call(this);else{t(this,w).style.display="block",this.dispatchEmissionCheckboxChanged(),e.forEach(function(A){A.innerHTML=Math.round(l.data.carbon_quantity)+" kg"});let x=Intl.NumberFormat(window.languageCode,{minimumFractionDigits:d}).format(l.data.price_basic),X=Intl.NumberFormat(window.languageCode,{minimumFractionDigits:d}).format(l.data.price_extended);n&&(n.innerHTML=x+" "+c),s&&(s.innerHTML=X+" "+c)}}).catch(l=>{console.error(l),o(this,C,te).call(this)})}dispatchEmissionCheckboxChanged(){t(this,S).dispatchEvent(new Event("change"))}}S=new WeakMap,w=new WeakMap,R=new WeakMap,C=new WeakSet,te=function(){t(this,S).checked=!1,this.dispatchEmissionCheckboxChanged(),t(this,w).style.display="none"};var v,E,_e,Ce,Fe,Te,Oe,Ie;let st=(Ie=class{constructor(e){r(this,E);r(this,v);i(this,v,e)}orderForm(){return t(this,v)}paymentMethodSelection(){return this.orderForm().paymentMethodSelection()}initEvents(){var n,s,c,d,l;const e=this;e.orderForm().hasPaymentMethodWrapper()&&(o(n=e,E,Fe).call(n,e),o(s=e,E,Te).call(s,e)),e.paymentMethodSelection().paymentMethodsMap().hasPayPalMyBank()&&o(c=e,E,Oe).call(c,e),e.orderForm().hasEmissionForm()&&o(d=e,E,_e).call(d,e),e.orderForm().phoneNumber().isWatching()&&o(l=e,E,Ce).call(l,e),Ke.initDeleteButtons()}calculateInvoiceMandatoryState(){const e=this.orderForm().addressForm(),n=this.orderForm().hasPaymentMethodSelection()?this.paymentMethodSelection().getPaymentMethodFromInput(this.paymentMethodSelection().checkedInput()):null,
1s=this.orderForm().hasEmissionForm()?this.orderForm().emissionForm().emissionCheckbox():null;n&&n.isPaypalMyBank()||s&&s.checked?e.setInvoiceNeededToMandatory():e.unsetInvoiceNeededFromMandatory()}},v=new WeakMap,E=new WeakSet,_e=function(e){e.calculateInvoiceMandatoryState(),e.orderForm().emissionForm().emissionCheckbox().addEventListener("change",function(n){e.calculateInvoiceMandatoryState()})},Ce=function(e){e.orderForm().mainForm().addEventListener("submit",function(n){const s=t(e,v).phoneNumber();s.demandsSMS()&&(s.hasValidPhoneNumber()||(n.preventDefault(),s.phoneError().scrollIntoView({behavior:"smooth",block:"center"})))}),t(e,v).phoneNumber().confirmationCheckbox().addEventListener("change",function(n){const s=t(e,v).phoneNumber();n.target.checked?(s.phoneWrapper()&&Ne(s.phoneWrapper()),t(e,v).hasPaymentMethodWrapper()&&Ne(t(e,v).paymentMethodSelection().mainWrapper())):(s.phoneWrapper()&&Ae(s.phoneWrapper()),t(e,v).hasPaymentMethodWrapper()&&window.totalPrice===0&&Ae(t(e,v).paymentMethodSelection().mainWrapper()))})},Fe=function(e){e.paymentMethodSelection().savedPaymentMethodsList().forEach(function(n){n.addEventListener("change",function(s){e.paymentMethodSelection().updateCheckedInput(n),e.orderForm().hideSavePaymentMethodWrapper()})})},Te=function(e){e.paymentMethodSelection().newPaymentMethodsList().forEach(function(n){n.addEventListener("change",function(s){e.paymentMethodSelection().getPaymentMethodFromInput(e.paymentMethodSelection().checkedInput()).canSaveForLater()?e.orderForm().showSavePaymentMethodWrapper():e.orderForm().hideSavePaymentMethodWrapper()})})},Oe=function(e){e.orderForm().paymentMethodSelection().events().registerInputEventHooks({change:[function(n,s,c){e.calculateInvoiceMandatoryState()}]})},Ie);var H;class at{constructor(e){r(this,H);i(this,H,e)}initEvents(){t(this,H).selectLand().addEventListener("change",function(n){let s=n.target.value;if(!s)return;new xe().get("/esims/available-plans/"+s+"/").then(d=>{if(!d.payload||!d.payload().data){console.error("Invalid response structure:",d.payload?d.payload():null);return}const l=d.payload().data,x=document.getElementById("esim-plans"),X=document.getElementById("esims-plan-wrapper");X&&X.classList.remove("hidden"),x.innerHTML="",x.classList.add("grid","grid-cols-1","sm:grid-cols-3","lg:grid-cols-5","gap-4"),l.forEach(A=>{const f=document.createElement("div");f.classList.add("relative","bg-white","border","border-gray-200","rounded-lg","p-4","shadow-sm","cursor-pointer","hover:shadow-md","transition-shadow");const I=document.createElement("input");I.type="checkbox",I.name="esim_id",I.value=A.id,I.classList.add("absolute","top-2","right-2","hidden");const ye=document.createElement("i");ye.classList.add("fas","fa-check","absolute","top-2","right-2","text-dark");const J=document.createElement("label");J.classList.add("block","text-left","mb-0","text-black"),J.innerHTML=`
2                <div class="text-lg font-semibold">${A.data} GB</div>
3                <div class="text-sm text-gray-500">${A.duration}</div>
4                <div translate="no" class="text-xl font-bold mt-2 notranslate">${A.retail_price}</div>
5            `,J.htmlFor=`plan-${A.id}`,I.id=`plan-${A.id}`,f.addEventListener("click",Pe=>{Pe.preventDefault(),Pe.stopPropagation();const ve=!I.checked;document.querySelectorAll('input[name="esim_id"]').forEach(Ee=>{Ee.checked=!1,Ee.parentElement.classList.remove("border-dark")}),I.checked=ve,ve?f.classList.add("border-dark"):f.classList.remove("border-dark")}),f.appendChild(I),f.appendChild(ye),f.appendChild(J),x.appendChild(f)})}).catch(d=>{console.error("Error fetching plans:",d);const l=document.getElementById("esim-plans");l.innerHTML="<p>Error loading plans. Please try again later.</p>"})})}}H=new WeakMap;var V,F,se,ae,T,re,U;class rt{constructor(e="#esims-wrapper"){r(this,V,!1);r(this,F);r(this,se);r(this,ae);r(this,T);r(this,re);r(this,U);i(this,F,document.querySelector(e)),t(this,F)&&(i(this,se,document.querySelector("#esims-land-wrapper")),i(this,ae,document.querySelector("#esims-plan-wrapper")),i(this,T,document.querySelector("#esim-land")),i(this,re,document.querySelector("#esim-plan"))),i(this,U,new at(this))}isWatching(){return t(this,V)}watch(){t(this,F)&&(t(this,U).initEvents(),t(this,T).dispatchEvent(new Event("change")),i(this,V,!0))}selectLand(){return t(this,T)}}V=new WeakMap,F=new WeakMap,se=new WeakMap,ae=new WeakMap,T=new WeakMap,re=new WeakMap,U=new WeakMap;var k,b,Z,O,D,Y,W,$,ue,j,ie,z,Q,pe,oe,De;class it{constructor(){r(this,oe);r(this,k);r(this,b,null);r(this,Z,null);r(this,O);r(this,D);r(this,Y);r(this,W);r(this,$);r(this,ue);r(this,j);r(this,ie);r(this,z);r(this,Q);r(this,pe);i(this,k,document.querySelector("#orderStep3Form")),i(this,W,new tt),i(this,O,new Ye),i(this,$,new rt("#esims-wrapper")),i(this,D,new We),i(this,b,o(this,oe,De).call(this)),i(this,Y,new nt),t(this,Y).init(),i(this,Q,t(this,k).querySelector('button[type="submit"]')),i(this,j,new st(this))}watch(){t(this,W).watch(),t(this,O).watch(),t(this,D).watch(),t(this,$).watch(),this.paymentMethodSelection().checkedInput()&&this.hasPaymentMethodWrapper()&&(this.paymentMethodSelection().getPaymentMethodFromInput(this.paymentMethodSelection().checkedInput()).canSaveForLater()?this.showSavePaymentMethodWrapper():this.hideSavePaymentMethodWrapper()),t(this,j).initEvents();const e=document.getElementById("notification_expiration"),n=document.getElementById("notification-email-wrapper"),s=document.getElementById("notification_email_address"),c=document.getElementById("email");if(e&&n){let d=function(){e.checked?(n.classList.remove("hidden"),c&&(s.value=c.value),s.required=!0):(n.classList.add("hidden"),s.required=!1)};d(),e.addEventListener("change",d)}this.checkVatForRO()}checkVatForRO(){const e=document.getElementById("company"),n=document.getElementById("c_code"),s=document.getElementById("vat_id");window.has_operator_country_code_ro&&(s.required=!!e.value,e.addEventListener("focusout",c=>{n.value==="RO"?s.required=!!c.target.value:s.required=!1}),n.addEventListener("change",c=>{c.target.value==="RO"?s.required=!!e.value:s.required=!1}))}mainButtonSubmit(){return t(this,Q)}
5mainForm(){return t(this,k)}htmlForm(){return t(this,k)}addressForm(){return t(this,O)}emissionForm(){return t(this,Y)}hasEmissionForm(){return!!this.emissionForm()&&this.emissionForm().isInitialized()}paymentMethodSelection(){return t(this,W)}hasPaymentMethodSelection(){return!!this.paymentMethodSelection()&&this.paymentMethodSelection().isWatching()}phoneNumber(){return t(this,D)}hasPaymentMethodWrapper(){return!!t(this,b)}showSavePaymentMethodWrapper(){t(this,b).classList.remove("hidden")}hideSavePaymentMethodWrapper(){t(this,b).classList.add("hidden"),t(this,Z).checked=!1}termsAreForciblyAccepted(){return t(this,ie)}hasNotAgreedToTerms(){return!this.hasAgreedToTerms()}hasAgreedToTerms(){return t(this,z).checked}termsOfService(){return t(this,z)}markTermsOfServiceAsValid(){this.termsOfService().classList.remove("is-invalid")}markTermsOfServiceAsInvalid(){this.termsOfService().classList.add("is-invalid"),this.termsOfService().scrollIntoView({behavior:"smooth",blocK:"center"})}}k=new WeakMap,b=new WeakMap,Z=new WeakMap,O=new WeakMap,D=new WeakMap,Y=new WeakMap,W=new WeakMap,$=new WeakMap,ue=new WeakMap,j=new WeakMap,ie=new WeakMap,z=new WeakMap,Q=new WeakMap,pe=new WeakMap,oe=new WeakSet,De=function(){const e=document.querySelector("div#savePaymentMethodWrapper");return e?(i(this,Z,e.querySelector("input[id='savePaymentMethod']")),e):null};function Nt(){var h;try{new it().watch()}catch(e){(h=window.log)==null||h.logMessageError(e)}}export{Nt as default};

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.