/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "./src/questionnaire.js"); /******/ }) /************************************************************************/ /******/ ({ /***/ "../config/instance.js": /*!*****************************!*\ !*** ../config/instance.js ***! \*****************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var _module$exports; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var users = __webpack_require__(/*! ./users */ "../config/users.js"); var questionnaires = __webpack_require__(/*! ./questionnaires */ "../config/questionnaires.js"); module.exports = (_module$exports = { apiUrl: "http://localhost:3000/api", siteUrl: "http://localhost:8080", adminName: "Fabrice", adminEmail: "dev@wikilerni.com", senderName: "WikiLerni (local)", senderEmail: "bonjour@wikilerni.com", adminLang: "fr", theme: "wikilerni", // le thème utilisé (dans /views) pour générer les pages HTML. Contient ses propres fichiers de configuration. availableLangs: ["fr"], // Languages in which the site is available. The first one is the default one. siteName: "WikiLerni (local)", beginCodeGodfather: "WL", // case-sensitive and can't contain "@" ! defaultReceiptDays: "147", // Par défaut, quel(s) jour(s) de la semaine, l'utilisateur reçoit-il quelque chose ? (1=dimanche, 2=lundi... 7=samedi) cronTimingAlertInSeconde: 120, // for logs responseTimingAlertInSeconde: 3, // idem tokenSignupValidationTimeInHours: "48h", // https://github.com/zeit/ms tokenLoginLinkTimeInHours: "1h", tokenConnexionMinTimeInHours: "24h", tokenConnexionMaxTimeInDays: "180 days", tokenLoginChangingTimeInHours: "1h", // for email & password changing tokenDeleteUserTimeInHours: "1h", tokenUnsubscribeLinkTimeInDays: "7 days", // token send with subscription's emails freeAccountTimingInDays: 0, // if 0 = unlimited freeAccountExpirationNotificationInDays: 3, accountExpirationFirstNotificationInDays: 10, accountExpirationSecondNotificationInDays: 3, inactiveAccountTimeToDeleteInDays: 180, // Questionnaires: nbQuestionsMin: 1, // minimum number of questions for the questionnaire to be publishable nbQuestionsMax: 2, // if 0 = not maximum nbChoicesMax: 10, nbNewQuestionnaires: 12, // for RSS, etc. hourGiveNewQuestionnaireBegin: 7, // in user local time hourGiveNewQuestionnaireEnd: 21, // idem maxQuestionnaireSendedAtSameTime: 50, // for subscription's e-mailing minSearchQuestionnaires: 3, fieldNewQuestionnaires: "publishingAt", // field to be used to create the list of the last questionnaires, can be "createdAt", "updatedAt" or "publishingAt" // Groups : nbQuestionnairesByGroupMin: 1, nbQuestionnairesByGroupMax: 0, // Illustrations: nbIllustrationsMin: 1, nbIllustrationsMax: 1, maxIllustrationSizeinOctet: 1000000, // pas contrôlé pour l'instant. À revoir. mimeTypesForIllustration: ["image/jpg", "image/jpeg", "image/png", "image/gif", "image/png"], // -- Upload and resize: illustrationsWidthMaxInPx: 500, illustrationsMiniaturesWidthMaxInPx: 200, // Links: nbLinksMin: 1, nbLinksMax: 0 }, _defineProperty(_module$exports, "nbQuestionsMin", 1), _defineProperty(_module$exports, "nbQuestionsMax", 0), _defineProperty(_module$exports, "nbChoicesMax", 10), _defineProperty(_module$exports, "passwordMinLength", users.password.minlength), _defineProperty(_module$exports, "dirCacheUsers", users.dirCacheUsers), _defineProperty(_module$exports, "dirCacheUsersAnswers", users.dirCacheUsersAnswers), _defineProperty(_module$exports, "dirCacheQuestionnaires", questionnaires.dirCacheQuestionnaires), _defineProperty(_module$exports, "dirCacheQuestions", questionnaires.dirCacheQuestions), _defineProperty(_module$exports, "dirCacheUsersQuestionnaires", questionnaires.dirCacheUsersQuestionnaires), _defineProperty(_module$exports, "dirHTMLQuestionnaires", questionnaires.dirHTMLQuestionnaires), _defineProperty(_module$exports, "dirWebQuestionnaires", questionnaires.dirWebQuestionnaires), _module$exports); /***/ }), /***/ "../config/matomo.js": /*!***************************!*\ !*** ../config/matomo.js ***! \***************************/ /*! no static exports found */ /***/ (function(module, exports) { // Si non utilisé, supprimer l'appel des JS front-end puis recompiler. // Revoir comment réorganiser cela sous-forme de module indépendant. module.exports = { // Stats Matomo : matomo: { url: "https://stats.le-fab-lab.com/", siteId: "5" } }; /***/ }), /***/ "../config/questionnaires.js": /*!***********************************!*\ !*** ../config/questionnaires.js ***! \***********************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = { // API'routes (after "apiUrl" defined in instance.js) questionnaireRoutes: "/questionnaire", // la base à laquelle s'ajoute les routes suivantes getListNextQuestionnaires: "/getlistnextquestionnaires/", getQuestionnaireRoutes: "/get", getRandomQuestionnairesRoute: "/getrandom", getStatsQuestionnaires: "/stats/", previewQuestionnaireRoutes: "/preview", publishedQuestionnaireRoutes: "/quiz/", regenerateHTML: "/htmlregenerated", searchAdminQuestionnairesRoute: "/searchadmin", searchQuestionnairesRoute: "/search", // -- groupes : groupRoutes: "/group", getGroupRoute: "/get/", previewGroupRoutes: "/preview", searchGroupsRoute: "/search", // -- questions & choices : questionsRoute: "/question/", // -- tags : tagsSearchRoute: "/tags/search/", // -- answers : getAdminStats: "/getadminstats/", getPreviousAnswers: "/user/answers/", getStatsAnswers: "/user/anwswers/stats/", // fonctionne aussi pour les groupes saveAnswersRoute: "/answer/", // idem // forms : à compléter avec valeurs par défaut, etc. cf modèle Questionnaire: { title: { maxlength: 255, required: true }, slug: { maxlength: 150 }, // champ requis mais calculé à partir du titre qd laissé vide dans le formulaire introduction: { required: true } }, searchQuestionnaires: { minlength: 3, required: true }, Group: { title: { maxlength: 255, required: true }, slug: { maxlength: 150 } // champ requis mais calculé à partir du titre qd laissé vide dans le formulaire }, Question: { text: { maxlength: 255, required: true }, rank: { required: true, min: 1, defaultValue: 1 } }, Choice: { text: { maxlength: 255, required: true } }, search: { minlength: 3, required: true }, searchGroups: { minlength: 3, required: true }, // Emplacement des fichiers JSON générés : dirCacheGroups: "datas/questionnaires/groups", dirCacheQuestionnaires: "datas/questionnaires", dirCacheQuestions: "datas/questionnaires/questions", dirCacheTags: "datas/questionnaires/tags", dirCacheUsersQuestionnaires: "datas/users/questionnaires", // Emplacement des fichiers HTML générés : dirHTMLGroups: "front/public/quiz/gp", dirHTMLQuestionnaires: "front/public/quiz", dirHTMLNews: "front/public/quizs", dirHTMLTags: "front/public/quizs", // Idem mais pour urls : dirWebGroups: "quiz/gp", dirWebQuestionnaires: "quiz", dirWebNews: "quizs/", dirWebTags: "quizs/", // limite des résultat du moteur de recherche, quand demande de résultats au hasard : nbRandomResults: 3, /* Valeurs en fait définies dans instance.js donc à supprimer quand plus utilisées ailleurs : */ nbQuestionsMin: 1, nbQuestionsMax: 0, nbChoicesMax: 10, nbTagsMin: 0, nbTagsMax: 0 // 0 = not max }; /***/ }), /***/ "../config/users.js": /*!**************************!*\ !*** ../config/users.js ***! \**************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = { // API'routes (after "apiUrl" defined in instance.js) userRoutes: "/user", checkDeleteLinkRoute: "/confirmdelete/", checkIfIsEmailfreeRoute: "/isemailfree", checkLoginRoute: "/checklogin/", checkNewLoginLinkRoute: "/confirmnewlogin/", checkSubscribeTokenRoute: "/validation/", connectionRoute: "/login", connectionWithLinkRoute: "/checkloginlink", createUserRoute: "/create", getAdminStats: "/getadminstats/", getGodChilds: "/getgodchilds/", getGodfatherRoute: "/getgodfatherid", getLoginLinkRoute: "/getloginlink", getPayments: "/payment/getforoneuser/", getUserInfos: "/get/", getUsersQuestionnairesRoute: "/getusersquestionnaires/", // les questionnaires auxquels l'utilisateur a déjà eu accès via son abonnement searchUserRoute: "/search/", signupCompletionRoute: "/signupcompletion/", subscribeRoute: "/signup", unsubscribeRoute: "/subscription/stop/", updateUserInfos: "/modify/", validateUserRoute: "/validate/", // forms : à compléter avec valeurs par défaut, etc. cf modèle name: { maxlength: 70, required: true }, email: { maxlength: 255, required: true }, password: { minlength: 8, maxlength: 72, required: true }, // https://www.npmjs.com/package/bcrypt#security-issues-and-concerns newPassword: { minlength: 8, maxlength: 72 }, codeGodfather: { maxlength: 255 }, cguOk: { value: "true", required: true }, search: { minlength: 1, required: true }, timeDifferenceMin: -720, timeDifferenceMax: 840, // JSON dir dirCacheUsers: "datas/users", dirCacheUsersAnswers: "datas/users/questionnaires/answers", dirCacheUsersWithoutAnswers: "datas/users/questionnaires/without" }; /***/ }), /***/ "../lang sync recursive ^\\.\\/.*\\/answer$": /*!*************************************!*\ !*** ../lang sync ^\.\/.*\/answer$ ***! \*************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var map = { "./fr/answer": "../lang/fr/answer.js" }; function webpackContext(req) { var id = webpackContextResolve(req); return __webpack_require__(id); } function webpackContextResolve(req) { if(!__webpack_require__.o(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; } return map[req]; } webpackContext.keys = function webpackContextKeys() { return Object.keys(map); }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; webpackContext.id = "../lang sync recursive ^\\.\\/.*\\/answer$"; /***/ }), /***/ "../lang sync recursive ^\\.\\/.*\\/general$": /*!**************************************!*\ !*** ../lang sync ^\.\/.*\/general$ ***! \**************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var map = { "./fr/general": "../lang/fr/general.js" }; function webpackContext(req) { var id = webpackContextResolve(req); return __webpack_require__(id); } function webpackContextResolve(req) { if(!__webpack_require__.o(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; } return map[req]; } webpackContext.keys = function webpackContextKeys() { return Object.keys(map); }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; webpackContext.id = "../lang sync recursive ^\\.\\/.*\\/general$"; /***/ }), /***/ "../lang/fr/answer.js": /*!****************************!*\ !*** ../lang/fr/answer.js ***! \****************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = { checkResponsesOuputFail: "Vous avez répondu en DURATION secondes et avez NBCORRECTANSWERS bonne(s) réponse(s) sur NBQUESTIONS questions. C'est certain, vous ferez mieux la prochaine fois !", checkResponsesOuputMedium: "Vous avez répondu en DURATION secondes et avez NBCORRECTANSWERS bonne(s) réponse(s) sur NBQUESTIONS questions. C'est pas mal du tout !", checkResponsesOuputSuccess: "Vous avez répondu en DURATION secondes et avez NBCORRECTANSWERS bonne(s) réponse(s) sur NBQUESTIONS questions. Bravo ! Rien ne vous échappe !", needIntegerNumberCorrectResponses: "Le nombre de réponses correctes doit être un nombre entier.", needIntegerNumberSecondesResponse: "La durée de la réponse doit être un nombre entier de secondes.", needIntegerNumberUserResponses: "Le nombre de questions auxquelles l'utilisateur a répondu doit être un nombre entier.", needMaxNumberUserResponses: "Le nombre de questions auxquelles l'utilisateur a répondu ne peut être aussi élevé.", needMinNumberUserResponses: "Le nombre de questions auxquelles l'utilisateur a répondu ne peut être inférieur à 1.", needNumberCorrectResponses: "Le nombre de réponses correctes doit être fourni.", needNumberUserResponses: "Le nombre de questions auxquelles l'utilisateur a répondu doit être fourni.", needMaxNumberCorrectResponses: "Le nombre de réponses correctes ne peut être supérieur au nombre de questions.", needMinNumberCorrectResponses: "Le nombre de réponses correctes ne peut être négatif.", needMinNumberSecondesResponse: "La durée de la réponse ne peut être négative.", noPreviousAnswer: "On dirait que c'est la première fois que vous répondez à ce quiz. Bonne lecture !", previousAnswersLine: "Le DATEANSWER, vous avez répondu correctement à NBCORRECTANSWERS questions sur NBQUESTIONS en AVGDURATION secondes.", previousAnswersStats: "En moyenne, vous avez répondu à ce quiz en AVGDURATION secondes, en ayant AVGCORRECTANSWERS % de bonnes réponses.", previousAnswersTitle: "Bonjour #NOM, voici vos précédents résultats à ce quiz", responseSavedError: "Cependant une erreur a été rencontrée durant l'enregistrement de votre résultat. Accèder à tous vos quizs.", responseSavedMessage: "Votre résultat a été enregistré. Accèder à tous vos quizs.", statsUser: "Vous avez enregistré NBANSWERS réponseS1 à NBQUESTIONNAIRES quizS2 différentS3 sur les NBTOTQUESTIONNAIRES proposéS4 par le site.
En moyenne, vous avez mis AVGDURATION secondes à répondre et avez correctement répondu à AVGCORRECTANSWERS % des questions.", wantToSaveResponses: "Si vous le souhaitez, vous pouvez sauvegarder votre résultat en créant votre compte ci-dessous. Cela vous permettra aussi de recevoir régulièrement de nouvelles \"graines de culture\" directement sur votre e-mail." }; /***/ }), /***/ "../lang/fr/general.js": /*!*****************************!*\ !*** ../lang/fr/general.js ***! \*****************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = { addBtnTxt: "Ajouter", addOkMessage: "Les données ont bien été enregistrées.", alertNewWindow: "nouvelle fenêtre", badUrl: "Tentative d'accès à une page n'existant pas :", btnLinkToQuestionnaire: "Afficher !", btnProposeConnection: "Je me connecte.", btnProposeSubscribe: "Je crée mon compte.", btnShowOnWebSite: "Lire la suite sur #SITE_NAME", deleteBtnTxt: "Supprimer", deleteFailMessage: "La suppression de l'enregistrement #ID a échoué.", deleteOkMessage: "La suppression a bien été enregistrée.", failAuth: "Erreur d'authentification.", failAuthCron: "Tentative de lancement d'un cron sans le bon token.", failAuthHeader: "Absence de header Authorization.", failAuthId: "Identifiant non valide : ", failAuthToken: "Token invalide ou utilisateur non trouvé.", neededParams: "Des paramètres nécessaires manquants sont manquants.", nextPage: "Page suivante", notAllowed: "Vous n'avez pas les droits nécessaires pour cette action.", notRequired: "Facultatif.", notValidFormat: "Format non valide.", previousPage: "Page précédente", serverError: "Désolé. Une erreur imprévue est survenue. Si cela persiste, n'hésitez à prévenir l'administrateur du site.", serverErrorAdmin: "Bug de l'application :", siteHTMLTitle: "WikiLerni : la culture générale en liberté", siteMetaDescription: "Avec WikiLerni, vous apprenez régulièrement de nouvelles choses. Vous recevez de courts articles lisibles en quelques minutes. Des quizs vous permettent ensuite de tester ce que vous avez retenu.", scriptTimingAlert: "*** Script lent : SCRIPT_TIMING millisecondes, route : SCRIPT_URL", scriptTimingInfo: "Durée de la réponse : SCRIPT_TIMING millisecondes, route : SCRIPT_URL", statsAdmin: "Durant les dernières 24h : NB_USERS_24H comptes ont été créés, NB_SUBSCRIPTIONS_24H validés et NB_USERS_DELETED_24H supprimés. NB_ANSWERS_24H réponses aux quizs ont été enregistrées.
En tout, il y a : NB_USERS_TOT comptes, dont NB_SUBSCRIPTIONS_TOT validés et NB_SUBSCRIPTIONS_PREMIUM comptes prémium. NB_ANSWERS_TOT réponses aux quizs ont été enregistrées.
Parmi les NB_USERS_DELETED_TOT comptes supprimés, NB_USERS_DELETED_VALIDED avaient validé leur compte et NB_USERS_DELETED_PREMIUM avaient souscrit un compte prémium.", subscriptionCall: "Inscrivez-vous !", updateBtnTxt: "Modifier", updateOkMessage: "La mise à jour à jour a bien été enregistrée." }; /***/ }), /***/ "../tools/main.js": /*!************************!*\ !*** ../tools/main.js ***! \************************/ /*! no static exports found */ /***/ (function(module, exports) { function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } // Quelques fonctions utiles pour les chaînes var Tool = /*#__PURE__*/function () { function Tool() { _classCallCheck(this, Tool); } _createClass(Tool, null, [{ key: "isEmpty", value: function isEmpty(myVar) { if (myVar === undefined || myVar === null) return true;else { myVar += ""; // si autre chose qu'une chaîne envoyé... myVar = myVar.trim(); if (myVar === "") return true;else return false; } } }, { key: "trimIfNotNull", value: function trimIfNotNull(myString) { if (Tool.isEmpty(myString)) myString = null;else { myString += ""; // si autre chose qu'une chaîne envoyé... myString = myString.trim(); } return myString; } }, { key: "shortenIfLongerThan", value: function shortenIfLongerThan(myString, max) { myString += ""; // au cas où cela ne serait pas une chaîne... if (myString.length > max) myString = myString.substring(0, max - 3) + "…"; return myString; } // source : https://stackoverflow.com/questions/15604140/replace-multiple-strings-with-multiple-other-strings }, { key: "replaceAll", value: function replaceAll(myString, mapObj) { var replaceElts = new RegExp(Object.keys(mapObj).join("|"), "gi"); return myString.replace(replaceElts, function (matched) { return mapObj[matched]; }); } // source : https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Math/random }, { key: "getRandomInt", value: function getRandomInt(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min)) + min; } // à compléter : https://en.wikipedia.org/wiki/Date_format_by_country }, { key: "dateFormat", value: function dateFormat(dateString) { var lang = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "fr"; if (Tool.isEmpty(dateString)) return ""; var myDate = new Date(dateString); var myDay = myDate.getDate() + ""; if (myDay.length === 1) myDay = "0" + myDay; var myMounth = myDate.getMonth() + 1 + ""; if (myMounth.length === 1) myMounth = "0" + myMounth; var myYear = myDate.getFullYear(); if (lang === "fr") return myDay + "/" + myMounth + "/" + myYear;else if (lang === "form") // 2014-02-09 return myYear + "-" + myMounth + "-" + myDay;else return myMounth + "/" + myDay + "/" + myYear; } // On enlève volontairement les 0/O pour éviter les confusions ! // Et mieux vaut aussi débuter et finir par une lettre simple. }, { key: "getPassword", value: function getPassword(nbCarMin, nbCarMax) { var nbCar = nbCarMin + Math.floor(Math.random() * (nbCarMax - nbCarMin)); var letters = "ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijklmnpqrstuvwxyz"; var others = "123456789!?.*-_%@&ÉÀÈÙ€$ÂÊÛÎ"; var password = letters[Math.floor(Math.random() * letters.length)]; for (var i = 1; i < nbCar - 1; i++) { if (i % 2 === 1) password += others[Math.floor(Math.random() * others.length)];else password += letters[Math.floor(Math.random() * letters.length)]; } password += letters[Math.floor(Math.random() * letters.length)]; return password; } }]); return Tool; }(); module.exports = Tool; /***/ }), /***/ "../views sync recursive ^\\.\\/.*\\.js$": /*!**********************************!*\ !*** ../views sync ^\.\/.*\.js$ ***! \**********************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { var map = { "./default/config/fr.js": "../views/default/config/fr.js", "./wikilerni/config/fr.js": "../views/wikilerni/config/fr.js" }; function webpackContext(req) { var id = webpackContextResolve(req); return __webpack_require__(id); } function webpackContextResolve(req) { if(!__webpack_require__.o(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; } return map[req]; } webpackContext.keys = function webpackContextKeys() { return Object.keys(map); }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; webpackContext.id = "../views sync recursive ^\\.\\/.*\\.js$"; /***/ }), /***/ "../views/default/config/fr.js": /*!*************************************!*\ !*** ../views/default/config/fr.js ***! \*************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = { headLinks: [{ anchor: "Accueil", attributes: { href: "/" } }, { anchor: "Mon compte", attributes: { href: "/connexion.html", id: "accountHeadLink" } }, { anchor: "À propos", attributes: { href: "/a-propos.html" } }, { anchor: "Contact", attributes: { href: "/contact.html" } }], footLinks: [{ anchor: "Crédits", attributes: { href: "/credits.html" } }, { anchor: "Mentions légales", attributes: { href: "/mentions-legales.html", rel: "nofollow" } }, { anchor: "Données personnelles", attributes: { href: "/donnees.html" } }, { anchor: "C.G.U.", attributes: { href: "/cgu.html", rel: "nofollow" } }, { anchor: "C.G.V.", attributes: { href: "/cgv.html", rel: "nofollow" } }], maxQuestionnairesByPage: 10, userHomePage: "accueil.html", adminHomePage: "admin.html", managerHomePage: "gestion.html", subscribePage: "inscription.html", connectionPage: "connexion.html", accountPage: "compte.html", questionnairesManagementPage: "gestion-quizs.html", usersManagementPage: "gestion-utilisateurs.html", nbQuestionnairesUserHomePage: 10, illustrationDir: "/img/quizs/", siteSlogan: "Cultivons notre jardin !", homeTitle1: "De nature curieuse ?", homeP1: "Avec WikiLerni vous apprenez chaque jour de nouvelles choses.
Des articles de Wikipédia sont sélectionnés pour vous et sont suivis d'un quiz vous permettant de tester ce que vous en avez retenu.
De jour en jour de nouvelles graines de savoir sont ainsi semées dans votre \"jardin\".", homeTitle2: "La culture en liberté", homeP2: "Tout comme sur Wikipédia (*), le logiciel et le contenu partagé sur WikiLerni sont libres.
Vous pouvez les utiliser, les modifier et les diffuser selon votre souhait.
Sur WikiLerni, pas de publicité, ni de commercialisation de vos données personnelles.
Vous pouvez venir y \"cultiver votre jardin\" en toute tranquillité.

(*) Bien que partageant ses valeurs, WikiLerni est un projet indépendant de la fondation Wikipédia.", newQuestionnairesTitle: "Les derniers quizs publiés sur WikiLerni", newQuestionnairesIntro: "Liste des derniers quizs publiés sur WikiLerni.", explanationTitle: "Vous découvrez WikiLerni ?", explanationTxt: "Le principe est simple : vous commencez par lire l'article Wikipédia dont le lien vous est proposé.
Puis vous afficher le quiz pour vérifier ce que vous en avez retenu de votre lecture. Vous obtenez alors votre résultat immédiatement.

Toutes les réponses se trouvent dans l'article proposé à la lecture. Vous êtes ici pour apprendre de nouvelles choses, mais libre à vous d'essayer d'y répondre immédiatement.

Quand le sujet s'y prête, ne vous étonnez pas si certaines des réponses proposées peuvent être un peu décalées, absurdes... On peut apprendre avec le sourire, non ? :-)

Une fois votre résultat obtenu, il vous sera proposé de créer un compte pour le sauvegarder.
Ce compte vous permettra de tester de nouveau ce quiz pour vérifier ce que vous en avez retenu plusieurs jours, semaines, mois... Et de recevoir régulièrement de nouvelles suggestions de lectures.

Mais la création de ce compte est facultative et vous pouvez parcourir WikiLerni librement.", noJSNotification: "Désolé, mais pour l'instant, l'utilisation de WikiLerni nécessite l'activation du JavaScript.", tagsListTxt: "Parcourir les rubriques :" }; /***/ }), /***/ "../views/wikilerni/config/fr.js": /*!***************************************!*\ !*** ../views/wikilerni/config/fr.js ***! \***************************************/ /*! no static exports found */ /***/ (function(module, exports) { module.exports = { // liens de l'interface headLinks: [{ anchor: "Contact", attributes: { href: "/contact.html", rel: "nofollow" } }, { anchor: "Parcourir", attributes: { href: "/quizs/", id: "indexHeadLink", title: "Les dernières publications" } }, { anchor: "Mon compte", attributes: { href: "/connexion.html", id: "accountHeadLink", title: "Accéder ou créez votre compte WikiLerni" } }, { anchor: "À propos", attributes: { href: "/a-propos.html", title: "En savoir + sur WikiLerni" } }, { anchor: "Accueil", attributes: { href: "/", title: "Page d'accueil" } }], footLinks: [{ anchor: "Blog", attributes: { href: "https://framasphere.org/people/7e54b7a0b53201389eef2a0000053625", title: "Le blog WikiLerni sur diaspora*" } }, { anchor: "Crédits", attributes: { href: "/credits.html", title: "Qui a créé WikiLerni ? Quels sont vos droits ?" } }, { anchor: "Mentions légales", attributes: { href: "/mentions-legales.html", rel: "nofollow" } }, { anchor: "Données personnelles", attributes: { href: "/donnees.html", title: "Vos données personnelles sur WikiLerni" } }, { anchor: "CGV & CGU", attributes: { href: "/CGV-CGU.html", rel: "nofollow" } }], accountPage: "compte.html", aboutPage: "a-propos.html", adminHomePage: "admin.html", cguPage: "CGV-CGU.html", connectionPage: "connexion.html", deleteLinkPage: "aurevoir.html?t=", loginLinkPage: "login.html?t=", managerHomePage: "gestion.html", newLoginLinkPage: "newlogin.html?t=", questionnairesManagementPage: "gestion-quizs.html", stopMailPage: "stop-mail.html?t=", subscribePage: "inscription.html", updateAccountPage: "compte.html", userHomePage: "accueil.html", userHomePageTxt: "Ma page d'accueil.", usersManagementPage: "gestion-utilisateurs.html", validationLinkPage: "validation.html?t=", /* Textes (général) */ siteSlogan: "Cultivons notre jardin !", noJSNotification: "Désolé, mais pour l'instant, l'utilisation de WikiLerni nécessite l'activation du JavaScript.", mailRecipientTxt: "Message envoyé à :", licenceTxt: "@copyleft Le contenu de WikiLerni est libre et vous est offert sans publicité. Vous pouvez participer à son financement en cliquant ici.", /* Page d'accueil */ homePageTxt: "Page d'accueil", homeTitle1: "De nature curieuse ?", homeP1: "Avec WikiLerni, vous apprenez régulièrement de nouvelles choses.
Vous recevez de courts articles, lisibles en quelques minutes.
Des quizs vous permettent ensuite de tester ce que vous avez retenu.
De jour en jour de nouvelles graines de culture sont ainsi semées dans votre jardin.", homeTitle2: "La culture générale en liberté", homeP2: "Pas de faits alternatifs, tous les contenus sont sourcés par des articles Wikipédia.
Et tout comme sur Wikipédia, le logiciel et le contenu publié sur WikiLerni sont partagés sous licences libres.
Le tout sans publicité, ni commercialisation de vos données.
Sur WikiLerni, vous cultivez votre jardin en toute tranquillité.", homeBtnAboutTxt: "En savoir plus sur WikiLerni ?", homeBtnSubscribeTxt: "Testez WikiLerni", homeSubcriptionFormTitle: "Recevez les prochains articles WikiLerni", /* Page dernières publications... */ newQuestionnairesTitle: "Culture générale - apprenez de nouvelles choses avec WikiLerni", newQuestionnairesIntro: "WikiLerni : testez vos connaissances et apprenez de nouvelles choses avec WikiLerni.", newsListTitle: "

Avec WikiLerni, vous apprenez chaque jour quelque chose de nouveau
Si dessous les dernières publications. Vous pouvez aussi parcourir le site par thèmes ou mots-clés.

", /* Plan du site, liste des tags */ tagListTitle: "Culture générale - des articles et quizs sur de nombreux thèmes !", tagListMetaDesc: "WikiLerni : découvrir les différents thèmes abordés par WikiLerni. Inxex du site.", tagListIntro: "

Avec WikiLerni, devenez fort en thèmes... Oui mais quels thèmes ? :)

Aristote : « L’homme a naturellement la passion de connaître… »
", /* Page quizs */ answersExplanationsLinkText: "Relire", quizElementLinksIntro: "En savoir plus", quizElementSubcriptionFormTitle: "Recevez les prochains articles WikiLerni", explanationTitle: "Vous découvrez WikiLerni ?", explanationTxt: "

Le principe est simple : vous commencez par lire l’article Wikipédia dont le lien vous est proposé. Puis vous afficher le quiz pour vérifier ce que vous avez retenu de votre lecture. Suivant les questions, une ou plusieurs réponses peuvent être correctes et doivent donc être cochées. C’est toujours le contenu de l’article Wikipédia qui fait foi concernant les « bonnes » réponses. C’est une façon de tester à la fois votre capacité d’attention et votre mémoire. Les articles de Wikipédia peuvent évoluer, donc n’hésitez pas à me signaler une erreur.

WikiLerni vous propose d’autres solutions pour améliorer votre culture générale. Pour en savoir plus, cliquez sur le bouton ci-dessous.

", explanationElementTxt: "

WikiLerni vous propose de recevoir par e-mail à la fréquence choisie, de courts articles lisibles en quelques minutes et portant sur des sujets très variés de culture générale (arts, histoire, littérature, sciences, etc.).

Ces articles sont basés sur une ou plusieurs pages de Wikipédia (fournies en lien), dont ils extraient certaines informations.

Chaque série d’articles est suivie d’un quiz permettant de tester ce que vous en avez retenu.

Vous apprenez ainsi régulièrement de nouvelles choses très simplement.

", /* Autres */ illustrationDir: "/img/quizs/", twitterAccount: "WikiLerni", maxQuestionnairesByPage: 12, maxQuestionnairesSiteHomePage: 3, nbQuestionnairesUserHomePage: 3 }; /***/ }), /***/ "./src/config/general.js": /*!*******************************!*\ !*** ./src/config/general.js ***! \*******************************/ /*! no static exports found */ /***/ (function(module, exports) { // à supprimer une fois que tout récupérer du backend : module.exports = { apiUrl: "http://localhost:3000/api", usersGetConfigUrl: "/user/getconfig", lang: "fr", userHomePage: "accueil.html", adminHomePage: "admin.html", managerHomePage: "gestion.html", subscribePage: "inscription.html", connectionPage: "connexion.html", accountPage: "compte.html", questionnairesManagementPage: "gestion-quizs.html", usersManagementPage: "gestion-utilisateurs.html", nbQuestionnairesUserHomePage: 10, illustrationDir: "/img/quizs/" }; /***/ }), /***/ "./src/questionnaire.js": /*!******************************!*\ !*** ./src/questionnaire.js ***! \******************************/ /*! no exports provided */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _config_instance_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../config/instance.js */ "../config/instance.js"); /* harmony import */ var _config_instance_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_config_instance_js__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _config_questionnaires_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../config/questionnaires.js */ "../config/questionnaires.js"); /* harmony import */ var _config_questionnaires_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_config_questionnaires_js__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _tools_answers_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tools/answers.js */ "./src/tools/answers.js"); /* harmony import */ var _tools_dom_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tools/dom.js */ "./src/tools/dom.js"); /* harmony import */ var _tools_everywhere_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./tools/everywhere.js */ "./src/tools/everywhere.js"); /* harmony import */ var _tools_clientstorage_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./tools/clientstorage.js */ "./src/tools/clientstorage.js"); /* harmony import */ var _tools_forms_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./tools/forms.js */ "./src/tools/forms.js"); /* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../tools/main */ "../tools/main.js"); /* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_tools_main__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _tools_matomo_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tools/matomo.js */ "./src/tools/matomo.js"); /* harmony import */ var _tools_users_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./tools/users.js */ "./src/tools/users.js"); function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } // -- GESTION DU FORMULAIRE PERMETTANT D'AFFICHER ET RÉPONDRE À UN QUIZ /// Il n'est pas nécessaire d'être connecté pour répondre au quiz et voir son résultat. /// Mais si pas connecté, on propose à l'internaute de se connecter ou de créer un compte pour sauvegarder son résultat. /// Dans ce but son résultat est stocké dans son navigateur. /// Si il est connecté, l'enregistrement de son résultat se fait automatiquement côté serveur et ses éventuels précédents résultats sont affichés. // Fichier de configuration tirés du backend : var lang = _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["availableLangs"][0]; var configTemplate = __webpack_require__("../views sync recursive ^\\.\\/.*\\.js$")("./" + _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["theme"] + "/config/" + lang + ".js"); // Dictionnaires : var _require = __webpack_require__("../lang sync recursive ^\\.\\/.*\\/answer$")("./" + lang + "/answer"), noPreviousAnswer = _require.noPreviousAnswer, previousAnswersLine = _require.previousAnswersLine, previousAnswersStats = _require.previousAnswersStats, previousAnswersTitle = _require.previousAnswersTitle, responseSavedError = _require.responseSavedError, wantToSaveResponses = _require.wantToSaveResponses; var _require2 = __webpack_require__("../lang sync recursive ^\\.\\/.*\\/general$")("./" + lang + "/general"), serverError = _require2.serverError; // Principaux éléments du DOM manipulés : var myForm = document.getElementById("questionnaire"); var divResponse = document.getElementById("response"); var btnShow = document.getElementById("showQuestionnaire"); var btnSubmit = document.getElementById("checkResponses"); var explanationsTitle = document.getElementById("explanationsTitle"); var explanationsContent = document.getElementById("explanationsContent"); var isConnected, user; var initialise = /*#__PURE__*/function () { var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { return regeneratorRuntime.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _context.prev = 0; btnShow.style.display = "inline"; // bouton caché si JS inactif, car JS nécessaire pour vérifier les réponses _context.next = 4; return Object(_tools_users_js__WEBPACK_IMPORTED_MODULE_9__["checkSession"])(["user"]); case 4: isConnected = _context.sent; // "user" car seuls les utilisateurs de base peuvent enregistrer leurs réponses aux quizs // Si l'utilisateur est connecté et a déjà répondu à ce quiz, on affiche ses précédentes réponses à la place du texte servant à expliquer le topo aux nouveaux if (isConnected) { user = Object(_tools_clientstorage_js__WEBPACK_IMPORTED_MODULE_5__["getLocaly"])("user", true); Object(_tools_everywhere_js__WEBPACK_IMPORTED_MODULE_4__["updateAccountLink"])(user.status, configTemplate); // lien vers le compte adapté pour les utilisateurs connectés checkPreviousResponses(user); } else Object(_tools_matomo_js__WEBPACK_IMPORTED_MODULE_8__["loadMatomo"])(); _context.next = 11; break; case 8: _context.prev = 8; _context.t0 = _context["catch"](0); console.error(_context.t0); case 11: case "end": return _context.stop(); } } }, _callee, null, [[0, 8]]); })); return function initialise() { return _ref.apply(this, arguments); }; }(); initialise(); Object(_tools_everywhere_js__WEBPACK_IMPORTED_MODULE_4__["helloDev"])(); // Affichage du questionnaire quand l'utilisateur clique sur le bouton ou si l'id du formulaire est passée par l'url. // Déclenche en même temps le chronomètre mesurant la durée de la réponse aux questions. var showQuestionnaire = function showQuestionnaire() { chronoBegin = Date.now(); myForm.style.display = "block"; btnShow.style.display = "none"; var here = window.location; // window.location à ajouter pour ne pas quitter la page en mode "preview". if (window.location.hash !== "") { window.location.hash = ""; // ! le "#" reste window.location.assign(here + "questionnaire"); } else window.location.assign(here + "#questionnaire"); }; var chronoBegin = 0; btnShow.addEventListener("click", function (e) { try { e.preventDefault(); showQuestionnaire(); } catch (e) { Object(_tools_dom_js__WEBPACK_IMPORTED_MODULE_3__["addElement"])(divResponse, "p", serverError, "", ["error"]); console.error(e); } }); // Lien passé par mail pour voir directement le quiz if (location.hash != "" && location.hash === "#questionnaire") showQuestionnaire(); // Traitement de l'envoi de la réponse de l'utilisateur : var answer = {}; myForm.addEventListener("submit", function (e) { try { e.preventDefault(); btnSubmit.style.display = "none"; // seulement un envoi à la fois, SVP :) divResponse.innerHTML = ""; // supprime les éventuels messages déjà affichés var userResponses = Object(_tools_forms_js__WEBPACK_IMPORTED_MODULE_6__["getDatasFromInputs"])(myForm); answer.duration = Math.round((Date.now() - chronoBegin) / 1000); answer.nbQuestions = 0; answer.nbCorrectAnswers = 0; answer.QuestionnaireId = document.getElementById("questionnaireId").value; // Les réponses sont regroupées par question, donc quand idQuestion change, on connaît le résultat pour la question précédente. // Pour qu'une réponse soit bonne, il faut cocher toutes les bonnes réponses (si QCM) à la question ET cocher aucune des mauvaises. var idChoice, idQuestion = "", goodResponse = false; for (var item in userResponses) { if (item.startsWith("isCorrect_response_")) // = Nouvelle réponse possible. { idChoice = item.substring(item.lastIndexOf("_") + 1); // si on change de queston if (userResponses["question_id_response_" + idChoice] != idQuestion) // on commence à traiter une nouvelle question { idQuestion = userResponses["question_id_response_" + idChoice]; answer.nbQuestions++; if (goodResponse) // résultat de la question précédente answer.nbCorrectAnswers++; goodResponse = true; // réponse bonne jusqu'à la première erreur... } if (userResponses[item] == "true") { document.getElementById("response_" + idChoice).parentNode.classList.add("isCorrect"); if (userResponses["response_" + idChoice] === undefined) // une bonne réponse n'a pas été sélectionnée goodResponse = false; } else { if (userResponses["response_" + idChoice] === "on") // réponse cochée ne faisant pas partie des bonnes { goodResponse = false; document.getElementById("response_" + idChoice).parentNode.classList.add("isNotCorrect"); } } } } // si j'ai bien répondu à la dernière question, il faut le compter ici, car je suis sorti de la boucle : if (goodResponse) answer.nbCorrectAnswers++; // Affichage du résultat, suivant si l'utilisateur est connecté ou pas et son score : var getOuput = Object(_tools_answers_js__WEBPACK_IMPORTED_MODULE_2__["checkAnswerOuput"])(answer); if (isConnected) { // Si l'utilisateur est connecté, on enregistre son résultat sur le serveur. var xhrSaveAnswer = new XMLHttpRequest(); xhrSaveAnswer.open("POST", _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["apiUrl"] + _config_questionnaires_js__WEBPACK_IMPORTED_MODULE_1__["questionnaireRoutes"] + _config_questionnaires_js__WEBPACK_IMPORTED_MODULE_1__["saveAnswersRoute"]); xhrSaveAnswer.onreadystatechange = function () { if (this.readyState == XMLHttpRequest.DONE) { var xhrResponse = JSON.parse(this.responseText); if (this.status === 201 && xhrResponse.message) { getOuput += "
" + xhrResponse.message.replace("#URL", configTemplate.userHomePage); checkPreviousResponses(user); } else getOuput += "
" + responseSavedError.replace("#URL", configTemplate.userHomePage); // on redirige vers le résultat window.location.hash = ""; var here = window.location; // window.location à ajouter pour ne pas quitter la page en mode "preview"... window.location.assign(here + "explanations"); } }; xhrSaveAnswer.setRequestHeader("Authorization", "Bearer " + user.token); xhrSaveAnswer.setRequestHeader("Content-Type", "application/json"); answer.timeDifference = Object(_tools_users_js__WEBPACK_IMPORTED_MODULE_9__["getTimeDifference"])(); // on en profite pour mettre les pendules à l'heure. xhrSaveAnswer.send(JSON.stringify(answer)); } else { // si pas connecté, on enregistre le résultat côté client pour permettre de le retrouver au moment de la création du compte ou de la connexion. if (Object(_tools_answers_js__WEBPACK_IMPORTED_MODULE_2__["saveAnswer"])(answer)) { getOuput += "

" + wantToSaveResponses; Object(_tools_dom_js__WEBPACK_IMPORTED_MODULE_3__["addElement"])(divResponse, "p", getOuput, "", ["info"]); document.querySelector(".subscribeBtns").style.display = "block"; } else // inutile de proposer de créer un compte si le stockage local ne fonctionne pas Object(_tools_dom_js__WEBPACK_IMPORTED_MODULE_3__["addElement"])(divResponse, "p", getOuput, "", ["info"]); // on redirige vers le résultat window.location.hash = ""; var here = window.location; // window.location à ajouter pour ne pas quitter la page en mode "preview"... window.location.assign(here + "response"); } // + affichage des textes d'explications pour chaque question var explanations = document.querySelectorAll(".help"); for (var i in explanations) { if (explanations[i].style != undefined) // sinon, la console affiche une erreur "TypeError: explanations[i].style is undefined", bien que tout fonctionne (?) explanations[i].style.display = "block"; } } catch (e) { Object(_tools_dom_js__WEBPACK_IMPORTED_MODULE_3__["addElement"])(divResponse, "p", serverError, "", ["error"]); console.error(e); } }); // Fonction vérifiant les précédentes réponses de l'utilisateur // Utile si connecté lors du premier chargement de la page, puis après une nouvelle réponse var checkPreviousResponses = function checkPreviousResponses(user) { var xhrPreviousRes = new XMLHttpRequest(); xhrPreviousRes.open("GET", _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["apiUrl"] + _config_questionnaires_js__WEBPACK_IMPORTED_MODULE_1__["questionnaireRoutes"] + _config_questionnaires_js__WEBPACK_IMPORTED_MODULE_1__["getPreviousAnswers"] + user.id + "/" + document.getElementById("questionnaireId").value); xhrPreviousRes.onreadystatechange = function () { if (this.readyState == XMLHttpRequest.DONE) { var response = JSON.parse(this.responseText); if (this.status === 200) { var nbResponses = response.length; var previousAnswersContent = ""; Object(_tools_dom_js__WEBPACK_IMPORTED_MODULE_3__["addElement"])(explanationsTitle, "span", previousAnswersTitle.replace("#NOM", user.name)); if (nbResponses !== 0) { var totNbQuestions = 0, totNbCorrectAnswers = 0, totDuration = 0, mapLineContent; for (var i in response) { totNbQuestions += response[i].nbQuestions; // ! on ne peut se baser sur la version actuelle du quiz, car le nombre de questions a pu évoluer. totNbCorrectAnswers += response[i].nbCorrectAnswers; totDuration += response[i].duration; mapLineContent = { DATEANSWER: Object(_tools_main__WEBPACK_IMPORTED_MODULE_7__["dateFormat"])(response[i].createdAt, lang), NBCORRECTANSWERS: response[i].nbCorrectAnswers, NBQUESTIONS: response[i].nbQuestions, AVGDURATION: response[i].duration }; previousAnswersContent += "
  • " + Object(_tools_main__WEBPACK_IMPORTED_MODULE_7__["replaceAll"])(previousAnswersLine, mapLineContent) + "
  • "; } mapLineContent = { AVGDURATION: Math.round(totDuration / nbResponses), AVGCORRECTANSWERS: Math.round(totNbCorrectAnswers / totNbQuestions * 100) }; previousAnswersContent = "
    " + Object(_tools_main__WEBPACK_IMPORTED_MODULE_7__["replaceAll"])(previousAnswersStats, mapLineContent) + "
    " + previousAnswersContent; Object(_tools_dom_js__WEBPACK_IMPORTED_MODULE_3__["addElement"])(explanationsContent, "ul", previousAnswersContent); } else Object(_tools_dom_js__WEBPACK_IMPORTED_MODULE_3__["addElement"])(explanationsContent, "ul", noPreviousAnswer); // dans un cas comme dans l'autre, bouton pour revenir à l'accueil du compte Object(_tools_dom_js__WEBPACK_IMPORTED_MODULE_3__["addElement"])(explanationsContent, "p", "" + configTemplate.userHomePageTxt + "", "", ["btn"], "", false); } } }; xhrPreviousRes.setRequestHeader("Authorization", "Bearer " + user.token); xhrPreviousRes.send(); }; /***/ }), /***/ "./src/tools/answers.js": /*!******************************!*\ !*** ./src/tools/answers.js ***! \******************************/ /*! exports provided: saveAnswer, checkAnswerOuput */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveAnswer", function() { return saveAnswer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkAnswerOuput", function() { return checkAnswerOuput; }); /* harmony import */ var _clientstorage_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./clientstorage.js */ "./src/tools/clientstorage.js"); /* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../tools/main */ "../tools/main.js"); /* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tools_main__WEBPACK_IMPORTED_MODULE_1__); var configFrontEnd = __webpack_require__(/*! ../config/general */ "./src/config/general.js"); var txt = __webpack_require__("../lang sync recursive ^\\.\\/.*\\/answer$")("./" + configFrontEnd.lang + "/answer"); // Enregistrement côté client du dernier résultat à un quiz en attendant d'être connecté var saveAnswer = function saveAnswer(answer) { if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(answer.duration) && !Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(answer.nbCorrectAnswers) && !Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(answer.nbQuestions) && (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(answer.QuestionnaireId) || !Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(answer.GroupId))) { Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_0__["saveLocaly"])("lastAnswer", answer); return true; } else return false; }; // Retourne un texte suivant le nombre de bonnes réponses var checkAnswerOuput = function checkAnswerOuput(answer) { if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(answer.duration) && !Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(answer.nbCorrectAnswers) && !Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["isEmpty"])(answer.nbQuestions)) { var ratio = answer.nbCorrectAnswers / answer.nbQuestions; var mapObj = { DURATION: answer.duration, NBCORRECTANSWERS: answer.nbCorrectAnswers, NBQUESTIONS: answer.nbQuestions }; var output = ""; if (ratio < 0.4) output = Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["replaceAll"])(txt.checkResponsesOuputFail, mapObj);else if (ratio < 0.8) output = Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["replaceAll"])(txt.checkResponsesOuputMedium, mapObj);else output = Object(_tools_main__WEBPACK_IMPORTED_MODULE_1__["replaceAll"])(txt.checkResponsesOuputSuccess, mapObj); if (output) return output;else return ""; } else return ""; }; /***/ }), /***/ "./src/tools/clientstorage.js": /*!************************************!*\ !*** ./src/tools/clientstorage.js ***! \************************************/ /*! exports provided: saveLocaly, getLocaly, removeLocaly */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveLocaly", function() { return saveLocaly; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaly", function() { return getLocaly; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeLocaly", function() { return removeLocaly; }); // FONCTIONS UTILES AU STOCKAGE LOCAL (SESSION, COOKIES, INDEXDB, ETC.) // Revenir pour gérer le cas où local.storage n'est pas connu pour utiliser cookie var saveLocaly = function saveLocaly(name, data) { localStorage.setItem(name, JSON.stringify(data)); }; var getLocaly = function getLocaly(name) { var json = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (json) return JSON.parse(localStorage.getItem(name));else return localStorage.getItem(name); }; var removeLocaly = function removeLocaly(name) { localStorage.removeItem(name); }; /***/ }), /***/ "./src/tools/dom.js": /*!**************************!*\ !*** ./src/tools/dom.js ***! \**************************/ /*! exports provided: addElement */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addElement", function() { return addElement; }); /* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../tools/main */ "../tools/main.js"); /* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tools_main__WEBPACK_IMPORTED_MODULE_0__); function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } // Fonction associant les attributs fournis à un champ de formulaire var addElement = function addElement(eltParent, eltType) { var eltContent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ""; var eltId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ""; var eltClass = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : []; var eltAttributes = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {}; var replace = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : true; if (Object(_tools_main__WEBPACK_IMPORTED_MODULE_0__["isEmpty"])(eltType) || Object(_tools_main__WEBPACK_IMPORTED_MODULE_0__["isEmpty"])(eltParent)) return false;else { var newElement = document.createElement(eltType); if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_0__["isEmpty"])(eltId)) // tester si l'id n'est pas déjà utilisé dans le DOM ? newElement.id = eltId; if (Array.isArray(eltClass) && eltClass.length != 0) { for (var i in eltClass) { newElement.classList.add(eltClass[i]); } } if (_typeof(eltAttributes) === "object") // !! tous les objets ne sont pas ok { for (var attributName in eltAttributes) { newElement.setAttribute(attributName, eltAttributes[attributName]); } } if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_0__["isEmpty"])(eltContent)) newElement.innerHTML = eltContent.replace(/\n/g, "
    "); // innerHTML permet d'ajouter du texte ayant lui-même des balises, etc. if (replace) eltParent.innerHTML = ""; eltParent.appendChild(newElement); } }; /***/ }), /***/ "./src/tools/everywhere.js": /*!*********************************!*\ !*** ./src/tools/everywhere.js ***! \*********************************/ /*! exports provided: helloDev, updateAccountLink */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "helloDev", function() { return helloDev; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateAccountLink", function() { return updateAccountLink; }); // Ce script fournit des fonctions utilisées sur toutes les pages du site var helloDev = function helloDev() { console.log("**** Hello ami développeur :-)\n\nLe code de WikiLerni est libre et vous pouvez le trouver à cette adresse :\nhttps://forge.chapril.org/Fab_Blab/WikiLerni\n\nPour les suggestions d'amélioration ou questions : dev@wililerni.com ****"); return true; }; var updateAccountLink = function updateAccountLink(status, configTemplate) { var link = document.getElementById("accountHeadLink"); var homePage = status + "HomePage"; link.href = "/" + configTemplate[homePage]; }; /***/ }), /***/ "./src/tools/forms.js": /*!****************************!*\ !*** ./src/tools/forms.js ***! \****************************/ /*! exports provided: setAttributesToInputs, getDatasFromInputs, empyForm, empyAndHideForm */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setAttributesToInputs", function() { return setAttributesToInputs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDatasFromInputs", function() { return getDatasFromInputs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "empyForm", function() { return empyForm; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "empyAndHideForm", function() { return empyAndHideForm; }); /* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../tools/main */ "../tools/main.js"); /* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tools_main__WEBPACK_IMPORTED_MODULE_0__); function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } // Fonction associant les attributs fournis à un champ de formulaire var setAttributesToInputs = function setAttributesToInputs(inputsConf, myForm) { for (var i in myForm.elements) { if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_0__["isEmpty"])(myForm.elements[i].id)) { var idInput = myForm.elements[i].id; if (inputsConf[idInput] !== undefined) { var inputHTML = document.getElementById(idInput); for (var attribute in inputsConf[idInput]) { inputHTML.setAttribute(attribute, inputsConf[idInput][attribute]); } } } } return true; }; // Récupère toutes les valeurs de champs en omettant les checkbox non cochées, etc. var getDatasFromInputs = function getDatasFromInputs(myForm) { var datas = {}; var formData = new FormData(myForm); var _iterator = _createForOfIteratorHelper(formData.entries()), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var entrie = _step.value; datas[entrie[0]] = entrie[1]; } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } return datas; }; // Vide tous les champs d'un formulaire, y compris hidden, checkbox, etc. // Revoir pour les select var empyForm = function empyForm(myForm) { var formData = new FormData(myForm); var _iterator2 = _createForOfIteratorHelper(formData.entries()), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var entrie = _step2.value; if (myForm.elements[entrie[0]].type == "checkbox" || myForm.elements[entrie[0]].type == "radio") myForm.elements[entrie[0]].checked = false;else myForm.elements[entrie[0]].value = ""; } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } return true; }; // Vide et cache le formulaire var empyAndHideForm = function empyAndHideForm(myForm) { empyForm(myForm); myForm.style.display = "none"; }; /***/ }), /***/ "./src/tools/matomo.js": /*!*****************************!*\ !*** ./src/tools/matomo.js ***! \*****************************/ /*! exports provided: loadMatomo */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadMatomo", function() { return loadMatomo; }); /* harmony import */ var _config_matomo_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../config/matomo.js */ "../config/matomo.js"); /* harmony import */ var _config_matomo_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_config_matomo_js__WEBPACK_IMPORTED_MODULE_0__); // Fonction chargeant le code matomo var loadMatomo = function loadMatomo() { // chargement de matomo var _paq = window._paq = window._paq || []; //ajout cnil : _paq.push([function () { var self = this; function getOriginalVisitorCookieTimeout() { var now = new Date(), nowTs = Math.round(now.getTime() / 1000), visitorInfo = self.getVisitorInfo(); var createTs = parseInt(visitorInfo[2]); var cookieTimeout = 33696000; // 13 mois en secondes var originalTimeout = createTs + cookieTimeout - nowTs; return originalTimeout; } this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout()); }]); //--fin ajout cnil _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function () { var u = _config_matomo_js__WEBPACK_IMPORTED_MODULE_0__["matomo"].url; _paq.push(['setTrackerUrl', u + 'matomo.php']); _paq.push(['setSiteId', _config_matomo_js__WEBPACK_IMPORTED_MODULE_0__["matomo"].siteId]); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.type = 'text/javascript'; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s); })(); }; /***/ }), /***/ "./src/tools/users.js": /*!****************************!*\ !*** ./src/tools/users.js ***! \****************************/ /*! exports provided: getTimeDifference, setSession, checkAnswerDatas, checkSession */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTimeDifference", function() { return getTimeDifference; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setSession", function() { return setSession; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkAnswerDatas", function() { return checkAnswerDatas; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkSession", function() { return checkSession; }); /* harmony import */ var _config_instance_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../config/instance.js */ "../config/instance.js"); /* harmony import */ var _config_instance_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_config_instance_js__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _config_users_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../config/users.js */ "../config/users.js"); /* harmony import */ var _config_users_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_config_users_js__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _clientstorage_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clientstorage.js */ "./src/tools/clientstorage.js"); /* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../tools/main */ "../tools/main.js"); /* harmony import */ var _tools_main__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_tools_main__WEBPACK_IMPORTED_MODULE_3__); function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } var lang = _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["availableLangs"][0]; var configTemplate = __webpack_require__("../views sync recursive ^\\.\\/.*\\.js$")("./" + _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["theme"] + "/config/" + lang + ".js"); var getTimeDifference = function getTimeDifference() { // multiplier par -1, car c'est ce qu'il faut "ajouter" à l'heure UTC pour revenir en heure locale qui m'intéresse et non l'inverse var timeLocal = new Date().getTimezoneOffset() * -1; if (timeLocal > _config_users_js__WEBPACK_IMPORTED_MODULE_1__["timeDifferenceMax"] || timeLocal < _config_users_js__WEBPACK_IMPORTED_MODULE_1__["timeDifferenceMin"]) return 0;else return timeLocal; }; // J'utilise le stockage local du navigateur pour enregistrer les données permettant de reconnaître l'utilisateur par la suite // Seul le serveur pourra vérifier que les identifiants sont (toujours) valides. var setSession = function setSession(userId, token, durationTS) { var storageUser = { id: userId, token: token, duration: durationTS }; Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["saveLocaly"])("user", storageUser); }; // Vérifie qu'il y a des données locales concernant le résultat d'un quiz ou d'un groupe de quizs // Et les ajoute aux données envoyées par les formulaires d'inscription/connexion si c'est le cas var checkAnswerDatas = function checkAnswerDatas(datas) { var lastAnswer = Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["getLocaly"])("lastAnswer"); if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(lastAnswer)) { var answer = JSON.parse(lastAnswer); if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(answer.duration) && !Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(answer.nbCorrectAnswers) && !Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(answer.nbQuestions) && (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(answer.QuestionnaireId) || !Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(answer.GroupId))) { datas.duration = answer.duration; datas.nbCorrectAnswers = answer.nbCorrectAnswers; datas.nbQuestions = answer.nbQuestions; if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(answer.QuestionnaireId)) datas.QuestionnaireId = answer.QuestionnaireId;else datas.GroupId = answer.GroupId; } } return datas; }; // Cette fonction teste la connexion de l'utilisateur d'une page // On peut fournis une liste de statuts acceptés (si vide = tous), ainsi qu'une url de redirection si non connecté, un message d'erreur à afficher sur la page de destination et l'url sur laquelle revenir une fois connecté var checkSession = /*#__PURE__*/function () { var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { var status, urlRedirection, message, urlWanted, _args = arguments; return regeneratorRuntime.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: status = _args.length > 0 && _args[0] !== undefined ? _args[0] : []; urlRedirection = _args.length > 1 ? _args[1] : undefined; message = _args.length > 2 ? _args[2] : undefined; urlWanted = _args.length > 3 ? _args[3] : undefined; return _context.abrupt("return", new Promise(function (resolve, reject) { var userDatas = Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["getLocaly"])("user"); if (Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(userDatas)) { redirectUser(urlRedirection, message, urlWanted); resolve(false); } else { var user = JSON.parse(userDatas); if (Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(user.id) || Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(user.token) || Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(user.duration) || user.duration < Date.now()) { Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["removeLocaly"])("user"); redirectUser(urlRedirection, message, urlWanted); resolve(false); } else { var xhr = new XMLHttpRequest(); xhr.open("GET", _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["apiUrl"] + _config_users_js__WEBPACK_IMPORTED_MODULE_1__["userRoutes"] + _config_users_js__WEBPACK_IMPORTED_MODULE_1__["checkLoginRoute"] + user.token); xhr.onload = function () { var response = JSON.parse(xhr.responseText); if (xhr.status === 200 && response.isValid && response.id != undefined) { if (response.id === user.id) { user.name = response.name; user.language = response.language; user.timeDifference = response.timeDifference; user.status = response.status; // c'est le token qui sert à vérifier le statut à chaque requête à l'API Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["saveLocaly"])("user", user); // si il s'agit d'un "user" et que son abonnement a expiré, je le redirige vers la caisse :-) if (response.status === "user" && response.nbDaysOk <= 0) { var urlAccount = _config_instance_js__WEBPACK_IMPORTED_MODULE_0__["siteUrl"] + "/" + configTemplate.accountPage; if (window.location.href.indexOf(urlAccount) === -1) window.location.assign("/" + configTemplate.accountPage + "#subscribe"); // passée directement ici, l'ancre #subscribe ne fonctionne pas !? resolve(true); } else { if (status.length !== 0 && status.indexOf(response.status) === -1) { redirectUser(urlRedirection, message, urlWanted); resolve(false); } else resolve(true); } } else { Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["removeLocaly"])("user"); redirectUser(urlRedirection, message, urlWanted); resolve(false); } } else { Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["removeLocaly"])("user"); redirectUser(urlRedirection, message, urlWanted); resolve(false); } }; xhr.onerror = function () { return reject(xhr.statusText); }; xhr.send(); } } })); case 5: case "end": return _context.stop(); } } }, _callee); })); return function checkSession() { return _ref.apply(this, arguments); }; }(); // Cette fonction sert à la précédente en cas de connexion non valide var redirectUser = function redirectUser(urlRedirection, message, urlWanted) { if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(message)) Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["saveLocaly"])("message", message); if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(urlWanted)) Object(_clientstorage_js__WEBPACK_IMPORTED_MODULE_2__["saveLocaly"])("url", urlWanted); if (!Object(_tools_main__WEBPACK_IMPORTED_MODULE_3__["isEmpty"])(urlRedirection)) window.location.assign(urlRedirection); }; /***/ }) /******/ }); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vd2VicGFjay9ib290c3RyYXAiLCJ3ZWJwYWNrOi8vLy4uL2NvbmZpZy9pbnN0YW5jZS5qcyIsIndlYnBhY2s6Ly8vLi4vY29uZmlnL21hdG9tby5qcyIsIndlYnBhY2s6Ly8vLi4vY29uZmlnL3F1ZXN0aW9ubmFpcmVzLmpz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i4uXG4gICAgICAgICAgICBteVZhcj1teVZhci50cmltKCk7XG4gICAgICAgICAgICBpZihteVZhcj09PVwiXCIpXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICB9XG4gICAgfVxuICAgIFxuICAgIHN0YXRpYyB0cmltSWZOb3ROdWxsKG15U3RyaW5nKVxuICAgIHtcbiAgICAgICAgaWYoVG9vbC5pc0VtcHR5KG15U3RyaW5nKSlcbiAgICAgICAgICAgIG15U3RyaW5nPW51bGw7XG4gICAgICAgIGVsc2VcbiAgICAgICAge1xuICAgICAgICAgICAgbXlTdHJpbmcrPVwiXCI7Ly8gc2kgYXV0cmUgY2hvc2UgcXUndW5lIGNoYcOubmUgZW52b3nDqS4uLlxuICAgICAgICAgICAgbXlTdHJpbmc9bXlTdHJpbmcudHJpbSgpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBteVN0cmluZztcbiAgICB9XG5cblxuICAgIHN0YXRpYyBzaG9ydGVuSWZMb25nZXJUaGFuKG15U3RyaW5nLCBtYXgpXG4gICAge1xuICAgICAgICBteVN0cmluZys9XCJcIjsvLyBhdSBjYXMgb8O5IGNlbGEgbmUgc2VyYWl0IHBhcyB1bmUgY2hhw65uZS4uLlxuICAgICAgIGlmKG15U3RyaW5nLmxlbmd0aCA+IG1heClcbiAgICAgICAgICAgIG15U3RyaW5nPW15U3RyaW5nLnN1YnN0cmluZygwLCAobWF4LTMpKStcIuKAplwiO1xuICAgICAgICByZXR1cm4gbXlTdHJpbmc7XG4gICAgfVxuXG4gICAgLy8gc291cmNlIDogaHR0cHM6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvMTU2MDQxNDAvcmVwbGFjZS1tdWx0aXBsZS1zdHJpbmdzLXdpdGgtbXVsdGlwbGUtb3RoZXItc3RyaW5nc1xuICAgIHN0YXRpYyByZXBsYWNlQWxsKG15U3RyaW5nLCBtYXBPYmopXG4gICAge1xuICAgICAgICBjb25zdCByZXBsYWNlRWx0cyA9IG5ldyBSZWdFeHAoT2JqZWN0LmtleXMobWFwT2JqKS5qb2luKFwifFwiKSxcImdpXCIpO1xuICAgICAgICByZXR1cm4gbXlTdHJpbmcucmVwbGFjZShyZXBsYWNlRWx0cywgKG1hdGNoZWQpID0+XG4gICAgICAgIHtcbiAgICAgICAgICAgIHJldHVybiBtYXBPYmpbbWF0Y2hlZF07XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIC8vIHNvdXJjZSA6IGh0dHBzOi8vZGV2ZWxvcGVyLm1vemlsbGEub3JnL2ZyL2RvY3MvV2ViL0phdmFTY3JpcHQvUmVmZXJlbmNlL09iamV0c19nbG9iYXV4L01hdGgvcmFuZG9tXG4gICAgc3RhdGljIGdldFJhbmRvbUludChtaW4sIG1heClcbiAgICB7XG4gICAgICAgIG1pbiA9IE1hdGguY2VpbChtaW4pO1xuICAgICAgICBtYXggPSBNYXRoLmZsb29yKG1heCk7XG4gICAgICAgIHJldHVybiBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiAobWF4IC0gbWluKSkgKyBtaW47XG4gICAgfVxuXG4gICAgLy8gw6AgY29tcGzDqXRlciA6IGh0dHBzOi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL0RhdGVfZm9ybWF0X2J5X2NvdW50cnlcbiAgICBzdGF0aWMgZGF0ZUZvcm1hdChkYXRlU3RyaW5nLCBsYW5nPVwiZnJcIilcbiAgICB7XG4gICAgICAgIGlmKFRvb2wuaXNFbXB0eShkYXRlU3RyaW5nKSlcbiAgICAgICAgICAgIHJldHVybiBcIlwiO1xuICAgICAgICBsZXQgbXlEYXRlPW5ldyBEYXRlKGRhdGVTdHJpbmcpO1xuICAgICAgICBsZXQgbXlEYXk9bXlEYXRlLmdldERhdGUoKStcIlwiO1xuICAgICAgICBpZihteURheS5sZW5ndGg9PT0xKVxuICAgICAgICAgICAgbXlEYXk9XCIwXCIrbXlEYXk7XG4gICAgICAgIGxldCBteU1vdW50aD0obXlEYXRlLmdldE1vbnRoKCkrMSkrXCJcIjtcbiAgICAgICAgaWYobXlNb3VudGgubGVuZ3RoPT09MSlcbiAgICAgICAgICAgIG15TW91bnRoPVwiMFwiK215TW91bnRoO1xuICAgICAgICBsZXQgbXlZZWFyPW15RGF0ZS5nZXRGdWxsWWVhcigpO1xuICAgICAgICBpZihsYW5nPT09XCJmclwiKVxuICAgICAgICAgICAgcmV0dXJuIG15RGF5K1wiL1wiK215TW91bnRoK1wiL1wiK215WWVhcjtcbiAgICAgICAgZWxzZSBpZiAobGFuZz09PVwiZm9ybVwiKS8vIDIwMTQtMDItMDlcbiAgICAgICAgICAgIHJldHVybiBteVllYXIrXCItXCIrbXlNb3VudGgrXCItXCIrbXlEYXk7XG4gICAgICAgIGVsc2VcbiAgICAgICAgICAgIHJldHVybiBteU1vdW50aCtcIi9cIitteURheStcIi9cIitteVllYXI7XG4gICAgfVxuXG4gICAgLy8gT24gZW5sw6h2ZSB2b2xvbnRhaXJlbWVudCBsZXMgMC9PIHBvdXIgw6l2aXRlciBsZXMgY29uZnVzaW9ucyAhXG4gICAgLy8gRXQgbWlldXggdmF1dCBhdXNzaSBkw6lidXRlciBldCBmaW5pciBwYXIgdW5lIGxldHRyZSBzaW1wbGUuXG4gICAgc3RhdGljIGdldFBhc3N3b3JkIChuYkNhck1pbiwgbmJDYXJNYXgpXG4gICAge1xuICAgICAgICBjb25zdCBuYkNhcj1uYkNhck1pbitNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkqKG5iQ2FyTWF4LW5iQ2FyTWluKSk7XG4gICAgICAgIGNvbnN0IGxldHRlcnM9XCJBQkNERUZHSElKS0xNTlBRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5wcXJzdHV2d3h5elwiO1xuICAgICAgICBjb25zdCBvdGhlcnM9XCIxMjM0NTY3ODkhPy4qLV8lQCbDicOAw4jDmeKCrCTDgsOKw5vDj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zW1wicXVlc3Rpb25faWRfcmVzcG9uc2VfXCIraWRDaG9pY2VdIT1pZFF1ZXN0aW9uKSAvLyBvbiBjb21tZW5jZSDDoCB0cmFpdGVyIHVuZSBub3V2ZWxsZSBxdWVzdGlvblxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgaWRRdWVzdGlvbj11c2VyUmVzcG9uc2VzW1wicXVlc3Rpb25faWRfcmVzcG9uc2VfXCIraWRDaG9pY2VdO1xuICAgICAgICAgICAgICAgICAgICBhbnN3ZXIubmJRdWVzdGlvbnMrKztcbiAgICAgICAgICAgICAgICAgICAgaWYoZ29vZFJlc3BvbnNlKSAvLyByw6lzdWx0YXQgZGUgbGEgcXVlc3Rpb24gcHLDqWPDqWRlbnRlXG4gICAgICAgICAgICAgICAgICAgICAgICBhbnN3ZXIubmJDb3JyZWN0QW5zd2VycysrO1xuICAgICAgICAgICAgICAgICAgICBnb29kUmVzcG9uc2U9dHJ1ZTsvLyByw6lwb25zZSBib25uZSBqdXNxdSfDoCBsYSBwcmVtacOocmUgZXJyZXVyLi4uXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmKHVzZXJSZXNwb25zZXNbaXRlbV09PVwidHJ1ZVwiKVxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoXCJyZXNwb25zZV9cIitpZENob2ljZSkucGFyZW50Tm9kZS5jbGFzc0xpc3QuYWRkKFwiaXNDb3JyZWN0XCIpO1xuICAgICAgICAgICAgICAgICAgICBpZih1c2VyUmVzcG9uc2VzW1wicmVzcG9uc2VfXCIraWRDaG9pY2VdPT09dW5kZWZpbmVkKS8vIHVuZSBib25uZSByw6lwb25zZSBuJ2EgcGFzIMOpdMOpIHPDqWxlY3Rpb25uw6llXG4gICAgICAgICAgICAgICAgICAgICAgICBnb29kUmVzcG9uc2U9ZmFsc2U7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGlmKHVzZXJSZXNwb25zZXNbXCJyZXNwb25zZV9cIitpZENob2ljZV09PT1cIm9uXCIpLy8gcsOpcG9uc2UgY29jaMOpZSBuZSBmYWlzYW50IHBhcyBwYXJ0aWUgZGVzIGJvbm5lc1xuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBnb29kUmVzcG9uc2U9ZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZChcInJlc3BvbnNlX1wiK2lkQ2hvaWNlKS5wYXJlbnROb2RlLmNsYXNzTGlzdC5hZGQoXCJpc05vdENvcnJlY3RcIik7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLy8gc2kgaidhaSBiaWVuIHLDqXBvbmR1IMOgIGxhIGRlcm5pw6hyZSBxdWVzdGlvbiwgaWwgZmF1dCBsZSBjb21wdGVyIGljaSwgY2FyIGplIHN1aXMgc29ydGkgZGUgbGEgYm91Y2xlIDpcbiAgICAgICAgaWYoZ29vZFJlc3BvbnNlKVxuICAgICAgICAgICAgYW5zd2VyLm5iQ29ycmVjdEFuc3dlcnMrKztcblxuICAgICAgICAvLyBBZmZpY2hhZ2UgZHUgcsOpc3VsdGF0LCBzdWl2YW50IHNpIGwndXRpbGlzYXRldXIgZXN0IGNvbm5lY3TDqSBvdSBwYXMgZXQgc29uIHNjb3JlIDpcbiAgICAgICAgbGV0IGdldE91cHV0PWNoZWNrQW5zd2VyT3VwdXQoYW5zd2VyKTtcbiAgICAgICAgaWYoaXNDb25uZWN0ZWQpXG4gICAgICAgIHtcbiAgICAgICAgICAgIC8vIFNpIGwndXRpbGlzYXRldXIgZXN0IGNvbm5lY3TDqSwgb24gZW5yZWdpc3RyZSBzb24gcsOpc3VsdGF0IHN1ciBsZSBzZXJ2ZXVyLlxuICAgICAgICAgICAgY29uc3QgeGhyU2F2ZUFuc3dlciA9IG5ldyBYTUxIdHRwUmVxdWVzdCgpO1xuICAgICAgICAgICAgeGhyU2F2ZUFuc3dlci5vcGVuKFwiUE9TVFwiLCBhcGlVcmwrcXVlc3Rpb25uYWlyZVJvdXRlcytzYXZlQW5zd2Vyc1JvdXRlKTtcbiAgICAgICAgICAgIHhoclNhdmVBbnN3ZXIub25yZWFkeXN0YXRlY2hhbmdlID0gZnVuY3Rpb24oKVxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLnJlYWR5U3RhdGUgPT0gWE1MSHR0cFJlcXVlc3QuRE9ORSlcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGxldCB4aHJSZXNwb25zZT1KU09OLnBhcnNlKHRoaXMucmVzcG9uc2VUZXh0KTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuc3RhdHVzID09PSAyMDEgJiYgKHhoclJlc3BvbnNlLm1lc3NhZ2UpKVxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBnZXRPdXB1dCs9XCI8YnI+XCIreGhyUmVzcG9uc2UubWVzc2FnZS5yZXBsYWNlKFwiI1VSTFwiLCBjb25maWdUZW1wbGF0ZS51c2VySG9tZVBhZ2UpO1xuICAgICAgICAgICAgICAgICAgICAgICAgY2hlY2tQcmV2aW91c1Jlc3BvbnNlcyh1c2VyKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICBnZXRPdXB1dCs9XCI8YnI+XCIrcmVzcG9uc2VTYXZlZEVycm9yLnJlcGxhY2UoXCIjVVJMXCIsIGNvbmZpZ1RlbXBsYXRlLnVzZXJIb21lUGFnZSk7XG4gICAgICAgICAgICAgICAgICAgIC8vIG9uI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YmFzZXIgc3VyIGxhIHZlcnNpb24gYWN0dWVsbGUgZHUgcXVpeiwgY2FyIGxlIG5vbWJyZSBkZSBxdWVzdGlvbnMgYSBwdSDDqXZvbHVlci5cbiAgICAgICAgICAgICAgICAgICAgICAgIHRvdE5iQ29ycmVjdEFuc3dlcnMrPXJlc3BvbnNlW2ldLm5iQ29ycmVjdEFuc3dlcnM7XG4gICAgICAgICAgICAgICAgICAgICAgICB0b3REdXJhdGlvbis9cmVzcG9uc2VbaV0uZHVyYXRpb247XG4gICAgICAgICAgICAgICAgICAgICAgICBtYXBMaW5lQ29udGVudCA9XG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgREFURUFOU1dFUiA6IGRhdGVGb3JtYXQocmVzcG9uc2VbaV0uY3JlYXRlZEF0LCBsYW5nKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBOQkNPUlJFQ1RBTlNXRVJTIDogcmVzcG9uc2VbaV0ubmJDb3JyZWN0QW5zd2VycyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBOQlFVRVNUSU9OUyA6IHJlc3BvbnNlW2ldLm5iUXVlc3Rpb25zLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEFWR0RVUkFUSU9OIDogcmVzcG9uc2VbaV0uZHVyYXRpb25cbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICBwcmV2aW91c0Fuc3dlcnNDb250ZW50Kz1cIjxsaT5cIityZXBsYWNlQWxsKHByZXZpb3VzQW5zd2Vyc0xpbmUsIG1hcExpbmVDb250ZW50KStcIjwvbGk+XCI7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgbWFwTGluZUNvbnRlbnQgPVxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBBVkdEVVJBVElPTiA6IE1hdGgucm91bmQodG90RHVyYXRpb24vbm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AgICAgICAgfVxuICAgICAgICBlbHNlXG4gICAgICAgIHtcbiAgICAgICAgICAgIGNvbnN0IHVzZXI9SlNPTi5wYXJzZSh1c2VyRGF0YXMpO1xuICAgICAgICAgICAgaWYoaXNFbXB0eSh1c2VyLmlkKSB8fMKgaXNFbXB0eSh1c2VyLnRva2VuKSB8fCBpc0VtcHR5KHVzZXIuZHVyYXRpb24pIHx8IHVzZXIuZHVyYXRpb24gPCBEYXRlLm5vdygpKVxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHJlbW92ZUxvY2FseShcInVzZXJcIik7XG4gICAgICAgICAgICAgICAgcmVkaXJlY3RVc2VyKHVybFJlZGlyZWN0aW9uLCBtZXNzYWdlLCB1cmxXYW50ZWQpO1xuICAgICAgICAgICAgICAgIHJlc29sdmUoZmFsc2UpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGNvbnN0IHhociA9IG5ldyBYTUxIdHRwUmVxdWVzdCgpO1xuICAgICAgICAgICAgICAgIHhoci5vcGVuKFwiR0VUXCIsIGFwaVVybCt1c2VyUm91dGVzK2NoZWNrTG9naW5Sb3V0ZSt1c2VyLnRva2VuKTtcbiAgICAgICAgICAgICAgICB4aHIub25sb2FkID0gKCkgPT5cbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGxldCByZXNwb25zZT1KU09OLnBhcnNlKHhoci5yZXNwb25zZVRleHQpO1xuICAgICAgICAgICAgICAgICAgICBpZiAoeGhyLnN0YXR1cyA9PT0gMjAwICYmIHJlc3BvbnNlLmlzVmFsaWQgJiYgcmVzcG9uc2UuaWQgIT0gdW5kZWZpbmVkKVxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZihyZXNwb25zZS5pZD09PXVzZXIuaWQpXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdXNlci5uYW1lPXJlc3BvbnNlLm5hbWU7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdXNlci5sYW5ndWFnZT1yZXNwb25zZS5sYW5ndWFnZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB1c2VyLnRpbWVEaWZmZXJlbmNlPXJlc3BvbnNlLnRpbWVEaWZmZXJlbmNlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVzZXIuc3RhdHVzPXJlc3BvbnNlLnN0YXR1czsvLyBjJ2VzdCBsZSB0b2tlbiBxdWkgc2VydCDDoCB2w6lyaWZpZXIgbGUgc3RhdHV0IMOgIGNoYXF1ZSByZXF1w6p0ZSDDoCBsJ0FQSVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNhdmVMb2NhbHkoXCJ1c2VyXCIsIHVzZXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHNpIGlsIHMnYWdpdCBkJ3VuIFwidXNlclwiIGV0IHF1ZSBzb24gYWJvbm5lbWVudCBhIGV4cGlyw6ksIGplIGxlIHJlZGlyaWdlIHZlcnMgbGEgY2Fpc3NlIDotKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmKHJlc3BvbnNlLnN0YXR1cz09PVwidXNlclwiICYmIHJlc3BvbnNlLm5iRGF5c09rIDw9IDApXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB1cmxBY2NvdW50PXNpdGVVcmwrXCIvXCIrY29uZmlnVGVtcGxhdGUuYWNjb3VudFBhZ2U7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmKHdpbmRvdy5sb2NhdGlvbi5ocmVmLmluZGV4T2YodXJsQWNjb3VudCk9PT0tMSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpbmRvdy5sb2NhdGlvbi5hc3NpZ24oXCIvXCIrY29uZmlnVGVtcGxhdGUuYWNjb3VudFBhZ2UrXCIjc3Vic2NyaWJlXCIpOy8vIHBhc3PDqWUgZGlyZWN0ZW1lbnQgaWNpLCBsJ2FuY3JlICNzdWJzY3JpYmUgbmUgZm9uY3Rpb25uZSBwYXMgIT9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZSh0cnVlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYoc3RhdHVzLmxlbmd0aCE9PTAgJiYgc3RhdHVzLmluZGV4T2YocmVzcG9uc2Uuc3RhdHVzKT09PS0xKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWRpcmVjdFVzZXIodXJsUmVkaXJlY3Rpb24sIG1lc3NhZ2UsIHVybFdhbnRlZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKGZhbHNlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKHRydWUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZW1vdmVMb2NhbHkoXCJ1c2VyXCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZGlyZWN0VXNlcih1cmxSZWRpcmVjdGlvbiwgbWVzc2FnZSwgdXJsV2FudGVkKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKGZhbHNlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlbW92ZUxvY2FseShcInVzZXJcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICByZWRpcmVjdFVzZXIodXJsUmVkaXJlY3Rpb24sIG1lc3NhZ2UsIHVybFdhbnRlZCk7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXNvbHZlKGZhbHNlKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB4aHIub25lcnJvciA9ICgpID0+IHJlamVjdCh4aHIuc3RhdHVzVGV4dCk7XG4gICAgICAgICAgICAgICAgeGhyLnNlbmQoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0pO1xufVxuLy8gQ2V0dGUgZm9uY3Rpb24gc2VydCDDoCBsYSBwcsOpY8OpZGVudGUgZW4gY2FzIGRlIGNvbm5leGlvbiBub24gdmFsaWRlXG5jb25zdCByZWRpcmVjdFVzZXIgPSAodXJsUmVkaXJlY3Rpb24sIG1lc3NhZ2UsIHVybFdhbnRlZCkgPT5cbntcbiAgICBpZighaXNFbXB0eShtZXNzYWdlKSlcbiAgICAgICAgc2F2ZUxvY2FseShcIm1lc3NhZ2VcIiwgbWVzc2FnZSk7XG4gICAgaWYoIWlzRW1wdHkodXJsV2FudGVkKSlcbiAgICAgICAgc2F2ZUxvY2FseShcInVybFwiLCB1cmxXYW50ZWQpO1xuICAgIGlmKCFpc0VtcHR5KHVybFJlZGlyZWN0aW9uKSlcbiAgICAgICAgd2luZG93LmxvY2F0aW9uLmFzc2lnbih1cmxSZWRpcmVjdGlvbik7XG59Il0sInNvdXJjZVJvb3QiOiIifQ==