PageSourceSearch

https://grandremous.ca/1055.807914e020372d3c.js

js grandremous.ca collected 2026-10-02 20:51:25 UTC 16,312 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpc=self.webpackChunkpc||[]).push([[1055],{94212:(X,f,o)=>{o.d(f,{Z:()=>S});var C=o(97586),m=o.n(C),u=o(51188),D=o(35052),e=o(37084),d=o(54438),T=o(92995),O=o(53387),M=o(98377),R=o(67376),v=o(59191);let S=(()=>{var h;class E{constructor(){var a;this.router=(0,d.WQX)(u.Ix),this.appConfig=(0,d.WQX)(D.o),this.route=(0,d.WQX)(u.nX),this.appMetaTags=(0,d.WQX)(e.W),this.localisationService=(0,d.WQX)(M.A),this.inParticipationCitoyenne=!1,this.timezone=m().tz.guess(),this.sondageModule=this.appConfig.appConfig.moduleName.sondage,this.isLocalisationFr=this.localisationService.getCurrentLocalisation()===T.fi.FR,this.isPreview=null!==(a=this.route.snapshot.data.preview)&&void 0!==a&&a,this.allowConnection=this.appConfig.appConfig.allowConnection,this.readOnly=!1,this.config=this.appConfig.appConfig}ngOnInit(){this.allowMultipleAnswers=this.sondage.limitationCode===O.si.Multiple,this.readOnly=this.sondage.readOnly&&!this.allowMultipleAnswers,this.changeMetaTags()}getAspectRatio(a){this.imgRatio=a}changeMetaTags(){var a,P,g,G;this.appMetaTags.updateMetaTags(null===(a=this.sondage)||void 0===a?void 0:a.titre,null===(P=this.sondage)||void 0===P?void 0:P.article.extrait,null===(g=this.sondage)||void 0===g||null===(g=g.article.image)||void 0===g?void 0:g.url,null===(G=this.sondage)||void 0===G?void 0:G.article.imageAltText)}commencerSondage(){const a=(0,R.pick)(this.route.snapshot.queryParams,["invite","ref"]);this.allowConnection||(a.invite=1),this.router.navigate(["../"],{relativeTo:this.route,queryParams:a})}}return(h=E).\u0275fac=function(a){return new(a||h)},h.\u0275cmp=d.VBU({type:h,selectors:[["vplus-sondage-introduction"]],inputs:{sondage:"sondage",inParticipationCitoyenne:"inParticipationCitoyenne"},decls:1,vars:5,consts:[[3,"article","inParticipationCitoyenne","isPreview","readOnly","articleType"]],template:function(a,P){1&a&&d.nrm(0,"vplus-article",0),2&a&&d.Y8G("article",P.sondage)("inParticipationCitoyenne",P.inParticipationCitoyenne)("isPreview",P.isPreview)("readOnly",P.readOnly)("articleType","sondage")},dependencies:[v.o],encapsulation:2}),E})()},12918:(X,f,o)=>{o.d(f,{p:()=>Te});var C=o(49823),m=o(24363),u=o(51188),D=o(2027),e=o(54438),d=o(35052),T=o(7673),O=o(28793),M=o(27468),R=o(63771),c=o(66345),v=o(64075),S=o(63030),h=o(53387),E=o(89417),I=o(26927),a=o(81018),P=o(21016),g=o(52722),G=o(9310),B=o(40167),x=o(96697),w=o(64058),q=o(88141),ee=o(25558),y=o(89079),b=o(67376),oe=(o(95390),o(59042)),W=o(32102),ne=o(82765),te=o(88834),_e=o(75574),se=o(32430),j=o(88974),ie=o(60177),ae=o(51827);const re=["stepper"],le=["froalaContainer"];function de(s,l){1&s&&(e.j41(0,"span"),e.pXf(1,0),e.k0s())}function Ee(s,l){1&s&&(e.j41(0,"p")(1,"mat-checkbox",29),e.pXf(2,2),e.k0s()())}function Se(s,l){1&s&&(e.j41(0,"mat-error"),e.pXf(1,8),e.k0s())}function Oe(s,l){1&s&&(e.j41(0,"mat-error"),e.pXf(1,9),e.k0s())}function Ce(s,l){1&s&&(e.j41(0,"mat-error"),e.pXf(1,10),e.k0s())}function ue(s,l){1&s&&(e.j41(0,"mat-error"),e.pXf(1,11),e.k0s())}function ce(s,l){if(1&s&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,7),e.k0s(),e.nrm(3,"input",33),e.DNE(4,Se,2,0,"mat-error")(5,Oe,2,0,"mat-error")(6,Ce,2,0,"mat-error")(7,ue,2,0,"mat-error"),e.k0s()),2&s){const _=e.XpG(3);e.R7$(3),e.Y8G("required",_.isDrummondville)("required",_.sondage.configCitoyenInvite.isInviteCitoyenHasAddressRequired),e.R7$(),e.vxM(4,_.citoyenSansCompteForm.controls.courriel.hasError("required")?4:-1),e.R7$(),e.vxM(5,_.citoyenSansCompteForm.controls.courriel.hasError("invalidEmail")?5:-1),e.R7$(),e.vxM(6,_.citoyenSansCompteForm.controls.courriel.hasError("courrielUtilise")?6:-1),e.R7$(),e.vxM(7,!_.citoyenSansCompteForm.controls.courriel.hasError("courrielUtilise")&&_.citoyenSansCompteForm.controls.courriel.hasError("sondageRepondu")?7:-1)}}function Pe(s,l){1&s&&(e.j41(0,"mat-error"),e.pXf(1,13),e.k0s())}function pe(s,l){1&s&&(e.j41(0,"mat-error"),e.pXf(1,14),e.k0s())}function me(s,l){if(1&s&&(e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,12),e.k0s(),e.nrm(3,"input",34),e.DNE(4,Pe,2,0,"mat-error")(5,pe,2,0,"mat-error"),e.k0s()),2&s){const _=e.XpG(3);e.R7$(3),e.Y8G("required",_.isDrummondville||_.sondage.configCitoyenInvite.isInviteCitoyenHasPhoneRequired)("imask",_.appConfig.appConfig.telMaskObjet)("unmask",!0),e.R7$(),e.vxM(4,_.citoyenSansCompteForm.controls.telephone.hasError("required")?4:-1),e.R7$(),e.vxM(5,null!=_.citoyenSansCompteForm.controls.telephone.errors&&_.citoyenSansCompteForm.controls.telephone.errors.pattern?5:-1)}}function Me(s,l){if(1&s&&(e.j41(0,"div",30)(1,"mat-form-field")(2,"mat-label"),e.pXf(3,3),e.k0s(),e.nrm(4,"input",31),e.j41(5,"mat-error"),e.pXf(6,4),e.k0s()(),e.j41(7,"mat-form-field")(8,"mat-label"),e.pXf(9,5),e.k0s(),e.nrm(10,"input",32),e.j41(11,"mat-error"),e.pXf(12,6),e.k0s()()(),e.j41(13,"div",30),e.DNE(14,ce,8,6,"mat-form-field")(15,me,6,5,"mat-form-field"),e.k0s()),2&s){const _=e.XpG(2);e.R7$(14),e.vxM(14,_.sondage.configCitoyenInvite.isInviteCitoyenHasAddress?14:-1),e.R7$(),e.vxM(15,_.sondage.configCitoyenInvite.isInviteCitoyenHasPhone?15:-1)}}function ge(s,l){if(1&s){const _=e.RV6();e.j41(0,"div",23)(1,"h3"),e.EFF(2,"Identification"),e.k0s(),e.j41(3,"form",26),e.nI1(4,"async"),e.DNE(
15,Ee,3,0,"p")(6,Me,16,2),e.k0s(),e.j41(7,"div",27)(8,"button",28),e.bIt("click",function(){e.eBV(_);const t=e.XpG();return e.Njj(t.submitInviteForm())}),e.pXf(9,1),e.k0s()()()}if(2&s){const _=e.XpG();e.R7$(3),e.Y8G("formGroup",_.citoyenSansCompteForm)("vplusSyncStore",e.bMT(4,5,_.citoyenSansCompte$))("vplusSyncAction",_.citoyenSansCompteStoreAction),e.R7$(2),e.vxM(5,_.allowAnonyme?5:-1),e.R7$(),e.vxM(6,_.hideCitoyenSansCompteForm?-1:6)}}function Ae(s,l){1&s&&(e.j41(0,"div",35),e.pXf(1,15),e.k0s())}function Ne(s,l){1&s&&(e.j41(0,"div",35),e.pXf(1,16),e.k0s())}function fe(s,l){if(1&s){const _=e.RV6();e.j41(0,"div"),e.DNE(1,Ae,2,0,"div",35)(2,Ne,2,0,"div",35),e.j41(3,"vplus-surveyjs-sondage",36),e.bIt("submitSurvey",function(t){e.eBV(_);const i=e.XpG();return e.Njj(i.sendData(t))})("externalBack",function(){e.eBV(_);const t=e.XpG();return e.Njj(t.externalBack())}),e.k0s()()}if(2&s){const _=e.XpG();e.AVh("mode-readonly",_.readOnly),e.R7$(),e.vxM(1,_.readOnly&&!_.sondage.estExpire?1:-1),e.R7$(),e.vxM(2,_.sondage.estExpire?2:-1),e.R7$(),e.Y8G("json",_.sondage.json)("reponses",_.sondage.reponses)("readOnly",_.readOnly)("sondageId",_.sondage.id)}}function De(s,l){if(1&s&&(e.j41(0,"div",25),e.nrm(1,"i",37),e.j41(2,"h3"),e.pXf(3,17),e.k0s(),e.j41(4,"p"),e.pXf(5,18),e.k0s(),e.j41(6,"ion-button",38),e.pXf(7,19),e.k0s()()),2&s){const _=e.XpG();e.R7$(6),e.Y8G("routerLink",_.participationId?"../../":"/")}}let Te=(()=>{var s;class l{constructor(){var n;this.fb=(0,e.WQX)(E.ok),this.asyncCourrielValidators=(0,e.WQX)(c.H),this.asyncCourrielPourSondageValidators=(0,e.WQX)(R.Y),this.router=(0,e.WQX)(u.Ix),this.route=(0,e.WQX)(u.nX),this.store=(0,e.WQX)(G.il),this.appConfig=(0,e.WQX)(d.o),this.sondageService=(0,e.WQX)(g.n),this.adresseResidenceStorageService=(0,e.WQX)(D.Q),this.destroyRef=(0,e.WQX)(e.abz),this.observer=null,this.platform=(0,e.WQX)(a.OD),this.ionContent=null,this.participationId=null,this.context="1"===this.route.snapshot.queryParams.invite?S.W.SansCompte:S.W.AvecCompte,this.citoyenSansCompte$=this.store.select(m.yF),this.citoyenSansCompteStoreAction=m.En.setCurrentCitoyenSansCompte,this.completedStepFormArray=[],this.numPostePattern="^[0-9]{0,5}$",this.enumStepSondage=S.t,this.enumContextSondage=S.W,this.selectedIndex=0,this.surveyLock=!1,this.readOnly=!1,this.allowAnonyme=!1,this.isPreview=null!==(n=this.route.snapshot.data.preview)&&void 0!==n&&n,this.isDrummondville="drummondville"===this.appConfig.appConfig.appNom,this.term=this.route.snapshot.queryParamMap.get("term")}ngOnInit(){this.adresseResidenceStorageService.removeAddress(),this.isMobile=this.platform.is("mobileweb")||this.platform.is("ios")||this.platform.is("android"),this.allowMultipleAnswers=this.sondage.limitationCode===h.si.Multiple,this.allowAnonyme=this.sondage.allowAnonyme,this.readOnly=this.sondage.readOnly&&!this.allowMultipleAnswers||this.sondage.estExpire,this.context===S.W.SansCompte?(this.store.select(C.selectPreviousLocation).pipe((0,x.s)(1),(0,y.pQ)(this.destroyRef)).subscribe(n=>{!n&&(0,P.a)(this.sondage)&&this.router.navigate(["connexion"],{relativeTo:this.route})}),this.initCitoyenSansCompteForm(),this.sondage.allowAnonyme&&!this.sondage.allowInvite?(this.citoyenSansCompteForm.get("isAnonyme").patchValue(!0),this.currentStep=S.t.Questions,this.surveyLock=!0):this.currentStep=S.t.CreationCompte):(this.currentStep=S.t.Questions,this.surveyLock=!0),this.store.select(C.selectCurrentUser).pipe((0,x.s)(1),(0,y.pQ)(this.destroyRef)).subscribe(n=>{this.currentUser=n;const t=null==n?void 0:n.adresses[0];null!=t&&t.adresse&&this.adresseResidenceStorageService.updateAddress(t.adresse,t.adresseProvenanceId)})}ngOnChanges(n){var t;n.sondage&&this.sondage&&null!==(t=this.term)&&void 0!==t&&t.trim()&&(this.sondage.titre=(0,I.g)(this.sondage.titre,this.term))}manageKeyboardOffset(n){["text","textarea","tel","email"].includes(n.target.type)||n.stopPropagation()}initCitoyenSansCompteForm(){this.citoyenSansCompteForm=this.fb.group({perId:null,nom:[null,E.k0.required],prenom:[null,E.k0.required],courriel:["",(0,v.Bjz)(),[this.asyncCourrielValidators.validateCourriel()]],telephone:["",[E.k0.pattern(this.appConfig.appConfig.telPattern)]],numPoste:[{value:null,disabled:!1},E.k0.pattern(this.numPostePattern)],langCom:null,adresse:null,isAnonyme:!1}),this.isDrummondville&&(this.citoyenSansCompteForm.removeControl("telephone"),this.citoyenSansCompteForm.get("courriel").setValidators([(0,v.Bjz)(),E.k0.required])),this.allowMultipleAnswers||this.citoyenSansCompteForm.get("courriel").setAsyncValidators([this.asyncCourrielValidators.validateCourriel(),this.asyncCourrielPourSondageValidators.validateCourriel(this.sondage.id)]),this.citoyenSansCompteForm.controls.isAnonyme.valueChanges.pipe((0,y.pQ)(this.destroyRef)).subscribe(n=>{this.hideCitoyenSansCompteForm=n}),this.citoyenSansCompteForm.controls.adresse.valueChanges.pipe((0,y.pQ)(this.destroyRef)).subscribe(n=>{n&&this.adresseResidenceStorageService.updateAddress(n)})}submitInviteForm(){!this.citoyenSansCompteForm.value.isAnonyme&&(this.citoyenSansCompteForm.get("nom").markAsTouched(),this.citoyenSansCompteForm.get("prenom").markAsTouched(),this.citoyenSansCompteForm.get("courriel").markAsTouched(),this.citoyenSansCompteForm.get("telephone").markAsTouched(),!this.citoyenSansCompteForm.valid)||(this.currentStep=S.t.Questions,this.surveyLock=!0)}sendData(n){this.sondage.reponses=n,this.submit()}submit(){var n;if(this.insertDataInStorage(),this.isPreview)return this.currentStep=S.t.Fin,void(null===(n=this.ionContent)||void 0===n||n.scrollToTop());const t=[],i=[],p=[];(0===t.length?(0,T.of)([]):(0,b.uniq)(p).length<p.length?(0,O.x)(...t).pipe((0,w.$)()):(0,M.p)(t)).pipe((0,q.M)(A=>
1{i.forEach((N,$)=>{N.content=A[$].key})}),(0,ee.n)(()=>this.sondageService.saveReponses(this.sondage.id,this.sondage.reponses,this.context===this.enumContextSondage.AvecCompte?null:this.citoyenSansCompteForm.value.isAnonyme?{isAnonyme:!0}:this.citoyenSansCompteForm.value,this.route.snapshot.queryParams.ref,this.participationId)),(0,y.pQ)(this.destroyRef)).subscribe({next:()=>{var A;this.currentStep=S.t.Fin,null===(A=this.ionContent)||void 0===A||A.scrollToTop();const N=document.querySelector(".participation");null==N||N.scrollToTop()},error:()=>{this.store.dispatch(new C.Actions.ShowSnackBar("Une erreur est survenue, veuillez r\xE9essayer.",C.EnumSnackBarType.Echec))}})}insertDataInStorage(){let n=JSON.parse(localStorage.getItem("sondageRepondu"));n=n||[],n.push(this.sondage.id),localStorage.setItem("sondageRepondu",JSON.stringify(n));let t=JSON.parse(sessionStorage.getItem("sondageRepondu"));t=t||[],t.push(this.sondage.id),sessionStorage.setItem("sondageRepondu",JSON.stringify(t))}externalBack(){this.context===S.W.SansCompte&&this.sondage.allowInvite?this.currentStep=S.t.CreationCompte:this.router.navigate(["introduction"],{relativeTo:this.route})}ngAfterViewChecked(){this.positionAuto()}positionAuto(){const n=document.querySelector(".autocomplete");if(n){const t=document.activeElement,i=t.getBoundingClientRect(),p=window.scrollY,L=window.scrollX;n.style.top=this.isMobile?i.top+25+p+"px":i.top-105+p+"px",n.style.left=i.left+L+"px",t.addEventListener("blur",()=>{n.remove()})}}ngOnDestroy(){this.store.dispatch(m.En.resetCurrentCitoyenSansCompte())}}return(s=l).\u0275fac=function(n){return new(n||s)},s.\u0275cmp=e.VBU({type:s,selectors:[["vplus-sondage"]],viewQuery:function(n,t){if(1&n&&(e.GBs(re,5),e.GBs(le,5),e.GBs(B.P,5)),2&n){let i;e.mGM(i=e.lsd())&&(t.stepper=i.first),e.mGM(i=e.lsd())&&(t.froalaContainer=i.first),e.mGM(i=e.lsd())&&(t.singlePageSurveysRef=i)}},inputs:{sondage:"sondage",ionContent:"ionContent",participationId:"participationId"},features:[e.OA$],decls:9,vars:11,consts:()=>{let _,n,t,i,p,L,A,N,$,U,K,F,z,V,Q,k,Y,H,J,Z;return _="En mode aper\xE7u, les r\xE9ponses soumises ne sont pas enregistr\xE9es",n="Suivant",t="Je d\xE9sire demeurer anonyme",i="Pr\xE9nom",p=" Champ obligatoire ",L="Nom",A=" Champ obligatoire ",N="Courriel",$=" Champ obligatoire ",U=" Courriel non valide ",K=" Adresse courriel d\xE9j\xE0 utilis\xE9e par un compte citoyen ",F=" Vous avez d\xE9j\xE0 r\xE9pondu \xE0 ce sondage ",z="T\xE9l\xE9phone",V=" Champ obligatoire ",Q=" T\xE9l\xE9phone non valide ",k=" Vous avez d\xE9j\xE0 compl\xE9t\xE9 ce formulaire. ",Y=" Ce formulaire est expir\xE9. ",H="Merci d'avoir r\xE9pondu au formulaire",J="Vos r\xE9ponses ont bien \xE9t\xE9 transmises.",Z=" Retour \xE0 l'accueil ",[_,n,t,i,p,L,A,N,$,U,K,F,z,V,Q,k,Y,H,J,Z,[1,"requete-title","title-part"],[3,"innerHTML"],[1,"article-content","max-720","conteneur-mobile",3,"focusin"],[1,"padding-bottom-36","padding-top-mobile"],[3,"mode-readonly",4,"loadLockIf"],["id","survey-end-screen",1,"survey-submitted"],[3,"formGroup","vplusSyncStore","vplusSyncAction"],[1,"flex-end"],["mat-raised-button","",1,"custom-button-full","custom-button-standard",3,"click"],["formControlName","isAnonyme"],[1,"form-field-inline-section"],["required","","matInput","","type","text","formControlName","prenom"],["required","","matInput","","type","text","formControlName","nom"],["matInput","","type","email","formControlName","courriel",3,"required"],["matInput","","type","tel","formControlName","telephone",3,"required","imask","unmask"],[1,"sondage-avertissement-readonly"],[3,"submitSurvey","externalBack","json","reponses","readOnly","sondageId"],[1,"icon-formulaire-primeur"],["expand","false",1,"ion-custom-button-standard","ion-custom-button-full",3,"routerLink"]]},template:function(n,t){1&n&&(e.j41(0,"div")(1,"div",20),e.nrm(2,"h3",21),e.nI1(3,"safeHtml"),e.DNE(4,de,2,0,"span"),e.k0s(),e.j41(5,"div",22),e.bIt("focusin",function(p){return t.manageKeyboardOffset(p)}),e.DNE(6,ge,10,7,"div",23)(7,fe,4,8,"div",24)(8,De,8,1,"div",25),e.k0s()()),2&n&&(e.R7$(),e.AVh("preview-warning-toolbar",t.isPreview&&!t.participationId)("in-participation",t.participationId),e.R7$(),e.Y8G("innerHTML",e.bMT(3,9,t.sondage.titre),e.npT),e.R7$(2),e.vxM(4,t.isPreview&&!t.participationId?4:-1),e.R7$(2),e.vxM(6,t.currentStep===t.enumStepSondage.CreationCompte?6:-1),e.R7$(),e.Y8G("loadLockIf",t.currentStep===t.enumStepSondage.Questions),e.R7$(),e.vxM(8,t.currentStep===t.enumStepSondage.Fin?8:-1))},dependencies:[u.Wk,oe.fg,W.rl,W.nJ,W.TL,ne.So,te.$z,E.qT,E.me,E.BC,E.cb,E.YS,E.j4,E.JD,_e.Q,v.oM4,se.Zq,j.Jm,j.N7,B.P,ie.Jj,ae.$n],encapsulation:2}),l})()},21214:(X,f,o)=>{o.d(f,{C:()=>D});var C=o(54438),m=o(77339),u=o(9310);let D=(()=>{var e;class d{constructor(O,M){this.actions$=O,this.store=M}}return(e=d).\u0275fac=function(O){return new(O||e)(C.KVO(m.En),C.KVO(u.il))},e.\u0275prov=C.jDH({token:e,factory:e.\u0275fac}),d})()},24339:(X,f,o)=>{o.d(f,{b:()=>T});var C=o(7673),m=o(1807),u=o(25558),D=o(96354),e=o(17446),d=o(54438);let T=(()=>{var O;class M{constructor(c){this.utilisateurService=c}validateAdresse(){return c=>""===c.value||null===c.value?(0,C.of)(null):(0,m.O)(300).pipe((0,u.n)(()=>this.utilisateurService.validateAdresse(c.value).pipe((0,D.T)(v=>!0===v.invalidAddress?{invalidAddress:!0}:null))))}}return(O=M).\u0275fac=function(c){return new(c||O)(d.KVO(e.$))},O.\u0275prov=d.jDH({token:O,factory:O.\u0275fac}),M})()}}]);

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.