cortex-react-ui 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/styles/Camera/index.scss +1 -5
- package/package.json +1 -1
package/lib/esm/index.js
CHANGED
|
@@ -15,5 +15,5 @@ import*as e from"react";import t,{useRef as r,useMemo as n,useState as o,useCall
|
|
|
15
15
|
/*!**************************************************************************************!*\
|
|
16
16
|
!*** external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"} ***!
|
|
17
17
|
\**************************************************************************************/
|
|
18
|
-
/*! no static exports found */function(t,r){t.exports=e}}).default};var kt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}({exports:{}}.exports=Tt(t)),Nt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Rt=t.createContext&&t.createContext(Nt),Gt=["attr","size","title"];function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jt.apply(this,arguments)}function Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(r),!0).forEach((function(t){St(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function St(e,t,r){var n;return(t="symbol"==typeof(n=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pt(e){return e&&e.map(((e,r)=>t.createElement(e.tag,Vt({key:r},e.attr),Pt(e.child))))}function Ot(e){return r=>t.createElement(Qt,jt({attr:Vt({},e.attr)},r),Pt(e.child))}function Qt(e){var r=r=>{var n,{attr:o,size:i,title:a}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Gt),c=i||r.size||"1em";return r.className&&(n=r.className),e.className&&(n=(n?n+" ":"")+e.className),t.createElement("svg",jt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,s,{className:n,style:Vt(Vt({color:e.color||r.color},r.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&t.createElement("title",null,a),e.children)};return void 0!==Rt?t.createElement(Rt.Consumer,null,(e=>r(e))):r(Nt)}function Lt(e){return Ot({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"},child:[]}]})(e)}function Ut(e){return Ot({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},child:[]}]})(e)}function Wt(e){return Ot({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(e)}function Kt(e){return Ot({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"},child:[]}]})(e)}function Jt(e){return Ot({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 7h-1l-1-1h-4L9 7H8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm-4 7c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"},child:[]},{tag:"path",attr:{d:"m8.57.51 4.48 4.48V2.04c4.72.47 8.48 4.23 8.95 8.95h2C23.34 3.02 15.49-1.59 8.57.51zM10.95 21.96c-4.72-.47-8.48-4.23-8.95-8.95H0c.66 7.97 8.51 12.58 15.43 10.48l-4.48-4.48v2.95z"},child:[]}]})(e)}function Zt(e){return Ot({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 13A5 5 0 1 0 8 3a5 5 0 0 0 0 10"},child:[]}]})(e)}var Ht,zt=function(){function e(){this.dbName="cortex-react-media",this.storeName="capturedFiles",this.db=null}return e.prototype.openDatabase=function(){return f(this,void 0,void 0,(function(){var e=this;return p(this,(function(t){return[2,new Promise((function(t,r){var n=indexedDB.open(e.dbName,1);n.onupgradeneeded=function(t){n.result.createObjectStore(e.storeName,{keyPath:"id",autoIncrement:!0})},n.onsuccess=function(){e.db=n.result,t(e.db)},n.onerror=function(){return r(n.error)}}))]}))}))},e.prototype.storeFile=function(e){return f(this,void 0,void 0,(function(){var t=this;return p(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:[4,this.openDatabase()];case 1:r.sent(),r.label=2;case 2:return[2,new Promise((function(r,n){var o=t.db.transaction(t.storeName,"readwrite").objectStore(t.storeName).add({file:e,timestamp:Date.now(),name:e.name});o.onsuccess=function(){return r(o.result)},o.onerror=function(){return n(o.error)}}))]}}))}))},e.prototype.retrieveFile=function(e){return f(this,void 0,void 0,(function(){var t=this;return p(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:[4,this.openDatabase()];case 1:r.sent(),r.label=2;case 2:return[2,new Promise((function(r,n){var o=t.db.transaction([t.storeName],"readonly").objectStore(t.storeName).get(e);o.onsuccess=function(){var e=o.result;r(e?e.file:null)},o.onerror=function(){return n(o.error)}}))]}}))}))},e}(),Xt=function(e){var t=e.onCapture,s=e.isOffline,c=void 0!==s&&s,l=e.mode,h=void 0===l?"photo":l,m=e.validateText,v=void 0===m?"Valider":m,w=e.resetText,y=void 0===w?"Annuler":w,A=e.isShowOffline,C=void 0!==A&&A;e.isShowVideoButton;var E=d(e,["onCapture","isOffline","mode","validateText","resetText","isShowOffline","isShowVideoButton"]),b=r(null),B=r(null),x=r(new zt),T=o(h),M=T[0],D=T[1],I=o(!1),F=I[0],q=I[1],k=o(!1),N=k[0],R=k[1],G=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||navigator.maxTouchPoints>0||"ontouchstart"in document.documentElement,j=function(){var e=r(null),t=o(0),a=t[0],s=t[1],c=function(e){var t=Math.floor(e/86400),r=Math.floor(e%86400/3600),n=Math.floor(e%3600/60),o=e%60;return"".concat(t>0?t.toString().padStart(2,"0").concat(":"):"").concat(r>0?r.toString().padStart(2,"0").concat(":"):"").concat(n.toString().padStart(2,"0"),":").concat(o.toString().padStart(2,"0"))},l=n((function(){return c(a)}),[a]),u=i((function(){s(0),e.current=setInterval((function(){s((function(e){return e+1}))}),1e3)}),[]),d=i((function(){e.current&&(clearInterval(e.current),e.current=null)}),[]);return{formatTime:c,startTimer:u,stopTimer:d,formatedTime:l}}(),Y=j.formatedTime,V=j.startTimer,S=j.stopTimer,P=o({imageUrl:null,videoUrl:null,isRecording:!1,storedFileId:null,file:null}),O=P[0],Q=P[1],L=o({facingMode:"environment",width:{min:200},height:{min:300}});L[0];var U=L[1];a((function(){return U({facingMode:G?"environment":"user",width:{min:200},height:{min:300}}),function(){Z(),S(),H()}}),[]),a((function(){"video"===M&&q(!1)}),[O]);var W=i((function(){return f(void 0,void 0,void 0,(function(){var e,t,r,n,o,i,a,s,c,l;return p(this,(function(d){if(e=null===(l=b.current)||void 0===l?void 0:l.getScreenshot()){for(t=atob(e.split(",")[1]),r=new Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);o=new Uint8Array(r),i=new Blob([o],{type:"image/jpeg"}),a="captured_image_".concat(Date.now().toString().slice(-7),".jpg"),s=new File([i],a,{type:"image/jpeg"}),c=URL.createObjectURL(s),Q((function(e){return u(u({},e),{imageUrl:c,file:s})}))}return[2]}))}))}),[b,c,t]),J=i((function(){if(b.current&&b.current.stream){var e="webm",t="video/".concat(e);MediaRecorder.isTypeSupported("video/mp4")&&(e="mp4",t="video/mp4");var r=new MediaRecorder(b.current.stream,{mimeType:t}),n=[];r.ondataavailable=function(e){e.data.size>0&&n.push(e.data)},r.onstop=function(){return f(void 0,void 0,void 0,(function(){var r,o,i,a;return p(this,(function(s){return r=new Blob(n,{type:t}),o="captured_video_".concat(Date.now(),".").concat(e),i=new File([r],o,{type:t}),a=URL.createObjectURL(i),Q((function(e){return u(u({},e),{videoUrl:a,isRecording:!1,file:i})})),S(),[2]}))}))},r.start(),B.current=r,V(),Q((function(e){return u(u({},e),{isRecording:!0})}))}}),[b,c,V,S,t]),Z=function(){Q({imageUrl:null,videoUrl:null,isRecording:!1,storedFileId:null,file:null})};return g.exports.jsx("div",u({className:"camera-container"},{children:O.imageUrl||O.videoUrl?g.exports.jsxs("div",u({className:"camera-preview camera-screen-animation"},{children:[O.imageUrl&&g.exports.jsx("img",{src:O.imageUrl,alt:"Capturé",style:{height:"90%",objectFit:"contain",overflowClipMargin:"content-box",overflow:"clip",aspectRatio:"16/9",display:"flex",justifySelf:"center"}}),O.videoUrl&&g.exports.jsxs("video",u({width:"100%",height:"90%",id:"video",style:{height:"90%",objectFit:"contain",overflowClipMargin:"content-box",overflow:"clip",aspectRatio:"16/9",display:"flex",justifySelf:"center"},onEnded:function(){return q(!1)}},{children:[g.exports.jsx("source",{src:O.videoUrl,type:"video/mp4"}),g.exports.jsx("source",{src:O.videoUrl,type:"video/webm"}),g.exports.jsx("track",{kind:"captions",src:"",lang:"en",label:"English",default:!0}),"Your browser does not support the video."]})),O.videoUrl&&g.exports.jsx(K,u({variant:"contained",className:"video-play-btn",onClick:function(){var e=document.getElementById("video");try{e.paused?e.play():e.pause(),q(!F)}catch(e){}}},{children:F?g.exports.jsx(Ut,{}):g.exports.jsx(Wt,{})})),g.exports.jsxs("div",u({className:"camera-controls"},{children:[g.exports.jsx(K,u({variant:"contained",onClick:function(){return f(void 0,void 0,void 0,(function(){var e;return p(this,(function(r){switch(r.label){case 0:return c?[4,x.current.storeFile(O.file)]:[3,2];case 1:e=r.sent(),t({fileRowId:e,fileStoreName:"capturedFiles"}),r.label=2;case 2:return c||"photo"!==M||t({file:O.file,imageSrc:O.imageUrl}),c||"video"!==M||t({file:O.file,videoSrc:O.videoUrl}),Z(),[2]}}))}))},className:"camera-button camera-button--download"},{children:v})),g.exports.jsx(K,u({variant:"outlined",onClick:Z,className:"camera-button camera-button--reset"},{children:y}))]}))]})):g.exports.jsxs("div",u({className:"camera-preview"},{children:[O.isRecording&&g.exports.jsxs("div",u({className:"camera-recording-timer",style:{display:"video"===M?"flex":"none"}},{children:[g.exports.jsx("span",{className:"camera-recording-dot"}),g.exports.jsx("span",{children:Y})]})),!O.isRecording&&g.exports.jsx("button",u({type:"button",onClick:function(){return D("photo"===M?"video":"photo"),void Z()},className:"camera-button camera-mode"},{children:g.exports.jsx("span",{children:"photo"===M?"Video":"Photo"})})),G&&!O.isRecording&&g.exports.jsx("button",u({type:"button",onClick:function(){R(!N),U({facingMode:N?"environment":"user",width:{min:200},height:{min:300}})},className:"camera-button camera-switch"},{children:g.exports.jsx(Jt,{size:18})})),c&&C&&g.exports.jsx("div",u({className:"camera-offline-mode"},{children:"Offline mode"})),g.exports.jsx(kt,u({ref:b,videoConstraints:{facingMode:"environment",width:{min:200},height:{min:300}}},E,{style:{height:"90% !important",objectFit:"contain",overflowClipMargin:"content-box",overflow:"clip",aspectRatio:"16/9",display:"flex",justifySelf:"center",margin:"0 auto"},screenshotFormat:"image/jpeg",allowFullScreen:!0})),g.exports.jsxs("div",u({className:"camera-controls"},{children:["photo"===M&&g.exports.jsx(K,u({variant:"contained",className:"camera-button camera-button--capture",onClick:W},{children:g.exports.jsx(Lt,{size:28})})),"video"===M&&!O.isRecording&&g.exports.jsx(K,u({variant:"contained",onClick:J,className:"camera-button camera-button--record"},{children:g.exports.jsx(Zt,{size:30})})),"video"===M&&O.isRecording&&g.exports.jsx(K,u({variant:"contained",onClick:H,className:"camera-button camera-button--record"},{children:g.exports.jsx(Kt,{size:28})}))]}))]}))}));function H(){B.current&&B.current.stop()}},_t=function(e){var r=e.selected,n=e.value,o=e.size,i=e.children,a=e.className,s=e.onChange,c=t.useCallback((function(){s&&s(n)}),[s,n]);return g.exports.jsx("button",u({type:"button",className:M("ui-toggleBtn",void 0!==o?"ui-toggleBtn-size-".concat(o):"ui-toggleBtn-size-md",!0===r?"ui-toggleBtn-selected":null,a),onClick:c},{children:i}))};!function(e){e[e.Enter=0]="Enter",e[e.Entering=1]="Entering",e[e.Entered=2]="Entered",e[e.Exit=3]="Exit",e[e.Exiting=4]="Exiting",e[e.Exited=5]="Exited"}(Ht||(Ht={}));var $t=t.forwardRef((function(e,r){var n=e.trigger,o=e.mode,i=void 0===o?"appear":o,a=e.children,s=e.enterTimeout,c=e.exitTimeout,l=e.className,d=e.onEnter,f=e.onEntering,p=e.onEntered,h=e.onExit,m=e.onExiting,v=e.onExited,w=t.useRef(null),y=t.useRef(),A=t.useState((function(){return"appear"===i?Ht.Exited:Ht.Entered}));A[0],A[1],t.useEffect((function(){return function(){y.current&&window.clearTimeout(y.current)}}),[y]),t.useEffect((function(){n?(y.current&&window.clearTimeout(y.current),w.current.classList.remove("".concat(l,"-exit")),w.current.classList.remove("".concat(l,"-exiting")),w.current.classList.remove("".concat(l,"-exited")),d&&d(),w.current.classList.add("".concat(l,"-enter")),y.current=window.setTimeout((function(){f&&f(),w.current&&w.current.classList.add("".concat(l,"-entering")),y.current=window.setTimeout((function(){p&&p(),w.current&&w.current.classList.add("".concat(l,"-entered"))}),s||1e3)}),10)):(y.current&&window.clearTimeout(y.current),w.current.classList.remove("".concat(l,"-enter")),w.current.classList.remove("".concat(l,"-entering")),w.current.classList.remove("".concat(l,"-entered")),h&&h(),w.current.classList.add("".concat(l,"-exit")),y.current=window.setTimeout((function(){m&&m(),w.current&&w.current.classList.add("".concat(l,"-exiting")),y.current=window.setTimeout((function(){v&&v(),w.current&&w.current.classList.add("".concat(l,"-exited"))}),c||1e3)})))}),[n]);var C=t.useMemo((function(){if(a){var e=u(u({},a.props),{className:M(l,a.props.className),ref:w});return t.cloneElement(a,e)}}),[a,w]);return g.exports.jsx(g.exports.Fragment,{children:C})}));$t.propTypes={},$t.defaultProps={};var er=t.forwardRef((function(e,t){var r=e.trigger,n=e.children,o=e.onEnter,i=e.onEntering,a=e.onEntered,s=e.onExit,c=e.onExiting,l=e.onExited;return g.exports.jsx($t,u({ref:t,trigger:r,mode:"appear",className:"ui-fade",enterTimeout:160,exitTimeout:160,onEnter:o,onExit:s,onEntering:i,onEntered:a,onExiting:c,onExited:l},{children:n}))}));er.propTypes={},er.defaultProps={};var tr=function(e){var r=e.children,n=e.title;e.anchorEl;var o=e.enterDelay,i=void 0===o?0:o,a=e.leaveDelay,s=void 0===a?0:a,c=e.className,l=e.disabled,d=t.useState(void 0),f=d[0],p=d[1],h=t.useState(!1),m=h[0],v=h[1],w=t.useState(!0),y=w[0],A=w[1],C=t.useState(!1),E=C[0],b=C[1],B=t.useRef(),x=t.useRef();t.useEffect((function(){!0===l&&v(!1)}),[l]);var T,D=function(){v(!0)},I=function(){v(!1)},F=function(e){E||(clearTimeout(B.current),clearTimeout(x.current),f||p(e.currentTarget),x.current=setTimeout((function(){I()}),s))},q=function(e){E||(clearTimeout(B.current),clearTimeout(x.current),f||p(e.currentTarget),!0!==l&&(B.current=setTimeout((function(){D()}),i)))},k=function(e){b(!0),clearTimeout(B.current),clearTimeout(x.current),f||p(e.currentTarget),!0!==l&&(B.current=setTimeout((function(){D()}),2e3))},N=function(e){clearTimeout(B.current),clearTimeout(x.current),f||p(e.currentTarget),x.current=setTimeout((function(){I()}),3e3)};if(r){var R=u(u({},r.props),{onFocus:function(e){f||p(e.currentTarget),B.current=setTimeout((function(){D()}),i)},onMouseEnter:function(e){E||(clearTimeout(B.current),clearTimeout(x.current),f||p(e.currentTarget),!0!==l&&(B.current=setTimeout((function(){D()}),i)))},onMouseLeave:F,onMouseOver:q,onTouchStart:k,onTouchEnd:N});T=t.cloneElement(r,R)}var G=m||!y;return g.exports.jsxs(g.exports.Fragment,{children:[T,g.exports.jsx(Q,u({role:"tooltip",anchorEl:f,open:G,className:M("ui-tooltip",c),onMouseOver:E?void 0:q,onMouseLeave:E?void 0:F,onTouchStart:k,onTouchEnd:N},{children:g.exports.jsx(er,u({trigger:m,onEnter:function(){A(!1)},onExited:function(){A(!0)}},{children:g.exports.jsx("div",u({className:"ui-tooltip-content"},{children:n}))}))}))]})};function rr(t,r){var n=e.useCallback((function(e){var n=e.target,o=r.reduce((function(e,t){if(!t)return e;var r=function(e){var t;if(!e)return document.body;if("[object String]"===Object.prototype.toString.call(e)){var r=document.getElementById(e);return null!=r?r:document.body}var n=e;return n&&void 0!==n.current?null!==(t=n.current)&&void 0!==t?t:void 0:e}(t);return!1!==e&&r&&null!==r?!r.contains(n):e}),!0);t&&o&&t()}),[t]);e.useEffect((function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}),[r,n])}var nr=function(e){var t=e.tag;e.className;var r=e.onDelete;return g.exports.jsxs("span",u({className:"ui-taginputItem"},{children:[g.exports.jsx("span",u({className:"ui-taginputItemLabel"},{children:t.label})),g.exports.jsx("button",u({type:"button",className:"ui-taginputItemRemove",onClick:r},{children:"x"}))]}))},or=t.forwardRef((function(e,r){var n=e.className,o=e.value,i=e.onClick,a=e.onChange,s=t.useRef(null),c=t.useCallback((function(e){a&&a(e.target.value)}),[a]);return t.useEffect((function(){if(r&&s)return T(r,s.current),function(){T(r,null)}}),[r,s]),g.exports.jsx(g.exports.Fragment,{children:g.exports.jsx("input",{ref:s,value:o,className:M("ui-taginputFilter",n),autoComplete:"off",spellCheck:"false","data-form-type":"other",onChange:c,onClick:i})})})),ir=function(e){var r=e.suggestion,n=e.onClick,o=t.useCallback((function(e){n&&n(r,e)}),[n]);return g.exports.jsx("div",u({role:"button",className:"ui-taginputSelectItem",tabIndex:0,onClick:o},{children:r.label}))},ar=function(e){var t=e.group,r=e.onClick,n=Array.isArray(t.suggestions)?t.suggestions.map((function(e,t){return!0===e.group?g.exports.jsx(ar,{group:e,onClick:r},t):g.exports.jsx(ir,{suggestion:e,onClick:r},t)})):null;return g.exports.jsxs("div",u({className:"ui-taginputSelectGroup"},{children:[g.exports.jsx("span",u({className:"ui-taginputSelectGroupLabel"},{children:t.label})),g.exports.jsx("div",u({className:"ui-taginputSelectGroupItems"},{children:n}))]}))},sr=t.forwardRef((function(e,r){var n=e.open,o=e.tags,i=e.disableFilter,a=e.suggestions,s=e.anchorEl,c=e.filter,l=e.onSuggestionClick,d=t.useMemo((function(){if(!Array.isArray(a))return[];if(i)return a;var e=Array.isArray(o)&&o.length>0,t=c&&c.length>0,r=[];return a.forEach((function(n){if(!0!==n.group)e&&o.some((function(e){return e.id===n.id}))||t&&n.label.toUpperCase().indexOf(c.toUpperCase())<0||r.push(u({},n));else if(Array.isArray(n.suggestions)){var i=u(u({},n),{suggestions:[]});n.suggestions.forEach((function(r){e&&o.some((function(e){return e.id===r.id}))||t&&r.label.toUpperCase().indexOf(c.toUpperCase())<0||i.suggestions.push(u({},r))})),i.suggestions.length>0&&r.push(i)}})),r}),[a,c,o]),f=t.useCallback((function(e){l&&l(e)}),[l]),p=n&&d.length>0,h=d.map((function(e,t){return!0===e.group?g.exports.jsx(ar,{group:e,onClick:f},t):g.exports.jsx(ir,{suggestion:e,onClick:f},t)}));return g.exports.jsx(Q,u({ref:r,open:p,anchorEl:s,placement:k},{children:g.exports.jsx("div",u({className:"ui-taginputSelect"},{children:h}))}))})),cr=function(e){var r=e.tags;e.className;var n=e.suggestions,o=e.disableFilter,i=e.onTextChange,a=e.onChange,s=t.useRef(null),c=t.useRef(null),l=t.useRef(null),d=t.useState(""),f=d[0],p=d[1],m=t.useState(!1),v=m[0],w=m[1];rr((function(){w(!1)}),[s,c]);var y=t.useCallback((function(e){if(a&&Array.isArray(r)){var t=r.findIndex((function(t){return t.id===e.id}));if(!(t<0)){var n=h([],r,!0);n.splice(t,1),a(n)}}}),[r,a]),A=t.useCallback((function(e){if(e){var t={id:e.id,label:e.label,value:e.value},n=Array.isArray(r)?h(h([],r,!0),[t],!1):[t];w(!1),a&&a(n),p(""),i&&i("")}}),[r,a,i]),C=t.useCallback((function(e){p(e),i&&i(e)}),[i]),E=Array.isArray(r)?r.map((function(e,t){return g.exports.jsx(nr,{tag:e,onDelete:function(){return y(e)}},t)})):[];return g.exports.jsxs("div",u({ref:l,className:"ui-taginput"},{children:[E,g.exports.jsx(or,{ref:s,value:f,onChange:C,onClick:function(){w(!0)}}),g.exports.jsx(sr,{ref:c,open:v,anchorEl:s,filter:f,tags:r,suggestions:n,disableFilter:o,onSuggestionClick:A})]}))},lr=function(e){var r=e.containerRef;e.className;var n=e.children,o=e.onClick;e.onClose;var i=t.useRef(null);return t.useEffect((function(){if(i&&r&&i.current&&r.current){var e=r.current.getBoundingClientRect(),t=i.current.getBoundingClientRect(),n=e.width,o="0px",a="unset";e.right+t.width>=window.innerWidth&&(n=-t.width),t.bottom>=window.innerHeight&&(a="".concat(-(window.innerHeight-e.bottom-15).toFixed(),"px"),o="unset"),i.current.setAttribute("style","opacity: 1; left: ".concat(n.toFixed(),"px; bottom: ").concat(a,"; top: ").concat(o,";"))}}),[i]),g.exports.jsx("div",u({ref:i,className:"ui-menu"},{children:g.exports.jsx("ul",u({className:"ui-menuList",onClick:o,onContextMenu:o},{children:n}))}))};function ur(t){var r=e.useState(),n=r[0],o=r[1];return e.useEffect((function(){o(function(e){var t;if(e){if("[object String]"===Object.prototype.toString.call(e)){var r=document.getElementById(e);return null!=r?r:void 0}var n=e;return n&&void 0!==n.current?null!==(t=n.current)&&void 0!==t?t:void 0:e}}(t))}),[t]),n}lr.propTypes={className:l.string},lr.defaultProps={className:void 0};var dr=function(e){var r=e.className,n=e.children,o=e.placement,i=e.open,a=e.container,s=e.onOpen,c=e.onClose,l=t.useRef(null),d=ur(a),f=t.useState(null),p=f[0],h=f[1];rr((function(){i&&c&&c()}),[l]);var m=t.useCallback((function(e){e.preventDefault(),e.ctrlKey||(h({mouseX:e.pageX-2,mouseY:e.pageY-4}),s&&s())}),[s]),v=function(e){e.preventDefault()};return t.useEffect((function(){var e=null!=d?d:document;return e.addEventListener("contextmenu",m),e!==document&&document.addEventListener("contextmenu",v),function(){e.removeEventListener("contextmenu",m),document.removeEventListener("contextmenu",v)}}),[d,m]),g.exports.jsx(Q,u({ref:l,anchorPosition:null!==p?{top:p.mouseY,left:p.mouseX}:void 0,placement:o,open:i,overflow:!1},{children:g.exports.jsx(lr,u({className:r,onClose:c,onClick:function(e){e&&2===e.button&&(e.preventDefault(),e.stopPropagation())},containerRef:l},{children:n}))}))};dr.propTypes={className:l.string},dr.defaultProps={className:void 0};var fr=function(e){return e.className,g.exports.jsx("hr",{})};fr.propTypes={className:l.string},fr.defaultProps={className:void 0};var pr=function(e){var t=e.className;return g.exports.jsx("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",className:M("ui-icon",t),transform:"rotate(180 0 0)"},{children:g.exports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 8.29289C11.6834 7.90237 12.3166 7.90237 12.7071 8.29289L17.7071 13.2929C18.0976 13.6834 18.0976 14.3166 17.7071 14.7071C17.3166 15.0976 16.6834 15.0976 16.2929 14.7071L12 10.4142L7.70711 14.7071C7.31658 15.0976 6.68342 15.0976 6.29289 14.7071C5.90237 14.3166 5.90237 13.6834 6.29289 13.2929L11.2929 8.29289Z"})}))},hr=function(e){var t=e.className;return g.exports.jsx("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 7",fill:"none",className:M("ui-icon",t),transform:"rotate(90 0 0)",preserveAspectRatio:"xMidYMid meet"},{children:g.exports.jsx("path",{d:"M5.3,0.3c0.4-0.4,1-0.4,1.4,0l5,5c0.4,0.4,0.4,1,0,1.4c-0.4,0.4-1,0.4-1.4,0L6,2.4L1.7,6.7c-0.4,0.4-1,0.4-1.4,0c-0.4-0.4-0.4-1,0-1.4L5.3,0.3z"})}))},gr=function(e){var t=e.className;return g.exports.jsx("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 7",fill:"none",className:M("ui-icon",t),transform:"rotate(270 0 0)",preserveAspectRatio:"xMidYMid meet"},{children:g.exports.jsx("path",{d:"M5.3,0.3c0.4-0.4,1-0.4,1.4,0l5,5c0.4,0.4,0.4,1,0,1.4c-0.4,0.4-1,0.4-1.4,0L6,2.4L1.7,6.7c-0.4,0.4-1,0.4-1.4,0c-0.4-0.4-0.4-1,0-1.4L5.3,0.3z"})}))},mr=function(e){var t=e.className;return g.exports.jsx("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:M("ui-icon",t)},{children:g.exports.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}))},vr=function(e){var r=e.label,n=e.icon,o=e.className,i=e.style;e.active;var a=e.disable,s=e.children,c=e.itemTemplate,l=e.onClick,d=t.useState(!1),f=d[0],p=d[1],h=t.useRef(null),m=t.useCallback((function(e){l&&!0!==a&&l(e)}),[l]),v=null!=s;return g.exports.jsxs("li",u({className:M("ui-menuItem",!0===a?"ui-menuItem-disable":null,o),style:i,onMouseEnter:function(){p(!0)},onMouseLeave:function(){p(!1)},ref:h},{children:[g.exports.jsxs("button",u({type:"button",className:"ui-menuItem-btn",onClick:m},{children:[n&&g.exports.jsx("div",u({className:"ui-menuItem-icon"},{children:n})),g.exports.jsx("span",{children:null!=c?c:r}),v&&g.exports.jsx("div",u({className:"ui-menuItem-menuIconContainer"},{children:g.exports.jsx(hr,{className:"ui-menuItem-menuIcon"})}))]})),v&&f&&g.exports.jsx(lr,u({containerRef:h},{children:s}))]}))};vr.propTypes={className:l.string},vr.defaultProps={className:void 0};var wr=function(e){var r=e.className,n=e.children,o=e.placement,i=e.open,a=e.anchorPosition,s=e.anchorEl,c=e.onClose,l=t.useRef(null);return rr((function(){i&&c&&c()}),[l]),i&&(a||s)?g.exports.jsx(Q,u({ref:l,anchorPosition:a,anchorEl:s,placement:o,open:i,overflow:!1,className:"ui-menu-popper"},{children:g.exports.jsx(lr,u({className:r,onClose:c,onClick:function(e){e&&2===e.button&&(e.preventDefault(),e.stopPropagation())},containerRef:l},{children:n}))})):null};wr.propTypes={className:l.string},wr.defaultProps={className:void 0};var yr=function(e){var t=e.title,r=e.className,n=e.children;return g.exports.jsxs(g.exports.Fragment,{children:[g.exports.jsx("li",u({className:M("ui-group-title",r)},{children:t})),n]})};yr.propTypes={className:l.string},yr.defaultProps={className:void 0};var Ar=function(e){var t=e.url,r=e.queryParams,n=e.token,o=e.label,i=e.onStart,a=e.onCompleted,s=e.onError;return g.exports.jsx(g.exports.Fragment,{children:g.exports.jsx(vr,{label:o,onClick:function(e){return f(void 0,void 0,void 0,(function(){var o,c,l,u,d,f,h,g;return p(this,(function(p){switch(p.label){case 0:i&&i(e),p.label=1;case 1:if(p.trys.push([1,4,,5]),!n)throw new Error("INVALID_TOKEN");if(!t)throw new Error("INVALID_URL");return(o={}).ContentType="application/json",o.Authorization="Bearer ".concat(n),c={method:"get",headers:o},l=new URL(t),r&&Object.keys(r).forEach((function(e){return l.searchParams.append(e,r[e])})),[4,fetch(l,c)];case 2:if(!(u=p.sent())||200!==u.status)throw new Error("An error occured while generating file");return[4,u.blob()];case 3:return(d=p.sent())&&(f=window.URL.createObjectURL(d),(h=document.createElement("a")).href=f,h.download=function(e){var t=e.get("Content-Disposition");if(!t)return null;var r=t.split(";"),n="filename=",o=r.find((function(e){return e.indexOf(n)>-1}));if(o){var i=o.search(n);if(i<0)return null;var a=o.substring(i+9).trim();if(0===a.length)return null;var s=a.substring(0,1);return'"'!==s&&"'"!==s?a:a.length<2||a[a.length-1]!==s?null:a.substring(1,a.length-1)}return null}(u.headers)||"file",h.click(),URL.revokeObjectURL(f),h.remove()),[3,5];case 4:throw g=p.sent(),s&&s(g),g;case 5:return a&&a(),[2]}}))}))}})})};Ar.propTypes={label:l.string};var Cr=function(e){e.open;var r=e.width,n=e.fullWidth,o=e.fullHeight,i=e.className,a=e.children,s=e.onClose,c=t.useRef(),l=t.useRef(null),d=t.useRef(null);t.useEffect((function(){return c.current=document.body.style.overflow,document.body.style.overflow="hidden",function(){var e;document.body.style.overflow=null!==(e=c.current)&&void 0!==e?e:"initial"}}),[]);var f=t.useCallback((function(){s&&s()}),[s]);return g.exports.jsx(x,u({ref:l},{children:g.exports.jsxs("div",u({ref:function(e){d.current=e},style:{position:"fixed",margin:"0"},role:"dialog",className:M("ui-dialog",i)},{children:[g.exports.jsx("div",{role:"presentation",className:"ui-dialog-overlay",onClick:f}),g.exports.jsx("div",u({className:M("ui-dialog-container",r?"ui-dialog-size-".concat(r):null,!0===n?"ui-dialog-size-fullwidth":null,!0===o?"ui-dialog-size-fullheight":null)},{children:a}))]}))}))};Cr.propTypes={className:l.string},Cr.defaultProps={className:void 0};var Er=function(e){var t=e.className,r=e.children;return g.exports.jsx("div",u({className:M("ui-dialog-content",t)},{children:r}))};Er.propTypes={className:l.string},Er.defaultProps={className:void 0};var br=function(e){var t=e.className,r=e.children;return g.exports.jsx("footer",u({className:M("ui-dialog-footer",t)},{children:r}))};br.propTypes={className:l.string},br.defaultProps={className:void 0};var Br=function(e){var t=e.className,r=e.children;return g.exports.jsx("header",u({className:M("ui-dialog-header",t)},{children:r}))};Br.propTypes={className:l.string},Br.defaultProps={className:void 0};var xr=function(e){var r=e.className,n=e.children,o=e.closeDisable,i=e.onClose,a=t.useCallback((function(){i&&!0!==o&&i()}),[i,o]),s=void 0!==i;return g.exports.jsxs("h3",u({className:M("ui-dialog-title",r)},{children:[n,s&&g.exports.jsx("button",u({type:"button",className:M("ui-dialog-close",o?"ui-dialog-close-disable":null),tabIndex:0,onClick:a},{children:g.exports.jsx(mr,{})}))]}))};xr.propTypes={className:l.string,children:l.node,closeDisable:l.bool},xr.defaultProps={className:void 0,children:void 0};var Tr=function(e){var t=e.className,r=e.children;return g.exports.jsx("div",u({className:M("ui-dialog-actions",t)},{children:r}))};Tr.propTypes={className:l.string,children:l.node},Tr.defaultProps={className:void 0,children:void 0};var Mr=function(e){var r=e.title,n=e.ok,o=e.cancel,i=e.children,a=e.className,s=e.onClose,c=t.useCallback((function(){s&&s(!1)}),[s]),l=t.useCallback((function(){s&&s(!0)}),[s]),d=null!=n?n:"oui",f=null!=o?o:"Annuler";return g.exports.jsxs(Cr,u({open:!0,className:M("ui-dialog-box","ui-dialog-confirm",a)},{children:[g.exports.jsx(Br,{children:g.exports.jsxs(g.exports.Fragment,{children:[g.exports.jsxs("svg",u({className:"ui-dialog-icon",xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 438.5 438.5"},{children:[g.exports.jsx("path",{d:"M409.1,109.2c-19.6-33.6-46.2-60.2-79.8-79.8C295.7,9.8,259.1,0,219.3,0c-39.8,0-76.5,9.8-110.1,29.4\r\n C75.6,49,49,75.6,29.4,109.2C9.8,142.8,0,179.5,0,219.3c0,39.8,9.8,76.5,29.4,110.1c19.6,33.6,46.2,60.2,79.8,79.8\r\n c33.6,19.6,70.3,29.4,110.1,29.4s76.5-9.8,110.1-29.4c33.6-19.6,60.2-46.2,79.8-79.8c19.6-33.6,29.4-70.3,29.4-110.1\r\n C438.5,179.5,428.7,142.8,409.1,109.2z M387.4,290.2c-9.7,22.6-22.7,42-39,58.2c-16.3,16.3-35.7,29.3-58.2,39\r\n c-22.6,9.7-46.2,14.6-70.9,14.6s-48.4-4.9-70.9-14.6c-22.6-9.7-42-22.7-58.2-39c-16.3-16.3-29.3-35.7-39-58.2\r\n c-9.7-22.6-14.6-46.2-14.6-70.9c0-24.7,4.9-48.4,14.6-70.9c9.7-22.6,22.7-42,39-58.2c16.3-16.3,35.7-29.3,58.2-39\r\n c22.6-9.7,46.2-14.6,70.9-14.6c24.7,0,48.4,4.9,70.9,14.6c22.6,9.7,42,22.7,58.2,39c16.3,16.3,29.3,35.7,39,58.2\r\n c9.7,22.6,14.6,46.2,14.6,70.9C402,244,397.1,267.7,387.4,290.2z"}),g.exports.jsx("path",{d:"M217,294c-14.6,0-26.5,12.2-26.5,26.8c0,14.3,11.5,26.8,26.5,26.8s26.8-12.5,26.8-26.8C243.8,306.2,231.6,294,217,294z"}),g.exports.jsx("path",{d:"M221.5,90.8c-47.1,0-68.7,27.9-68.7,46.7c0,13.6,11.5,19.9,20.9,19.9c18.8,0,11.2-26.8,46.7-26.8c17.4,0,31.4,7.7,31.4,23.7\r\n c0,18.8-19.5,29.6-31,39.4c-10.1,8.7-23.4,23-23.4,53c0,18.1,4.9,23.4,19.2,23.4c17.1,0,20.6-7.7,20.6-14.3\r\n c0-18.1,0.4-28.6,19.5-43.6c9.4-7.3,39-31,39-63.8S266.1,90.8,221.5,90.8z"})]})),g.exports.jsx("h1",u({className:"ui-dialog-title"},{children:r}))]})}),g.exports.jsx(Er,{children:i}),g.exports.jsxs(br,{children:[g.exports.jsx(K,u({className:"dialog-action-ok dialog-action",onClick:l},{children:d})),g.exports.jsx(K,u({className:"dialog-action-close dialog-action",onClick:c},{children:f}))]})]}))};Mr.propTypes={className:l.string},Mr.defaultProps={className:void 0};var Dr=function(e){var r=e.title,n=e.ok,o=e.children,i=e.className,a=e.onClose,s=t.useCallback((function(){a&&a(!0)}),[a]),c=null!=n?n:"fermer";return g.exports.jsxs(Cr,u({open:!0,className:M("ui-dialog-box","ui-dialog-error",i)},{children:[g.exports.jsx(Br,{children:g.exports.jsxs(g.exports.Fragment,{children:[g.exports.jsxs("svg",u({className:"ui-dialog-icon",xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 438.533 438.533"},{children:[g.exports.jsx("path",{d:"M409.133,109.203c-19.608-33.592-46.205-60.189-79.798-79.796C295.736,9.801,259.058,0,219.273,0 c-39.781,0-76.47,9.801-110.063,29.407c-33.595,19.604-60.192,46.201-79.8,79.796C9.801,142.8,0,179.489,0,219.267 c0,39.78,9.804,76.463,29.407,110.062c19.607,33.592,46.204,60.189,79.799,79.798c33.597,19.605,70.283,29.407,110.063,29.407 s76.47-9.802,110.065-29.407c33.593-19.602,60.189-46.206,79.795-79.798c19.603-33.596,29.403-70.284,29.403-110.062 C438.533,179.485,428.732,142.795,409.133,109.203z M387.434,290.213c-9.709,22.556-22.696,41.97-38.969,58.245 c-16.271,16.269-35.689,29.26-58.245,38.965c-22.555,9.712-46.202,14.564-70.946,14.564c-24.744,0-48.391-4.853-70.948-14.564 c-22.554-9.705-41.971-22.696-58.245-38.965c-16.269-16.275-29.259-35.687-38.97-58.245 c-9.707-22.552-14.562-46.206-14.562-70.946c0-24.744,4.854-48.391,14.562-70.948c9.707-22.554,22.697-41.968,38.97-58.245 c16.274-16.269,35.691-29.26,58.245-38.97c22.554-9.704,46.205-14.558,70.948-14.558c24.74,0,48.395,4.851,70.946,14.558 c22.556,9.707,41.97,22.698,58.245,38.97c16.272,16.274,29.26,35.688,38.969,58.245c9.709,22.554,14.564,46.201,14.564,70.948 C402.002,244.011,397.143,267.664,387.434,290.213z"}),g.exports.jsx("path",{d:"M284.368,258.668c-19.219-14.086-40.926-21.129-65.095-21.129c-24.172,0-45.871,7.039-65.096,21.129 c-19.224,14.085-32.358,32.641-39.397,55.671c-1.521,4.757-1.143,9.381,1.141,13.847c2.286,4.469,5.898,7.467,10.85,8.993 c4.758,1.526,9.373,1.143,13.846-1.144c4.471-2.285,7.467-5.899,8.991-10.848c4.759-15.235,13.562-27.556,26.409-36.979 c12.847-9.418,27.263-14.127,43.252-14.127c15.987,0,30.412,4.712,43.251,14.127c12.854,9.424,21.655,21.744,26.412,36.979 c1.52,4.948,4.564,8.562,9.134,10.848c4.568,2.286,9.236,2.67,13.989,1.144c4.761-1.526,8.278-4.524,10.564-8.993 c2.286-4.466,2.669-9.09,1.14-13.847C316.729,291.312,303.591,272.75,284.368,258.668z"}),g.exports.jsx("path",{d:"M146.181,182.725c10.085,0,18.699-3.576,25.837-10.709c7.139-7.135,10.708-15.749,10.708-25.837 c0-10.089-3.569-18.699-10.708-25.837s-15.752-10.709-25.837-10.709c-10.088,0-18.702,3.571-25.84,10.709 c-7.135,7.139-10.707,15.749-10.707,25.837c0,10.088,3.568,18.702,10.707,25.837C127.482,179.152,136.093,182.725,146.181,182.725 z"}),g.exports.jsx("path",{d:"M292.359,109.631c-10.089,0-18.706,3.571-25.845,10.709c-7.132,7.139-10.708,15.749-10.708,25.837 c0,10.088,3.576,18.702,10.708,25.837c7.139,7.137,15.756,10.709,25.845,10.709c10.081,0,18.698-3.576,25.837-10.709 c7.139-7.135,10.708-15.749,10.708-25.837c0-10.089-3.569-18.699-10.708-25.837S302.44,109.631,292.359,109.631z"})]})),g.exports.jsx("h1",u({className:"ui-dialog-title"},{children:r}))]})}),g.exports.jsx(Er,{children:o}),g.exports.jsx(br,{children:g.exports.jsx(K,u({className:"dialog-action-ok dialog-action",onClick:s},{children:c}))})]}))};Dr.propTypes={className:l.string},Dr.defaultProps={className:void 0};var Ir=function(e){var r=e.title,n=e.ok,o=e.children,i=e.className,a=e.onClose,s=t.useCallback((function(){a&&a(!0)}),[a]),c=null!=n?n:"fermer";return g.exports.jsxs(Cr,u({open:!0,className:M("ui-dialog-box","ui-dialog-warning",i)},{children:[g.exports.jsx(Br,{children:g.exports.jsxs(g.exports.Fragment,{children:[g.exports.jsxs("svg",u({className:"ui-dialog-icon",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 512 512"},{children:[g.exports.jsx("polygon",{fill:"#FFA418",points:"0,477.703 256,477.703 289.391,256 256,34.297"}),g.exports.jsx("polygon",{fill:"#FF8A1E",points:"256,34.297 256,477.703 512,477.703"}),g.exports.jsx("circle",{fill:"#324860",cx:"256",cy:"405.359",r:"16.696"}),g.exports.jsx("rect",{x:"239.304",y:"177.185",fill:"#324860",width:"33.391",height:"178.087"})]})),g.exports.jsx("h1",u({className:"ui-dialog-title"},{children:r}))]})}),g.exports.jsx(Er,{children:o}),g.exports.jsx(br,{children:g.exports.jsx(K,u({className:"dialog-action-ok dialog-action",onClick:s},{children:c}))})]}))};Ir.propTypes={className:l.string},Ir.defaultProps={className:void 0};export{Ar as AuthDownloadLink,U as BarLoader,K as Button,Xt as Camera,pr as ChevronDownIcon,gr as ChevronLeftIcon,hr as ChevronRightIcon,Mr as ConfirmDialog,dr as ContextMenu,mr as CrossIcon,Cr as Dialog,Tr as DialogActions,Er as DialogContent,br as DialogFooter,Br as DialogHeader,xr as DialogTitle,fr as Divider,x as DomContainer,Dr as ErrorDialog,lr as Menu,yr as MenuGroup,vr as MenuItem,Q as Popper,wr as PopupMenu,qt as Scanner,W as Selected,L as Spinner,cr as TagInput,_t as ToggleButton,tr as Tooltip,Ir as WarningDialog};
|
|
18
|
+
/*! no static exports found */function(t,r){t.exports=e}}).default};var kt=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}({exports:{}}.exports=Tt(t)),Nt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Rt=t.createContext&&t.createContext(Nt),Gt=["attr","size","title"];function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jt.apply(this,arguments)}function Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(r),!0).forEach((function(t){St(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function St(e,t,r){var n;return(t="symbol"==typeof(n=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pt(e){return e&&e.map(((e,r)=>t.createElement(e.tag,Vt({key:r},e.attr),Pt(e.child))))}function Ot(e){return r=>t.createElement(Qt,jt({attr:Vt({},e.attr)},r),Pt(e.child))}function Qt(e){var r=r=>{var n,{attr:o,size:i,title:a}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Gt),c=i||r.size||"1em";return r.className&&(n=r.className),e.className&&(n=(n?n+" ":"")+e.className),t.createElement("svg",jt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,s,{className:n,style:Vt(Vt({color:e.color||r.color},r.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&t.createElement("title",null,a),e.children)};return void 0!==Rt?t.createElement(Rt.Consumer,null,(e=>r(e))):r(Nt)}function Lt(e){return Ot({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"},child:[]}]})(e)}function Ut(e){return Ot({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},child:[]}]})(e)}function Wt(e){return Ot({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(e)}function Kt(e){return Ot({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"},child:[]}]})(e)}function Jt(e){return Ot({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 7h-1l-1-1h-4L9 7H8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm-4 7c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"},child:[]},{tag:"path",attr:{d:"m8.57.51 4.48 4.48V2.04c4.72.47 8.48 4.23 8.95 8.95h2C23.34 3.02 15.49-1.59 8.57.51zM10.95 21.96c-4.72-.47-8.48-4.23-8.95-8.95H0c.66 7.97 8.51 12.58 15.43 10.48l-4.48-4.48v2.95z"},child:[]}]})(e)}function Zt(e){return Ot({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 13A5 5 0 1 0 8 3a5 5 0 0 0 0 10"},child:[]}]})(e)}var Ht,zt=function(){function e(){this.dbName="cortex-react-media",this.storeName="capturedFiles",this.db=null}return e.prototype.openDatabase=function(){return f(this,void 0,void 0,(function(){var e=this;return p(this,(function(t){return[2,new Promise((function(t,r){var n=indexedDB.open(e.dbName,1);n.onupgradeneeded=function(t){n.result.createObjectStore(e.storeName,{keyPath:"id",autoIncrement:!0})},n.onsuccess=function(){e.db=n.result,t(e.db)},n.onerror=function(){return r(n.error)}}))]}))}))},e.prototype.storeFile=function(e){return f(this,void 0,void 0,(function(){var t=this;return p(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:[4,this.openDatabase()];case 1:r.sent(),r.label=2;case 2:return[2,new Promise((function(r,n){var o=t.db.transaction(t.storeName,"readwrite").objectStore(t.storeName).add({file:e,timestamp:Date.now(),name:e.name});o.onsuccess=function(){return r(o.result)},o.onerror=function(){return n(o.error)}}))]}}))}))},e.prototype.retrieveFile=function(e){return f(this,void 0,void 0,(function(){var t=this;return p(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:[4,this.openDatabase()];case 1:r.sent(),r.label=2;case 2:return[2,new Promise((function(r,n){var o=t.db.transaction([t.storeName],"readonly").objectStore(t.storeName).get(e);o.onsuccess=function(){var e=o.result;r(e?e.file:null)},o.onerror=function(){return n(o.error)}}))]}}))}))},e}(),Xt=function(e){var t=e.onCapture,s=e.isOffline,c=void 0!==s&&s,l=e.mode,h=void 0===l?"photo":l,m=e.validateText,v=void 0===m?"Valider":m,w=e.resetText,y=void 0===w?"Annuler":w,A=e.isShowOffline,C=void 0!==A&&A,E=e.isShowVideoButton,b=void 0!==E&&E,B=d(e,["onCapture","isOffline","mode","validateText","resetText","isShowOffline","isShowVideoButton"]),x=r(null),T=r(null),M=r(new zt),D=o(h),I=D[0],F=D[1],q=o(!1),k=q[0],N=q[1],R=o(!1),G=R[0],j=R[1],Y=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||navigator.maxTouchPoints>0||"ontouchstart"in document.documentElement,V=function(){var e=r(null),t=o(0),a=t[0],s=t[1],c=function(e){var t=Math.floor(e/86400),r=Math.floor(e%86400/3600),n=Math.floor(e%3600/60),o=e%60;return"".concat(t>0?t.toString().padStart(2,"0").concat(":"):"").concat(r>0?r.toString().padStart(2,"0").concat(":"):"").concat(n.toString().padStart(2,"0"),":").concat(o.toString().padStart(2,"0"))},l=n((function(){return c(a)}),[a]),u=i((function(){s(0),e.current=setInterval((function(){s((function(e){return e+1}))}),1e3)}),[]),d=i((function(){e.current&&(clearInterval(e.current),e.current=null)}),[]);return{formatTime:c,startTimer:u,stopTimer:d,formatedTime:l}}(),S=V.formatedTime,P=V.startTimer,O=V.stopTimer,Q=o({imageUrl:null,videoUrl:null,isRecording:!1,storedFileId:null,file:null}),L=Q[0],U=Q[1],W=o({facingMode:"environment",width:{min:200},height:{min:300}});W[0];var J=W[1];a((function(){return J({facingMode:Y?"environment":"user",width:{min:200},height:{min:300}}),function(){z(),O(),X()}}),[]),a((function(){"video"===I&&N(!1)}),[L]);var Z=i((function(){return f(void 0,void 0,void 0,(function(){var e,t,r,n,o,i,a,s,c,l;return p(this,(function(d){if(e=null===(l=x.current)||void 0===l?void 0:l.getScreenshot()){for(t=atob(e.split(",")[1]),r=new Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);o=new Uint8Array(r),i=new Blob([o],{type:"image/jpeg"}),a="captured_image_".concat(Date.now().toString().slice(-7),".jpg"),s=new File([i],a,{type:"image/jpeg"}),c=URL.createObjectURL(s),U((function(e){return u(u({},e),{imageUrl:c,file:s})}))}return[2]}))}))}),[x,c,t]),H=i((function(){if(x.current&&x.current.stream){var e="webm",t="video/".concat(e);MediaRecorder.isTypeSupported("video/mp4")&&(e="mp4",t="video/mp4");var r=new MediaRecorder(x.current.stream,{mimeType:t}),n=[];r.ondataavailable=function(e){e.data.size>0&&n.push(e.data)},r.onstop=function(){return f(void 0,void 0,void 0,(function(){var r,o,i,a;return p(this,(function(s){return r=new Blob(n,{type:t}),o="captured_video_".concat(Date.now(),".").concat(e),i=new File([r],o,{type:t}),a=URL.createObjectURL(i),U((function(e){return u(u({},e),{videoUrl:a,isRecording:!1,file:i})})),O(),[2]}))}))},r.start(),T.current=r,P(),U((function(e){return u(u({},e),{isRecording:!0})}))}}),[x,c,P,O,t]),z=function(){U({imageUrl:null,videoUrl:null,isRecording:!1,storedFileId:null,file:null})};return g.exports.jsx("div",u({className:"camera-container"},{children:L.imageUrl||L.videoUrl?g.exports.jsxs("div",u({className:"camera-preview camera-screen-animation"},{children:[L.imageUrl&&g.exports.jsx("img",{src:L.imageUrl,alt:"Capturé",style:{height:"90%",objectFit:"contain",overflowClipMargin:"content-box",overflow:"clip",aspectRatio:"16/9",display:"flex",justifySelf:"center"}}),L.videoUrl&&g.exports.jsxs("video",u({width:"100%",height:"90%",id:"video",style:{height:"90%",objectFit:"contain",overflowClipMargin:"content-box",overflow:"clip",aspectRatio:"16/9",display:"flex",justifySelf:"center"},onEnded:function(){return N(!1)}},{children:[g.exports.jsx("source",{src:L.videoUrl,type:"video/mp4"}),g.exports.jsx("source",{src:L.videoUrl,type:"video/webm"}),g.exports.jsx("track",{kind:"captions",src:"",lang:"en",label:"English",default:!0}),"Your browser does not support the video."]})),L.videoUrl&&g.exports.jsx(K,u({variant:"contained",className:"video-play-btn",onClick:function(){var e=document.getElementById("video");try{e.paused?e.play():e.pause(),N(!k)}catch(e){}}},{children:k?g.exports.jsx(Ut,{}):g.exports.jsx(Wt,{})})),g.exports.jsxs("div",u({className:"camera-controls"},{children:[g.exports.jsx(K,u({variant:"contained",onClick:function(){return f(void 0,void 0,void 0,(function(){var e;return p(this,(function(r){switch(r.label){case 0:return c?[4,M.current.storeFile(L.file)]:[3,2];case 1:e=r.sent(),t({fileRowId:e,fileStoreName:"capturedFiles"}),r.label=2;case 2:return c||"photo"!==I||t({file:L.file,imageSrc:L.imageUrl}),c||"video"!==I||t({file:L.file,videoSrc:L.videoUrl}),z(),[2]}}))}))},className:"camera-button camera-button--download"},{children:v})),g.exports.jsx(K,u({variant:"outlined",onClick:z,className:"camera-button camera-button--reset"},{children:y}))]}))]})):g.exports.jsxs("div",u({className:"camera-preview"},{children:[L.isRecording&&g.exports.jsxs("div",u({className:"camera-recording-timer",style:{display:"video"===I?"flex":"none"}},{children:[g.exports.jsx("span",{className:"camera-recording-dot"}),g.exports.jsx("span",{children:S})]})),!L.isRecording&&b&&g.exports.jsx("button",u({type:"button",onClick:function(){return F("photo"===I?"video":"photo"),void z()},className:"camera-button camera-mode"},{children:g.exports.jsx("span",{children:"photo"===I?"Video":"Photo"})})),c&&C&&g.exports.jsx("div",u({className:"camera-offline-mode"},{children:"Offline mode"})),g.exports.jsx(kt,u({ref:x,videoConstraints:{facingMode:"environment",width:{min:200},height:{min:300}}},B,{style:{height:"90% !important",objectFit:"contain",overflowClipMargin:"content-box",overflow:"clip",aspectRatio:"16/9",display:"flex",justifySelf:"center",margin:"0 auto"},screenshotFormat:"image/jpeg",allowFullScreen:!0})),g.exports.jsxs("div",u({className:"camera-controls"},{children:["photo"===I&&g.exports.jsx(K,u({variant:"contained",className:"camera-button camera-button--capture",onClick:Z},{children:g.exports.jsx(Lt,{size:28})})),"video"===I&&!L.isRecording&&g.exports.jsx(K,u({variant:"contained",onClick:H,className:"camera-button camera-button--record"},{children:g.exports.jsx(Zt,{size:30})})),"video"===I&&L.isRecording&&g.exports.jsx(K,u({variant:"contained",onClick:X,className:"camera-button camera-button--record"},{children:g.exports.jsx(Kt,{size:28})})),Y&&!L.isRecording&&g.exports.jsx("button",u({type:"button",onClick:function(){j(!G),J({facingMode:G?"environment":"user",width:{min:200},height:{min:300}})},className:"camera-button camera-switch"},{children:g.exports.jsx(Jt,{size:18})}))]}))]}))}));function X(){T.current&&T.current.stop()}},_t=function(e){var r=e.selected,n=e.value,o=e.size,i=e.children,a=e.className,s=e.onChange,c=t.useCallback((function(){s&&s(n)}),[s,n]);return g.exports.jsx("button",u({type:"button",className:M("ui-toggleBtn",void 0!==o?"ui-toggleBtn-size-".concat(o):"ui-toggleBtn-size-md",!0===r?"ui-toggleBtn-selected":null,a),onClick:c},{children:i}))};!function(e){e[e.Enter=0]="Enter",e[e.Entering=1]="Entering",e[e.Entered=2]="Entered",e[e.Exit=3]="Exit",e[e.Exiting=4]="Exiting",e[e.Exited=5]="Exited"}(Ht||(Ht={}));var $t=t.forwardRef((function(e,r){var n=e.trigger,o=e.mode,i=void 0===o?"appear":o,a=e.children,s=e.enterTimeout,c=e.exitTimeout,l=e.className,d=e.onEnter,f=e.onEntering,p=e.onEntered,h=e.onExit,m=e.onExiting,v=e.onExited,w=t.useRef(null),y=t.useRef(),A=t.useState((function(){return"appear"===i?Ht.Exited:Ht.Entered}));A[0],A[1],t.useEffect((function(){return function(){y.current&&window.clearTimeout(y.current)}}),[y]),t.useEffect((function(){n?(y.current&&window.clearTimeout(y.current),w.current.classList.remove("".concat(l,"-exit")),w.current.classList.remove("".concat(l,"-exiting")),w.current.classList.remove("".concat(l,"-exited")),d&&d(),w.current.classList.add("".concat(l,"-enter")),y.current=window.setTimeout((function(){f&&f(),w.current&&w.current.classList.add("".concat(l,"-entering")),y.current=window.setTimeout((function(){p&&p(),w.current&&w.current.classList.add("".concat(l,"-entered"))}),s||1e3)}),10)):(y.current&&window.clearTimeout(y.current),w.current.classList.remove("".concat(l,"-enter")),w.current.classList.remove("".concat(l,"-entering")),w.current.classList.remove("".concat(l,"-entered")),h&&h(),w.current.classList.add("".concat(l,"-exit")),y.current=window.setTimeout((function(){m&&m(),w.current&&w.current.classList.add("".concat(l,"-exiting")),y.current=window.setTimeout((function(){v&&v(),w.current&&w.current.classList.add("".concat(l,"-exited"))}),c||1e3)})))}),[n]);var C=t.useMemo((function(){if(a){var e=u(u({},a.props),{className:M(l,a.props.className),ref:w});return t.cloneElement(a,e)}}),[a,w]);return g.exports.jsx(g.exports.Fragment,{children:C})}));$t.propTypes={},$t.defaultProps={};var er=t.forwardRef((function(e,t){var r=e.trigger,n=e.children,o=e.onEnter,i=e.onEntering,a=e.onEntered,s=e.onExit,c=e.onExiting,l=e.onExited;return g.exports.jsx($t,u({ref:t,trigger:r,mode:"appear",className:"ui-fade",enterTimeout:160,exitTimeout:160,onEnter:o,onExit:s,onEntering:i,onEntered:a,onExiting:c,onExited:l},{children:n}))}));er.propTypes={},er.defaultProps={};var tr=function(e){var r=e.children,n=e.title;e.anchorEl;var o=e.enterDelay,i=void 0===o?0:o,a=e.leaveDelay,s=void 0===a?0:a,c=e.className,l=e.disabled,d=t.useState(void 0),f=d[0],p=d[1],h=t.useState(!1),m=h[0],v=h[1],w=t.useState(!0),y=w[0],A=w[1],C=t.useState(!1),E=C[0],b=C[1],B=t.useRef(),x=t.useRef();t.useEffect((function(){!0===l&&v(!1)}),[l]);var T,D=function(){v(!0)},I=function(){v(!1)},F=function(e){E||(clearTimeout(B.current),clearTimeout(x.current),f||p(e.currentTarget),x.current=setTimeout((function(){I()}),s))},q=function(e){E||(clearTimeout(B.current),clearTimeout(x.current),f||p(e.currentTarget),!0!==l&&(B.current=setTimeout((function(){D()}),i)))},k=function(e){b(!0),clearTimeout(B.current),clearTimeout(x.current),f||p(e.currentTarget),!0!==l&&(B.current=setTimeout((function(){D()}),2e3))},N=function(e){clearTimeout(B.current),clearTimeout(x.current),f||p(e.currentTarget),x.current=setTimeout((function(){I()}),3e3)};if(r){var R=u(u({},r.props),{onFocus:function(e){f||p(e.currentTarget),B.current=setTimeout((function(){D()}),i)},onMouseEnter:function(e){E||(clearTimeout(B.current),clearTimeout(x.current),f||p(e.currentTarget),!0!==l&&(B.current=setTimeout((function(){D()}),i)))},onMouseLeave:F,onMouseOver:q,onTouchStart:k,onTouchEnd:N});T=t.cloneElement(r,R)}var G=m||!y;return g.exports.jsxs(g.exports.Fragment,{children:[T,g.exports.jsx(Q,u({role:"tooltip",anchorEl:f,open:G,className:M("ui-tooltip",c),onMouseOver:E?void 0:q,onMouseLeave:E?void 0:F,onTouchStart:k,onTouchEnd:N},{children:g.exports.jsx(er,u({trigger:m,onEnter:function(){A(!1)},onExited:function(){A(!0)}},{children:g.exports.jsx("div",u({className:"ui-tooltip-content"},{children:n}))}))}))]})};function rr(t,r){var n=e.useCallback((function(e){var n=e.target,o=r.reduce((function(e,t){if(!t)return e;var r=function(e){var t;if(!e)return document.body;if("[object String]"===Object.prototype.toString.call(e)){var r=document.getElementById(e);return null!=r?r:document.body}var n=e;return n&&void 0!==n.current?null!==(t=n.current)&&void 0!==t?t:void 0:e}(t);return!1!==e&&r&&null!==r?!r.contains(n):e}),!0);t&&o&&t()}),[t]);e.useEffect((function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}),[r,n])}var nr=function(e){var t=e.tag;e.className;var r=e.onDelete;return g.exports.jsxs("span",u({className:"ui-taginputItem"},{children:[g.exports.jsx("span",u({className:"ui-taginputItemLabel"},{children:t.label})),g.exports.jsx("button",u({type:"button",className:"ui-taginputItemRemove",onClick:r},{children:"x"}))]}))},or=t.forwardRef((function(e,r){var n=e.className,o=e.value,i=e.onClick,a=e.onChange,s=t.useRef(null),c=t.useCallback((function(e){a&&a(e.target.value)}),[a]);return t.useEffect((function(){if(r&&s)return T(r,s.current),function(){T(r,null)}}),[r,s]),g.exports.jsx(g.exports.Fragment,{children:g.exports.jsx("input",{ref:s,value:o,className:M("ui-taginputFilter",n),autoComplete:"off",spellCheck:"false","data-form-type":"other",onChange:c,onClick:i})})})),ir=function(e){var r=e.suggestion,n=e.onClick,o=t.useCallback((function(e){n&&n(r,e)}),[n]);return g.exports.jsx("div",u({role:"button",className:"ui-taginputSelectItem",tabIndex:0,onClick:o},{children:r.label}))},ar=function(e){var t=e.group,r=e.onClick,n=Array.isArray(t.suggestions)?t.suggestions.map((function(e,t){return!0===e.group?g.exports.jsx(ar,{group:e,onClick:r},t):g.exports.jsx(ir,{suggestion:e,onClick:r},t)})):null;return g.exports.jsxs("div",u({className:"ui-taginputSelectGroup"},{children:[g.exports.jsx("span",u({className:"ui-taginputSelectGroupLabel"},{children:t.label})),g.exports.jsx("div",u({className:"ui-taginputSelectGroupItems"},{children:n}))]}))},sr=t.forwardRef((function(e,r){var n=e.open,o=e.tags,i=e.disableFilter,a=e.suggestions,s=e.anchorEl,c=e.filter,l=e.onSuggestionClick,d=t.useMemo((function(){if(!Array.isArray(a))return[];if(i)return a;var e=Array.isArray(o)&&o.length>0,t=c&&c.length>0,r=[];return a.forEach((function(n){if(!0!==n.group)e&&o.some((function(e){return e.id===n.id}))||t&&n.label.toUpperCase().indexOf(c.toUpperCase())<0||r.push(u({},n));else if(Array.isArray(n.suggestions)){var i=u(u({},n),{suggestions:[]});n.suggestions.forEach((function(r){e&&o.some((function(e){return e.id===r.id}))||t&&r.label.toUpperCase().indexOf(c.toUpperCase())<0||i.suggestions.push(u({},r))})),i.suggestions.length>0&&r.push(i)}})),r}),[a,c,o]),f=t.useCallback((function(e){l&&l(e)}),[l]),p=n&&d.length>0,h=d.map((function(e,t){return!0===e.group?g.exports.jsx(ar,{group:e,onClick:f},t):g.exports.jsx(ir,{suggestion:e,onClick:f},t)}));return g.exports.jsx(Q,u({ref:r,open:p,anchorEl:s,placement:k},{children:g.exports.jsx("div",u({className:"ui-taginputSelect"},{children:h}))}))})),cr=function(e){var r=e.tags;e.className;var n=e.suggestions,o=e.disableFilter,i=e.onTextChange,a=e.onChange,s=t.useRef(null),c=t.useRef(null),l=t.useRef(null),d=t.useState(""),f=d[0],p=d[1],m=t.useState(!1),v=m[0],w=m[1];rr((function(){w(!1)}),[s,c]);var y=t.useCallback((function(e){if(a&&Array.isArray(r)){var t=r.findIndex((function(t){return t.id===e.id}));if(!(t<0)){var n=h([],r,!0);n.splice(t,1),a(n)}}}),[r,a]),A=t.useCallback((function(e){if(e){var t={id:e.id,label:e.label,value:e.value},n=Array.isArray(r)?h(h([],r,!0),[t],!1):[t];w(!1),a&&a(n),p(""),i&&i("")}}),[r,a,i]),C=t.useCallback((function(e){p(e),i&&i(e)}),[i]),E=Array.isArray(r)?r.map((function(e,t){return g.exports.jsx(nr,{tag:e,onDelete:function(){return y(e)}},t)})):[];return g.exports.jsxs("div",u({ref:l,className:"ui-taginput"},{children:[E,g.exports.jsx(or,{ref:s,value:f,onChange:C,onClick:function(){w(!0)}}),g.exports.jsx(sr,{ref:c,open:v,anchorEl:s,filter:f,tags:r,suggestions:n,disableFilter:o,onSuggestionClick:A})]}))},lr=function(e){var r=e.containerRef;e.className;var n=e.children,o=e.onClick;e.onClose;var i=t.useRef(null);return t.useEffect((function(){if(i&&r&&i.current&&r.current){var e=r.current.getBoundingClientRect(),t=i.current.getBoundingClientRect(),n=e.width,o="0px",a="unset";e.right+t.width>=window.innerWidth&&(n=-t.width),t.bottom>=window.innerHeight&&(a="".concat(-(window.innerHeight-e.bottom-15).toFixed(),"px"),o="unset"),i.current.setAttribute("style","opacity: 1; left: ".concat(n.toFixed(),"px; bottom: ").concat(a,"; top: ").concat(o,";"))}}),[i]),g.exports.jsx("div",u({ref:i,className:"ui-menu"},{children:g.exports.jsx("ul",u({className:"ui-menuList",onClick:o,onContextMenu:o},{children:n}))}))};function ur(t){var r=e.useState(),n=r[0],o=r[1];return e.useEffect((function(){o(function(e){var t;if(e){if("[object String]"===Object.prototype.toString.call(e)){var r=document.getElementById(e);return null!=r?r:void 0}var n=e;return n&&void 0!==n.current?null!==(t=n.current)&&void 0!==t?t:void 0:e}}(t))}),[t]),n}lr.propTypes={className:l.string},lr.defaultProps={className:void 0};var dr=function(e){var r=e.className,n=e.children,o=e.placement,i=e.open,a=e.container,s=e.onOpen,c=e.onClose,l=t.useRef(null),d=ur(a),f=t.useState(null),p=f[0],h=f[1];rr((function(){i&&c&&c()}),[l]);var m=t.useCallback((function(e){e.preventDefault(),e.ctrlKey||(h({mouseX:e.pageX-2,mouseY:e.pageY-4}),s&&s())}),[s]),v=function(e){e.preventDefault()};return t.useEffect((function(){var e=null!=d?d:document;return e.addEventListener("contextmenu",m),e!==document&&document.addEventListener("contextmenu",v),function(){e.removeEventListener("contextmenu",m),document.removeEventListener("contextmenu",v)}}),[d,m]),g.exports.jsx(Q,u({ref:l,anchorPosition:null!==p?{top:p.mouseY,left:p.mouseX}:void 0,placement:o,open:i,overflow:!1},{children:g.exports.jsx(lr,u({className:r,onClose:c,onClick:function(e){e&&2===e.button&&(e.preventDefault(),e.stopPropagation())},containerRef:l},{children:n}))}))};dr.propTypes={className:l.string},dr.defaultProps={className:void 0};var fr=function(e){return e.className,g.exports.jsx("hr",{})};fr.propTypes={className:l.string},fr.defaultProps={className:void 0};var pr=function(e){var t=e.className;return g.exports.jsx("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",className:M("ui-icon",t),transform:"rotate(180 0 0)"},{children:g.exports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2929 8.29289C11.6834 7.90237 12.3166 7.90237 12.7071 8.29289L17.7071 13.2929C18.0976 13.6834 18.0976 14.3166 17.7071 14.7071C17.3166 15.0976 16.6834 15.0976 16.2929 14.7071L12 10.4142L7.70711 14.7071C7.31658 15.0976 6.68342 15.0976 6.29289 14.7071C5.90237 14.3166 5.90237 13.6834 6.29289 13.2929L11.2929 8.29289Z"})}))},hr=function(e){var t=e.className;return g.exports.jsx("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 7",fill:"none",className:M("ui-icon",t),transform:"rotate(90 0 0)",preserveAspectRatio:"xMidYMid meet"},{children:g.exports.jsx("path",{d:"M5.3,0.3c0.4-0.4,1-0.4,1.4,0l5,5c0.4,0.4,0.4,1,0,1.4c-0.4,0.4-1,0.4-1.4,0L6,2.4L1.7,6.7c-0.4,0.4-1,0.4-1.4,0c-0.4-0.4-0.4-1,0-1.4L5.3,0.3z"})}))},gr=function(e){var t=e.className;return g.exports.jsx("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 7",fill:"none",className:M("ui-icon",t),transform:"rotate(270 0 0)",preserveAspectRatio:"xMidYMid meet"},{children:g.exports.jsx("path",{d:"M5.3,0.3c0.4-0.4,1-0.4,1.4,0l5,5c0.4,0.4,0.4,1,0,1.4c-0.4,0.4-1,0.4-1.4,0L6,2.4L1.7,6.7c-0.4,0.4-1,0.4-1.4,0c-0.4-0.4-0.4-1,0-1.4L5.3,0.3z"})}))},mr=function(e){var t=e.className;return g.exports.jsx("svg",u({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:M("ui-icon",t)},{children:g.exports.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}))},vr=function(e){var r=e.label,n=e.icon,o=e.className,i=e.style;e.active;var a=e.disable,s=e.children,c=e.itemTemplate,l=e.onClick,d=t.useState(!1),f=d[0],p=d[1],h=t.useRef(null),m=t.useCallback((function(e){l&&!0!==a&&l(e)}),[l]),v=null!=s;return g.exports.jsxs("li",u({className:M("ui-menuItem",!0===a?"ui-menuItem-disable":null,o),style:i,onMouseEnter:function(){p(!0)},onMouseLeave:function(){p(!1)},ref:h},{children:[g.exports.jsxs("button",u({type:"button",className:"ui-menuItem-btn",onClick:m},{children:[n&&g.exports.jsx("div",u({className:"ui-menuItem-icon"},{children:n})),g.exports.jsx("span",{children:null!=c?c:r}),v&&g.exports.jsx("div",u({className:"ui-menuItem-menuIconContainer"},{children:g.exports.jsx(hr,{className:"ui-menuItem-menuIcon"})}))]})),v&&f&&g.exports.jsx(lr,u({containerRef:h},{children:s}))]}))};vr.propTypes={className:l.string},vr.defaultProps={className:void 0};var wr=function(e){var r=e.className,n=e.children,o=e.placement,i=e.open,a=e.anchorPosition,s=e.anchorEl,c=e.onClose,l=t.useRef(null);return rr((function(){i&&c&&c()}),[l]),i&&(a||s)?g.exports.jsx(Q,u({ref:l,anchorPosition:a,anchorEl:s,placement:o,open:i,overflow:!1,className:"ui-menu-popper"},{children:g.exports.jsx(lr,u({className:r,onClose:c,onClick:function(e){e&&2===e.button&&(e.preventDefault(),e.stopPropagation())},containerRef:l},{children:n}))})):null};wr.propTypes={className:l.string},wr.defaultProps={className:void 0};var yr=function(e){var t=e.title,r=e.className,n=e.children;return g.exports.jsxs(g.exports.Fragment,{children:[g.exports.jsx("li",u({className:M("ui-group-title",r)},{children:t})),n]})};yr.propTypes={className:l.string},yr.defaultProps={className:void 0};var Ar=function(e){var t=e.url,r=e.queryParams,n=e.token,o=e.label,i=e.onStart,a=e.onCompleted,s=e.onError;return g.exports.jsx(g.exports.Fragment,{children:g.exports.jsx(vr,{label:o,onClick:function(e){return f(void 0,void 0,void 0,(function(){var o,c,l,u,d,f,h,g;return p(this,(function(p){switch(p.label){case 0:i&&i(e),p.label=1;case 1:if(p.trys.push([1,4,,5]),!n)throw new Error("INVALID_TOKEN");if(!t)throw new Error("INVALID_URL");return(o={}).ContentType="application/json",o.Authorization="Bearer ".concat(n),c={method:"get",headers:o},l=new URL(t),r&&Object.keys(r).forEach((function(e){return l.searchParams.append(e,r[e])})),[4,fetch(l,c)];case 2:if(!(u=p.sent())||200!==u.status)throw new Error("An error occured while generating file");return[4,u.blob()];case 3:return(d=p.sent())&&(f=window.URL.createObjectURL(d),(h=document.createElement("a")).href=f,h.download=function(e){var t=e.get("Content-Disposition");if(!t)return null;var r=t.split(";"),n="filename=",o=r.find((function(e){return e.indexOf(n)>-1}));if(o){var i=o.search(n);if(i<0)return null;var a=o.substring(i+9).trim();if(0===a.length)return null;var s=a.substring(0,1);return'"'!==s&&"'"!==s?a:a.length<2||a[a.length-1]!==s?null:a.substring(1,a.length-1)}return null}(u.headers)||"file",h.click(),URL.revokeObjectURL(f),h.remove()),[3,5];case 4:throw g=p.sent(),s&&s(g),g;case 5:return a&&a(),[2]}}))}))}})})};Ar.propTypes={label:l.string};var Cr=function(e){e.open;var r=e.width,n=e.fullWidth,o=e.fullHeight,i=e.className,a=e.children,s=e.onClose,c=t.useRef(),l=t.useRef(null),d=t.useRef(null);t.useEffect((function(){return c.current=document.body.style.overflow,document.body.style.overflow="hidden",function(){var e;document.body.style.overflow=null!==(e=c.current)&&void 0!==e?e:"initial"}}),[]);var f=t.useCallback((function(){s&&s()}),[s]);return g.exports.jsx(x,u({ref:l},{children:g.exports.jsxs("div",u({ref:function(e){d.current=e},style:{position:"fixed",margin:"0"},role:"dialog",className:M("ui-dialog",i)},{children:[g.exports.jsx("div",{role:"presentation",className:"ui-dialog-overlay",onClick:f}),g.exports.jsx("div",u({className:M("ui-dialog-container",r?"ui-dialog-size-".concat(r):null,!0===n?"ui-dialog-size-fullwidth":null,!0===o?"ui-dialog-size-fullheight":null)},{children:a}))]}))}))};Cr.propTypes={className:l.string},Cr.defaultProps={className:void 0};var Er=function(e){var t=e.className,r=e.children;return g.exports.jsx("div",u({className:M("ui-dialog-content",t)},{children:r}))};Er.propTypes={className:l.string},Er.defaultProps={className:void 0};var br=function(e){var t=e.className,r=e.children;return g.exports.jsx("footer",u({className:M("ui-dialog-footer",t)},{children:r}))};br.propTypes={className:l.string},br.defaultProps={className:void 0};var Br=function(e){var t=e.className,r=e.children;return g.exports.jsx("header",u({className:M("ui-dialog-header",t)},{children:r}))};Br.propTypes={className:l.string},Br.defaultProps={className:void 0};var xr=function(e){var r=e.className,n=e.children,o=e.closeDisable,i=e.onClose,a=t.useCallback((function(){i&&!0!==o&&i()}),[i,o]),s=void 0!==i;return g.exports.jsxs("h3",u({className:M("ui-dialog-title",r)},{children:[n,s&&g.exports.jsx("button",u({type:"button",className:M("ui-dialog-close",o?"ui-dialog-close-disable":null),tabIndex:0,onClick:a},{children:g.exports.jsx(mr,{})}))]}))};xr.propTypes={className:l.string,children:l.node,closeDisable:l.bool},xr.defaultProps={className:void 0,children:void 0};var Tr=function(e){var t=e.className,r=e.children;return g.exports.jsx("div",u({className:M("ui-dialog-actions",t)},{children:r}))};Tr.propTypes={className:l.string,children:l.node},Tr.defaultProps={className:void 0,children:void 0};var Mr=function(e){var r=e.title,n=e.ok,o=e.cancel,i=e.children,a=e.className,s=e.onClose,c=t.useCallback((function(){s&&s(!1)}),[s]),l=t.useCallback((function(){s&&s(!0)}),[s]),d=null!=n?n:"oui",f=null!=o?o:"Annuler";return g.exports.jsxs(Cr,u({open:!0,className:M("ui-dialog-box","ui-dialog-confirm",a)},{children:[g.exports.jsx(Br,{children:g.exports.jsxs(g.exports.Fragment,{children:[g.exports.jsxs("svg",u({className:"ui-dialog-icon",xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 438.5 438.5"},{children:[g.exports.jsx("path",{d:"M409.1,109.2c-19.6-33.6-46.2-60.2-79.8-79.8C295.7,9.8,259.1,0,219.3,0c-39.8,0-76.5,9.8-110.1,29.4\r\n C75.6,49,49,75.6,29.4,109.2C9.8,142.8,0,179.5,0,219.3c0,39.8,9.8,76.5,29.4,110.1c19.6,33.6,46.2,60.2,79.8,79.8\r\n c33.6,19.6,70.3,29.4,110.1,29.4s76.5-9.8,110.1-29.4c33.6-19.6,60.2-46.2,79.8-79.8c19.6-33.6,29.4-70.3,29.4-110.1\r\n C438.5,179.5,428.7,142.8,409.1,109.2z M387.4,290.2c-9.7,22.6-22.7,42-39,58.2c-16.3,16.3-35.7,29.3-58.2,39\r\n c-22.6,9.7-46.2,14.6-70.9,14.6s-48.4-4.9-70.9-14.6c-22.6-9.7-42-22.7-58.2-39c-16.3-16.3-29.3-35.7-39-58.2\r\n c-9.7-22.6-14.6-46.2-14.6-70.9c0-24.7,4.9-48.4,14.6-70.9c9.7-22.6,22.7-42,39-58.2c16.3-16.3,35.7-29.3,58.2-39\r\n c22.6-9.7,46.2-14.6,70.9-14.6c24.7,0,48.4,4.9,70.9,14.6c22.6,9.7,42,22.7,58.2,39c16.3,16.3,29.3,35.7,39,58.2\r\n c9.7,22.6,14.6,46.2,14.6,70.9C402,244,397.1,267.7,387.4,290.2z"}),g.exports.jsx("path",{d:"M217,294c-14.6,0-26.5,12.2-26.5,26.8c0,14.3,11.5,26.8,26.5,26.8s26.8-12.5,26.8-26.8C243.8,306.2,231.6,294,217,294z"}),g.exports.jsx("path",{d:"M221.5,90.8c-47.1,0-68.7,27.9-68.7,46.7c0,13.6,11.5,19.9,20.9,19.9c18.8,0,11.2-26.8,46.7-26.8c17.4,0,31.4,7.7,31.4,23.7\r\n c0,18.8-19.5,29.6-31,39.4c-10.1,8.7-23.4,23-23.4,53c0,18.1,4.9,23.4,19.2,23.4c17.1,0,20.6-7.7,20.6-14.3\r\n c0-18.1,0.4-28.6,19.5-43.6c9.4-7.3,39-31,39-63.8S266.1,90.8,221.5,90.8z"})]})),g.exports.jsx("h1",u({className:"ui-dialog-title"},{children:r}))]})}),g.exports.jsx(Er,{children:i}),g.exports.jsxs(br,{children:[g.exports.jsx(K,u({className:"dialog-action-ok dialog-action",onClick:l},{children:d})),g.exports.jsx(K,u({className:"dialog-action-close dialog-action",onClick:c},{children:f}))]})]}))};Mr.propTypes={className:l.string},Mr.defaultProps={className:void 0};var Dr=function(e){var r=e.title,n=e.ok,o=e.children,i=e.className,a=e.onClose,s=t.useCallback((function(){a&&a(!0)}),[a]),c=null!=n?n:"fermer";return g.exports.jsxs(Cr,u({open:!0,className:M("ui-dialog-box","ui-dialog-error",i)},{children:[g.exports.jsx(Br,{children:g.exports.jsxs(g.exports.Fragment,{children:[g.exports.jsxs("svg",u({className:"ui-dialog-icon",xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 438.533 438.533"},{children:[g.exports.jsx("path",{d:"M409.133,109.203c-19.608-33.592-46.205-60.189-79.798-79.796C295.736,9.801,259.058,0,219.273,0 c-39.781,0-76.47,9.801-110.063,29.407c-33.595,19.604-60.192,46.201-79.8,79.796C9.801,142.8,0,179.489,0,219.267 c0,39.78,9.804,76.463,29.407,110.062c19.607,33.592,46.204,60.189,79.799,79.798c33.597,19.605,70.283,29.407,110.063,29.407 s76.47-9.802,110.065-29.407c33.593-19.602,60.189-46.206,79.795-79.798c19.603-33.596,29.403-70.284,29.403-110.062 C438.533,179.485,428.732,142.795,409.133,109.203z M387.434,290.213c-9.709,22.556-22.696,41.97-38.969,58.245 c-16.271,16.269-35.689,29.26-58.245,38.965c-22.555,9.712-46.202,14.564-70.946,14.564c-24.744,0-48.391-4.853-70.948-14.564 c-22.554-9.705-41.971-22.696-58.245-38.965c-16.269-16.275-29.259-35.687-38.97-58.245 c-9.707-22.552-14.562-46.206-14.562-70.946c0-24.744,4.854-48.391,14.562-70.948c9.707-22.554,22.697-41.968,38.97-58.245 c16.274-16.269,35.691-29.26,58.245-38.97c22.554-9.704,46.205-14.558,70.948-14.558c24.74,0,48.395,4.851,70.946,14.558 c22.556,9.707,41.97,22.698,58.245,38.97c16.272,16.274,29.26,35.688,38.969,58.245c9.709,22.554,14.564,46.201,14.564,70.948 C402.002,244.011,397.143,267.664,387.434,290.213z"}),g.exports.jsx("path",{d:"M284.368,258.668c-19.219-14.086-40.926-21.129-65.095-21.129c-24.172,0-45.871,7.039-65.096,21.129 c-19.224,14.085-32.358,32.641-39.397,55.671c-1.521,4.757-1.143,9.381,1.141,13.847c2.286,4.469,5.898,7.467,10.85,8.993 c4.758,1.526,9.373,1.143,13.846-1.144c4.471-2.285,7.467-5.899,8.991-10.848c4.759-15.235,13.562-27.556,26.409-36.979 c12.847-9.418,27.263-14.127,43.252-14.127c15.987,0,30.412,4.712,43.251,14.127c12.854,9.424,21.655,21.744,26.412,36.979 c1.52,4.948,4.564,8.562,9.134,10.848c4.568,2.286,9.236,2.67,13.989,1.144c4.761-1.526,8.278-4.524,10.564-8.993 c2.286-4.466,2.669-9.09,1.14-13.847C316.729,291.312,303.591,272.75,284.368,258.668z"}),g.exports.jsx("path",{d:"M146.181,182.725c10.085,0,18.699-3.576,25.837-10.709c7.139-7.135,10.708-15.749,10.708-25.837 c0-10.089-3.569-18.699-10.708-25.837s-15.752-10.709-25.837-10.709c-10.088,0-18.702,3.571-25.84,10.709 c-7.135,7.139-10.707,15.749-10.707,25.837c0,10.088,3.568,18.702,10.707,25.837C127.482,179.152,136.093,182.725,146.181,182.725 z"}),g.exports.jsx("path",{d:"M292.359,109.631c-10.089,0-18.706,3.571-25.845,10.709c-7.132,7.139-10.708,15.749-10.708,25.837 c0,10.088,3.576,18.702,10.708,25.837c7.139,7.137,15.756,10.709,25.845,10.709c10.081,0,18.698-3.576,25.837-10.709 c7.139-7.135,10.708-15.749,10.708-25.837c0-10.089-3.569-18.699-10.708-25.837S302.44,109.631,292.359,109.631z"})]})),g.exports.jsx("h1",u({className:"ui-dialog-title"},{children:r}))]})}),g.exports.jsx(Er,{children:o}),g.exports.jsx(br,{children:g.exports.jsx(K,u({className:"dialog-action-ok dialog-action",onClick:s},{children:c}))})]}))};Dr.propTypes={className:l.string},Dr.defaultProps={className:void 0};var Ir=function(e){var r=e.title,n=e.ok,o=e.children,i=e.className,a=e.onClose,s=t.useCallback((function(){a&&a(!0)}),[a]),c=null!=n?n:"fermer";return g.exports.jsxs(Cr,u({open:!0,className:M("ui-dialog-box","ui-dialog-warning",i)},{children:[g.exports.jsx(Br,{children:g.exports.jsxs(g.exports.Fragment,{children:[g.exports.jsxs("svg",u({className:"ui-dialog-icon",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 512 512"},{children:[g.exports.jsx("polygon",{fill:"#FFA418",points:"0,477.703 256,477.703 289.391,256 256,34.297"}),g.exports.jsx("polygon",{fill:"#FF8A1E",points:"256,34.297 256,477.703 512,477.703"}),g.exports.jsx("circle",{fill:"#324860",cx:"256",cy:"405.359",r:"16.696"}),g.exports.jsx("rect",{x:"239.304",y:"177.185",fill:"#324860",width:"33.391",height:"178.087"})]})),g.exports.jsx("h1",u({className:"ui-dialog-title"},{children:r}))]})}),g.exports.jsx(Er,{children:o}),g.exports.jsx(br,{children:g.exports.jsx(K,u({className:"dialog-action-ok dialog-action",onClick:s},{children:c}))})]}))};Ir.propTypes={className:l.string},Ir.defaultProps={className:void 0};export{Ar as AuthDownloadLink,U as BarLoader,K as Button,Xt as Camera,pr as ChevronDownIcon,gr as ChevronLeftIcon,hr as ChevronRightIcon,Mr as ConfirmDialog,dr as ContextMenu,mr as CrossIcon,Cr as Dialog,Tr as DialogActions,Er as DialogContent,br as DialogFooter,Br as DialogHeader,xr as DialogTitle,fr as Divider,x as DomContainer,Dr as ErrorDialog,lr as Menu,yr as MenuGroup,vr as MenuItem,Q as Popper,wr as PopupMenu,qt as Scanner,W as Selected,L as Spinner,cr as TagInput,_t as ToggleButton,tr as Tooltip,Ir as WarningDialog};
|
|
19
19
|
//# sourceMappingURL=index.js.map
|