index.js 215 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 d,h,v,b,m,g=this,w=c.type,O=!1,j=function(){f(g,"writestart progress write writeend".split(" "))},S=function(){!O&&d||(d=n().createObjectURL(c)),h?h.location.href=d:null==t.open(d,"_blank")&&"undefined"!=typeof safari&&(t.location.href=d),g.readyState=g.DONE,j(),l(d)},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 d=n().createObjectURL(c),r.href=d,r.download=y,b=r,(m=e.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),b.dispatchEvent(m),g.readyState=g.DONE,j(),void l(d);t.chrome&&w&&w!==s&&(v=c.slice||c.webkitSlice,c=v.call(c,0,c.size,s),O=!0),i&&"download"!==y&&(y+=".download"),(w===s||i)&&(h=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){h.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()},d=y.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e){return navigator.msSaveOrOpenBlob(p(t),e)}:(d.abort=function(){var t=this;t.readyState=t.DONE,f(t,"abort")},d.readyState=d.INIT=0,d.WRITING=1,d.DONE=2,d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.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:()=>We,Button:()=>Ye,Card:()=>qo,CardAction:()=>ti,CardContent:()=>li,CardImage:()=>Ni,CardTitle:()=>wi,Col:()=>ka,CollapsBody:()=>hr,CollapsElement:()=>Pr,CollapsTrigger:()=>Mr,Collapsible:()=>ir,Collection:()=>lc,CollectionItem:()=>wc,Cube:()=>Vi,DateField:()=>be,EmailField:()=>q,Field:()=>M,FieldTrigger:()=>mt,Flash:()=>qa,FlashMessage:()=>ou,Form:()=>h,FormActions:()=>ln,IconSideLink:()=>Do,Icons:()=>t,InnerPage:()=>ca,Loader:()=>Va,Logo:()=>wn,Overlay:()=>Yi,PasswordField:()=>kt,PhoneField:()=>Xt,PostCodeField:()=>At,RadioIcons:()=>tc,Row:()=>ba,SideCollapsible:()=>qr,SideLink:()=>no,SideMenu:()=>Vn,SideMenuItem:()=>$n,SideNav:()=>Ln,SidenavEl:()=>po,SidenavSearch:()=>So,Signature_Cmp:()=>Uc,StokeBtn:()=>Ne,Tabs:()=>Ra,TextArea:()=>oe,Toast:()=>Js,Waves:()=>Oe,saveAs:()=>Oc.Z});var t={};n.r(t),n.d(t,{AddIcon:()=>J,AttachementIcon:()=>nt,CancelIcon:()=>Q,CarIcon:()=>st,CheveronDown:()=>G,CheveronLeft:()=>X,CheveronRight:()=>K,CheveronUp:()=>Z,ClentIcon:()=>ct,ClientIcon:()=>it,DeleteIcon:()=>tt,EditIcon:()=>et,EyeDropperIcon:()=>ot,EyeIcon:()=>rt,MenuIcon:()=>ut,SaveIcon:()=>Y,UserIcon:()=>at});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 d=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{d.displayName="Form"}catch(t){}d.defaultProps={className:""};const h=d;function v(t){return v="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},v(t)}function b(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,m(r.key),r)}}function m(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:String(e)}function g(t,e,n){return e=O(e),function(t,e){if(e&&("object"===v(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")}}])&&b(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 k(t){return k="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},k(t)}function C(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"!=k(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==k(e)?e:String(e)}function L(t,e,n){return e=T(e),function(t,e){if(e&&("object"===k(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,N()?Reflect.construct(e,n||[],T(t).constructor):e.apply(t,n))}function N(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(N=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 D=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=L(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&&C(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(P);try{D.displayName="Field"}catch(t){}D.defaultProps={type:"text",className:"",placeholder:"",label:""};const M=D;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 A(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,F(r.key),r)}}function F(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 I(t,e,n){return e=W(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||[],W(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 W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},W(t)}function z(t,e){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z(t,e)}var U=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=I(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&&z(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())}}])&&A(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(M);try{U.displayName="EmailField"}catch(t){}U.defaultProps={type:"email",enterkey:function(){},icon:"at",className:"",placeholder:"",label:""};const q=U;function H(){return H=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},H.apply(this,arguments)}function K(t){return i().createElement("svg",H({},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",H({},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",H({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",H({},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",H({},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{Y.displayName="SaveIcon"}catch(t){}function Q(t){return i().createElement("svg",H({},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{Q.displayName="CancelIcon"}catch(t){}function J(t){return i().createElement("svg",H({},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{J.displayName="AddIcon"}catch(t){}function tt(t){return i().createElement("svg",H({},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{tt.displayName="DeleteIcon"}catch(t){}function et(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor","aria-hidden":"true"}),i().createElement("path",{"stroke-linecap":"round","stroke-linejoin":"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{et.displayName="EditIcon"}catch(t){}function nt(t){return i().createElement("svg",H({},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{nt.displayName="AttachementIcon"}catch(t){}function rt(t){return i().createElement("svg",H({},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:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"}))}try{rt.displayName="EyeIcon"}catch(t){}function ot(t){return i().createElement("svg",H({},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 11.25l1.5 1.5.75-.75V8.758l2.276-.61a3 3 0 10-3.675-3.675l-.61 2.277H12l-.75.75 1.5 1.5M15 11.25l-8.47 8.47c-.34.34-.8.53-1.28.53s-.94.19-1.28.53l-.97.97-.75-.75.97-.97c.34-.34.53-.8.53-1.28s.19-.94.53-1.28L12.75 9M15 11.25L12.75 9"}))}try{ot.displayName="EyeDropperIcon"}catch(t){}function it(t){return i().createElement("svg",H({},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.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"}))}try{it.displayName="ClientIcon"}catch(t){}function at(t){return i().createElement("svg",H({},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.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"}))}try{at.displayName="UserIcon"}catch(t){}function ct(t){return i().createElement("svg",H({},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.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"}))}try{ct.displayName="ClentIcon"}catch(t){}function st(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg","enable-background":"new 0 0 24 24",height:"24",viewBox:"0 0 24 24",width:"24"}),i().createElement("g",null,i().createElement("rect",{fill:"none",height:"24",width:"24",y:"0"})),i().createElement("g",null,i().createElement("path",{d:"M18.92,6.01C18.72,5.42,18.16,5,17.5,5h-11C5.84,5,5.29,5.42,5.08,6.01L3,12v8c0,0.55,0.45,1,1,1h1c0.55,0,1-0.45,1-1v-1 h12v1c0,0.55,0.45,1,1,1h1c0.55,0,1-0.45,1-1v-8L18.92,6.01z M7.5,16C6.67,16,6,15.33,6,14.5S6.67,13,7.5,13S9,13.67,9,14.5 S8.33,16,7.5,16z M16.5,16c-0.83,0-1.5-0.67-1.5-1.5s0.67-1.5,1.5-1.5s1.5,0.67,1.5,1.5S17.33,16,16.5,16z M5.81,10l1.04-3h10.29 l1.04,3H5.81z"})))}try{st.displayName="CarIcon"}catch(t){}function ut(t){return i().createElement("svg",H({},t,{xmlns:"http://www.w3.org/2000/svg","enable-background":"new 0 0 24 24",height:"24",viewBox:"0 0 24 24",width:"24"}),i().createElement("g",null,i().createElement("rect",{fill:"none",height:"24",width:"24",y:"0"})),i().createElement("g",null,i().createElement("path",{d:"M18.92,6.01C18.72,5.42,18.16,5,17.5,5h-11C5.84,5,5.29,5.42,5.08,6.01L3,12v8c0,0.55,0.45,1,1,1h1c0.55,0,1-0.45,1-1v-1 h12v1c0,0.55,0.45,1,1,1h1c0.55,0,1-0.45,1-1v-8L18.92,6.01z M7.5,16C6.67,16,6,15.33,6,14.5S6.67,13,7.5,13S9,13.67,9,14.5 S8.33,16,7.5,16z M16.5,16c-0.83,0-1.5-0.67-1.5-1.5s0.67-1.5,1.5-1.5s1.5,0.67,1.5,1.5S17.33,16,16.5,16z M5.81,10l1.04-3h10.29 l1.04,3H5.81z"})))}try{ut.displayName="MenuIcon"}catch(t){}function lt(t){return lt="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},lt(t)}function ft(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,pt(r.key),r)}}function pt(t){var e=function(t,e){if("object"!=lt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==lt(e)?e:String(e)}function yt(t,e,n){return e=ht(e),function(t,e){if(e&&("object"===lt(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,dt()?Reflect.construct(e,n||[],ht(t).constructor):e.apply(t,n))}function dt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(dt=function(){return!!t})()}function ht(t){return ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ht(t)}function vt(t,e){return vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vt(t,e)}var bt=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=yt(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&&vt(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(J,{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&&ft(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(P);try{bt.displayName="FieldTrigger"}catch(t){}bt.defaultProps={trigger:!0,type:"text",className:"",placeholder:"",label:""};const mt=bt;function gt(t){return gt="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},gt(t)}function wt(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,Ot(r.key),r)}}function Ot(t){var e=function(t,e){if("object"!=gt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==gt(e)?e:String(e)}function jt(t,e,n){return e=Pt(e),function(t,e){if(e&&("object"===gt(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,St()?Reflect.construct(e,n||[],Pt(t).constructor):e.apply(t,n))}function St(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(St=function(){return!!t})()}function Pt(t){return Pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pt(t)}function Et(t,e){return Et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Et(t,e)}var _t=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=jt(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&&Et(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())}}])&&wt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(M);try{_t.displayName="PasswordFIeld"}catch(t){}_t.defaultProps={type:"password",icon:"dialpad",enterkey:function(){},className:"",placeholder:"",label:""};const kt=_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 xt(){return xt=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},xt.apply(this,arguments)}function Lt(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,Nt(r.key),r)}}function Nt(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 Tt(t,e,n){return e=Dt(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,Bt()?Reflect.construct(e,n||[],Dt(t).constructor):e.apply(t,n))}function Bt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bt=function(){return!!t})()}function Dt(t){return Dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dt(t)}function Mt(t,e){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mt(t,e)}var Rt=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=Tt(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&&Mt(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",xt({},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())}}])&&Lt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(M);try{Rt.displayName="PostCodeField"}catch(t){}Rt.defaultProps={type:"postcode",icon:"dialpad",className:"",placeholder:"",label:""};const At=Rt;function Ft(t){return Ft="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},Ft(t)}function It(){return It=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},It.apply(this,arguments)}function Vt(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,Wt(r.key),r)}}function Wt(t){var e=function(t,e){if("object"!=Ft(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ft(e)?e:String(e)}function zt(t,e,n){return e=qt(e),function(t,e){if(e&&("object"===Ft(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,Ut()?Reflect.construct(e,n||[],qt(t).constructor):e.apply(t,n))}function Ut(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ut=function(){return!!t})()}function qt(t){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qt(t)}function Ht(t,e){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ht(t,e)}var Kt=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=zt(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&&Ht(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",It({},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())}}])&&Vt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(M);try{Kt.displayName="PhoneField"}catch(t){}Kt.defaultProps={type:"phoneNumber",icon:"dialpad",className:"",placeholder:"",label:""};const Xt=Kt,Zt=require("react-textarea-autosize");var $t=n.n(Zt);function Gt(t){return Gt="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},Gt(t)}function Yt(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,Qt(r.key),r)}}function Qt(t){var e=function(t,e){if("object"!=Gt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Gt(e)?e:String(e)}function Jt(t,e,n){return e=ee(e),function(t,e){if(e&&("object"===Gt(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,te()?Reflect.construct(e,n||[],ee(t).constructor):e.apply(t,n))}function te(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(te=function(){return!!t})()}function ee(t){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ee(t)}function ne(t,e){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ne(t,e)}var re=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=Jt(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&&ne(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($t(),{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&&Yt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{re.displayName="Field"}catch(t){}re.defaultProps={enteraction:function(){},type:"text",className:"",placeholder:"",label:""};const oe=re,ie=require("react-datepicker");var ae=n.n(ie);require("react-datepicker/dist/react-datepicker.css");const ce=require("date-fns/locale/fr");var se=n.n(ce);function ue(t){return ue="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},ue(t)}function le(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,fe(r.key),r)}}function fe(t){var e=function(t,e){if("object"!=ue(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ue(e)?e:String(e)}function pe(t,e,n){return e=de(e),function(t,e){if(e&&("object"===ue(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,ye()?Reflect.construct(e,n||[],de(t).constructor):e.apply(t,n))}function ye(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ye=function(){return!!t})()}function de(t){return de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},de(t)}function he(t,e){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},he(t,e)}(0,ie.registerLocale)("fr",se());var ve=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=pe(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&&he(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(ae(),{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&&le(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ve.displayName="DateField"}catch(t){}ve.defaultProps={type:"date",className:"",placeholder:"",label:""};const be=ve;function me(t){return me="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},me(t)}function ge(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"!=me(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==me(e)?e:String(e)}const Oe=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"!==me(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}}])&&ge(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function je(t){return je="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},je(t)}function Se(){return Se=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},Se.apply(this,arguments)}function Pe(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,Ee(r.key),r)}}function Ee(t){var e=function(t,e){if("object"!=je(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==je(e)?e:String(e)}function _e(t,e,n){return e=Ce(e),function(t,e){if(e&&("object"===je(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,ke()?Reflect.construct(e,n||[],Ce(t).constructor):e.apply(t,n))}function ke(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ke=function(){return!!t})()}function Ce(t){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ce(t)}function xe(t,e){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xe(t,e)}var Le=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_e(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&&xe(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("a",Se({},this.props,{className:"StokeBtn "+this.props.className}))}}])&&Pe(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Le.displayName="StokeBtn"}catch(t){}Le.defaultProps={className:""};const Ne=Le;function Te(t){return Te="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},Te(t)}function Be(){return Be=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},Be.apply(this,arguments)}function De(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,Me(r.key),r)}}function Me(t){var e=function(t,e){if("object"!=Te(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Te(e)?e:String(e)}function Re(t,e,n){return e=Fe(e),function(t,e){if(e&&("object"===Te(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||[],Fe(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 Fe(t){return Fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fe(t)}function Ie(t,e){return Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ie(t,e)}var Ve=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Re(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&&Ie(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("a",Be({},this.props,{className:"Btn "+this.props.className}))}}])&&De(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ve.displayName="Btn"}catch(t){}Ve.defaultProps={className:""};const We=Ve;function ze(t){return ze="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},ze(t)}function Ue(){return Ue=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},Ue.apply(this,arguments)}function qe(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,He(r.key),r)}}function He(t){var e=function(t,e){if("object"!=ze(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ze(e)?e:String(e)}function Ke(t,e,n){return e=Ze(e),function(t,e){if(e&&("object"===ze(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,Xe()?Reflect.construct(e,n||[],Ze(t).constructor):e.apply(t,n))}function Xe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xe=function(){return!!t})()}function Ze(t){return Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ze(t)}function $e(t,e){return $e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$e(t,e)}var Ge=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ke(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&&$e(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.wave=new Oe(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",Ue({},this.props,{ref:function(e){t.el=e},className:e+this.props.className}),this.props.children)}}])&&qe(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ge.displayName="Button"}catch(t){}Ge.defaultProps={className:"",model:"standard",size:"medium"};const Ye=Ge,Qe=require("react-router-dom");function Je(t){return Je="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},Je(t)}function tn(){return tn=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},tn.apply(this,arguments)}function en(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,nn(r.key),r)}}function nn(t){var e=function(t,e){if("object"!=Je(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Je(e)?e:String(e)}function rn(t,e,n){return e=an(e),function(t,e){if(e&&("object"===Je(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,on()?Reflect.construct(e,n||[],an(t).constructor):e.apply(t,n))}function on(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(on=function(){return!!t})()}function an(t){return an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},an(t)}function cn(t,e){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cn(t,e)}function sn(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{sn.displayName="XIcon"}catch(t){}var un=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),rn(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&&cn(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(Qe.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(sn,{style:{height:"20px"}})):"function"==typeof this.props.onCancel&&(t=i().createElement(Ye,{"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(sn,{style:{height:"20px"}}))),i().createElement("div",tn({},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(Ye,{"data-cy":"form-next-save-Btn",className:"green flexbox ",onClick:this.validateBtnClicked.bind(this)},i().createElement(Y,{style:{width:"20px",height:"20px"}}))))}}])&&en(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{un.displayName="FormActions"}catch(t){}un.defaultProps={onValidate:Function};const ln=un;function fn(t){return fn="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},fn(t)}function pn(){return pn=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},pn.apply(this,arguments)}function yn(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,dn(r.key),r)}}function dn(t){var e=function(t,e){if("object"!=fn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=fn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==fn(e)?e:String(e)}function hn(t,e,n){return e=bn(e),function(t,e){if(e&&("object"===fn(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,vn()?Reflect.construct(e,n||[],bn(t).constructor):e.apply(t,n))}function vn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vn=function(){return!!t})()}function bn(t){return bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bn(t)}function mn(t,e){return mn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mn(t,e)}var gn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),hn(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&&mn(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",pn({},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"}))))}}])&&yn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{gn.displayName="Logo"}catch(t){}gn.defaultProps={className:""};const wn=gn;function On(t){return On="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},On(t)}function jn(){return jn=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},jn.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,Pn(r.key),r)}}function Pn(t){var e=function(t,e){if("object"!=On(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=On(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==On(e)?e:String(e)}function En(t,e,n){return e=kn(e),function(t,e){if(e&&("object"===On(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,_n()?Reflect.construct(e,n||[],kn(t).constructor):e.apply(t,n))}function _n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_n=function(){return!!t})()}function kn(t){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kn(t)}function Cn(t,e){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Cn(t,e)}var xn=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=En(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&&Cn(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",jn({style:{}},this.props,{ref:function(e){t.el=e},className:"sidenav "+this.props.className})))}}])&&Sn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{xn.displayName="SideNav"}catch(t){}xn.defaultProps={opened:"false",className:"",fixed:"false",right:"false"};const Ln=xn;function Nn(t){return Nn="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},Nn(t)}function Tn(){return Tn=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},Tn.apply(this,arguments)}function Bn(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,Dn(r.key),r)}}function Dn(t){var e=function(t,e){if("object"!=Nn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Nn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Nn(e)?e:String(e)}function Mn(t,e,n){return e=An(e),function(t,e){if(e&&("object"===Nn(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,Rn()?Reflect.construct(e,n||[],An(t).constructor):e.apply(t,n))}function Rn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rn=function(){return!!t})()}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},An(t)}function Fn(t,e){return Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fn(t,e)}var In=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Mn(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&&Fn(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Tn({},this.props,{className:"sidemenu "+this.props.className}),i().createElement("ul",null,this.props.children))}}])&&Bn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{In.displayName="SideMenu"}catch(t){}const Vn=In;function Wn(t){return Wn="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},Wn(t)}function zn(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"!=Wn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Wn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Wn(e)?e:String(e)}function qn(t,e,n){return e=Kn(e),function(t,e){if(e&&("object"===Wn(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||[],Kn(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 Kn(t){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kn(t)}function Xn(t,e){return Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xn(t,e)}var Zn=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&&Xn(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)}}])&&zn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Zn.displayName="SideMenuItem"}catch(t){}const $n=Zn;function Gn(t){return Gn="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},Gn(t)}function Yn(){return Yn=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},Yn.apply(this,arguments)}function Qn(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,Jn(r.key),r)}}function Jn(t){var e=function(t,e){if("object"!=Gn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Gn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Gn(e)?e:String(e)}function tr(t,e,n){return e=nr(e),function(t,e){if(e&&("object"===Gn(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,er()?Reflect.construct(e,n||[],nr(t).constructor):e.apply(t,n))}function er(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(er=function(){return!!t})()}function nr(t){return nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nr(t)}function rr(t,e){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rr(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),tr(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&&rr(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("ul",Yn({},this.props,{className:"collapsible collapsible-accordion "+this.props.className}))}}])&&Qn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{or.displayName="Collapsible"}catch(t){}or.defaultProps={className:""};const ir=or;function ar(t){return ar="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},ar(t)}function cr(){return cr=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},cr.apply(this,arguments)}function sr(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,ur(r.key),r)}}function ur(t){var e=function(t,e){if("object"!=ar(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ar(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ar(e)?e:String(e)}function lr(t,e,n){return e=pr(e),function(t,e){if(e&&("object"===ar(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,fr()?Reflect.construct(e,n||[],pr(t).constructor):e.apply(t,n))}function fr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fr=function(){return!!t})()}function pr(t){return pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pr(t)}function yr(t,e){return yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yr(t,e)}var dr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),lr(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&&yr(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i().createElement("div",cr({},this.props,{ref:function(e){t.el=e},className:"collapsible-body "+this.props.className}))}}])&&sr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{dr.displayName="CollapsBody"}catch(t){}dr.defaultProps={className:""};const hr=dr;function vr(t){return vr="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},vr(t)}function br(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,mr(r.key),r)}}function mr(t){var e=function(t,e){if("object"!=vr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=vr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==vr(e)?e:String(e)}function gr(t,e,n){return e=Or(e),function(t,e){if(e&&("object"===vr(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,wr()?Reflect.construct(e,n||[],Or(t).constructor):e.apply(t,n))}function wr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wr=function(){return!!t})()}function Or(t){return Or=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Or(t)}function jr(t,e){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jr(t,e)}var Sr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),gr(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&&jr(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("li",this.props)}}])&&br(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Sr.displayName="CollapsElement"}catch(t){}const Pr=Sr;function Er(t){return Er="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},Er(t)}function _r(){return _r=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},_r.apply(this,arguments)}function kr(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,Br(r.key),r)}}function Cr(t,e,n){return e=Lr(e),function(t,e){if(e&&("object"===Er(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Nr(t)}(t,xr()?Reflect.construct(e,n||[],Lr(t).constructor):e.apply(t,n))}function xr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xr=function(){return!!t})()}function Lr(t){return Lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lr(t)}function Nr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Tr(t,e){return Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Tr(t,e)}function Br(t){var e=function(t,e){if("object"!=Er(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Er(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Er(e)?e:String(e)}var Dr=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=Nr(t=Cr(this,e,[].concat(a))),o={isOpen:!1},(r=Br(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&&Tr(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",_r({},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)}}])&&kr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Dr.displayName="CollapsTrigger"}catch(t){}Dr.defaultProps={effectduration:750,className:""};const Mr=Dr;function Rr(t){return Rr="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},Rr(t)}function Ar(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,Fr(r.key),r)}}function Fr(t){var e=function(t,e){if("object"!=Rr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Rr(e)?e:String(e)}function Ir(t,e,n){return e=Wr(e),function(t,e){if(e&&("object"===Rr(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,Vr()?Reflect.construct(e,n||[],Wr(t).constructor):e.apply(t,n))}function Vr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vr=function(){return!!t})()}function Wr(t){return Wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wr(t)}function zr(t,e){return zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zr(t,e)}var Ur=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Ir(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&&zr(t,e)}(n,t),r=n,(o=[{key:"render",value:function(){return i().createElement(ir,null,i().createElement(Pr,null,i().createElement(Mr,{className:"waves-effect waves-green"},i().createElement(e.Icon,null,this.props.icon),this.props.text||"no text prop"),i().createElement(hr,{style:{paddingLeft:"20px"}},i().createElement("ul",null,this.props.children))))}}])&&Ar(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),n}(i().Component);try{Ur.displayName="SideCollapsible"}catch(t){}Ur.defaultProps={effectduration:750,className:"",path:""};const qr=Ur;function Hr(t){return Hr="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},Hr(t)}function Kr(){return Kr=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},Kr.apply(this,arguments)}function Xr(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 Zr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xr(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=Gr(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)):Xr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $r(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 Gr(t){var e=function(t,e){if("object"!=Hr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Hr(e)?e:String(e)}function Yr(t,e,n){return e=Jr(e),function(t,e){if(e&&("object"===Hr(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,Qr()?Reflect.construct(e,n||[],Jr(t).constructor):e.apply(t,n))}function Qr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Qr=function(){return!!t})()}function Jr(t){return Jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jr(t)}function to(t,e){return to=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},to(t,e)}var eo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Yr(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&&to(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this;return i().createElement("li",Kr({},this.props,{style:Zr({},this.props.style)}),i().createElement(Qe.Link,Kr({},this.props,{className:"waves-effect waves-green"+this.props.className,innerRef:function(e){t.el=e},to:this.props.to}),this.props.children))}}])&&$r(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{eo.displayName="SideLink"}catch(t){}eo.defaultProps={effectduration:750,className:"",to:"/"};const no=eo;function ro(t){return ro="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},ro(t)}function oo(){return oo=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},oo.apply(this,arguments)}function io(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,ao(r.key),r)}}function ao(t){var e=function(t,e){if("object"!=ro(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ro(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ro(e)?e:String(e)}function co(t,e,n){return e=uo(e),function(t,e){if(e&&("object"===ro(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,so()?Reflect.construct(e,n||[],uo(t).constructor):e.apply(t,n))}function so(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(so=function(){return!!t})()}function uo(t){return uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},uo(t)}function lo(t,e){return lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lo(t,e)}var fo=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=co(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&&lo(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",oo({ref:this.el},this.props,{className:"waves-effect waves-green "+this.props.className,style:{display:"inherit"}}),i().createElement("a",null,this.props.children))}}])&&io(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{fo.displayName="SidenavEl"}catch(t){}fo.defaultProps={effectduration:750,className:"waves-effect waves-green ",path:"",icon:"home",data:[]};const po=fo;function yo(t){return yo="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},yo(t)}function ho(){return ho=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},ho.apply(this,arguments)}function vo(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,bo(r.key),r)}}function bo(t){var e=function(t,e){if("object"!=yo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==yo(e)?e:String(e)}function mo(t,e,n){return e=wo(e),function(t,e){if(e&&("object"===yo(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,go()?Reflect.construct(e,n||[],wo(t).constructor):e.apply(t,n))}function go(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(go=function(){return!!t})()}function wo(t){return wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wo(t)}function Oo(t,e){return Oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Oo(t,e)}var jo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),mo(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&&Oo(t,e)}(e,t),n=e,(r=[{key:"runSearch",value:function(){}},{key:"render",value:function(){return i().createElement("li",ho({},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"})))}}])&&vo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{jo.displayName="SidenavSearch"}catch(t){}jo.defaultProps={className:" "};const So=jo;function Po(t){return Po="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},Po(t)}function Eo(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 _o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Eo(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=Co(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)):Eo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ko(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,Co(r.key),r)}}function Co(t){var e=function(t,e){if("object"!=Po(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Po(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Po(e)?e:String(e)}function xo(t,e,n){return e=No(e),function(t,e){if(e&&("object"===Po(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,Lo()?Reflect.construct(e,n||[],No(t).constructor):e.apply(t,n))}function Lo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Lo=function(){return!!t})()}function No(t){return No=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},No(t)}function To(t,e){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},To(t,e)}var Bo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),xo(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&&To(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:_o({},this.props.style),className:this.props.className},i().createElement(Qe.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))}}])&&ko(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Bo.displayName="IconSideLink"}catch(t){}Bo.defaultProps={effectduration:750,className:"",to:"/"};const Do=Bo;function Mo(t){return Mo="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},Mo(t)}function Ro(){return Ro=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},Ro.apply(this,arguments)}function Ao(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,Fo(r.key),r)}}function Fo(t){var e=function(t,e){if("object"!=Mo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Mo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Mo(e)?e:String(e)}function Io(t,e,n){return e=Wo(e),function(t,e){if(e&&("object"===Mo(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||[],Wo(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 Wo(t){return Wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wo(t)}function zo(t,e){return zo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zo(t,e)}var Uo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Io(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:"render",value:function(){return i().createElement("div",Ro({},this.props,{className:"card "+this.props.className}))}}])&&Ao(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Uo.displayName="Card"}catch(t){}Uo.defaultProps={className:""};const qo=Uo;function Ho(t){return Ho="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},Ho(t)}function Ko(){return Ko=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},Ko.apply(this,arguments)}function Xo(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,Zo(r.key),r)}}function Zo(t){var e=function(t,e){if("object"!=Ho(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ho(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ho(e)?e:String(e)}function $o(t,e,n){return e=Yo(e),function(t,e){if(e&&("object"===Ho(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,Go()?Reflect.construct(e,n||[],Yo(t).constructor):e.apply(t,n))}function Go(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Go=function(){return!!t})()}function Yo(t){return Yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yo(t)}function Qo(t,e){return Qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qo(t,e)}var Jo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),$o(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&&Qo(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Ko({},this.props,{className:"card-action "+this.props.className}))}}])&&Xo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Jo.displayName="CardAction"}catch(t){}Jo.defaultProps={className:""};const ti=Jo;function ei(t){return ei="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},ei(t)}function ni(){return ni=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},ni.apply(this,arguments)}function ri(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"!=ei(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ei(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ei(e)?e:String(e)}function ii(t,e,n){return e=ci(e),function(t,e){if(e&&("object"===ei(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,ai()?Reflect.construct(e,n||[],ci(t).constructor):e.apply(t,n))}function ai(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ai=function(){return!!t})()}function ci(t){return ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ci(t)}function si(t,e){return si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},si(t,e)}var ui=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ii(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&&si(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",ni({},this.props,{className:"card-content "+this.props.className}))}}])&&ri(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ui.displayName="CardContent"}catch(t){}ui.defaultProps={className:""};const li=ui;function fi(t){return fi="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},fi(t)}function pi(){return pi=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},pi.apply(this,arguments)}function yi(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,di(r.key),r)}}function di(t){var e=function(t,e){if("object"!=fi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=fi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==fi(e)?e:String(e)}function hi(t,e,n){return e=bi(e),function(t,e){if(e&&("object"===fi(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,vi()?Reflect.construct(e,n||[],bi(t).constructor):e.apply(t,n))}function vi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vi=function(){return!!t})()}function bi(t){return bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bi(t)}function mi(t,e){return mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mi(t,e)}var gi=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&&mi(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("span",pi({},this.props,{className:"card-title "+(this.props.className||"")}))}}])&&yi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{gi.displayName="CardTitle"}catch(t){}gi.defaultProps={className:""};const wi=gi;function Oi(t){return Oi="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},Oi(t)}function ji(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 Si(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ji(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=Ei(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)):ji(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pi(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"!=Oi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Oi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Oi(e)?e:String(e)}function _i(t,e,n){return e=Ci(e),function(t,e){if(e&&("object"===Oi(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,ki()?Reflect.construct(e,n||[],Ci(t).constructor):e.apply(t,n))}function ki(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ki=function(){return!!t})()}function Ci(t){return Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ci(t)}function xi(t,e){return xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xi(t,e)}var Li=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_i(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&&xi(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",{style:Si({},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)}}])&&Pi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Li.displayName="CardImage"}catch(t){}Li.defaultProps={className:""};const Ni=Li;function Ti(t){return Ti="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},Ti(t)}function Bi(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,Di(r.key),r)}}function Di(t){var e=function(t,e){if("object"!=Ti(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ti(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ti(e)?e:String(e)}function Mi(t,e,n){return e=Ai(e),function(t,e){if(e&&("object"===Ti(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||[],Ai(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 Ai(t){return Ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ai(t)}function Fi(t,e){return Fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fi(t,e)}var Ii=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Mi(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&&Fi(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")))}}])&&Bi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ii.displayName="Cube"}catch(t){}Ii.defaultProps={className:""};const Vi=Ii;function Wi(t){return Wi="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},Wi(t)}function zi(){return zi=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},zi.apply(this,arguments)}function Ui(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,$i(r.key),r)}}function qi(t,e,n){return e=Ki(e),function(t,e){if(e&&("object"===Wi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xi(t)}(t,Hi()?Reflect.construct(e,n||[],Ki(t).constructor):e.apply(t,n))}function Hi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Hi=function(){return!!t})()}function Ki(t){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ki(t)}function Xi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zi(t,e){return Zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zi(t,e)}function $i(t){var e=function(t,e){if("object"!=Wi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Wi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Wi(e)?e:String(e)}var Gi=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=Xi(n=qi(this,e,[t])),i={visible:!1},(o=$i(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&&Zi(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",zi({ref:function(e){t.el=e}},this.props,{className:"modal-overlay "+this.props.className})):null}}])&&Ui(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Gi.displayName="Overlay"}catch(t){}Gi.defaultProps={className:""};const Yi=Gi;function Qi(t){return Qi="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},Qi(t)}function Ji(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,ta(r.key),r)}}function ta(t){var e=function(t,e){if("object"!=Qi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qi(e)?e:String(e)}function ea(t,e,n){return e=ra(e),function(t,e){if(e&&("object"===Qi(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||[],ra(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 ra(t){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ra(t)}function oa(t,e){return oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oa(t,e)}function ia(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")}var aa=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ea(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(Qe.Link,{to:this.props.addRedirectTo,"data-cy":"clt-addBtn",style:{display:"inline-flex",justifyContent:"center",alignItems:"center"},className:ia(this.props.disabled?"disabled":"","btn waves-effect btn-floating btn-small myblue")},i().createElement(J,{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))}}])&&Ji(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(o.Component);try{aa.displayName="InnerPage"}catch(t){}const ca=aa;function sa(t){return sa="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},sa(t)}function ua(){return ua=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},ua.apply(this,arguments)}function la(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,fa(r.key),r)}}function fa(t){var e=function(t,e){if("object"!=sa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=sa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==sa(e)?e:String(e)}function pa(t,e,n){return e=da(e),function(t,e){if(e&&("object"===sa(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,ya()?Reflect.construct(e,n||[],da(t).constructor):e.apply(t,n))}function ya(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ya=function(){return!!t})()}function da(t){return da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},da(t)}function ha(t,e){return ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ha(t,e)}var va=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),pa(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&&ha(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",ua({},this.props,{className:"row "+this.props.className}))}}])&&la(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{va.displayName="Row"}catch(t){}va.defaultProps={className:""};const ba=va;function ma(t){return ma="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},ma(t)}function ga(){return ga=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},ga.apply(this,arguments)}function wa(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,Oa(r.key),r)}}function Oa(t){var e=function(t,e){if("object"!=ma(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ma(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ma(e)?e:String(e)}function ja(t,e,n){return e=Pa(e),function(t,e){if(e&&("object"===ma(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,Sa()?Reflect.construct(e,n||[],Pa(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 Pa(t){return Pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pa(t)}function Ea(t,e){return Ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ea(t,e)}var _a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ja(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:"render",value:function(){var t=this;return i().createElement("div",ga({},this.props,{ref:function(e){return t.el=e},className:"col "+this.props.className}))}}])&&wa(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{_a.displayName="Col"}catch(t){}_a.defaultProps={className:""};const ka=_a;function Ca(t){return Ca="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},Ca(t)}function xa(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,La(r.key),r)}}function La(t){var e=function(t,e){if("object"!=Ca(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ca(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ca(e)?e:String(e)}function Na(t,e,n){return e=Ba(e),function(t,e){if(e&&("object"===Ca(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,Ta()?Reflect.construct(e,n||[],Ba(t).constructor):e.apply(t,n))}function Ta(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ta=function(){return!!t})()}function Ba(t){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ba(t)}function Da(t,e){return Da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Da(t,e)}var Ma=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=Na(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&&Da(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()))}}])&&xa(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ma.displayName="Tabs"}catch(t){}Ma.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 Ra=Ma;function Aa(t){return Aa="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},Aa(t)}function Fa(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,Ia(r.key),r)}}function Ia(t){var e=function(t,e){if("object"!=Aa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Aa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Aa(e)?e:String(e)}const Va=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&&Fa(e.prototype,null),n&&Fa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Wa(t){return Wa="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},Wa(t)}function za(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,Ua(r.key),r)}}function Ua(t){var e=function(t,e){if("object"!=Wa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Wa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Wa(e)?e:String(e)}const qa=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)}}])&&za(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function Ha(t){return Ha="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},Ha(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,Qa(r.key),r)}}function Xa(t,e,n){return e=$a(e),function(t,e){if(e&&("object"===Ha(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ga(t)}(t,Za()?Reflect.construct(e,n||[],$a(t).constructor):e.apply(t,n))}function Za(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Za=function(){return!!t})()}function $a(t){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$a(t)}function Ga(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ya(t,e){return Ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ya(t,e)}function Qa(t){var e=function(t,e){if("object"!=Ha(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ha(e)?e:String(e)}var Ja=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=Ga(t=Xa(this,e,[].concat(a))),o={selected:""},(r=Qa(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&&Ya(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)})))}}])&&Ka(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ja.displayName="RadioIcons"}catch(t){}const tc=Ja;function ec(t){return ec="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},ec(t)}function nc(){return nc=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},nc.apply(this,arguments)}function rc(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"!=ec(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ec(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ec(e)?e:String(e)}function ic(t,e,n){return e=cc(e),function(t,e){if(e&&("object"===ec(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,ac()?Reflect.construct(e,n||[],cc(t).constructor):e.apply(t,n))}function ac(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ac=function(){return!!t})()}function cc(t){return cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cc(t)}function sc(t,e){return sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},sc(t,e)}var uc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ic(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&&sc(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",nc({},this.props,{className:"collection "+this.props.className}))}}])&&rc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{uc.displayName="Collection"}catch(t){}uc.defaultProps={className:""};const lc=uc;function fc(t){return fc="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},fc(t)}function pc(){return pc=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},pc.apply(this,arguments)}function yc(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,dc(r.key),r)}}function dc(t){var e=function(t,e){if("object"!=fc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=fc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==fc(e)?e:String(e)}function hc(t,e,n){return e=bc(e),function(t,e){if(e&&("object"===fc(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,vc()?Reflect.construct(e,n||[],bc(t).constructor):e.apply(t,n))}function vc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vc=function(){return!!t})()}function bc(t){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bc(t)}function mc(t,e){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mc(t,e)}var gc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),hc(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&&mc(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",pc({},this.props,{className:"collection-item "+this.props.className}))}}])&&yc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{gc.displayName="CollectionItem"}catch(t){}gc.defaultProps={className:""};const wc=gc;var Oc=n(893);function jc(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 Sc(t,e,n){return e=Ec(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,Pc()?Reflect.construct(e,n||[],Ec(t).constructor):e.apply(t,n))}function Pc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Pc=function(){return!!t})()}function Ec(t){return Ec=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ec(t)}function _c(t,e){return _c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_c(t,e)}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 Cc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xc(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 Lc(t,e,n){return e&&xc(t.prototype,e),n&&xc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nc(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)}var Tc=function(){function t(e,n,r,o){if(Cc(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 Lc(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}(),Bc=function(){function t(e,n,r,o,i,a){Cc(this,t),this.startPoint=e,this.control2=n,this.control1=r,this.endPoint=o,this.startWidth=i,this.endWidth=a}return Lc(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),d=u+(c-u)*y,h=l+(s-l)*y,v=e.x-d,b=e.y-h;return{c1:new Tc(c+v,s+b),c2:new Tc(u+v,l+b)}}}]),t}(),Dc=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Cc(this,e),(n=Sc(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&&_c(t,e)}(e,t),Lc(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"!==kc(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 Tc(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=Bc.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 d=Math.min(t.startWidth+s*r,e.maxWidth);this._drawCurveSegment(p,y,d)}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 jc(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)?jc(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 Tc(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(){Cc(this,t);try{this._et=new EventTarget}catch(t){this._et=document}}return Lc(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 Mc(t){return Mc="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},Mc(t)}function Rc(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"!=Mc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Mc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Mc(e)?e:String(e)}function Fc(t,e,n){return e=Vc(e),function(t,e){if(e&&("object"===Mc(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,Ic()?Reflect.construct(e,n||[],Vc(t).constructor):e.apply(t,n))}function Ic(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ic=function(){return!!t})()}function Vc(t){return Vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vc(t)}function Wc(t,e){return Wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wc(t,e)}var zc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Fc(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&&Wc(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.sigPad=new Dc(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(Ye,{className:"red",onClick:this.clear.bind(this)},"close"),i().createElement(Ye,{className:"green",onClick:this.save.bind(this)},"save")))}}])&&Rc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{zc.displayName="Signature_Cmp"}catch(t){}const Uc=zc;function qc(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 Hc={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Kc={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Xc=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Zc={CSS:{},springs:{}};function $c(t,e,n){return Math.min(Math.max(t,e),n)}function Gc(t,e){return t.indexOf(e)>-1}function Yc(t,e){return t.apply(null,e)}var Qc={arr:function(t){return Array.isArray(t)},obj:function(t){return Gc(Object.prototype.toString.call(t),"Object")},pth:function(t){return Qc.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||Qc.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 Qc.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 Qc.hex(t)||Qc.rgb(t)||Qc.hsl(t)},key:function(t){return!Hc.hasOwnProperty(t)&&!Kc.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function Jc(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function ts(t,e){var n=Jc(t),r=$c(Qc.und(n[0])?1:n[0],.1,100),o=$c(Qc.und(n[1])?100:n[1],.1,100),i=$c(Qc.und(n[2])?10:n[2],.1,100),a=$c(Qc.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=Zc.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 Zc.springs[t]=i,i}}function es(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return function(e){return Math.ceil($c(e,1e-6,1)*t)*(1/t)}}var ns,rs,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)}}}}(),is=(ns={linear:function(){return function(t){return t}}},rs={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=$c(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,1,10),n=$c(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){rs[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(rs).forEach((function(t){var e=rs[t];ns["easeIn"+t]=e,ns["easeOut"+t]=function(t,n){return function(r){return 1-e(t,n)(1-r)}},ns["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}},ns["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}}})),ns);function as(t,e){if(Qc.fnc(t))return t;var n=t.split("(")[0],r=is[n],o=Jc(t);switch(n){case"spring":return ts(t,e);case"cubicBezier":return Yc(os,o);case"steps":return Yc(es,o);default:return Yc(r,o)}}function cs(t){try{return document.querySelectorAll(t)}catch(t){return}}function ss(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 us(t){return t.reduce((function(t,e){return t.concat(Qc.arr(e)?us(e):e)}),[])}function ls(t){return Qc.arr(t)?t:(Qc.str(t)&&(t=cs(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function fs(t,e){return t.some((function(t){return t===e}))}function ps(t){var e={};for(var n in t)e[n]=t[n];return e}function ys(t,e){var n=ps(t);for(var r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function ds(t,e){var n=ps(t);for(var r in e)n[r]=Qc.und(t[r])?e[r]:t[r];return n}function hs(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 vs(t,e){return Qc.fnc(t)?t(e.target,e.id,e.total):t}function bs(t,e){return t.getAttribute(e)}function ms(t,e,n){if(fs([n,"deg","rad","turn"],hs(e)))return e;var r=Zc.CSS[e+n];if(!Qc.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 Zc.CSS[e+n]=c,c}function gs(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?ms(t,o,n):o}}function ws(t,e){return Qc.dom(t)&&!Qc.inp(t)&&(!Qc.nil(bs(t,e))||Qc.svg(t)&&t[e])?"attribute":Qc.dom(t)&&fs(Xc,e)?"transform":Qc.dom(t)&&"transform"!==e&&gs(t,e)?"css":null!=t[e]?"object":void 0}function Os(t){if(Qc.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 js(t,e,n,r){switch(ws(t,e)){case"transform":return function(t,e,n,r){var o=Gc(e,"scale")?1:0+function(t){return Gc(t,"translate")||"perspective"===t?"px":Gc(t,"rotate")||Gc(t,"skew")?"deg":void 0}(e),i=Os(t).get(e)||o;return n&&(n.transforms.list.set(e,i),n.transforms.last=e),r?ms(t,i,r):i}(t,e,r,n);case"css":return gs(t,e,n);case"attribute":return bs(t,e);default:return t[e]||0}}function Ss(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=hs(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 Ps(t,e){if(Qc.col(t))return function(t){return Qc.rgb(t)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=t))?"rgba(".concat(n[1],",1)"):e:Qc.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):Qc.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=hs(t),r=n?t.substr(0,t.length-n.length):t;return e?r+e:r}function Es(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function _s(t){for(var e,n=t.points,r=0,o=0;o<n.numberOfItems;o++){var i=n.getItem(o);o>0&&(r+=Es(e,i)),e=i}return r}function ks(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*bs(t,"r")}(t);case"rect":return function(t){return 2*bs(t,"width")+2*bs(t,"height")}(t);case"line":return function(t){return Es({x:bs(t,"x1"),y:bs(t,"y1")},{x:bs(t,"x2"),y:bs(t,"y2")})}(t);case"polyline":return _s(t);case"polygon":return function(t){var e=t.points;return _s(t)+Es(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function Cs(t,e){var n=e||{},r=n.el||function(t){for(var e=t.parentNode;Qc.svg(e)&&Qc.svg(e.parentNode);)e=e.parentNode;return e}(t),o=r.getBoundingClientRect(),i=bs(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 xs(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=Cs(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 Ls(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Ps(Qc.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:Qc.str(t)||e?r.split(n):[]}}function Ns(t){return ss(t?us(Qc.arr(t)?t.map(ls):ls(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function Ts(t){var e=Ns(t);return e.map((function(t,n){return{target:t,id:n,total:e.length,transforms:{list:Os(t)}}}))}function Bs(t,e){var n=ps(e);if(/^spring/.test(n.easing)&&(n.duration=ts(n.easing)),Qc.arr(t)){var r=t.length;2!==r||Qc.obj(t[0])?Qc.fnc(e.duration)||(n.duration=e.duration/r):t={value:t}}var o=Qc.arr(t)?t:[t];return o.map((function(t,n){var r=Qc.obj(t)&&!Qc.pth(t)?t:{value:t};return Qc.und(r.delay)&&(r.delay=n?0:e.delay),Qc.und(r.endDelay)&&(r.endDelay=n===o.length-1?e.endDelay:0),r})).map((function(t){return ds(t,n)}))}var Ds={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 Ms(t,e){Ts(t).forEach((function(t){for(var n in e){var r=vs(e[n],t),o=t.target,i=hs(r),a=js(o,n,i,t),c=Ss(Ps(r,i||hs(a)),a),s=ws(o,n);Ds[s](o,n,c,t.transforms,!0)}}))}function Rs(t,e){return ss(us(t.map((function(t){return e.map((function(e){return function(t,e){var n=ws(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=vs(t[r],e);Qc.arr(o)&&1===(o=o.map((function(t){return vs(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=Qc.arr(i)?i[1]:i,c=hs(a),s=js(e.target,t.name,c,e),u=n?n.to.original:s,l=Qc.arr(i)?i[0]:u,f=hs(l)||hs(s),p=c||f;return Qc.und(a)&&(a=u),o.from=Ls(l,p),o.to=Ls(Ss(a,l),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=as(o.easing,o.duration),o.isPath=Qc.pth(i),o.isPathTargetInsideSVG=o.isPath&&Qc.svg(e.target),o.isColor=Qc.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!Qc.und(t)}))}function As(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 Fs=0,Is=[],Vs=function(){var t;function e(n){for(var r=Is.length,o=0;o<r;){var i=Is[o];i.paused?(Is.splice(o,1),r--):(i.tick(n),o++)}t=o>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){zs.suspendWhenDocumentHidden&&(Ws()?t=cancelAnimationFrame(t):(Is.forEach((function(t){return t._onDocumentVisibility()})),Vs()))})),function(){t||Ws()&&zs.suspendWhenDocumentHidden||!(Is.length>0)||(t=requestAnimationFrame(e))}}();function Ws(){return!!document&&document.hidden}function zs(){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,d,h=(s=ys(Hc,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),u=ys(Kc,c),l=function(t,e){var n=[],r=e.keyframes;for(var o in r&&(e=ds(function(t){for(var e=ss(us(t.map((function(t){return Object.keys(t)}))),(function(t){return Qc.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)Qc.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)Qc.key(o)&&n.push({name:o,tweens:Bs(e[o],t)});return n}(u,c),f=Ts(c.targets),p=Rs(f,l),y=As(p,u),d=Fs,Fs++,ds(s,{id:d,children:[],animatables:f,animations:p,duration:y.duration,delay:y.delay,endDelay:y.endDelay}));function v(){var e=h.direction;"alternate"!==e&&(h.direction="normal"!==e?"normal":"reverse"),h.reversed=!h.reversed,t.forEach((function(t){return t.reversed=h.reversed}))}function b(t){return h.reversed?h.duration-t:t}function m(){e=0,n=b(h.currentTime)*(1/zs.speed)}function g(t,e){e&&e.seek(t-e.timelineOffset)}function w(t){for(var e=0,n=h.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=ss(a,(function(e){return t<e.end}))[0]||s);for(var u=$c(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=[],d=s.to.numbers.length,v=void 0,b=0;b<d;b++){var m=void 0,g=s.to.numbers[b],w=s.from.numbers[b]||0;m=s.isPath?xs(s.value,l*g,s.isPathTargetInsideSVG):w+l*(g-w),p&&(s.isColor&&b>2||(m=Math.round(m*p)/p)),y.push(m)}var O=f.length;if(O){v=f[0];for(var j=0;j<O;j++){var S=f[j+1],P=y[j];isNaN(P)||(v+=S?P+S:P+" ")}}else v=y[0];Ds[o.type](i.target,o.property,v,i.transforms),o.currentValue=v,e++}}function O(t){h[t]&&!h.passThrough&&h[t](h)}function j(c){var s=h.duration,u=h.delay,l=s-h.endDelay,f=b(c);h.progress=$c(f/s*100,0,100),h.reversePlayback=f<h.currentTime,t&&function(e){if(h.reversePlayback)for(var n=o;n--;)g(e,t[n]);else for(var r=0;r<o;r++)g(e,t[r])}(f),!h.began&&h.currentTime>0&&(h.began=!0,O("begin")),!h.loopBegan&&h.currentTime>0&&(h.loopBegan=!0,O("loopBegin")),f<=u&&0!==h.currentTime&&w(0),(f>=l&&h.currentTime!==s||!s)&&w(s),f>u&&f<l?(h.changeBegan||(h.changeBegan=!0,h.changeCompleted=!1,O("changeBegin")),O("change"),w(f)):h.changeBegan&&(h.changeCompleted=!0,h.changeBegan=!1,O("changeComplete")),h.currentTime=$c(f,0,s),h.began&&O("update"),c>=s&&(n=0,h.remaining&&!0!==h.remaining&&h.remaining--,h.remaining?(e=r,O("loopComplete"),h.loopBegan=!1,"alternate"===h.direction&&v()):(h.paused=!0,h.completed||(h.completed=!0,O("loopComplete"),O("complete"),!h.passThrough&&"Promise"in window&&(i(),a(h)))))}return a(h),h.reset=function(){var e=h.direction;h.passThrough=!1,h.currentTime=0,h.progress=0,h.paused=!0,h.began=!1,h.loopBegan=!1,h.changeBegan=!1,h.completed=!1,h.changeCompleted=!1,h.reversePlayback=!1,h.reversed="reverse"===e,h.remaining=h.loop,t=h.children;for(var n=o=t.length;n--;)h.children[n].reset();(h.reversed&&!0!==h.loop||"alternate"===e&&1===h.loop)&&h.remaining++,w(h.reversed?h.duration:0)},h._onDocumentVisibility=m,h.set=function(t,e){return Ms(t,e),h},h.tick=function(t){r=t,e||(e=r),j((r+(n-e))*zs.speed)},h.seek=function(t){j(b(t))},h.pause=function(){h.paused=!0,m()},h.play=function(){h.paused&&(h.completed&&h.reset(),h.paused=!1,Is.push(h),m(),Vs())},h.reverse=function(){v(),h.completed=!h.reversed,m()},h.restart=function(){h.reset(),h.play()},h.remove=function(t){qs(Ns(t),h)},h.reset(),h.autoplay&&h.play(),h}function Us(t,e){for(var n=e.length;n--;)fs(t,e[n].animatable.target)&&e.splice(n,1)}function qs(t,e){var n=e.animations,r=e.children;Us(t,n);for(var o=r.length;o--;){var i=r[o],a=i.animations;Us(t,a),a.length||i.children.length||r.splice(o,1)}n.length||r.length||e.pause()}zs.version="3.2.2",zs.speed=1,zs.suspendWhenDocumentHidden=!0,zs.running=Is,zs.remove=function(t){for(var e=Ns(t),n=Is.length;n--;)qs(e,Is[n])},zs.get=js,zs.set=Ms,zs.convertPx=ms,zs.path=function(t,e){var n=Qc.str(t)?cs(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:Cs(n),totalLength:ks(n)*(r/100)}}},zs.setDashoffset=function(t){var e=ks(t);return t.setAttribute("stroke-dasharray",e),e},zs.stagger=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.direction||"normal",r=e.easing?as(e.easing):null,o=e.grid,i=e.axis,a=e.from||0,c="first"===a,s="center"===a,u="last"===a,l=Qc.arr(t),f=l?parseFloat(t[0]):parseFloat(t),p=l?parseFloat(t[1]):0,y=hs(l?t[1]:t)||0,d=e.start||0+(l?f:0),h=[],v=0;return function(t,e,b){if(c&&(a=0),s&&(a=(b-1)/2),u&&(a=b-1),!h.length){for(var m=0;m<b;m++){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-m%o[0],j=w-Math.floor(m/o[0]),S=Math.sqrt(O*O+j*j);"x"===i&&(S=-O),"y"===i&&(S=-j),h.push(S)}else h.push(Math.abs(a-m));v=Math.max.apply(Math,function(t){if(Array.isArray(t))return qc(t)}(P=h)||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 qc(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)?qc(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&&(h=h.map((function(t){return r(t/v)*v}))),"reverse"===n&&(h=h.map((function(t){return i?t<0?-1*t:-t:Math.abs(v-t)})))}var P;return d+(l?(p-f)/v:f)*(Math.round(100*h[e])/100)+y}},zs.timeline=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=zs(t);return e.duration=0,e.add=function(n,r){var o=Is.indexOf(e),i=e.children;function a(t){t.passThrough=!0}o>-1&&Is.splice(o,1);for(var c=0;c<i.length;c++)a(i[c]);var s=ds(n,ys(Kc,t));s.targets=s.targets||t.targets;var u=e.duration;s.autoplay=!1,s.direction=e.direction,s.timelineOffset=Qc.und(r)?u:Ss(r,u),a(e),e.seek(s.timelineOffset);var l=zs(s);a(l),i.push(l);var f=As(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},zs.easing=as,zs.penner=is,zs.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t};const Hs=zs;function Ks(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,Xs(r.key),r)}}function Xs(t){var e=function(t,e){if("object"!=Zs(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Zs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Zs(e)?e:String(e)}function Zs(t){return Zs="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},Zs(t)}var $s=["valueOf","toLocaleString","toString","constructor"],Gs=function t(e,n,r){var o,i,a;if(e&&(r&&t(e,r),n&&"object"===Zs(n))){for(o in n)e[o]=n[o];if($s)for(i=$s.length;i--;)a=$s[i],n.hasOwnProperty(a)&&(e[a]=n[a])}return e},Ys={html:"",displayLength:3e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},Qs=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=Gs({},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 Ys}},{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":Zs(HTMLElement))?this.message instanceof HTMLElement:this.message&&"object"===Zs(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(){Hs({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),Hs({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()}})}}])&&Ks(e.prototype,n),r&&Ks(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();Qs._toasts=[],Qs._container=null,Qs._draggedToast=null;const Js=Qs;function tu(t){return tu="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},tu(t)}function eu(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,nu(r.key),r)}}function nu(t){var e=function(t,e){if("object"!=tu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=tu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==tu(e)?e:String(e)}var ru=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 Js({html:t,classes:"blue lighten-1"})}},{key:"error",value:function(t){return new Js({html:t,classes:"red lighten-1"})}},{key:"success",value:function(t){return new Js({html:t,classes:"green lighten-1"})}}])&&eu(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const ou=new ru})(),r})()));