index.js 232 KB

12
  1. /*! For license information please see index.js.LICENSE.txt */
  2. !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["factit-lib"]=e():t["factit-lib"]=e()}(this,(()=>(()=>{"use strict";var t={893:(t,e,n)=>{n.d(e,{Z:()=>i}),t=n.hmd(t);var r=r||function(t){if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var e=t.document,n=function(){return t.URL||t.webkitURL||t},r=e.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in r,i=t.webkitRequestFileSystem,a=t.requestFileSystem||i||t.mozRequestFileSystem,c=function(e){(t.setImmediate||t.setTimeout)((function(){throw e}),0)},s="application/octet-stream",u=0,l=function(e){var r=function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()};t.chrome?r():setTimeout(r,500)},f=function(t,e,n){for(var r=(e=[].concat(e)).length;r--;){var o=t["on"+e[r]];if("function"==typeof o)try{o.call(t,n||t)}catch(t){c(t)}}},p=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t},y=function(c,y){c=p(c);var h,v,d,m,b,g=this,w=c.type,O=!1,j=function(){f(g,"writestart progress write writeend".split(" "))},S=function(){!O&&h||(h=n().createObjectURL(c)),v?v.location.href=h:null==t.open(h,"_blank")&&"undefined"!=typeof safari&&(t.location.href=h),g.readyState=g.DONE,j(),l(h)},P=function(t){return function(){if(g.readyState!==g.DONE)return t.apply(this,arguments)}},E={create:!0,exclusive:!1};if(g.readyState=g.INIT,y||(y="download"),o)return h=n().createObjectURL(c),r.href=h,r.download=y,m=r,(b=e.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),m.dispatchEvent(b),g.readyState=g.DONE,j(),void l(h);t.chrome&&w&&w!==s&&(d=c.slice||c.webkitSlice,c=d.call(c,0,c.size,s),O=!0),i&&"download"!==y&&(y+=".download"),(w===s||i)&&(v=t),a?(u+=c.size,a(t.TEMPORARY,u,P((function(t){t.root.getDirectory("saved",E,P((function(t){var e=function(){t.getFile(y,E,P((function(t){t.createWriter(P((function(e){e.onwriteend=function(e){v.location.href=t.toURL(),g.readyState=g.DONE,f(g,"writeend",e),l(t)},e.onerror=function(){var t=e.error;t.code!==t.ABORT_ERR&&S()},"writestart progress write abort".split(" ").forEach((function(t){e["on"+t]=g["on"+t]})),e.write(c),g.abort=function(){e.abort(),g.readyState=g.DONE},g.readyState=g.WRITING})),S)})),S)};t.getFile(y,{create:!1},P((function(t){t.remove(),e()})),P((function(t){t.code===t.NOT_FOUND_ERR?e():S()})))})),S)})),S)):S()},h=y.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e){return navigator.msSaveOrOpenBlob(p(t),e)}:(h.abort=function(){var t=this;t.readyState=t.DONE,f(t,"abort")},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(t,e){return new y(t,e)})}alert("Veuillez Utiliser un autre navigateur, L'application Factit n'est supporte par le navigateur ie")}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||(void 0).content),o=o||void 0;t.exports?t.exports.saveAs=r:null!=o&&null!=o.amd&&o([],(function(){return r}));const i=r}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{Btn:()=>on,Button:()=>vn,Card:()=>ci,CardAction:()=>mi,CardContent:()=>Ci,CardImage:()=>Zi,CardTitle:()=>Ii,Col:()=>Ua,CollapsBody:()=>Tr,CollapsElement:()=>Fr,CollapsTrigger:()=>Qr,Collapsible:()=>jr,Collection:()=>Cc,CollectionItem:()=>Ic,Cube:()=>ra,DateField:()=>Me,EmailField:()=>U,Field:()=>D,FieldTrigger:()=>Dt,Flash:()=>cc,FlashMessage:()=>Ou,Form:()=>v,FormActions:()=>Cn,IconSideLink:()=>Yo,Icons:()=>t,InnerPage:()=>Pa,Loader:()=>rc,Logo:()=>In,Overlay:()=>ha,PasswordField:()=>Ut,PhoneField:()=>le,PostCodeField:()=>te,RadioIcons:()=>mc,Row:()=>Ma,SideCollapsible:()=>co,SideLink:()=>wo,SideMenu:()=>rr,SideMenuItem:()=>pr,SideNav:()=>Xn,SidenavEl:()=>No,SidenavSearch:()=>Vo,Signature_Cmp:()=>as,StokeBtn:()=>Ze,Tabs:()=>Ja,TextArea:()=>Oe,Toast:()=>du,Waves:()=>ze,saveAs:()=>zc.Z});var t={};n.r(t),n.d(t,{AddIcon:()=>et,AssuranceIcon:()=>_t,AttachementIcon:()=>ot,BarCharttIcon:()=>vt,BellIcon:()=>bt,BugIcon:()=>gt,CancelIcon:()=>tt,CarIcon:()=>ut,CheveronDown:()=>G,CheveronLeft:()=>X,CheveronRight:()=>K,CheveronUp:()=>Z,ClientIcon:()=>ct,DeleteIcon:()=>nt,DisconnectIcon:()=>dt,DocIcon:()=>mt,DownloadIcon:()=>wt,EditIcon:()=>rt,EyeDropperIcon:()=>at,EyeIcon:()=>it,FemaleIcon:()=>pt,MaleIcon:()=>ft,MenuIcon:()=>yt,MinusCircle:()=>Y,PdfIcon:()=>jt,PieChartIcon:()=>ht,PlusCircle:()=>Q,ProfileIcon:()=>lt,SaveIcon:()=>J,SearchIcon:()=>Pt,SettingIcon:()=>Et,UploadIcon:()=>Ot,UserIcon:()=>st,ZipIcon:()=>St});var e={};n.r(e),n.d(e,{P:()=>t});const o=require("react");var i=n.n(o);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:String(e)}function l(t,e,n){return e=p(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i().createElement("form",c({onSubmit:function(t){t.preventDefault(),t.stopPropagation()},ref:function(e){t.el=e}},this.props))}}])&&s(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{h.displayName="Form"}catch(t){}h.defaultProps={className:""};const v=h;function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function b(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==d(e)?e:String(e)}function g(t,e,n){return e=O(e),function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}var S=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=g(this,e)).state={labelClassName:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j(t,e)}(e,t),n=e,(r=[{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.value=t,""!=t&&this.label.classList.add("active")}},{key:"getIcon",value:function(){var t=this;return this.props.icon?i().createElement("i",{ref:function(e){return t.icon=e},className:"s-icon prefix"},this.props.icon):null}},{key:"onBlur",value:function(){""!=this.props.placeholder||this.el&&""!=this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur()}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),"function"==typeof this.props.onFocus&&this.onFocus()}},{key:"componentDidMount",value:function(){(""!=this.props.placeholder||this.el&&""!=this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyDown",value:function(t){""==t.target.value?(this.label.classList.remove("active"),this.setState({labelClassName:""})):(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"render",value:function(){return i().createElement("div",{style:{color:"red"}},"Vous n'avez pas implementez la method render")}}])&&m(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{S.displayName="Commun"}catch(t){}const P=S,E=require("@d3v4pp/rex");var _=n.n(E);function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,x(r.key),r)}}function x(t){var e=function(t,e){if("object"!=C(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==C(e)?e:String(e)}function N(t,e,n){return e=T(e),function(t,e){if(e&&("object"===C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,L()?Reflect.construct(e,n||[],T(t).constructor):e.apply(t,n))}function L(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(L=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}function B(t,e){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},B(t,e)}var M=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=N(this,e)).id=t.uuidv4(),t.state={labelClassName:"",focusCount:0,errmsg:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&B(t,e)}(e,t),n=e,r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.current.value=t,""!==t&&this.label.classList.add("active")}},{key:"isValid",value:function(){return this.validate(!0)}},{key:"onBlur",value:function(t){t.stopPropagation(),t.preventDefault(),""!==this.props.placeholder||this.el&&""!==this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),this.props.onBlur&&"function"==typeof this.props.onBlur&&this.props.onBlur(),this.validate(!0),this.setState({focusCount:this.state.focusCount+1})}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),this.props.onFocus&&"function"==typeof this.props.onFocus&&this.props.onFocus()}},{key:"validate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t&&this.setState({focusCount:this.state.focusCount+1}),this.state.focusCount>0||t){var e=this.props,n=e.min,r=e.max,o=e.required,i=e.vtype,a=e.vtypeMsg;if(""!==this.el.value){var c=this.el.value.length;return n&&r&&(c<n||c>r)?(this.setState({errmsg:n!=r?"la longueur doit être comprise entre ".concat(n," et ").concat(r," caractères."):"doit avoir une longueur de ".concat(n," caractères")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):!n&&r&&c>r?(this.setState({errmsg:"doit avoir une longueur maximale de ".concat(r," caractères.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):n&&!r&&c<n?(this.setState({errmsg:"doit avoir une longueur minimale de ".concat(n," caractères.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):i&&!_()[i].test(this.el.value)?(this.setState({errmsg:a||"Doit être un ".concat(i," valide.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}return o?(this.setState({errmsg:"Ne peut pas être vide."}),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),!0)}}},{key:"invalidate",value:function(){this.el.classList.remove("valid"),this.el.classList.add("invalid")}},{key:"setUnvalid",value:function(t){t&&this.setState({errmsg:t}),this.invalidate()}},{key:"setValid",value:function(){this.el.classList.add("valid"),this.el.classList.remove("invalid")}},{key:"componentDidMount",value:function(){(""!==this.props.placeholder||this.el&&""!==this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyUp",value:function(t){"Enter"===t.key&&this.props.enteraction&&this.props.enteraction(t,this),this.validate()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"getErrorView",value:function(){if(null!=this.state.errmsg&&""!==this.state.errmsg)return i().createElement("div",{className:"helper-text"},this.state.errmsg)}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label+(!0===this.props.required?" *":"")),i().createElement("input",{ref:function(e){t.el=e},"data-role":this.props["data-role"],value:this.props.value||"",placeholder:this.props.placeholder,onChange:this.props.onChange||function(){},onFocus:function(e){return t.onFocus.bind(t)(e)},type:this.props.type||"text",disabled:this.props.disabled||!1,autoFocus:this.props.autoFocus||!1,"data-cy":this.props["data-cy"],onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyUp:this.onKeyUp.bind(this),id:this.id,className:"validate "+this.props.className}),this.getErrorView())}}],r&&k(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(P);try{M.displayName="Field"}catch(t){}M.defaultProps={type:"text",className:"",placeholder:"",label:""};const D=M;function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z(r.key),r)}}function z(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:String(e)}function A(t,e,n){return e=F(e),function(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,V()?Reflect.construct(e,n||[],F(t).constructor):e.apply(t,n))}function V(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(V=function(){return!!t})()}function F(t){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},F(t)}function W(t,e){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},W(t,e)}var H=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=A(this,e)).id=t.uuidv4(),t.state={labelClassName:"",error:"",focusCount:0},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}(e,t),n=e,(r=[{key:"isValid",value:function(){var t=!!E.email.test(this.el.value)||["Le format de l'adresse email n'est pas valide"];return""==this.el.value.trim()?(this.setState({error:"l'email ne peut pas être vide !"}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),!1):!0!==t?(this.setState({error:t[0]}),this.el.classList.add("invalid"),this.el.classList.remove("valid"),!1):(this.setState({error:null}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}},{key:"getErrorView",value:function(){if(null!=this.state.error&&""!=this.state.error)return i().createElement("div",{className:"helper-text"},this.state.error)}},{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.current.value=t,""!=t&&this.label.classList.add("active")}},{key:"getIcon",value:function(){var t=this;return""!==this.props.icon?i().createElement("span",{ref:function(e){return t.icon=e},className:"s-icon prefix"},this.props.icon):null}},{key:"onBlur",value:function(){""!=this.props.placeholder||this.el&&""!=this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur(),this.isValid()}},{key:"onFocus",value:function(){this.label.classList.contains("active")||(this.label.classList.add("active"),this.setState({labelClassName:"active"})),this.setState({focusCount:this.state.focusCount+1})}},{key:"componentDidMount",value:function(){(""!=this.props.placeholder||this.el&&""!=this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyDown",value:function(t){this.label.classList.contains("active")||(this.label.classList.add("active"),this.setState({labelClassName:"active"})),"Enter"==t.key&&(this.isValid(),this.props.enterkey()),this.state.focusCount>1&&this.isValid()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label),i().createElement("input",{ref:function(e){t.el=e},"data-cy":this.props["data-cy"],placeholder:this.props.placeholder,value:this.props.value,type:"text",onChange:this.props.onChange,onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyUp:this.onKeyDown.bind(this),autoFocus:this.props.autoFocus||!1,id:this.id,disabled:this.props.disabled,className:"validate "+this.props.className}),this.getErrorView())}}])&&I(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(D);try{H.displayName="EmailField"}catch(t){}H.defaultProps={type:"email",enterkey:function(){},icon:"at",className:"",placeholder:"",label:""};const U=H;function q(){return q=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},q.apply(this,arguments)}function K(t){return i().createElement("svg",q({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}),i().createElement("path",{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"}))}try{K.displayName="CheveronRight"}catch(t){}function X(t){return i().createElement("svg",q({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}),i().createElement("path",{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"}))}try{X.displayName="CheveronLeft"}catch(t){}function Z(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 512 512"}),i().createElement("path",{d:"M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"}))}try{Z.displayName="CheveronUp"}catch(t){}function G(t){return i().createElement("svg",q({},t,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}),i().createElement("path",{d:"M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"}))}try{G.displayName="CheveronDown"}catch(t){}function Y(t){return i().createElement("svg",q({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}try{Y.displayName="MinusCircle"}catch(t){}function Q(t){return i().createElement("svg",q({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v6m3-3H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}))}try{Q.displayName="PlusCircle"}catch(t){}function J(t){return i().createElement("svg",q({},t,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"}),i().createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),i().createElement("path",{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}))}try{J.displayName="SaveIcon"}catch(t){}function tt(t){return i().createElement("svg",q({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}try{tt.displayName="CancelIcon"}catch(t){}function et(t){return i().createElement("svg",q({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))}try{et.displayName="AddIcon"}catch(t){}function nt(t){return i().createElement("svg",q({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}try{nt.displayName="DeleteIcon"}catch(t){}function rt(t){return i().createElement("svg",q({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))}try{rt.displayName="EditIcon"}catch(t){}function ot(t){return i().createElement("svg",q({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",ariaHidden:"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"}))}try{ot.displayName="AttachementIcon"}catch(t){}function it(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}))}try{it.displayName="EyeIcon"}catch(t){}function at(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z"}),i().createElement("path",{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z"}))}try{at.displayName="EyeDropperIcon"}catch(t){}function ct(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}))}try{ct.displayName="ClientIcon"}catch(t){}function st(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M824.2 699.9a301.55 301.55 0 0 0-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 0 1 612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 0 0 8-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 0 1 612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}))}try{st.displayName="UserIcon"}catch(t){}function ut(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm239-167.6L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0z"}))}try{ut.displayName="CarIcon"}catch(t){}function lt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z"}))}try{lt.displayName="ProfileIcon"}catch(t){}function ft(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M874 120H622c-3.3 0-6 2.7-6 6v56c0 3.3 2.7 6 6 6h160.4L583.1 387.3c-50-38.5-111-59.3-175.1-59.3-76.9 0-149.3 30-203.6 84.4S120 539.1 120 616s30 149.3 84.4 203.6C258.7 874 331.1 904 408 904s149.3-30 203.6-84.4C666 765.3 696 692.9 696 616c0-64.1-20.8-124.9-59.2-174.9L836 241.9V402c0 3.3 2.7 6 6 6h56c3.3 0 6-2.7 6-6V150c0-16.5-13.5-30-30-30zM408 828c-116.9 0-212-95.1-212-212s95.1-212 212-212 212 95.1 212 212-95.1 212-212 212z"}))}try{ft.displayName="MaleIcon"}catch(t){}function pt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M712.8 548.8c53.6-53.6 83.2-125 83.2-200.8 0-75.9-29.5-147.2-83.2-200.8C659.2 93.6 587.8 64 512 64s-147.2 29.5-200.8 83.2C257.6 200.9 228 272.1 228 348c0 63.8 20.9 124.4 59.4 173.9 7.3 9.4 15.2 18.3 23.7 26.9 8.5 8.5 17.5 16.4 26.8 23.7 39.6 30.8 86.3 50.4 136.1 57V736H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h114v140c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V812h114c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H550V629.5c61.5-8.2 118.2-36.1 162.8-80.7zM512 556c-55.6 0-107.7-21.6-147.1-60.9C325.6 455.8 304 403.6 304 348s21.6-107.7 60.9-147.1C404.2 161.5 456.4 140 512 140s107.7 21.6 147.1 60.9C698.4 240.2 720 292.4 720 348s-21.6 107.7-60.9 147.1C619.7 534.4 567.6 556 512 556z"}))}try{pt.displayName="FemaleIcon"}catch(t){}function yt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}))}try{yt.displayName="MenuIcon"}catch(t){}function ht(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 0 0-282.8 117.1 398.19 398.19 0 0 0-85.7 127.1A397.61 397.61 0 0 0 72 552a398.46 398.46 0 0 0 117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 0 0 472 952a398.46 398.46 0 0 0 282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 0 0 872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 0 1 470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 0 0 589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 0 1 166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"}))}try{ht.displayName="PieChartIcon"}catch(t){}function vt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}))}try{vt.displayName="BarCharttIcon"}catch(t){}function dt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M705.6 124.9a8 8 0 0 0-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0 1 62.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0 1 27.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 0 1-76.3 113.3 353.06 353.06 0 0 1-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 0 1-113.2-76.4A355.92 355.92 0 0 1 184 650.4a355 355 0 0 1-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}))}try{dt.displayName="DisconnectIcon"}catch(t){}function mt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z"}))}try{mt.displayName="DocIcon"}catch(t){}function bt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}))}try{bt.displayName="BellIcon"}catch(t){}function gt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1-17.2-31.5-42.5-56.8-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9-31.5 17.2-56.8 42.5-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}),i().createElement("path",{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 34.8-28.2 63-63 63H232c-34.8 0-63-28.2-63-63 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7 6 17.2 13.6 33.6 22.7 49 24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2c41.5-24.3 76.2-59 100.5-100.5 9.1-15.5 16.7-31.9 22.7-49C812.1 793.1 836 831.8 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3C317.7 752 308 716.8 308 680V412h408v268z"}))}try{gt.displayName="BugIcon"}catch(t){}function wt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z"}),i().createElement("path",{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}))}try{wt.displayName="DownloadIcon"}catch(t){}function Ot(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}),i().createElement("path",{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}))}try{Ot.displayName="UploadIcon"}catch(t){}function jt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z"}))}try{jt.displayName="PdfIcon"}catch(t){}function St(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h64v64h64v-64h174v216a42 42 0 0 0 42 42h216v494z"}))}try{St.displayName="ZipIcon"}catch(t){}function Pt(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}))}try{Pt.displayName="SearchIcon"}catch(t){}function Et(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{viewBox:"0 0 1024 1024"}),i().createElement("path",{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z"}))}try{Et.displayName="SettingIcon"}catch(t){}function _t(t){return i().createElement("svg",q({xmlns:"http://www.w3.org/2000/svg"},t,{fill:"currentColor",viewBox:"0 0 16 16"}),i().createElement("path",{"fill-rule":"evenodd",d:"M8 14.933a.615.615 0 0 0 .1-.025c.076-.023.174-.061.294-.118.24-.113.547-.29.893-.533a10.726 10.726 0 0 0 2.287-2.233c1.527-1.997 2.807-5.031 2.253-9.188a.48.48 0 0 0-.328-.39c-.651-.213-1.75-.56-2.837-.855C9.552 1.29 8.531 1.067 8 1.067v13.866zM5.072.56C6.157.265 7.31 0 8 0s1.843.265 2.928.56c1.11.3 2.229.655 2.887.87a1.54 1.54 0 0 1 1.044 1.262c.596 4.477-.787 7.795-2.465 9.99a11.775 11.775 0 0 1-2.517 2.453 7.159 7.159 0 0 1-1.048.625c-.28.132-.581.24-.829.24s-.548-.108-.829-.24a7.158 7.158 0 0 1-1.048-.625 11.777 11.777 0 0 1-2.517-2.453C1.928 10.487.545 7.169 1.141 2.692A1.54 1.54 0 0 1 2.185 1.43 62.456 62.456 0 0 1 5.072.56z"}))}try{_t.displayName="AssuranceIcon"}catch(t){}function Ct(t){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(t)}function kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xt(r.key),r)}}function xt(t){var e=function(t,e){if("object"!=Ct(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ct(e)?e:String(e)}function Nt(t,e,n){return e=Tt(e),function(t,e){if(e&&("object"===Ct(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Lt()?Reflect.construct(e,n||[],Tt(t).constructor):e.apply(t,n))}function Lt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Lt=function(){return!!t})()}function Tt(t){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tt(t)}function Bt(t,e){return Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bt(t,e)}var Mt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Nt(this,e)).id=t.uuidv4(),t.state={labelClassName:"",focusCount:0,errmsg:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bt(t,e)}(e,t),n=e,r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.current.value=t,""!==t&&this.label.classList.add("active")}},{key:"isValid",value:function(){return this.validate(!0)}},{key:"onBlur",value:function(){""!==this.props.placeholder||this.el&&""!==this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur(),this.validate(!0),this.setState({focusCount:this.state.focusCount+1})}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),"function"==typeof this.props.onFocus&&this.props.onFocus()}},{key:"validate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t&&this.setState({focusCount:this.state.focusCount+1}),this.state.focusCount>0||t){var e=this.props,n=e.min,r=e.max,o=e.required,i=e.vtype,a=e.vtypeMsg;if(""!==this.el.value){var c=this.el.value.length;return n&&r&&(c<n||c>r)?(this.setState({errmsg:n!=r?"la longueur doit être comprise entre ".concat(n," et ").concat(r," caractères."):"doit avoir une longueur de ".concat(n," caractères")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):!n&&r&&c>r?(this.setState({errmsg:"doit avoir une longueur maximale de ".concat(r," caractères.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):n&&!r&&c<n?(this.setState({errmsg:"doit avoir une longueur minimale de ".concat(n," caractères.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):i&&!_()[i].test(this.el.value)?(this.setState({errmsg:a||"Doit être un ".concat(i," valide.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}return o?(this.setState({errmsg:"Ne peut pas être vide."}),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}}},{key:"invalidate",value:function(){this.el.classList.remove("valid"),this.el.classList.add("invalid")}},{key:"componentDidMount",value:function(){(""!==this.props.placeholder||this.el&&""!==this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyUp",value:function(t){"Enter"===t.key&&this.props.enteraction&&this.props.enteraction(t,this),this.validate()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"getErrorView",value:function(){if(null!=this.state.errmsg&&""!==this.state.errmsg)return i().createElement("div",{className:"helper-text"},this.state.errmsg)}},{key:"getAddBtn",value:function(){var t=this;if(this.props.trigger)return i().createElement("button",{className:"webo second white-text",onClick:function(e){t.props.onTrigger&&"function"==typeof t.props.onTrigger&&t.props.onTrigger(e)}},i().createElement(et,{style:{height:"25px",width:"25px"}})," ")}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"inputFieldTrigger "},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName||""},this.props.label+(this.props.required?"*":"")),i().createElement("input",{ref:function(e){t.el=e},placeholder:this.props.placeholder,className:"validate "+this.props.className,value:this.props.value||"",onChange:this.props.onChange||function(){},onFocus:function(e){return t.onFocus.bind(t)(e)},type:this.props.type||"text",disabled:this.props.disabled||!1,autoFocus:this.props.autoFocus||!1,"data-cy":this.props["data-cy"],onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyPress:this.onKeyUp.bind(this),id:this.id}),this.getAddBtn())}}],r&&kt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(P);try{Mt.displayName="FieldTrigger"}catch(t){}Mt.defaultProps={trigger:!0,type:"text",className:"",placeholder:"",label:""};const Dt=Mt;function Rt(t){return Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(t)}function It(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,zt(r.key),r)}}function zt(t){var e=function(t,e){if("object"!=Rt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Rt(e)?e:String(e)}function At(t,e,n){return e=Ft(e),function(t,e){if(e&&("object"===Rt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Vt()?Reflect.construct(e,n||[],Ft(t).constructor):e.apply(t,n))}function Vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vt=function(){return!!t})()}function Ft(t){return Ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ft(t)}function Wt(t,e){return Wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wt(t,e)}var Ht=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=At(this,e)).id=t.uuidv4(),t.state={labelClassName:"",focusCount:0},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wt(t,e)}(e,t),n=e,(r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"getErrorView",value:function(){if(null!=this.state.error&&this.state.error.length>0)return this.state.error.map((function(t,e){return i().createElement("div",{key:e,className:"helper-text"},t)}))}},{key:"isPasswordValid",value:function(t){var e=function(t,e,n){var r=[];return t.length<8&&r.push("Au minimum 8 caractères"),t.length>32&&r.push("Au maximum 32 caractères"),!(r.length>0)||r}(t),n=!0===e?[]:e;return t.match(/[0-9]/)||n.push("Au minimum 1 caractère numérique"),t.match(/[a-z]/)||n.push("Au minimum 1 caractère minuscule"),t.match(/[A-Z]/)||n.push("Au minimum 1 caractère majuscule"),t.match(/[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/)||n.push("Au minimum 1 caractère special"),!(n.length>0)||n}},{key:"isValid",value:function(){var t=this.isPasswordValid(this.el.value);return!0===t?(this.setState({error:null}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0):(this.setState({error:t}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),!1)}},{key:"setValue",value:function(t){this.el.current.value=t,""!=t&&this.label.classList.add("active")}},{key:"getIcon",value:function(){var t=this;return""!==this.props.icon?i().createElement("i",{ref:function(e){return t.icon=e},className:"s-icon prefix"},this.props.icon):null}},{key:"onBlur",value:function(){""!=this.props.placeholder||this.el&&""!=this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur(),this.isValid()}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),this.setState({focusCount:this.state.focusCount+1})}},{key:"componentDidMount",value:function(){(""!=this.props.placeholder||this.el&&""!=this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyDown",value:function(t){this.isValid(),""==t.target.value?(this.label.classList.remove("active"),this.setState({labelClassName:""})):(this.label.classList.add("active"),this.setState({labelClassName:"active"})),"Enter"==t.key&&this.props.enteraction&&this.props.enteraction(t),this.state.focusCount>1&&this.isValid()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"render",value:function(){var t=this;return i().createElement(i().Fragment,null,i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label),i().createElement("input",{ref:function(e){t.el=e},autoComplete:this.props.autoComplete||"on",placeholder:this.props.placeholder,value:this.props.value,onChange:this.props.onChange,type:"password","data-cy":this.props["data-cy"],onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyPress:this.onKeyDown.bind(this),autoFocus:this.props.autoFocus||!1,id:this.id,name:this.id,className:"validate "+this.props.className}),this.getErrorView())}}])&&It(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(D);try{Ht.displayName="PasswordFIeld"}catch(t){}Ht.defaultProps={type:"password",icon:"dialpad",enterkey:function(){},className:"",placeholder:"",label:""};const Ut=Ht;function qt(t){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qt(t)}function Kt(){return Kt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Kt.apply(this,arguments)}function Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Zt(r.key),r)}}function Zt(t){var e=function(t,e){if("object"!=qt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=qt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==qt(e)?e:String(e)}function $t(t,e,n){return e=Yt(e),function(t,e){if(e&&("object"===qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Gt()?Reflect.construct(e,n||[],Yt(t).constructor):e.apply(t,n))}function Gt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gt=function(){return!!t})()}function Yt(t){return Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yt(t)}function Qt(t,e){return Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qt(t,e)}var Jt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=$t(this,e)).id=t.uuidv4(),t.state={labelClassName:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qt(t,e)}(e,t),n=e,(r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"isPostCode",value:function(t){return/^[0-9]{5}$/.test(t)}},{key:"getErrorView",value:function(){if(null!=this.state.error)return i().createElement("div",{className:"helper-text"},this.state.error)}},{key:"isValid",value:function(){return""==this.el.value.trim()?(this.setState({error:"le code postal ne peut pas être vide !"}),this.el.classList.add("invalid"),!1):this.isPostCode(this.el.value.trim())?this.props.confirm&&this.props.confirm.el.value!=this.el.value?(this.setState({error:"le mot de passe et la confirmation ne correspondent pas!"}),this.el.classList.add("invalid"),!1):(this.setState({error:null}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0):(this.setState({error:"le format du code postal n'est pas valide!"}),this.el.classList.add("invalid"),this.el.classList.remove("valid"),!1)}},{key:"setValue",value:function(t){this.el.current.value=t,""!=t&&this.label.classList.add("active")}},{key:"getIcon",value:function(){var t=this;return""!==this.props.icon?i().createElement("i",{ref:function(e){return t.icon=e},className:"s-icon prefix"},this.props.icon):null}},{key:"onBlur",value:function(){""!=this.props.placeholder||this.el&&""!=this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur()}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active")}},{key:"componentDidMount",value:function(){(""!=this.props.placeholder||this.el&&""!=this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyDown",value:function(t){""==t.target.value?(this.label.classList.remove("active"),this.setState({labelClassName:""})):(this.label.classList.add("active"),this.setState({labelClassName:"active"})),this.isValid()}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field col s12"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label),i().createElement("input",Kt({},this.props,{ref:function(e){t.el=e},onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyUp:this.onKeyDown.bind(this),id:this.id,className:"validate "+this.props.className})),this.getErrorView())}}])&&Xt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(D);try{Jt.displayName="PostCodeField"}catch(t){}Jt.defaultProps={type:"postcode",icon:"dialpad",className:"",placeholder:"",label:""};const te=Jt;function ee(t){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(t)}function ne(){return ne=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ne.apply(this,arguments)}function re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,oe(r.key),r)}}function oe(t){var e=function(t,e){if("object"!=ee(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ee(e)?e:String(e)}function ie(t,e,n){return e=ce(e),function(t,e){if(e&&("object"===ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ae()?Reflect.construct(e,n||[],ce(t).constructor):e.apply(t,n))}function ae(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ae=function(){return!!t})()}function ce(t){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ce(t)}function se(t,e){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},se(t,e)}var ue=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=ie(this,e)).id=t.uuidv4(),t.state={labelClassName:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&se(t,e)}(e,t),n=e,(r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"isPhone",value:function(t){return/^(?:(?:\+|00)33|0)\s*[1-9](?:\d{2}){4}$/.test(Number(t))}},{key:"getErrorView",value:function(){if(null!=this.state.error)return i().createElement("div",{className:"helper-text"},this.state.error)}},{key:"isValid",value:function(){var t=(0,E.phone)(this.el.value);return console.log(t),!0!==t?(this.setState({error:t[0]}),this.el.classList.add("invalid"),this.el.classList.remove("valid"),!1):(this.setState({error:null}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}},{key:"setValue",value:function(t){this.el.current.value=t,""!=t&&this.label.classList.add("active")}},{key:"getIcon",value:function(){var t=this;return""!==this.props.icon?i().createElement("i",{ref:function(e){return t.icon=e},className:"s-icon prefix"},this.props.icon):null}},{key:"onBlur",value:function(){""!=this.props.placeholder||this.el&&""!=this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur(),this.isValid()}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active")}},{key:"componentDidMount",value:function(){(""!=this.props.placeholder||this.el&&""!=this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyDown",value:function(t){""==t.target.value?(this.label.classList.remove("active"),this.setState({labelClassName:""})):(this.label.classList.add("active"),this.setState({labelClassName:"active"})),this.isValid()}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label),i().createElement("input",ne({},this.props,{ref:function(e){t.el=e},onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyUp:this.onKeyDown.bind(this),id:this.id,className:"validate "+this.props.className})),this.getErrorView())}}])&&re(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(D);try{ue.displayName="PhoneField"}catch(t){}ue.defaultProps={type:"phoneNumber",icon:"dialpad",className:"",placeholder:"",label:""};const le=ue,fe=require("react-textarea-autosize");var pe=n.n(fe);function ye(t){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ye(t)}function he(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ve(r.key),r)}}function ve(t){var e=function(t,e){if("object"!=ye(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ye(e)?e:String(e)}function de(t,e,n){return e=be(e),function(t,e){if(e&&("object"===ye(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,me()?Reflect.construct(e,n||[],be(t).constructor):e.apply(t,n))}function me(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(me=function(){return!!t})()}function be(t){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},be(t)}function ge(t,e){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ge(t,e)}var we=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=de(this,e)).id=t.uuidv4(),t.state={labelClassName:"",focusCount:0,errmsg:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ge(t,e)}(e,t),n=e,r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.current.value=t,""!==t&&this.label.classList.add("active")}},{key:"isValid",value:function(){return this.validate(!0)}},{key:"onBlur",value:function(){""!==this.props.placeholder||this.el&&""!==this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),"function"==typeof this.props.onBlur&&this.onBlur(),this.validate(!0),this.setState({focusCount:this.state.focusCount+1})}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),"function"==typeof this.props.onFocus&&this.props.onFocus()}},{key:"validate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t&&this.setState({focusCount:this.state.focusCount+1}),this.state.focusCount>0||t){var e=this.props,n=e.min,r=e.max,o=e.required,i=e.vtype,a=e.vtypeMsg;if(""!==this.el.value){var c=this.el.value.length;return n&&r&&(c<n||c>r)?(this.setState({errmsg:n!=r?"doit avoir une longeur comprise entre ".concat(n," et ").concat(r,"."):"doit avoir une longeur de ".concat(n," caractères")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):!n&&r&&c>r?(this.setState({errmsg:"doit avoir une longeur maximal de ".concat(r,".")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):n&&!r&&c<n?(this.setState({errmsg:"doit avoir une longeur minimal de ".concat(n,".")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):i&&!_()[i].test(this.el.value)?(this.setState({errmsg:a||"Doit être un ".concat(i," valide.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}return o?(this.setState({errmsg:"Ne peu pas etre vide."}),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),!0)}}},{key:"invalidate",value:function(){this.el.classList.remove("valid"),this.el.classList.add("invalid")}},{key:"componentDidMount",value:function(){(""!==this.props.placeholder||this.el&&""!==this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyUp",value:function(t){if("Enter"===t.key&&t.ctrlKey&&this.props.enteraction)return this.props.enteraction(t,this),t.preventDefault(),t.stopPropagation(),!1;this.validate()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"getErrorView",value:function(){if(null!=this.state.errmsg&&""!==this.state.errmsg)return i().createElement("div",{className:"helper-text"},this.state.errmsg)}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label+(!0===this.props.required?" *":"")),i().createElement(pe(),{ref:function(e){t.el=e},value:this.props.value||"",onChange:this.props.onChange||function(){},disabled:this.props.disabled||!1,onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},"data-cy":this.props["data-cy"],onKeyUp:this.onKeyUp.bind(this),id:this.id,minRows:"4",className:"textarea "+this.props.className}),this.getErrorView())}}],r&&he(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{we.displayName="Field"}catch(t){}we.defaultProps={enteraction:function(){},type:"text",className:"",placeholder:"",label:""};const Oe=we,je=require("react-datepicker");var Se=n.n(je);require("react-datepicker/dist/react-datepicker.css");const Pe=require("date-fns/locale/fr");var Ee=n.n(Pe);function _e(t){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_e(t)}function Ce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ke(r.key),r)}}function ke(t){var e=function(t,e){if("object"!=_e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=_e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_e(e)?e:String(e)}function xe(t,e,n){return e=Le(e),function(t,e){if(e&&("object"===_e(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ne()?Reflect.construct(e,n||[],Le(t).constructor):e.apply(t,n))}function Ne(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ne=function(){return!!t})()}function Le(t){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Le(t)}function Te(t,e){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Te(t,e)}(0,je.registerLocale)("fr",Ee());var Be=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=xe(this,e)).id="",t.state={labelClassName:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Te(t,e)}(e,t),n=e,r=[{key:"componentDidMount",value:function(){this.el.input.addEventListener("keypress",this.onKeyUp.bind(this))}},{key:"onKeyUp",value:function(t){"Enter"===t.key&&this.props.enteraction&&this.props.enteraction(t,this)}},{key:"isValid",value:function(){return this.validate(!0)}},{key:"validate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t&&this.setState({focusCount:this.state.focusCount+1}),this.state.focusCount>0||t){var e=this.props,n=e.required,r=e.vtype,o=e.vtypeMsg;if(""===this.el.input.value)return n?(this.setState({errmsg:"Ne doit pas être vide."}),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.input.classList.remove("invalid"),this.el.input.classList.add("valid"),!0);var i=Date.now(),a=this.el.input.value.split("/"),c=a[0];a[0]=a[1],a[1]=c;var s=Date.parse(a.join("/")+" 23:59");switch(this.setState({errmsg:""}),r){case"future":return i>s?(this.setState({errmsg:o||"Doit être dans le future."}),this.el.input.classList.remove("valid"),this.el.input.classList.add("invalid"),!1):(this.setState({errmsg:""}),this.el.input.classList.remove("invalid"),this.el.input.classList.add("valid"),!0);case"past":return i<s?(this.setState({errmsg:o||"Doit être dans le passé."}),this.el.input.classList.remove("valid"),this.el.input.classList.add("invalid"),!1):(this.setState({errmsg:""}),this.el.input.classList.remove("invalid"),this.el.input.classList.add("valid"),!0);case"pastToday":return i<=(s=Date.parse(a.join("/")+" 00:00"))?(this.setState({errmsg:o||"Doit être dans le passé, ou aujourd'hui."}),this.el.input.classList.remove("valid"),this.el.input.classList.add("invalid"),!1):(this.setState({errmsg:""}),this.el.input.classList.remove("invalid"),this.el.input.classList.add("valid"),!0);default:return this.setState({errmsg:""}),this.el.input.classList.remove("invalid"),this.el.input.classList.add("valid"),!0}}}},{key:"getErrorView",value:function(){if(null!=this.state.errmsg&&""!==this.state.errmsg)return i().createElement("div",{className:"helper-text"},this.state.errmsg)}},{key:"invalidate",value:function(){this.el.input.classList.remove("valid"),this.el.input.classList.add("invalid")}},{key:"setUnvalid",value:function(t){t&&this.setState({errmsg:t}),this.invalidate()}},{key:"setValid",value:function(){this.el.input.classList.add("valid"),this.el.input.classList.remove("invalid")}},{key:"onBlur",value:function(t){t.stopPropagation(),t.preventDefault(),""!==this.props.placeholder||this.el&&""!==this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),this.props.onBlur&&"function"==typeof this.props.onBlur&&this.props.onBlur(),this.validate(!0),this.setState({focusCount:this.state.focusCount+1})}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label+(!0===this.props.required?" *":"")),i().createElement(Se(),{value:Date.parse(this.props.value),onKeyUp:this.onKeyUp.bind(this),ref:function(e){t.el=e},id:this.id,style:{marginTop:0},onBlur:function(e){return t.onBlur.bind(t)(e)},onFocus:function(e){return t.setState({focusCount:t.state.focusCount+1})},onChange:this.props.onChange,className:"validate "+this.props.className,dateFormat:"dd/MM/yyyy",selected:Date.parse(this.props.value)}),this.getErrorView())}}],r&&Ce(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Be.displayName="DateField"}catch(t){}Be.defaultProps={type:"date",className:"",placeholder:"",label:""};const Me=Be;function De(t){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(t)}function Re(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ie(r.key),r)}}function Ie(t){var e=function(t,e){if("object"!=De(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==De(e)?e:String(e)}const ze=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=e,this.options=n||{},this.wrapInput(),"ontouchstart"in window&&this.el.addEventListener("touchstart",(function(t){r.triggerEffect.bind(r)(t)}),!1),this.el.addEventListener("mousedown",(function(t){r.triggerEffect.bind(r)(t)}),!1)}var e,n;return e=t,(n=[{key:"showEffect",value:function(t){if(2===t.button)return!1;var e=document.createElement("div");e.className="waves-ripple",this.el.appendChild(e),this.ripple=e;var n=this.offset(),r=t.pageY-n.top,o=t.pageX-n.left,i="scale("+this.el.clientWidth/100*10+")";"touches"in t&&(r=t.touches[0].pageY-n.top,o=t.touches[0].pageX-n.left),this.ripple.setAttribute("data-hold",Date.now()),this.ripple.setAttribute("data-scale",i),this.ripple.setAttribute("data-x",o),this.ripple.setAttribute("data-y",r);var a={top:r+"px",left:o+"px"};this.ripple.setAttribute("style",this.convertStyle(a)),this.ripple.className=this.ripple.className.replace("waves-notransition",""),a["-webkit-transform"]=i,a["-moz-transform"]=i,a["-ms-transform"]=i,a["-o-transform"]=i,a.transform=i,a.opacity="1",a["-webkit-transition-duration"]=2*this.options.duration/3+"ms",a["-moz-transition-duration"]=2*this.options.duration/3+"ms",a["-o-transition-duration"]=2*this.options.duration/3+"ms",a["transition-duration"]=2*this.options.duration/3+"ms",a["-webkit-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",a["-moz-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",a["-o-transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",a["transition-timing-function"]="cubic-bezier(0.250, 0.460, 0.450, 0.940)",this.ripple.setAttribute("style",this.convertStyle(a))}},{key:"hideEffect",value:function(){var t=this.el.lastElementChild;if(t&&t.classList.contains("waves-ripple")){var e=t.getAttribute("data-x"),n=t.getAttribute("data-y"),r=t.getAttribute("data-scale"),o=Date.now()-Number(t.getAttribute("data-hold")),i=this.options.duration/2-o;i<0&&(i=0);var a=this;setTimeout((function(){var o={top:n+"px",left:e+"px",opacity:"0","-webkit-transition-duration":a.options.duration/3+"ms","-moz-transition-duration":a.options.duration/3+"ms","-o-transition-duration":a.options.duration/3+"ms","transition-duration":a.options.duration/3+"ms","-webkit-transform":r,"-moz-transform":r,"-ms-transform":r,"-o-transform":r,transform:r};t.setAttribute("style",a.convertStyle(o)),setTimeout((function(){try{a.el.removeChild(t)}catch(t){return!1}}),a.options.duration)}),i)}}},{key:"wrapInput",value:function(){var t=this.el;if("input"===t.tagName.toLowerCase()){var e=t.parentNode;if("i"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("waves-effect"))return;var n=document.createElement("i");n.className=t.className+" waves-input-wrapper";var r=t.getAttribute("style");r||(r=""),n.setAttribute("style",r),t.className="waves-button-input",t.removeAttribute("style"),e.replaceChild(n,t),n.appendChild(t)}}},{key:"triggerEffect",value:function(t){var e=this;this.showEffect(t),"ontouchstart"in window&&(this.el.addEventListener("touchend",(function(t){e.hideEffect.bind(e)(t)}),!1),this.el.addEventListener("touchcancel",(function(t){e.hideEffect.bind(e)(t)}),!1)),this.el.addEventListener("mouseup",(function(t){e.hideEffect.bind(e)(t)}),!1),this.el.addEventListener("mouseleave",(function(t){e.hideEffect.bind(e)(t)}),!1),this.el.addEventListener("dragend",(function(t){e.hideEffect.bind(e)(t)}),!1)}},{key:"isWindow",value:function(t){return null!==t&&t===t.window}},{key:"getWindow",value:function(t){return this.isWindow(t)?t:9===t.nodeType&&t.defaultView}},{key:"offset",value:function(){var t,e,n={top:0,left:0},r=this.el&&this.el.ownerDocument;return t=r.documentElement,"undefined"!==De(this.el.getBoundingClientRect)&&(n=this.el.getBoundingClientRect()),e=this.getWindow(r),{top:n.top+e.pageYOffset-t.clientTop,left:n.left+e.pageXOffset-t.clientLeft}}},{key:"convertStyle",value:function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}}])&&Re(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ae(t){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(t)}function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ve.apply(this,arguments)}function Fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,We(r.key),r)}}function We(t){var e=function(t,e){if("object"!=Ae(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ae(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ae(e)?e:String(e)}function He(t,e,n){return e=qe(e),function(t,e){if(e&&("object"===Ae(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ue()?Reflect.construct(e,n||[],qe(t).constructor):e.apply(t,n))}function Ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ue=function(){return!!t})()}function qe(t){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qe(t)}function Ke(t,e){return Ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ke(t,e)}var Xe=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),He(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ke(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("a",Ve({},this.props,{className:"StokeBtn "+this.props.className}))}}])&&Fe(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Xe.displayName="StokeBtn"}catch(t){}Xe.defaultProps={className:""};const Ze=Xe;function $e(t){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(t)}function Ge(){return Ge=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ge.apply(this,arguments)}function Ye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Qe(r.key),r)}}function Qe(t){var e=function(t,e){if("object"!=$e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=$e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$e(e)?e:String(e)}function Je(t,e,n){return e=en(e),function(t,e){if(e&&("object"===$e(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,tn()?Reflect.construct(e,n||[],en(t).constructor):e.apply(t,n))}function tn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tn=function(){return!!t})()}function en(t){return en=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},en(t)}function nn(t,e){return nn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nn(t,e)}var rn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Je(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nn(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("a",Ge({},this.props,{className:"Btn "+this.props.className}))}}])&&Ye(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{rn.displayName="Btn"}catch(t){}rn.defaultProps={className:""};const on=rn;function an(t){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(t)}function cn(){return cn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},cn.apply(this,arguments)}function sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,un(r.key),r)}}function un(t){var e=function(t,e){if("object"!=an(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=an(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==an(e)?e:String(e)}function ln(t,e,n){return e=pn(e),function(t,e){if(e&&("object"===an(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,fn()?Reflect.construct(e,n||[],pn(t).constructor):e.apply(t,n))}function fn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fn=function(){return!!t})()}function pn(t){return pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pn(t)}function yn(t,e){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yn(t,e)}var hn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ln(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yn(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.wave=new ze(this.el,{duration:950})}},{key:"render",value:function(){var t=this,e="btn waves-effect ";return"circle"==this.props.model&&(e+="btn-floating "),"large"==this.props.size&&(e+="btn-large "),"small"==this.props.size&&(e+="btn-small "),i().createElement("a",cn({},this.props,{ref:function(e){t.el=e},className:e+this.props.className}),this.props.children)}}])&&sn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{hn.displayName="Button"}catch(t){}hn.defaultProps={className:"",model:"standard",size:"medium"};const vn=hn,dn=require("react-router-dom");function mn(t){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(t)}function bn(){return bn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bn.apply(this,arguments)}function gn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,wn(r.key),r)}}function wn(t){var e=function(t,e){if("object"!=mn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==mn(e)?e:String(e)}function On(t,e,n){return e=Sn(e),function(t,e){if(e&&("object"===mn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,jn()?Reflect.construct(e,n||[],Sn(t).constructor):e.apply(t,n))}function jn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jn=function(){return!!t})()}function Sn(t){return Sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sn(t)}function Pn(t,e){return Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pn(t,e)}function En(t){return i().createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},t),i().createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}try{En.displayName="XIcon"}catch(t){}var _n=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),On(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pn(t,e)}(e,t),n=e,(r=[{key:"validateBtnClicked",value:function(t){this.props.onValidate&&"function"==typeof this.props.onValidate&&this.props.onValidate(t)}},{key:"render",value:function(){var t;return"string"==typeof this.props.onCancel?t=i().createElement(dn.Link,{"data-cy":"form-next-cancel-Btn",style:{cursor:"pointer",marginRight:"10px",display:"flex",alignItems:"center"},className:"btn waves-effect red white-text",to:this.props.onCancel},i().createElement(En,{style:{height:"20px"}})):"function"==typeof this.props.onCancel&&(t=i().createElement(vn,{"data-cy":"form-next-cancel-Btn",style:{cursor:"pointer",marginRight:"10px",display:"flex",alignItems:"center"},className:"btn waves-effect red white-text",onClick:this.props.onCancel},i().createElement(En,{style:{height:"20px"}}))),i().createElement("div",bn({},this.props,{className:"formActions "+this.props.className}),this.props.children,i().createElement("div",{className:"col s12",style:{display:"flex",justifyContent:"space-between"}},t,i().createElement(vn,{"data-cy":"form-next-save-Btn",className:"green flexbox ",onClick:this.validateBtnClicked.bind(this)},i().createElement(J,{style:{width:"20px",height:"20px"}}))))}}])&&gn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{_n.displayName="FormActions"}catch(t){}_n.defaultProps={onValidate:Function};const Cn=_n;function kn(t){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(t)}function xn(){return xn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xn.apply(this,arguments)}function Nn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ln(r.key),r)}}function Ln(t){var e=function(t,e){if("object"!=kn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=kn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==kn(e)?e:String(e)}function Tn(t,e,n){return e=Mn(e),function(t,e){if(e&&("object"===kn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Bn()?Reflect.construct(e,n||[],Mn(t).constructor):e.apply(t,n))}function Bn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bn=function(){return!!t})()}function Mn(t){return Mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mn(t)}function Dn(t,e){return Dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dn(t,e)}var Rn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Tn(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dn(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",xn({},this.props,{className:"factit-logo"}),i().createElement("div",{className:"container"},i().createElement("svg",{className:"Trac_1",viewBox:"106.156 56.268 19.64 27.832"},i().createElement("path",{id:"Trac_1",d:"M 106.156005859375 83.27973937988281 L 106.156005859375 56.84753036499023 C 106.156005859375 56.52854537963867 106.3753662109375 56.26800155639648 106.6952972412109 56.26800155639648 L 124.8972473144531 56.26800155639648 C 125.7756500244141 56.26800155639648 125.7957611083984 57.92707443237305 125.7957611083984 59.56508255004883 C 125.7957611083984 61.24332046508789 125.7756500244141 62.90048599243164 124.8972473144531 62.90048599243164 L 113.0087890625 62.90048599243164 L 113.0087890625 68.47639465332031 L 122.8387451171875 68.47639465332031 C 123.6778564453125 68.47639465332031 123.6979675292969 69.934326171875 123.6979675292969 71.37213134765625 C 123.6979675292969 72.83195495605469 123.6778564453125 74.28987121582031 122.8387451171875 74.28987121582031 L 113.0087890625 74.28987121582031 L 113.0087890625 83.26057434082031 C 113.0087890625 84.07958984375 111.2903289794922 84.09970092773438 109.5728302001953 84.09970092773438 C 107.8543548583984 84.09970092773438 106.156005859375 84.07958984375 106.156005859375 83.27973937988281 Z"})),i().createElement("svg",{className:"Trac_2",viewBox:"128.654 63.443 17.342 21.179"},i().createElement("path",{id:"Trac_2",d:"M 128.6540069580078 79.08738708496094 C 128.6540069580078 75.35061645507813 131.8706207275391 73.15320587158203 136.4053039550781 72.27481842041016 L 139.3230590820313 71.71443939208984 L 139.3230590820313 70.71536254882813 C 139.3230590820313 69.79673004150391 138.7425842285156 69.13673400878906 137.48388671875 69.13673400878906 C 135.9455261230469 69.13673400878906 134.1676635742188 69.51702117919922 132.0497436523438 70.63585662841797 C 131.9702453613281 70.67607879638672 131.8897705078125 70.69523620605469 131.8102722167969 70.69523620605469 C 131.2307434082031 70.69523620605469 130.6512145996094 69.61760711669922 130.1722564697266 68.45854187011719 C 129.8523254394531 67.67882537841797 129.552490234375 66.9393310546875 129.552490234375 66.37992095947266 C 129.552490234375 66.02069854736328 129.6722412109375 65.74004364013672 129.9720611572266 65.58103179931641 C 132.7288970947266 64.10299682617188 135.0872192382813 63.44300079345703 137.8239593505859 63.44300079345703 C 142.8787536621094 63.44300079345703 145.9957580566406 65.60115051269531 145.9957580566406 71.23453521728516 L 145.9957580566406 83.60195159912109 C 145.9957580566406 84.40177917480469 144.4573669433594 84.40177917480469 142.9190063476563 84.40177917480469 C 141.3605041503906 84.40177917480469 139.8020172119141 84.40177917480469 139.8020172119141 83.60195159912109 L 139.8020172119141 81.84420013427734 C 138.6439056396484 83.52243804931641 137.0049285888672 84.62210083007813 134.2873992919922 84.62210083007813 C 131.1512451171875 84.62210083007813 128.6540069580078 82.84424591064453 128.6540069580078 79.08738708496094 Z M 139.3230590820313 76.93019104003906 L 139.3230590820313 75.67151641845703 L 136.9848175048828 76.15046691894531 C 136.0863189697266 76.28934478759766 135.3659820556641 76.88996124267578 135.3659820556641 77.76930999755859 C 135.3659820556641 78.52700805664063 135.9656372070313 79.0672607421875 136.8650970458984 79.0672607421875 C 138.5031127929688 79.0672607421875 139.3230590820313 77.88809204101563 139.3230590820313 76.93019104003906 Z"})),i().createElement("svg",{className:"Trac_3",viewBox:"150.755 63.443 16.902 21.179"},i().createElement("path",{id:"Trac_3",d:"M 150.7550048828125 74.03255462646484 C 150.7550048828125 67.55908203125 155.2302856445313 63.44300079345703 160.6443176269531 63.44300079345703 C 163.1616821289063 63.44300079345703 165.3198394775391 63.84244537353516 167.2978820800781 64.98233795166016 C 167.5574798583984 65.12123870849609 167.6570892333984 65.42201995849609 167.6570892333984 65.82145690917969 C 167.6570892333984 66.51976776123047 167.3179931640625 67.49970245361328 167.0181732177734 68.25738525390625 C 166.5382537841797 69.51702117919922 165.7997283935547 70.89639282226563 165.1397552490234 70.89639282226563 C 165.0602264404297 70.89639282226563 164.9606170654297 70.87532806396484 164.8801422119141 70.81497955322266 C 163.8015594482422 70.17605590820313 162.6223907470703 69.75650787353516 161.3244476318359 69.75650787353516 C 159.0666809082031 69.75650787353516 157.5081634521484 71.5745849609375 157.5081634521484 74.03255462646484 C 157.5081634521484 76.47039794921875 159.0666809082031 78.28849029541016 161.3244476318359 78.28849029541016 C 162.6223907470703 78.28849029541016 163.8207092285156 77.88809204101563 164.9404907226563 77.20894622802734 C 165.0401153564453 77.16871643066406 165.11962890625 77.14859008789063 165.2201995849609 77.14859008789063 C 165.8792419433594 77.14859008789063 166.4989929199219 78.38810729980469 166.9578247070313 79.60655975341797 C 167.2777709960938 80.44567108154297 167.6177978515625 81.56546020507813 167.6177978515625 82.32314300537109 C 167.6177978515625 82.68331146240234 167.537353515625 82.96302795410156 167.3381042480469 83.06266021728516 C 165.3600616455078 84.22265625 163.1224060058594 84.62210083007813 160.6443176269531 84.62210083007813 C 155.2302856445313 84.62210083007813 150.7550048828125 80.56540679931641 150.7550048828125 74.03255462646484 Z"})),i().createElement("svg",{className:"Trac_4",viewBox:"171.978 57.603 17.241 26.773"},i().createElement("path",{id:"Trac_4",d:"M 175.7339172363281 76.42376708984375 L 175.7339172363281 69.41196441650391 L 172.7969818115234 69.41196441650391 C 171.9779968261719 69.41196441650391 171.9779968261719 67.95212554931641 171.9779968261719 66.51432037353516 C 171.9779968261719 65.05448150634766 171.9779968261719 63.61667633056641 172.7969818115234 63.61667633056641 L 175.7339172363281 63.61667633056641 L 175.7339172363281 58.42200469970703 C 175.7339172363281 57.60300445556641 177.4322509765625 57.60300445556641 179.0903778076172 57.60300445556641 C 180.7676696777344 57.60300445556641 182.4459075927734 57.60300445556641 182.4459075927734 58.42200469970703 L 182.4459075927734 63.61667633056641 L 186.6223449707031 63.61667633056641 C 187.4815521240234 63.61667633056641 187.4815521240234 65.05448150634766 187.4815521240234 66.51432037353516 C 187.4815521240234 67.95212554931641 187.4815521240234 69.41196441650391 186.6223449707031 69.41196441650391 L 182.4459075927734 69.41196441650391 L 182.4459075927734 76.42376708984375 C 182.4459075927734 77.4420166015625 182.8654632568359 78.42192840576172 184.1241302490234 78.42192840576172 C 184.944091796875 78.42192840576172 185.9240264892578 78.16139221191406 186.8225402832031 77.6422119140625 C 186.9221496582031 77.58281707763672 187.0217742919922 77.56270599365234 187.1213989257813 77.56270599365234 C 187.7220001220703 77.56270599365234 188.1607055664063 78.56179046630859 188.5802764892578 79.74095153808594 C 188.8590087890625 80.48045349121094 189.2191925048828 81.53797149658203 189.2191925048828 82.25831604003906 C 189.2191925048828 82.59837341308594 189.1396789550781 82.87711334228516 188.9203033447266 82.99781036376953 C 187.1606750488281 83.99594116210938 185.3033142089844 84.376220703125 183.0062713623047 84.376220703125 C 178.09033203125 84.376220703125 175.7339172363281 81.49870300292969 175.7339172363281 76.42376708984375 Z"})),i().createElement("svg",{className:"Trac_5",viewBox:"201.942 53.912 8.033 30.089"},i().createElement("path",{id:"Trac_5",d:"M 201.9420166015625 57.64684677124023 C 201.9420166015625 55.30957412719727 203.2207946777344 53.9119987487793 205.9594421386719 53.9119987487793 C 208.6961364746094 53.9119987487793 209.9749450683594 55.30957412719727 209.9749450683594 57.64684677124023 C 209.9749450683594 59.96494674682617 208.6961364746094 61.36349105834961 205.9594421386719 61.36349105834961 C 203.2207946777344 61.36349105834961 201.9420166015625 59.96494674682617 201.9420166015625 57.64684677124023 Z M 202.6020202636719 83.18055725097656 L 202.6020202636719 64.080078125 C 202.6020202636719 63.26204299926758 204.2812194824219 63.26204299926758 205.9795532226563 63.26204299926758 C 207.6376647949219 63.26204299926758 209.2948303222656 63.26204299926758 209.2948303222656 64.080078125 L 209.2948303222656 83.18055725097656 C 209.2948303222656 84.00050354003906 207.6376647949219 84.00050354003906 205.9594421386719 84.00050354003906 C 204.2812194824219 84.00050354003906 202.6020202636719 84.00050354003906 202.6020202636719 83.18055725097656 Z"})),i().createElement("svg",{className:"Trac_6",viewBox:"213.757 57.603 17.243 26.773"},i().createElement("path",{id:"Trac_6",d:"M 217.5138854980469 76.42376708984375 L 217.5138854980469 69.41196441650391 L 214.5769958496094 69.41196441650391 C 213.7570190429688 69.41196441650391 213.7570190429688 67.95212554931641 213.7570190429688 66.51432037353516 C 213.7570190429688 65.05448150634766 213.7570190429688 63.61667633056641 214.5769958496094 63.61667633056641 L 217.5138854980469 63.61667633056641 L 217.5138854980469 58.42200469970703 C 217.5138854980469 57.60300445556641 219.2122192382813 57.60300445556641 220.870361328125 57.60300445556641 C 222.548583984375 57.60300445556641 224.2268371582031 57.60300445556641 224.2268371582031 58.42200469970703 L 224.2268371582031 63.61667633056641 L 228.4013366699219 63.61667633056641 C 229.2605590820313 63.61667633056641 229.2605590820313 65.05448150634766 229.2605590820313 66.51432037353516 C 229.2605590820313 67.95212554931641 229.2605590820313 69.41196441650391 228.4013366699219 69.41196441650391 L 224.2268371582031 69.41196441650391 L 224.2268371582031 76.42376708984375 C 224.2268371582031 77.4420166015625 224.6463928222656 78.42192840576172 225.9050598144531 78.42192840576172 C 226.7231140136719 78.42192840576172 227.7030334472656 78.16139221191406 228.6025085449219 77.6422119140625 C 228.7021179199219 77.58281707763672 228.8017578125 77.56270599365234 228.9023132324219 77.56270599365234 C 229.5010070800781 77.56270599365234 229.940673828125 78.56179046630859 230.3602294921875 79.74095153808594 C 230.6408996582031 80.48045349121094 231.0001220703125 81.53797149658203 231.0001220703125 82.25831604003906 C 231.0001220703125 82.59837341308594 230.9196472167969 82.87711334228516 230.7003173828125 82.99781036376953 C 228.9425354003906 83.99594116210938 227.0832824707031 84.376220703125 224.7862243652344 84.376220703125 C 219.8703308105469 84.376220703125 217.5138854980469 81.49870300292969 217.5138854980469 76.42376708984375 Z"})),i().createElement("svg",{className:"Trac_7",viewBox:"53.242 43.326 37.752 50.589"},i().createElement("path",{id:"Trac_7",d:"M 85.71854400634766 65.21873474121094 L 68.58656311035156 65.21873474121094 C 68.58656311035156 65.00799560546875 68.59038543701172 63.80488586425781 68.59038543701172 63.53571319580078 C 68.59230804443359 61.61991882324219 68.41030120849609 58.41958618164063 65.34503173828125 56.65322113037109 C 64.3583984375 56.084228515625 63.47042083740234 55.58995819091797 62.72805786132813 55.14932250976563 L 89.55587768554688 55.14932250976563 C 90.96207427978516 55.14932250976563 90.99368286132813 52.49977874755859 90.99368286132813 49.81479263305664 C 90.99368286132813 47.19495010375977 90.96207427978516 43.32600402832031 89.55587768554688 43.32600402832031 L 54.81104278564453 43.32600402832031 C 53.94414520263672 43.32600402832031 53.24200439453125 44.02813720703125 53.24200439453125 44.89503860473633 L 53.24200439453125 55.14932250976563 L 53.25445556640625 55.14932250976563 L 53.25445556640625 81.50873565673828 C 53.25445556640625 84.17839050292969 54.38860321044922 86.65742492675781 56.28620147705078 88.13834381103516 C 56.34846496582031 88.18718719482422 56.41551208496094 88.234130859375 56.48256683349609 88.27722930908203 L 64.73006439208984 93.52363586425781 C 65.13909149169922 93.7841796875 65.60845184326172 93.91541290283203 66.07686614990234 93.91541290283203 C 66.49259185791016 93.91541290283203 66.90736389160156 93.81291961669922 67.28382110595703 93.60506439208984 C 68.08748626708984 93.16539001464844 68.58656311035156 92.32147216796875 68.58656311035156 91.40572357177734 L 68.58656311035156 75.82647705078125 L 85.71854400634766 75.82647705078125 L 85.71854400634766 75.82647705078125 C 87.12377166748047 75.82647705078125 87.15634918212891 73.17598724365234 87.15634918212891 70.49195861816406 C 87.15634918212891 67.87115478515625 87.12377166748047 65.21873474121094 85.71854400634766 65.21873474121094 Z M 66.07686614990234 91.40572357177734 L 57.82936859130859 86.15932464599609 C 56.54866790771484 85.16023254394531 55.76414489746094 83.39482879638672 55.76414489746094 81.50873565673828 L 55.76414489746094 50.53800582885742 C 55.90016174316406 52.29574584960938 57.01707458496094 53.96344757080078 58.31790161132813 55.14357757568359 C 58.80067443847656 55.583251953125 59.37158203125 56.02388763427734 60.05168914794922 56.45589447021484 C 61.22703552246094 57.20209503173828 62.85353851318359 58.13413238525391 64.12083435058594 58.84297943115234 C 65.38430023193359 59.54990386962891 66.07686614990234 61.09786224365234 66.07686614990234 62.5931396484375 L 66.07686614990234 91.40572357177734 Z"}))))}}])&&Nn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Rn.displayName="Logo"}catch(t){}Rn.defaultProps={className:""};const In=Rn;function zn(t){return zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(t)}function An(){return An=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},An.apply(this,arguments)}function Vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Fn(r.key),r)}}function Fn(t){var e=function(t,e){if("object"!=zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==zn(e)?e:String(e)}function Wn(t,e,n){return e=Un(e),function(t,e){if(e&&("object"===zn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Hn()?Reflect.construct(e,n||[],Un(t).constructor):e.apply(t,n))}function Hn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Hn=function(){return!!t})()}function Un(t){return Un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Un(t)}function qn(t,e){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qn(t,e)}var Kn=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Wn(this,e)).el=i().createRef(),t.state={open:!1},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qn(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"trigger",value:function(){this.isOpen()?this.close():this.open()}},{key:"open",value:function(){this.el.style.transition="transform 750ms ease 50ms",this.el.style.transform="translateX(0)",this.setState({open:!0})}},{key:"isOpen",value:function(){return this.state.open}},{key:"close",value:function(){this.el.style.transform="translateX(-105%)",this.el.style.transition="transform 750ms ease 50ms",this.setState({open:!1})}},{key:"render",value:function(){var t=this;return i().createElement(i().Fragment,null,i().createElement("ul",An({style:{}},this.props,{ref:function(e){t.el=e},className:"sidenav "+this.props.className})))}}])&&Vn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Kn.displayName="SideNav"}catch(t){}Kn.defaultProps={opened:"false",className:"",fixed:"false",right:"false"};const Xn=Kn;function Zn(t){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(t)}function $n(){return $n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$n.apply(this,arguments)}function Gn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Yn(r.key),r)}}function Yn(t){var e=function(t,e){if("object"!=Zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Zn(e)?e:String(e)}function Qn(t,e,n){return e=tr(e),function(t,e){if(e&&("object"===Zn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Jn()?Reflect.construct(e,n||[],tr(t).constructor):e.apply(t,n))}function Jn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jn=function(){return!!t})()}function tr(t){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tr(t)}function er(t,e){return er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},er(t,e)}var nr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Qn(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&er(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",$n({},this.props,{className:"sidemenu "+this.props.className}),i().createElement("ul",null,this.props.children))}}])&&Gn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{nr.displayName="SideMenu"}catch(t){}const rr=nr;function or(t){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(t)}function ir(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ar(r.key),r)}}function ar(t){var e=function(t,e){if("object"!=or(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==or(e)?e:String(e)}function cr(t,e,n){return e=ur(e),function(t,e){if(e&&("object"===or(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,sr()?Reflect.construct(e,n||[],ur(t).constructor):e.apply(t,n))}function sr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(sr=function(){return!!t})()}function ur(t){return ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ur(t)}function lr(t,e){return lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lr(t,e)}var fr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),cr(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lr(t,e)}(e,t),n=e,(r=[{key:"onMouseDown",value:function(t){t.stopPropagation();var e=this.getLI(t.target),n=e.parentElement.querySelector("li.active");n&&n.classList.remove("active"),e.classList.add("active")}},{key:"getLI",value:function(t){for(var e=t;"LI"!=e.nodeName;)e=e.parentElement;return e}},{key:"render",value:function(){return i().createElement("li",{onMouseDown:this.onMouseDown.bind(this),className:this.props.className||""},this.props.children)}}])&&ir(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{fr.displayName="SideMenuItem"}catch(t){}const pr=fr;function yr(t){return yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yr(t)}function hr(){return hr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hr.apply(this,arguments)}function vr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,dr(r.key),r)}}function dr(t){var e=function(t,e){if("object"!=yr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=yr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==yr(e)?e:String(e)}function mr(t,e,n){return e=gr(e),function(t,e){if(e&&("object"===yr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,br()?Reflect.construct(e,n||[],gr(t).constructor):e.apply(t,n))}function br(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(br=function(){return!!t})()}function gr(t){return gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gr(t)}function wr(t,e){return wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wr(t,e)}var Or=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),mr(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wr(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("ul",hr({},this.props,{className:"collapsible collapsible-accordion "+this.props.className}))}}])&&vr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Or.displayName="Collapsible"}catch(t){}Or.defaultProps={className:""};const jr=Or;function Sr(t){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(t)}function Pr(){return Pr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Pr.apply(this,arguments)}function Er(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_r(r.key),r)}}function _r(t){var e=function(t,e){if("object"!=Sr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Sr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Sr(e)?e:String(e)}function Cr(t,e,n){return e=xr(e),function(t,e){if(e&&("object"===Sr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,kr()?Reflect.construct(e,n||[],xr(t).constructor):e.apply(t,n))}function kr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(kr=function(){return!!t})()}function xr(t){return xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xr(t)}function Nr(t,e){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nr(t,e)}var Lr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Cr(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nr(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i().createElement("div",Pr({},this.props,{ref:function(e){t.el=e},className:"collapsible-body "+this.props.className}))}}])&&Er(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Lr.displayName="CollapsBody"}catch(t){}Lr.defaultProps={className:""};const Tr=Lr;function Br(t){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(t)}function Mr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Dr(r.key),r)}}function Dr(t){var e=function(t,e){if("object"!=Br(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Br(e)?e:String(e)}function Rr(t,e,n){return e=zr(e),function(t,e){if(e&&("object"===Br(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ir()?Reflect.construct(e,n||[],zr(t).constructor):e.apply(t,n))}function Ir(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ir=function(){return!!t})()}function zr(t){return zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zr(t)}function Ar(t,e){return Ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ar(t,e)}var Vr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Rr(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ar(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("li",this.props)}}])&&Mr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Vr.displayName="CollapsElement"}catch(t){}const Fr=Vr;function Wr(t){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(t)}function Hr(){return Hr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Hr.apply(this,arguments)}function Ur(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Gr(r.key),r)}}function qr(t,e,n){return e=Xr(e),function(t,e){if(e&&("object"===Wr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Zr(t)}(t,Kr()?Reflect.construct(e,n||[],Xr(t).constructor):e.apply(t,n))}function Kr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Kr=function(){return!!t})()}function Xr(t){return Xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xr(t)}function Zr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $r(t,e){return $r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$r(t,e)}function Gr(t){var e=function(t,e){if("object"!=Wr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Wr(e)?e:String(e)}var Yr=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return n=Zr(t=qr(this,e,[].concat(a))),o={isOpen:!1},(r=Gr(r="state"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$r(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"showHideBody",value:function(){this.isOpen()?this.collapse():this.expand()}},{key:"collapse",value:function(){this.findCollapsible.bind(this)().querySelector(".collapsible-body").style.display="none",this.setState({isOpen:!1})}},{key:"findCollapsible",value:function(){for(var t=this.el.parentElement;!t.classList.contains("collapsible");)t=t.parentElement;return t}},{key:"expand",value:function(){this.findCollapsible.bind(this)().querySelector(".collapsible-body").style.display="block",this.setState({isOpen:!0})}},{key:"isOpen",value:function(){return this.state.isOpen}},{key:"render",value:function(){var t=this,e=1==this.state.isOpen?Z():G();return i().createElement("div",Hr({},this.props,{ref:function(e){t.el=e},className:"collapsible-header "+this.props.className,onMouseDown:function(e){return t.showHideBody.bind(t)(e)}}),this.props.children,e)}}])&&Ur(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Yr.displayName="CollapsTrigger"}catch(t){}Yr.defaultProps={effectduration:750,className:""};const Qr=Yr;function Jr(t){return Jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(t)}function to(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,eo(r.key),r)}}function eo(t){var e=function(t,e){if("object"!=Jr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Jr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Jr(e)?e:String(e)}function no(t,e,n){return e=oo(e),function(t,e){if(e&&("object"===Jr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ro()?Reflect.construct(e,n||[],oo(t).constructor):e.apply(t,n))}function ro(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ro=function(){return!!t})()}function oo(t){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oo(t)}function io(t,e){return io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},io(t,e)}var ao=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),no(this,n,arguments)}var r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&io(t,e)}(n,t),r=n,(o=[{key:"render",value:function(){return i().createElement(jr,null,i().createElement(Fr,null,i().createElement(Qr,{className:"waves-effect waves-green"},i().createElement(e.Icon,null,this.props.icon),this.props.text||"no text prop"),i().createElement(Tr,{style:{paddingLeft:"20px"}},i().createElement("ul",null,this.props.children))))}}])&&to(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),n}(i().Component);try{ao.displayName="SideCollapsible"}catch(t){}ao.defaultProps={effectduration:750,className:"",path:""};const co=ao;function so(t){return so="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(t)}function uo(){return uo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},uo.apply(this,arguments)}function lo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lo(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=yo(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function po(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yo(r.key),r)}}function yo(t){var e=function(t,e){if("object"!=so(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=so(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==so(e)?e:String(e)}function ho(t,e,n){return e=mo(e),function(t,e){if(e&&("object"===so(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,vo()?Reflect.construct(e,n||[],mo(t).constructor):e.apply(t,n))}function vo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vo=function(){return!!t})()}function mo(t){return mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mo(t)}function bo(t,e){return bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bo(t,e)}var go=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ho(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bo(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this;return i().createElement("li",uo({},this.props,{style:fo({},this.props.style)}),i().createElement(dn.Link,uo({},this.props,{className:"waves-effect waves-green"+this.props.className,innerRef:function(e){t.el=e},to:this.props.to}),this.props.children))}}])&&po(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{go.displayName="SideLink"}catch(t){}go.defaultProps={effectduration:750,className:"",to:"/"};const wo=go;function Oo(t){return Oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(t)}function jo(){return jo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jo.apply(this,arguments)}function So(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Po(r.key),r)}}function Po(t){var e=function(t,e){if("object"!=Oo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Oo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Oo(e)?e:String(e)}function Eo(t,e,n){return e=Co(e),function(t,e){if(e&&("object"===Oo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_o()?Reflect.construct(e,n||[],Co(t).constructor):e.apply(t,n))}function _o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_o=function(){return!!t})()}function Co(t){return Co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Co(t)}function ko(t,e){return ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ko(t,e)}var xo=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Eo(this,e)).data=null,t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ko(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.data=this.props.data}},{key:"selectItem",value:function(){var t=this.el.current.parentElement.querySelector(".selected");t&&t.classList.remove("selected"),this.el.current.classList.add("selected"),this.props.onClick&&"function"==typeof this.props.onClick&&this.props.onClick(this.data)}},{key:"render",value:function(){return i().createElement("li",jo({ref:this.el},this.props,{className:"waves-effect waves-green "+this.props.className,style:{display:"inherit"}}),i().createElement("a",null,this.props.children))}}])&&So(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{xo.displayName="SidenavEl"}catch(t){}xo.defaultProps={effectduration:750,className:"waves-effect waves-green ",path:"",icon:"home",data:[]};const No=xo;function Lo(t){return Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lo(t)}function To(){return To=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},To.apply(this,arguments)}function Bo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Mo(r.key),r)}}function Mo(t){var e=function(t,e){if("object"!=Lo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Lo(e)?e:String(e)}function Do(t,e,n){return e=Io(e),function(t,e){if(e&&("object"===Lo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ro()?Reflect.construct(e,n||[],Io(t).constructor):e.apply(t,n))}function Ro(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ro=function(){return!!t})()}function Io(t){return Io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Io(t)}function zo(t,e){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zo(t,e)}var Ao=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Do(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zo(t,e)}(e,t),n=e,(r=[{key:"runSearch",value:function(){}},{key:"render",value:function(){return i().createElement("li",To({},this.props,{className:"search "+this.props.className}),i().createElement("div",{className:"search-wrapper"},i().createElement("input",{ref:this.el,type:"search",placeholder:"Search"}),i().createElement("div",{className:"search-results"})))}}])&&Bo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ao.displayName="SidenavSearch"}catch(t){}Ao.defaultProps={className:" "};const Vo=Ao;function Fo(t){return Fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(t)}function Wo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ho(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wo(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=qo(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Uo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qo(r.key),r)}}function qo(t){var e=function(t,e){if("object"!=Fo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Fo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Fo(e)?e:String(e)}function Ko(t,e,n){return e=Zo(e),function(t,e){if(e&&("object"===Fo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Xo()?Reflect.construct(e,n||[],Zo(t).constructor):e.apply(t,n))}function Xo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xo=function(){return!!t})()}function Zo(t){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zo(t)}function $o(t,e){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$o(t,e)}var Go=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ko(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$o(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this;return i().createElement("li",{onClick:this.props.onClick,style:Ho({},this.props.style),className:this.props.className},i().createElement(dn.Link,{className:"waves-effect waves-green iconSideLink "+this.props.className,"data-cy":this.props["data-cy"],innerRef:function(e){t.el=e},to:this.props.to},this.props.icon&&i().createElement(this.props.icon,{style:{marginRight:"20px"}}),this.props.children))}}])&&Uo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Go.displayName="IconSideLink"}catch(t){}Go.defaultProps={effectduration:750,className:"",to:"/"};const Yo=Go;function Qo(t){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(t)}function Jo(){return Jo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jo.apply(this,arguments)}function ti(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ei(r.key),r)}}function ei(t){var e=function(t,e){if("object"!=Qo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qo(e)?e:String(e)}function ni(t,e,n){return e=oi(e),function(t,e){if(e&&("object"===Qo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ri()?Reflect.construct(e,n||[],oi(t).constructor):e.apply(t,n))}function ri(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ri=function(){return!!t})()}function oi(t){return oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oi(t)}function ii(t,e){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ii(t,e)}var ai=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ni(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ii(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Jo({},this.props,{className:"card "+this.props.className}))}}])&&ti(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ai.displayName="Card"}catch(t){}ai.defaultProps={className:""};const ci=ai;function si(t){return si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(t)}function ui(){return ui=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ui.apply(this,arguments)}function li(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,fi(r.key),r)}}function fi(t){var e=function(t,e){if("object"!=si(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=si(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==si(e)?e:String(e)}function pi(t,e,n){return e=hi(e),function(t,e){if(e&&("object"===si(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,yi()?Reflect.construct(e,n||[],hi(t).constructor):e.apply(t,n))}function yi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yi=function(){return!!t})()}function hi(t){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hi(t)}function vi(t,e){return vi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vi(t,e)}var di=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),pi(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vi(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",ui({},this.props,{className:"card-action "+this.props.className}))}}])&&li(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{di.displayName="CardAction"}catch(t){}di.defaultProps={className:""};const mi=di;function bi(t){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(t)}function gi(){return gi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gi.apply(this,arguments)}function wi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Oi(r.key),r)}}function Oi(t){var e=function(t,e){if("object"!=bi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=bi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==bi(e)?e:String(e)}function ji(t,e,n){return e=Pi(e),function(t,e){if(e&&("object"===bi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Si()?Reflect.construct(e,n||[],Pi(t).constructor):e.apply(t,n))}function Si(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Si=function(){return!!t})()}function Pi(t){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pi(t)}function Ei(t,e){return Ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ei(t,e)}var _i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ji(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ei(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",gi({},this.props,{className:"card-content "+this.props.className}))}}])&&wi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{_i.displayName="CardContent"}catch(t){}_i.defaultProps={className:""};const Ci=_i;function ki(t){return ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(t)}function xi(){return xi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xi.apply(this,arguments)}function Ni(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Li(r.key),r)}}function Li(t){var e=function(t,e){if("object"!=ki(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ki(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ki(e)?e:String(e)}function Ti(t,e,n){return e=Mi(e),function(t,e){if(e&&("object"===ki(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Bi()?Reflect.construct(e,n||[],Mi(t).constructor):e.apply(t,n))}function Bi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bi=function(){return!!t})()}function Mi(t){return Mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mi(t)}function Di(t,e){return Di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Di(t,e)}var Ri=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ti(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Di(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("span",xi({},this.props,{className:"card-title "+(this.props.className||"")}))}}])&&Ni(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ri.displayName="CardTitle"}catch(t){}Ri.defaultProps={className:""};const Ii=Ri;function zi(t){return zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zi(t)}function Ai(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ai(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=Wi(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wi(r.key),r)}}function Wi(t){var e=function(t,e){if("object"!=zi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=zi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==zi(e)?e:String(e)}function Hi(t,e,n){return e=qi(e),function(t,e){if(e&&("object"===zi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ui()?Reflect.construct(e,n||[],qi(t).constructor):e.apply(t,n))}function Ui(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ui=function(){return!!t})()}function qi(t){return qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qi(t)}function Ki(t,e){return Ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ki(t,e)}var Xi=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Hi(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ki(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",{style:Vi({},this.props.style),className:"card-image "+this.props.className},i().createElement("img",{src:this.props.src}),this.props.imageTitle&&i().createElement("span",{class:"card-title"},this.props.imageTitle),this.props.children)}}])&&Fi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Xi.displayName="CardImage"}catch(t){}Xi.defaultProps={className:""};const Zi=Xi;function $i(t){return $i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(t)}function Gi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Yi(r.key),r)}}function Yi(t){var e=function(t,e){if("object"!=$i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=$i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$i(e)?e:String(e)}function Qi(t,e,n){return e=ta(e),function(t,e){if(e&&("object"===$i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ji()?Reflect.construct(e,n||[],ta(t).constructor):e.apply(t,n))}function Ji(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ji=function(){return!!t})()}function ta(t){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ta(t)}function ea(t,e){return ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ea(t,e)}var na=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Qi(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ea(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){var t=document.querySelector(".cube"),e=document.querySelector(".radio-group"),n="";function r(){var r="show-"+e.querySelector(":checked").value;n&&t.classList.remove(n),t.classList.add(r),n=r}r(),e.addEventListener("change",r)}},{key:"render",value:function(){return i().createElement(i().Fragment,null,i().createElement("div",{className:"scene"},i().createElement("div",{className:"cube"},i().createElement("div",{className:"cube__face cube__face--front"},i().createElement("div",{className:"card-panel",style:{height:"200px",margin:"0",fontSize:"12px",color:"black"}},i().createElement("h4",null,"authentication"),"Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo, eos repellat? Ducimus fuga totam magnam? Iste, praesentium? Possimus assumenda magnam distinctio eos officiis, quos corrupti dolor veritatis reiciendis. Labore, sint!")),i().createElement("div",{className:"cube__face cube__face--back"},i().createElement("div",{className:"card-panel",style:{height:"200px",margin:"0",fontSize:"12px",color:"black"}},i().createElement("h4",null,"Senregistrer"),"Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo, eos repellat? Ducimus fuga totam magnam? Iste, praesentium? Possimus assumenda magnam distinctio eos officiis, quos corrupti dolor veritatis reiciendis. Labore, sint!")),i().createElement("div",{className:"cube__face cube__face--right"},i().createElement("div",{className:"card-panel",style:{height:"200px",margin:"0",fontSize:"12px",color:"black"}},i().createElement("h4",null,"Activation"),"Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo, eos repellat? Ducimus fuga totam magnam? Iste, praesentium? Possimus assumenda magnam distinctio eos officiis, quos corrupti dolor veritatis reiciendis. Labore, sint!")),i().createElement("div",{className:"cube__face cube__face--left"},"left"),i().createElement("div",{className:"cube__face cube__face--top"},"top"),i().createElement("div",{className:"cube__face cube__face--bottom"},"bottom"))),i().createElement("p",{className:"radio-group"},i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"front",checked:!0})," front"),i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"right"})," right"),i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"back"})," back"),i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"left"})," left"),i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"top"})," top"),i().createElement("label",null,i().createElement("input",{type:"radio",name:"rotate-cube-side",value:"bottom"})," bottom")))}}])&&Gi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{na.displayName="Cube"}catch(t){}na.defaultProps={className:""};const ra=na;function oa(t){return oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(t)}function ia(){return ia=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ia.apply(this,arguments)}function aa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,pa(r.key),r)}}function ca(t,e,n){return e=ua(e),function(t,e){if(e&&("object"===oa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return la(t)}(t,sa()?Reflect.construct(e,n||[],ua(t).constructor):e.apply(t,n))}function sa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(sa=function(){return!!t})()}function ua(t){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ua(t)}function la(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fa(t,e){return fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fa(t,e)}function pa(t){var e=function(t,e){if("object"!=oa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=oa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==oa(e)?e:String(e)}var ya=function(t){function e(t){var n,r,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=la(n=ca(this,e,[t])),i={visible:!1},(o=pa(o="state"))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fa(t,e)}(e,t),n=e,(r=[{key:"show",value:function(){this.setState({visible:!0})}},{key:"open",value:function(){return this.show()}},{key:"isVisible",value:function(){return this.state.visible}},{key:"hide",value:function(){this.setState({visible:!1})}},{key:"close",value:function(){return this.hide()}},{key:"render",value:function(){var t=this;return this.state.visible?i().createElement("div",ia({ref:function(e){t.el=e}},this.props,{className:"modal-overlay "+this.props.className})):null}}])&&aa(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ya.displayName="Overlay"}catch(t){}ya.defaultProps={className:""};const ha=ya;function va(t){return va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},va(t)}function da(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ma(r.key),r)}}function ma(t){var e=function(t,e){if("object"!=va(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=va(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==va(e)?e:String(e)}function ba(t,e,n){return e=wa(e),function(t,e){if(e&&("object"===va(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ga()?Reflect.construct(e,n||[],wa(t).constructor):e.apply(t,n))}function ga(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ga=function(){return!!t})()}function wa(t){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wa(t)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Oa(t,e)}function ja(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")}var Sa=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ba(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oa(t,e)}(e,t),n=e,(r=[{key:"getAddBtn",value:function(){if(this.props.addRedirectTo)return i().createElement(dn.Link,{to:this.props.addRedirectTo,"data-cy":"clt-addBtn",style:{display:"inline-flex",justifyContent:"center",alignItems:"center"},className:ja(this.props.disabled?"disabled":"","btn waves-effect btn-floating btn-small myblue")},i().createElement(et,{style:{height:"25px",width:"25px"}}))}},{key:"getContent",value:function(){return this.props.noContent?i().createElement(i().Fragment,null,i().createElement("div",{style:{display:"flex",justifyContent:"space-between",padding:"8px"}},this.props.paginated&&i().createElement("span",null," ",i().createElement("select",{value:this.props.value||10,onChange:"function"==typeof this.props.onlines&&this.props.onlines},i().createElement("option",{value:10},"10"),i().createElement("option",{value:25},"25"),i().createElement("option",{value:50},"50"),i().createElement("option",{value:100},"100")),"  lignes/page"),this.getAddBtn()),i().createElement("hr",{style:{height:"1px",border:"none",marginBottom:"19px"},className:""})):i().createElement(i().Fragment,null,i().createElement("div",{style:{display:"flex",padding:"8px"}},this.props.paginated&&i().createElement("span",null," ",i().createElement("select",{value:this.props.value||10,onChange:"function"==typeof this.props.onlines&&this.props.onlines},i().createElement("option",{value:10},"10"),i().createElement("option",{value:25},"25"),i().createElement("option",{value:50},"50"),i().createElement("option",{value:100},"100")),"  lignes/page"),i().createElement("h4",{className:"title center-align",style:{flex:1,alignSelf:"center",display:"flex",justifyContent:"center",alignItems:"center"}},"string"==typeof this.props.hicon?i().createElement(i().Fragment,null,"   "):i().createElement(this.props.hicon,{style:{width:"32px"}})," ","  ",this.props.htext||"Client"),this.getAddBtn()),i().createElement("hr",{style:{height:"1px",border:"none",marginBottom:"19px"},className:""}))}},{key:"render",value:function(){var t={};return this.props.noContent&&(t.boxShadow="none"),i().createElement("div",{className:"innerpage",style:t},this.getContent(),i().createElement("div",{className:"listeClient"},this.props.children))}}])&&da(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(o.Component);try{Sa.displayName="InnerPage"}catch(t){}const Pa=Sa;function Ea(t){return Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ea(t)}function _a(){return _a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_a.apply(this,arguments)}function Ca(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ka(r.key),r)}}function ka(t){var e=function(t,e){if("object"!=Ea(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ea(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ea(e)?e:String(e)}function xa(t,e,n){return e=La(e),function(t,e){if(e&&("object"===Ea(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Na()?Reflect.construct(e,n||[],La(t).constructor):e.apply(t,n))}function Na(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Na=function(){return!!t})()}function La(t){return La=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},La(t)}function Ta(t,e){return Ta=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ta(t,e)}var Ba=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),xa(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ta(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",_a({},this.props,{className:"row "+this.props.className}))}}])&&Ca(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ba.displayName="Row"}catch(t){}Ba.defaultProps={className:""};const Ma=Ba;function Da(t){return Da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Da(t)}function Ra(){return Ra=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ra.apply(this,arguments)}function Ia(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,za(r.key),r)}}function za(t){var e=function(t,e){if("object"!=Da(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Da(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Da(e)?e:String(e)}function Aa(t,e,n){return e=Fa(e),function(t,e){if(e&&("object"===Da(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Va()?Reflect.construct(e,n||[],Fa(t).constructor):e.apply(t,n))}function Va(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Va=function(){return!!t})()}function Fa(t){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fa(t)}function Wa(t,e){return Wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wa(t,e)}var Ha=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Aa(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wa(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i().createElement("div",Ra({},this.props,{ref:function(e){return t.el=e},className:"col "+this.props.className}))}}])&&Ia(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ha.displayName="Col"}catch(t){}Ha.defaultProps={className:""};const Ua=Ha;function qa(t){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qa(t)}function Ka(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Xa(r.key),r)}}function Xa(t){var e=function(t,e){if("object"!=qa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==qa(e)?e:String(e)}function Za(t,e,n){return e=Ga(e),function(t,e){if(e&&("object"===qa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$a()?Reflect.construct(e,n||[],Ga(t).constructor):e.apply(t,n))}function $a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($a=function(){return!!t})()}function Ga(t){return Ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ga(t)}function Ya(t,e){return Ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ya(t,e)}var Qa=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=Za(this,e,[t])).state={view:localStorage.getItem(n.props.name+"tabindex")||0},n}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ya(t,e)}(e,t),n=e,(r=[{key:"getView",value:function(){return this.props.tabs[this.state.view].cmp}},{key:"headerClick",value:function(t){var e=parseInt(t.target.dataset.index);localStorage.setItem(this.props.name+"tabindex",e),this.setState({view:e})}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"tabs activeTab-"+this.state.view},i().createElement("div",{className:"tabs-header-overlay"},this.props.tabs.map((function(e,n){return i().createElement("div",{"data-index":n,key:n,onClick:t.headerClick.bind(t),className:"tab-header-over"+n+" "+(t.state.view==n?"active":"")},i().createElement("div",{"data-index":n,key:n,className:"tab-header "+(t.state.view==n?"active":"")},e.text))}))),i().createElement("div",{className:"tab-content"},this.getView()))}}])&&Ka(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Qa.displayName="Tabs"}catch(t){}Qa.defaultProps={name:"Tabs",tabs:[{text:"TAB01",cmp:i().createElement("div",null,"TAB CONTENT 1 attention veuillez renseigner la props tabs")},{text:"TAB01",cmp:i().createElement("div",null,"TAB CONTENT 1 attention veuillez renseigner la props tabs")},{text:"TAB02",cmp:i().createElement("div",null,"TAB CONTANT 2")}]};const Ja=Qa;function tc(t){return tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(t)}function ec(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nc(r.key),r)}}function nc(t){var e=function(t,e){if("object"!=tc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=tc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==tc(e)?e:String(e)}const rc=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,n=[{key:"loadstart",value:function(t){var e=document.createElement("div");e.id="loader-overlay",e.className="loader-overlay";var n=document.createElement("div");if(n.className="loader",e.appendChild(n),t){var r=document.createElement("div");r.className="loader-text",r.innerHTML=t,e.appendChild(r)}document.body.appendChild(e)}},{key:"loadstop",value:function(){var t=document.getElementById("loader-overlay");t&&t.remove()}}],null&&ec(e.prototype,null),n&&ec(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function oc(t){return oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(t)}function ic(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ac(r.key),r)}}function ac(t){var e=function(t,e){if("object"!=oc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=oc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==oc(e)?e:String(e)}const cc=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.duration=3e3}var e,n;return e=t,(n=[{key:"__message",value:function(t,e){var n=this;document.querySelectorAll(".flash-message").forEach((function(t){t.parentElement.removeChild(t)})),""!=e&&null!=e&&null!=e&&(this.el=document.createElement("div"),this.el.className="flash-message "+(t||""),this.el.innerHTML=e,document.body.appendChild(this.el),setTimeout((function(){n.el.remove()}),this.duration))}},{key:"info",value:function(t){return this.__message("info",t)}},{key:"error",value:function(t){return this.__message("error",t)}},{key:"warn",value:function(t){return this.__message("warn",t)}}])&&ic(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function sc(t){return sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sc(t)}function uc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vc(r.key),r)}}function lc(t,e,n){return e=pc(e),function(t,e){if(e&&("object"===sc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yc(t)}(t,fc()?Reflect.construct(e,n||[],pc(t).constructor):e.apply(t,n))}function fc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fc=function(){return!!t})()}function pc(t){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pc(t)}function yc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hc(t,e){return hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hc(t,e)}function vc(t){var e=function(t,e){if("object"!=sc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=sc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==sc(e)?e:String(e)}var dc=function(t){function e(){var t,n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];return n=yc(t=lc(this,e,[].concat(a))),o={selected:""},(r=vc(r="state"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hc(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){for(var t=null,e=0;e<this.props.options.length;e++){var n=this.props.options[e];n.selected&&(this.setState({selected:n.label}),t=!0)}null===t&&this.setState({selected:this.props.options[0].label})}},{key:"handleClick",value:function(t){t.label!=this.state.selected&&(this.setState({selected:t.label}),this.props.onChange(t.label))}},{key:"render",value:function(){var t=this,e=this.props.options;return i().createElement("div",{className:"radio-icons"},e.map((function(e,n){return i().createElement("div",{onClick:function(n){t.handleClick.bind(t)(e)},key:n,style:e.label==t.state.selected?{color:e.color,borderColor:e.color}:{},className:"option","data-cy":e.dataCy},i().isValidElement(e.icon)?e.icon:i().createElement(e.icon,{style:{width:"25px",height:"25px"}}),e.label)})))}}])&&uc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{dc.displayName="RadioIcons"}catch(t){}const mc=dc;function bc(t){return bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bc(t)}function gc(){return gc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gc.apply(this,arguments)}function wc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Oc(r.key),r)}}function Oc(t){var e=function(t,e){if("object"!=bc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=bc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==bc(e)?e:String(e)}function jc(t,e,n){return e=Pc(e),function(t,e){if(e&&("object"===bc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Sc()?Reflect.construct(e,n||[],Pc(t).constructor):e.apply(t,n))}function Sc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Sc=function(){return!!t})()}function Pc(t){return Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pc(t)}function Ec(t,e){return Ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ec(t,e)}var _c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),jc(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ec(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",gc({},this.props,{className:"collection "+this.props.className}))}}])&&wc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{_c.displayName="Collection"}catch(t){}_c.defaultProps={className:""};const Cc=_c;function kc(t){return kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kc(t)}function xc(){return xc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xc.apply(this,arguments)}function Nc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Lc(r.key),r)}}function Lc(t){var e=function(t,e){if("object"!=kc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=kc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==kc(e)?e:String(e)}function Tc(t,e,n){return e=Mc(e),function(t,e){if(e&&("object"===kc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Bc()?Reflect.construct(e,n||[],Mc(t).constructor):e.apply(t,n))}function Bc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bc=function(){return!!t})()}function Mc(t){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mc(t)}function Dc(t,e){return Dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dc(t,e)}var Rc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Tc(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dc(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",xc({},this.props,{className:"collection-item "+this.props.className}))}}])&&Nc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Rc.displayName="CollectionItem"}catch(t){}Rc.defaultProps={className:""};const Ic=Rc;var zc=n(893);function Ac(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Vc(t,e,n){return e=Wc(e),function(t,e){if(e&&("object"===Uc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Fc()?Reflect.construct(e,n||[],Wc(t).constructor):e.apply(t,n))}function Fc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fc=function(){return!!t})()}function Wc(t){return Wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wc(t)}function Hc(t,e){return Hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hc(t,e)}function Uc(t){return Uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uc(t)}function qc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Zc(r.key),r)}}function Xc(t,e,n){return e&&Kc(t.prototype,e),n&&Kc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zc(t){var e=function(t,e){if("object"!=Uc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Uc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Uc(e)?e:String(e)}var $c=function(){function t(e,n,r,o){if(qc(this,t),isNaN(e)||isNaN(n))throw new Error("Point is invalid: (".concat(e,", ").concat(n,")"));this.x=+e,this.y=+n,this.pressure=r||0,this.time=o||Date.now()}return Xc(t,[{key:"distanceTo",value:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}},{key:"equals",value:function(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}},{key:"velocityFrom",value:function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}]),t}(),Gc=function(){function t(e,n,r,o,i,a){qc(this,t),this.startPoint=e,this.control2=n,this.control1=r,this.endPoint=o,this.startWidth=i,this.endWidth=a}return Xc(t,[{key:"length",value:function(){for(var t,e,n=0,r=0;r<=10;r+=1){var o=r/10,i=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){var c=i-t,s=a-e;n+=Math.sqrt(c*c+s*s)}t=i,e=a}return n}},{key:"point",value:function(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t}}],[{key:"fromPoints",value:function(e,n){var r=this.calculateControlPoints(e[0],e[1],e[2]).c2,o=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new t(e[1],r,o,e[2],n.start,n.end)}},{key:"calculateControlPoints",value:function(t,e,n){var r=t.x-e.x,o=t.y-e.y,i=e.x-n.x,a=e.y-n.y,c=(t.x+e.x)/2,s=(t.y+e.y)/2,u=(e.x+n.x)/2,l=(e.y+n.y)/2,f=Math.sqrt(r*r+o*o),p=Math.sqrt(i*i+a*a),y=p/(f+p),h=u+(c-u)*y,v=l+(s-l)*y,d=e.x-h,m=e.y-v;return{c1:new $c(c+d,s+m),c2:new $c(u+d,l+m)}}}]),t}(),Yc=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return qc(this,e),(n=Vc(this,e)).canvas=t,n._drawingStroke=!1,n._isEmpty=!0,n._lastPoints=[],n._data=[],n._lastVelocity=0,n._lastWidth=0,n._handleMouseDown=function(t){1===t.buttons&&n._strokeBegin(t)},n._handleMouseMove=function(t){n._strokeMoveUpdate(t)},n._handleMouseUp=function(t){1===t.buttons&&n._strokeEnd(t)},n._handleTouchStart=function(t){if(t.cancelable&&t.preventDefault(),1===t.targetTouches.length){var e=t.changedTouches[0];n._strokeBegin(e)}},n._handleTouchMove=function(t){t.cancelable&&t.preventDefault();var e=t.targetTouches[0];n._strokeMoveUpdate(e)},n._handleTouchEnd=function(t){if(t.target===n.canvas){t.cancelable&&t.preventDefault();var e=t.changedTouches[0];n._strokeEnd(e)}},n._handlePointerStart=function(t){t.preventDefault(),n._strokeBegin(t)},n._handlePointerMove=function(t){n._strokeMoveUpdate(t)},n._handlePointerEnd=function(t){n._drawingStroke&&(t.preventDefault(),n._strokeEnd(t))},n.velocityFilterWeight=r.velocityFilterWeight||.7,n.minWidth=r.minWidth||.5,n.maxWidth=r.maxWidth||2.5,n.throttle="throttle"in r?r.throttle:16,n.minDistance="minDistance"in r?r.minDistance:5,n.dotSize=r.dotSize||0,n.penColor=r.penColor||"black",n.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",n.compositeOperation=r.compositeOperation||"source-over",n._strokeMoveUpdate=n.throttle?function(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,i=0,a=null,c=function(){i=Date.now(),a=null,e=t.apply(n,r),a||(n=null,r=[])};return function(){var s=Date.now(),u=o-(s-i);n=this;for(var l=arguments.length,f=new Array(l),p=0;p<l;p++)f[p]=arguments[p];return r=f,u<=0||u>o?(a&&(clearTimeout(a),a=null),i=s,e=t.apply(n,r),a||(n=null,r=[])):a||(a=window.setTimeout(c,u)),e}}(e.prototype._strokeUpdate,n.throttle):e.prototype._strokeUpdate,n._ctx=t.getContext("2d"),n.clear(),n.on(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hc(t,e)}(e,t),Xc(e,[{key:"clear",value:function(){var t=this._ctx,e=this.canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}},{key:"fromDataURL",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,o){var i=new Image,a=n.ratio||window.devicePixelRatio||1,c=n.width||e.canvas.width/a,s=n.height||e.canvas.height/a,u=n.xOffset||0,l=n.yOffset||0;e._reset(e._getPointGroupOptions()),i.onload=function(){e._ctx.drawImage(i,u,l,c,s),r()},i.onerror=function(t){o(t)},i.crossOrigin="anonymous",i.src=t,e._isEmpty=!1}))}},{key:"toDataURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",e=arguments.length>1?arguments[1]:void 0;return"image/svg+xml"===t?("object"!==Uc(e)&&(e=void 0),"data:image/svg+xml;base64,".concat(btoa(this.toSVG(e)))):("number"!=typeof e&&(e=void 0),this.canvas.toDataURL(t,e))}},{key:"on",value:function(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";var t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}},{key:"off",value:function(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}},{key:"isEmpty",value:function(){return this._isEmpty}},{key:"fromData",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clear;(void 0===e||e)&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}},{key:"toData",value:function(){return this._data}},{key:"_getPointGroupOptions",value:function(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}},{key:"_strokeBegin",value:function(t){if(this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0}))){this._drawingStroke=!0;var e=this._getPointGroupOptions(),n=Object.assign(Object.assign({},e),{points:[]});this._data.push(n),this._reset(e),this._strokeUpdate(t)}}},{key:"_strokeUpdate",value:function(t){if(this._drawingStroke)if(0!==this._data.length){this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));var e=t.clientX,n=t.clientY,r=void 0!==t.pressure?t.pressure:void 0!==t.force?t.force:0,o=this._createPoint(e,n,r),i=this._data[this._data.length-1],a=i.points,c=a.length>0&&a[a.length-1],s=!!c&&o.distanceTo(c)<=this.minDistance,u=this._getPointGroupOptions(i);if(!c||!c||!s){var l=this._addPoint(o,u);c?l&&this._drawCurve(l,u):this._drawDot(o,u),a.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}else this._strokeBegin(t)}},{key:"_strokeEnd",value:function(t){this._drawingStroke&&(this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}},{key:"_handlePointerEvents",value:function(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}},{key:"_handleMouseEvents",value:function(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}},{key:"_handleTouchEvents",value:function(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}},{key:"_reset",value:function(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}},{key:"_createPoint",value:function(t,e,n){var r=this.canvas.getBoundingClientRect();return new $c(t-r.left,e-r.top,n,(new Date).getTime())}},{key:"_addPoint",value:function(t,e){var n=this._lastPoints;if(n.push(t),n.length>2){3===n.length&&n.unshift(n[0]);var r=this._calculateCurveWidths(n[1],n[2],e),o=Gc.fromPoints(n,r);return n.shift(),o}return null}},{key:"_calculateCurveWidths",value:function(t,e,n){var r=n.velocityFilterWeight*e.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),i={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,i}},{key:"_strokeWidth",value:function(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}},{key:"_drawCurveSegment",value:function(t,e,n){var r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1}},{key:"_drawCurve",value:function(t,e){var n=this._ctx,r=t.endWidth-t.startWidth,o=2*Math.ceil(t.length());n.beginPath(),n.fillStyle=e.penColor;for(var i=0;i<o;i+=1){var a=i/o,c=a*a,s=c*a,u=1-a,l=u*u,f=l*u,p=f*t.startPoint.x;p+=3*l*a*t.control1.x,p+=3*u*c*t.control2.x,p+=s*t.endPoint.x;var y=f*t.startPoint.y;y+=3*l*a*t.control1.y,y+=3*u*c*t.control2.y,y+=s*t.endPoint.y;var h=Math.min(t.startWidth+s*r,e.maxWidth);this._drawCurveSegment(p,y,h)}n.closePath(),n.fill()}},{key:"_drawDot",value:function(t,e){var n=this._ctx,r=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;n.beginPath(),this._drawCurveSegment(t.x,t.y,r),n.closePath(),n.fillStyle=e.penColor,n.fill()}},{key:"_fromData",value:function(t,e,n){var r,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ac(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)?Ac(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i.points,c=this._getPointGroupOptions(i);if(a.length>1)for(var s=0;s<a.length;s+=1){var u=a[s],l=new $c(u.x,u.y,u.pressure,u.time);0===s&&this._reset(c);var f=this._addPoint(l,c);f&&e(f,c)}else this._reset(c),n(a[0],c)}}catch(t){o.e(t)}finally{o.f()}}},{key:"toSVG",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).includeBackgroundColor,e=void 0!==t&&t,n=this._data,r=Math.max(window.devicePixelRatio||1,1),o=this.canvas.width/r,i=this.canvas.height/r,a=document.createElementNS("http://www.w3.org/2000/svg","svg");if(a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),a.setAttribute("viewBox","".concat(0," ").concat(0," ").concat(o," ").concat(i)),a.setAttribute("width",o.toString()),a.setAttribute("height",i.toString()),e&&this.backgroundColor){var c=document.createElement("rect");c.setAttribute("width","100%"),c.setAttribute("height","100%"),c.setAttribute("fill",this.backgroundColor),a.appendChild(c)}return this._fromData(n,(function(t,e){var n=e.penColor,r=document.createElement("path");if(!(isNaN(t.control1.x)||isNaN(t.control1.y)||isNaN(t.control2.x)||isNaN(t.control2.y))){var o="M ".concat(t.startPoint.x.toFixed(3),",").concat(t.startPoint.y.toFixed(3)," ")+"C ".concat(t.control1.x.toFixed(3),",").concat(t.control1.y.toFixed(3)," ")+"".concat(t.control2.x.toFixed(3),",").concat(t.control2.y.toFixed(3)," ")+"".concat(t.endPoint.x.toFixed(3),",").concat(t.endPoint.y.toFixed(3));r.setAttribute("d",o),r.setAttribute("stroke-width",(2.25*t.endWidth).toFixed(3)),r.setAttribute("stroke",n),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),a.appendChild(r)}}),(function(t,e){var n=e.penColor,r=e.dotSize,o=e.minWidth,i=e.maxWidth,c=document.createElement("circle"),s=r>0?r:(o+i)/2;c.setAttribute("r",s.toString()),c.setAttribute("cx",t.x.toString()),c.setAttribute("cy",t.y.toString()),c.setAttribute("fill",n),a.appendChild(c)})),a.outerHTML}}]),e}(function(){function t(){qc(this,t);try{this._et=new EventTarget}catch(t){this._et=document}}return Xc(t,[{key:"addEventListener",value:function(t,e,n){this._et.addEventListener(t,e,n)}},{key:"dispatchEvent",value:function(t){return this._et.dispatchEvent(t)}},{key:"removeEventListener",value:function(t,e,n){this._et.removeEventListener(t,e,n)}}]),t}());function Qc(t){return Qc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qc(t)}function Jc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ts(r.key),r)}}function ts(t){var e=function(t,e){if("object"!=Qc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Qc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qc(e)?e:String(e)}function es(t,e,n){return e=rs(e),function(t,e){if(e&&("object"===Qc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ns()?Reflect.construct(e,n||[],rs(t).constructor):e.apply(t,n))}function ns(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ns=function(){return!!t})()}function rs(t){return rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rs(t)}function os(t,e){return os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},os(t,e)}var is=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),es(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&os(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.sigPad=new Yc(this.canvas,{backgroundColor:"rgb(255, 255, 255)"}),window.onresize=this.resizeCanvas.bind(this),this.resizeCanvas()}},{key:"resizeCanvas",value:function(){var t=Math.max(window.devicePixelRatio||1,1);this.canvas.width=this.canvas.offsetWidth*t,this.canvas.height=this.canvas.offsetHeight*t,this.canvas.getContext("2d").scale(t,t)}},{key:"save",value:function(){var t=this.sigPad.toDataURL();this.props.onSave&&this.props.onSave(this.sigPad,t)}},{key:"clear",value:function(){this.sigPad.clear(),this.props.onClear&&this.props.onClear(),this.props.onClose&&this.props.onClose()}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"signature",style:{border:"1px solid black",display:"flex",flexDirection:"column",height:"450px"}},i().createElement("canvas",{style:{backgroundColor:"rgb(255, 255, 255)",flex:1},ref:function(e){t.canvas=e}}),i().createElement("div",{className:"signature-toolbar grey lighten-3",style:{display:"flex",justifyContent:"space-between"}},i().createElement(vn,{className:"red",onClick:this.clear.bind(this)},"close"),i().createElement(vn,{className:"green",onClick:this.save.bind(this)},"save")))}}])&&Jc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{is.displayName="Signature_Cmp"}catch(t){}const as=is;function cs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ss={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},us={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},ls=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],fs={CSS:{},springs:{}};function ps(t,e,n){return Math.min(Math.max(t,e),n)}function ys(t,e){return t.indexOf(e)>-1}function hs(t,e){return t.apply(null,e)}var vs={arr:function(t){return Array.isArray(t)},obj:function(t){return ys(Object.prototype.toString.call(t),"Object")},pth:function(t){return vs.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||vs.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return vs.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return vs.hex(t)||vs.rgb(t)||vs.hsl(t)},key:function(t){return!ss.hasOwnProperty(t)&&!us.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function ds(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function ms(t,e){var n=ds(t),r=ps(vs.und(n[0])?1:n[0],.1,100),o=ps(vs.und(n[1])?100:n[1],.1,100),i=ps(vs.und(n[2])?10:n[2],.1,100),a=ps(vs.und(n[3])?0:n[3],.1,100),c=Math.sqrt(o/r),s=i/(2*Math.sqrt(o*r)),u=s<1?c*Math.sqrt(1-s*s):0,l=s<1?(s*c-a)/u:-a+c;function f(t){var n=e?e*t/1e3:t;return n=s<1?Math.exp(-n*s*c)*(1*Math.cos(u*n)+l*Math.sin(u*n)):(1+l*n)*Math.exp(-n*c),0===t||1===t?t:1-n}return e?f:function(){var e=fs.springs[t];if(e)return e;for(var n=1/6,r=0,o=0;;)if(1===f(r+=n)){if(++o>=16)break}else o=0;var i=r*n*1e3;return fs.springs[t]=i,i}}function bs(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return function(e){return Math.ceil(ps(e,1e-6,1)*t)*(1/t)}}var gs,ws,Os=function(){var t=.1;function e(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function r(t){return 3*t}function o(t,o,i){return((e(o,i)*t+n(o,i))*t+r(o))*t}function i(t,o,i){return 3*e(o,i)*t*t+2*n(o,i)*t+r(o)}return function(e,n,r,a){if(0<=e&&e<=1&&0<=r&&r<=1){var c=new Float32Array(11);if(e!==n||r!==a)for(var s=0;s<11;++s)c[s]=o(s*t,e,r);return function(s){return e===n&&r===a||0===s||1===s?s:o(function(n){for(var a=0,s=1;10!==s&&c[s]<=n;++s)a+=t;--s;var u=a+(n-c[s])/(c[s+1]-c[s])*t,l=i(u,e,r);return l>=.001?function(t,e,n,r){for(var a=0;a<4;++a){var c=i(e,n,r);if(0===c)return e;e-=(o(e,n,r)-t)/c}return e}(n,u,e,r):0===l?u:function(t,e,n,r,i){var a,c,s=0;do{(a=o(c=e+(n-e)/2,r,i)-t)>0?n=c:e=c}while(Math.abs(a)>1e-7&&++s<10);return c}(n,a,a+t,e,r)}(s),n,a)}}}}(),js=(gs={linear:function(){return function(t){return t}}},ws={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Expo:function(){return function(t){return t?Math.pow(2,10*t-10):0}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,e=ps(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,1,10),n=ps(t,.1,2);return function(t){return 0===t||1===t?t:-e*Math.pow(2,10*(t-1))*Math.sin((t-1-n/(2*Math.PI)*Math.asin(1/e))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint"].forEach((function(t,e){ws[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(ws).forEach((function(t){var e=ws[t];gs["easeIn"+t]=e,gs["easeOut"+t]=function(t,n){return function(r){return 1-e(t,n)(1-r)}},gs["easeInOut"+t]=function(t,n){return function(r){return r<.5?e(t,n)(2*r)/2:1-e(t,n)(-2*r+2)/2}},gs["easeOutIn"+t]=function(t,n){return function(r){return r<.5?(1-e(t,n)(1-2*r))/2:(e(t,n)(2*r-1)+1)/2}}})),gs);function Ss(t,e){if(vs.fnc(t))return t;var n=t.split("(")[0],r=js[n],o=ds(t);switch(n){case"spring":return ms(t,e);case"cubicBezier":return hs(Os,o);case"steps":return hs(bs,o);default:return hs(r,o)}}function Ps(t){try{return document.querySelectorAll(t)}catch(t){return}}function Es(t,e){for(var n=t.length,r=arguments.length>=2?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in t){var a=t[i];e.call(r,a,i,t)&&o.push(a)}return o}function _s(t){return t.reduce((function(t,e){return t.concat(vs.arr(e)?_s(e):e)}),[])}function Cs(t){return vs.arr(t)?t:(vs.str(t)&&(t=Ps(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function ks(t,e){return t.some((function(t){return t===e}))}function xs(t){var e={};for(var n in t)e[n]=t[n];return e}function Ns(t,e){var n=xs(t);for(var r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function Ls(t,e){var n=xs(t);for(var r in e)n[r]=vs.und(t[r])?e[r]:t[r];return n}function Ts(t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(e)return e[1]}function Bs(t,e){return vs.fnc(t)?t(e.target,e.id,e.total):t}function Ms(t,e){return t.getAttribute(e)}function Ds(t,e,n){if(ks([n,"deg","rad","turn"],Ts(e)))return e;var r=fs.CSS[e+n];if(!vs.und(r))return r;var o=document.createElement(t.tagName),i=t.parentNode&&t.parentNode!==document?t.parentNode:document.body;i.appendChild(o),o.style.position="absolute",o.style.width=100+n;var a=100/o.offsetWidth;i.removeChild(o);var c=a*parseFloat(e);return fs.CSS[e+n]=c,c}function Rs(t,e,n){if(e in t.style){var r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=t.style[e]||getComputedStyle(t).getPropertyValue(r)||"0";return n?Ds(t,o,n):o}}function Is(t,e){return vs.dom(t)&&!vs.inp(t)&&(!vs.nil(Ms(t,e))||vs.svg(t)&&t[e])?"attribute":vs.dom(t)&&ks(ls,e)?"transform":vs.dom(t)&&"transform"!==e&&Rs(t,e)?"css":null!=t[e]?"object":void 0}function zs(t){if(vs.dom(t)){for(var e,n=t.style.transform||"",r=/(\w+)\(([^)]*)\)/g,o=new Map;e=r.exec(n);)o.set(e[1],e[2]);return o}}function As(t,e,n,r){switch(Is(t,e)){case"transform":return function(t,e,n,r){var o=ys(e,"scale")?1:0+function(t){return ys(t,"translate")||"perspective"===t?"px":ys(t,"rotate")||ys(t,"skew")?"deg":void 0}(e),i=zs(t).get(e)||o;return n&&(n.transforms.list.set(e,i),n.transforms.last=e),r?Ds(t,i,r):i}(t,e,r,n);case"css":return Rs(t,e,n);case"attribute":return Ms(t,e);default:return t[e]||0}}function Vs(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=Ts(t)||0,o=parseFloat(e),i=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return o+i+r;case"-":return o-i+r;case"*":return o*i+r}}function Fs(t,e){if(vs.col(t))return function(t){return vs.rgb(t)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=t))?"rgba(".concat(n[1],",1)"):e:vs.hex(t)?function(t){var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),r=parseInt(n[1],16),o=parseInt(n[2],16),i=parseInt(n[3],16);return"rgba(".concat(r,",").concat(o,",").concat(i,",1)")}(t):vs.hsl(t)?function(t){var e,n,r,o=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t),i=parseInt(o[1],10)/360,a=parseInt(o[2],10)/100,c=parseInt(o[3],10)/100,s=o[4]||1;function u(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(0==a)e=n=r=c;else{var l=c<.5?c*(1+a):c+a-c*a,f=2*c-l;e=u(f,l,i+1/3),n=u(f,l,i),r=u(f,l,i-1/3)}return"rgba(".concat(255*e,",").concat(255*n,",").concat(255*r,",").concat(s,")")}(t):void 0;var e,n}(t);if(/\s/g.test(t))return t;var n=Ts(t),r=n?t.substr(0,t.length-n.length):t;return e?r+e:r}function Ws(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Hs(t){for(var e,n=t.points,r=0,o=0;o<n.numberOfItems;o++){var i=n.getItem(o);o>0&&(r+=Ws(e,i)),e=i}return r}function Us(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*Ms(t,"r")}(t);case"rect":return function(t){return 2*Ms(t,"width")+2*Ms(t,"height")}(t);case"line":return function(t){return Ws({x:Ms(t,"x1"),y:Ms(t,"y1")},{x:Ms(t,"x2"),y:Ms(t,"y2")})}(t);case"polyline":return Hs(t);case"polygon":return function(t){var e=t.points;return Hs(t)+Ws(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function qs(t,e){var n=e||{},r=n.el||function(t){for(var e=t.parentNode;vs.svg(e)&&vs.svg(e.parentNode);)e=e.parentNode;return e}(t),o=r.getBoundingClientRect(),i=Ms(r,"viewBox"),a=o.width,c=o.height,s=n.viewBox||(i?i.split(" "):[0,0,a,c]);return{el:r,viewBox:s,x:s[0]/1,y:s[1]/1,w:a,h:c,vW:s[2],vH:s[3]}}function Ks(t,e,n){function r(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=e+n>=1?e+n:0;return t.el.getPointAtLength(r)}var o=qs(t.el,t.svg),i=r(),a=r(-1),c=r(1),s=n?1:o.w/o.vW,u=n?1:o.h/o.vH;switch(t.property){case"x":return(i.x-o.x)*s;case"y":return(i.y-o.y)*u;case"angle":return 180*Math.atan2(c.y-a.y,c.x-a.x)/Math.PI}}function Xs(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Fs(vs.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:vs.str(t)||e?r.split(n):[]}}function Zs(t){return Es(t?_s(vs.arr(t)?t.map(Cs):Cs(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function $s(t){var e=Zs(t);return e.map((function(t,n){return{target:t,id:n,total:e.length,transforms:{list:zs(t)}}}))}function Gs(t,e){var n=xs(e);if(/^spring/.test(n.easing)&&(n.duration=ms(n.easing)),vs.arr(t)){var r=t.length;2!==r||vs.obj(t[0])?vs.fnc(e.duration)||(n.duration=e.duration/r):t={value:t}}var o=vs.arr(t)?t:[t];return o.map((function(t,n){var r=vs.obj(t)&&!vs.pth(t)?t:{value:t};return vs.und(r.delay)&&(r.delay=n?0:e.delay),vs.und(r.endDelay)&&(r.endDelay=n===o.length-1?e.endDelay:0),r})).map((function(t){return Ls(t,n)}))}var Ys={css:function(t,e,n){return t.style[e]=n},attribute:function(t,e,n){return t.setAttribute(e,n)},object:function(t,e,n){return t[e]=n},transform:function(t,e,n,r,o){if(r.list.set(e,n),e===r.last||o){var i="";r.list.forEach((function(t,e){i+="".concat(e,"(").concat(t,") ")})),t.style.transform=i}}};function Qs(t,e){$s(t).forEach((function(t){for(var n in e){var r=Bs(e[n],t),o=t.target,i=Ts(r),a=As(o,n,i,t),c=Vs(Fs(r,i||Ts(a)),a),s=Is(o,n);Ys[s](o,n,c,t.transforms,!0)}}))}function Js(t,e){return Es(_s(t.map((function(t){return e.map((function(e){return function(t,e){var n=Is(t.target,e.name);if(n){var r=function(t,e){var n;return t.tweens.map((function(r){var o=function(t,e){var n={};for(var r in t){var o=Bs(t[r],e);vs.arr(o)&&1===(o=o.map((function(t){return Bs(t,e)}))).length&&(o=o[0]),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,e),i=o.value,a=vs.arr(i)?i[1]:i,c=Ts(a),s=As(e.target,t.name,c,e),u=n?n.to.original:s,l=vs.arr(i)?i[0]:u,f=Ts(l)||Ts(s),p=c||f;return vs.und(a)&&(a=u),o.from=Xs(l,p),o.to=Xs(Vs(a,l),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=Ss(o.easing,o.duration),o.isPath=vs.pth(i),o.isPathTargetInsideSVG=o.isPath&&vs.svg(e.target),o.isColor=vs.col(o.from.original),o.isColor&&(o.round=1),n=o,o}))}(e,t),o=r[r.length-1];return{type:n,property:e.name,animatable:t,tweens:r,duration:o.end,delay:r[0].delay,endDelay:o.endDelay}}}(t,e)}))}))),(function(t){return!vs.und(t)}))}function tu(t,e){var n=t.length,r=function(t){return t.timelineOffset?t.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,t.map((function(t){return r(t)+t.duration}))):e.duration,o.delay=n?Math.min.apply(Math,t.map((function(t){return r(t)+t.delay}))):e.delay,o.endDelay=n?o.duration-Math.max.apply(Math,t.map((function(t){return r(t)+t.duration-t.endDelay}))):e.endDelay,o}var eu=0,nu=[],ru=function(){var t;function e(n){for(var r=nu.length,o=0;o<r;){var i=nu[o];i.paused?(nu.splice(o,1),r--):(i.tick(n),o++)}t=o>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){iu.suspendWhenDocumentHidden&&(ou()?t=cancelAnimationFrame(t):(nu.forEach((function(t){return t._onDocumentVisibility()})),ru()))})),function(){t||ou()&&iu.suspendWhenDocumentHidden||!(nu.length>0)||(t=requestAnimationFrame(e))}}();function ou(){return!!document&&document.hidden}function iu(){var t,e=0,n=0,r=0,o=0,i=null;function a(t){var e=window.Promise&&new Promise((function(t){return i=t}));return t.finished=e,e}var c,s,u,l,f,p,y,h,v=(s=Ns(ss,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),u=Ns(us,c),l=function(t,e){var n=[],r=e.keyframes;for(var o in r&&(e=Ls(function(t){for(var e=Es(_s(t.map((function(t){return Object.keys(t)}))),(function(t){return vs.key(t)})).reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),n={},r=function(){var r=e[o];n[r]=t.map((function(t){var e={};for(var n in t)vs.key(n)?n==r&&(e.value=t[n]):e[n]=t[n];return e}))},o=0;o<e.length;o++)r();return n}(r),e)),e)vs.key(o)&&n.push({name:o,tweens:Gs(e[o],t)});return n}(u,c),f=$s(c.targets),p=Js(f,l),y=tu(p,u),h=eu,eu++,Ls(s,{id:h,children:[],animatables:f,animations:p,duration:y.duration,delay:y.delay,endDelay:y.endDelay}));function d(){var e=v.direction;"alternate"!==e&&(v.direction="normal"!==e?"normal":"reverse"),v.reversed=!v.reversed,t.forEach((function(t){return t.reversed=v.reversed}))}function m(t){return v.reversed?v.duration-t:t}function b(){e=0,n=m(v.currentTime)*(1/iu.speed)}function g(t,e){e&&e.seek(t-e.timelineOffset)}function w(t){for(var e=0,n=v.animations,r=n.length;e<r;){var o=n[e],i=o.animatable,a=o.tweens,c=a.length-1,s=a[c];c&&(s=Es(a,(function(e){return t<e.end}))[0]||s);for(var u=ps(t-s.start-s.delay,0,s.duration)/s.duration,l=isNaN(u)?1:s.easing(u),f=s.to.strings,p=s.round,y=[],h=s.to.numbers.length,d=void 0,m=0;m<h;m++){var b=void 0,g=s.to.numbers[m],w=s.from.numbers[m]||0;b=s.isPath?Ks(s.value,l*g,s.isPathTargetInsideSVG):w+l*(g-w),p&&(s.isColor&&m>2||(b=Math.round(b*p)/p)),y.push(b)}var O=f.length;if(O){d=f[0];for(var j=0;j<O;j++){var S=f[j+1],P=y[j];isNaN(P)||(d+=S?P+S:P+" ")}}else d=y[0];Ys[o.type](i.target,o.property,d,i.transforms),o.currentValue=d,e++}}function O(t){v[t]&&!v.passThrough&&v[t](v)}function j(c){var s=v.duration,u=v.delay,l=s-v.endDelay,f=m(c);v.progress=ps(f/s*100,0,100),v.reversePlayback=f<v.currentTime,t&&function(e){if(v.reversePlayback)for(var n=o;n--;)g(e,t[n]);else for(var r=0;r<o;r++)g(e,t[r])}(f),!v.began&&v.currentTime>0&&(v.began=!0,O("begin")),!v.loopBegan&&v.currentTime>0&&(v.loopBegan=!0,O("loopBegin")),f<=u&&0!==v.currentTime&&w(0),(f>=l&&v.currentTime!==s||!s)&&w(s),f>u&&f<l?(v.changeBegan||(v.changeBegan=!0,v.changeCompleted=!1,O("changeBegin")),O("change"),w(f)):v.changeBegan&&(v.changeCompleted=!0,v.changeBegan=!1,O("changeComplete")),v.currentTime=ps(f,0,s),v.began&&O("update"),c>=s&&(n=0,v.remaining&&!0!==v.remaining&&v.remaining--,v.remaining?(e=r,O("loopComplete"),v.loopBegan=!1,"alternate"===v.direction&&d()):(v.paused=!0,v.completed||(v.completed=!0,O("loopComplete"),O("complete"),!v.passThrough&&"Promise"in window&&(i(),a(v)))))}return a(v),v.reset=function(){var e=v.direction;v.passThrough=!1,v.currentTime=0,v.progress=0,v.paused=!0,v.began=!1,v.loopBegan=!1,v.changeBegan=!1,v.completed=!1,v.changeCompleted=!1,v.reversePlayback=!1,v.reversed="reverse"===e,v.remaining=v.loop,t=v.children;for(var n=o=t.length;n--;)v.children[n].reset();(v.reversed&&!0!==v.loop||"alternate"===e&&1===v.loop)&&v.remaining++,w(v.reversed?v.duration:0)},v._onDocumentVisibility=b,v.set=function(t,e){return Qs(t,e),v},v.tick=function(t){r=t,e||(e=r),j((r+(n-e))*iu.speed)},v.seek=function(t){j(m(t))},v.pause=function(){v.paused=!0,b()},v.play=function(){v.paused&&(v.completed&&v.reset(),v.paused=!1,nu.push(v),b(),ru())},v.reverse=function(){d(),v.completed=!v.reversed,b()},v.restart=function(){v.reset(),v.play()},v.remove=function(t){cu(Zs(t),v)},v.reset(),v.autoplay&&v.play(),v}function au(t,e){for(var n=e.length;n--;)ks(t,e[n].animatable.target)&&e.splice(n,1)}function cu(t,e){var n=e.animations,r=e.children;au(t,n);for(var o=r.length;o--;){var i=r[o],a=i.animations;au(t,a),a.length||i.children.length||r.splice(o,1)}n.length||r.length||e.pause()}iu.version="3.2.2",iu.speed=1,iu.suspendWhenDocumentHidden=!0,iu.running=nu,iu.remove=function(t){for(var e=Zs(t),n=nu.length;n--;)cu(e,nu[n])},iu.get=As,iu.set=Qs,iu.convertPx=Ds,iu.path=function(t,e){var n=vs.str(t)?Ps(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:qs(n),totalLength:Us(n)*(r/100)}}},iu.setDashoffset=function(t){var e=Us(t);return t.setAttribute("stroke-dasharray",e),e},iu.stagger=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.direction||"normal",r=e.easing?Ss(e.easing):null,o=e.grid,i=e.axis,a=e.from||0,c="first"===a,s="center"===a,u="last"===a,l=vs.arr(t),f=l?parseFloat(t[0]):parseFloat(t),p=l?parseFloat(t[1]):0,y=Ts(l?t[1]:t)||0,h=e.start||0+(l?f:0),v=[],d=0;return function(t,e,m){if(c&&(a=0),s&&(a=(m-1)/2),u&&(a=m-1),!v.length){for(var b=0;b<m;b++){if(o){var g=s?(o[0]-1)/2:a%o[0],w=s?(o[1]-1)/2:Math.floor(a/o[0]),O=g-b%o[0],j=w-Math.floor(b/o[0]),S=Math.sqrt(O*O+j*j);"x"===i&&(S=-O),"y"===i&&(S=-j),v.push(S)}else v.push(Math.abs(a-b));d=Math.max.apply(Math,function(t){if(Array.isArray(t))return cs(t)}(P=v)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(P)||function(t,e){if(t){if("string"==typeof t)return cs(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)?cs(t,e):void 0}}(P)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}r&&(v=v.map((function(t){return r(t/d)*d}))),"reverse"===n&&(v=v.map((function(t){return i?t<0?-1*t:-t:Math.abs(d-t)})))}var P;return h+(l?(p-f)/d:f)*(Math.round(100*v[e])/100)+y}},iu.timeline=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=iu(t);return e.duration=0,e.add=function(n,r){var o=nu.indexOf(e),i=e.children;function a(t){t.passThrough=!0}o>-1&&nu.splice(o,1);for(var c=0;c<i.length;c++)a(i[c]);var s=Ls(n,Ns(us,t));s.targets=s.targets||t.targets;var u=e.duration;s.autoplay=!1,s.direction=e.direction,s.timelineOffset=vs.und(r)?u:Vs(r,u),a(e),e.seek(s.timelineOffset);var l=iu(s);a(l),i.push(l);var f=tu(i,t);return e.delay=f.delay,e.endDelay=f.endDelay,e.duration=f.duration,e.seek(0),e.reset(),e.autoplay&&e.play(),e},e},iu.easing=Ss,iu.penner=js,iu.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t};const su=iu;function uu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,lu(r.key),r)}}function lu(t){var e=function(t,e){if("object"!=fu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=fu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==fu(e)?e:String(e)}function fu(t){return fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(t)}var pu=["valueOf","toLocaleString","toString","constructor"],yu=function t(e,n,r){var o,i,a;if(e&&(r&&t(e,r),n&&"object"===fu(n))){for(o in n)e[o]=n[o];if(pu)for(i=pu.length;i--;)a=pu[i],n.hasOwnProperty(a)&&(e[a]=n[a])}return e},hu={html:"",displayLength:3e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},vu=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=yu({},e,t.defaults),this.message=this.options.html,this.panning=!1,this.timeRemaining=this.options.displayLength,0===t._toasts.length&&t._createContainer(),t._toasts.push(this);var n=this._createToast();n.M_Toast=this,this.el=n,this.$el=n,this._animateIn(),this._setTimer()}var e,n,r;return e=t,r=[{key:"defaults",get:function(){return hu}},{key:"getInstance",value:function(t){return(t.jquery?t[0]:t).M_Toast}},{key:"_createContainer",value:function(){var e=document.createElement("div");e.setAttribute("id","toast-container"),e.addEventListener("touchstart",t._onDragStart),e.addEventListener("touchmove",t._onDragMove),e.addEventListener("touchend",t._onDragEnd),e.addEventListener("mousedown",t._onDragStart),document.addEventListener("mousemove",t._onDragMove),document.addEventListener("mouseup",t._onDragEnd),document.body.appendChild(e),t._container=e}},{key:"_removeContainer",value:function(){document.removeEventListener("mousemove",t._onDragMove),document.removeEventListener("mouseup",t._onDragEnd),t._container.remove(),t._container=null}},{key:"_onDragStart",value:function(e){if(e.target&&e.target.parentElement.querySelectorAll(".toast").length>0){var n=e.target.parentElement.querySelectorAll(".toast")[0];n.panning=!0,t._draggedToast=n,n.classList.add("panning"),n.style.transition="",n.startingXPos=t._xPos(e),n.time=Date.now(),n.xPos=t._xPos(e)}}},{key:"_onDragMove",value:function(e){if(t._draggedToast){e.preventDefault();var n=t._draggedToast;n.deltaX=Math.abs(n.xPos-t._xPos(e)),n.xPos=t._xPos(e),n.velocityX=n.deltaX/(Date.now()-n.time),n.time=Date.now();var r=n.xPos-n.startingXPos,o=.8*n.offsetWidth;n.style.transform="translateX(".concat(r,"px)"),n.style.opacity=1-Math.abs(r/o)}}},{key:"_onDragEnd",value:function(){if(t._draggedToast){var e=t._draggedToast;e.panning=!1,e.classList.remove("panning");var n=e.xPos-e.startingXPos,r=.8*e.offsetWidth;Math.abs(n)>r||e.velocityX>1?(e.wasSwiped=!0,e.remove()):(e.style.transition="transform .2s, opacity .2s",e.style.transform="",e.style.opacity=""),t._draggedToast=null}}},{key:"_xPos",value:function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}},{key:"dismissAll",value:function(){for(var e in t._toasts)t._toasts[e].dismiss()}}],(n=[{key:"_createToast",value:function(){var e=document.createElement("div");return e.classList.add("toast"),this.options.classes.length&&this.options.classes.split(" ").forEach((function(t){e.classList.add(t)})),("object"===("undefined"==typeof HTMLElement?"undefined":fu(HTMLElement))?this.message instanceof HTMLElement:this.message&&"object"===fu(this.message)&&null!==this.message&&1===this.message.nodeType&&"string"==typeof this.message.nodeName)?e.appendChild(this.message):this.message.jquery?$(e).append(this.message[0]):e.innerHTML=this.message,t._container.appendChild(e),e}},{key:"_animateIn",value:function(){su({targets:this.el,top:0,opacity:1,duration:this.options.inDuration,easing:"easeOutCubic"})}},{key:"_setTimer",value:function(){var t=this;this.timeRemaining!==1/0&&(this.counterInterval=setInterval((function(){t.panning||(t.timeRemaining-=20),t.timeRemaining<=0&&t.dismiss()}),20))}},{key:"dismiss",value:function(){var e=this;window.clearInterval(this.counterInterval);var n=this.el.offsetWidth*this.options.activationPercent;this.wasSwiped&&(this.el.style.transition="transform .05s, opacity .05s",this.el.style.transform="translateX(".concat(n,"px)"),this.el.style.opacity=0),su({targets:this.el,opacity:0,marginTop:-40,duration:this.options.outDuration,easing:"easeOutExpo",complete:function(){"function"==typeof e.options.completeCallback&&e.options.completeCallback(),e.$el.remove(),t._toasts.splice(t._toasts.indexOf(e),1),0===t._toasts.length&&t._removeContainer()}})}}])&&uu(e.prototype,n),r&&uu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();vu._toasts=[],vu._container=null,vu._draggedToast=null;const du=vu;function mu(t){return mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(t)}function bu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,gu(r.key),r)}}function gu(t){var e=function(t,e){if("object"!=mu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=mu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==mu(e)?e:String(e)}var wu=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n;return e=t,(n=[{key:"info",value:function(t){return new du({html:t,classes:"blue lighten-1"})}},{key:"error",value:function(t){return new du({html:t,classes:"red lighten-1"})}},{key:"success",value:function(t){return new du({html:t,classes:"green lighten-1"})}}])&&bu(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const Ou=new wu})(),r})()));