1"use strict";(self.webpackChunkquotation=self.webpackChunkquotation||[]).push([[743],{5705:(q,f,i)=>{i.d(f,{AK:()=>A,AN:()=>r,Dg:()=>b,Hp:()=>_,J9:()=>O,JY:()=>p,Qj:()=>D,Qp:()=>t,Sy:()=>z,U7:()=>y,VO:()=>S,Wx:()=>h,Zq:()=>E,jK:()=>R,uM:()=>x,vS:()=>T,wR:()=>c});var g=i(6683),a=i(1951),d=i(5963),M=i(4004);function x(e){return{attributes:{type:"www.tibco.com/be/ontology/Concepts/AlberoDecisionale/Richiesta"},idPreventivo:e}}function h(e){return{domande:[...e]}}function c(e){return{risposte:[...e]}}function O(e,l,m){return(0,d.H)(10).pipe((0,M.U)(()=>g.VD.sync({id:e,meta:m,request:l})))}function p(e){return a.zGw(a.KJl(a.is(String),a.fyY,a.d9v),a.H50([a.kKJ,a.xbD,a.fS0(!1)]),a.ffD)(e)}const y=a.zGw(a.kE,a.fS0(1)),t=a.H50([a.kKJ,a.xbD]),P=["Autocarro","Autocaravan"],T=5,U={Autocarro:["Conto Proprio","Conto Terzi"],Autocaravan:["Conto Proprio"]};function S(e,l){const m=a.sEJ(a.OH4("idDomanda",l),e);if(!m)return null;const n=a.ETc(["risposte",0,"valore",0],m);if(null!=n&&""!==n)return String(n);const u=a.ETc(["selezioni",0,"valore",0],m);return null!=u&&""!==u?String(u):null}function _(e,l,m,n){if(!e||!P.includes(e)||a.kKJ(l)||""===l)return!1;const u=U[e];if(!n||!(null==u?void 0:u.includes(n)))return!1;const o=Number(l),s=null!=m&&""!==m?Number(m):0;return!Number.isNaN(o)&&!Number.isNaN(s)&&o+s<=35}function r(){const e=localStorage.getItem("utmData");if(!e)return console.log("[UTM] Nessun dato UTM presente."),null;try{const l=JSON.parse(e);return Date.now()>l.expiry?(console.log("[UTM] I dati UTM sono scaduti:",new Date(l.expiry).toISOString()),localStorage.removeItem("utmData"),null):(console.log("[UTM] Dati UTM validi recuperati:",l.utms),l.utms)}catch(l){return console.error("[UTM] Errore nel parsing dei dati UTM:",l),localStorage.removeItem("utmData"),null}}function b(){let e=null;return r()&&r().utm_source&&(e=r().utm_source),Object.assign({idDomanda:"D.utmSource",livello:"4",readOnly:!1,reload:!0,testo:"utmSource",selezioni:[{idRisposta:"R1.utmSource",tipo:"utmSource",valoriRichiesti:"0"}]},c([{idRisposta:"R1.utmSource",valore:[e]}]))}function A(){let e=null;return r()&&r().utm_medium&&(e=r().utm_medium),Object.assign({idDomanda:"D.utmMedium",livello:"4",readOnly:!1,reload:!0,testo:"utmMedium",selezioni:[{idRisposta:"R1.utmMedium",tipo:"utmMedium",valoriRichiesti:"0"}]},c([{idRisposta:"R1.utmMedium",valore:[e]}]))}function R(){let e=null;return r()&&r().utm_campaign&&(e=r().utm_campaign),Object.assign({idDomanda:"D.utmCampaign",livello:"4",readOnly:!1,reload:!0,testo:"utmCampaign",selezioni:[{idRisposta:"R1.utmCampaign",tipo:"utmCampaign",valoriRichiesti:"0"}]},c([{idRisposta:"R1.utmCampaign",valore:[e]}]))}function z(){let e=null;return r()&&r().utm_term&&(e=r().utm_term),Object.assign({idDomanda:"D.utmTerm",livello:"4",readOnly:!1,reload:!0,testo:"utmTerm",selezioni:[{idRisposta:"R1.utmTerm",tipo:"utmTerm",valoriRichiesti:"0"}]},c([{idRisposta:"R1.utmTerm",valore:[e]}]))}function D(){let e=null;return r()&&r().utm_content&&(e=r().utm_content),Object.assign({idDomanda:"D.utmContent",livello:"4",readOnly:!1,reload:!0,testo:"utmContent",selezioni:[{idRisposta:"R1.utmContent",tipo:"utmContent",valoriRichiesti:"0"}]},c([{idRisposta:"R1.utmContent",valore:[e]}]))}function E(){let e=null;return r()&&r().utm_version&&(e=r().utm_version),Object.assign({idDomanda:"D.utmVersion",livello:"4",readOnly:!1,reload:!0,testo:"utmVersion",selezioni:[{idRisposta:"R1.utmVersion",tipo:"utmVersion",valoriRichiesti:"0"}]},c([{idRisposta:"R1.utmVersion",valore:[e]}]))}},6775:(q,f,i)=>{i.r(f),i.d(f,{SummaryModule:()=>m});var g=i(9808),a=i(2382),d=i(8387),M=i(8603),x=i(1652),h=i(5399),c=i(7579),O=i(2722),p=i(4813),y=i(9537),t=i(4893),P=i(6683),v=i(3510),T=i(1928),Z=i(5816),U=i(8966),S=i(2600),_=i(7238),r=i(3419);function b(n,u){if(1&n&&(t.TgZ(0,"div",18),t._UZ(1,"sara-ui-icon",19),t.TgZ(2,"p",20),t._uU(3),t.qZA()()),2&n){const o=t.oxw();t.xp6(1),t.Q6J("icon",o.getIconFromOption(o.destinazione)),t.xp6(2),t.hij("Viaggio: ",o.destinazione,"")}}function A(n,u){if(1&n&&(t.TgZ(0,"p",21),t._uU(1),t.qZA()),2&n){const o=t.oxw();t.xp6(1),t.Oqu(o.service.getSummarySplitLabel(o.quote))}}function R(n,u){if(1&n&&(t.ynx(0),t.TgZ(1,"div",22)(2,"p"),t._UZ(3,"sara-ui-icon",19),t._uU(4," 1. Porta questo"),t._UZ(5,"br"),t._uU(6,"preventivo in Agenzia"),t.qZA(),t.TgZ(7,"p"),t._UZ(8,"sara-ui-icon",19),t._uU(9," 2. Completa l\u2019acquisto"),t._UZ(10,"br"),t._uU(11,"con la guida di un esperto "),t.qZA(),t.TgZ(12,"p"),t._UZ(13,"sara-ui-icon",19),t._uU(14,"3. Goditi la tua"),t._UZ(15,"br"),t._uU(16,"copertura!"),t.qZA()(),t.TgZ(17,"p",21),t._uU(18,"Cosa stai aspettando?"),t.qZA(),t.TgZ(19,"a",23),t.ALo(20,"async"),t._uU(21,"Prenota un appuntamento"),t.qZA(),t.BQk()),2&n){const o=t.oxw();
1t.xp6(3),t.Q6J("icon","agency"),t.xp6(5),t.Q6J("icon","promo"),t.xp6(5),t.Q6J("icon","flash"),t.xp6(6),t.Q6J("href",t.lcZ(20,4,o.linkBooking$),t.LSH)}}function z(n,u){1&n&&(t.ynx(0),t.TgZ(1,"div",22)(2,"p",24),t._UZ(3,"sara-ui-icon",19),t.TgZ(4,"b"),t._uU(5,"Hai attivato il promemoria di scadenza della polizza"),t.qZA(),t._UZ(6,"br"),t._uU(7,"\xc8 ancora troppo presto per rinnovare la tua polizza, ti avvertiremo noi quando sar\xe0 il momento giusto! "),t.qZA()(),t.TgZ(8,"p",21),t._uU(9," Le offerte assicurative cambiano spesso, quindi ricorda che il tuo preventivo potrebbe variare "),t.qZA(),t.BQk()),2&n&&(t.xp6(3),t.Q6J("icon","notifications"))}function D(n,u){if(1&n){const o=t.EpF();t.ynx(0),t.TgZ(1,"div",22)(2,"p",24),t._UZ(3,"sara-ui-icon",19),t.TgZ(4,"b"),t._uU(5,"La tua polizza scade fra pi\xf9 di 60 giorni"),t.qZA(),t._UZ(6,"br"),t._uU(7,"\xc8 meglio non attivarsi troppo in anticipo, le offerte cambiano spesso! Ti guideremo noi verso l\u2019offerta giusta* al momento giusto, gratuitamente e senza impegno. "),t.qZA()(),t.TgZ(8,"p",25),t._uU(9,"*ricorda che il tuo preventivo potrebbe variare"),t.qZA(),t.TgZ(10,"a",26),t.NdJ("click",function(){return t.CHM(o),t.oxw().expiringReminderModal()}),t._uU(11,"Attiva il promemoria"),t.qZA(),t.BQk()}2&n&&(t.xp6(3),t.Q6J("icon","warning"))}const e=[{path:"",component:(()=>{class n{constructor(o,s,C,I,w,J,V){this.quotation=o,this.config=s,this.utility=C,this.service=I,this.dialog=w,this.storage=J,this.gtm=V,this.destroy$=new c.x,this.quote$=this.quotation.quote.entity$,this.offer$=this.quotation.offerFromQuote$,this.linkBooking$=this.config.content.data.pipe((0,p.j)("footer","linkBooking")),this.userEmail$=this.quotation.data.entity$.pipe((0,p.j)("email")),this.quotation$=this.quotation.quote.entity$,this.reminder="notActivable"}expiringReminderModal(){this.dialog.open(y.Z,{maxHeight:"100vh",data:{}}).afterClosed().pipe().subscribe(o=>{console.log("close")})}getDestinazione(){this.quote.dettagli.map(o=>{"Destinazione"===o.chiave&&(this.destinazione=o.valore)})}getIconFromOption(o){return this.utility.getIconFromCategory(o)}ngOnInit(){this.gtm.pushEvent("preventivo_event",{action:"pageView"},!0),this.storage.session.delete("expiringModalShowed"),this.quote$.subscribe(o=>{this.quote=o,"Viaggio"===this.quote.bene&&this.getDestinazione()}),this.offer$.subscribe(o=>{this.offer=o}),this.quotation$.pipe((0,O.R)(this.destroy$),(0,p.j)("expiringReminder")).subscribe(o=>{o&&(this.reminder="notActive",this.storage.session.has("reminderDone")&&this.storage.session.pull("reminderDone")&&(this.reminder="active",this.storage.session.delete("reminderDone")))})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.unsubscribe()}}return n.\u0275fac=function(o){return new(o||n)(t.Y36(P.Mt),t.Y36(v.E4),t.Y36(T.i
1),t.Y36(Z.b),t.Y36(U.uw),t.Y36(v.V1),t.Y36(S.b))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-qt-summary"]],decls:30,vars:16,consts:[["id","tk_preventivo","headerContainer","extended","aria-label","summary","footerClass","pt-0",1,"bg-soft-white",3,"closeByHeader"],[1,"h-100"],[1,"container-extended","h-100","mb-5"],[1,"row"],[1,"col-12"],[1,"col-12","col-md-10","offset-md-1"],[1,"card"],["loading","lazy","decoding","async","src","./assets/images/sara_80anni_animation.webp",1,"logo"],[1,"title-offer"],["class","d-flex align-items-center gap-2 mb-2",4,"ngIf"],[1,"number-offer"],[1,"price-offer"],[1,"medium-text"],["matTooltipPosition","above","matTooltipClass","sara-tooltip",1,"info",3,"icon","matTooltip"],["class","small-text",4,"ngIf"],[4,"ngIf"],[1,"col-12","mt-5"],["summary",""],[1,"d-flex","align-items-center","gap-2","mb-2"],[3,"icon"],[1,"number-offer","m-0"],[1,"small-text"],[1,"steps"],[1,"",3,"href"],[1,"full"],[1,"small-text-2"],[1,"",3,"click"]],template:function(o,s){1&o&&(t.TgZ(0,"sara-ui-layout",0),t.NdJ("closeByHeader",function(){return s.utility.closeConfirmModal()}),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1"),t._uU(6,"Ben fatto! Il tuo preventivo \xe8 al sicuro"),t.qZA(),t.TgZ(7,"h3"),t._uU(8),t.ALo(9,"async"),t.qZA()(),t.TgZ(10,"div",5)(11,"div",6),t._UZ(12,"img",7),t.TgZ(13,"p",8),t._uU(14),t.ALo(15,"async"),t.qZA(),t.YNc(16,b,4,2,"div",9),t.TgZ(17,"p",10),t._uU(18),t.qZA(),t.TgZ(19,"p",11),t._uU(20),t.TgZ(21,"span",12),t._uU(22),t._UZ(23,"sara-ui-icon",13),t.qZA()(),t.YNc(24,A,2,1,"p",14),t.YNc(25,R,22,6,"ng-container",15),t.YNc(26,z,10,1,"ng-container",15),t.YNc(27,D,12,1,"ng-container",15),t.qZA()(),t.TgZ(28,"div",16),t._UZ(29,"app-qt-footer-contact-agency",17),t.qZA()()()()()),2&o&&(t.xp6(8),t.hij("Il preventivo \xe8 stato salvato correttamente e inviato a ",t.lcZ(9,12,s.userEmail$),""),t.xp6(6),t.Oqu(t.lcZ(15,14,s.service.getTitle(s.offer))),t.xp6(2),t.Q6J("ngIf","Viaggi
1o"===s.quote.bene),t.xp6(2),t.hij("N\xb0 preventivo: ",s.quote.idPreventivo,""),t.xp6(2),t.hij(" ",s.service.getSummaryPriceAlt(s.quote)," "),t.xp6(2),t.hij("",s.service.getSummaryPriceLongDescription(s.quote)," "),t.xp6(1),t.Q6J("icon","info")("matTooltip","Scopri tutte le dilazioni di pagamento disponibili in agenzia"),t.xp6(1),t.Q6J("ngIf",s.service.hasSplit(s.quote)),t.xp6(1),t.Q6J("ngIf","notActivable"===s.reminder),t.xp6(1),t.Q6J("ngIf","active"===s.reminder),t.xp6(1),t.Q6J("ngIf","notActive"===s.reminder))},directives:[d.$$,g.O5,d.oJ,_.gM,r.r],pipes:[g.Ov],styles:["[_nghost-%COMP%] .info[_ngcontent-%COMP%]{margin-left:8px}[_nghost-%COMP%] .summary-next-steps[_ngcontent-%COMP%]{height:100%;padding-top:.813rem;padding-bottom:.813rem}[_nghost-%COMP%] h1[_ngcontent-%COMP%]{color:#2d2d2d;font-size:34px;font-style:normal;font-weight:700;line-height:48px}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{color:#58585b;font-size:18px;font-style:normal;font-weight:600;line-height:24px}[_nghost-%COMP%] .card[_ngcontent-%COMP%]{position:relative;padding:32px;margin-top:30px;background:linear-gradient(130deg,#ae568c 1.12%,#890c58 103.08%);border-radius:16px;box-shadow:0 6px 12px 4px #2d2d2d29;color:#fff}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{position:absolute;right:20px;width:20%}@media (min-width: 768px){[_nghost-%COMP%] .card[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:15%}}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .title-offer[_ngcontent-%COMP%]{font-size:26px;font-weight:700;line-height:36px}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .number-offer[_ngcontent-%COMP%]{font-size:16px;font-weight:400;line-height:24px}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .price-offer[_ngcontent-%COMP%]{margin-bottom:0;font-size:44px;font-weight:700;line-height:60px}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .small-text[_ngcontent-%COMP%]{font-size:14px;font-weight:400;line-height:20px}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .small-text-2[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:16px}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .medium-text[_ngcontent-%COMP%]{display:block;color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:20px}[_nghost-%COMP%] .card[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:10px 12px;background:#fff;border-radius:8px;color:#060f73;font-size:14px;font-weight:600;line-height:20px;text-decoration:none}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:24px 0;gap:20px}@media (min-width: 768px){[_nghost-%COMP%] .card[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%]{flex-direction:row}}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] sara-ui-icon[_ngcontent-%COMP%]{display:block;margin-bottom:14px;font-size:24px}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] sara-ui-icon i{padding:0 4px 5px;border-bottom:1px solid white}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;font-size:14px;font-weight:400;line-height:20px}@media (min-width: 768px){[_nghost-%COMP%] .card[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:25%}}[_nghost-%COMP%] .card[_ngcontent-%COMP%] .steps[_ngcontent-%COMP%] .full[_ngcontent-%COMP%]{width:100%!important;margin:0}"]}),n})()}];let l=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[h.Bz.forChild(e)],h.Bz]}),n})(),m=(()=>{class n{}return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[g.ez,a.UX,l,d.W2,M.gW,x.N,_.AV]]}),n})()}}]);
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.