{"size": 11936, "ext": "js", "max_stars_repo_path": "Prev Build Exmaple/static/js/6.9d4235bc.chunk.js", "max_stars_repo_name": "dargonesti/LudoPortfolio", "max_stars_repo_stars_event_min_datetime": "2020-08-17T03:37:33.000Z", "max_stars_repo_stars_event_max_datetime": "2021-01-04T03:19:07.000Z", "max_issues_repo_path": "Prev Build Exmaple/static/js/6.9d4235bc.chunk.js", "max_issues_repo_name": "dargonesti/LudoPortfolio", "max_issues_repo_issues_event_min_datetime": "2020-10-22T14:52:04.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T03:22:07.000Z", "max_forks_repo_path": "Prev Build Exmaple/static/js/6.9d4235bc.chunk.js", "max_forks_repo_name": "dargonesti/LudoPortfolio", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 12, "max_forks_count": null, "avg_line_length": 5968.0, "max_line_length": 11891, "alphanum_fraction": 0.6896782842}
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{106:function(e,t,n){"use strict";n.r(t);var r=n(25),a=n(6),o=n(9),i=n(7),c=n(32),u=n(24),s=n(0),l=n.n(s),f=n(81),p=n(33),h=n.n(p);function d(e){return function(){var t,n=Object(u.a)(e);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Object(u.a)(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Object(c.a)(this,t)}}var g=function(e){Object(i.a)(n,e);var t=d(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.classes;Object(r.a)(e,["classes"]);return t={},l.a.createElement("div",null,l.a.createElement("div",{className:h()(t.main,t.mainRaised)},l.a.createElement("ul",null,l.a.createElement("li",null,l.a.createElement("a",{href:"https://www.akufen.ca/"},"Akufen.ca, minimalist, good mobile ")),l.a.createElement("li",null,l.a.createElement("a",{href:"https://fwa100.jam3.com/"},"FWA100, Minimalist, animated Intro with Gradient ( but just a 3js demo )")),l.a.createElement("li",null,l.a.createElement("a",{href:"https://www.madeleinedalla.com/"},"Madeleine Dalla by Marvin Schwaibold ( Photo protfolio )")),l.a.createElement("li",null,l.a.createElement("a",{href:"https://studiochevojon.com/"},"Studio ChevoJon by Pam Studio ( Photo protfolio, minimalist, paralax )")),l.a.createElement("li",null,l.a.createElement("a",{href:"https://codesandbox.io/s/nwq4j1j6lm?from-embed"},"Sweet Paralax Demo by Springs")))))}}]),n}(l.a.Component);t.default=Object(f.a)(g,"Components")},78:function(e,t,n){"use strict";var r=n(3),a=n(0),o=n.n(a),i=n(83),c=n.n(i),u=n(79),s=n(80),l=n(26),f=n.n(l),p=n(35);function h(e,t,n){return d.apply(this,arguments)}function d(){return(d=Object(p.a)(f.a.mark(function e(t,n,r){var a,o,i=arguments;return f.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=i.length>3&&void 0!==i[3]?i[3]:25,o=i.length>4&&void 0!==i[4]?i[4]:"image/jpeg",e.abrupt("return",new Promise(function(){var e=Object(p.a)(f.a.mark(function e(i,c){var u,s,l;return f.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=7;break}return e.next=3,r(n);case 3:return i(),e.abrupt("return");case 7:u=new Image,s=document.createElement("canvas"),l=s.getContext("2d"),u.onload=Object(p.a)(f.a.mark(function e(){var t,n,c,h,d,g,m;return f.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s.width=u.width,s.height=u.height,l.drawImage(u,0,0),"toBlob"in s)s.toBlob(function(){var e=Object(p.a)(f.a.mark(function e(t){return f.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return O.log(t),e.next=3,r(t);case 3:i();case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),o,a/100);else{for(n=s.toDataURL(o,a/100),c=/data:([^;]+);base64,(.*)$/.exec(n),h=c[1],d=atob(c[2]),g=new Uint8Array(d.length),m=0;m<g.length;m+=1)g[m]=d.charCodeAt(m);t=new Blob([g],{type:h}),r(t),i()}case 4:case"end":return e.stop()}},e)})),u.src=n.preview;case 12:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()));case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}var g={},m={};var v=["user-last-name","user-first-name","user-no-nas","corresp-language","user-moyen-de-comm","user-sex","user-tel-day","user-tel-evening"];var b={};function y(e,t){e in b&&Object.values(b[e]).forEach(function(e){e(t)})}var S={},w=c()(function(e){e._unmounted||(e.setState(e._debouncedState),e._debouncedState={})},100,{leading:!1,trailing:!0});function x(e){if(j()&&e){var t=e.split(".");return t.pop(),t.push("webp"),t.join(".")}return e}function j(){var e=s.a.getStorage("SupportWebP");if(null==e){var t=document.createElement("canvas");t.getContext&&t.getContext("2d")?(e=0==t.toDataURL("image/webp").indexOf("data:image/webp")?"yes":"no",s.a.setStorage("SupportWebP",e)):(e="no",s.a.setStorage("SupportWebP",e))}return/yes/i.test(e)}var E=function(){return/^dev.*/gi.test("production")};console.log("Utils.toWebP : "+x("imgTest.jpg"));var O=t.a={groupBy:function(e,t){return e.reduce(function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e},{})},downloadCSV:function(e){var t,n,r,a=function(e){var t,n,r,a,o,i;return null!=(i=e.data||null)&&i.length?(a=e.columnDelimiter||",",o=e.lineDelimiter||"\n",r=Object.keys(i[0]),t="",t+=r.join(a),t+=o,i.forEach(function(e){n=0,r.forEach(function(r){n>0&&(t+=a),t+=e[r],n++}),t+=o}),t):null}({data:t});null!=a&&(n=e.filename||"export.csv",a.match(/^data:text\/csv/i)||(a="data:text/csv;charset=utf-8,"+a),t=encodeURI(a),(r=document.createElement("a")).setAttribute("href",t),r.setAttribute("download",n),r.click())},isProd:function(){return!E()},isDev:E,log:function(e){E()&&console.log(e)},isChatActive:function(){return/true/gi.test("false")},isAnneesActive:function(){return!1},isDocsActive:function(){return!1},escapeRegExp:function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},replaceBR:function(e){for(var t=e.split("<br>"),n=o.a.createElement(o.a.Fragment,null,t.pop());t.length>=1;)n=o.a.createElement(o.a.Fragment,null,t.pop(),o.a.createElement("br",null),n);return n},replaceA:function(e){var t=/\<a.*href=.(.*)\".*\>(.*)<\/a>/gi,n=t.exec(e),r=e.replace(t,"_a_").split("_a_"),a=o.a.createElement(o.a.Fragment,null);if(r.length>=1)for(;r.length>=1;)if(n&&n.length>2){var i=n.pop(),c=n.pop();n.pop(),a=o.a.createElement(o.a.Fragment,null,o.a.createElement("a",{href:c,target:"_blank"},i),r.pop(),a)}else a=o.a.createElement(o.a.Fragment,null,r.pop(),a);else a=e;return a},toWebP:x,canUseWebP:j,isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},combineUrl:function(e,t){return"string"===typeof e&&"string"===typeof t||console.error("Should be 2 strings to combine"),e.endsWith("/")?t.startsWith("/")?e+t.subString(1,t.length):e+t:t.startsWith("/")?e+t:e+"/"+t},memorySizeOf:function(e){var t=0;return function(e){return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(3)+" KiB":e<1073741824?(e/1048576).toFixed(3)+" MiB":(e/1073741824).toFixed(3)+" GiB"}(function e(n){if(null!==n&&void 0!==n)switch(typeof n){case"number":t+=8;break;case"string":t+=2*n.length;break;case"boolean":t+=4;break;case"object":var r=Object.prototype.toString.call(n).slice(8,-1);if("Object"===r||"Array"===r)for(var a in n)n.hasOwnProperty(a)&&e(n[a]);else t+=2*n.toString().length}return t}(e))},lateEnoughAfterNo:function(){return!(s.a.getStorage("saidNoNotif")>Date.now()-6048e5)},testPermission:function(e,t,n){var r=this;navigator&&navigator.permissions&&navigator.permissions.query?navigator.permissions.query({name:"notifications"}).then(function(a){r.log("Notifications : "+a.state),"prompt"===a.state?e&&e():"granted"===a.state?t&&t():n&&n()}):n&&n()},refreshQuestions:function(e){m=Array.isArray(e)?e.reduce(function(e,t){return e[t.idperso]=t,e},{}):e},refreshReponses:function(){var e=u.a.getReponses();g={},e&&(g=e.reduce(function(e,t){return e[t.question]=t,e},{}))},QuestionIdPersoToChoixRep:function(e,t){var n=t,r=m[e];if(r){var a=g[r._id];a&&(a=r.choixdereponse.find(function(e){return e._id===a.choixdereponse}))&&(n="np-personnes-a-charge"===e?parseInt(a.texte,10):a.texte)}return n},urlBase64ToUint8Array:function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),n=window.atob(t),r=new Uint8Array(n.length),a=0;a<n.length;++a)r[a]=n.charCodeAt(a);return r},keepOnlyLatestRep:function(e){var t={};return e.sort(function(e,t){return t.createdAt<e.createdAt?-1:1}).filter(function(e){e.question in t||(t[e.question]=[]);var n=t[e.question].some(function(t){return t==e.annee});return n||t[e.question].push(e.annee),!n})},stableSort:function(e,t){var n=e.map(function(e,t){return[e,t]});return n.sort(function(e,n){var r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]}),n.map(function(e){return e[0]})},filtreOnlyIdentityQuestion:function(e){return e.filter(function(e){return function(e){return v.indexOf(e.idperso)>=0}(e)}).map(function(e){return e.repString=function(e){var t=u.a.getReponse(e.id),n="";return t&&(e.choixdereponse&&e.choixdereponse.length>0?(t=e.choixdereponse.find(function(e){return e.id===t.choixdereponse}),n=t?t.texte:""):1===e.reptype?n=t.texte:3===e.reptype?n=t.date:e.reptype>3&&(n=t.numero+"")),0===n.length?o.a.createElement("i",null,"non r\xe9pondu"):n}(e),e})},tryAndTryAgain:function(e,t,n){t||(t=123);try{n?n(e()):e()}catch(r){}},getCatTitre:function(e){return(u.a.getDepenses().find(function(t){return t.idperso==e})||u.a.getFeuillets().find(function(t){return t.idperso==e})||{titre:e}).titre},myCompare:function(e,t,n){return n.every(function(n){return e[n]==t[n]})},pdfUrlReform:function(e){return function(e){return e&&/.*pdf/gi.test(e)}(e)?e.substring(0,e.length-3)+"png":e},addListener:function(e,t,n){e in b||(b[e]={}),b[e][t]=n},removeListener:function(e,t){e in b&&delete b[e][t]},callEvent:y,throttledCallEvent:function(e,t){S[e]||(S[e]=c()(function(t){y(e,t)},500,{leading:!0,trailing:!0})),S[e](t)},throttledSetState:function(e){this._debouncedState=this._debouncedState||{},this._debouncedState=Object(r.a)({},this._debouncedState,e),w(this)},getFB:function(e,t){return("database.state."+t).split(".").forEach(function(t){e&&(e=e[t])}),e},shorterString:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;return e.length>t?e.slice(0,t-(3+n))+"..."+e.slice(-n):e},canvasEncode:h}},79:function(e,t,n){"use strict";t.a={todo:"All this"}},80:function(e,t,n){"use strict";var r=n(78),a=n(79),o={},i={clearCache:function(e){this._cache&&delete this._cache[e]},clearStorage:function(e){if(this.clearCache(e),localStorage&&localStorage.getItem(e))return localStorage.removeItem(e)},clearAppStorage:function(){this._cache={},localStorage&&localStorage.clear()},get:function(e,t){return null==this._cache&&(this._cache={}),null===this._cache[e]?t:this._cache[e]},set:function(e,t){null==this._cache&&(this._cache={}),this._cache[e]=t},getStorage:function(e,t){var n=this.get(e);if(n)return n;if(localStorage){if(n=localStorage.getItem(e))try{n=JSON.parse(n)}catch(a){r.a.log(a),n=null}this._cache[e]=n}return null===n?t:n},setStorage:function(e,t){if(this.set(e,t),localStorage)try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error(n)}},checkLocalDataAdmin:function(){var e,t;e="getQuestionsById",t=a.a.getQuestions,e in localStorage||o[e]||(t(!0).then(function(t){delete o[e]}),o[e]=Date.now(),r.a.log("_check and get DAL : "+e+" was not cached"))}};t.a=i},81:function(e,t,n){"use strict";var r=n(6),a=n(9),o=n(8),i=n(7),c=n(32),u=n(24),s=n(0),l=n.n(s),f=n(108),p=n(78);function h(e){return function(){var t,n=Object(u.a)(e);if(function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Object(u.a)(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Object(c.a)(this,t)}}var d=function(e,t){return function(n){Object(i.a)(u,n);var c=h(u);function u(e){var t;return Object(r.a)(this,u),(t=c.call(this,e)).state={},t.handleRedirect=t.handleRedirect.bind(Object(o.a)(t)),t}return Object(a.a)(u,[{key:"handleRedirect",value:function(e){this.setState({redirect:e})}},{key:"componentDidMount",value:function(){var e=this;p.a.addListener("language",t,function(t){e.forceUpdate()})}},{key:"componentWillUnmount",value:function(){p.a.removeListener("language",t)}},{key:"render",value:function(){return this.state.redirect?l.a.createElement(f.a,{to:this.state.redirect}):l.a.createElement(e,Object.assign({setRedirect:this.handleRedirect},this.props))}}]),u}(l.a.Component)};t.a=function(e,t,n,r){return d(e,t)}}}]);
//# sourceMappingURL=6.9d4235bc.chunk.js.map