{"version":3,"sources":["webpack:///./src/views/Accueil.vue?e787","webpack:///./src/views/Accueil.vue?4791","webpack:///./src/views/Accueil.vue?4995","webpack:///./src/views/Accueil.vue?0341","webpack:///./src/views/Accueil.vue"],"names":["i","chargementEnCours","afficherBoutonLouerCasier","enMaintenance","messageAuxUtilisateurs","enApprobation","utilisateurEstAdmin","hints","this","arrIDULAdmin","columns","id","title","dataProp","rows","Array","username","t","$msal","data","user","userName","indexOf","toLowerCase","store","dispatch","cds","actions","recupererLocations","name","vm","idUtilisateur","query","profile","formatterLocations","e","commit","mutations","recupererLocationsEchec","applicatif","modifierMessageErreur","state","messageErreurParDefaut","recupererPeriodes","typePeriodeId","recupererPeriodesEchec","utilisateur","recupererLocationsUtilisateurEchec","location","locations","debut","periode","dateDebut","format","fin","dateFin","pavillon","nomPavillon","niveau","nomNiveau","casier","numero","push","effacerStateUtilisateur","initialiserDebutCreationLocation","route","trainProgression","debuterLocation","router","nouvelleLocation","message","nomPeriode","aujourdhuiUTC","Date","aujourdhui","getTime","getTimezoneOffset","setHours","periodes","filter","parse","length","components","MMessage","MLink","MSpinner","MErrorResourceUnavailable","component","_vm","_h","$createElement","_c","_self","staticStyle","attrs","staticClass","_v","_s","detailsNouvelleLocation","_e","locationPossible","on","$event","preventDefault","debuterProcessusLocationCasier","_l","index","key","class","staticRenderFns"],"mappings":"mGAAA,MAAAA,EAAA,QAAAA,EAAA,KAAilB,G,kECAjlB,I,6FCwIA,IAAqB,EAArB,cAAqC,MAArC,c,oBACU,KAAAC,qBACA,KAAAC,6BAEA,KAAAC,iBAEA,KAAAC,uBACN,gJACM,KAAAC,iBAEA,KAAAC,uBAEA,KAAAC,MAAkB,CAACC,KAAKJ,wBAExB,KAAAK,aAA8B,CACpC,qBACA,qBACA,kBACA,oBACA,oBACA,qBACA,mBACA,mBAGM,KAAAC,QAAU,CAChB,CAAEC,GAAI,WAAYC,MAAO,WAAYC,SAAU,YAC/C,CAAEF,GAAI,SAAUC,MAAO,SAAUC,S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AAIS,GAAGjD,EAASU,WAAWiC,EAAG,MAAM,CAACI,YAAY,2BAA2B,CAACP,EAAIQ,GAAGR,EAAIS,GAAGjD,EAASY,WAAW+B,EAAG,MAAM,CAACI,YAAY,0BAA0B,CAACP,EAAIQ,GAAGR,EAAIS,GAAGjD,EAASE,UAAUyC,EAAG,MAAM,CAACI,YAAY,wBAAwB,CAACP,EAAIQ,GAAGR,EAAIS,GAAGjD,EAASM,cAAa,OACzZ,IGOpBuD,EAEA,KACA,WACA,MAIa,UAAAtB,E","file":"js/accueil.3111f38b.js","sourcesContent":["import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Accueil.vue?vue&type=style&index=0&id=6f2d275e&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Accueil.vue?vue&type=style&index=0&id=6f2d275e&scoped=true&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.chargementEnCours)?_c('m-spinner',{staticStyle:{\"margin-top\":\"25px\"},attrs:{\"description-message\":\"Chargement en cours...\",\"processing\":false,\"skin\":\"dark\",\"size\":\"large\"}}):_c('div',{attrs:{\"id\":\"accueil\"}},[(_vm.enMaintenance || (_vm.enApprobation && !_vm.utilisateurEstAdmin))?_c('div',[_c('m-error-resource-unavailable',{staticClass:\"m-u--padding\",attrs:{\"title\":\"Fermeture temporaire\",\"links\":[],\"hints\":_vm.hints}})],1):_c('div',[(_vm.detailsNouvelleLocation)?_c('m-message',{attrs:{\"state\":\"confirmation\"}},[_c('p',{staticClass:\"titre-confirmation-location\"},[_vm._v(\"Location complétée\")]),_c('p',{staticClass:\"details-confirmation-location\"},[_vm._v(\" \"+_vm._s(_vm.detailsNouvelleLocation)+\" \")]),_vm._v(\" Référez-vous au courriel de confirmation envoyé pour tous les détails. Consultez la rubrique \"),_c('i',[_vm._v(\"Aide\")]),_vm._v(\" au besoin. \")]):_vm._e(),(!_vm.locationPossible)?_c('m-message',{attrs:{\"state\":\"error\",\"title\":\"Locations impossibles\"}},[_vm._v(\" Les locations ne sont pas possibles pour l'instant. Veuillez revenir à la date indiquée par le Service des immeubles. \")]):_vm._e(),_c('div',{staticClass:\"liste-locations liste-locations__titre\"},[_c('div',{staticClass:\"liste-locations__titre__libelle\"},[_c('h3',{staticClass:\"m-u--h3\"},[_vm._v(\"Mes locations\")])]),(_vm.locationPossible)?_c('div',{staticClass:\"liste-locations__titre__bouton\"},[_c('m-link',{attrs:{\"icon\":\"true\",\"icon-name\":\"add-circle-filled\",\"icon-size\":\"32px\",\"mode\":\"link\"},on:{\"click\":function($event){$event.preventDefault();return _vm.debuterProcessusLocationCasier()}}},[_vm._v(\" Louer un casier \")])],1):_vm._e()]),_c('div',{staticClass:\"liste-locations liste-locations__entete\"},[_c('div',{staticClass:\"liste-locations__pavillon\"},[_vm._v(\"Pavillon\")]),_c('div',{staticClass:\"liste-locations__niveau\"},[_vm._v(\"Niveau\")]),_c('div',{staticClass:\"liste-locations__casier\"},[_vm._v(\"Casier\")]),_c('div',{staticClass:\"liste-locations__debut\"},[_vm._v(\"Date de début\")]),_c('div',{staticClass:\"liste-locations__fin\"},[_vm._v(\"Date de fin\")])]),(_vm.rows.length === 0)?_c('div',{staticClass:\"liste-locations liste-locations__aucune_donnee\"},[_c('div',{staticClass:\"liste-locations__aucune_donnee__cellule liste-locations__ligne-paire\"},[_c('svg',{staticClass:\"m-svg\",attrs:{\"data-v-4e3bf404\":\"\",\"width\":\"50px\",\"height\":\"50px\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"-1 -1 26 26\",\"data-svg-id\":\"m-svg__lock\",\"aria-hidden\":\"true\"}},[_c('g',{attrs:{\"fill\":\"none\",\"stroke\":\"currentColor\",\"stroke-width\":\"1\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",\"stroke-miterlimit\":\"10\"}},[_c('rect',{attrs:{\"x\":\"3\",\"y\":\"9.2\",\"width\":\"18.1\",\"height\":\"14.3\"}}),_c('path',{attrs:{\"d\":\" M6.2,9.2V6.3c0-3.2,2.6-5.8,5.8-5.8s5.8,2.6,5.8,5.8v2.8\"}}),_c('path',{attrs:{\"d\":\" M13.5,14.5c0-0.8-0.7-1.5-1.5-1.5s-1.5,0.7-1.5,1.5c0,0.4,0.2,0.8,0.5,1.1l-0.3,4h2.7l-0.3-4C13.3,15.3,13.5,14.9,13.5,14.5z\"}})])]),_c('div',[_vm._v(\"Aucune location à afficher\")])])]):_vm._e(),_vm._l((_vm.rows),function(location,index){return _c('div',{key:index,staticClass:\"liste-locations\",class:{\n 'liste-locations__ligne-paire': index % 2,\n 'liste-locations__ligne-impaire': !(index % 2),\n }},[_c('div',{staticClass:\"liste-locations__pavillon\"},[_vm._v(_vm._s(location.pavillon))]),_c('div',{staticClass:\"liste-locations__niveau\"},[_vm._v(_vm._s(location.niveau))]),_c('div',{staticClass:\"liste-locations__casier\"},[_vm._v(_vm._s(location.casier))]),_c('div',{staticClass:\"liste-locations__debut\"},[_vm._v(_vm._s(location.debut))]),_c('div',{staticClass:\"liste-locations__fin\"},[_vm._v(_vm._s(location.fin))])])})],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport moment from \"moment\";\nimport store, { modules } from \"../store\";\nimport router from \"../router\";\nimport { Location } from \"../models/Location\";\nimport {\n MMessage,\n MLink,\n MSpinner,\n MErrorResourceUnavailable,\n} from \"@ulaval/modul-components\";\n\n@Component({\n components: { MMessage, MLink, MSpinner, MErrorResourceUnavailable },\n})\nexport default class Accueil extends Vue {\n private chargementEnCours: boolean = true;\n private afficherBoutonLouerCasier: boolean = true;\n\n private enMaintenance: boolean =\n process.env.VUE_APP_EN_MAINTENANCE === \"true\";\n private messageAuxUtilisateurs: string =\n process.env.VUE_APP_MESSAGE_AUX_UTILISATEURS || \"\";\n private enApprobation: boolean =\n process.env.VUE_APP_EN_APPROBATION === \"true\";\n private utilisateurEstAdmin: boolean = false;\n\n private hints: [string] = [this.messageAuxUtilisateurs];\n\n private arrIDULAdmin: Array = [\n \"jober160@ulaval.ca\",\n \"nades157@ulaval.ca\",\n \"fxpaq@ulaval.ca\",\n \"loemo21@ulaval.ca\",\n \"mcleg11@ulaval.ca\",\n \"maber833@ulaval.ca\",\n \"fados1@ulaval.ca\",\n \"cstss@ulaval.ca\",\n ];\n\n private columns = [\n { id: \"pavillon\", title: \"Pavillon\", dataProp: \"pavillon\" },\n { id: \"niveau\", title: \"Niveau\", dataProp: \"niveau\" },\n { id: \"casier\", title: \"No. Casier\", dataProp: \"casier\" },\n { id: \"debutLocation\", title: \"Début location\", dataProp: \"debutLocation\" },\n { id: \"finLocation\", title: \"Fin location\", dataProp: \"finLocation\" },\n ];\n private rows = new Array<{\n pavillon: string;\n niveau: string;\n casier: string;\n debut: string;\n fin: string;\n }>();\n\n protected async mounted(): Promise {\n // Vérification de la présence du compte dans la liste des admins\n let username = this.$msal.data.user?.userName || \"\";\n if (this.arrIDULAdmin.indexOf(username.toLowerCase()) > -1) {\n // Annulation de l'état \"approbation\", pour permettre aux admins d'accéder à l'application\n this.utilisateurEstAdmin = true;\n }\n\n try {\n await store.dispatch(modules.cds.actions.recupererLocations.name, {\n vm: this,\n idUtilisateur: this.$msal.data.query.profile?.id || \"\",\n });\n\n this.formatterLocations();\n } catch (e) {\n store.commit(modules.cds.mutations.recupererLocationsEchec.name);\n\n store.commit(\n modules.applicatif.mutations.modifierMessageErreur.name,\n store.state.applicatif.messageErreurParDefaut\n );\n }\n\n // Vérification de la présence d'au moins une période active\n try {\n await store.dispatch(modules.cds.actions.recupererPeriodes.name, {\n typePeriodeId: null,\n vm: this,\n });\n } catch (e) {\n store.commit(modules.cds.mutations.recupererPeriodesEchec.name);\n store.commit(\n modules.utilisateur.mutations.recupererLocationsUtilisateurEchec.name\n );\n\n store.commit(\n modules.applicatif.mutations.modifierMessageErreur.name,\n store.state.applicatif.messageErreurParDefaut\n );\n }\n\n this.chargementEnCours = false;\n }\n\n private formatterLocations(): void {\n for (const location of this.locations) {\n const debut = moment(location.periode.dateDebut).format(\"YYYY-MM-DD\");\n const fin = moment(location.periode.dateFin).format(\"YYYY-MM-DD\");\n const pavillon = location.pavillon.nomPavillon;\n const niveau = location.niveau.nomNiveau;\n const casier = location.casier.numero;\n\n this.rows.push({ pavillon, niveau, casier, debut, fin });\n }\n }\n\n private async debuterProcessusLocationCasier(): Promise {\n store.commit(modules.utilisateur.mutations.effacerStateUtilisateur.name);\n store.commit(\n modules.utilisateur.mutations.initialiserDebutCreationLocation.name\n );\n const route: string = await store.dispatch(\n modules.trainProgression.actions.debuterLocation.name\n );\n\n router.push({ name: route });\n }\n\n get locations(): Location[] {\n return store.state.cds.locations;\n }\n\n get detailsNouvelleLocation(): string {\n const nouvelleLocation = store.state.utilisateur.nouvelleLocation;\n if (nouvelleLocation !== null) {\n const message = `La location du casier ${nouvelleLocation.casier.numero} est confirmée pour la session ${nouvelleLocation.periode.nomPeriode}.`;\n\n // Une fois le message de succès affiché, on efface le state de l'utilisateur\n store.commit(modules.utilisateur.mutations.effacerStateUtilisateur.name);\n\n return message;\n } else {\n return \"\";\n }\n }\n\n get locationPossible(): boolean {\n const aujourdhuiUTC = new Date();\n const aujourdhui = new Date(\n aujourdhuiUTC.getTime() - aujourdhuiUTC.getTimezoneOffset() * 60000\n );\n aujourdhui.setHours(0, 0, 0, 0);\n\n const periodesActives = store.state.cds.periodes.filter((periode) => {\n return (\n new Date(Date.parse(periode.dateDebut)) <= aujourdhui &&\n new Date(Date.parse(periode.dateFin)) >= aujourdhui\n );\n });\n return periodesActives.length > 0;\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Accueil.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--13-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Accueil.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Accueil.vue?vue&type=template&id=6f2d275e&scoped=true&\"\nimport script from \"./Accueil.vue?vue&type=script&lang=ts&\"\nexport * from \"./Accueil.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Accueil.vue?vue&type=style&index=0&id=6f2d275e&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6f2d275e\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}