PageSourceSearch

https://st-gedeon.qc.ca/3897.e94810947cc859fc.js

js st-gedeon.qc.ca collected 2026-10-02 13:15:32 UTC 56,404 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpc=self.webpackChunkpc||[]).push([[3897],{16175:(B,Q,d)=>{d.d(Q,{b:()=>s});var g=d(89417),a=d(54438),y=d(64075),I=d(98377),v=d(10916),D=d(84529);const c=(r,u)=>u.value.id;function P(r,u){1&r&&(a.j41(0,"div",2),a.nrm(1,"i",4),a.j41(2,"span"),a.pXf(3,0),a.k0s()())}function h(r,u){1&r&&(a.j41(0,"span",14),a.pXf(1,1),a.k0s())}function e(r,u){if(1&r){const C=a.RV6();a.j41(0,"button",17),a.bIt("click",function(){a.eBV(C);const S=a.XpG().$implicit,V=a.XpG();return a.Njj(V.retirer(S))}),a.nrm(1,"i",18),a.k0s()}}function x(r,u){if(1&r){const C=a.RV6();a.j41(0,"div",5),a.nrm(1,"img",6),a.j41(2,"div",7)(3,"span",8),a.EFF(4),a.k0s(),a.j41(5,"div",9)(6,"button",10),a.bIt("click",function(){const S=a.eBV(C).$implicit,V=a.XpG();return a.Njj(V.decreaseQte(S))}),a.nrm(7,"i",11),a.k0s(),a.nrm(8,"input",12),a.j41(9,"button",10),a.bIt("click",function(){const S=a.eBV(C).$implicit,V=a.XpG();return a.Njj(V.increaseQte(S))}),a.nrm(10,"i",13),a.k0s()(),a.DNE(11,h,2,0,"span",14),a.k0s(),a.j41(12,"div",15),a.EFF(13),a.nI1(14,"vplusCurrency"),a.k0s(),a.DNE(15,e,2,0,"button",16),a.k0s()}if(2&r){const C=u.$implicit,p=a.XpG();a.AVh("article-row--indisponible",p.showIndisponible()&&C.value.indisponible),a.Y8G("formGroup",C),a.R7$(),a.Y8G("src",null!=C.value&&null!=C.value.image&&C.value.image.url?C.value.image.url:"assets/img/article-sport-artwork.svg",a.B4B),a.R7$(3),a.JRh(C.value.nom),a.R7$(2),a.Y8G("disabled",C.get("qte").value<=0||p.showIndisponible()&&C.value.indisponible),a.R7$(3),a.Y8G("disabled",p.showIndisponible()&&C.value.indisponible),a.R7$(2),a.vxM(11,p.showIndisponible()&&C.value.indisponible?11:-1),a.R7$(2),a.JRh(a.i5U(14,10,C.value.prix,p.localisation)),a.R7$(2),a.vxM(15,p.showRetirer()?15:-1)}}let s=(()=>{var r;class u{constructor(){this.localisationService=(0,a.WQX)(I.A),this.showRetirer=(0,a.hFB)(!1),this.showIndisponible=(0,a.hFB)(!1),this.retirerArticle=(0,a.CGW)(),this.qteChange=(0,a.CGW)(),this.localisation=this.localisationService.getCurrentLocalisation()}get contientArticleIndisponible(){return!!this.showIndisponible()&&this.articlesFA.controls.some(p=>{var S;return!0===(null===(S=p.get("indisponible"))||void 0===S?void 0:S.value)})}increaseQte(p){var S;this.showIndisponible()&&null!==(S=p.get("indisponible"))&&void 0!==S&&S.value||((0,y.fKT)(p),this.emitQteChange(p))}decreaseQte(p){var S;this.showIndisponible()&&null!==(S=p.get("indisponible"))&&void 0!==S&&S.value||((0,y.XOW)(p),this.emitQteChange(p))}onBlurQte(p){(0,y.T6x)(p),this.emitQteChange(p)}retirer(p){this.retirerArticle.emit(p.get("id").value)}emitQteChange(p){this.qteChange.emit({articleId:p.get("id").value,quantite:p.get("qte").value})}}return(r=u).\u0275fac=function(p){return new(p||r)},r.\u0275cmp=a.VBU({type:r,selectors:[["vplus-activite-articles-supplementaires-selecteur"]],inputs:{articlesFA:"articlesFA",showRetirer:[a.Mj6.SignalBased,"showRetirer"],showIndisponible:[a.Mj6.SignalBased,"showIndisponible"]},outputs:{retirerArticle:"retirerArticle",qteChange:"qteChange"},standalone:!0,features:[a.aNF],decls:3,vars:1,consts:()=>{let C,p;return C=" Un ou plusieurs articles de votre panier ne sont plus disponibles. Veuillez mettre \xE0 jour votre panier avant de poursuivre. ",p="Indisponible",[C,p,[1,"cart-info-banner"],[1,"article-row",3,"article-row--indisponible","formGroup"],[1,"icon-invalid"],[1,"article-row",3,"formGroup"],[1,"article-image",3,"src"],[1,"article-sup-content"],[1,"article-nom"],[1,"qte-stepper"],["type","button",3,"click","disabled"],[1,"icon-delete"],["type","number","formControlName","qte","readonly",""],[1,"icon-add"],[1,"article-indisponible"],[1,"article-prix"],["type","button","aria-label","Retirer du panier",1,"article-retirer"],["type","button","aria-label","Retirer du panier",1,"article-retirer",3,"click"],[1,"icon-poubelle"]]},template:function(p,S){1&p&&(a.DNE(0,P,4,0,"div",2),a.Z7z(1,x,16,13,"div",3,c)),2&p&&(a.vxM(0,S.showIndisponible()&&S.contientArticleIndisponible?0:-1),a.R7$(),a.Dyx(S.articlesFA.controls))},dependencies:[g.X1,g.me,g.Q0,g.BC,g.cb,g.j4,g.JD,v.G,D.a],styles:[".article-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:20px 0;
1border-bottom:1px solid #f0f0f0}.article-image[_ngcontent-%COMP%]{width:120px;height:90px;border-radius:4px;object-fit:cover;background:#e0e0e0;margin-right:20px}.article-sup-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;gap:12px}.article-nom[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#000}.qte-stepper[_ngcontent-%COMP%]{display:inline-flex;align-items:center;background-color:#f2f2f2;border-radius:20px;padding:2px;height:40px;width:-moz-fit-content;width:fit-content}.qte-stepper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border:none;background:transparent;padding:4px 8px;font-weight:300;display:flex;align-items:center}.qte-stepper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:35px;text-align:center;border:none;background:transparent;font-weight:600;font-size:15px;-moz-appearance:textfield}.qte-stepper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .qte-stepper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.article-prix[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#000;margin-left:15px;padding-top:5px}.cart-info-banner[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem;padding:1rem 1.25rem;margin-bottom:1.5rem;border:1px solid var(--vplus-color-border, #d9d9d9);border-radius:4px;background:#f8f8f8}.cart-info-banner[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-top:2px;font-size:1.125rem;color:#666;flex-shrink:0}.cart-info-banner[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#444;font-size:.95rem;line-height:1.5}.article-row--indisponible[_ngcontent-%COMP%]   .article-image[_ngcontent-%COMP%], .article-row--indisponible[_ngcontent-%COMP%]   .article-sup-content[_ngcontent-%COMP%], .article-row--indisponible[_ngcontent-%COMP%]   .article-prix[_ngcontent-%COMP%]{opacity:.5}.article-row--indisponible[_ngcontent-%COMP%]   .qte-stepper[_ngcontent-%COMP%]{pointer-events:none}.article-row--indisponible[_ngcontent-%COMP%]   .article-retirer[_ngcontent-%COMP%]{opacity:1;pointer-events:auto;color:var(--warn-color, #b91c1c)}.article-indisponible[_ngcontent-%COMP%]{display:block;margin-top:4px;font-size:12px;font-weight:600;color:#b91c1c}.article-retirer[_ngcontent-%COMP%]{background:transparent;padding:5px;margin-top:6px}"]}),u})()},49276:(B,Q,d)=>{d.d(Q,{JP:()=>h,YS:()=>V,_6:()=>p,_z:()=>c,be:()=>D});var g=d(97586),a=d.n(g),y=d(92995),I=d(64075);class v{assignValues(b){Object.assign(this,b)}}class D extends v{assignValues(b){super.assignValues(b),this.nomLong=`${this.nom} (${a()(this.dateDebut).format("DD/MM/YY")} au ${a()(this.dateFin).format("DD/MM/YY")})`}}class c extends v{}class P extends v{get sitesNom(){return this.sites.map(b=>b.nom).join(", ")}format(){this.sites=this.sites.map(b=>{const k=new c;return k.assignValues(b),k})}}class h extends v{format(){this.inscriptions=this.inscriptions.map(b=>{const k=new P;return k.assignValues(b),k.format(),k})}}class p{constructor(){this.id=(0,I.SiN)(),this.eveTypId=y.dD.Reservation,this.eveActId=(0,I.SiN)(),this.participants=[],this.factures=[],this.activiteLocalisations=[]}}class V{}},49484:(B,Q,d)=>{d.d(Q,{Z:()=>P});var g=d(49276),y=(d(53387),d(72609)),I=d(54438),v=d(98377),D=d(96354);const c="/activite";let P=(()=>{var h;class e{constructor(){this.backend=(0,I.WQX)(y.m3),this.localisationService=(0,I.WQX)(v.A)}getProgrammationEnligneList(s=null){return this.backend.get(`${c}/pc/programmations-enligne?progId=${s}&localisation=${this.localisationService.getCurrentLocalisation()}`).pipe((0,D.T)(r=>r.map(C=>{const p=new g.JP;return p.assignValues(C),p.format(),p})))}getInscriptionEnligneList(s){return this.backend.get(`${c}/pc/inscriptions-enligne?progId=${s}&localisation=${this.localisationService.getCurrentLocalisation()}`).pipe((0,D.T)(r=>({periodes:r.periodes.map(p=>{const S=new g.be;return S.assignValues(p),S}),sites:r.sites.map(p=>{const S=new g._z;return S.assignValues(p),S})})))}getSiteList(){return this.backend.get(`${c}/pc/sites`).pipe((0,D.T)(s=>s.map(u=>{const C=new g._z;return C.assignValues(u),C})))}getAdhesion(s){return this.backend.get(`${c}/pc/adhesion?localisation=${this.localisationService.getCurrentLocalisation()}`,{id:s,isFromPcOrAchatTdb:!0})}checkDisponibiliteAdhesionMembre(s,r,u){return this.backend.put(`${c}/pc/disponibilite-adhesion-membre`,{adhId:s,perId:r,perCourriel:u})}checkDisponibiliteEntree(s,r,u){return this.backend.put(`${c}/pc/disponibilite-entree`,{eveActId:s,perId:r,perCourriel:u})}getLimiteAndNbrAdhesion(s){return this.backend.get(`${c}/pc/adhesion-check-limite?adhId=${s}`)}createAdhesionMembreCheckout(s,r){return this.backend.put(`${c}/pc/adhesion-membre-checkout`,{adhesionMembre:s,payment:r,localisation:this.localisationService.getCurrentLocalisation()})}insertAdhesionMmembreList(s){return this.backend.put(`${c}/pc/adhesion-membres`,s)}getActiviteReservationList(){return this.backend.get(`${c}/pc/activites-reservation?isFromPC=true`)}getActiviteReservation(s){return this.backend.get(`${c}/pc/activite-reservation?id=${s}&localisation=${this.localisationService.getCurrentLocalisation()}`)}getNomLocalise(s){var r;return null==s||null===(r=s.localisations)||void 0===r||null===(r=r.find(u=>u.lclzTag===this.localisationService.getCurrentLocalisation()))||void 0===r?void 0:r.nom}loadActiviteReservation(s){return this.getActiviteReservation(s).pipe((0,D.T)(r=>(r.nom=this.getNomLocalise(r),r)))}loadActiviteEntree(s){return this.loadActiviteInscription(s,"inscriptionEntree")}loadActiviteSession(s){return this.loadActiviteInscription(s,"inscriptionSession")}loadActiviteInscription(s,r){return this.getActivite(s).pipe((0,D.T)(u=>{const C=null==u?void 0:u[r];return C&&(C.inscNom=this.getNomLocalise(C)),u}))}getActivitePcRouteBySlug(s){return this.backend.get(`${c}/pc/activite-route-by-slug?slug=${encodeURIComponent(s)}&localisation=${this.localisationService.getCurrentLocalisation()}`)}getActivite(s){return this.backend.get(`${c}/pc/activite?localisation=${this.localisationService.getCurrentLocalisation()}`,{id:s,isIndisponibilite:!1,isFromPcOrAchatTdb:!0})}createEvenementEnregistrementCheckout(s,r){return this.backend.put(`${c}/pc/evenement-enregistrement-checkout`,{evenementEnregistrement:s,payment:r,localisation:this.localisationService.getCurrentLocalisation()})}insertEvenementEnregistrementList(s){return this.backend.put(`${c}/pc/evenement-enregistrements`,s)}getPlageListActiviteEntree(s){return this.backend.get(`${c}/pc/activite-entree-plages?actId=${s}`)}getCapaciteAndNbrParticipants(s){return this.backend.get(`${c}/pc/activite-capacite-nbr-participants?eveActId=${s}`)}createSessionEnregistrementCheckout(s,r){return this.backend.put(`${c}/pc/session-enregistrement-checkout`,{sessionEnregistrement:s,payment:r,localisation:this.localisationService.getCurrentLocalisation()})}payInstallment(s){return this.backend.post(`${c}/pc/facture/installment`,{payment:s})}insertSessionEnregistrementList(s){return this.backend.put(`${c}/pc/session-enregistrements`,s)}getCapaciteAndNbrParticipantsSession(s,r){return this.backend.get(`${c}/pc/session-capacite-nbr-participants`,{sesId:s,sesHoldGroupeId:r})}getCapaciteAndNbrParticipantsSessionMulti(s,r,u=!0){return this.backend.get(`${c}/pc/session-multi-capacite-nbr-participants`,{sesConfigId:s,sesHoldGroupeId:r,isFromPC:u})}getSessionsInscrites(s=[]){return this.backend.get(`${c}/pc/sessions-inscrites`,{perIds:s})}getParticipant(s,r=null,u=null,C=null){return this.backend.get(`${c}/pc/participant`,{perId:s,catId:r,eveHeureDebut:u,eveHeureFin:C})}checkDisponibiliteSession(s,r,u){return this.backend.put(`${c}/pc/disponibilite-session`,{sesId:s,perId:r,perCourriel:u})}getEvenements(s,r){return this.backend.get(`${c}/pc/evenements-plage?startDate=${s}&endDate=${r}`).pipe((0,D.T)(u=>u.evenements))}checkDisponibiliteReservation(s){const r=encodeURIComponent(JSON.stringify(s));return this.backend.get(`${c}/pc/disponibilite-reservation?evenement=${r}`)}createReservationEnregistrementCheckout(s,r){return this.backend.put(`${c}/pc/reservation-enregistrement-checkout`,{reservationEnregistrement:s,payment:r,localisation:this.localisationService.getCurrentLocalisation()})}upsertReservation(s,r){return this.backend.put(`${c}/pc/reservation`,{reservation:s,timezone:r})}getParticipantActivites(s){return this.backend.get(`${c}/pc/participant-activites?perId=${s}&localisation=${this.localisationService.getCurrentLocalisation()}`)}cancelEvenement(s){return this.backend.delete(`${c}/pc/reservation?id=${s}`)}deleteSessionEnregistrement(s){return this.backend.delete(`${c}/pc/session-enregistrement?id=${s}`)}getParticipantsSessionEnregistrementInscritByFamId(s,r,u){return this.backend.get(`${c}/pc/participants-session-enregistrement-inscrit-famille?famId=${s}&actId=${r}&ftbId=${u}`)}getParticipantsEvenementEnregistrementInscritByFamId(s,r,u){return this.backend.get(`${c}/pc/participants-evenement-enregistrement-inscrit-famille?famId=${s}&actId=${r}&ftbId=${u}`)}getParticipantsAdhesionInscritByFamId(s,r,u){return this.backend.get(`${c}/pc/participants-adhesion-inscrit-famille?famId=${s}&adhId=${r}&ftbId=${u}`)}createSessionHold(s){return this.backend.put(`${c}
1/pc/session-hold`,s)}releaseSessionHold(s){return this.backend.delete(`${c}/pc/session-hold/${s}`)}getEnregistrementRenseigSuppPC(s){return this.backend.get(`${c}/pc/enregistrement-renseignement-sup`,s)}updateRegistrationRenseigSupp(s){return this.backend.put(`${c}/pc/enregistrement-renseignement-sup`,s)}getArticleList(){return this.backend.get(`${c}/pc/articles`)}}return(h=e).\u0275fac=function(s){return new(s||h)},h.\u0275prov=I.jDH({token:h,factory:h.\u0275fac}),e})()},33916:(B,Q,d)=>{d.d(Q,{z:()=>mt});var g=d(10467),a=d(53160),y=d(49823),I=d(82889),v=d.n(I),D=d(77339),c=d(35052),P=d(92995),h=d(64075),e=d(54438),x=d(17965),s=d(98377),r=d(9310),u=d(89079),C=d(9454),p=d(32102),S=d(5951),V=d(3902),W=d(25596),K=d(9183),F=d(89417),N=d(37e3),b=d(73910),k=d(6053);const Me=i=>({"multiple-sites":i});function fe(i,l){1&i&&(e.j41(0,"div",45),e.nrm(1,"i",64),e.j41(2,"span"),e.pXf(3,6),e.k0s()())}function ge(i,l){if(1&i&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&i){const o=l.$implicit;e.R7$(),e.SpI(" ",o,"")}}function Re(i,l){if(1&i&&(e.j41(0,"div",70)(1,"mat-expansion-panel",71,0)(3,"mat-expansion-panel-header")(4,"div"),e.EFF(5),e.k0s(),e.nrm(6,"i"),e.k0s(),e.j41(7,"div"),e.Z7z(8,ge,2,1,"div",null,e.Vm6),e.k0s()()()),2&i){const o=e.sdS(2),n=e.XpG(3);e.R7$(),e.Y8G("expanded",!1),e.R7$(4),e.JRh(n.eventDate),e.R7$(),e.AVh("icon-chevron-down",!o.expanded)("icon-chevron-up",o.expanded),e.R7$(2),e.Dyx(n.allOccurrences)}}function he(i,l){if(1&i&&(e.j41(0,"div",72),e.EFF(1),e.k0s()),2&i){const o=e.XpG(3);e.R7$(),e.SpI(" ",o.eventDate," ")}}function Te(i,l){if(1&i&&(e.j41(0,"div",66)(1,"div",67),e.nrm(2,"i",69),e.k0s(),e.DNE(3,Re,10,6,"div",70)(4,he,2,1),e.k0s()),2&i){const o=e.XpG(2);e.R7$(3),e.vxM(3,o.horaireDetailed?3:4)}}function Ne(i,l){if(1&i&&e.EFF(0),2&i){const o=e.XpG().$implicit;e.JRh(o.siteNom)}}function Oe(i,l){1&i&&e.EFF(0,", ")}function ve(i,l){if(1&i&&(e.DNE(0,Oe,1,0),e.EFF(1)),2&i){const o=e.XpG().$implicit;e.vxM(0,o.siteNom?0:-1),e.R7$(),e.JRh(o.installations.join(", "))}}function De(i,l){if(1&i&&(e.j41(0,"div")(1,"span"),e.DNE(2,Ne,1,1)(3,ve,2,2),e.k0s(),e.j41(4,"a"),e.EFF(5),e.k0s()()),2&i){const o=l.$implicit;e.R7$(2),e.vxM(2,o.siteNom?2:-1),e.R7$(),e.vxM(3,null!=o.installations&&o.installations.length?3:-1),e.R7$(2),e.SpI("",o.adresse," ")}}function $e(i,l){if(1&i&&(e.j41(0,"div",46)(1,"h3"),e.EFF(2),e.k0s(),e.j41(3,"div",65),e.DNE(4,Te,5,1,"div",66),e.j41(5,"div",66)(6,"div",67),e.nrm(7,"i",68),e.k0s(),e.j41(8,"div"),e.Z7z(9,De,6,3,"div",null,e.Vm6),e.k0s()()()()),2&i){const o=e.XpG();e.R7$(2),e.JRh(o.activityNom),e.R7$(2),e.vxM(4,o.eventDate?4:-1),e.R7$(),e.HbH(e.eq3(4,Me,o.installationsBySite.length>1)),e.R7$(4),e.Dyx(o.installationsBySite)}}function ye(i,l){1&i&&(e.j41(0,"span"),e.pXf(1,8),e.k0s())}function be(i,l){1&i&&(e.j41(0,"span"),e.pXf(1,9),e.k0s())}function Ue(i,l){if(1&i&&(e.j41(0,"div",77)(1,"span"),e.pXf(2,10),e.k0s(),e.EFF(3),e.k0s()),2&i){const o=e.XpG(3);e.R7$(3),e.SpI(" ",o.totalsFormatted.total,"")}}function Ie(i,l){if(1&i&&(e.j41(0,"p",84)(1,"span"),e.pXf(2,12),e.k0s()()),2&i){const o=e.XpG(5);e.AVh("primary-color-imp",o.isTotalSelected)}}function Le(i,l){if(1&i&&(e.j41(0,"p",84)(1,"span"),e.pXf(2,13),e.k0s(),e.EFF(3),e.nI1(4,"vplusMoment"),e.k0s()),2&i){const o=e.XpG(),n=o.$implicit,t=o.$index,_=e.XpG(4);e.AVh("primary-color-imp",_.isTotalSelected&&0===t),e.R7$(3),e.SpI(" ",e.ii3(4,3,n.date,!0,_.formatDate,null)," ")}}function Ve(i,l){if(1&i&&(e.j41(0,"div",80)(1,"div",81)(2,"p",82)(3,"span"),e.pXf(4,11),e.k0s(),e.EFF(5),e.nI1(6,"versementMontant"),e.k0s(),e.DNE(7,Ie,3,2,"p",83)(8,Le,5,8),e.k0s()()),2&i){const o=l.$implicit,n=l.$index,t=e.XpG(4);e.AVh("background-shadow-primary",t.isTotalSelected&&0===n)("timeline-progress",0!==n)("timeline-completed",0===n),e.R7$(5),e.E5c(" ",n+1,"",t.isFr?" :":":"," ",e.ii3(6,10,t.totals.total,t.singleVersementOpt.versements.length,n,t.localisation)," "),e.R7$(2),e.vxM(7,0===n&&(null==o?null:o.typeEcheance)===t.EnumTypeEcheance.AuMomentAchat?7:8)}}function ke(i,l){if(1&i&&(e.j41(0,"mat-list")(1,"div",78),e.Z7z(2,Ve,9,15,"div",79,e.Vm6),e.k0s()()),2&i){const o=e.XpG(3);e.R7$(2),e.Dyx(o.singleVersementOpt.versements)}}function Qe(i,l){if(1&i&&(e.j41(0,"mat-card")(1,"mat-radio-button",75)(2,"h4",76),e.DNE(3,ye,2,0,"span")(4,be,2,0),e.k0s(),e.DNE(5,Ue,4,1,"div",77)(6,ke,4,0),e.k0s()()),2&i){const o=e.XpG(2);e.AVh("border-primary",o.isTotalSelected)("shadow-primary",o.isTotalSelected),e.R7$(),e.Y8G("value",o.EnumValuesOptionVersement.Total),e.R7$(2),e.vxM(3,o.singleVersementOpt?3:4),e.R7$(2),e.vxM(5,o.singleVersementOpt?6:5)}}function Ye(i,l){1&i&&(e.j41(0,"span"),e.pXf(1,17),e.k0s())}function xe(i,l){1&i&&(e.j41(0,"span"),e.pXf(1,18),e.k0s())}function Fe(i,l){1&i&&(e.j41(0,"span"),e.pXf(1,19),e.k0s())}function Xe(i,l){1&i&&(e.j41(0,"span"),e.pXf(1,20),e.k0s())}function Ge(i,l){if(1&i&&(e.j41(0,"p",84)(1,"span"),e.pXf(2,22),e.k0s()()),2&i){const o=e.XpG(2).$implicit,n=e.XpG(2);e.AVh("primary-color-imp",o.id===(null==n.optVersement?null:n.optVersement.id))}}function je(i,l){if(1&i&&(e.j41(0,"p",84)(1,"span"),e.pXf(2,23),e.k0s(),e.EFF(3),e.nI1(4,"vplusMoment"),e.k0s()),2&i){const o=e.XpG(),n=o.$implicit,t=o.$index,_=e.XpG().$implicit,m=e.XpG(2);
1e.AVh("primary-color-imp",_.id===(null==m.optVersement?null:m.optVersement.id)&&0===t),e.R7$(3),e.SpI(" ",e.ii3(4,3,n.date,!0,m.formatDate,null)," ")}}function qe(i,l){if(1&i&&(e.j41(0,"div",80)(1,"div",81)(2,"p",82)(3,"span"),e.pXf(4,21),e.k0s(),e.EFF(5),e.nI1(6,"versementMontant"),e.k0s(),e.DNE(7,Ge,3,2,"p",83)(8,je,5,8),e.k0s()()),2&i){const o=l.$implicit,n=l.$index,t=e.XpG().$implicit,_=e.XpG(2);e.AVh("background-shadow-primary",t.id===(null==_.optVersement?null:_.optVersement.id)&&0===n)("timeline-progress",0!==n)("timeline-completed",0===n),e.R7$(5),e.E5c(" ",n+1,"",_.isFr?" :":":"," ",e.ii3(6,10,_.totals.total,t.versements.length,n,_.localisation)," "),e.R7$(2),e.vxM(7,0!==n||(null==o?null:o.typeEcheance)!==_.EnumTypeEcheance.AuMomentAchat||_.isDelaiDefini?8:7)}}function He(i,l){if(1&i&&(e.j41(0,"mat-card")(1,"mat-radio-button",75)(2,"h4",76)(3,"span"),e.pXf(4,14),e.k0s(),e.j41(5,"span"),e.EFF(6),e.k0s(),e.DNE(7,Ye,2,0,"span")(8,xe,2,0),e.k0s(),e.j41(9,"div",85)(10,"p",86)(11,"span"),e.pXf(12,15),e.k0s(),e.j41(13,"span"),e.EFF(14),e.k0s(),e.DNE(15,Fe,2,0,"span")(16,Xe,2,0),e.k0s(),e.j41(17,"p",87),e.pXf(18,16),e.k0s()(),e.j41(19,"mat-list")(20,"div",78),e.Z7z(21,qe,9,15,"div",79,e.Vm6),e.k0s()()()()),2&i){const o=l.$implicit,n=e.XpG(2);e.AVh("border-primary",o.id===(null==n.optVersement?null:n.optVersement.id))("shadow-primary",o.id===(null==n.optVersement?null:n.optVersement.id)),e.R7$(),e.Y8G("value",o.id),e.R7$(5),e.SpI(" ",null==o.versements?null:o.versements.length," "),e.R7$(),e.vxM(7,1===(null==o.versements?null:o.versements.length)?7:8),e.R7$(7),e.SpI(" ",null==o.versements?null:o.versements.length," "),e.R7$(),e.vxM(15,1===(null==o.versements?null:o.versements.length)?15:16),e.R7$(6),e.Dyx(o.versements)}}function ze(i,l){1&i&&(e.j41(0,"mat-error"),e.pXf(1,24),e.k0s())}function we(i,l){if(1&i){const o=e.RV6();e.j41(0,"div",49)(1,"h2"),e.pXf(2,7),e.k0s(),e.j41(3,"mat-radio-group",73),e.bIt("change",function(t){e.eBV(o);const _=e.XpG();return e.Njj(_.onRadioChange(t))}),e.DNE(4,Qe,7,7,"mat-card",74),e.Z7z(5,He,23,9,"mat-card",74,e.Vm6),e.k0s(),e.DNE(7,ze,2,0,"mat-error"),e.k0s()}if(2&i){const o=e.XpG();e.R7$(3),e.Y8G("value",o.isTotalSelected?o.EnumValuesOptionVersement.Total:null==o.optVersement?null:o.optVersement.id),e.R7$(),e.vxM(4,(o.optionsVersement.length>1||o.singleVersementOpt)&&o.afficherPayerTotalite?4:-1),e.R7$(),e.Dyx(o.optionsVersement),e.R7$(2),e.vxM(7,o.optionSelected===o.EnumTypeOptions.NotFinished&&o.isTouched&&(null==o.optionsVersement?null:o.optionsVersement.length)>0?7:-1)}}function Be(i,l){1&i&&(e.j41(0,"h2"),e.pXf(1,25),e.k0s())}function We(i,l){1&i&&(e.j41(0,"span",88),e.pXf(1,28),e.k0s())}function Ke(i,l){1&i&&(e.j41(0,"span",88),e.pXf(1,29),e.k0s())}function Je(i,l){if(1&i&&(e.j41(0,"mat-card",53)(1,"mat-radio-button",54)(2,"div",55)(3,"div",56),e.DNE(4,We,2,0,"span",88)(5,Ke,2,0),e.k0s(),e.j41(6,"div",58)(7,"span"),e.pXf(8,26),e.k0s(),e.EFF(9),e.nI1(10,"versementMontant"),e.j41(11,"span"),e.pXf(12,27),e.k0s()()()(),e.j41(13,"div",89),e.nrm(14,"hr",90),e.j41(15,"form",91),e.nrm(16,"div",92),e.k0s()()()),2&i){const o=e.XpG();e.AVh("border-primary",o.selectedProcedure===o.EnumValuesOptionVersement.FirstInstallment)("shadow-primary",o.selectedProcedure===o.EnumValuesOptionVersement.FirstInstallment),e.R7$(),e.Y8G("value",o.EnumValuesOptionVersement.FirstInstallment),e.R7$(3),e.vxM(4,1===(null==o.optVersement||null==o.optVersement.versements?null:o.optVersement.versements.length)?4:5),e.R7$(2),e.AVh("padding-bottom-10",o.selectedProcedure!==o.EnumValuesOptionVersement.FirstInstallment),e.R7$(3),e.SpI("\xa0",e.ii3(10,12,o.totals.total,null==o.optVersement||null==o.optVersement.versements?null:o.optVersement.versements.length,0,o.localisation),"\xa0"),e.R7$(4),e.AVh("hide",o.selectedProcedure!==o.EnumValuesOptionVersement.FirstInstallment),e.R7$(3),e.Y8G("id","card-container-versement"+o.idCard)}}function Ze(i,l){if(1&i&&(e.j41(0,"span",88),e.pXf(1,30),e.k0s(),e.EFF(2),e.j41(3,"span",88),e.pXf(4,31),e.k0s()),2&i){const o=e.XpG();e.R7$(2),e.SpI("\xa0",o.delaiJours,"\xa0")}}function et(i,l){if(1&i&&(e.j41(0,"span",88),e.pXf(1,32),e.k0s(),e.EFF(2),e.j41(3,"span",88),e.pXf(4,33),e.k0s()),2&i){const o=e.XpG();e.R7$(2),e.SpI("\xa0",o.delaiJours,"\xa0")}}function tt(i,l){1&i&&(e.j41(0,"span",88),e.pXf(1,34),e.k0s())}function nt(i,l){1&i&&(e.j41(0,"span",88),e.pXf(1,35),e.k0s())}function it(i,l){if(1&i&&(e.j41(0,"div",57),e.nrm(1,"p",93),e.nI1(2,"safeHtml"),e.k0s()),2&i){const o=e.XpG();e.R7$(),e.Y8G("innerHtml",e.bMT(2,1,o.descriptionModalites),e.npT)}}function ot(i,l){1&i&&(e.j41(0,"div",57)(1,"p",94),e.pXf(2,36),e.k0s()())}function st(i,l){1&i&&(e.j41(0,"span"),e.pXf(1,37),e.k0s())}function at(i,l){1&i&&(e.j41(0,"span"),e.pXf(1,38),e.k0s())}function rt(i,l){1&i&&(e.j41(0,"p",84)(1,"span"),e.pXf(2,40),e.k0s()())}function _t(i,l){if(1&i&&(e.j41(0,"p",84)(1,"span"),e.pXf(2,41),e.k0s(),e.EFF(3),e.nI1(4,"vplusMoment"),e.k0s()),2&i){const o=e.XpG().$implicit,n=e.XpG(2);e.R7$(3),e.SpI("\xa0",e.ii3(4,1,o.date,!0,n.formatDate,null)," ")}}function lt(i,l){if(1&i&&(e.j41(0,"div",96)(1,"div",81)(2,"p",82)(3,"span"),e.pXf(4,39),e.k0s(),e.EFF(5),e.nI1(6,"versementMontant"),e.k0s(),e.DNE(7,rt,3,0,"p",84)(8,_t,5,6),e.k0s()()),2&i){const o=l.$implicit,n=l.$index,t=e.XpG(2);e.R7$(5),e.E5c(" ",n+1,"",t.isFr?" :":":"," ",e.ii3(6,4,t.totals.total,t.optVersement.versements.length,n,t.localisation)," "),e.R7$(2),e.vxM(7,0!==n||(null==o?null:o.typeEcheance)!==t.EnumTypeEcheance.AuMomentAchat||t.isDelaiDefini?8:7)}}function dt(i,l){if(1&i&&(e.j41(0,"mat-list",60)(1,"div",95),e.Z7z(2,lt,9,9,"div",96,e.Vm6),e.k0s()()),2&i){const o=e.XpG();e.R7$(2),e.Dyx(null==o.optVersement?null:o.optVersement.versements)}}function ct(i,l){1&i&&(e.j41(0,"mat-error"),e.pXf(1,42),e.k0s())}function pt(i,l){1&i&&(e.j41(0,"div",61),e.nrm(1,"mat-progress-spinner",97),e.j41(2,"span",98),e.pXf(3,43),e.k0s()()),2&i&&(e.R7$(),e.Y8G("diameter",50))}function ut(i,l){1&i&&(e.j41(0,"div",45),e.nrm(1,"i",64),e.j41(2,"span"),e.pXf(3,44),e.k0s()())}let mt=(()=>{var i;class l{constructor(){this.store=(0,e.WQX)(r.il),this.appConfig=(0,e.WQX)(c.o),this.localisationService=(0,e.WQX)(s.A),this.destroyRef=(0,e.WQX)(e.abz),this.facturationService=(0,e.WQX)(x.M),this.actions$=(0,e.WQX)(D.En),this.isConfigVersement=!1,this.addToFraisService=0,this.isActivityAndShouldModifyFS=!1,this.idCard="",this.isAllowedInscWithRestr=!1,this.onLaunchedPayment=new e.bkB,this.onPreparedPayment=new e.bkB,this.onErrorPayment=new e.bkB,this.onPaymentLater=new e.bkB,this.onCardReady=new e.bkB,this.onSquareDeconnecte=new e.bkB,this.localisation=this.localisationService.getCurrentLocalisation(),this.currencyPipe=new h.aJo,this.EnumTypeOptions=P.kS,this.resumeIsMultiSession=!1,this.resumeItems=[],this.resumeMultiSessionRows=[],this.isHampstead="hampstead"===this.appConfig.appConfig.appNom,this.requiredCheckout=!0,this.totals={subTotal:0,fraisService:0,TPS:0,TVQ:0,total:0,totalPaye:0},this.totalsFormatted={subTotal:"0",fraisService:"0",TPS:"0",TVQ:"0",total:"0",totalPaye:"0"},this.versementMontantPipe=new h.Pde,this.EnumValuesOptionVersement=P.e,this.labels={montant:"Un montant de",preleve:"sera pr\xE9lev\xE9 aujourd'hui."},this.isTotalSelected=!1,this.optionSelected=P.kS.NotFinished,this.isDelaiDefini=!1,this.isSingleVersementDirect=!1,this.isCardReady=!1,this.notConnectedToSquare=!this.appConfig.isSquareConnected,this.EnumTypeEcheance=P.GI,this.onRefundSuccessEffect=(0,e.QZP)(()=>{this.actions$.pipe((0,D.gp)(a.Jm),(0,u.pQ)(this.destroyRef)).subscribe(()=>
1{this.orderLaunched=!1})}),this.horaireDetailed=!1}finDeJournee(n){if(!n)return null;if("string"==typeof n){const[t,_,m]=n.slice(0,10).split("-").map(Number);return t&&_&&m?new Date(t,_-1,m,23,59,59,999):null}return new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59,999)}premierVersementDiffere(n){var t;const _=null==n||null===(t=n.versements)||void 0===t?void 0:t[0];if(!_||_.typeEcheance===P.GI.AuMomentAchat)return!1;if(_.typeEcheance===P.GI.DelaiDefini)return!0;const m=this.finDeJournee(_.date);return!!m&&m>=new Date}appliquerPaiementDiffere(n){this.dateVersementSupp=!0,this.totalsFormatted.totalPaye="0",this.totals.totalPaye=0,this.notConnectedToSquare?(this.optionSelected=P.kS.Finished,this.selectedProcedure=null==n?void 0:n.id):this.optionSelected=P.kS.PartiallyFinished}get aOptionPayerPlusTard(){var n;if(!this.isConfigVersement)return!1;const t=[...null!==(n=this.optionsVersement)&&void 0!==n?n:[]];return this.singleVersementOpt&&t.push(this.singleVersementOpt),t.some(_=>this.premierVersementDiffere(_))}get estSectionPaiementVide(){return!(!this.notConnectedToSquare||!this.requiredCheckout||(this.optVersement||this.isTotalSelected?this.soumissionSansCartePossible:this.aOptionPayerPlusTard))}get afficherPayerTotalite(){return!this.notConnectedToSquare||!!this.singleVersementOpt&&this.premierVersementDiffere(this.singleVersementOpt)}get soumissionSansCartePossible(){return!this.requiredCheckout||this.optionSelected===P.kS.Finished&&0===this.totals.totalPaye}emitEtatSquare(){this.onSquareDeconnecte.emit({deconnecte:this.notConnectedToSquare,sectionVide:this.estSectionPaiementVide})}ngOnInit(){var n;this.isFr=this.localisationService.getCurrentLocalisation()===P.fi.FR,this.formatDate=this.isFr?"DD MMMM YYYY":"MMMM D YYYY",this.horaireDetailed=(null===(n=this.allOccurrences)||void 0===n?void 0:n.length)>0,this.store.select(y.selectCurrentUser).pipe((0,u.pQ)(this.destroyRef)).subscribe(t=>this.currentUser=t),this.emitEtatSquare(),setTimeout(()=>this.processCard(!0),500),setTimeout(()=>this.processCard(),600)}setDisplayedItems(){this.itemsGroup?(this.idMatching(),this.displayedItems=(0,h.c01)(this.itemsGroup,this.items,this.localisation)):this.displayedItems=[...this.items]}onRadioChange(n){if(this.selectedProcedure=P.e.Other,n.value===P.e.Total)this.isTotalSelected=!0,this.singleVersementOpt?(this.optVersement=this.singleVersementOpt,this.updateSelectedOptionFlags(),this.premierVersementDiffere(this.singleVersementOpt)?this.appliquerPaiementDiffere(this.singleVersementOpt):(this.dateVersementSupp=!1,this.totals.totalPaye=this.totals.total,this.totalsFormatted.totalPaye=this.currencyPipe.transform(this.totals.total,this.localisation),this.optionSelected=P.kS.Finished)):(this.dateVersementSupp=!1,this.optVersement=null,this.totals.totalPaye=this.totals.total,this.totalsFormatted.totalPaye=this.currencyPipe.transform(this.totals.total,this.localisation),this.optionSelected=P.kS.Finished);else if(this.isTotalSelected=!1,this.optVersement=this.optionsVersement.find(m=>m.id===n.value),this.updateSelectedOptionFlags(),this.premierVersementDiffere(this.optVersement))this.appliquerPaiementDiffere(this.optVersement);else{var t,_;this.optionSelected=P.kS.Finished,this.dateVersementSupp=!1,this.totalsFormatted.totalPaye=this.versementMontantPipe.transform(this.totals.total,null===(t=this.optVersement.versements)||void 0===t?void 0:t.length,0,this.localisation),this.totals.totalPaye=parseFloat(null===(_=this.totalsFormatted.totalPaye)||void 0===_?void 0:_.replace(/\s/g,"").replace(",",".").replace(" $",""))}this.onPaymentLater.emit(this.optionSelected!==P.kS.PartiallyFinished&&this.dateVersementSupp),this.resetRequiredCheckout(),this.emitEtatSquare()}idMatching(){const n=this.items.map(m=>m.id),t=this.itemsGroup.flatMap(m=>"items"in m?m.items.map(R=>R.id):[m.id]);if(n.length!==t.length||!n.every(m=>t.includes(m))||!t.every(m=>n.includes(m)))throw new Error("Mismatch detected: Ensure each id in items and itemsGroup has exactly one match.")}buildResumeRows(){const{isMultiSession:n,items:t,multiSessionRows:_}=(0,h.B0t)(this.displayedItems,this.localisation);this.resumeIsMultiSession=n,this.resumeItems=t,this.resumeMultiSessionRows=_}ngOnChanges(){var n,t;this.setDisplayedItems(),this.buildResumeRows(),this.items.length>0&&(this.requiredCheckout=0!==this.items.map(T=>T.prix).reduce((T,A)=>T+A));let _=0,m=0;
1if(this.items.forEach(T=>{var A;const f=null!==(A=T.totalWithRabais)&&void 0!==A?A:T.total;_+=f,!1!==T.isTaxeRequired&&(m+=f)}),this.totals.subTotal=_,!this.isHampstead&&!this.isRequiredFraisService){const T=v()(.05*this.totals.subTotal,2);this.totals.fraisService=this.isActivityAndShouldModifyFS?0!==this.totals.subTotal?T+this.addToFraisService:0:T+this.addToFraisService}if(!this.unrequiredTaxes){const T=m+this.totals.fraisService;this.totals.TPS=v()(.05*T,2),this.totals.TVQ=v()(.09975*T,2)}if(this.totals.total=v()(this.totals.subTotal+this.totals.fraisService+this.totals.TPS+this.totals.TVQ,2),this.totalsFormatted.subTotal=this.currencyPipe.transform(this.totals.subTotal,this.localisation),!this.isHampstead&&!this.isRequiredFraisService&&(this.totalsFormatted.fraisService=this.currencyPipe.transform(this.totals.fraisService,this.localisation)),this.unrequiredTaxes||(this.totalsFormatted.TPS=this.currencyPipe.transform(this.totals.TPS,this.localisation),this.totalsFormatted.TVQ=this.currencyPipe.transform(this.totals.TVQ,this.localisation)),this.totalsFormatted.total=this.currencyPipe.transform(this.totals.total,this.localisation),0===(null===(n=this.optionsVersement)||void 0===n?void 0:n.length)&&(this.totals.totalPaye=this.totals.total,this.totalsFormatted.totalPaye=this.totalsFormatted.total),this.isDelaiDefini=!1,(null===(t=this.optionsVersement)||void 0===t?void 0:t.length)>0){if(this.optionsVersement.forEach(A=>{var f;(null===(f=A.versements)||void 0===f||null===(f=f[0])||void 0===f?void 0:f.typeEcheance)===P.GI.DelaiDefini&&A.versements.forEach(M=>{if(null!=M.delaiJours&&!M.date){const $=new Date;$.setDate($.getDate()+M.delaiJours),M.date=$.toISOString().split("T")[0]}})}),this.optionsVersement.some(A=>{var f;return(null===(f=A.versements)||void 0===f?void 0:f.length)>1})){const A=this.optionsVersement.find(f=>{var M;return 1===(null===(M=f.versements)||void 0===M?void 0:M.length)});A&&(this.singleVersementOpt=A),this.optionsVersement=this.optionsVersement.filter(f=>{var M;return(null===(M=f.versements)||void 0===M?void 0:M.length)>1})}else this.singleVersementOpt=null,this.optionsVersement=this.optionsVersement.filter(A=>{var f,M;return!(1===(null===(f=A.versements)||void 0===f?void 0:f.length)&&(null===(M=A.versements[0])||void 0===M?void 0:M.typeEcheance)===P.GI.AuMomentAchat)});if(this.isSingleVersementDirect=0===this.optionsVersement.length&&!this.singleVersementOpt,this.isSingleVersementDirect)this.totals.totalPaye=this.totals.total,this.totalsFormatted.totalPaye=this.totalsFormatted.total;else if(1===this.optionsVersement.length&&!this.singleVersementOpt){const A=this.optionsVersement[0];var R,L;A.versements[0].typeEcheance===P.GI.AuMomentAchat?(this.optVersement=A,this.updateSelectedOptionFlags(),this.isTotalSelected=!1,this.optionSelected=P.kS.Finished,this.dateVersementSupp=!1,this.totalsFormatted.totalPaye=this.versementMontantPipe.transform(this.totals.total,null===(R=A.versements)||void 0===R?void 0:R.length,0,this.localisation),this.totals.totalPaye=parseFloat(null===(L=this.totalsFormatted.totalPaye)||void 0===L?void 0:L.replace(/\s/g,"").replace(",",".").replace(" $",""))):this.optionSelected!==P.kS.Finished&&setTimeout(()=>{var M,$;this.optVersement=A,this.updateSelectedOptionFlags(),this.isTotalSelected=!1,this.premierVersementDiffere(A)?this.appliquerPaiementDiffere(A):(this.optionSelected=P.kS.Finished,this.dateVersementSupp=!1,this.totalsFormatted.totalPaye=this.versementMontantPipe.transform(this.totals.total,null===(M=A.versements)||void 0===M?void 0:M.length,0,this.localisation),this.totals.totalPaye=parseFloat(null===($=this.totalsFormatted.totalPaye)||void 0===$?void 0:$.replace(/\s/g,"").replace(",",".").replace(" $",""))),this.emitEtatSquare()})}}this.updateSelectedOptionFlags(),this.emitEtatSquare()}processCard(){var n=this;return(0,g.A)(function*(t=!1){let _;if(n.notConnectedToSquare){if(t)return}else{if(!window.Square)throw new Error("Square.js failed to load properly");try{var m,R;_=window.Square.payments(null===(m=n.appConfig.appConfig.configOAuthSquare)||void 0===m?void 0:m.appId,null===(R=n.appConfig.appConfig.configOAuthSquare)||void 0===R?void 0:R.locationId)}
1catch{throw new Error("appId or locationId is incorrect")}try{yield n.initializeCard(_,t)}catch{throw new Error("erreur in card initialization")}t||(n.isCardReady=!0,n.onCardReady.emit())}const L=function(){var M=(0,g.A)(function*($){var Y,X,G;if(!n.orderLaunched){if(n.isTouched=!0,(null===(Y=n.optionsVersement)||void 0===Y?void 0:Y.length)>0&&n.isConfigVersement&&!n.isSingleVersementDirect&&[P.kS.NotFinished,P.kS.PartiallyFinished].includes(n.optionSelected)&&0!==n.totals.total)return n.store.dispatch(new y.Actions.ShowSnackBar("Impossible d'effectuer le paiement car certains champs sont invalides.",y.EnumSnackBarType.Echec)),void(n.orderLaunched=!1);if(n.orderLaunched=!0,n.onLaunchedPayment.emit(),$.preventDefault(),n.selectedProcedure!==P.e.Other&&n.manageProcedure(),n.optVersement&&n.optVersement.versements.forEach((O,U)=>{var z,w;O.montant=parseFloat(null===(z=n.versementMontantPipe.transform(n.totals.total,null===(w=n.optVersement.versements)||void 0===w?void 0:w.length,U))||void 0===z?void 0:z.replace(/\s/g,"").replace(",",".").replace(" $",""))}),!n.isConfigVersement&&!n.optVersement&&(null===(X=n.optionsVersement)||void 0===X?void 0:X.length)>0&&(n.optionsVersement=[],n.requiredCheckout=!0),!n.notConnectedToSquare&&n.requiredCheckout&&((!n.optVersement&&0===(null===(G=n.optionsVersement)||void 0===G?void 0:G.length)||n.optVersement)&&(!n.dateVersementSupp||n.dateVersementSupp&&n.selectedProcedure===P.e.FirstInstallment)||n.isTotalSelected&&(!n.dateVersementSupp||n.selectedProcedure===P.e.FirstInstallment)))try{var j,q;let O;0!==(null===(j=n.optionsVersement)||void 0===j?void 0:j.length)&&(0===n.totals.totalPaye||n.optVersement&&n.dateVersementSupp||n.selectedProcedure===P.e.FirstInstallment)?(null===(q=n.optionsVersement)||void 0===q?void 0:q.length)>0&&(n.optVersement||n.totals.totalPaye===n.totals.total)&&0!==n.totals.total&&(O=yield n.tokenize(n.cardVersement)):O=yield n.tokenize(n.card);const U=yield n.verifyBuyer(_,O);yield n.createPayment(O,U)}catch(O){if(n.orderLaunched=!1,n.onErrorPayment.emit(),!O.message.includes("Tokenization")){var H;(0,h.TuW)({code:P.xH.SCA},n.store,y);const U=null!==(H=n.currentUser)&&void 0!==H?H:n.user;n.facturationService.logSquarePaymentErreur(O.message,"SCA",{id:U.perId,prenom:U.prenom,nom:U.nom,courriel:U.courriel}).pipe((0,u.pQ)(n.destroyRef)).subscribe()}}else n.onPreparedPayment.emit({resume:{items:n.items,methode:null,totalsFormatted:n.totalsFormatted,optionVersement:n.optVersement},citoyenRequerant:n.buildCitoyenRequerantPayment()})}});return function(Y){return M.apply(this,arguments)}}();function A(){return(A=(0,g.A)(function*(M){yield L(M)})).apply(this,arguments)}document.getElementById("card-button"+n.idCard).addEventListener("click",function T(M){return A.apply(this,arguments)})}).apply(this,arguments)}initializeCard(n){var t=this;return(0,g.A)(function*(_,m=!1){let R;return yield _.setLocale(t.isFr?"fr-FR":"en-CA"),m?(R=`card-container-versement${t.idCard}`,t.cardVersement=yield _.card(),yield t.cardVersement.attach(`#${R}`),(0,h.AMs)(R,()=>t.cardVersement,t.destroyRef,document),t.cardVersement):(R=`card-container${t.idCard}`,t.card=yield _.card(),yield t.card.attach(`#${R}`),(0,h.AMs)(R,()=>t.card,t.destroyRef,document),t.card)}).apply(this,arguments)}updateSelectedOptionFlags(){if(this.optVersement){const n=this.optVersement.versements[0];this.isDelaiDefini=n.typeEcheance===P.GI.DelaiDefini,this.isDelaiDefini&&(this.delaiJours=n.delaiJours,this.descriptionModalites=n.descriptionModalites)}}onProcedureChange(){this.optionSelected=P.kS.Finished,this.onPaymentLater.emit(this.selectedProcedure!==P.e.FirstInstallment),this.emitEtatSquare()}manageProcedure(){var n,t;this.selectedProcedure===P.e.FirstInstallment?(this.totalsFormatted.totalPaye=this.versementMontantPipe.transform(this.totals.total,null===(n=this.optVersement.versements)||void 0===n?void 0:n.length,0,this.localisation),this.totals.totalPaye=parseFloat(null===(t=this.totalsFormatted.totalPaye)||void 0===t?void 0:t.replace(/\s/g,"").replace(",",".").replace(" $",""))):this.dateVersementSupp&&(this.totalsFormatted.totalPaye="0",this.totals.totalPaye=0),this.resetRequiredCheckout()}createPayment(n,t){var _=this;return(0,g.A)(function*(){var m;const R={locationId:null===(m=_.appConfig.appConfig.configOAuthSquare)||void 0===m?void 0:m.locationId,sourceId:n,verificationToken:t};_.onPreparedPayment.emit({paymentBody:R,resume:{items:_.items,methode:P.np.CarteCredit,totalsFormatted:_.totalsFormatted,optionVersement:_.optVersement},citoyenRequerant:_.buildCitoyenRequerantPayment()})})()}resetRequiredCheckout(){this.requiredCheckout=0!==this.totals.totalPaye||0===this.totals.totalPaye&&this.dateVersementSupp}tokenize(n){return(0,g.A)(function*(){const t=yield n.tokenize();if("OK"===t.status)return t.token;{let _=`Tokenization failed with status: ${t.status}`;throw t.errors&&(_+=` and errors: ${JSON.stringify(t.errors)}`),new Error(_)}})()}verifyBuyer(n,t){var _=this;return(0,g.A)(function*(){const m={amount:(100*_.totals.total).toFixed(),billingContact:{},currencyCode:"CAD",intent:"CHARGE"};return(yield n.verifyBuyer(t,m)).token})()}buildCitoyenRequerantPayment(){var n;const t=null!==(n=this.currentUser)&&void 0!==n?n:this.user;return{id:t.perId,prenom:t.prenom,nom:t.nom,courriel:t.courriel}}}return(i=l).\u0275fac=function(n){return new(n||i)},i.\u0275cmp=e.VBU({type:i,selectors:[["vplus-square-card-payment"]],inputs:{items:"items",itemsGroup:"itemsGroup",unrequiredTaxes:"unrequiredTaxes",optionsVersement:"optionsVersement",isRequiredFraisService:"isRequiredFraisService",orderLaunc
1hed:"orderLaunched",user:"user",isConfigVersement:"isConfigVersement",addToFraisService:"addToFraisService",isActivityAndShouldModifyFS:"isActivityAndShouldModifyFS",idCard:"idCard",isAllowedInscWithRestr:"isAllowedInscWithRestr",eventDate:"eventDate",allOccurrences:"allOccurrences",installationsBySite:"installationsBySite",activityNom:"activityNom"},outputs:{onLaunchedPayment:"onLaunchedPayment",onPreparedPayment:"onPreparedPayment",onErrorPayment:"onErrorPayment",onPaymentLater:"onPaymentLater",onCardReady:"onCardReady",onSquareDeconnecte:"onSquareDeconnecte"},features:[e.OA$],decls:50,vars:53,consts:()=>{let o,n,t,_,m,R,L,T,A,f,M,$,Y,X,G,j,q,H,O,U,z,w,J,Z,ee,te,ne,ie,oe,se,ae,re,_e,le,de,ce,pe,ue,me,Ee,Pe,Ce,Se,Ae;return o="R\xE9sum\xE9 de la commande",n="Un montant de",t="sera pr\xE9lev\xE9 aujourd'hui.",_="Aucun montant ne vous sera pr\xE9lev\xE9 aujourd'hui.",m="Vous avez jusqu'au",R="Certaines restrictions s\u2019appliquent \xE0 un ou plusieurs articles s\xE9lectionn\xE9s. Une justification pourra \xEAtre demand\xE9e par le personnel sur place.",L="Options de versement",T="Je souhaite payer la totalit\xE9",A="Je souhaite payer la totalit\xE9 aujourd'hui",f="Montant total :",M="Versement",$="\xC0 payer maintenant",Y="Payable le ou avant",X="Je souhaite payer en",G="Nous vous offrons la possibilit\xE9 d'effectuer votre paiement en",j="Chaque versement devra \xEAtre pay\xE9 au plus tard \xE0 la date limite indiqu\xE9e ci-dessous.",q="versement",H="versements",O="versement de montant \xE9gal.",U="versements de montants \xE9gaux.",z="Versement",w="\xC0 payer maintenant",J="Payable le ou avant",Z=" Veuillez choisir une option de versement ",ee="Paiement",te="Un montant de",ne="sera pr\xE9lev\xE9 aujourd'hui.",ie="Je souhaite payer aujourd'hui",oe="Je souhaite effectuer mon premier versement aujourd'hui",se="Je souhaite payer dans un d\xE9lai de",ae="jours",re="Je souhaite effectuer mon premier versement dans un d\xE9lai de",_e="jours",le="Je souhaite payer plus tard",de="Je souhaite effectuer mon premier versement plus tard",ce="Nous vous offrons la possibilit\xE9 d'effectuer votre paiement ult\xE9rieurement en ligne, en pr\xE9sentiel ou en nous contactant.",pe="pour r\xE9gler votre paiement.",ue="pour r\xE9gler votre premier versement en contactant votre ville.",me="Versement",Ee="\xC0 payer maintenant",Pe="Payable le ou avant",Ce=" Veuillez choisir une option ",Se="Chargement du module de paiement...",Ae="Aucun moyen de paiement n'a \xE9t\xE9 ajout\xE9. Veuillez contacter votre administration.",[["expansionPanel",""],o,n,t,_,m,R,L,T,A,f,M,$,Y,X,G,j,q,H,O,U,z,w,J,Z,ee,te,ne,ie,oe,se,ae,re,_e,le,de,ce,pe,ue,me,Ee,Pe,Ce,Se,Ae,[1,"msg-container"],[1,"facture-resume-header"],[1,"margin-top-2"],[3,"isMultipleSession","items","multiSessionRows","subTotal","showFraisService","fraisService","unrequiredTaxes","tps","tvq","total","localisation"],[1,"margin-top-3"],[1,"spacing-divider"],[3,"ngModelChange","ngModel"],[1,"padding-0",3,"border-primary","shadow-primary"],[1,"padding-0"],[1,"padding-total","padding-top-20-imp","mat-radio-details","padding-right-24",3,"value"],[1,"padding-left-30"],[1,"option"],[1,"margin-top-12","not-paid"],[1,"margin-top-12"],[1,"font-size-16","padding-left-45","padding-right-45","versement-retard","margin-bottom-0"],[1,"grise-bg"],[1,"payment-loading-container"],["id","payment-form"],[3,"id"],[1,"icon-alert-triangle","primary-color","on-position"],[1,"facture-resume-content"],[1,"facture-resume-content-item"],[1,"avatar-icon","small","primary"],[1,"icon-map"],[1,"icon-calendar"],[1,"period-details"],["hideToggle","",3,"expanded"],[1,"one-line-details"],[3,"change","value"],[3,"border-primary","shadow-primary"],[3,"value"],[1,"padding-left-30","font-size-16"],[1,"padding-left-30","font-size-14","margin-top-12"],[1,"timeline","padding-left-15"],[1,"timeline-container",3,"background-shadow-primary","timeline-progress","timeline-completed"],[1,"timeline-container"],[1,"content-timeline"],[1,"margin-bottom-0"],[1,"description-versement","not-paid",3,"primary-color-imp"],[1,"description-versement","not-paid"],[1,"versement-color","font-size-14","padding-left-30"],[1,"margin-auto","not-paid","line-height-paragraph"],[1,"description-option","not-paid"],[1,"font-size-16"],[1,"versement-retard","margin-top-10-imp","padding-top-0"],[1,"margin-top-0"],["id","payment-form",1,"margin-top-2"],[1,"padding-form-card",3,"id"],[1,"font-size-14","line-height-paragraph","preserve-line-breaks",3,"innerHtml"],[1,"font-size-14","line-height-paragraph"],[1,"timeline","padding-left-30"],[1,"timeline-container","timeline-progress"],["color","primary","mode","indeterminate",1,"loading-spinner",3,"diameter"],[1,"payment-loading-text"]]},template:function(n,t){1&n&&(e.DNE(0,fe,4,0,"div",45)(1,$e,11,6,"div",46),e.j41(2,"div")(3,"h2"),e.pXf(4,1),e.k0s()(),e.j41(5,"div",47),e.nrm(6,"vplus-resume-commande",48),e.k0s(),e.DNE(7,we,8,3,"div",49),e.j41(8,"div",50),e.DNE(9,Be,2,0,"h2"),e.j41(10,"div")(11,"p")(12,"span"),e.pXf(13,2),e.k0s(),e.EFF(14),e.j41(15,"span"),e.pXf(16,3),e.k0s()(),e.j41(17,"div")(18,"mat-radio-group",51),e.mxI("ngModelChange",function(m){return e.DH7(t.selectedProcedure,m)||(t.selectedProcedure=m),m}),e.bIt("ngModelChange",function(){return t.onProcedureChange()}),e.DNE(19,Je,17,17,"mat-card",52),e.j41(20,"mat-card",53)(21,"mat-radio-button",54)(22,"div",55)(23,"div",56),e.DNE(24,Ze,5,1)(25,et,5,1)(26,tt,2,0)(27,nt,2,0),e.k0s(),e.DNE(28,it,3,3,"div",57)(29,ot,3,0),e.j41(30,"div",58)(31,"span"),e.pXf(32,4),e.k0s()()()(),e.j41(33,"div"),e.nrm(34,"hr"),e.j41(35,"p",59)(36,"span"),e.pXf(37,5),e.k0s(),e.EFF(38),e.nI1(39,"vplusMoment"),e.DNE(40,st,2,0,"span")(41,at,2,0),e.k0s(),e.DNE(42,dt,4,0,"mat-list",60),e.k0s()()()(),e.DNE(43,ct,2,0,"mat-error"),e.k0s(),e.DNE(44,pt,4,1,"div",61),e.j41(45,"div")(46,"div")(47,"form",62),e.nrm(48,"div",63),e.k0s()()(),e.DNE(49,ut,4,0,"div",45),e.k0s()),2&n&&(e.vxM(0,t.isAllowedInscWithRestr?0:-1),e.R7$(),e.vxM(1,t.eventDate||(null==t.installationsBySite?null:t.installationsBySite.length)>0?1:-1),e.R7$(5),e.Y8G("isMultipleSession",t.resumeIsMultiSession)("items",t.resumeItems)("multiSessionRows",t.resumeMultiSessionRows)("subTotal",t.totalsFormatted.subTotal)("showFraisService",!t.isHampstead&&
1!t.isRequiredFraisService)("fraisService",t.totalsFormatted.fraisService)("unrequiredTaxes",t.unrequiredTaxes)("tps",t.totalsFormatted.TPS)("tvq",t.totalsFormatted.TVQ)("total",t.totalsFormatted.total)("localisation",t.localisation),e.R7$(),e.vxM(7,(null==t.optionsVersement?null:t.optionsVersement.length)>0&&t.isConfigVersement&&!t.isSingleVersementDirect&&t.requiredCheckout&&(1!==t.optionsVersement.length||1!==(null==t.optionsVersement[0]||null==t.optionsVersement[0].versements?null:t.optionsVersement[0].versements.length))?7:-1),e.R7$(),e.AVh("hide",!t.optVersement&&!t.isTotalSelected&&(null==t.optionsVersement?null:t.optionsVersement.length)>0&&t.isConfigVersement&&!t.isSingleVersementDirect&&!t.estSectionPaiementVide),e.R7$(),e.vxM(9,t.requiredCheckout?9:-1),e.R7$(),e.AVh("hide",!((null==t.optionsVersement?null:t.optionsVersement.length)>0&&(t.optVersement||t.totals.totalPaye===t.totals.total)&&0!==t.totals.total)),e.R7$(),e.AVh("hide",t.notConnectedToSquare||!!(0===t.totals.totalPaye||t.optVersement&&t.dateVersementSupp)),e.R7$(3),e.SpI(" ",t.totalsFormatted.totalPaye," "),e.R7$(3),e.AVh("hide",!(0===t.totals.totalPaye||t.optVersement&&t.dateVersementSupp)),e.R7$(),e.R50("ngModel",t.selectedProcedure),e.R7$(),e.vxM(19,t.notConnectedToSquare?-1:19),e.R7$(),e.AVh("border-primary",t.selectedProcedure===(null==t.optVersement?null:t.optVersement.id))("shadow-primary",t.selectedProcedure===(null==t.optVersement?null:t.optVersement.id)),e.R7$(),e.Y8G("value",null==t.optVersement?null:t.optVersement.id),e.R7$(3),e.vxM(24,t.isDelaiDefini&&1===(null==t.optVersement||null==t.optVersement.versements?null:t.optVersement.versements.length)?24:t.isDelaiDefini?25:1===(null==t.optVersement||null==t.optVersement.versements?null:t.optVersement.versements.length)?26:27),e.R7$(4),e.vxM(28,t.isDelaiDefini&&t.descriptionModalites?28:t.isDelaiDefini?-1:29),e.R7$(2),e.AVh("padding-bottom-10",t.selectedProcedure!==(null==t.optVersement?null:t.optVersement.id)),e.R7$(3),e.AVh("hide",t.selectedProcedure!==(null==t.optVersement?null:t.optVersement.id)),e.R7$(5),e.SpI("\xa0",e.ii3(39,48,null==t.optVersement||null==t.optVersement.versements||null==t.optVersement.versements[0]?null:t.optVersement.versements[0].date,!1,t.formatDate,null)," "),e.R7$(2),e.vxM(40,1===(null==t.optVersement||null==t.optVersement.versements?null:t.optVersement.versements.length)?40:41),e.R7$(2),e.vxM(42,t.selectedProcedure===(null==t.optVersement?null:t.optVersement.id)?42:-1),e.R7$(),e.vxM(43,t.optionSelected===t.EnumTypeOptions.PartiallyFinished&&t.isTouched&&(null==t.optionsVersement?null:t.optionsVersement.length)>0?43:-1),e.R7$(),e.vxM(44,t.isCardReady||t.notConnectedToSquare?-1:44),e.R7$(),e.AVh("hide",t.notConnectedToSquare||!t.requiredCheckout||!(0===(null==t.optionsVersement?null:t.optionsVersement.length)||!t.isConfigVersement||0!==t.totals.totalPaye&&(!t.optVersement||!t.dateVersementSupp))),e.R7$(2),e.AVh("margin-top-2",0===(null==t.optionsVersement?null:t.optionsVersement.length)&&t.requiredCheckout),e.R7$(),e.Y8G("id","card-container"+t.idCard),e.R7$(),e.vxM(49,t.estSectionPaiementVide?49:-1))},dependencies:[C.GK,C.Z2,p.TL,S.VT,S._g,V.jt,W.RN,K.LG,F.qT,F.BC,F.cb,F.vS,F.cV,N.V,h.Pde,b.x,k.$],styles:[".hide[_ngcontent-%COMP%]{display:none!important}.item-nom[_ngcontent-%COMP%]{font-weight:650}.sub-total-nom[_ngcontent-%COMP%]{font-weight:500}.item-prix[_ngcontent-%COMP%]{font-weight:500;text-align:right;white-space:nowrap}.item-description[_ngcontent-%COMP%]{margin-top:.3rem}.total-nom[_ngcontent-%COMP%]{font-weight:900}.total-prix[_ngcontent-%COMP%]{font-weight:900;text-align:right;white-space:nowrap}.spacing-item[_ngcontent-%COMP%]{padding-top:1.5rem}.spacing-divider[_ngcontent-%COMP%]{padding-top:2rem}.resume-item[_ngcontent-%COMP%]{display:grid;grid-column-gap:50px;grid-template-columns:1fr 95px;justify-content:space-between}@media (max-width: 500px){.resume-item[_ngcontent-%COMP%]{grid-column-gap:10px}}.total-with-rabais[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.grid-template-columns-1fr-180px[_ngcontent-%COMP%]{grid-template-columns:1fr 180px!important}@media (max-width: 500px){.grid-template-columns-1fr-180px[_ngcontent-%COMP%]{grid-template-columns:1fr 140px!important}}.padding-total[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px}.timeline-container.timeline-completed[_ngcontent-%COMP%]:after{background:var(--gray-color);box-shadow:0 0 5px 1px var(--gray-color)}[_nghost-%COMP%]     .mat-mdc-radio-button .mdc-radio{padding-left:15px!important;margin-left:0!important}hr[_ngcontent-%COMP%]{background:var(--gray-color)!important;margin-bottom:0}.versement-retard[_ngcontent-%COMP%]{background-color:#bdbdbd40;margin-top:0;padding-top:10px}.padding-form-card[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.description-versement[_ngcontent-%COMP%]{margin-top:-10px!important}.line-height-paragraph[_ngcontent-%COMP%]{line-height:1.5;margin-bottom:5px!important}[_nghost-%COMP%]     .mat-ripple.mat-radio-ripple.mat-mdc-focus-indicator{display:none}[_nghost-%COMP%]     .mat-mdc-card{background-color:#fff!important}@media (max-width: 600px){.description-versement[_ngcontent-%COMP%]{margin-top:-3px!important;line-height:1.3!important}.description-option[_ngcontent-%COMP%]{line-height:1.3;margin:0!important}}.facture-resume-header[_ngcontent-%COMP%]{background:var(--primary-color-opacity-12);padding:var(--large);border-radius:var(--border-radius-medium);display:flex;flex-direction:column;gap:var(--x-large);margin-bottom:var(--large)}.facture-resume-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0}.facture-resume-header[_ngcontent-%COMP%]   .facture-resume-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--medium)}.facture-resume-header[_ngcontent-%COMP%]   .facture-resume-content[_ngcontent-%COMP%]   .facture-resume-content-item[_ngcontent-%COMP%]{display:flex;gap:var(--medium);font:var(--body-small-regular)}@media (min-width: 960px){.facture-resume-header[_ngcontent-%COMP%]   .facture-resume-content[_ngcontent-%COMP%]   .facture-resume-content-item[_ngcontent-%COMP%]{font:var(--body-default-regular)}}.facture-resume-header[_ngcontent-%COMP%]   .facture-resume-content[_ngcontent-%COMP%]   .facture-resume-content-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;text-decoration:underline;color:#000}.facture-resume-header[_ngcontent-%COMP%]   .facture-resume-content[_ngcontent-%COMP%]   .facture-resume-content-item[_ngcontent-%COMP%]   .one-line-details[_ngcontent-%COMP%]{display:flex;align-items:center}.facture-resume-header[_ngcontent-%COMP%]   .facture-resume-content[_ngcontent-%COMP%]   .facture-resume-content-item[_ngcontent-%COMP%]:nth-child(2){display:flex;align-items:center}.facture-resume-header[_ngcontent-%COMP%]   .facture-resume-content[_ngcontent-%COMP%]   .facture-resume-content-item.multiple-sites[_ngcontent-%COMP%]{align-items:flex-start}.facture-resume-header[_ngcontent-%COMP%]   .facture-resume-content[_ngcontent-%COMP%]   .facture-resume-content-item.multiple-sites[_ngcontent-%COMP%]   .avatar-icon[_ngcontent-%COMP%]{margin-top:6px}.facture-resume-header[_ngcontent-%COMP%]   .facture-resume-content[_ngcontent-%COMP%]   .facture-resume-content-item.multiple-sites[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-of-type{display:flex;flex-direction:column;gap:var(--small)}  .period-details{width:100%}  .period-details .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:transparent}  .period-details .mat-expansion-panel:not([class*=mat-elevation-z]),   .period-details .mat-expansion-panel{display:flex;flex-direction:column;flex-basis:400px;box-shadow:none;background:transparent;gap:var(--small)}  .period-details .mat-expansion-panel:not([class*=mat-elevation-z]) .mat-expansion-panel-header,   .period-details .mat-expansion-panel .mat-expansion-panel-header{display:flex;justify-content:space-between;align-items:center;font:var(--body-small-medium);height:auto;padding:0}@media (min-width: 960px){  .period-details .mat-expansion-panel:not([class*=mat-elevation-z]) .mat-expansion-panel-header,   .period-details .mat-expansion-panel .mat-expansion-panel-header{font:var(--body-default-medium);height:36px}}  .period-details .mat-expansion-panel:not([class*=mat-elevation-z]) .mat-expansion-panel-header>.mat-content,   .period-details .mat-expansion-panel .mat-expansion-panel-header>.mat-content{display:flex;justify-content:space-between;align-items:center;gap:var(--medium)}  .period-details .mat-expansion-panel:not([class*=mat-elevation-z]) .mat-expansion-panel-content .mat-expansion-panel-body,   .period-details .mat-expansion-panel .mat-expansion-panel-content .mat-expansion-panel-body{padding:0;font:var(--body-small-regular)}@media (min-width: 960px){  .period-details .mat-expansion-panel:not([class*=mat-elevation-z]) .mat-expansion-panel-content .mat-expansion-panel-body,   .period-details .mat-expansion-panel .mat-expansion-panel-content .mat-expansion-panel-body{font:var(--body-default-regular)}}  .period-details .mat-expansion-panel:not([class*=mat-elevation-z]) .mat-expansion-panel-content .mat-expansion-panel-body>div,   .period-details .mat-expansion-panel .mat-expansion-panel-content .mat-expansion-panel-body>div{display:block}  .period-details .mat-expansion-panel:not([class*=mat-elevation-z]) .mat-expansion-panel-content .mat-expansion-panel-body>div>div,   .period-details .mat-expansion-panel .mat-expansion-panel-content .mat-expansion-panel-body>div>div{display:flex;justify-content:space-between;padding:var(--small) 0}  .period-details .mat-expansion-panel:not([class*=mat-elevation-z]) .mat-expansion-panel-content .mat-expansion-panel-body>div>div:not(:last-child),   .period-details .mat-expansion-panel .mat-expansion-panel-content .mat-expansion-panel-body>div>div:not(:last-child){border-bottom:1px solid var(--black-opacity-12)}"]}),l})()}}]);

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.