index.js 208 KB

12
  1. /*! For license information please see index.js.LICENSE.txt */
  2. !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["factit-lib"]=e():t["factit-lib"]=e()}(this,(()=>(()=>{"use strict";var t={893:(t,e,n)=>{n.d(e,{Z:()=>i}),t=n.hmd(t);var r=r||function(t){if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var e=t.document,n=function(){return t.URL||t.webkitURL||t},r=e.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in r,i=t.webkitRequestFileSystem,a=t.requestFileSystem||i||t.mozRequestFileSystem,c=function(e){(t.setImmediate||t.setTimeout)((function(){throw e}),0)},s="application/octet-stream",u=0,l=function(e){var r=function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()};t.chrome?r():setTimeout(r,500)},f=function(t,e,n){for(var r=(e=[].concat(e)).length;r--;){var o=t["on"+e[r]];if("function"==typeof o)try{o.call(t,n||t)}catch(t){c(t)}}},p=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t},y=function(c,y){c=p(c);var d,h,v,b,m,g=this,w=c.type,O=!1,j=function(){f(g,"writestart progress write writeend".split(" "))},S=function(){!O&&d||(d=n().createObjectURL(c)),h?h.location.href=d:null==t.open(d,"_blank")&&"undefined"!=typeof safari&&(t.location.href=d),g.readyState=g.DONE,j(),l(d)},P=function(t){return function(){if(g.readyState!==g.DONE)return t.apply(this,arguments)}},E={create:!0,exclusive:!1};if(g.readyState=g.INIT,y||(y="download"),o)return d=n().createObjectURL(c),r.href=d,r.download=y,b=r,(m=e.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),b.dispatchEvent(m),g.readyState=g.DONE,j(),void l(d);t.chrome&&w&&w!==s&&(v=c.slice||c.webkitSlice,c=v.call(c,0,c.size,s),O=!0),i&&"download"!==y&&(y+=".download"),(w===s||i)&&(h=t),a?(u+=c.size,a(t.TEMPORARY,u,P((function(t){t.root.getDirectory("saved",E,P((function(t){var e=function(){t.getFile(y,E,P((function(t){t.createWriter(P((function(e){e.onwriteend=function(e){h.location.href=t.toURL(),g.readyState=g.DONE,f(g,"writeend",e),l(t)},e.onerror=function(){var t=e.error;t.code!==t.ABORT_ERR&&S()},"writestart progress write abort".split(" ").forEach((function(t){e["on"+t]=g["on"+t]})),e.write(c),g.abort=function(){e.abort(),g.readyState=g.DONE},g.readyState=g.WRITING})),S)})),S)};t.getFile(y,{create:!1},P((function(t){t.remove(),e()})),P((function(t){t.code===t.NOT_FOUND_ERR?e():S()})))})),S)})),S)):S()},d=y.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e){return navigator.msSaveOrOpenBlob(p(t),e)}:(d.abort=function(){var t=this;t.readyState=t.DONE,f(t,"abort")},d.readyState=d.INIT=0,d.WRITING=1,d.DONE=2,d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.onwriteend=null,function(t,e){return new y(t,e)})}alert("Veuillez Utiliser un autre navigateur, L'application Factit n'est supporte par le navigateur ie")}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||(void 0).content),o=o||void 0;t.exports?t.exports.saveAs=r:null!=o&&null!=o.amd&&o([],(function(){return r}));const i=r}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{Btn:()=>Ce,Button:()=>Ae,Card:()=>To,CardAction:()=>Wo,CardContent:()=>Yo,CardImage:()=>mi,CardTitle:()=>ci,Col:()=>da,CollapsBody:()=>nr,CollapsElement:()=>fr,CollapsTrigger:()=>jr,Collapsible:()=>Hn,Collection:()=>Ya,CollectionItem:()=>cc,Cube:()=>ki,DateField:()=>oe,EmailField:()=>z,Field:()=>R,FieldTrigger:()=>it,Flash:()=>Ta,FlashMessage:()=>Ks,Form:()=>h,FormActions:()=>Ge,IconSideLink:()=>Oo,Icons:()=>t.default,InnerPage:()=>Zi,Loader:()=>ka,Logo:()=>cn,Overlay:()=>Ai,PasswordField:()=>dt,PhoneField:()=>Dt,PostCodeField:()=>Pt,RadioIcons:()=>Wa,Row:()=>oa,SideCollapsible:()=>Tr,SideLink:()=>qr,SideMenu:()=>kn,SideMenuItem:()=>Mn,SideNav:()=>bn,SidenavEl:()=>Jr,SidenavSearch:()=>uo,Signature_Cmp:()=>Nc,StokeBtn:()=>me,Tabs:()=>Sa,TextArea:()=>Kt,Toast:()=>Vs,Waves:()=>se,saveAs:()=>sc.Z});var t={};n.r(t),n.d(t,{dt:()=>G,vX:()=>X,yf:()=>H,N:()=>Z});var e={};n.r(e),n.d(e,{P:()=>t.default});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 N(t,e,n){return e=L(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,T()?Reflect.construct(e,n||[],L(t).constructor):e.apply(t,n))}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(T=function(){return!!t})()}function L(t){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(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=N(this,e)).id=t.uuidv4(),t.state={labelClassName:"",focusCount:0,errmsg:""},t}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&B(t,e)}(e,t),n=e,r=[{key:"getDefaults",value:function(){return{placeholder:"",id:Date.now(),className:"validate",label:"Text",type:"text",icon:"account_circle"}}},{key:"getValue",value:function(){return this.el.value}},{key:"setValue",value:function(t){this.el.current.value=t,""!==t&&this.label.classList.add("active")}},{key:"isValid",value:function(){return this.validate(!0)}},{key:"onBlur",value:function(t){t.stopPropagation(),t.preventDefault(),""!==this.props.placeholder||this.el&&""!==this.el.value?this.label.classList.contains("active")||this.label.classList.add("active"):this.label.classList.remove("active"),this.props.onBlur&&"function"==typeof this.props.onBlur&&this.props.onBlur(),this.validate(!0),this.setState({focusCount:this.state.focusCount+1})}},{key:"onFocus",value:function(){this.label.classList.contains("active")||this.label.classList.add("active"),this.props.onFocus&&"function"==typeof this.props.onFocus&&this.props.onFocus()}},{key:"validate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t&&this.setState({focusCount:this.state.focusCount+1}),this.state.focusCount>0||t){var e=this.props,n=e.min,r=e.max,o=e.required,i=e.vtype,a=e.vtypeMsg;if(""!==this.el.value){var c=this.el.value.length;return n&&r&&(c<n||c>r)?(this.setState({errmsg:n!=r?"la longueur doit être comprise entre ".concat(n," et ").concat(r," caractères."):"doit avoir une longueur de ".concat(n," caractères")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):!n&&r&&c>r?(this.setState({errmsg:"doit avoir une longueur maximale de ".concat(r," caractères.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):n&&!r&&c<n?(this.setState({errmsg:"doit avoir une longueur minimale de ".concat(n," caractères.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):i&&!_()[i].test(this.el.value)?(this.setState({errmsg:a||"Doit être un ".concat(i," valide.")}),this.el.classList.remove("valid"),this.el.classList.add("invalid"),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),this.el.classList.add("valid"),!0)}return o?(this.setState({errmsg:"Ne peut pas être vide."}),this.invalidate(),!1):(this.setState({errmsg:""}),this.el.classList.remove("invalid"),!0)}}},{key:"invalidate",value:function(){this.el.classList.remove("valid"),this.el.classList.add("invalid")}},{key:"setUnvalid",value:function(t){t&&this.setState({errmsg:t}),this.invalidate()}},{key:"setValid",value:function(){this.el.classList.add("valid"),this.el.classList.remove("invalid")}},{key:"componentDidMount",value:function(){(""!==this.props.placeholder||this.el&&""!==this.el.value)&&(this.label.classList.add("active"),this.setState({labelClassName:"active"}))}},{key:"onKeyUp",value:function(t){"Enter"===t.key&&this.props.enteraction&&this.props.enteraction(t,this),this.validate()}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(t){return(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16)}))}},{key:"getErrorView",value:function(){if(null!=this.state.errmsg&&""!==this.state.errmsg)return i().createElement("div",{className:"helper-text"},this.state.errmsg)}},{key:"render",value:function(){var t=this;return i().createElement("div",{className:"input-field"},i().createElement("label",{ref:function(e){return t.label=e},htmlFor:this.id,className:this.state.labelClassName},this.props.label+(!0===this.props.required?" *":"")),i().createElement("input",{ref:function(e){t.el=e},"data-role":this.props["data-role"],value:this.props.value||"",placeholder:this.props.placeholder,onChange:this.props.onChange||function(){},onFocus:function(e){return t.onFocus.bind(t)(e)},type:this.props.type||"text",disabled:this.props.disabled||!1,autoFocus:this.props.autoFocus||!1,"data-cy":this.props["data-cy"],onBlur:function(e){return t.onBlur.bind(t)(e)},onKeyUp:this.onKeyUp.bind(this),id:this.id,className:"validate "+this.props.className}),this.getErrorView())}}],r&&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 R=D;function M(t){return M="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},M(t)}function F(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,A(r.key),r)}}function A(t){var e=function(t,e){if("object"!=M(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==M(e)?e:String(e)}function I(t,e,n){return e=W(e),function(t,e){if(e&&("object"===M(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 U(t,e){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},U(t,e)}var q=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&&U(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())}}])&&F(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(R);try{q.displayName="EmailField"}catch(t){}q.defaultProps={type:"email",enterkey:function(){},icon:"at",className:"",placeholder:"",label:""};const z=q;function K(){return K=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},K.apply(this,arguments)}function H(){return i().createElement("svg",K({},props,{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:"M4.5 15.75l7.5-7.5 7.5 7.5"}))}try{H.displayName="CheveronUp"}catch(t){}function X(){return i().createElement("svg",K({},props,{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:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))}try{X.displayName="CheveronDown"}catch(t){}function Z(t){return i().createElement("svg",K({},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{Z.displayName="SaveIcon"}catch(t){}function G(t){return i().createElement("svg",K({},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{G.displayName="AddIcon"}catch(t){}function Y(t){return Y="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},Y(t)}function Q(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,J(r.key),r)}}function J(t){var e=function(t,e){if("object"!=Y(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Y(e)?e:String(e)}function tt(t,e,n){return e=nt(e),function(t,e){if(e&&("object"===Y(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,et()?Reflect.construct(e,n||[],nt(t).constructor):e.apply(t,n))}function et(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(et=function(){return!!t})()}function nt(t){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nt(t)}function rt(t,e){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rt(t,e)}var ot=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=tt(this,e)).id=t.uuidv4(),t.state={labelClassName:"",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&&rt(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(G,{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&&Q(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(P);try{ot.displayName="FieldTrigger"}catch(t){}ot.defaultProps={trigger:!0,type:"text",className:"",placeholder:"",label:""};const it=ot;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 ct(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,st(r.key),r)}}function st(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 ut(t,e,n){return e=ft(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,lt()?Reflect.construct(e,n||[],ft(t).constructor):e.apply(t,n))}function lt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lt=function(){return!!t})()}function ft(t){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ft(t)}function pt(t,e){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pt(t,e)}var yt=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=ut(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())}}])&&ct(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(R);try{yt.displayName="PasswordFIeld"}catch(t){}yt.defaultProps={type:"password",icon:"dialpad",enterkey:function(){},className:"",placeholder:"",label:""};const dt=yt;function ht(t){return ht="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},ht(t)}function vt(){return vt=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},vt.apply(this,arguments)}function bt(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,mt(r.key),r)}}function mt(t){var e=function(t,e){if("object"!=ht(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ht(e)?e:String(e)}function gt(t,e,n){return e=Ot(e),function(t,e){if(e&&("object"===ht(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,wt()?Reflect.construct(e,n||[],Ot(t).constructor):e.apply(t,n))}function wt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wt=function(){return!!t})()}function Ot(t){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ot(t)}function jt(t,e){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jt(t,e)}var St=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=gt(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&&jt(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",vt({},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())}}])&&bt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(R);try{St.displayName="PostCodeField"}catch(t){}St.defaultProps={type:"postcode",icon:"dialpad",className:"",placeholder:"",label:""};const Pt=St;function Et(t){return Et="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},Et(t)}function _t(){return _t=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},_t.apply(this,arguments)}function kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ct(r.key),r)}}function Ct(t){var e=function(t,e){if("object"!=Et(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Et(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Et(e)?e:String(e)}function xt(t,e,n){return e=Tt(e),function(t,e){if(e&&("object"===Et(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,Nt()?Reflect.construct(e,n||[],Tt(t).constructor):e.apply(t,n))}function Nt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Nt=function(){return!!t})()}function Tt(t){return Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tt(t)}function Lt(t,e){return Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lt(t,e)}var Bt=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=xt(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&&Lt(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",_t({},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())}}])&&kt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(R);try{Bt.displayName="PhoneField"}catch(t){}Bt.defaultProps={type:"phoneNumber",icon:"dialpad",className:"",placeholder:"",label:""};const Dt=Bt,Rt=require("react-textarea-autosize");var Mt=n.n(Rt);function Ft(t){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ft(t)}function At(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,It(r.key),r)}}function It(t){var e=function(t,e){if("object"!=Ft(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ft(e)?e:String(e)}function Vt(t,e,n){return e=Ut(e),function(t,e){if(e&&("object"===Ft(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Wt()?Reflect.construct(e,n||[],Ut(t).constructor):e.apply(t,n))}function Wt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Wt=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 zt=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=Vt(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&&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:"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(Mt(),{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&&At(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{zt.displayName="Field"}catch(t){}zt.defaultProps={enteraction:function(){},type:"text",className:"",placeholder:"",label:""};const Kt=zt,Ht=require("react-datepicker");var Xt=n.n(Ht);require("react-datepicker/dist/react-datepicker.css");const Zt=require("date-fns/locale/fr");var $t=n.n(Zt);function Gt(t){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gt(t)}function Yt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Qt(r.key),r)}}function Qt(t){var e=function(t,e){if("object"!=Gt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Gt(e)?e:String(e)}function Jt(t,e,n){return e=ee(e),function(t,e){if(e&&("object"===Gt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,te()?Reflect.construct(e,n||[],ee(t).constructor):e.apply(t,n))}function te(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(te=function(){return!!t})()}function ee(t){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ee(t)}function ne(t,e){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ne(t,e)}(0,Ht.registerLocale)("fr",$t());var re=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=Jt(this,e)).id="",t.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&&ne(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(Xt(),{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&&Yt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{re.displayName="DateField"}catch(t){}re.defaultProps={type:"date",className:"",placeholder:"",label:""};const oe=re;function ie(t){return ie="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},ie(t)}function ae(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,ce(r.key),r)}}function ce(t){var e=function(t,e){if("object"!=ie(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ie(e)?e:String(e)}const se=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"!==ie(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}}])&&ae(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ue(t){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(t)}function le(){return le=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},le.apply(this,arguments)}function fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,pe(r.key),r)}}function pe(t){var e=function(t,e){if("object"!=ue(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ue(e)?e:String(e)}function ye(t,e,n){return e=he(e),function(t,e){if(e&&("object"===ue(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,de()?Reflect.construct(e,n||[],he(t).constructor):e.apply(t,n))}function de(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(de=function(){return!!t})()}function he(t){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},he(t)}function ve(t,e){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ve(t,e)}var be=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ye(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&&ve(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("a",le({},this.props,{className:"StokeBtn "+this.props.className}))}}])&&fe(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{be.displayName="StokeBtn"}catch(t){}be.defaultProps={className:""};const me=be;function ge(t){return ge="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},ge(t)}function we(){return we=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},we.apply(this,arguments)}function Oe(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,je(r.key),r)}}function je(t){var e=function(t,e){if("object"!=ge(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ge(e)?e:String(e)}function Se(t,e,n){return e=Ee(e),function(t,e){if(e&&("object"===ge(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||[],Ee(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 Ee(t){return Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ee(t)}function _e(t,e){return _e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_e(t,e)}var ke=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Se(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_e(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("a",we({},this.props,{className:"Btn "+this.props.className}))}}])&&Oe(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ke.displayName="Btn"}catch(t){}ke.defaultProps={className:""};const Ce=ke;function xe(t){return xe="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},xe(t)}function Ne(){return Ne=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ne.apply(this,arguments)}function Te(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"!=xe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==xe(e)?e:String(e)}function Be(t,e,n){return e=Re(e),function(t,e){if(e&&("object"===xe(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,De()?Reflect.construct(e,n||[],Re(t).constructor):e.apply(t,n))}function De(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(De=function(){return!!t})()}function Re(t){return Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Re(t)}function Me(t,e){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Me(t,e)}var Fe=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Be(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&&Me(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.wave=new se(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",Ne({},this.props,{ref:function(e){t.el=e},className:e+this.props.className}),this.props.children)}}])&&Te(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Fe.displayName="Button"}catch(t){}Fe.defaultProps={className:"",model:"standard",size:"medium"};const Ae=Fe,Ie=require("react-router-dom");function Ve(t){return Ve="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},Ve(t)}function We(){return We=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},We.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"!=Ve(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ve(e)?e:String(e)}function ze(t,e,n){return e=He(e),function(t,e){if(e&&("object"===Ve(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||[],He(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 He(t){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},He(t)}function Xe(t,e){return Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xe(t,e)}function Ze(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{Ze.displayName="XIcon"}catch(t){}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),ze(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xe(t,e)}(e,t),n=e,(r=[{key:"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(Ie.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(Ze,{style:{height:"20px"}})):"function"==typeof this.props.onCancel&&(t=i().createElement(Ae,{"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(Ze,{style:{height:"20px"}}))),i().createElement("div",We({},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(Ae,{"data-cy":"form-next-save-Btn",className:"green flexbox ",onClick:this.validateBtnClicked.bind(this)},i().createElement(Z,{style:{width:"20px",height:"20px"}}))))}}])&&Ue(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{$e.displayName="FormActions"}catch(t){}$e.defaultProps={onValidate:Function};const Ge=$e;function Ye(t){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(t)}function Qe(){return Qe=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},Qe.apply(this,arguments)}function Je(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,tn(r.key),r)}}function tn(t){var e=function(t,e){if("object"!=Ye(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ye(e)?e:String(e)}function en(t,e,n){return e=rn(e),function(t,e){if(e&&("object"===Ye(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,nn()?Reflect.construct(e,n||[],rn(t).constructor):e.apply(t,n))}function nn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(nn=function(){return!!t})()}function rn(t){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rn(t)}function on(t,e){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},on(t,e)}var an=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),en(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&&on(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Qe({},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"}))))}}])&&Je(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{an.displayName="Logo"}catch(t){}an.defaultProps={className:""};const cn=an;function sn(t){return sn="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},sn(t)}function un(){return un=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},un.apply(this,arguments)}function ln(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,fn(r.key),r)}}function fn(t){var e=function(t,e){if("object"!=sn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=sn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==sn(e)?e:String(e)}function pn(t,e,n){return e=dn(e),function(t,e){if(e&&("object"===sn(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,yn()?Reflect.construct(e,n||[],dn(t).constructor):e.apply(t,n))}function yn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yn=function(){return!!t})()}function dn(t){return dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dn(t)}function hn(t,e){return hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hn(t,e)}var vn=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&&hn(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",un({style:{}},this.props,{ref:function(e){t.el=e},className:"sidenav "+this.props.className})))}}])&&ln(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{vn.displayName="SideNav"}catch(t){}vn.defaultProps={opened:"false",className:"",fixed:"false",right:"false"};const bn=vn;function mn(t){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mn(t)}function 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 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,On(r.key),r)}}function On(t){var e=function(t,e){if("object"!=mn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=mn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==mn(e)?e:String(e)}function jn(t,e,n){return e=Pn(e),function(t,e){if(e&&("object"===mn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Sn()?Reflect.construct(e,n||[],Pn(t).constructor):e.apply(t,n))}function Sn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Sn=function(){return!!t})()}function Pn(t){return Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pn(t)}function En(t,e){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},En(t,e)}var _n=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),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&&En(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",gn({},this.props,{className:"sidemenu "+this.props.className}),i().createElement("ul",null,this.props.children))}}])&&wn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{_n.displayName="SideMenu"}catch(t){}const kn=_n;function Cn(t){return Cn="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},Cn(t)}function xn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Nn(r.key),r)}}function Nn(t){var e=function(t,e){if("object"!=Cn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Cn(e)?e:String(e)}function Tn(t,e,n){return e=Bn(e),function(t,e){if(e&&("object"===Cn(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,Ln()?Reflect.construct(e,n||[],Bn(t).constructor):e.apply(t,n))}function Ln(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ln=function(){return!!t})()}function Bn(t){return Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bn(t)}function Dn(t,e){return Dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dn(t,e)}var Rn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Tn(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dn(t,e)}(e,t),n=e,(r=[{key:"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)}}])&&xn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Rn.displayName="SideMenuItem"}catch(t){}const Mn=Rn;function Fn(t){return Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(t)}function An(){return An=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},An.apply(this,arguments)}function In(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,Vn(r.key),r)}}function Vn(t){var e=function(t,e){if("object"!=Fn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Fn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Fn(e)?e:String(e)}function Wn(t,e,n){return e=qn(e),function(t,e){if(e&&("object"===Fn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Un()?Reflect.construct(e,n||[],qn(t).constructor):e.apply(t,n))}function Un(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Un=function(){return!!t})()}function qn(t){return qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qn(t)}function zn(t,e){return zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zn(t,e)}var Kn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Wn(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&&zn(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("ul",An({},this.props,{className:"collapsible collapsible-accordion "+this.props.className}))}}])&&In(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Kn.displayName="Collapsible"}catch(t){}Kn.defaultProps={className:""};const Hn=Kn;function Xn(t){return Xn="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},Xn(t)}function Zn(){return Zn=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},Zn.apply(this,arguments)}function $n(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,Gn(r.key),r)}}function Gn(t){var e=function(t,e){if("object"!=Xn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Xn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Xn(e)?e:String(e)}function Yn(t,e,n){return e=Jn(e),function(t,e){if(e&&("object"===Xn(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||[],Jn(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 Jn(t){return Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jn(t)}function tr(t,e){return tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tr(t,e)}var er=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Yn(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&&tr(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i().createElement("div",Zn({},this.props,{ref:function(e){t.el=e},className:"collapsible-body "+this.props.className}))}}])&&$n(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{er.displayName="CollapsBody"}catch(t){}er.defaultProps={className:""};const nr=er;function rr(t){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(t)}function or(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,ir(r.key),r)}}function ir(t){var e=function(t,e){if("object"!=rr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==rr(e)?e:String(e)}function ar(t,e,n){return e=sr(e),function(t,e){if(e&&("object"===rr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,cr()?Reflect.construct(e,n||[],sr(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 sr(t){return sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sr(t)}function ur(t,e){return ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ur(t,e)}var lr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ar(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&&ur(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("li",this.props)}}])&&or(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{lr.displayName="CollapsElement"}catch(t){}const fr=lr;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 yr(){return yr=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},yr.apply(this,arguments)}function dr(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,wr(r.key),r)}}function hr(t,e,n){return e=br(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 mr(t)}(t,vr()?Reflect.construct(e,n||[],br(t).constructor):e.apply(t,n))}function vr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vr=function(){return!!t})()}function br(t){return br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},br(t)}function mr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gr(t,e){return gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gr(t,e)}function wr(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 Or=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=mr(t=hr(this,e,[].concat(a))),o={isOpen:!1},(r=wr(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&&gr(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?H():X();return i().createElement("div",yr({},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)}}])&&dr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Or.displayName="CollapsTrigger"}catch(t){}Or.defaultProps={effectduration:750,className:""};const jr=Or;function Sr(t){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(t)}function Pr(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,Er(r.key),r)}}function Er(t){var e=function(t,e){if("object"!=Sr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Sr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Sr(e)?e:String(e)}function _r(t,e,n){return e=Cr(e),function(t,e){if(e&&("object"===Sr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,kr()?Reflect.construct(e,n||[],Cr(t).constructor):e.apply(t,n))}function kr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(kr=function(){return!!t})()}function Cr(t){return Cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cr(t)}function xr(t,e){return xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xr(t,e)}var Nr=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),_r(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&&xr(t,e)}(n,t),r=n,(o=[{key:"render",value:function(){return i().createElement(Hn,null,i().createElement(fr,null,i().createElement(jr,{className:"waves-effect waves-green"},i().createElement(e.Icon,null,this.props.icon),this.props.text||"no text prop"),i().createElement(nr,{style:{paddingLeft:"20px"}},i().createElement("ul",null,this.props.children))))}}])&&Pr(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),n}(i().Component);try{Nr.displayName="SideCollapsible"}catch(t){}Nr.defaultProps={effectduration:750,className:"",path:""};const Tr=Nr;function Lr(t){return Lr="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},Lr(t)}function Br(){return Br=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},Br.apply(this,arguments)}function Dr(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 Rr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dr(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=Fr(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)):Dr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Fr(r.key),r)}}function Fr(t){var e=function(t,e){if("object"!=Lr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Lr(e)?e:String(e)}function Ar(t,e,n){return e=Vr(e),function(t,e){if(e&&("object"===Lr(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 Ur=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ar(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wr(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this;return i().createElement("li",Br({},this.props,{style:Rr({},this.props.style)}),i().createElement(Ie.Link,Br({},this.props,{className:"waves-effect waves-green"+this.props.className,innerRef:function(e){t.el=e},to:this.props.to}),this.props.children))}}])&&Mr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ur.displayName="SideLink"}catch(t){}Ur.defaultProps={effectduration:750,className:"",to:"/"};const qr=Ur;function zr(t){return zr="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},zr(t)}function Kr(){return Kr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Kr.apply(this,arguments)}function Hr(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,Xr(r.key),r)}}function Xr(t){var e=function(t,e){if("object"!=zr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=zr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==zr(e)?e:String(e)}function Zr(t,e,n){return e=Gr(e),function(t,e){if(e&&("object"===zr(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,$r()?Reflect.construct(e,n||[],Gr(t).constructor):e.apply(t,n))}function $r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($r=function(){return!!t})()}function Gr(t){return Gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gr(t)}function Yr(t,e){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Yr(t,e)}var Qr=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=Zr(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&&Yr(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",Kr({ref:this.el},this.props,{className:"waves-effect waves-green "+this.props.className,style:{display:"inherit"}}),i().createElement("a",null,this.props.children))}}])&&Hr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Qr.displayName="SidenavEl"}catch(t){}Qr.defaultProps={effectduration:750,className:"waves-effect waves-green ",path:"",icon:"home",data:[]};const Jr=Qr;function to(t){return to="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},to(t)}function eo(){return eo=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},eo.apply(this,arguments)}function no(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,ro(r.key),r)}}function ro(t){var e=function(t,e){if("object"!=to(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=to(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==to(e)?e:String(e)}function oo(t,e,n){return e=ao(e),function(t,e){if(e&&("object"===to(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||[],ao(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 ao(t){return ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ao(t)}function co(t,e){return co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},co(t,e)}var so=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),oo(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&&co(t,e)}(e,t),n=e,(r=[{key:"runSearch",value:function(){}},{key:"render",value:function(){return i().createElement("li",eo({},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"})))}}])&&no(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{so.displayName="SidenavSearch"}catch(t){}so.defaultProps={className:" "};const uo=so;function lo(t){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(t)}function fo(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 po(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fo(Object(n),!0).forEach((function(e){var r,o,i;r=t,o=e,i=n[e],(o=ho(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)):fo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yo(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,ho(r.key),r)}}function ho(t){var e=function(t,e){if("object"!=lo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==lo(e)?e:String(e)}function vo(t,e,n){return e=mo(e),function(t,e){if(e&&("object"===lo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,bo()?Reflect.construct(e,n||[],mo(t).constructor):e.apply(t,n))}function bo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(bo=function(){return!!t})()}function mo(t){return mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mo(t)}function go(t,e){return go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},go(t,e)}var wo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),vo(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&&go(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:po({},this.props.style),className:this.props.className},i().createElement(Ie.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))}}])&&yo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{wo.displayName="IconSideLink"}catch(t){}wo.defaultProps={effectduration:750,className:"",to:"/"};const Oo=wo;function jo(t){return jo="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},jo(t)}function So(){return So=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},So.apply(this,arguments)}function Po(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Eo(r.key),r)}}function Eo(t){var e=function(t,e){if("object"!=jo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=jo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==jo(e)?e:String(e)}function _o(t,e,n){return e=Co(e),function(t,e){if(e&&("object"===jo(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,ko()?Reflect.construct(e,n||[],Co(t).constructor):e.apply(t,n))}function ko(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ko=function(){return!!t})()}function Co(t){return Co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Co(t)}function xo(t,e){return xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xo(t,e)}var No=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_o(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xo(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",So({},this.props,{className:"card "+this.props.className}))}}])&&Po(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{No.displayName="Card"}catch(t){}No.defaultProps={className:""};const To=No;function Lo(t){return Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lo(t)}function Bo(){return Bo=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},Bo.apply(this,arguments)}function Do(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,Ro(r.key),r)}}function Ro(t){var e=function(t,e){if("object"!=Lo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Lo(e)?e:String(e)}function Mo(t,e,n){return e=Ao(e),function(t,e){if(e&&("object"===Lo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Fo()?Reflect.construct(e,n||[],Ao(t).constructor):e.apply(t,n))}function Fo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fo=function(){return!!t})()}function Ao(t){return Ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ao(t)}function Io(t,e){return Io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Io(t,e)}var Vo=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Mo(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Io(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Bo({},this.props,{className:"card-action "+this.props.className}))}}])&&Do(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Vo.displayName="CardAction"}catch(t){}Vo.defaultProps={className:""};const Wo=Vo;function Uo(t){return Uo="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},Uo(t)}function qo(){return qo=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},qo.apply(this,arguments)}function zo(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"!=Uo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Uo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Uo(e)?e:String(e)}function Ho(t,e,n){return e=Zo(e),function(t,e){if(e&&("object"===Uo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Xo()?Reflect.construct(e,n||[],Zo(t).constructor):e.apply(t,n))}function Xo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Xo=function(){return!!t})()}function Zo(t){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zo(t)}function $o(t,e){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$o(t,e)}var Go=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ho(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$o(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",qo({},this.props,{className:"card-content "+this.props.className}))}}])&&zo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Go.displayName="CardContent"}catch(t){}Go.defaultProps={className:""};const Yo=Go;function Qo(t){return Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(t)}function Jo(){return Jo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jo.apply(this,arguments)}function ti(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ei(r.key),r)}}function ei(t){var e=function(t,e){if("object"!=Qo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qo(e)?e:String(e)}function ni(t,e,n){return e=oi(e),function(t,e){if(e&&("object"===Qo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ri()?Reflect.construct(e,n||[],oi(t).constructor):e.apply(t,n))}function ri(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ri=function(){return!!t})()}function oi(t){return oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oi(t)}function ii(t,e){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ii(t,e)}var ai=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ni(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ii(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("span",Jo({},this.props,{className:"card-title "+(this.props.className||"")}))}}])&&ti(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ai.displayName="CardTitle"}catch(t){}ai.defaultProps={className:""};const ci=ai;function si(t){return si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},si(t)}function ui(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 li(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ui(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)):ui(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,pi(r.key),r)}}function pi(t){var e=function(t,e){if("object"!=si(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=si(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==si(e)?e:String(e)}function yi(t,e,n){return e=hi(e),function(t,e){if(e&&("object"===si(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,di()?Reflect.construct(e,n||[],hi(t).constructor):e.apply(t,n))}function di(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(di=function(){return!!t})()}function hi(t){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hi(t)}function vi(t,e){return vi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vi(t,e)}var bi=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),yi(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vi(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",{style:li({},this.props.style),className:"card-image "+this.props.className},i().createElement("img",{src:this.props.src}),this.props.imageTitle&&i().createElement("span",{class:"card-title"},this.props.imageTitle),this.props.children)}}])&&fi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{bi.displayName="CardImage"}catch(t){}bi.defaultProps={className:""};const mi=bi;function gi(t){return gi="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},gi(t)}function wi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Oi(r.key),r)}}function Oi(t){var e=function(t,e){if("object"!=gi(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=gi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==gi(e)?e:String(e)}function ji(t,e,n){return e=Pi(e),function(t,e){if(e&&("object"===gi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Si()?Reflect.construct(e,n||[],Pi(t).constructor):e.apply(t,n))}function Si(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Si=function(){return!!t})()}function Pi(t){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pi(t)}function Ei(t,e){return Ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ei(t,e)}var _i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ji(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ei(t,e)}(e,t),n=e,(r=[{key:"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")))}}])&&wi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{_i.displayName="Cube"}catch(t){}_i.defaultProps={className:""};const ki=_i;function Ci(t){return Ci="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},Ci(t)}function xi(){return xi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xi.apply(this,arguments)}function Ni(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Mi(r.key),r)}}function Ti(t,e,n){return e=Bi(e),function(t,e){if(e&&("object"===Ci(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Di(t)}(t,Li()?Reflect.construct(e,n||[],Bi(t).constructor):e.apply(t,n))}function Li(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Li=function(){return!!t})()}function Bi(t){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bi(t)}function Di(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ri(t,e){return Ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ri(t,e)}function Mi(t){var e=function(t,e){if("object"!=Ci(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ci(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ci(e)?e:String(e)}var Fi=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=Di(n=Ti(this,e,[t])),i={visible:!1},(o=Mi(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&&Ri(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",xi({ref:function(e){t.el=e}},this.props,{className:"modal-overlay "+this.props.className})):null}}])&&Ni(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Fi.displayName="Overlay"}catch(t){}Fi.defaultProps={className:""};const Ai=Fi;function Ii(t){return Ii="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},Ii(t)}function Vi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wi(r.key),r)}}function Wi(t){var e=function(t,e){if("object"!=Ii(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ii(e)?e:String(e)}function Ui(t,e,n){return e=zi(e),function(t,e){if(e&&("object"===Ii(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,qi()?Reflect.construct(e,n||[],zi(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 zi(t){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zi(t)}function Ki(t,e){return Ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ki(t,e)}function Hi(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(Boolean).join(" ")}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),Ui(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ki(t,e)}(e,t),n=e,(r=[{key:"getAddBtn",value:function(){if(this.props.addRedirectTo)return i().createElement(Ie.Link,{to:this.props.addRedirectTo,"data-cy":"clt-addBtn",style:{display:"inline-flex",justifyContent:"center",alignItems:"center"},className:Hi(this.props.disabled?"disabled":"","btn waves-effect btn-floating btn-small myblue")},i().createElement(G,{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))}}])&&Vi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(o.Component);try{Xi.displayName="InnerPage"}catch(t){}const Zi=Xi;function $i(t){return $i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(t)}function Gi(){return Gi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Gi.apply(this,arguments)}function Yi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Qi(r.key),r)}}function Qi(t){var e=function(t,e){if("object"!=$i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=$i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$i(e)?e:String(e)}function Ji(t,e,n){return e=ea(e),function(t,e){if(e&&("object"===$i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ta()?Reflect.construct(e,n||[],ea(t).constructor):e.apply(t,n))}function ta(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ta=function(){return!!t})()}function ea(t){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ea(t)}function na(t,e){return na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},na(t,e)}var ra=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ji(this,e,arguments)}var n,r;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&na(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Gi({},this.props,{className:"row "+this.props.className}))}}])&&Yi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ra.displayName="Row"}catch(t){}ra.defaultProps={className:""};const oa=ra;function ia(t){return ia="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},ia(t)}function aa(){return aa=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},aa.apply(this,arguments)}function ca(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,sa(r.key),r)}}function sa(t){var e=function(t,e){if("object"!=ia(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ia(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ia(e)?e:String(e)}function ua(t,e,n){return e=fa(e),function(t,e){if(e&&("object"===ia(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,la()?Reflect.construct(e,n||[],fa(t).constructor):e.apply(t,n))}function la(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(la=function(){return!!t})()}function fa(t){return fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fa(t)}function pa(t,e){return pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pa(t,e)}var ya=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ua(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",aa({},this.props,{ref:function(e){return t.el=e},className:"col "+this.props.className}))}}])&&ca(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ya.displayName="Col"}catch(t){}ya.defaultProps={className:""};const da=ya;function ha(t){return ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ha(t)}function va(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,ba(r.key),r)}}function ba(t){var e=function(t,e){if("object"!=ha(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ha(e)?e:String(e)}function ma(t,e,n){return e=wa(e),function(t,e){if(e&&("object"===ha(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ga()?Reflect.construct(e,n||[],wa(t).constructor):e.apply(t,n))}function ga(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ga=function(){return!!t})()}function wa(t){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wa(t)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Oa(t,e)}var ja=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=ma(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&&Oa(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()))}}])&&va(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ja.displayName="Tabs"}catch(t){}ja.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 Sa=ja;function Pa(t){return Pa="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},Pa(t)}function Ea(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,_a(r.key),r)}}function _a(t){var e=function(t,e){if("object"!=Pa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Pa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Pa(e)?e:String(e)}const ka=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&&Ea(e.prototype,null),n&&Ea(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ca(t){return Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(t)}function xa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Na(r.key),r)}}function Na(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)}const Ta=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)}}])&&xa(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function La(t){return La="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},La(t)}function Ba(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ia(r.key),r)}}function Da(t,e,n){return e=Ma(e),function(t,e){if(e&&("object"===La(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Fa(t)}(t,Ra()?Reflect.construct(e,n||[],Ma(t).constructor):e.apply(t,n))}function Ra(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ra=function(){return!!t})()}function Ma(t){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ma(t)}function Fa(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Aa(t,e){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Aa(t,e)}function Ia(t){var e=function(t,e){if("object"!=La(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=La(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==La(e)?e:String(e)}var Va=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=Fa(t=Da(this,e,[].concat(a))),o={selected:""},(r=Ia(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&&Aa(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)})))}}])&&Ba(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Va.displayName="RadioIcons"}catch(t){}const Wa=Va;function Ua(t){return Ua="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},Ua(t)}function qa(){return qa=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},qa.apply(this,arguments)}function za(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ka(r.key),r)}}function Ka(t){var e=function(t,e){if("object"!=Ua(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ua(e)?e:String(e)}function Ha(t,e,n){return e=Za(e),function(t,e){if(e&&("object"===Ua(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,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,e){return $a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$a(t,e)}var Ga=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ha(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&&$a(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",qa({},this.props,{className:"collection "+this.props.className}))}}])&&za(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{Ga.displayName="Collection"}catch(t){}Ga.defaultProps={className:""};const Ya=Ga;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 Ja(){return Ja=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},Ja.apply(this,arguments)}function tc(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,ec(r.key),r)}}function ec(t){var e=function(t,e){if("object"!=Qa(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qa(e)?e:String(e)}function nc(t,e,n){return e=oc(e),function(t,e){if(e&&("object"===Qa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,rc()?Reflect.construct(e,n||[],oc(t).constructor):e.apply(t,n))}function rc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(rc=function(){return!!t})()}function oc(t){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oc(t)}function ic(t,e){return ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ic(t,e)}var ac=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),nc(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&&ic(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){return i().createElement("div",Ja({},this.props,{className:"collection-item "+this.props.className}))}}])&&tc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{ac.displayName="CollectionItem"}catch(t){}ac.defaultProps={className:""};const cc=ac;var sc=n(893);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}function lc(t,e,n){return e=pc(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||[],pc(t).constructor):e.apply(t,n))}function fc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fc=function(){return!!t})()}function pc(t){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pc(t)}function yc(t,e){return yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yc(t,e)}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 hc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vc(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,mc(r.key),r)}}function bc(t,e,n){return e&&vc(t.prototype,e),n&&vc(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function mc(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)}var gc=function(){function t(e,n,r,o){if(hc(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 bc(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}(),wc=function(){function t(e,n,r,o,i,a){hc(this,t),this.startPoint=e,this.control2=n,this.control1=r,this.endPoint=o,this.startWidth=i,this.endWidth=a}return bc(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 gc(c+v,s+b),c2:new gc(u+v,l+b)}}}]),t}(),Oc=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return hc(this,e),(n=lc(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&&yc(t,e)}(e,t),bc(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"!==dc(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 gc(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=wc.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 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}}(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 gc(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(){hc(this,t);try{this._et=new EventTarget}catch(t){this._et=document}}return bc(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 jc(t){return jc="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},jc(t)}function Sc(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,Pc(r.key),r)}}function Pc(t){var e=function(t,e){if("object"!=jc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=jc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==jc(e)?e:String(e)}function Ec(t,e,n){return e=kc(e),function(t,e){if(e&&("object"===jc(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,_c()?Reflect.construct(e,n||[],kc(t).constructor):e.apply(t,n))}function _c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_c=function(){return!!t})()}function kc(t){return kc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kc(t)}function Cc(t,e){return Cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Cc(t,e)}var xc=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ec(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:"componentDidMount",value:function(){this.sigPad=new Oc(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(Ae,{className:"red",onClick:this.clear.bind(this)},"close"),i().createElement(Ae,{className:"green",onClick:this.save.bind(this)},"save")))}}])&&Sc(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),e}(i().Component);try{xc.displayName="Signature_Cmp"}catch(t){}const Nc=xc;function Tc(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 Lc={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Bc={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Dc=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Rc={CSS:{},springs:{}};function Mc(t,e,n){return Math.min(Math.max(t,e),n)}function Fc(t,e){return t.indexOf(e)>-1}function Ac(t,e){return t.apply(null,e)}var Ic={arr:function(t){return Array.isArray(t)},obj:function(t){return Fc(Object.prototype.toString.call(t),"Object")},pth:function(t){return Ic.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||Ic.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 Ic.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 Ic.hex(t)||Ic.rgb(t)||Ic.hsl(t)},key:function(t){return!Lc.hasOwnProperty(t)&&!Bc.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function Vc(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function Wc(t,e){var n=Vc(t),r=Mc(Ic.und(n[0])?1:n[0],.1,100),o=Mc(Ic.und(n[1])?100:n[1],.1,100),i=Mc(Ic.und(n[2])?10:n[2],.1,100),a=Mc(Ic.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=Rc.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 Rc.springs[t]=i,i}}function Uc(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return function(e){return Math.ceil(Mc(e,1e-6,1)*t)*(1/t)}}var qc,zc,Kc=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)}}}}(),Hc=(qc={linear:function(){return function(t){return t}}},zc={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=Mc(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,1,10),n=Mc(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){zc[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(zc).forEach((function(t){var e=zc[t];qc["easeIn"+t]=e,qc["easeOut"+t]=function(t,n){return function(r){return 1-e(t,n)(1-r)}},qc["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}},qc["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}}})),qc);function Xc(t,e){if(Ic.fnc(t))return t;var n=t.split("(")[0],r=Hc[n],o=Vc(t);switch(n){case"spring":return Wc(t,e);case"cubicBezier":return Ac(Kc,o);case"steps":return Ac(Uc,o);default:return Ac(r,o)}}function Zc(t){try{return document.querySelectorAll(t)}catch(t){return}}function $c(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 Gc(t){return t.reduce((function(t,e){return t.concat(Ic.arr(e)?Gc(e):e)}),[])}function Yc(t){return Ic.arr(t)?t:(Ic.str(t)&&(t=Zc(t)||t),t instanceof NodeList||t instanceof HTMLCollection?[].slice.call(t):[t])}function Qc(t,e){return t.some((function(t){return t===e}))}function Jc(t){var e={};for(var n in t)e[n]=t[n];return e}function ts(t,e){var n=Jc(t);for(var r in t)n[r]=e.hasOwnProperty(r)?e[r]:t[r];return n}function es(t,e){var n=Jc(t);for(var r in e)n[r]=Ic.und(t[r])?e[r]:t[r];return n}function ns(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 rs(t,e){return Ic.fnc(t)?t(e.target,e.id,e.total):t}function os(t,e){return t.getAttribute(e)}function is(t,e,n){if(Qc([n,"deg","rad","turn"],ns(e)))return e;var r=Rc.CSS[e+n];if(!Ic.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 Rc.CSS[e+n]=c,c}function as(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?is(t,o,n):o}}function cs(t,e){return Ic.dom(t)&&!Ic.inp(t)&&(!Ic.nil(os(t,e))||Ic.svg(t)&&t[e])?"attribute":Ic.dom(t)&&Qc(Dc,e)?"transform":Ic.dom(t)&&"transform"!==e&&as(t,e)?"css":null!=t[e]?"object":void 0}function ss(t){if(Ic.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 us(t,e,n,r){switch(cs(t,e)){case"transform":return function(t,e,n,r){var o=Fc(e,"scale")?1:0+function(t){return Fc(t,"translate")||"perspective"===t?"px":Fc(t,"rotate")||Fc(t,"skew")?"deg":void 0}(e),i=ss(t).get(e)||o;return n&&(n.transforms.list.set(e,i),n.transforms.last=e),r?is(t,i,r):i}(t,e,r,n);case"css":return as(t,e,n);case"attribute":return os(t,e);default:return t[e]||0}}function ls(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=ns(t)||0,o=parseFloat(e),i=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return o+i+r;case"-":return o-i+r;case"*":return o*i+r}}function fs(t,e){if(Ic.col(t))return function(t){return Ic.rgb(t)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e=t))?"rgba(".concat(n[1],",1)"):e:Ic.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):Ic.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=ns(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 ys(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 ds(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*os(t,"r")}(t);case"rect":return function(t){return 2*os(t,"width")+2*os(t,"height")}(t);case"line":return function(t){return ps({x:os(t,"x1"),y:os(t,"y1")},{x:os(t,"x2"),y:os(t,"y2")})}(t);case"polyline":return ys(t);case"polygon":return function(t){var e=t.points;return ys(t)+ps(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function hs(t,e){var n=e||{},r=n.el||function(t){for(var e=t.parentNode;Ic.svg(e)&&Ic.svg(e.parentNode);)e=e.parentNode;return e}(t),o=r.getBoundingClientRect(),i=os(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 vs(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=hs(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 bs(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=fs(Ic.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:Ic.str(t)||e?r.split(n):[]}}function ms(t){return $c(t?Gc(Ic.arr(t)?t.map(Yc):Yc(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function gs(t){var e=ms(t);return e.map((function(t,n){return{target:t,id:n,total:e.length,transforms:{list:ss(t)}}}))}function ws(t,e){var n=Jc(e);if(/^spring/.test(n.easing)&&(n.duration=Wc(n.easing)),Ic.arr(t)){var r=t.length;2!==r||Ic.obj(t[0])?Ic.fnc(e.duration)||(n.duration=e.duration/r):t={value:t}}var o=Ic.arr(t)?t:[t];return o.map((function(t,n){var r=Ic.obj(t)&&!Ic.pth(t)?t:{value:t};return Ic.und(r.delay)&&(r.delay=n?0:e.delay),Ic.und(r.endDelay)&&(r.endDelay=n===o.length-1?e.endDelay:0),r})).map((function(t){return es(t,n)}))}var Os={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 js(t,e){gs(t).forEach((function(t){for(var n in e){var r=rs(e[n],t),o=t.target,i=ns(r),a=us(o,n,i,t),c=ls(fs(r,i||ns(a)),a),s=cs(o,n);Os[s](o,n,c,t.transforms,!0)}}))}function Ss(t,e){return $c(Gc(t.map((function(t){return e.map((function(e){return function(t,e){var n=cs(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=rs(t[r],e);Ic.arr(o)&&1===(o=o.map((function(t){return rs(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=Ic.arr(i)?i[1]:i,c=ns(a),s=us(e.target,t.name,c,e),u=n?n.to.original:s,l=Ic.arr(i)?i[0]:u,f=ns(l)||ns(s),p=c||f;return Ic.und(a)&&(a=u),o.from=bs(l,p),o.to=bs(ls(a,l),p),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=Xc(o.easing,o.duration),o.isPath=Ic.pth(i),o.isPathTargetInsideSVG=o.isPath&&Ic.svg(e.target),o.isColor=Ic.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!Ic.und(t)}))}function Ps(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 Es=0,_s=[],ks=function(){var t;function e(n){for(var r=_s.length,o=0;o<r;){var i=_s[o];i.paused?(_s.splice(o,1),r--):(i.tick(n),o++)}t=o>0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){xs.suspendWhenDocumentHidden&&(Cs()?t=cancelAnimationFrame(t):(_s.forEach((function(t){return t._onDocumentVisibility()})),ks()))})),function(){t||Cs()&&xs.suspendWhenDocumentHidden||!(_s.length>0)||(t=requestAnimationFrame(e))}}();function Cs(){return!!document&&document.hidden}function xs(){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=ts(Lc,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),u=ts(Bc,c),l=function(t,e){var n=[],r=e.keyframes;for(var o in r&&(e=es(function(t){for(var e=$c(Gc(t.map((function(t){return Object.keys(t)}))),(function(t){return Ic.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)Ic.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)Ic.key(o)&&n.push({name:o,tweens:ws(e[o],t)});return n}(u,c),f=gs(c.targets),p=Ss(f,l),y=Ps(p,u),d=Es,Es++,es(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/xs.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=$c(a,(function(e){return t<e.end}))[0]||s);for(var u=Mc(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?vs(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];Os[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=Mc(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=Mc(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 js(t,e),h},h.tick=function(t){r=t,e||(e=r),j((r+(n-e))*xs.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,_s.push(h),m(),ks())},h.reverse=function(){v(),h.completed=!h.reversed,m()},h.restart=function(){h.reset(),h.play()},h.remove=function(t){Ts(ms(t),h)},h.reset(),h.autoplay&&h.play(),h}function Ns(t,e){for(var n=e.length;n--;)Qc(t,e[n].animatable.target)&&e.splice(n,1)}function Ts(t,e){var n=e.animations,r=e.children;Ns(t,n);for(var o=r.length;o--;){var i=r[o],a=i.animations;Ns(t,a),a.length||i.children.length||r.splice(o,1)}n.length||r.length||e.pause()}xs.version="3.2.2",xs.speed=1,xs.suspendWhenDocumentHidden=!0,xs.running=_s,xs.remove=function(t){for(var e=ms(t),n=_s.length;n--;)Ts(e,_s[n])},xs.get=us,xs.set=js,xs.convertPx=is,xs.path=function(t,e){var n=Ic.str(t)?Zc(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:hs(n),totalLength:ds(n)*(r/100)}}},xs.setDashoffset=function(t){var e=ds(t);return t.setAttribute("stroke-dasharray",e),e},xs.stagger=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.direction||"normal",r=e.easing?Xc(e.easing):null,o=e.grid,i=e.axis,a=e.from||0,c="first"===a,s="center"===a,u="last"===a,l=Ic.arr(t),f=l?parseFloat(t[0]):parseFloat(t),p=l?parseFloat(t[1]):0,y=ns(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 Tc(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 Tc(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)?Tc(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}},xs.timeline=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=xs(t);return e.duration=0,e.add=function(n,r){var o=_s.indexOf(e),i=e.children;function a(t){t.passThrough=!0}o>-1&&_s.splice(o,1);for(var c=0;c<i.length;c++)a(i[c]);var s=es(n,ts(Bc,t));s.targets=s.targets||t.targets;var u=e.duration;s.autoplay=!1,s.direction=e.direction,s.timelineOffset=Ic.und(r)?u:ls(r,u),a(e),e.seek(s.timelineOffset);var l=xs(s);a(l),i.push(l);var f=Ps(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},xs.easing=Xc,xs.penner=Hc,xs.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t};const Ls=xs;function Bs(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,Ds(r.key),r)}}function Ds(t){var e=function(t,e){if("object"!=Rs(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Rs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Rs(e)?e:String(e)}function Rs(t){return Rs="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},Rs(t)}var Ms=["valueOf","toLocaleString","toString","constructor"],Fs=function t(e,n,r){var o,i,a;if(e&&(r&&t(e,r),n&&"object"===Rs(n))){for(o in n)e[o]=n[o];if(Ms)for(i=Ms.length;i--;)a=Ms[i],n.hasOwnProperty(a)&&(e[a]=n[a])}return e},As={html:"",displayLength:3e3,inDuration:300,outDuration:375,classes:"",completeCallback:null,activationPercent:.8},Is=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=Fs({},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 As}},{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":Rs(HTMLElement))?this.message instanceof HTMLElement:this.message&&"object"===Rs(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(){Ls({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),Ls({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()}})}}])&&Bs(e.prototype,n),r&&Bs(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();Is._toasts=[],Is._container=null,Is._draggedToast=null;const Vs=Is;function Ws(t){return Ws="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},Ws(t)}function Us(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,qs(r.key),r)}}function qs(t){var e=function(t,e){if("object"!=Ws(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=Ws(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ws(e)?e:String(e)}var zs=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 Vs({html:t,classes:"blue lighten-1"})}},{key:"error",value:function(t){return new Vs({html:t,classes:"red lighten-1"})}},{key:"success",value:function(t){return new Vs({html:t,classes:"green lighten-1"})}}])&&Us(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();const Ks=new zs})(),r})()));