diff --git a/.env.example b/.env.example index 83dff35..520e1c4 100644 --- a/.env.example +++ b/.env.example @@ -8,6 +8,8 @@ POSTGRES_DB=form_templates POSTGRES_PORT=5432 POSTGRES_HOST=db +SSO_URL= +SSO_REALM= SSO_CLIENT_ID= SSO_CLIENT_SECRET= -SSO_AUTH_SERVER_URL=https://dev.loginproxy.gov.bc.ca/auth/realms/standard/protocol/openid-connect \ No newline at end of file +SSO_AUTH_SERVER_URL= diff --git a/README.md b/README.md index 9150fcd..8374b76 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,14 @@ # Template Repository - Template repository for the FormFoundry. + + Template repository for the FormFoundry. Allows developers to upload JSON templates and preview them in [Kiln](https://github.com/bcgov/kiln) ## Setup Instructions Requirements: - [Docker](https://docs.docker.com/engine/install/) +- [Pathfinder SSO](https://digital.gov.bc.ca/bcgov-common-components/pathfinder-sso/) +- [Kiln](https://github.com/bcgov/kiln) - [Insomnia](https://insomnia.rest/download) (Or use any REST API Client) Clone the repository: @@ -24,13 +27,13 @@ cd template-respository ## Configuration -Copy and rename `.env.example` file to `.env` +Copy and rename `.env.example` file to `.env` both in the root and in /app/client: ``` Copy-Item .env.example .env ``` -Update `SSO_CLIENT_ID` and `SSO_CLIENT_SECRET` variables in `.env` file with your credentials. +Update variables in `.env` files with your credentials and congifurations. ## Docker Deployment @@ -44,9 +47,20 @@ docker-compose build docker-compose up ``` Server should be listening on `localhost:3000` + +## User Interface + +To log into Template Repository, you need to have a valid IDIR, create and assign the 'Developer' role to the IDIR in Pathfinder SSO. + +Once logged in you can: +- Upload form templates +- View templates that have been uploaded in a tabular format +- Change the 'Deployment Status' of a template +- Preview a template in Kiln + ## API Calls -Ensure your REST API client has `Client Credentials` authentication configured: +Ensure your REST API client has SSO authentication configured: ``` ACCESS TOKEN URL: @@ -70,4 +84,4 @@ http://localhost:3000/api/forms/form_id/{form_id} ``` // GET request to list all form templates http://localhost:3000/api/forms-list -``` \ No newline at end of file +``` diff --git a/app/client/.env.example b/app/client/.env.example new file mode 100644 index 0000000..eb82cbc --- /dev/null +++ b/app/client/.env.example @@ -0,0 +1,4 @@ +REACT_APP_ENV=dev +REACT_APP_SSO_URL=http://somelocalhost +REACT_APP_KILN_PREVIEW_URL=http://somelocalhost/preview +REACT_APP_KILN_URL=http://somelocalhost diff --git a/app/client/.gitignore b/app/client/.gitignore index 1c37b55..d4f5299 100644 --- a/app/client/.gitignore +++ b/app/client/.gitignore @@ -7,9 +7,8 @@ # testing /coverage - # production -#/build +/build # misc .DS_Store diff --git a/app/client/build/asset-manifest.json b/app/client/build/asset-manifest.json index 42a4847..2ce955b 100644 --- a/app/client/build/asset-manifest.json +++ b/app/client/build/asset-manifest.json @@ -1,27 +1,13 @@ { "files": { - "main.css": "/static/css/main.1fd3d798.css", - "main.js": "/static/js/main.fa1ce5bd.js", - "static/js/453.419a5d54.chunk.js": "/static/js/453.419a5d54.chunk.js", - "static/media/BCSans-Regular.woff": "/static/media/BCSans-Regular.f5dc3fe0266e943f919a.woff", - "static/media/BCSans-Light.woff": "/static/media/BCSans-Light.da391b9efe35162ec766.woff", - "static/media/BCSans-BoldItalic.woff": "/static/media/BCSans-BoldItalic.3e0ad839c21ed503a782.woff", - "static/media/BCSans-Bold.woff": "/static/media/BCSans-Bold.e8313acee8c46a6af21f.woff", - "static/media/BCSans-Italic.woff": "/static/media/BCSans-Italic.f48cfbe1f83de23efac6.woff", - "static/media/BCSans-LightItalic.woff": "/static/media/BCSans-LightItalic.d5e4ab46feef44fb9fcb.woff", - "static/media/BCSans-Regular.woff2": "/static/media/BCSans-Regular.907e1e3d9ed599095d49.woff2", - "static/media/BCSans-Light.woff2": "/static/media/BCSans-Light.9e36f96492585ee1795e.woff2", - "static/media/BCSans-BoldItalic.woff2": "/static/media/BCSans-BoldItalic.bc56fa27e856aec204df.woff2", - "static/media/BCSans-Bold.woff2": "/static/media/BCSans-Bold.8f6d33daf96396e5b815.woff2", - "static/media/BCSans-Italic.woff2": "/static/media/BCSans-Italic.035a3cc8cebbad26dd01.woff2", - "static/media/BCSans-LightItalic.woff2": "/static/media/BCSans-LightItalic.cc6b0797290d252bfd79.woff2", + "main.css": "/static/css/main.2dd93031.css", + "main.js": "/static/js/main.00d1c474.js", "index.html": "/index.html", - "main.1fd3d798.css.map": "/static/css/main.1fd3d798.css.map", - "main.fa1ce5bd.js.map": "/static/js/main.fa1ce5bd.js.map", - "453.419a5d54.chunk.js.map": "/static/js/453.419a5d54.chunk.js.map" + "main.2dd93031.css.map": "/static/css/main.2dd93031.css.map", + "main.00d1c474.js.map": "/static/js/main.00d1c474.js.map" }, "entrypoints": [ - "static/css/main.1fd3d798.css", - "static/js/main.fa1ce5bd.js" + "static/css/main.2dd93031.css", + "static/js/main.00d1c474.js" ] } \ No newline at end of file diff --git a/app/client/build/favicon.ico b/app/client/build/favicon.ico index a11777c..930e2e6 100644 Binary files a/app/client/build/favicon.ico and b/app/client/build/favicon.ico differ diff --git a/app/client/build/index.html b/app/client/build/index.html index c1ff7a0..b6309fb 100644 --- a/app/client/build/index.html +++ b/app/client/build/index.html @@ -1 +1 @@ -React App
\ No newline at end of file +Template Repository
\ No newline at end of file diff --git a/app/client/build/manifest.json b/app/client/build/manifest.json index 080d6c7..c18ba63 100644 --- a/app/client/build/manifest.json +++ b/app/client/build/manifest.json @@ -1,6 +1,6 @@ { - "short_name": "React App", - "name": "Create React App Sample", + "short_name": "Template Repository", + "name": "Template Repository", "icons": [ { "src": "favicon.ico", diff --git a/app/client/build/static/css/main.1fd3d798.css b/app/client/build/static/css/main.1fd3d798.css deleted file mode 100644 index f33ae54..0000000 --- a/app/client/build/static/css/main.1fd3d798.css +++ /dev/null @@ -1,2 +0,0 @@ -body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.App{background-color:#fff;color:#000;text-align:left;transition:background-color .3s,color .3s}.App-header{align-items:center;display:flex;flex-direction:column;font-size:calc(10px + 2vmin);justify-content:center;min-height:100vh;transition:background-color .3s}.bcds-header{justify-content:normal!important}.bcds-header--container{max-width:100%!important}@font-face{font-family:BC Sans;font-style:normal;font-weight:400;src:url(/static/media/BCSans-Regular.907e1e3d9ed599095d49.woff2) format("woff2"),url(/static/media/BCSans-Regular.f5dc3fe0266e943f919a.woff) format("woff")}@font-face{font-family:BC Sans;font-style:italic;font-weight:400;src:url(/static/media/BCSans-Italic.035a3cc8cebbad26dd01.woff2) format("woff2"),url(/static/media/BCSans-Italic.f48cfbe1f83de23efac6.woff) format("woff")}@font-face{font-family:BC Sans;font-style:normal;font-weight:700;src:url(/static/media/BCSans-Bold.8f6d33daf96396e5b815.woff2) format("woff2"),url(/static/media/BCSans-Bold.e8313acee8c46a6af21f.woff) format("woff")}@font-face{font-family:BC Sans;font-style:italic;font-weight:700;src:url(/static/media/BCSans-BoldItalic.bc56fa27e856aec204df.woff2) format("woff2"),url(/static/media/BCSans-BoldItalic.3e0ad839c21ed503a782.woff) format("woff")}@font-face{font-family:BC Sans;font-style:normal;font-weight:300;src:url(/static/media/BCSans-Light.9e36f96492585ee1795e.woff2) format("woff2"),url(/static/media/BCSans-Light.da391b9efe35162ec766.woff) format("woff")}@font-face{font-family:BC Sans;font-style:italic;font-weight:300;src:url(/static/media/BCSans-LightItalic.cc6b0797290d252bfd79.woff2) format("woff2"),url(/static/media/BCSans-LightItalic.d5e4ab46feef44fb9fcb.woff) format("woff")} -/*# sourceMappingURL=main.1fd3d798.css.map*/ \ No newline at end of file diff --git a/app/client/build/static/css/main.1fd3d798.css.map b/app/client/build/static/css/main.1fd3d798.css.map deleted file mode 100644 index 08b53eb..0000000 --- a/app/client/build/static/css/main.1fd3d798.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/css/main.1fd3d798.css","mappings":"AAAA,KAKE,kCAAmC,CACnC,iCAAkC,CAJlC,mIAEY,CAHZ,QAMF,CAEA,KACE,uEAEF,CCZA,KAGE,qBAAyB,CACzB,UAAc,CAHd,eAAgB,CAChB,yCAGF,CAEA,YAIE,kBAAmB,CAFnB,YAAa,CACb,qBAAsB,CAGtB,4BAA6B,CAD7B,sBAAuB,CAJvB,gBAAiB,CAMjB,+BACF,CAEA,aACE,gCACF,CAEA,wBACE,wBACF,CCvBA,WACE,mBAAsB,CACtB,iBAAkB,CAClB,eAAgB,CAChB,2JAEF,CAEA,WACE,mBAAsB,CACtB,iBAAkB,CAClB,eAAgB,CAChB,yJAEF,CAEA,WACE,mBAAsB,CACtB,iBAAkB,CAClB,eAAgB,CAChB,qJAEF,CAEA,WACE,mBAAsB,CACtB,iBAAkB,CAClB,eAAgB,CAChB,iKAEF,CAEA,WACE,mBAAsB,CACtB,iBAAkB,CAClB,eAAgB,CAChB,uJAEF,CAEA,WACE,mBAAsB,CACtB,iBAAkB,CAClB,eAAgB,CAChB,mKAEF","sources":["index.css","App.css","../node_modules/@bcgov/bc-sans/css/BC_Sans.css"],"sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n",".App {\n text-align: left;\n transition: background-color 0.3s, color 0.3s; \n background-color: #ffffff;\n color: #000000;\n}\n\n.App-header {\n min-height: 100vh;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n font-size: calc(10px + 2vmin);\n transition: background-color 0.3s;\n}\n\n.bcds-header {\n justify-content: normal !important;\n}\n\n.bcds-header--container {\n max-width: 100% !important;\n}\n","@font-face {\n font-family: \"BC Sans\";\n font-style: normal;\n font-weight: 400;\n src: url(\"../fonts/BCSans-Regular.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-Regular.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: \"BC Sans\";\n font-style: italic;\n font-weight: 400;\n src: url(\"../fonts/BCSans-Italic.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-Italic.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: \"BC Sans\";\n font-style: normal;\n font-weight: 700;\n src: url(\"../fonts/BCSans-Bold.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-Bold.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: \"BC Sans\";\n font-style: italic;\n font-weight: 700;\n src: url(\"../fonts/BCSans-BoldItalic.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-BoldItalic.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: \"BC Sans\";\n font-style: normal;\n font-weight: 300;\n src: url(\"../fonts/BCSans-Light.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-Light.woff\") format(\"woff\");\n}\n\n@font-face {\n font-family: \"BC Sans\";\n font-style: italic;\n font-weight: 300;\n src: url(\"../fonts/BCSans-LightItalic.woff2\") format(\"woff2\"),\n url(\"../fonts/BCSans-LightItalic.woff\") format(\"woff\");\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/app/client/build/static/js/453.419a5d54.chunk.js b/app/client/build/static/js/453.419a5d54.chunk.js deleted file mode 100644 index b1f4401..0000000 --- a/app/client/build/static/js/453.419a5d54.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkclient=self.webpackChunkclient||[]).push([[453],{453:(e,t,n)=>{n.r(t),n.d(t,{getCLS:()=>y,getFCP:()=>g,getFID:()=>C,getLCP:()=>P,getTTFB:()=>D});var i,r,a,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},f=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},s=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},m=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},v=-1,p=function(){return"hidden"===document.visibilityState?0:1/0},d=function(){f((function(e){var t=e.timeStamp;v=t}),!0)},l=function(){return v<0&&(v=p(),d(),s((function(){setTimeout((function(){v=p(),d()}),0)}))),{get firstHiddenTime(){return v}}},g=function(e,t){var n,i=l(),r=u("FCP"),a=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime-1&&e(t)},r=u("CLS",0),a=0,o=[],v=function(e){if(!e.hadRecentInput){var t=o[0],i=o[o.length-1];a&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e]),a>r.value&&(r.value=a,r.entries=o,n())}},p=c("layout-shift",v);p&&(n=m(i,r,t),f((function(){p.takeRecords().map(v),n(!0)})),s((function(){a=0,T=-1,r=u("CLS",0),n=m(i,r,t)})))},E={passive:!0,capture:!0},w=new Date,L=function(e,t){i||(i=t,r=e,a=new Date,F(removeEventListener),S())},S=function(){if(r>=0&&r1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){L(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,E),removeEventListener("pointercancel",i,E)};addEventListener("pointerup",n,E),addEventListener("pointercancel",i,E)}(t,e):L(t,e)}},F=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,b,E)}))},C=function(e,t){var n,a=l(),v=u("FID"),p=function(e){e.startTimeperformance.now())return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("load",(function(){return setTimeout(t,0)}))}}}]); -//# sourceMappingURL=453.419a5d54.chunk.js.map \ No newline at end of file diff --git a/app/client/build/static/js/453.419a5d54.chunk.js.map b/app/client/build/static/js/453.419a5d54.chunk.js.map deleted file mode 100644 index 3468df9..0000000 --- a/app/client/build/static/js/453.419a5d54.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/453.419a5d54.chunk.js","mappings":"gLAAA,IAAIA,EAAEC,EAAEC,EAAEC,EAAEC,EAAE,SAASJ,EAAEC,GAAG,MAAM,CAACI,KAAKL,EAAEM,WAAM,IAASL,GAAG,EAAEA,EAAEM,MAAM,EAAEC,QAAQ,GAAGC,GAAG,MAAMC,OAAOC,KAAKC,MAAM,KAAKF,OAAOG,KAAKC,MAAM,cAAcD,KAAKE,UAAU,MAAM,EAAEC,EAAE,SAAShB,EAAEC,GAAG,IAAI,GAAGgB,oBAAoBC,oBAAoBC,SAASnB,GAAG,CAAC,GAAG,gBAAgBA,KAAK,2BAA2BoB,MAAM,OAAO,IAAIlB,EAAE,IAAIe,qBAAqB,SAASjB,GAAG,OAAOA,EAAEqB,aAAaC,IAAIrB,EAAE,IAAI,OAAOC,EAAEqB,QAAQ,CAACC,KAAKxB,EAAEyB,UAAS,IAAKvB,CAAC,CAAC,CAAC,MAAMF,GAAG,CAAC,EAAE0B,EAAE,SAAS1B,EAAEC,GAAG,IAAIC,EAAE,SAASA,EAAEC,GAAG,aAAaA,EAAEqB,MAAM,WAAWG,SAASC,kBAAkB5B,EAAEG,GAAGF,IAAI4B,oBAAoB,mBAAmB3B,GAAE,GAAI2B,oBAAoB,WAAW3B,GAAE,IAAK,EAAE4B,iBAAiB,mBAAmB5B,GAAE,GAAI4B,iBAAiB,WAAW5B,GAAE,EAA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Y4B,OAAOzE,EAAE,CAAC6D,UAAU,aAAanB,UAAU,GAAG,IAAI,IAAIzC,KAAKF,EAAE,oBAAoBE,GAAG,WAAWA,IAAID,EAAEC,GAAGW,KAAK8D,IAAI3E,EAAEE,GAAGF,EAAE4E,gBAAgB,IAAI,OAAO3E,CAAC,CAAjL,GAAqL,GAAGC,EAAEI,MAAMJ,EAAEK,MAAMN,EAAE4E,cAAc3E,EAAEI,MAAM,GAAGJ,EAAEI,MAAMwC,YAAYlC,MAAM,OAAOV,EAAEM,QAAQ,CAACP,GAAGD,EAAEE,EAAE,CAAC,MAAMF,GAAG,CAAC,EAAE,aAAa2B,SAASmD,WAAWvC,WAAWtC,EAAE,GAAG6B,iBAAiB,QAAQ,WAAW,OAAOS,WAAWtC,EAAE,EAAE,GAAG,C","sources":["../node_modules/web-vitals/dist/web-vitals.js"],"sourcesContent":["var e,t,n,i,r=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:\"v2-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12)}},a=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if(\"first-input\"===e&&!(\"PerformanceEventTiming\"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},o=function(e,t){var n=function n(i){\"pagehide\"!==i.type&&\"hidden\"!==document.visibilityState||(e(i),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},u=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&e(t)}),!0)},c=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},f=-1,s=function(){return\"hidden\"===document.visibilityState?0:1/0},m=function(){o((function(e){var t=e.timeStamp;f=t}),!0)},v=function(){return f<0&&(f=s(),m(),u((function(){setTimeout((function(){f=s(),m()}),0)}))),{get firstHiddenTime(){return f}}},d=function(e,t){var n,i=v(),o=r(\"FCP\"),f=function(e){\"first-contentful-paint\"===e.name&&(m&&m.disconnect(),e.startTime-1&&e(t)},f=r(\"CLS\",0),s=0,m=[],v=function(e){if(!e.hadRecentInput){var t=m[0],i=m[m.length-1];s&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(s+=e.value,m.push(e)):(s=e.value,m=[e]),s>f.value&&(f.value=s,f.entries=m,n())}},h=a(\"layout-shift\",v);h&&(n=c(i,f,t),o((function(){h.takeRecords().map(v),n(!0)})),u((function(){s=0,l=-1,f=r(\"CLS\",0),n=c(i,f,t)})))},T={passive:!0,capture:!0},y=new Date,g=function(i,r){e||(e=r,t=i,n=new Date,w(removeEventListener),E())},E=function(){if(t>=0&&t1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){g(e,t),r()},i=function(){r()},r=function(){removeEventListener(\"pointerup\",n,T),removeEventListener(\"pointercancel\",i,T)};addEventListener(\"pointerup\",n,T),addEventListener(\"pointercancel\",i,T)}(t,e):g(t,e)}},w=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,S,T)}))},L=function(n,f){var s,m=v(),d=r(\"FID\"),p=function(e){e.startTimeperformance.now())return;n.entries=[t],e(n)}catch(e){}},\"complete\"===document.readyState?setTimeout(t,0):addEventListener(\"load\",(function(){return setTimeout(t,0)}))};export{h as getCLS,d as getFCP,L as getFID,F as getLCP,P as getTTFB};\n"],"names":["e","t","n","i","r","name","value","delta","entries","id","concat","Date","now","Math","floor","random","a","PerformanceObserver","supportedEntryTypes","includes","self","getEntries","map","observe","type","buffered","o","document","visibilityState","removeEventListener","addEventListener","u","persisted","c","f","s","m","timeStamp","v","setTimeout","firstHiddenTime","d","disconnect","startTime","push","window","performance","getEntriesByName","requestAnimationFrame","p","l","h","hadRecentInput","length","takeRecords","T","passive","capture","y","g","w","E","entryType","target","cancelable","processingStart","forEach","S","L","b","F","once","P","getEntriesByType","timing","max","navigationStart","responseStart","readyState"],"sourceRoot":""} \ No newline at end of file diff --git a/app/client/build/static/js/main.fa1ce5bd.js b/app/client/build/static/js/main.fa1ce5bd.js deleted file mode 100644 index 8282bad..0000000 --- a/app/client/build/static/js/main.fa1ce5bd.js +++ /dev/null @@ -1,385 +0,0 @@ -/*! For license information please see main.fa1ce5bd.js.LICENSE.txt */ -(()=>{var e={786:(e,t,n)=>{"use strict";var r=n(43),a=n(464);function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l,i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}(r),s=o(r),c=o(a);function u(e,t){return e[t]}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return[...e.slice(0,n),t,...e.slice(n)]}function f(){let e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";const n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).slice(),r=u(e,t);return r?n.splice(n.findIndex((e=>u(e,t)===r)),1):n.splice(n.findIndex((t=>t===e)),1),n}function p(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function g(e,t){return Math.ceil(e/t)}function h(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc"}(l||(l={}));const m=()=>null;function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={},r=[...arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]];return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(n=t.style||{},t.classNames&&(r=[...r,...t.classNames]),"function"==typeof t.style&&(n=t.style(e)||{}))})),{conditionalStyle:n,classNames:r.join(" ")}}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"id";const r=u(e,n);return r?t.some((e=>u(e,n)===r)):t.some((t=>t===e))}function v(e,t){return t?e.findIndex((e=>w(e.id,t))):-1}function w(e,t){return e==t}function x(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:n,rows:r,rowCount:a,mergeSelections:o}=t,l=!e.allSelected,i=!e.toggleOnSelectedRowsChange;if(o){const t=l?[...e.selectedRows,...r.filter((t=>!y(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!y(e,r,n)));return Object.assign(Object.assign({},e),{allSelected:l,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:i})}return Object.assign(Object.assign({},e),{allSelected:l,selectedCount:l?a:0,selectedRows:l?r:[],toggleOnSelectedRowsChange:i})}case"SELECT_SINGLE_ROW":{const{keyField:r,row:a,isSelected:o,rowCount:l,singleSelect:i}=t;return i?o?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[a],toggleOnSelectedRowsChange:n}):o?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:f(e.selectedRows,a,r),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===l,selectedRows:d(e.selectedRows,a),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:r,selectedRows:a,totalRows:o,mergeSelections:l}=t;if(l){const t=[...e.selectedRows,...a.filter((t=>!y(t,e.selectedRows,r)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:a.length,allSelected:a.length===o,selectedRows:a,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{sortDirection:r,selectedColumn:a,clearSelectedOnSort:o}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:a,sortDirection:r,currentPage:1}),o&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:r,paginationServer:a,visibleOnly:o,persistSelectedOnPageChange:l}=t,i=a&&l,s=a&&!l||o;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:r}),i&&{allSelected:!1}),s&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:r}=t;return Object.assign(Object.assign({},e),{currentPage:r,rowsPerPage:n})}}}const S=a.css` - pointer-events: none; - opacity: 0.4; -`,k=c.default.div` - position: relative; - box-sizing: border-box; - display: flex; - flex-direction: column; - width: 100%; - height: 100%; - max-width: 100%; - ${e=>{let{disabled:t}=e;return t&&S}}; - ${e=>{let{theme:t}=e;return t.table.style}}; -`,E=a.css` - position: sticky; - position: -webkit-sticky; /* Safari */ - top: 0; - z-index: 1; -`,C=c.default.div` - display: flex; - width: 100%; - ${e=>{let{$fixedHeader:t}=e;return t&&E}}; - ${e=>{let{theme:t}=e;return t.head.style}}; -`,T=c.default.div` - display: flex; - align-items: stretch; - width: 100%; - ${e=>{let{theme:t}=e;return t.headRow.style}}; - ${e=>{let{$dense:t,theme:n}=e;return t&&n.headRow.denseStyle}}; -`,P=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r{let{theme:t,$headCell:n}=e;return t[n?"headCells":"cells"].style}}; - ${e=>{let{$noPadding:t}=e;return t&&"padding: 0"}}; -`,D=c.default(O)` - flex-grow: ${e=>{let{button:t,grow:n}=e;return 0===n||t?0:n||1}}; - flex-shrink: 0; - flex-basis: 0; - max-width: ${e=>{let{maxWidth:t}=e;return t||"100%"}}; - min-width: ${e=>{let{minWidth:t}=e;return t||"100px"}}; - ${e=>{let{width:t}=e;return t&&a.css` - min-width: ${t}; - max-width: ${t}; - `}}; - ${e=>{let{right:t}=e;return t&&"justify-content: flex-end"}}; - ${e=>{let{button:t,center:n}=e;return(n||t)&&"justify-content: center"}}; - ${e=>{let{compact:t,button:n}=e;return(t||n)&&"padding: 0"}}; - - /* handle hiding cells */ - ${e=>{let{hide:t}=e;return t&&"sm"===t&&P` - display: none; - `}}; - ${e=>{let{hide:t}=e;return t&&"md"===t&&R` - display: none; - `}}; - ${e=>{let{hide:t}=e;return t&&"lg"===t&&_` - display: none; - `}}; - ${e=>{let{hide:t}=e;return t&&Number.isInteger(t)&&(e=>function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{let{$wrapCell:t}=e;return t?"normal":"nowrap"}}; - overflow: ${e=>{let{$allowOverflow:t}=e;return t?"visible":"hidden"}}; - text-overflow: ellipsis; - } -`,L=c.default(D).attrs((e=>({style:e.style})))` - ${e=>{let{$renderAsCell:t}=e;return!t&&F}}; - ${e=>{let{theme:t,$isDragging:n}=e;return n&&t.cells.draggingStyle}}; - ${e=>{let{$cellStyle:t}=e;return t}}; -`;var I=i.memo((function(e){let{id:t,column:n,row:r,rowIndex:a,dataTag:o,isDragging:l,onDragStart:s,onDragOver:c,onDragEnd:u,onDragEnter:d,onDragLeave:f}=e;const{conditionalStyle:p,classNames:g}=b(r,n.conditionalCellStyles,["rdt_TableCell"]);return i.createElement(L,{id:t,"data-column-id":n.id,role:"cell",className:g,"data-tag":o,$cellStyle:n.style,$renderAsCell:!!n.cell,$allowOverflow:n.allowOverflow,button:n.button,center:n.center,compact:n.compact,grow:n.grow,hide:n.hide,maxWidth:n.maxWidth,minWidth:n.minWidth,right:n.right,width:n.width,$wrapCell:n.wrap,style:p,$isDragging:l,onDragStart:s,onDragOver:c,onDragEnd:u,onDragEnter:d,onDragLeave:f},!n.cell&&i.createElement("div",{"data-tag":o},function(e,t,n,r){return t?n&&"function"==typeof n?n(e,r):t(e,r):null}(r,n.selector,n.format,a)),n.cell&&n.cell(r,a,n,t))}));const N="input";var A=i.memo((function(e){let{name:t,component:n=N,componentOptions:r={style:{}},indeterminate:a=!1,checked:o=!1,disabled:l=!1,onClick:s=m}=e;const c=n,u=c!==N?r.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(l),d=i.useMemo((()=>function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re[t])).forEach(((t,r)=>{const o=e;"function"==typeof t&&(a=Object.assign(Object.assign({},o),{[Object.keys(e)[r]]:t(...n)}))})),a||e}(r,a)),[r,a]);return i.createElement(c,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=a)},style:u,onClick:l?m:s,name:t,"aria-label":t,checked:o,disabled:l},d,{onChange:m}))}));const z=c.default(O)` - flex: 0 0 48px; - min-width: 48px; - justify-content: center; - align-items: center; - user-select: none; - white-space: nowrap; -`;function M(e){let{name:t,keyField:n,row:r,rowCount:a,selected:o,selectableRowsComponent:l,selectableRowsComponentProps:s,selectableRowsSingle:c,selectableRowDisabled:u,onSelectedRow:d}=e;const f=!(!u||!u(r));return i.createElement(z,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",$noPadding:!0},i.createElement(A,{name:t,component:l,componentOptions:s,checked:o,"aria-checked":o,onClick:()=>{d({type:"SELECT_SINGLE_ROW",row:r,isSelected:o,keyField:n,rowCount:a,singleSelect:c})},disabled:f}))}const $=c.default.button` - display: inline-flex; - align-items: center; - user-select: none; - white-space: nowrap; - border: none; - background-color: transparent; - ${e=>{let{theme:t}=e;return t.expanderButton.style}}; -`;function j(e){let{disabled:t=!1,expanded:n=!1,expandableIcon:r,id:a,row:o,onToggled:l}=e;const s=n?r.expanded:r.collapsed;return i.createElement($,{"aria-disabled":t,onClick:()=>l&&l(o),"data-testid":`expander-button-${a}`,disabled:t,"aria-label":n?"Collapse Row":"Expand Row",role:"button",type:"button"},s)}const H=c.default(O)` - white-space: nowrap; - font-weight: 400; - min-width: 48px; - ${e=>{let{theme:t}=e;return t.expanderCell.style}}; -`;function B(e){let{row:t,expanded:n=!1,expandableIcon:r,id:a,onToggled:o,disabled:l=!1}=e;return i.createElement(H,{onClick:e=>e.stopPropagation(),$noPadding:!0},i.createElement(j,{id:a,row:t,expanded:n,expandableIcon:r,disabled:l,onToggled:o}))}const W=c.default.div` - width: 100%; - box-sizing: border-box; - ${e=>{let{theme:t}=e;return t.expanderRow.style}}; - ${e=>{let{$extendedRowStyle:t}=e;return t}}; -`;var U=i.memo((function(e){let{data:t,ExpanderComponent:n,expanderComponentProps:r,extendedRowStyle:a,extendedClassNames:o}=e;const l=["rdt_ExpanderRow",...o.split(" ").filter((e=>"rdt_TableRow"!==e))].join(" ");return i.createElement(W,{className:l,$extendedRowStyle:a},i.createElement(n,Object.assign({data:t},r)))}));const V="allowRowEvents";var K,G,Q;t.OP=void 0,(K=t.OP||(t.OP={})).LTR="ltr",K.RTL="rtl",K.AUTO="auto",t.C1=void 0,(G=t.C1||(t.C1={})).LEFT="left",G.RIGHT="right",G.CENTER="center",t.$U=void 0,(Q=t.$U||(t.$U={})).SM="sm",Q.MD="md",Q.LG="lg";const Y=a.css` - &:hover { - ${e=>{let{$highlightOnHover:t,theme:n}=e;return t&&n.rows.highlightOnHoverStyle}}; - } -`,q=a.css` - &:hover { - cursor: pointer; - } -`,Z=c.default.div.attrs((e=>({style:e.style})))` - display: flex; - align-items: stretch; - align-content: stretch; - width: 100%; - box-sizing: border-box; - ${e=>{let{theme:t}=e;return t.rows.style}}; - ${e=>{let{$dense:t,theme:n}=e;return t&&n.rows.denseStyle}}; - ${e=>{let{$striped:t,theme:n}=e;return t&&n.rows.stripedStyle}}; - ${e=>{let{$highlightOnHover:t}=e;return t&&Y}}; - ${e=>{let{$pointerOnHover:t}=e;return t&&q}}; - ${e=>{let{$selected:t,theme:n}=e;return t&&n.rows.selectedHighlightStyle}}; - ${e=>{let{$conditionalStyle:t}=e;return t}}; -`;function X(e){let{columns:t=[],conditionalRowStyles:n=[],defaultExpanded:r=!1,defaultExpanderDisabled:a=!1,dense:o=!1,expandableIcon:l,expandableRows:s=!1,expandableRowsComponent:c,expandableRowsComponentProps:d,expandableRowsHideExpander:f,expandOnRowClicked:p=!1,expandOnRowDoubleClicked:g=!1,highlightOnHover:h=!1,id:y,expandableInheritConditionalStyles:v,keyField:x,onRowClicked:S=m,onRowDoubleClicked:k=m,onRowMouseEnter:E=m,onRowMouseLeave:C=m,onRowExpandToggled:T=m,onSelectedRow:P=m,pointerOnHover:R=!1,row:_,rowCount:O,rowIndex:D,selectableRowDisabled:F=null,selectableRows:L=!1,selectableRowsComponent:N,selectableRowsComponentProps:A,selectableRowsHighlight:z=!1,selectableRowsSingle:$=!1,selected:j,striped:H=!1,draggingColumnId:W,onDragStart:K,onDragOver:G,onDragEnd:Q,onDragEnter:Y,onDragLeave:q}=e;const[X,J]=i.useState(r);i.useEffect((()=>{J(r)}),[r]);const ee=i.useCallback((()=>{J(!X),T(!X,_)}),[X,T,_]),te=R||s&&(p||g),ne=i.useCallback((e=>{e.target.getAttribute("data-tag")===V&&(S(_,e),!a&&s&&p&&ee())}),[a,p,s,ee,S,_]),re=i.useCallback((e=>{e.target.getAttribute("data-tag")===V&&(k(_,e),!a&&s&&g&&ee())}),[a,g,s,ee,k,_]),ae=i.useCallback((e=>{E(_,e)}),[E,_]),oe=i.useCallback((e=>{C(_,e)}),[C,_]),le=u(_,x),{conditionalStyle:ie,classNames:se}=b(_,n,["rdt_TableRow"]),ce=z&&j,ue=v?ie:{},de=H&&D%2==0;return i.createElement(i.Fragment,null,i.createElement(Z,{id:`row-${y}`,role:"row",$striped:de,$highlightOnHover:h,$pointerOnHover:!a&&te,$dense:o,onClick:ne,onDoubleClick:re,onMouseEnter:ae,onMouseLeave:oe,className:se,$selected:ce,$conditionalStyle:ie},L&&i.createElement(M,{name:`select-row-${le}`,keyField:x,row:_,rowCount:O,selected:j,selectableRowsComponent:N,selectableRowsComponentProps:A,selectableRowDisabled:F,selectableRowsSingle:$,onSelectedRow:P}),s&&!f&&i.createElement(B,{id:le,expandableIcon:l,expanded:X,row:_,onToggled:ee,disabled:a}),t.map((e=>e.omit?null:i.createElement(I,{id:`cell-${e.id}-${le}`,key:`cell-${e.id}-${le}`,dataTag:e.ignoreRowClick||e.button?null:V,column:e,row:_,rowIndex:D,isDragging:w(W,e.id),onDragStart:K,onDragOver:G,onDragEnd:Q,onDragEnter:Y,onDragLeave:q})))),s&&X&&i.createElement(U,{key:`expander-${le}`,data:_,extendedRowStyle:ue,extendedClassNames:se,ExpanderComponent:c,expanderComponentProps:d}))}const J=c.default.span` - padding: 2px; - color: inherit; - flex-grow: 0; - flex-shrink: 0; - ${e=>{let{$sortActive:t}=e;return t?"opacity: 1":"opacity: 0"}}; - ${e=>{let{$sortDirection:t}=e;return"desc"===t&&"transform: rotate(180deg)"}}; -`,ee=e=>{let{sortActive:t,sortDirection:n}=e;return s.default.createElement(J,{$sortActive:t,$sortDirection:n},"\u25b2")},te=c.default(D)` - ${e=>{let{button:t}=e;return t&&"text-align: center"}}; - ${e=>{let{theme:t,$isDragging:n}=e;return n&&t.headCells.draggingStyle}}; -`,ne=a.css` - cursor: pointer; - span.__rdt_custom_sort_icon__ { - i, - svg { - transform: 'translate3d(0, 0, 0)'; - ${e=>{let{$sortActive:t}=e;return t?"opacity: 1":"opacity: 0"}}; - color: inherit; - font-size: 18px; - height: 18px; - width: 18px; - backface-visibility: hidden; - transform-style: preserve-3d; - transition-duration: 95ms; - transition-property: transform; - } - - &.asc i, - &.asc svg { - transform: rotate(180deg); - } - } - - ${e=>{let{$sortActive:t}=e;return!t&&a.css` - &:hover, - &:focus { - opacity: 0.7; - - span, - span.__rdt_custom_sort_icon__ * { - opacity: 0.7; - } - } - `}}; -`,re=c.default.div` - display: inline-flex; - align-items: center; - justify-content: inherit; - height: 100%; - width: 100%; - outline: none; - user-select: none; - overflow: hidden; - ${e=>{let{disabled:t}=e;return!t&&ne}}; -`,ae=c.default.div` - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -`;var oe=i.memo((function(e){let{column:t,disabled:n,draggingColumnId:r,selectedColumn:a={},sortDirection:o,sortIcon:s,sortServer:c,pagination:u,paginationServer:d,persistSelectedOnSort:f,selectableRowsVisibleOnly:p,onSort:g,onDragStart:h,onDragOver:m,onDragEnd:b,onDragEnter:y,onDragLeave:v}=e;i.useEffect((()=>{"string"==typeof t.selector&&console.error(`Warning: ${t.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]);const[x,S]=i.useState(!1),k=i.useRef(null);if(i.useEffect((()=>{k.current&&S(k.current.scrollWidth>k.current.clientWidth)}),[x]),t.omit)return null;const E=()=>{if(!t.sortable&&!t.selector)return;let e=o;w(a.id,t.id)&&(e=o===l.ASC?l.DESC:l.ASC),g({type:"SORT_CHANGE",sortDirection:e,selectedColumn:t,clearSelectedOnSort:u&&d&&!f||c||p})},C=e=>i.createElement(ee,{sortActive:e,sortDirection:o}),T=()=>i.createElement("span",{className:[o,"__rdt_custom_sort_icon__"].join(" ")},s),P=!(!t.sortable||!w(a.id,t.id)),R=!t.sortable||n,_=t.sortable&&!s&&!t.right,O=t.sortable&&!s&&t.right,D=t.sortable&&s&&!t.right,F=t.sortable&&s&&t.right;return i.createElement(te,{"data-column-id":t.id,className:"rdt_TableCol",$headCell:!0,allowOverflow:t.allowOverflow,button:t.button,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,center:t.center,width:t.width,draggable:t.reorder,$isDragging:w(t.id,r),onDragStart:h,onDragOver:m,onDragEnd:b,onDragEnter:y,onDragLeave:v},t.name&&i.createElement(re,{"data-column-id":t.id,"data-sort-id":t.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:R?void 0:E,onKeyPress:R?void 0:e=>{"Enter"===e.key&&E()},$sortActive:!R&&P,disabled:R},!R&&F&&T(),!R&&O&&C(P),"string"==typeof t.name?i.createElement(ae,{title:x?t.name:void 0,ref:k,"data-column-id":t.id},t.name):t.name,!R&&D&&T(),!R&&_&&C(P)))}));const le=c.default(O)` - flex: 0 0 48px; - justify-content: center; - align-items: center; - user-select: none; - white-space: nowrap; - font-size: unset; -`;function ie(e){let{headCell:t=!0,rowData:n,keyField:r,allSelected:a,mergeSelections:o,selectedRows:l,selectableRowsComponent:s,selectableRowsComponentProps:c,selectableRowDisabled:u,onSelectAllRows:d}=e;const f=l.length>0&&!a,p=u?n.filter((e=>!u(e))):n,g=0===p.length,h=Math.min(n.length,p.length);return i.createElement(le,{className:"rdt_TableCol",$headCell:t,$noPadding:!0},i.createElement(A,{name:"select-all-rows",component:s,componentOptions:c,onClick:()=>{d({type:"SELECT_ALL_ROWS",rows:p,rowCount:h,mergeSelections:o,keyField:r})},checked:a,indeterminate:f,disabled:g}))}function se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.OP.AUTO;const n="object"==typeof window,[r,a]=i.useState(!1);return i.useEffect((()=>{if(n)if("auto"!==e)a("rtl"===e);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],n=document.getElementsByTagName("HTML")[0],r="rtl"===t.dir||"rtl"===n.dir;a(e&&r)}}),[e,n]),r}const ce=c.default.div` - display: flex; - align-items: center; - flex: 1 0 auto; - height: 100%; - color: ${e=>{let{theme:t}=e;return t.contextMenu.fontColor}}; - font-size: ${e=>{let{theme:t}=e;return t.contextMenu.fontSize}}; - font-weight: 400; -`,ue=c.default.div` - display: flex; - align-items: center; - justify-content: flex-end; - flex-wrap: wrap; -`,de=c.default.div` - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - box-sizing: inherit; - z-index: 1; - align-items: center; - justify-content: space-between; - display: flex; - ${e=>{let{$rtl:t}=e;return t&&"direction: rtl"}}; - ${e=>{let{theme:t}=e;return t.contextMenu.style}}; - ${e=>{let{theme:t,$visible:n}=e;return n&&t.contextMenu.activeStyle}}; -`;function fe(e){let{contextMessage:t,contextActions:n,contextComponent:r,selectedCount:a,direction:o}=e;const l=se(o),s=a>0;return r?i.createElement(de,{$visible:s},i.cloneElement(r,{selectedCount:a})):i.createElement(de,{$visible:s,$rtl:l},i.createElement(ce,null,((e,t,n)=>{if(0===t)return null;const r=1===t?e.singular:e.plural;return n?`${t} ${e.message||""} ${r}`:`${t} ${r} ${e.message||""}`})(t,a,l)),i.createElement(ue,null,n))}const pe=c.default.div` - position: relative; - box-sizing: border-box; - overflow: hidden; - display: flex; - flex: 1 1 auto; - align-items: center; - justify-content: space-between; - width: 100%; - flex-wrap: wrap; - ${e=>{let{theme:t}=e;return t.header.style}} -`,ge=c.default.div` - flex: 1 0 auto; - color: ${e=>{let{theme:t}=e;return t.header.fontColor}}; - font-size: ${e=>{let{theme:t}=e;return t.header.fontSize}}; - font-weight: 400; -`,he=c.default.div` - flex: 1 0 auto; - display: flex; - align-items: center; - justify-content: flex-end; - - > * { - margin-left: 5px; - } -`,me=e=>{let{title:t,actions:n=null,contextMessage:r,contextActions:a,contextComponent:o,selectedCount:l,direction:s,showMenu:c=!0}=e;return i.createElement(pe,{className:"rdt_TableHeader",role:"heading","aria-level":1},i.createElement(ge,null,t),n&&i.createElement(he,null,n),c&&i.createElement(fe,{contextMessage:r,contextActions:a,contextComponent:o,direction:s,selectedCount:l}))};function be(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a{let{align:t}=e;return ye[t]}}; - flex-wrap: ${e=>{let{$wrapContent:t}=e;return t?"wrap":"nowrap"}}; - ${e=>{let{theme:t}=e;return t.subHeader.style}} -`,we=e=>{var{align:t="right",wrapContent:n=!0}=e,r=be(e,["align","wrapContent"]);return i.createElement(ve,Object.assign({align:t,$wrapContent:n},r))},xe=c.default.div` - display: flex; - flex-direction: column; -`,Se=c.default.div` - position: relative; - width: 100%; - border-radius: inherit; - ${e=>{let{$responsive:t,$fixedHeader:n}=e;return t&&a.css` - overflow-x: auto; - - // hidden prevents vertical scrolling in firefox when fixedHeader is disabled - overflow-y: ${n?"auto":"hidden"}; - min-height: 0; - `}}; - - ${e=>{let{$fixedHeader:t=!1,$fixedHeaderScrollHeight:n="100vh"}=e;return t&&a.css` - max-height: ${n}; - -webkit-overflow-scrolling: touch; - `}}; - - ${e=>{let{theme:t}=e;return t.responsiveWrapper.style}}; -`,ke=c.default.div` - position: relative; - box-sizing: border-box; - width: 100%; - height: 100%; - ${e=>e.theme.progress.style}; -`,Ee=c.default.div` - position: relative; - width: 100%; - ${e=>{let{theme:t}=e;return t.tableWrapper.style}}; -`,Ce=c.default(O)` - white-space: nowrap; - ${e=>{let{theme:t}=e;return t.expanderCell.style}}; -`,Te=c.default.div` - box-sizing: border-box; - width: 100%; - height: 100%; - ${e=>{let{theme:t}=e;return t.noData.style}}; -`,Pe=()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},s.default.createElement("path",{d:"M7 10l5 5 5-5z"}),s.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),Re=c.default.select` - cursor: pointer; - height: 24px; - max-width: 100%; - user-select: none; - padding-left: 8px; - padding-right: 24px; - box-sizing: content-box; - font-size: inherit; - color: inherit; - border: none; - background-color: transparent; - appearance: none; - direction: ltr; - flex-shrink: 0; - - &::-ms-expand { - display: none; - } - - &:disabled::-ms-expand { - background: #f60; - } - - option { - color: initial; - } -`,_e=c.default.div` - position: relative; - flex-shrink: 0; - font-size: inherit; - color: inherit; - margin-top: 1px; - - svg { - top: 0; - right: 0; - color: inherit; - position: absolute; - fill: currentColor; - width: 24px; - height: 24px; - display: inline-block; - user-select: none; - pointer-events: none; - } -`,Oe=e=>{var{defaultValue:t,onChange:n}=e,r=be(e,["defaultValue","onChange"]);return i.createElement(_e,null,i.createElement(Re,Object.assign({onChange:n,defaultValue:t},r)),i.createElement(Pe,null))},De={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return s.default.createElement("div",null,"To add an expander pass in a component instance via ",s.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:s.default.createElement((()=>s.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},s.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),s.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:s.default.createElement((()=>s.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},s.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),s.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:s.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:s.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:t.C1.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),s.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),s.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),s.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:s.default.createElement((()=>s.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},s.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),s.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:t.OP.AUTO,onChangePage:m,onChangeRowsPerPage:m,onRowClicked:m,onRowDoubleClicked:m,onRowMouseEnter:m,onRowMouseLeave:m,onRowExpandToggled:m,onSelectedRowsChange:m,onSort:m,onColumnOrderChange:m},Fe={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},Le=c.default.nav` - display: flex; - flex: 1 1 auto; - justify-content: flex-end; - align-items: center; - box-sizing: border-box; - padding-right: 8px; - padding-left: 8px; - width: 100%; - ${e=>{let{theme:t}=e;return t.pagination.style}}; -`,Ie=c.default.button` - position: relative; - display: block; - user-select: none; - border: none; - ${e=>{let{theme:t}=e;return t.pagination.pageButtonsStyle}}; - ${e=>{let{$isRTL:t}=e;return t&&"transform: scale(-1, -1)"}}; -`,Ne=c.default.div` - display: flex; - align-items: center; - border-radius: 4px; - white-space: nowrap; - ${P` - width: 100%; - justify-content: space-around; - `}; -`,Ae=c.default.span` - flex-shrink: 1; - user-select: none; -`,ze=c.default(Ae)` - margin: 0 24px; -`,Me=c.default(Ae)` - margin: 0 4px; -`;var $e=i.memo((function(e){let{rowsPerPage:t,rowCount:n,currentPage:r,direction:a=De.direction,paginationRowsPerPageOptions:o=De.paginationRowsPerPageOptions,paginationIconLastPage:l=De.paginationIconLastPage,paginationIconFirstPage:s=De.paginationIconFirstPage,paginationIconNext:c=De.paginationIconNext,paginationIconPrevious:u=De.paginationIconPrevious,paginationComponentOptions:d=De.paginationComponentOptions,onChangeRowsPerPage:f=De.onChangeRowsPerPage,onChangePage:p=De.onChangePage}=e;const h=(()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[n,r]=i.useState(t);return i.useEffect((()=>{if(!e)return()=>null;function n(){r(t())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),n})(),m=se(a),b=h.width&&h.width>599,y=g(n,t),v=r*t,w=v-t+1,x=1===r,S=r===y,k=Object.assign(Object.assign({},Fe),d),E=r===y?`${w}-${n} ${k.rangeSeparatorText} ${n}`:`${w}-${v} ${k.rangeSeparatorText} ${n}`,C=i.useCallback((()=>p(r-1)),[r,p]),T=i.useCallback((()=>p(r+1)),[r,p]),P=i.useCallback((()=>p(1)),[p]),R=i.useCallback((()=>p(g(n,t))),[p,n,t]),_=i.useCallback((e=>f(Number(e.target.value),r)),[r,f]),O=o.map((e=>i.createElement("option",{key:e,value:e},e)));k.selectAllRowsItem&&O.push(i.createElement("option",{key:-1,value:n},k.selectAllRowsItemText));const D=i.createElement(Oe,{onChange:_,defaultValue:t,"aria-label":k.rowsPerPageText},O);return i.createElement(Le,{className:"rdt_Pagination"},!k.noRowsPerPage&&b&&i.createElement(i.Fragment,null,i.createElement(Me,null,k.rowsPerPageText),D),b&&i.createElement(ze,null,E),i.createElement(Ne,null,i.createElement(Ie,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":x,onClick:P,disabled:x,$isRTL:m},s),i.createElement(Ie,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":x,onClick:C,disabled:x,$isRTL:m},u),!k.noRowsPerPage&&!b&&D,i.createElement(Ie,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":S,onClick:T,disabled:S,$isRTL:m},c),i.createElement(Ie,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":S,onClick:R,disabled:S,$isRTL:m},l)))}));const je=(e,t)=>{const n=i.useRef(!0);i.useEffect((()=>{n.current?n.current=!1:e()}),t)};var He=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Be}(e)}(e)},Be="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function We(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ge((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ue(e,t,n){return e.concat(t).map((function(e){return We(e,n)}))}function Ve(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function Ke(e,t){try{return t in e}catch(e){return!1}}function Ge(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ue,n.isMergeableObject=n.isMergeableObject||He,n.cloneUnlessOtherwiseSpecified=We;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Ve(e).forEach((function(t){r[t]=We(e[t],n)})),Ve(t).forEach((function(a){(function(e,t){return Ke(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(Ke(e,a)&&n.isMergeableObject(t[a])?r[a]=function(e,t){if(!t.customMerge)return Ge;var n=t.customMerge(e);return"function"==typeof n?n:Ge}(a,n)(e[a],t[a],n):r[a]=We(t[a],n))})),r}(e,t,n):We(t,n)}Ge.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ge(e,n,t)}),{})};var Qe=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ge);const Ye={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},qe={default:Ye,light:Ye,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function Ze(e,t,n,r){const[a,o]=i.useState((()=>p(e))),[s,c]=i.useState(""),u=i.useRef("");je((()=>{o(p(e))}),[e]);const d=i.useCallback((e=>{var t,n,r;const{attributes:o}=e.target,l=null===(t=o.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;l&&(u.current=(null===(r=null===(n=a[v(a,l)])||void 0===n?void 0:n.id)||void 0===r?void 0:r.toString())||"",c(u.current))}),[a]),f=i.useCallback((e=>{var n;const{attributes:r}=e.target,l=null===(n=r.getNamedItem("data-column-id"))||void 0===n?void 0:n.value;if(l&&u.current&&l!==u.current){const e=v(a,u.current),n=v(a,l),r=[...a];r[e]=a[n],r[n]=a[e],o(r),t(r)}}),[t,a]),g=i.useCallback((e=>{e.preventDefault()}),[]),h=i.useCallback((e=>{e.preventDefault()}),[]),m=i.useCallback((e=>{e.preventDefault(),u.current="",c("")}),[]),b=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?l.ASC:l.DESC}(r),y=i.useMemo((()=>a[v(a,null==n?void 0:n.toString())]||{}),[n,a]);return{tableColumns:a,draggingColumnId:s,handleDragStart:d,handleDragEnter:f,handleDragOver:g,handleDragLeave:h,handleDragEnd:m,defaultSortDirection:b,defaultSortColumn:y}}var Xe=i.memo((function(e){const{data:t=De.data,columns:n=De.columns,title:r=De.title,actions:o=De.actions,keyField:s=De.keyField,striped:c=De.striped,highlightOnHover:d=De.highlightOnHover,pointerOnHover:f=De.pointerOnHover,dense:p=De.dense,selectableRows:m=De.selectableRows,selectableRowsSingle:b=De.selectableRowsSingle,selectableRowsHighlight:v=De.selectableRowsHighlight,selectableRowsNoSelectAll:w=De.selectableRowsNoSelectAll,selectableRowsVisibleOnly:S=De.selectableRowsVisibleOnly,selectableRowSelected:E=De.selectableRowSelected,selectableRowDisabled:P=De.selectableRowDisabled,selectableRowsComponent:R=De.selectableRowsComponent,selectableRowsComponentProps:_=De.selectableRowsComponentProps,onRowExpandToggled:D=De.onRowExpandToggled,onSelectedRowsChange:F=De.onSelectedRowsChange,expandableIcon:L=De.expandableIcon,onChangeRowsPerPage:I=De.onChangeRowsPerPage,onChangePage:N=De.onChangePage,paginationServer:A=De.paginationServer,paginationServerOptions:z=De.paginationServerOptions,paginationTotalRows:M=De.paginationTotalRows,paginationDefaultPage:$=De.paginationDefaultPage,paginationResetDefaultPage:j=De.paginationResetDefaultPage,paginationPerPage:H=De.paginationPerPage,paginationRowsPerPageOptions:B=De.paginationRowsPerPageOptions,paginationIconLastPage:W=De.paginationIconLastPage,paginationIconFirstPage:U=De.paginationIconFirstPage,paginationIconNext:V=De.paginationIconNext,paginationIconPrevious:K=De.paginationIconPrevious,paginationComponent:G=De.paginationComponent,paginationComponentOptions:Q=De.paginationComponentOptions,responsive:Y=De.responsive,progressPending:q=De.progressPending,progressComponent:Z=De.progressComponent,persistTableHead:J=De.persistTableHead,noDataComponent:ee=De.noDataComponent,disabled:te=De.disabled,noTableHead:ne=De.noTableHead,noHeader:re=De.noHeader,fixedHeader:ae=De.fixedHeader,fixedHeaderScrollHeight:le=De.fixedHeaderScrollHeight,pagination:se=De.pagination,subHeader:ce=De.subHeader,subHeaderAlign:ue=De.subHeaderAlign,subHeaderWrap:de=De.subHeaderWrap,subHeaderComponent:fe=De.subHeaderComponent,noContextMenu:pe=De.noContextMenu,contextMessage:ge=De.contextMessage,contextActions:he=De.contextActions,contextComponent:be=De.contextComponent,expandableRows:ye=De.expandableRows,onRowClicked:ve=De.onRowClicked,onRowDoubleClicked:Pe=De.onRowDoubleClicked,onRowMouseEnter:Re=De.onRowMouseEnter,onRowMouseLeave:_e=De.onRowMouseLeave,sortIcon:Oe=De.sortIcon,onSort:Fe=De.onSort,sortFunction:Le=De.sortFunction,sortServer:Ie=De.sortServer,expandableRowsComponent:Ne=De.expandableRowsComponent,expandableRowsComponentProps:Ae=De.expandableRowsComponentProps,expandableRowDisabled:ze=De.expandableRowDisabled,expandableRowsHideExpander:Me=De.expandableRowsHideExpander,expandOnRowClicked:He=De.expandOnRowClicked,expandOnRowDoubleClicked:Be=De.expandOnRowDoubleClicked,expandableRowExpanded:We=De.expandableRowExpanded,expandableInheritConditionalStyles:Ue=De.expandableInheritConditionalStyles,defaultSortFieldId:Ve=De.defaultSortFieldId,defaultSortAsc:Ke=De.defaultSortAsc,clearSelectedRows:Ge=De.clearSelectedRows,conditionalRowStyles:Ye=De.conditionalRowStyles,theme:Xe=De.theme,customStyles:Je=De.customStyles,direction:et=De.direction,onColumnOrderChange:tt=De.onColumnOrderChange,className:nt}=e,{tableColumns:rt,draggingColumnId:at,handleDragStart:ot,handleDragEnter:lt,handleDragOver:it,handleDragLeave:st,handleDragEnd:ct,defaultSortDirection:ut,defaultSortColumn:dt}=Ze(n,tt,Ve,Ke),[{rowsPerPage:ft,currentPage:pt,selectedRows:gt,allSelected:ht,selectedCount:mt,selectedColumn:bt,sortDirection:yt,toggleOnSelectedRowsChange:vt},wt]=i.useReducer(x,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:dt,toggleOnSelectedRowsChange:!1,sortDirection:ut,currentPage:$,rowsPerPage:H,selectedRowsFlag:!1,contextMessage:De.contextMessage}),{persistSelectedOnSort:xt=!1,persistSelectedOnPageChange:St=!1}=z,kt=!(!A||!St&&!xt),Et=se&&!q&&t.length>0,Ct=G||$e,Tt=i.useMemo((()=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";const r=qe[t]?t:n;return Qe({table:{style:{color:(a=qe[r]).text.primary,backgroundColor:a.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:a.text.primary,backgroundColor:a.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:a.background.default,minHeight:"52px"}},head:{style:{color:a.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:a.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:a.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:a.context.background,fontSize:"18px",fontWeight:400,color:a.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:a.text.primary,backgroundColor:a.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:a.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:a.selected.text,backgroundColor:a.selected.default,borderBottomColor:a.background.default}},highlightOnHoverStyle:{color:a.highlightOnHover.text,backgroundColor:a.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:a.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:a.background.default},stripedStyle:{color:a.striped.text,backgroundColor:a.striped.default}},expanderRow:{style:{color:a.text.primary,backgroundColor:a.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:a.button.default,fill:a.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:a.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:a.button.hover},"&:focus":{outline:"none",backgroundColor:a.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:a.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:a.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:a.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:a.button.default,fill:a.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:a.button.disabled,fill:a.button.disabled},"&:hover:not(:disabled)":{backgroundColor:a.button.hover},"&:focus":{outline:"none",backgroundColor:a.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:a.text.primary,backgroundColor:a.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:a.text.primary,backgroundColor:a.background.default}}},e);var a}(Je,Xe)),[Je,Xe]),Pt=i.useMemo((()=>Object.assign({},"auto"!==et&&{dir:et})),[et]),Rt=i.useMemo((()=>{if(Ie)return t;if((null==bt?void 0:bt.sortFunction)&&"function"==typeof bt.sortFunction){const e=bt.sortFunction,n=yt===l.ASC?e:(t,n)=>-1*e(t,n);return[...t].sort(n)}return function(e,t,n,r){return t?r&&"function"==typeof r?r(e.slice(0),t,n):e.slice(0).sort(((e,r)=>{const a=t(e),o=t(r);if("asc"===n){if(ao)return 1}if("desc"===n){if(a>o)return-1;if(a{if(se&&!A){const e=pt*ft,t=e-ft;return Rt.slice(t,e)}return Rt}),[pt,se,A,ft,Rt]),Ot=i.useCallback((e=>{wt(e)}),[]),Dt=i.useCallback((e=>{wt(e)}),[]),Ft=i.useCallback((e=>{wt(e)}),[]),Lt=i.useCallback(((e,t)=>ve(e,t)),[ve]),It=i.useCallback(((e,t)=>Pe(e,t)),[Pe]),Nt=i.useCallback(((e,t)=>Re(e,t)),[Re]),At=i.useCallback(((e,t)=>_e(e,t)),[_e]),zt=i.useCallback((e=>wt({type:"CHANGE_PAGE",page:e,paginationServer:A,visibleOnly:S,persistSelectedOnPageChange:St})),[A,St,S]),Mt=i.useCallback((e=>{const t=g(M||_t.length,e),n=h(pt,t);A||zt(n),wt({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})}),[pt,zt,A,M,_t.length]);if(se&&!A&&Rt.length>0&&0===_t.length){const e=g(Rt.length,ft),t=h(pt,e);zt(t)}je((()=>{F({allSelected:ht,selectedCount:mt,selectedRows:gt.slice(0)})}),[vt]),je((()=>{Fe(bt,yt,Rt.slice(0))}),[bt,yt]),je((()=>{N(pt,M||Rt.length)}),[pt]),je((()=>{I(ft,pt)}),[ft]),je((()=>{zt($)}),[$,j]),je((()=>{if(se&&A&&M>0){const e=g(M,ft),t=h(pt,e);pt!==t&&zt(t)}}),[M]),i.useEffect((()=>{wt({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Ge})}),[b,Ge]),i.useEffect((()=>{if(!E)return;const e=Rt.filter((e=>E(e))),t=b?e.slice(0,1):e;wt({type:"SELECT_MULTIPLE_ROWS",keyField:s,selectedRows:t,totalRows:Rt.length,mergeSelections:kt})}),[t,E]);const $t=S?_t:Rt,jt=St||b||w;return i.createElement(a.ThemeProvider,{theme:Tt},!re&&(!!r||!!o)&&i.createElement(me,{title:r,actions:o,showMenu:!pe,selectedCount:mt,direction:et,contextActions:he,contextComponent:be,contextMessage:ge}),ce&&i.createElement(we,{align:ue,wrapContent:de},fe),i.createElement(Se,Object.assign({$responsive:Y,$fixedHeader:ae,$fixedHeaderScrollHeight:le,className:nt},Pt),i.createElement(Ee,null,q&&!J&&i.createElement(ke,null,Z),i.createElement(k,{disabled:te,className:"rdt_Table",role:"table"},!ne&&(!!J||Rt.length>0&&!q)&&i.createElement(C,{className:"rdt_TableHead",role:"rowgroup",$fixedHeader:ae},i.createElement(T,{className:"rdt_TableHeadRow",role:"row",$dense:p},m&&(jt?i.createElement(O,{style:{flex:"0 0 48px"}}):i.createElement(ie,{allSelected:ht,selectedRows:gt,selectableRowsComponent:R,selectableRowsComponentProps:_,selectableRowDisabled:P,rowData:$t,keyField:s,mergeSelections:kt,onSelectAllRows:Dt})),ye&&!Me&&i.createElement(Ce,null),rt.map((e=>i.createElement(oe,{key:e.id,column:e,selectedColumn:bt,disabled:q||0===Rt.length,pagination:se,paginationServer:A,persistSelectedOnSort:xt,selectableRowsVisibleOnly:S,sortDirection:yt,sortIcon:Oe,sortServer:Ie,onSort:Ot,onDragStart:ot,onDragOver:it,onDragEnd:ct,onDragEnter:lt,onDragLeave:st,draggingColumnId:at}))))),!Rt.length&&!q&&i.createElement(Te,null,ee),q&&J&&i.createElement(ke,null,Z),!q&&Rt.length>0&&i.createElement(xe,{className:"rdt_TableBody",role:"rowgroup"},_t.map(((e,t)=>{const n=u(e,s),r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"number"!=typeof e&&(!e||0===e.length)}(n)?t:n,a=y(e,gt,s),o=!!(ye&&We&&We(e)),l=!!(ye&&ze&&ze(e));return i.createElement(X,{id:r,key:r,keyField:s,"data-row-id":r,columns:rt,row:e,rowCount:Rt.length,rowIndex:t,selectableRows:m,expandableRows:ye,expandableIcon:L,highlightOnHover:d,pointerOnHover:f,dense:p,expandOnRowClicked:He,expandOnRowDoubleClicked:Be,expandableRowsComponent:Ne,expandableRowsComponentProps:Ae,expandableRowsHideExpander:Me,defaultExpanderDisabled:l,defaultExpanded:o,expandableInheritConditionalStyles:Ue,conditionalRowStyles:Ye,selected:a,selectableRowsHighlight:v,selectableRowsComponent:R,selectableRowsComponentProps:_,selectableRowDisabled:P,selectableRowsSingle:b,striped:c,onRowExpandToggled:D,onRowClicked:Lt,onRowDoubleClicked:It,onRowMouseEnter:Nt,onRowMouseLeave:At,onSelectedRow:Ft,draggingColumnId:at,onDragStart:ot,onDragOver:it,onDragEnd:ct,onDragEnter:lt,onDragLeave:st})})))))),Et&&i.createElement("div",null,i.createElement(Ct,{onChangePage:zt,onChangeRowsPerPage:Mt,rowCount:M||Rt.length,currentPage:pt,rowsPerPage:ft,direction:et,paginationRowsPerPageOptions:B,paginationIconLastPage:W,paginationIconFirstPage:U,paginationIconNext:V,paginationIconPrevious:K,paginationComponentOptions:Q})))}));t.Ay=Xe},730:(e,t,n)=>{"use strict";var r=n(43),a=n(853);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n