parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),P(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;P(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:S(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},e}var e=this&&this.__awaiter||function(t,r,e,n){return new(e||(e=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(r){i(r)}}function c(t){try{u(n.throw(t))}catch(r){i(r)}}function u(t){var r;t.done?o(t.value):(r=t.value,r instanceof e?r:new e(function(t){t(r)})).then(a,c)}u((n=n.apply(t,r||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.updateSettings=void 0;var n=function(t){return e(void 0,void 0,void 0,r().mark(function e(){var n,o,i,a,c;return r().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(i=null===(n=null===growWPAdminData||void 0===growWPAdminData?void 0:growWPAdminData.wpApi)||void 0===n?void 0:n.nonce,(a=null===(o=null===growWPAdminData||void 0===growWPAdminData?void 0:growWPAdminData.wpApi)||void 0===o?void 0:o.root)&&i){r.next=4;break}return r.abrupt("return");case 4:return r.next=6,fetch("".concat(a,"grow/v1/settings"),{method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":i},body:JSON.stringify(t)});case 6:return c=r.sent,r.next=9,c.json();case 9:return r.abrupt("return",r.sent);case 10:case"end":return r.stop()}},e)}))};exports.updateSettings=n; },{}],"mpMq":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.triggerPopUpWindow=void 0;var t={width:980,height:820,popup:!0,top:60};function e(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.blur();var i=Object.assign({},t,c);return window.open(e.href||(null!==(n=e.getAttribute("data-href"))&&void 0!==n?n:""),r,o(i))}exports.triggerPopUpWindow=e;var o=function(t){var e=Object.keys(t).reduce(function(e,o){return"".concat(e).concat(o,"=").concat(n(t[o]),",")},"");return Object.prototype.hasOwnProperty.call(t,"left")||(e="".concat(e,"left=").concat((window.innerWidth-t.width)/2)),e},n=function(t){return"boolean"!=typeof t?"".concat(t):t?"yes":"no"}; },{}],"CGpb":[function(require,module,exports) { "use strict";function t(t){return o(t)||r(t)||n(t)||e()}function e(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function o(t){if(Array.isArray(t))return i(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:null;if(growWPAdminData.adminPageCopy){var n="authenticated"===t;T("disconnected"!==t),S(n),c({copy:growWPAdminData.adminPageCopy[t],readerName:e,isAuthenticated:n}).map(g),growWPAdminData.adminPageCopy.featureLinks&&Object.keys(growWPAdminData.adminPageCopy.featureLinks).map(function(t){E(n,t)})}};function c(t){var e,n,r=t.copy,o=t.readerName,i=t.isAuthenticated;return[{element:document.querySelector(exports.CONNECTED_SITE_SELECTOR),content:r.connectedSite},{element:document.querySelector(exports.TITLE_SELECTOR),content:i&&o?"Hi, ".concat(o,"! ").concat(r.title):r.title},{element:document.querySelector(exports.SUBTITLE_SELECTOR),content:r.subtitle},{element:document.querySelector(exports.PRIMARY_BUTTON_SELECTOR),content:r.primaryButtonText,href:i?(0,exports.buildSiteRoute)("/settings/"):"".concat(null===(e=growWPAdminData.growRemote)||void 0===e?void 0:e.publisherDashboard,"/wp-auth?domain=").concat(growWPAdminData.siteDomain,"&path=").concat(null!==(n=growWPAdminData.siteBasePath)&&void 0!==n?n:"","&title=").concat(growWPAdminData.siteTitle)},{element:document.querySelector("".concat(exports.SECONDARY_BUTTON_SELECTOR," > span")),content:r.secondaryButtonText}]}function d(){var t=document.querySelector(exports.PRIMARY_BUTTON_SELECTOR);if(t){var e=document.querySelector(exports.SECONDARY_BUTTON_SELECTOR);t.addEventListener("click",function(e){(0,exports.getIsAuthenticated)(document.querySelector(exports.PAGE_SELECTOR))||(e.preventDefault(),(0,a.triggerPopUpWindow)(t,"growWPAuthWindow"))}),e.addEventListener("click",function(t){document.querySelector(".grow-admin-page--is-authenticated")?(0,s.handleSignOut)(t):(0,s.handleDisconnect)(t)}),l()}}function l(){t(document.getElementsByClassName("collapse-button")).map(function(t){var e,n,r=document.getElementById(null!==(e=t.getAttribute("aria-controls"))&&void 0!==e?e:"");null==r||r.style.setProperty("--section-height","".concat(null!==(n=null==r?void 0:r.scrollHeight)&&void 0!==n?n:0,"px")),null==r||r.addEventListener("transitionstart",function(){"true"===r.getAttribute("aria-hidden")&&r.style.setProperty("overflow","hidden")}),null==r||r.addEventListener("transitionend",function(){"false"===r.getAttribute("aria-hidden")&&r.style.setProperty("overflow","visible")}),t.addEventListener("click",function(){var e;null==r||r.style.setProperty("--section-height","".concat(null!==(e=null==r?void 0:r.scrollHeight)&&void 0!==e?e:0,"px")),r&&p(r,t)})})}exports.updateContent=u,exports.setupButtons=d,exports.setupCollapseButtons=l;var p=function(t,e){"false"===t.getAttribute("aria-hidden")?(e.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true")):(e.setAttribute("aria-expanded","true"),t.setAttribute("aria-hidden","false"))},E=function(t,e){var n;null===(n=document.getElementsByClassName("grow-admin-page__feature--".concat(e))[0])||void 0===n||n.setAttribute("href",t?(0,exports.buildSiteRoute)(growWPAdminData.adminPageCopy.featureLinks[e].settingsRoute):growWPAdminData.adminPageCopy.featureLinks[e].helpLink)},m=function(t){var e;return"".concat(null===(e=growWPAdminData.growRemote)||void 0===e?void 0:e.publisherDashboard,"/dashboard/sites/").concat(growWPAdminData.growSiteId).concat(t)};exports.buildSiteRoute=m;var g=function(t){var e=t.element,n=t.content,r=t.href;e&&(e.innerHTML=n,e.getAttribute("href")&&r&&e.setAttribute("href",r))},T=function(){var t,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return null===(t=document.querySelector(exports.PAGE_SELECTOR))||void 0===t?void 0:t.classList[e?"add":"remove"]("".concat(exports.PAGE_SELECTOR.substring(1),"--is-connected"))},S=function(){var t,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return null===(t=document.querySelector(exports.PAGE_SELECTOR))||void 0===t?void 0:t.classList[e?"add":"remove"]("".concat(exports.PAGE_SELECTOR.substring(1),"--is-authenticated"))},f=function(t){return null==t?void 0:t.classList.contains("".concat(exports.PAGE_SELECTOR.substring(1),"--is-authenticated"))};exports.getIsAuthenticated=f; },{"../utils/triggerPopUpWindow":"mpMq","./remoteAuth":"HOhy"}],"HOhy":[function(require,module,exports) { "use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(){t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(D){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),c=new S(n||[]);return i(a,"_invoke",{value:b(e,r,c)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(D){return{type:"throw",arg:D}}}r.wrap=f;var p={};function d(){}function v(){}function y(){}var m={};l(m,c,function(){return this});var g=Object.getPrototypeOf,w=g&&g(g(N([])));w&&w!==n&&o.call(w,c)&&(m=w);var x=y.prototype=d.prototype=Object.create(m);function T(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function k(t,r){var n;i(this,"_invoke",{value:function(i,a){function c(){return new r(function(n,c){!function n(i,a,c,u){var s=h(t[i],t,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then(function(e){n("next",e,c,u)},function(e){n("throw",e,c,u)}):r.resolve(f).then(function(e){l.value=e,c(l)},function(e){return n("throw",e,c,u)})}u(s.arg)}(i,a,n,c)})}return n=n?n.then(c,c):c()}})}function b(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function _(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function N(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{u(n.next(e))}catch(t){i(t)}}function c(e){try{u(n.throw(e))}catch(t){i(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,c)}u((n=n.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.handleSignOut=exports.handleDisconnect=exports.handleAuthMessage=exports.fetchNewAccessToken=exports.refreshAccessToken=exports.saveTokenData=exports.loadTokenData=exports.getExpirationInterval=exports.initializeTokenRefresh=void 0;var n=require("../utils/convertExpiresInToUtcTime"),o=require("../utils/updateSettings"),i=require("./adminPageContent"),a="growAccessTokenData",c="/wp-auth/token/",u="refresh_token",s=6e4;function l(e,n){return r(this,void 0,void 0,t().mark(function r(){return t().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},r}var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{c(n.next(t))}catch(e){i(e)}}function u(t){try{c(n.throw(t))}catch(e){i(e)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(a,u)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0});var n=require("./remoteAuth"),o=require("./adminPageContent"),i=require("./journeyEnable"),a=require("./journeyDisable"),u=require("./journeyTroubleshoot");function c(){return r(this,void 0,void 0,e().mark(function t(){var r,i,a,u,c,s;return e().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(window.addEventListener("message",n.handleAuthMessage),(0,o.setupButtons)(),r=(0,n.loadTokenData)(),i=r.refreshToken,a=r.accessToken,u=r.expirationTime,c=r.readerName,i&&a&&u){t.next=5;break}return t.abrupt("return");case 5:(s=(0,n.getExpirationInterval)(u))>0&&(0,o.updateContent)("authenticated",c),(0,n.initializeTokenRefresh)(i,s);case 8:case"end":return t.stop()}},t)}))}function s(){return r(this,void 0,void 0,e().mark(function t(){return e().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(0,i.setupButtons)(),(0,a.setupButtons)(),(0,u.setupButtons)();case 3:case"end":return t.stop()}},t)}))}c(),s(); },{"./remoteAuth":"HOhy","./adminPageContent":"CGpb","./journeyEnable":"q4gY","./journeyDisable":"CcSd","./journeyTroubleshoot":"QClL"}]},{},["tcnz"], null) Eurelec – Institut européen d'électronique et d'informatique – La formation par la pratique

INSTITUT EUROPÉEN D’ÉLECTRONIQUE ET D’INFORMATIQUE

Suivez nous

55 ans au service de la formation !

La formation par la pratique !

Le groupe EURELEC

1ère école d'informatique au Maroc depuis 55 ans

Un groupe certifié

Un cursus inédit

Un apprentissage approuvé

Une satisfaction garantie

NOS PARTENAIRES

+ 2000 étudiants ont choisi EURELEC cette année!
Rejoignez les

    1 Campus à Casa

    50 ans d’expérience

    30.000 Lauréats

    23 Filières accréditées

    20 Nationalités