12 |
- /*! For license information please see index.js.LICENSE.txt */
- !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:()=>Ve,Button:()=>Ge,Card:()=>Uo,CardAction:()=>Jo,CardContent:()=>ui,CardImage:()=>Li,CardTitle:()=>gi,Col:()=>_a,CollapsBody:()=>dr,CollapsElement:()=>Sr,CollapsTrigger:()=>Dr,Collapsible:()=>or,Collection:()=>uc,CollectionItem:()=>gc,Cube:()=>Ii,DateField:()=>ve,EmailField:()=>q,Field:()=>M,FieldTrigger:()=>bt,Flash:()=>Ua,FlashMessage:()=>ru,Form:()=>h,FormActions:()=>un,IconSideLink:()=>Bo,Icons:()=>t,InnerPage:()=>aa,Loader:()=>Ia,Logo:()=>gn,Overlay:()=>Gi,PasswordField:()=>_t,PhoneField:()=>Kt,PostCodeField:()=>Rt,RadioIcons:()=>Ja,Row:()=>va,SideCollapsible:()=>Ur,SideLink:()=>eo,SideMenu:()=>In,SideMenuItem:()=>Zn,SideNav:()=>xn,SidenavEl:()=>fo,SidenavSearch:()=>jo,Signature_Cmp:()=>zc,StokeBtn:()=>Le,Tabs:()=>Ma,TextArea:()=>re,Toast:()=>Qs,Waves:()=>we,saveAs:()=>wc.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,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",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"}),i().createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"}))}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 ut="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},ut(t)}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,ft(r.key),r)}}function ft(t){var e=function(t,e){if("object"!=ut(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ut(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ut(e)?e:String(e)}function pt(t,e,n){return e=dt(e),function(t,e){if(e&&("object"===ut(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,yt()?Reflect.construct(e,n||[],dt(t).constructor):e.apply(t,n))}function yt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yt=function(){return!!t})()}function dt(t){return dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dt(t)}function ht(t,e){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ht(t,e)}var vt=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=pt(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&&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:"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&<(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(P);try{vt.displayName="FieldTrigger"}catch(t){}vt.defaultProps={trigger:!0,type:"text",className:"",placeholder:"",label:""};const bt=vt;function mt(t){return mt="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},mt(t)}function gt(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"!=mt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=mt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==mt(e)?e:String(e)}function Ot(t,e,n){return e=St(e),function(t,e){if(e&&("object"===mt(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,jt()?Reflect.construct(e,n||[],St(t).constructor):e.apply(t,n))}function jt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jt=function(){return!!t})()}function St(t){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},St(t)}function Pt(t,e){return Pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pt(t,e)}var Et=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=Ot(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&&Pt(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())}}])&>(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(M);try{Et.displayName="PasswordFIeld"}catch(t){}Et.defaultProps={type:"password",icon:"dialpad",enterkey:function(){},className:"",placeholder:"",label:""};const _t=Et;function kt(t){return kt="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},kt(t)}function Ct(){return Ct=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},Ct.apply(this,arguments)}function xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Lt(r.key),r)}}function Lt(t){var e=function(t,e){if("object"!=kt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==kt(e)?e:String(e)}function Nt(t,e,n){return e=Bt(e),function(t,e){if(e&&("object"===kt(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,Tt()?Reflect.construct(e,n||[],Bt(t).constructor):e.apply(t,n))}function Tt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Tt=function(){return!!t})()}function Bt(t){return Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bt(t)}function Dt(t,e){return Dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dt(t,e)}var Mt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Nt(this,e)).id=t.uuidv4(),t.state={labelClassName:""},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&&Dt(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",Ct({},this.props,{ref:function(e){t.el=e},onFocus:function(e){return t.onFocus.bind(t)(e)},onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyUp:this.onKeyDown.bind(this),id:this.id,className:"validate "+this.props.className})),this.getErrorView())}}])&&xt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(M);try{Mt.displayName="PostCodeField"}catch(t){}Mt.defaultProps={type:"postcode",icon:"dialpad",className:"",placeholder:"",label:""};const Rt=Mt;function At(t){return At="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},At(t)}function Ft(){return Ft=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},Ft.apply(this,arguments)}function It(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Vt(r.key),r)}}function Vt(t){var e=function(t,e){if("object"!=At(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=At(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==At(e)?e:String(e)}function Wt(t,e,n){return e=Ut(e),function(t,e){if(e&&("object"===At(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,zt()?Reflect.construct(e,n||[],Ut(t).constructor):e.apply(t,n))}function zt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zt=function(){return!!t})()}function Ut(t){return Ut=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ut(t)}function qt(t,e){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qt(t,e)}var Ht=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Wt(this,e)).id=t.uuidv4(),t.state={labelClassName:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qt(t,e)}(e,t),n=e,(r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"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",Ft({},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())}}])&&It(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(M);try{Ht.displayName="PhoneField"}catch(t){}Ht.defaultProps={type:"phoneNumber",icon:"dialpad",className:"",placeholder:"",label:""};const Kt=Ht,Xt=require("react-textarea-autosize");var Zt=n.n(Xt);function $t(t){return $t="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},$t(t)}function Gt(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,Yt(r.key),r)}}function Yt(t){var e=function(t,e){if("object"!=$t(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=$t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$t(e)?e:String(e)}function Qt(t,e,n){return e=te(e),function(t,e){if(e&&("object"===$t(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,Jt()?Reflect.construct(e,n||[],te(t).constructor):e.apply(t,n))}function Jt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jt=function(){return!!t})()}function te(t){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},te(t)}function ee(t,e){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ee(t,e)}var ne=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=Qt(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&&ee(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(Zt(),{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&&Gt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ne.displayName="Field"}catch(t){}ne.defaultProps={enteraction:function(){},type:"text",className:"",placeholder:"",label:""};const re=ne,oe=require("react-datepicker");var ie=n.n(oe);require("react-datepicker/dist/react-datepicker.css");const ae=require("date-fns/locale/fr");var ce=n.n(ae);function se(t){return se="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},se(t)}function ue(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,le(r.key),r)}}function le(t){var e=function(t,e){if("object"!=se(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==se(e)?e:String(e)}function fe(t,e,n){return e=ye(e),function(t,e){if(e&&("object"===se(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,pe()?Reflect.construct(e,n||[],ye(t).constructor):e.apply(t,n))}function pe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pe=function(){return!!t})()}function ye(t){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ye(t)}function de(t,e){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},de(t,e)}(0,oe.registerLocale)("fr",ce());var he=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=fe(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&&de(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(ie(),{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&&ue(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{he.displayName="DateField"}catch(t){}he.defaultProps={type:"date",className:"",placeholder:"",label:""};const ve=he;function be(t){return be="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},be(t)}function me(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,ge(r.key),r)}}function ge(t){var e=function(t,e){if("object"!=be(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==be(e)?e:String(e)}const we=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"!==be(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}}])&&me(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Oe(t){return Oe="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},Oe(t)}function je(){return je=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},je.apply(this,arguments)}function Se(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,Pe(r.key),r)}}function Pe(t){var e=function(t,e){if("object"!=Oe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Oe(e)?e:String(e)}function Ee(t,e,n){return e=ke(e),function(t,e){if(e&&("object"===Oe(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,_e()?Reflect.construct(e,n||[],ke(t).constructor):e.apply(t,n))}function _e(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_e=function(){return!!t})()}function ke(t){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ke(t)}function Ce(t,e){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ce(t,e)}var xe=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ee(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&&Ce(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("a",je({},this.props,{className:"StokeBtn "+this.props.className}))}}])&&Se(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{xe.displayName="StokeBtn"}catch(t){}xe.defaultProps={className:""};const Le=xe;function Ne(t){return Ne="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},Ne(t)}function Te(){return Te=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},Te.apply(this,arguments)}function Be(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,De(r.key),r)}}function De(t){var e=function(t,e){if("object"!=Ne(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ne(e)?e:String(e)}function Me(t,e,n){return e=Ae(e),function(t,e){if(e&&("object"===Ne(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,Re()?Reflect.construct(e,n||[],Ae(t).constructor):e.apply(t,n))}function Re(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Re=function(){return!!t})()}function Ae(t){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ae(t)}function Fe(t,e){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fe(t,e)}var Ie=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Me(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&&Fe(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("a",Te({},this.props,{className:"Btn "+this.props.className}))}}])&&Be(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ie.displayName="Btn"}catch(t){}Ie.defaultProps={className:""};const Ve=Ie;function We(t){return We="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},We(t)}function ze(){return ze=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},ze.apply(this,arguments)}function Ue(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qe(r.key),r)}}function qe(t){var e=function(t,e){if("object"!=We(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=We(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==We(e)?e:String(e)}function He(t,e,n){return e=Xe(e),function(t,e){if(e&&("object"===We(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||[],Xe(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 Xe(t){return Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xe(t)}function Ze(t,e){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ze(t,e)}var $e=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),He(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ze(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.wave=new we(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",ze({},this.props,{ref:function(e){t.el=e},className:e+this.props.className}),this.props.children)}}])&&Ue(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{$e.displayName="Button"}catch(t){}$e.defaultProps={className:"",model:"standard",size:"medium"};const Ge=$e,Ye=require("react-router-dom");function Qe(t){return Qe="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},Qe(t)}function Je(){return Je=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},Je.apply(this,arguments)}function tn(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,en(r.key),r)}}function en(t){var e=function(t,e){if("object"!=Qe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qe(e)?e:String(e)}function nn(t,e,n){return e=on(e),function(t,e){if(e&&("object"===Qe(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||[],on(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 on(t){return on=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},on(t)}function an(t,e){return an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},an(t,e)}function cn(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{cn.displayName="XIcon"}catch(t){}var sn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),nn(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&&an(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(Ye.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(cn,{style:{height:"20px"}})):"function"==typeof this.props.onCancel&&(t=i().createElement(Ge,{"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(cn,{style:{height:"20px"}}))),i().createElement("div",Je({},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(Ge,{"data-cy":"form-next-save-Btn",className:"green flexbox ",onClick:this.validateBtnClicked.bind(this)},i().createElement(Y,{style:{width:"20px",height:"20px"}}))))}}])&&tn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{sn.displayName="FormActions"}catch(t){}sn.defaultProps={onValidate:Function};const un=sn;function ln(t){return ln="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},ln(t)}function fn(){return fn=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},fn.apply(this,arguments)}function pn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yn(r.key),r)}}function yn(t){var e=function(t,e){if("object"!=ln(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ln(e)?e:String(e)}function dn(t,e,n){return e=vn(e),function(t,e){if(e&&("object"===ln(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||[],vn(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 vn(t){return vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vn(t)}function bn(t,e){return bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bn(t,e)}var mn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),dn(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&&bn(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",fn({},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"}))))}}])&&pn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{mn.displayName="Logo"}catch(t){}mn.defaultProps={className:""};const gn=mn;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 On(){return On=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},On.apply(this,arguments)}function jn(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,Sn(r.key),r)}}function Sn(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 Pn(t,e,n){return e=_n(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,En()?Reflect.construct(e,n||[],_n(t).constructor):e.apply(t,n))}function En(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(En=function(){return!!t})()}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_n(t)}function kn(t,e){return kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kn(t,e)}var Cn=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=Pn(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&&kn(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",On({style:{}},this.props,{ref:function(e){t.el=e},className:"sidenav "+this.props.className})))}}])&&jn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Cn.displayName="SideNav"}catch(t){}Cn.defaultProps={opened:"false",className:"",fixed:"false",right:"false"};const xn=Cn;function Ln(t){return Ln="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},Ln(t)}function Nn(){return Nn=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},Nn.apply(this,arguments)}function Tn(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,Bn(r.key),r)}}function Bn(t){var e=function(t,e){if("object"!=Ln(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ln(e)?e:String(e)}function Dn(t,e,n){return e=Rn(e),function(t,e){if(e&&("object"===Ln(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,Mn()?Reflect.construct(e,n||[],Rn(t).constructor):e.apply(t,n))}function Mn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Mn=function(){return!!t})()}function Rn(t){return Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rn(t)}function An(t,e){return An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},An(t,e)}var Fn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Dn(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&&An(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Nn({},this.props,{className:"sidemenu "+this.props.className}),i().createElement("ul",null,this.props.children))}}])&&Tn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Fn.displayName="SideMenu"}catch(t){}const In=Fn;function Vn(t){return Vn="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},Vn(t)}function Wn(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,zn(r.key),r)}}function zn(t){var e=function(t,e){if("object"!=Vn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Vn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Vn(e)?e:String(e)}function Un(t,e,n){return e=Hn(e),function(t,e){if(e&&("object"===Vn(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,qn()?Reflect.construct(e,n||[],Hn(t).constructor):e.apply(t,n))}function qn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qn=function(){return!!t})()}function Hn(t){return Hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hn(t)}function Kn(t,e){return Kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kn(t,e)}var Xn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Un(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&&Kn(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)}}])&&Wn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Xn.displayName="SideMenuItem"}catch(t){}const Zn=Xn;function $n(t){return $n="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},$n(t)}function Gn(){return Gn=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},Gn.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,Qn(r.key),r)}}function Qn(t){var e=function(t,e){if("object"!=$n(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=$n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$n(e)?e:String(e)}function Jn(t,e,n){return e=er(e),function(t,e){if(e&&("object"===$n(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,tr()?Reflect.construct(e,n||[],er(t).constructor):e.apply(t,n))}function tr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tr=function(){return!!t})()}function er(t){return er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},er(t)}function nr(t,e){return nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nr(t,e)}var rr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Jn(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nr(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("ul",Gn({},this.props,{className:"collapsible collapsible-accordion "+this.props.className}))}}])&&Yn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{rr.displayName="Collapsible"}catch(t){}rr.defaultProps={className:""};const or=rr;function ir(t){return ir="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},ir(t)}function ar(){return ar=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},ar.apply(this,arguments)}function cr(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,sr(r.key),r)}}function sr(t){var e=function(t,e){if("object"!=ir(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ir(e)?e:String(e)}function ur(t,e,n){return e=fr(e),function(t,e){if(e&&("object"===ir(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,lr()?Reflect.construct(e,n||[],fr(t).constructor):e.apply(t,n))}function lr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lr=function(){return!!t})()}function fr(t){return fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fr(t)}function pr(t,e){return pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pr(t,e)}var yr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ur(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&&pr(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i().createElement("div",ar({},this.props,{ref:function(e){t.el=e},className:"collapsible-body "+this.props.className}))}}])&&cr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{yr.displayName="CollapsBody"}catch(t){}yr.defaultProps={className:""};const dr=yr;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 vr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,br(r.key),r)}}function br(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 mr(t,e,n){return e=wr(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,gr()?Reflect.construct(e,n||[],wr(t).constructor):e.apply(t,n))}function gr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(gr=function(){return!!t})()}function wr(t){return wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wr(t)}function Or(t,e){return Or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Or(t,e)}var jr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),mr(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Or(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("li",this.props)}}])&&vr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{jr.displayName="CollapsElement"}catch(t){}const Sr=jr;function Pr(t){return Pr="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},Pr(t)}function Er(){return Er=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},Er.apply(this,arguments)}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,Tr(r.key),r)}}function kr(t,e,n){return e=xr(e),function(t,e){if(e&&("object"===Pr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Lr(t)}(t,Cr()?Reflect.construct(e,n||[],xr(t).constructor):e.apply(t,n))}function Cr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Cr=function(){return!!t})()}function xr(t){return xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xr(t)}function Lr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nr(t,e){return Nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nr(t,e)}function Tr(t){var e=function(t,e){if("object"!=Pr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Pr(e)?e:String(e)}var Br=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=Lr(t=kr(this,e,[].concat(a))),o={isOpen:!1},(r=Tr(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&&Nr(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",Er({},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)}}])&&_r(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Br.displayName="CollapsTrigger"}catch(t){}Br.defaultProps={effectduration:750,className:""};const Dr=Br;function Mr(t){return Mr="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},Mr(t)}function Rr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ar(r.key),r)}}function Ar(t){var e=function(t,e){if("object"!=Mr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Mr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Mr(e)?e:String(e)}function Fr(t,e,n){return e=Vr(e),function(t,e){if(e&&("object"===Mr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ir()?Reflect.construct(e,n||[],Vr(t).constructor):e.apply(t,n))}function Ir(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ir=function(){return!!t})()}function Vr(t){return Vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vr(t)}function Wr(t,e){return Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wr(t,e)}var zr=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Fr(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&&Wr(t,e)}(n,t),r=n,(o=[{key:"render",value:function(){return i().createElement(or,null,i().createElement(Sr,null,i().createElement(Dr,{className:"waves-effect waves-green"},i().createElement(e.Icon,null,this.props.icon),this.props.text||"no text prop"),i().createElement(dr,{style:{paddingLeft:"20px"}},i().createElement("ul",null,this.props.children))))}}])&&Rr(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),n}(i().Component);try{zr.displayName="SideCollapsible"}catch(t){}zr.defaultProps={effectduration:750,className:"",path:""};const Ur=zr;function qr(t){return qr="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},qr(t)}function Hr(){return Hr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Hr.apply(this,arguments)}function Kr(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 Xr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kr(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=$r(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)):Kr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,$r(r.key),r)}}function $r(t){var e=function(t,e){if("object"!=qr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=qr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==qr(e)?e:String(e)}function Gr(t,e,n){return e=Qr(e),function(t,e){if(e&&("object"===qr(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,Yr()?Reflect.construct(e,n||[],Qr(t).constructor):e.apply(t,n))}function Yr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Yr=function(){return!!t})()}function Qr(t){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qr(t)}function Jr(t,e){return Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jr(t,e)}var to=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:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this;return i().createElement("li",Hr({},this.props,{style:Xr({},this.props.style)}),i().createElement(Ye.Link,Hr({},this.props,{className:"waves-effect waves-green"+this.props.className,innerRef:function(e){t.el=e},to:this.props.to}),this.props.children))}}])&&Zr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{to.displayName="SideLink"}catch(t){}to.defaultProps={effectduration:750,className:"",to:"/"};const eo=to;function no(t){return no="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},no(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 oo(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,io(r.key),r)}}function io(t){var e=function(t,e){if("object"!=no(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=no(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==no(e)?e:String(e)}function ao(t,e,n){return e=so(e),function(t,e){if(e&&("object"===no(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,co()?Reflect.construct(e,n||[],so(t).constructor):e.apply(t,n))}function co(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(co=function(){return!!t})()}function so(t){return so=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},so(t)}function uo(t,e){return uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},uo(t,e)}var lo=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=ao(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&&uo(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",ro({ref:this.el},this.props,{className:"waves-effect waves-green "+this.props.className,style:{display:"inherit"}}),i().createElement("a",null,this.props.children))}}])&&oo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{lo.displayName="SidenavEl"}catch(t){}lo.defaultProps={effectduration:750,className:"waves-effect waves-green ",path:"",icon:"home",data:[]};const fo=lo;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 yo(){return yo=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},yo.apply(this,arguments)}function ho(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,vo(r.key),r)}}function vo(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 bo(t,e,n){return e=go(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,mo()?Reflect.construct(e,n||[],go(t).constructor):e.apply(t,n))}function mo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mo=function(){return!!t})()}function go(t){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},go(t)}function wo(t,e){return wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wo(t,e)}var Oo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),bo(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&&wo(t,e)}(e,t),n=e,(r=[{key:"runSearch",value:function(){}},{key:"render",value:function(){return i().createElement("li",yo({},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"})))}}])&&ho(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Oo.displayName="SidenavSearch"}catch(t){}Oo.defaultProps={className:" "};const jo=Oo;function So(t){return So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(t)}function Po(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 Eo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Po(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=ko(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)):Po(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _o(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,ko(r.key),r)}}function ko(t){var e=function(t,e){if("object"!=So(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=So(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==So(e)?e:String(e)}function Co(t,e,n){return e=Lo(e),function(t,e){if(e&&("object"===So(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,xo()?Reflect.construct(e,n||[],Lo(t).constructor):e.apply(t,n))}function xo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xo=function(){return!!t})()}function Lo(t){return Lo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lo(t)}function No(t,e){return No=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},No(t,e)}var To=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Co(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&&No(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:Eo({},this.props.style),className:this.props.className},i().createElement(Ye.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))}}])&&_o(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{To.displayName="IconSideLink"}catch(t){}To.defaultProps={effectduration:750,className:"",to:"/"};const Bo=To;function Do(t){return Do="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},Do(t)}function Mo(){return Mo=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},Mo.apply(this,arguments)}function Ro(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"!=Do(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Do(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Do(e)?e:String(e)}function Fo(t,e,n){return e=Vo(e),function(t,e){if(e&&("object"===Do(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,Io()?Reflect.construct(e,n||[],Vo(t).constructor):e.apply(t,n))}function Io(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Io=function(){return!!t})()}function Vo(t){return Vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vo(t)}function Wo(t,e){return Wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wo(t,e)}var zo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Fo(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&&Wo(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Mo({},this.props,{className:"card "+this.props.className}))}}])&&Ro(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{zo.displayName="Card"}catch(t){}zo.defaultProps={className:""};const Uo=zo;function qo(t){return qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(t)}function 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 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,Xo(r.key),r)}}function Xo(t){var e=function(t,e){if("object"!=qo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==qo(e)?e:String(e)}function Zo(t,e,n){return e=Go(e),function(t,e){if(e&&("object"===qo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$o()?Reflect.construct(e,n||[],Go(t).constructor):e.apply(t,n))}function $o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($o=function(){return!!t})()}function Go(t){return Go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Go(t)}function Yo(t,e){return Yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Yo(t,e)}var Qo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Zo(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&&Yo(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Ho({},this.props,{className:"card-action "+this.props.className}))}}])&&Ko(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Qo.displayName="CardAction"}catch(t){}Qo.defaultProps={className:""};const Jo=Qo;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 ei(){return ei=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},ei.apply(this,arguments)}function ni(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ri(r.key),r)}}function ri(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 oi(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,ii()?Reflect.construct(e,n||[],ai(t).constructor):e.apply(t,n))}function ii(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ii=function(){return!!t})()}function ai(t){return ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ai(t)}function ci(t,e){return ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ci(t,e)}var si=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),oi(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&&ci(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",ei({},this.props,{className:"card-content "+this.props.className}))}}])&&ni(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{si.displayName="CardContent"}catch(t){}si.defaultProps={className:""};const ui=si;function li(t){return li="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},li(t)}function fi(){return fi=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},fi.apply(this,arguments)}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,yi(r.key),r)}}function yi(t){var e=function(t,e){if("object"!=li(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=li(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==li(e)?e:String(e)}function di(t,e,n){return e=vi(e),function(t,e){if(e&&("object"===li(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,hi()?Reflect.construct(e,n||[],vi(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 vi(t){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vi(t)}function bi(t,e){return bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bi(t,e)}var mi=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),di(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&&bi(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("span",fi({},this.props,{className:"card-title "+(this.props.className||"")}))}}])&&pi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{mi.displayName="CardTitle"}catch(t){}mi.defaultProps={className:""};const gi=mi;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 Oi(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 ji(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oi(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=Pi(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)):Oi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Si(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,Pi(r.key),r)}}function Pi(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)}function Ei(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 function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_i()?Reflect.construct(e,n||[],ki(t).constructor):e.apply(t,n))}function _i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_i=function(){return!!t})()}function ki(t){return ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ki(t)}function Ci(t,e){return Ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ci(t,e)}var xi=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ei(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&&Ci(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",{style:ji({},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)}}])&&Si(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{xi.displayName="CardImage"}catch(t){}xi.defaultProps={className:""};const Li=xi;function Ni(t){return Ni="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},Ni(t)}function Ti(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Bi(r.key),r)}}function Bi(t){var e=function(t,e){if("object"!=Ni(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ni(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ni(e)?e:String(e)}function Di(t,e,n){return e=Ri(e),function(t,e){if(e&&("object"===Ni(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,Mi()?Reflect.construct(e,n||[],Ri(t).constructor):e.apply(t,n))}function Mi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Mi=function(){return!!t})()}function Ri(t){return Ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ri(t)}function Ai(t,e){return Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ai(t,e)}var Fi=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Di(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&&Ai(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")))}}])&&Ti(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Fi.displayName="Cube"}catch(t){}Fi.defaultProps={className:""};const Ii=Fi;function Vi(t){return Vi="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},Vi(t)}function Wi(){return Wi=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},Wi.apply(this,arguments)}function zi(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,Zi(r.key),r)}}function Ui(t,e,n){return e=Hi(e),function(t,e){if(e&&("object"===Vi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ki(t)}(t,qi()?Reflect.construct(e,n||[],Hi(t).constructor):e.apply(t,n))}function qi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qi=function(){return!!t})()}function Hi(t){return Hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hi(t)}function Ki(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xi(t,e){return Xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xi(t,e)}function Zi(t){var e=function(t,e){if("object"!=Vi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Vi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Vi(e)?e:String(e)}var $i=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=Ki(n=Ui(this,e,[t])),i={visible:!1},(o=Zi(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&&Xi(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",Wi({ref:function(e){t.el=e}},this.props,{className:"modal-overlay "+this.props.className})):null}}])&&zi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{$i.displayName="Overlay"}catch(t){}$i.defaultProps={className:""};const Gi=$i;function Yi(t){return Yi="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},Yi(t)}function Qi(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,Ji(r.key),r)}}function Ji(t){var e=function(t,e){if("object"!=Yi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Yi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Yi(e)?e:String(e)}function ta(t,e,n){return e=na(e),function(t,e){if(e&&("object"===Yi(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,ea()?Reflect.construct(e,n||[],na(t).constructor):e.apply(t,n))}function ea(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ea=function(){return!!t})()}function na(t){return na=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},na(t)}function ra(t,e){return ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ra(t,e)}function oa(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")}var ia=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ta(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&&ra(t,e)}(e,t),n=e,(r=[{key:"getAddBtn",value:function(){if(this.props.addRedirectTo)return i().createElement(Ye.Link,{to:this.props.addRedirectTo,"data-cy":"clt-addBtn",style:{display:"inline-flex",justifyContent:"center",alignItems:"center"},className:oa(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))}}])&&Qi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(o.Component);try{ia.displayName="InnerPage"}catch(t){}const aa=ia;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 sa(){return sa=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},sa.apply(this,arguments)}function ua(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 fa(t,e,n){return e=ya(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,pa()?Reflect.construct(e,n||[],ya(t).constructor):e.apply(t,n))}function pa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pa=function(){return!!t})()}function ya(t){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ya(t)}function da(t,e){return da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},da(t,e)}var ha=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),fa(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&&da(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",sa({},this.props,{className:"row "+this.props.className}))}}])&&ua(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ha.displayName="Row"}catch(t){}ha.defaultProps={className:""};const va=ha;function ba(t){return ba="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},ba(t)}function ma(){return ma=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},ma.apply(this,arguments)}function ga(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,wa(r.key),r)}}function wa(t){var e=function(t,e){if("object"!=ba(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ba(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ba(e)?e:String(e)}function Oa(t,e,n){return e=Sa(e),function(t,e){if(e&&("object"===ba(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,ja()?Reflect.construct(e,n||[],Sa(t).constructor):e.apply(t,n))}function ja(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ja=function(){return!!t})()}function Sa(t){return Sa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sa(t)}function Pa(t,e){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pa(t,e)}var Ea=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Oa(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&&Pa(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i().createElement("div",ma({},this.props,{ref:function(e){return t.el=e},className:"col "+this.props.className}))}}])&&ga(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ea.displayName="Col"}catch(t){}Ea.defaultProps={className:""};const _a=Ea;function ka(t){return ka="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},ka(t)}function Ca(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xa(r.key),r)}}function xa(t){var e=function(t,e){if("object"!=ka(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ka(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ka(e)?e:String(e)}function La(t,e,n){return e=Ta(e),function(t,e){if(e&&("object"===ka(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||[],Ta(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 Ta(t){return Ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ta(t)}function Ba(t,e){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ba(t,e)}var Da=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=La(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&&Ba(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()))}}])&&Ca(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Da.displayName="Tabs"}catch(t){}Da.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 Ma=Da;function Ra(t){return Ra="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},Ra(t)}function Aa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Fa(r.key),r)}}function Fa(t){var e=function(t,e){if("object"!=Ra(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ra(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ra(e)?e:String(e)}const Ia=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&&Aa(e.prototype,null),n&&Aa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Va(t){return Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(t)}function 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,za(r.key),r)}}function za(t){var e=function(t,e){if("object"!=Va(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Va(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Va(e)?e:String(e)}const Ua=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)}}])&&Wa(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function qa(t){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qa(t)}function Ha(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,Ya(r.key),r)}}function Ka(t,e,n){return e=Za(e),function(t,e){if(e&&("object"===qa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return $a(t)}(t,Xa()?Reflect.construct(e,n||[],Za(t).constructor):e.apply(t,n))}function Xa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xa=function(){return!!t})()}function Za(t){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Za(t)}function $a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ga(t,e){return Ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ga(t,e)}function Ya(t){var e=function(t,e){if("object"!=qa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==qa(e)?e:String(e)}var Qa=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=$a(t=Ka(this,e,[].concat(a))),o={selected:""},(r=Ya(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&&Ga(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)})))}}])&&Ha(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Qa.displayName="RadioIcons"}catch(t){}const Ja=Qa;function tc(t){return tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(t)}function ec(){return ec=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},ec.apply(this,arguments)}function nc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rc(r.key),r)}}function rc(t){var e=function(t,e){if("object"!=tc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=tc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==tc(e)?e:String(e)}function oc(t,e,n){return e=ac(e),function(t,e){if(e&&("object"===tc(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||[],ac(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 ac(t){return ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ac(t)}function cc(t,e){return cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cc(t,e)}var sc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),oc(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&&cc(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",ec({},this.props,{className:"collection "+this.props.className}))}}])&&nc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{sc.displayName="Collection"}catch(t){}sc.defaultProps={className:""};const uc=sc;function lc(t){return lc="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},lc(t)}function fc(){return fc=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},fc.apply(this,arguments)}function pc(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,yc(r.key),r)}}function yc(t){var e=function(t,e){if("object"!=lc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==lc(e)?e:String(e)}function dc(t,e,n){return e=vc(e),function(t,e){if(e&&("object"===lc(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,hc()?Reflect.construct(e,n||[],vc(t).constructor):e.apply(t,n))}function hc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hc=function(){return!!t})()}function vc(t){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vc(t)}function bc(t,e){return bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bc(t,e)}var mc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),dc(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&&bc(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",fc({},this.props,{className:"collection-item "+this.props.className}))}}])&&pc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{mc.displayName="CollectionItem"}catch(t){}mc.defaultProps={className:""};const gc=mc;var wc=n(893);function Oc(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 jc(t,e,n){return e=Pc(e),function(t,e){if(e&&("object"===_c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Sc()?Reflect.construct(e,n||[],Pc(t).constructor):e.apply(t,n))}function Sc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Sc=function(){return!!t})()}function Pc(t){return Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pc(t)}function Ec(t,e){return Ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ec(t,e)}function _c(t){return _c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_c(t)}function kc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Lc(r.key),r)}}function xc(t,e,n){return e&&Cc(t.prototype,e),n&&Cc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Lc(t){var e=function(t,e){if("object"!=_c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=_c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_c(e)?e:String(e)}var Nc=function(){function t(e,n,r,o){if(kc(this,t),isNaN(e)||isNaN(n))throw new Error("Point is invalid: (".concat(e,", ").concat(n,")"));this.x=+e,this.y=+n,this.pressure=r||0,this.time=o||Date.now()}return xc(t,[{key:"distanceTo",value:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}},{key:"equals",value:function(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}},{key:"velocityFrom",value:function(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}]),t}(),Tc=function(){function t(e,n,r,o,i,a){kc(this,t),this.startPoint=e,this.control2=n,this.control1=r,this.endPoint=o,this.startWidth=i,this.endWidth=a}return xc(t,[{key:"length",value:function(){for(var t,e,n=0,r=0;r<=10;r+=1){var o=r/10,i=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),a=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(r>0){var c=i-t,s=a-e;n+=Math.sqrt(c*c+s*s)}t=i,e=a}return n}},{key:"point",value:function(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t}}],[{key:"fromPoints",value:function(e,n){var r=this.calculateControlPoints(e[0],e[1],e[2]).c2,o=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new t(e[1],r,o,e[2],n.start,n.end)}},{key:"calculateControlPoints",value:function(t,e,n){var r=t.x-e.x,o=t.y-e.y,i=e.x-n.x,a=e.y-n.y,c=(t.x+e.x)/2,s=(t.y+e.y)/2,u=(e.x+n.x)/2,l=(e.y+n.y)/2,f=Math.sqrt(r*r+o*o),p=Math.sqrt(i*i+a*a),y=p/(f+p),d=u+(c-u)*y,h=l+(s-l)*y,v=e.x-d,b=e.y-h;return{c1:new Nc(c+v,s+b),c2:new Nc(u+v,l+b)}}}]),t}(),Bc=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return kc(this,e),(n=jc(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&&Ec(t,e)}(e,t),xc(e,[{key:"clear",value:function(){var t=this._ctx,e=this.canvas;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}},{key:"fromDataURL",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r,o){var i=new Image,a=n.ratio||window.devicePixelRatio||1,c=n.width||e.canvas.width/a,s=n.height||e.canvas.height/a,u=n.xOffset||0,l=n.yOffset||0;e._reset(e._getPointGroupOptions()),i.onload=function(){e._ctx.drawImage(i,u,l,c,s),r()},i.onerror=function(t){o(t)},i.crossOrigin="anonymous",i.src=t,e._isEmpty=!1}))}},{key:"toDataURL",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image/png",e=arguments.length>1?arguments[1]:void 0;return"image/svg+xml"===t?("object"!==_c(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 Nc(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=Tc.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 Oc(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)?Oc(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 Nc(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(){kc(this,t);try{this._et=new EventTarget}catch(t){this._et=document}}return xc(t,[{key:"addEventListener",value:function(t,e,n){this._et.addEventListener(t,e,n)}},{key:"dispatchEvent",value:function(t){return this._et.dispatchEvent(t)}},{key:"removeEventListener",value:function(t,e,n){this._et.removeEventListener(t,e,n)}}]),t}());function Dc(t){return Dc="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},Dc(t)}function Mc(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,Rc(r.key),r)}}function Rc(t){var e=function(t,e){if("object"!=Dc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Dc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Dc(e)?e:String(e)}function Ac(t,e,n){return e=Ic(e),function(t,e){if(e&&("object"===Dc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Fc()?Reflect.construct(e,n||[],Ic(t).constructor):e.apply(t,n))}function Fc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fc=function(){return!!t})()}function Ic(t){return Ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ic(t)}function Vc(t,e){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vc(t,e)}var Wc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ac(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&&Vc(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.sigPad=new Bc(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(Ge,{className:"red",onClick:this.clear.bind(this)},"close"),i().createElement(Ge,{className:"green",onClick:this.save.bind(this)},"save")))}}])&&Mc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Wc.displayName="Signature_Cmp"}catch(t){}const zc=Wc;function Uc(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 qc={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Hc={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Kc=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Xc={CSS:{},springs:{}};function Zc(t,e,n){return Math.min(Math.max(t,e),n)}function $c(t,e){return t.indexOf(e)>-1}function Gc(t,e){return t.apply(null,e)}var Yc={arr:function(t){return Array.isArray(t)},obj:function(t){return $c(Object.prototype.toString.call(t),"Object")},pth:function(t){return Yc.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||Yc.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 Yc.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 Yc.hex(t)||Yc.rgb(t)||Yc.hsl(t)},key:function(t){return!qc.hasOwnProperty(t)&&!Hc.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function Qc(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function Jc(t,e){var n=Qc(t),r=Zc(Yc.und(n[0])?1:n[0],.1,100),o=Zc(Yc.und(n[1])?100:n[1],.1,100),i=Zc(Yc.und(n[2])?10:n[2],.1,100),a=Zc(Yc.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=Xc.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 Xc.springs[t]=i,i}}function ts(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return function(e){return Math.ceil(Zc(e,1e-6,1)*t)*(1/t)}}var es,ns,rs=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)}}}}(),os=(es={linear:function(){return function(t){return t}}},ns={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=Zc(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,1,10),n=Zc(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){ns[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(ns).forEach((function(t){var e=ns[t];es["easeIn"+t]=e,es["easeOut"+t]=function(t,n){return function(r){return 1-e(t,n)(1-r)}},es["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}},es["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}}})),es);function is(t,e){if(Yc.fnc(t))return t;var n=t.split("(")[0],r=os[n],o=Qc(t);switch(n){case"spring":return Jc(t,e);case"cubicBezier":return Gc(rs,o);case"steps":return Gc(ts,o);default:return Gc(r,o)}}function as(t){try{return document.querySelectorAll(t)}catch(t){return}}function cs(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 ss(t){return t.reduce((function(t,e){return t.concat(Yc.arr(e)?ss(e):e)}),[])}function us(t){return Yc.arr(t)?t:(Yc.str(t)&&(t=as(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function ls(t,e){return t.some((function(t){return t===e}))}function fs(t){var e={};for(var n in t)e[n]=t[n];return e}function ps(t,e){var n=fs(t);for(var r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function ys(t,e){var n=fs(t);for(var r in e)n[r]=Yc.und(t[r])?e[r]:t[r];return n}function ds(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 hs(t,e){return Yc.fnc(t)?t(e.target,e.id,e.total):t}function vs(t,e){return t.getAttribute(e)}function bs(t,e,n){if(ls([n,"deg","rad","turn"],ds(e)))return e;var r=Xc.CSS[e+n];if(!Yc.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 Xc.CSS[e+n]=c,c}function ms(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?bs(t,o,n):o}}function gs(t,e){return Yc.dom(t)&&!Yc.inp(t)&&(!Yc.nil(vs(t,e))||Yc.svg(t)&&t[e])?"attribute":Yc.dom(t)&&ls(Kc,e)?"transform":Yc.dom(t)&&"transform"!==e&&ms(t,e)?"css":null!=t[e]?"object":void 0}function ws(t){if(Yc.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 Os(t,e,n,r){switch(gs(t,e)){case"transform":return function(t,e,n,r){var o=$c(e,"scale")?1:0+function(t){return $c(t,"translate")||"perspective"===t?"px":$c(t,"rotate")||$c(t,"skew")?"deg":void 0}(e),i=ws(t).get(e)||o;return n&&(n.transforms.list.set(e,i),n.transforms.last=e),r?bs(t,i,r):i}(t,e,r,n);case"css":return ms(t,e,n);case"attribute":return vs(t,e);default:return t[e]||0}}function js(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=ds(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 Ss(t,e){if(Yc.col(t))return function(t){return Yc.rgb(t)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=t))?"rgba(".concat(n[1],",1)"):e:Yc.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):Yc.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=ds(t),r=n?t.substr(0,t.length-n.length):t;return e?r+e:r}function Ps(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Es(t){for(var e,n=t.points,r=0,o=0;o<n.numberOfItems;o++){var i=n.getItem(o);o>0&&(r+=Ps(e,i)),e=i}return r}function _s(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*vs(t,"r")}(t);case"rect":return function(t){return 2*vs(t,"width")+2*vs(t,"height")}(t);case"line":return function(t){return Ps({x:vs(t,"x1"),y:vs(t,"y1")},{x:vs(t,"x2"),y:vs(t,"y2")})}(t);case"polyline":return Es(t);case"polygon":return function(t){var e=t.points;return Es(t)+Ps(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function ks(t,e){var n=e||{},r=n.el||function(t){for(var e=t.parentNode;Yc.svg(e)&&Yc.svg(e.parentNode);)e=e.parentNode;return e}(t),o=r.getBoundingClientRect(),i=vs(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 Cs(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=ks(t.el,t.svg),i=r(),a=r(-1),c=r(1),s=n?1:o.w/o.vW,u=n?1:o.h/o.vH;switch(t.property){case"x":return(i.x-o.x)*s;case"y":return(i.y-o.y)*u;case"angle":return 180*Math.atan2(c.y-a.y,c.x-a.x)/Math.PI}}function xs(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=Ss(Yc.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:Yc.str(t)||e?r.split(n):[]}}function Ls(t){return cs(t?ss(Yc.arr(t)?t.map(us):us(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function Ns(t){var e=Ls(t);return e.map((function(t,n){return{target:t,id:n,total:e.length,transforms:{list:ws(t)}}}))}function Ts(t,e){var n=fs(e);if(/^spring/.test(n.easing)&&(n.duration=Jc(n.easing)),Yc.arr(t)){var r=t.length;2!==r||Yc.obj(t[0])?Yc.fnc(e.duration)||(n.duration=e.duration/r):t={value:t}}var o=Yc.arr(t)?t:[t];return o.map((function(t,n){var r=Yc.obj(t)&&!Yc.pth(t)?t:{value:t};return Yc.und(r.delay)&&(r.delay=n?0:e.delay),Yc.und(r.endDelay)&&(r.endDelay=n===o.length-1?e.endDelay:0),r})).map((function(t){return ys(t,n)}))}var Bs={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 Ds(t,e){Ns(t).forEach((function(t){for(var n in e){var r=hs(e[n],t),o=t.target,i=ds(r),a=Os(o,n,i,t),c=js(Ss(r,i||ds(a)),a),s=gs(o,n);Bs[s](o,n,c,t.transforms,!0)}}))}function Ms(t,e){return cs(ss(t.map((function(t){return e.map((function(e){return function(t,e){var n=gs(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=hs(t[r],e);Yc.arr(o)&&1===(o=o.map((function(t){return hs(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=Yc.arr(i)?i[1]:i,c=ds(a),s=Os(e.target,t.name,c,e),u=n?n.to.original:s,l=Yc.arr(i)?i[0]:u,f=ds(l)||ds(s),p=c||f;return Yc.und(a)&&(a=u),o.from=xs(l,p),o.to=xs(js(a,l),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=is(o.easing,o.duration),o.isPath=Yc.pth(i),o.isPathTargetInsideSVG=o.isPath&&Yc.svg(e.target),o.isColor=Yc.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!Yc.und(t)}))}function Rs(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 As=0,Fs=[],Is=function(){var t;function e(n){for(var r=Fs.length,o=0;o<r;){var i=Fs[o];i.paused?(Fs.splice(o,1),r--):(i.tick(n),o++)}t=o>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Ws.suspendWhenDocumentHidden&&(Vs()?t=cancelAnimationFrame(t):(Fs.forEach((function(t){return t._onDocumentVisibility()})),Is()))})),function(){t||Vs()&&Ws.suspendWhenDocumentHidden||!(Fs.length>0)||(t=requestAnimationFrame(e))}}();function Vs(){return!!document&&document.hidden}function Ws(){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=ps(qc,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),u=ps(Hc,c),l=function(t,e){var n=[],r=e.keyframes;for(var o in r&&(e=ys(function(t){for(var e=cs(ss(t.map((function(t){return Object.keys(t)}))),(function(t){return Yc.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)Yc.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)Yc.key(o)&&n.push({name:o,tweens:Ts(e[o],t)});return n}(u,c),f=Ns(c.targets),p=Ms(f,l),y=Rs(p,u),d=As,As++,ys(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/Ws.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=cs(a,(function(e){return t<e.end}))[0]||s);for(var u=Zc(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?Cs(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];Bs[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=Zc(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=Zc(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 Ds(t,e),h},h.tick=function(t){r=t,e||(e=r),j((r+(n-e))*Ws.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,Fs.push(h),m(),Is())},h.reverse=function(){v(),h.completed=!h.reversed,m()},h.restart=function(){h.reset(),h.play()},h.remove=function(t){Us(Ls(t),h)},h.reset(),h.autoplay&&h.play(),h}function zs(t,e){for(var n=e.length;n--;)ls(t,e[n].animatable.target)&&e.splice(n,1)}function Us(t,e){var n=e.animations,r=e.children;zs(t,n);for(var o=r.length;o--;){var i=r[o],a=i.animations;zs(t,a),a.length||i.children.length||r.splice(o,1)}n.length||r.length||e.pause()}Ws.version="3.2.2",Ws.speed=1,Ws.suspendWhenDocumentHidden=!0,Ws.running=Fs,Ws.remove=function(t){for(var e=Ls(t),n=Fs.length;n--;)Us(e,Fs[n])},Ws.get=Os,Ws.set=Ds,Ws.convertPx=bs,Ws.path=function(t,e){var n=Yc.str(t)?as(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:ks(n),totalLength:_s(n)*(r/100)}}},Ws.setDashoffset=function(t){var e=_s(t);return t.setAttribute("stroke-dasharray",e),e},Ws.stagger=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.direction||"normal",r=e.easing?is(e.easing):null,o=e.grid,i=e.axis,a=e.from||0,c="first"===a,s="center"===a,u="last"===a,l=Yc.arr(t),f=l?parseFloat(t[0]):parseFloat(t),p=l?parseFloat(t[1]):0,y=ds(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 Uc(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 Uc(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)?Uc(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}},Ws.timeline=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Ws(t);return e.duration=0,e.add=function(n,r){var o=Fs.indexOf(e),i=e.children;function a(t){t.passThrough=!0}o>-1&&Fs.splice(o,1);for(var c=0;c<i.length;c++)a(i[c]);var s=ys(n,ps(Hc,t));s.targets=s.targets||t.targets;var u=e.duration;s.autoplay=!1,s.direction=e.direction,s.timelineOffset=Yc.und(r)?u:js(r,u),a(e),e.seek(s.timelineOffset);var l=Ws(s);a(l),i.push(l);var f=Rs(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},Ws.easing=is,Ws.penner=os,Ws.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t};const qs=Ws;function Hs(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,Ks(r.key),r)}}function Ks(t){var e=function(t,e){if("object"!=Xs(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Xs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Xs(e)?e:String(e)}function Xs(t){return Xs="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},Xs(t)}var Zs=["valueOf","toLocaleString","toString","constructor"],$s=function t(e,n,r){var o,i,a;if(e&&(r&&t(e,r),n&&"object"===Xs(n))){for(o in n)e[o]=n[o];if(Zs)for(i=Zs.length;i--;)a=Zs[i],n.hasOwnProperty(a)&&(e[a]=n[a])}return e},Gs={html:"",displayLength:3e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},Ys=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=$s({},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 Gs}},{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":Xs(HTMLElement))?this.message instanceof HTMLElement:this.message&&"object"===Xs(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(){qs({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),qs({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()}})}}])&&Hs(e.prototype,n),r&&Hs(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();Ys._toasts=[],Ys._container=null,Ys._draggedToast=null;const Qs=Ys;function Js(t){return Js="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},Js(t)}function tu(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,eu(r.key),r)}}function eu(t){var e=function(t,e){if("object"!=Js(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Js(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Js(e)?e:String(e)}var nu=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 Qs({html:t,classes:"blue lighten-1"})}},{key:"error",value:function(t){return new Qs({html:t,classes:"red lighten-1"})}},{key:"success",value:function(t){return new Qs({html:t,classes:"green lighten-1"})}}])&&tu(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const ru=new nu})(),r})()));
|