portale.monzamobilita.it
Open in
urlscan Pro
185.146.134.52
Public Scan
URL:
https://portale.monzamobilita.it/bookSmarterMonza/js/829.js
Submission: On August 27 via api from IT — Scanned from IT
Submission: On August 27 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
"use strict";(self["webpackChunkfrontend_monza"]=self["webpackChunkfrontend_monza"]||[]).push([[829],{1829:(e,t,a)=>{a.r(t),a.d(t,{default:()=>Te});var o=a(641),c=a(33),i=a(3751);const l={class:"py-5"},r={class:"container"},s={class:"row"},n={class:"col d-xxl-block"},d={class:"nav"},m={class:"nav-item"},k=(0,o.Lk)("span",{class:"mdi mdi-menu-right"},null,-1),u={class:"nav-item"},h=(0,o.Lk)("hr",{role:"separator","aria-orientation":"horizontal"},null,-1),v={key:0},p={class:"row g-3"},b={class:"col"},$={class:"card"},f={class:"card-header bg-white"},L={class:"card-title fw-bold mb-0"},C=(0,o.Lk)("span",{class:"mdi mdi-cart me-2"},null,-1),w={class:"card-body card-cart-checkout"},g={class:"card-footer bg-white text-end"},U={class:"card-text fw-bold"},y=(0,o.Lk)("hr",{class:"d-none",role:"separator","aria-orientation":"horizontal"},null,-1),E={class:"card d-none"},_={class:"card-header bg-white border-bottom-0 d-flex justify-content-between"},x=(0,o.Lk)("h5",{class:"mb-0 card-title fw-bold"},[(0,o.Lk)("span",{class:"mdi mdi-gift me-2"}),(0,o.eW)(" Codice Promo ")],-1),q={class:"card-body"},S={class:"row"},V={class:"col d-flex"},z=["disabled"],W=(0,o.Lk)("div",{class:"invalid-feedback"}," Campo Obbligatorio. ",-1),X=(0,o.Lk)("button",{type:"button",class:"btn btn-danger fw-bold"}," Applica ",-1),A={class:"col-12 col-lg-6 align-self-center"},M={class:"card"},F={class:"card-header bg-white border-bottom-0 d-flex justify-content-between"},I={class:"mb-0 card-title fw-bold"},P=(0,o.Lk)("span",{class:"mdi mdi-account-circle me-2"},null,-1),J={class:"card-body"},H={class:"row mb-3"},N={class:"col"},Q=["name","placeholder","aria-label","disabled"],j={class:"invalid-feedback"},T={class:"row mb-3"},R={class:"col"},K=["name","placeholder","aria-label","disabled"],O={class:"invalid-feedback"},B={class:"row mb-3"},D={class:"col"},G=["name","placeholder","aria-label","disabled"],Y={class:"invalid-feedback"},Z={class:"row mb-3"},ee={class:"col"},te=["name","placeholder","aria-label","disabled"],ae={class:"invalid-feedback"},oe={class:"row mb-3"},ce={class:"col"},ie=["name","placeholder","aria-label","disabled"],le={class:"row mb-3"},re={class:"col"},se=["name","placeholder","aria-label","disabled"],ne=(0,o.Lk)("hr",{role:"separator","aria-orientation":"horizontal"},null,-1),de={class:"card mb-3"},me={class:"card-header bg-white border-bottom-0 d-flex justify-content-between pointer","data-bs-toggle":"collapse","data-bs-target":"#collapseExample","aria-expanded":"false","aria-controls":"collapseExample"},ke={class:"mb-0 card-title fw-bold"},ue=(0,o.Lk)("span",{class:"mdi mdi-car-info me-2"},null,-1),he=(0,o.Lk)("h5",{class:"mdi mdi-arrow-down-drop-circle-outline"},null,-1),ve={id:"collapseExample",class:"collapse card-body"},pe={key:1},be={class:"fw-bold"},$e=(0,o.Lk)("a",{href:"mailTo:amministrazione@monzamobilita.it"}," amministrazione@monzamobilita.it ",-1),fe={key:0,role:"separator","aria-orientation":"horizontal"},Le={key:1,class:"row"},Ce={class:"col text-center"},we={class:"fw-bold fst-italic pointer",href:"https://monzamobilita.it/informativa-ai-clienti-per-app-park-it/",target:"_blank"},ge={key:1},Ue={class:"row"},ye={class:"col text-center"},Ee={class:"fw-bold"},_e=(0,o.Lk)("hr",{role:"separator","aria-orientation":"horizontal"},null,-1),xe={class:"row"},qe={class:"col"},Se={class:"fs-4 text-nowrap"},Ve=(0,o.Lk)("span",{class:"mdi mdi-arrow-left-thin-circle-outline text-red me-2"},null,-1),ze={class:"col text-end"},We=(0,o.Lk)("span",{class:"mdi mdi-cart-check ms-2"},null,-1),Xe=(0,o.Lk)("span",{class:"mdi mdi mdi-cart-check ms-2"},null,-1);function Ae(e,t,a,Ae,Me,Fe){const Ie=(0,o.g2)("cart-components"),Pe=(0,o.g2)("router-link");return(0,o.uX)(),(0,o.CE)("section",l,[(0,o.Lk)("div",r,[(0,o.Lk)("div",s,[(0,o.Lk)("div",n,[(0,o.Lk)("ul",d,[(0,o.Lk)("li",m,[(0,o.Lk)("div",{class:(0,c.C4)(["nav-checkout fs-4",1===Ae.stepper?"text-red":""])},[(0,o.eW)((0,c.v_)(e.$t("checkout.checkoutHeader.step1"))+" ",1),k],2)]),(0,o.Lk)("li",u,[(0,o.Lk)("div",{class:(0,c.C4)(["nav-checkout fs-4",2===Ae.stepper?"text-red":""])},(0,c.v_)(e.$t("checkout.checkoutHeader.step2")),3)])])])]),h,Ae.checkoutStore.isCarrello?((0,o.uX)(),(0,o.CE)("div",v,[(0,o.Lk)("div",p,[(0,o.Lk)("div",b,[(0,o.Lk)("div",$,[(0,o.Lk)("div",f,[(0,o.Lk)("h5",L,[C,(0,o.eW)(" "+(0,c.v_)(e.$t("checkout.checkoutCart.cartHeader")),1)])]),(0,o.Lk)("div",w,[(0,o.bF)(Ie)]),(0,o.Lk)("div",g,[(0,o.Lk)("p",U,(0,c.v_)(e.$t("checkout.checkoutCart.cartTotal"))+" "+(0,c.v_)(Ae.checkoutStore.getTotaleCarrello),1)])]),y,(0,o.Lk)("div",E,[(0,o.Lk)("div",_,[x,Ae.stepper>=2?((0,o.uX)(),(0,o.CE)("button",{key:0,class:"btn btn-danger btn-sm fw-bold",onClick:t[0]||(t[0]=e=>Ae.stepper=1)}," Modifica ")):(0,o.Q3)("",!0)]),(0,o.Lk)("div",q,[(0,o.Lk)("div",S,[(0,o.Lk)("div",V,[(0,o.Lk)("input",{class:"form-control me-2",type:"text",name:"Codice Sconto",placeholder:"Codice Sconto","aria-label":"Codice Sconto",disabled:Ae.stepper>=2},null,8,z),W,X])])])])]),(0,o.Lk)("div",A,[(0,o.Lk)("div",M,[(0,o.Lk)("div",F,[(0,o.Lk)("h5",I,[P,(0,o.eW)(" "+(0,c.v_)(e.$t("checkout.checkoutCart.cartUser.cartUserHeader")),1)]),Ae.stepper>=2?((0,o.uX)(),(0,o.CE)("button",{key:0,class:"btn btn-danger btn-sm fw-bold",onClick:t[1]||(t[1]=e=>Ae.stepper=1)},(0,c.v_)(e.$t("checkout.checkoutCart.modifica")),1)):(0,o.Q3)("",!0)]),(0,o.Lk)("div",J,[(0,o.Lk)("div",H,[(0,o.Lk)("div",N,[(0,o.bo)((0,o.Lk)("input",{"onUpdate:modelValue":t[2]||(t[2]=e=>Ae.v$.datiUtente.nome.$model=e),class:(0,c.C4)(["form-control",{"is-invalid":Fe.isNomeInvalid,"is-valid":Fe.isNomeValid}]),type:"text",name:e.$t("checkout.checkoutCart.cartUser.name"),placeholder:e.$t("checkout.checkoutCart.cartUser.name"),"aria-label":e.$t("checkout.checkoutCart.cartUser.name"),disabled:Ae.stepper>=2},null,10,Q),[[i.Jo,Ae.v$.datiUtente.nome.$model]]),(0,o.Lk)("div",j,(0,c.v_)(e.$t(Ae.v$.datiUtente.nome.required.$message)),1)])]),(0,o.Lk)("div",T,[(0,o.Lk)("div",R,[(0,o.bo)((0,o.Lk)("input",{"onUpdate:modelValue":t[3]||(t[3]=e=>Ae.v$.datiUtente.cognome.$model=e),class:(0,c.C4)(["form-control",{"is-invalid":Fe.isCognomeInvalid,"is-valid":Fe.isCognomeValid}]),type:"text",name:e.$t("checkout.checkoutCart.cartUser.surname"),placeholder:e.$t("checkout.checkoutCart.cartUser.surname"),"aria-label":e.$t("checkout.checkoutCart.cartUser.surname"),disabled:Ae.stepper>=2},null,10,K),[[i.Jo,Ae.v$.datiUtente.cognome.$model]]),(0,o.Lk)("div",O,(0,c.v_)(e.$t(Ae.v$.datiUtente.cognome.required.$message)),1)])]),(0,o.Lk)("div",B,[(0,o.Lk)("div",D,[(0,o.bo)((0,o.Lk)("input",{"onUpdate:modelValue":t[4]||(t[4]=e=>Ae.v$.datiUtente.email.$model=e),class:(0,c.C4)(["form-control",{"is-invalid":Fe.isEmailInvalid,"is-valid":Fe.isEmailValid}]),type:"text",name:e.$t("checkout.checkoutCart.cartUser.email"),placeholder:e.$t("checkout.checkoutCart.cartUser.email"),"aria-label":e.$t("checkout.checkoutCart.cartUser.email"),disabled:Ae.stepper>=2},null,10,G),[[i.Jo,Ae.v$.datiUtente.email.$model]]),(0,o.Lk)("div",Y,(0,c.v_)(e.$t(Ae.v$.datiUtente.email.email.$message)),1)])]),(0,o.Lk)("div",Z,[(0,o.Lk)("div",ee,[(0,o.bo)((0,o.Lk)("input",{"onUpdate:modelValue":t[5]||(t[5]=e=>Ae.v$.confermaEmail.$model=e),class:(0,c.C4)(["form-control",{"is-invalid":Fe.isConfermaEmailInvalid,"is-valid":Fe.isConfermaEmailValid}]),type:"text",name:e.$t("checkout.checkoutCart.cartUser.confirmEmail"),placeholder:e.$t("checkout.checkoutCart.cartUser.confirmEmail"),"aria-label":e.$t("checkout.checkoutCart.cartUser.confirmEmail"),disabled:Ae.stepper>=2},null,10,te),[[i.Jo,Ae.v$.confermaEmail.$model]]),(0,o.Lk)("div",ae,(0,c.v_)(e.$t(Ae.v$.confermaEmail.sameAsEmail.$message)),1)])]),(0,o.Lk)("div",oe,[(0,o.Lk)("div",ce,[(0,o.bo)((0,o.Lk)("input",{"onUpdate:modelValue":t[6]||(t[6]=e=>Ae.checkoutStore.datiUtente.telefono=e),class:"form-control",type:"text",name:e.$t("checkout.checkoutCart.cartUser.phone"),placeholder:e.$t("checkout.checkoutCart.cartUser.phone"),"aria-label":e.$t("checkout.checkoutCart.cartUser.phone"),disabled:Ae.stepper>=2},null,8,ie),[[i.Jo,Ae.checkoutStore.datiUtente.telefono]])])]),(0,o.Lk)("div",le,[(0,o.Lk)("div",re,[(0,o.bo)((0,o.Lk)("textarea",{"onUpdate:modelValue":t[7]||(t[7]=e=>Ae.checkoutStore.datiUtente.note=e),class:"form-control",name:e.$t("checkout.checkoutCart.cartUser.note"),placeholder:e.$t("checkout.checkoutCart.cartUser.note"),"aria-label":e.$t("checkout.checkoutCart.cartUser.note"),disabled:Ae.stepper>=2,maxlength:"150"},null,8,se),[[i.Jo,Ae.checkoutStore.datiUtente.note]])])])])]),ne,(0,o.Lk)("div",de,[(0,o.Lk)("div",me,[(0,o.Lk)("h5",ke,[ue,(0,o.eW)(" "+(0,c.v_)(e.$t("checkout.invoice")),1)]),he]),(0,o.Lk)("div",ve,[((0,o.uX)(),(0,o.CE)("div",pe,[(0,o.Lk)("p",be,(0,c.v_)(e.$t("question.invoice.title")),1),(0,o.Lk)("p",null,[(0,o.eW)((0,c.v_)(e.$t("question.invoice.desc"))+" ",1),$e])]))])]),Ae.stepper>=2?((0,o.uX)(),(0,o.CE)("hr",fe)):(0,o.Q3)("",!0),Ae.stepper>=2?((0,o.uX)(),(0,o.CE)("div",Le,[(0,o.Lk)("div",Ce,[(0,o.Lk)("h5",null,[(0,o.eW)(" * "+(0,c.v_)(e.$t("checkout.checkoutCart.conferma"))+" ",1),(0,o.Lk)("a",we,(0,c.v_)(e.$t("checkout.checkoutCart.conferma1")),1),(0,o.eW)(" "+(0,c.v_)(e.$t("checkout.checkoutCart.conferma2"))+" ",1),(0,o.Lk)("a",{class:"fw-bold fst-italic pointer",target:"_blank",onClick:t[8]||(t[8]=(...e)=>Fe.downloadFile&&Fe.downloadFile(...e))},(0,c.v_)(e.$t("checkout.checkoutCart.conferma3")),1),(0,o.eW)(" * ")])])])):(0,o.Q3)("",!0)])])])):((0,o.uX)(),(0,o.CE)("div",ge,[(0,o.Lk)("div",Ue,[(0,o.Lk)("div",ye,[(0,o.Lk)("h1",Ee,(0,c.v_)(e.$t("checkout.checkoutCartEmpty")),1)])])])),_e,(0,o.Lk)("div",xe,[(0,o.Lk)("div",qe,[(0,o.bF)(Pe,{to:"/",class:"text-decoration-none text-black"},{default:(0,o.k6)((()=>[(0,o.Lk)("p",Se,[Ve,(0,o.eW)(" "+(0,c.v_)(e.$t("checkout.checkoutFooter.continua")),1)])])),_:1})]),(0,o.Lk)("div",ze,[2===Ae.stepper?((0,o.uX)(),(0,o.CE)("button",{key:0,type:"button",class:"btn btn-danger fw-bold text-nowrap",onClick:t[9]||(t[9]=(...e)=>Fe.confermaPagamento&&Fe.confermaPagamento(...e))},[(0,o.eW)((0,c.v_)(e.$t("checkout.checkoutFooter.ordina"))+" ",1),We])):((0,o.uX)(),(0,o.CE)("button",{key:1,type:"button",class:(0,c.C4)(["btn btn-danger fw-bold text-nowrap",Ae.checkoutStore.isCarrello?"":"disabled"]),onClick:t[10]||(t[10]=(...e)=>Fe.convalidaPagamento&&Fe.convalidaPagamento(...e))},[(0,o.eW)((0,c.v_)(e.$t("checkout.checkoutFooter.conferma"))+" ",1),Xe],2))])])])])}var Me=a(953),Fe=a(9639),Ie=a(3855),Pe=a(1458),Je=a(361),He=a(4209);const Ne={name:"CheckoutView",components:{CartComponents:Je.A},setup(){const e=(0,Pe.t)(),t=(0,He.a)(),a=(0,Me.KR)(1),c=e.$state,i={datiUtente:{nome:{required:Ie._$.withMessage("checkout.require",Ie.mw)},cognome:{required:Ie._$.withMessage("checkout.require",Ie.mw)},email:{required:Ie._$.withMessage("checkout.require",Ie.mw),email:Ie._$.withMessage("checkout.requireEmail",Ie.Rp)}},confermaEmail:{required:Ie._$.withMessage("checkout.require",Ie.mw),sameAsEmail:Ie._$.withMessage("checkout.sameAs",(0,Ie.f4)((0,o.EW)((()=>c.datiUtente.email))))}},l=(0,Fe.Ay)(i,c);return{state:c,v$:l,checkoutStore:e,stepper:a,parkingStore:t}},computed:{isNomeInvalid(){return this.v$.datiUtente.nome.$dirty&&this.v$.datiUtente.nome.$invalid},isNomeValid(){return this.v$.datiUtente.nome.$dirty&&!this.v$.datiUtente.nome.$invalid},isCognomeInvalid(){return this.v$.datiUtente.cognome.$dirty&&this.v$.datiUtente.cognome.$invalid},isCognomeValid(){return this.v$.datiUtente.cognome.$dirty&&!this.v$.datiUtente.cognome.$invalid},isEmailInvalid(){return this.v$.datiUtente.email.$dirty&&(this.v$.datiUtente.email.$invalid||this.v$.datiUtente.email.required.$invalid)},isEmailValid(){return this.v$.datiUtente.email.$dirty&&!this.v$.datiUtente.email.$invalid},isConfermaEmailInvalid(){return this.v$.confermaEmail.$dirty&&(this.v$.confermaEmail.sameAsEmail.$invalid||this.v$.confermaEmail.required.$invalid)},isConfermaEmailValid(){return this.v$.confermaEmail.$dirty&&!this.v$.confermaEmail.$invalid}},methods:{convalidaPagamento(){this.v$.$touch(),this.v$.$invalid||(this.stepper=2)},async confermaPagamento(){try{const e=await this.checkoutStore.confermaPagamento();window.location.replace(e)}catch(e){console.log(e)}},downloadFile(){const e=document.createElement("a");this.$i18n.locale.includes("en")?e.href="/bookSmarterMonza/rules2024-en.pdf":e.href="/bookSmarterMonza/rules2024-it.pdf",e.setAttribute("download","rules2024.pdf"),document.body.appendChild(e),e.click(),document.body.removeChild(e)}}};var Qe=a(6262);const je=(0,Qe.A)(Ne,[["render",Ae]]),Te=je}}]);