@openmrs/esm-fast-data-entry-app 1.0.0-pre.31 → 1.0.0-pre.39

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.
Files changed (43) hide show
  1. package/.github/workflows/node.js.yml +3 -3
  2. package/dist/120.js +2 -0
  3. package/dist/{147.js.LICENSE.txt → 120.js.LICENSE.txt} +6 -0
  4. package/dist/574.js +1 -1
  5. package/dist/595.js +1 -1
  6. package/dist/595.js.LICENSE.txt +0 -2
  7. package/dist/61.js +1 -0
  8. package/dist/804.js +1 -1
  9. package/dist/84.js +1 -0
  10. package/dist/990.js +1 -0
  11. package/dist/openmrs-esm-fast-data-entry-app.js +1 -1
  12. package/dist/openmrs-esm-fast-data-entry-app.js.buildmanifest.json +77 -77
  13. package/dist/openmrs-esm-fast-data-entry-app.old +1 -1
  14. package/package.json +4 -4
  15. package/src/FormBootstrap.tsx +2 -0
  16. package/src/Root.tsx +6 -9
  17. package/src/context/FormWorkflowContext.tsx +43 -15
  18. package/src/context/FormWorkflowReducer.ts +41 -0
  19. package/src/form-entry-workflow/FormEntryWorkflow.tsx +116 -54
  20. package/src/form-entry-workflow/styles.scss +13 -6
  21. package/src/form-review-card/FormReviewCard.tsx +50 -0
  22. package/src/form-review-card/index.ts +3 -0
  23. package/src/form-review-card/styles.scss +38 -0
  24. package/src/forms-table/FormsTable.tsx +3 -5
  25. package/src/hooks/index.ts +3 -1
  26. package/src/hooks/useFormState.ts +23 -0
  27. package/src/hooks/useGetEncounter.ts +22 -0
  28. package/src/patient-banner/PatientBanner.test.tsx +1 -1
  29. package/src/patient-banner/PatientBanner.tsx +51 -105
  30. package/src/patient-banner/styles.scss +13 -28
  31. package/src/patient-card/PatientCard.tsx +2 -2
  32. package/src/patient-card/styles.scss +6 -5
  33. package/src/patient-search-header/PatientSearchHeader.tsx +3 -1
  34. package/src/patient-search-header/styles.scss +6 -2
  35. package/src/workflow-review/WorkflowReview.tsx +36 -0
  36. package/src/workflow-review/index.ts +3 -0
  37. package/src/workflow-review/styles.scss +34 -0
  38. package/translations/en.json +1 -0
  39. package/dist/147.js +0 -2
  40. package/dist/508.js +0 -1
  41. package/dist/634.js +0 -2
  42. package/dist/634.js.LICENSE.txt +0 -5
  43. package/dist/954.js +0 -1
@@ -98,8 +98,8 @@ jobs:
98
98
  - name: Prepare Directory
99
99
  shell: bash
100
100
  run: |
101
- mkdir -p dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}
102
- mv packages/${{ env.DIR_NAME }}/dist/*.* dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}/
101
+ mkdir -p publish/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}
102
+ mv dist/*.* publish/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}/
103
103
  - name: Publish to Digital Ocean
104
104
  uses: jakejarvis/s3-sync-action@master
105
105
  with:
@@ -109,7 +109,7 @@ jobs:
109
109
  AWS_ACCESS_KEY_ID: ${{ secrets.DIGITAL_OCEAN_SPACES_KEY_ID }}
110
110
  AWS_SECRET_ACCESS_KEY: ${{ secrets.DIGITAL_OCEAN_SPACES_ACCESS_KEY }}
111
111
  AWS_S3_ENDPOINT: ${{ secrets.DIGITAL_OCEAN_SPACES_ENDPOINT }}
112
- SOURCE_DIR: "dist"
112
+ SOURCE_DIR: "publish"
113
113
  - name: Update Importmap
114
114
  uses: fjogeleit/http-request-action@master
115
115
  with:
package/dist/120.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 120.js.LICENSE.txt */
2
+ (self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[120],{3346:(e,t,r)=>{"use strict";function n(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(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}r.d(t,{I:()=>O,_:()=>g,a:()=>b});var c=["width","height","viewBox"],u=["tabindex"],l={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var s=r(5697),f=r.n(s),d=r(4211),p=r.n(d);function h(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 y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(){return b=Object.assign||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},b.apply(this,arguments)}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(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}var m=["className","children","tabIndex"],w=["tabindex"],O=p().forwardRef((function(e,t){var r=e.className,n=e.children,i=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,i=void 0===n?"0 0 ".concat(t," ").concat(r):n,s=a(e,c),f=s.tabindex,d=a(s,u),p=o(o(o({},l),d),{},{width:t,height:r,viewBox:i});return p["aria-label"]||p["aria-labelledby"]||p.title?(p.role="img",null!=f&&(p.focusable="true",p.tabindex=f)):p["aria-hidden"]=!0,p}(y(y({},g(e,m)),{},{tabindex:i})),f=s.tabindex,d=g(s,w);return r&&(d.className=r),null!=f&&(d.tabIndex=f),t&&(d.ref=t),p().createElement("svg",d,n)}));O.displayName="Icon",O.propTypes={"aria-hidden":f().string,"aria-label":f().string,"aria-labelledby":f().string,children:f().node,className:f().string,height:f().oneOfType([f().number,f().string]),preserveAspectRatio:f().string,tabIndex:f().string,viewBox:f().string,width:f().oneOfType([f().number,f().string]),xmlns:f().string},O.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"}},7114:(e,t,r)=>{"use strict";r.d(t,{H_C:()=>d,RVU:()=>f});var n,o,i,a=r(3346),c=r(4211),u=r.n(c),l=["children"],s=["children"],f=u().forwardRef((function(e,t){var r=e.children,o=(0,a._)(e,l);return u().createElement(a.I,(0,a.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},o),n||(n=u().createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),r)})),d=u().forwardRef((function(e,t){var r=e.children,n=(0,a._)(e,s);return u().createElement(a.I,(0,a.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),o||(o=u().createElement("path",{d:"M16,2A14.1725,14.1725,0,0,0,2,16,14.1725,14.1725,0,0,0,16,30,14.1725,14.1725,0,0,0,30,16,14.1725,14.1725,0,0,0,16,2Zm8,15H17v7H15V17H8V15h7V8h2v7h7Z"})),i||(i=u().createElement("path",{fill:"none",d:"M24 17L17 17 17 24 15 24 15 17 8 17 8 15 15 15 15 8 17 8 17 15 24 15 24 17z","data-icon-path":"inner-path"})),r)}))},7103:(e,t,r)=>{"use strict";r.d(t,{F3j:()=>x,PcV:()=>j,Y3p:()=>m,cDj:()=>O,cRw:()=>w,dOq:()=>E});var n,o,i,a,c,u,l,s=r(3346),f=r(4211),d=r.n(f),p=["children"],h=["children"],y=["children"],v=["children"],b=["children"],g=["children"],m=d().forwardRef((function(e,t){var r=e.children,i=(0,s._)(e,p);return d().createElement(s.I,(0,s.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),n||(n=d().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),o||(o=d().createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),r)})),w=d().forwardRef((function(e,t){var r=e.children,n=(0,s._)(e,h);return d().createElement(s.I,(0,s.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),i||(i=d().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),r)})),O=d().forwardRef((function(e,t){var r=e.children,n=(0,s._)(e,y);return d().createElement(s.I,(0,s.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),a||(a=d().createElement("path",{d:"M5 8L10 3 10.7 3.7 6.4 8 10.7 12.3 10 13z"})),r)})),x=d().forwardRef((function(e,t){var r=e.children,n=(0,s._)(e,v);return d().createElement(s.I,(0,s.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),c||(c=d().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),r)})),E=d().forwardRef((function(e,t){var r=e.children,n=(0,s._)(e,b);return d().createElement(s.I,(0,s.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),u||(u=d().createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),r)})),j=d().forwardRef((function(e,t){var r=e.children,n=(0,s._)(e,g);return d().createElement(s.I,(0,s.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},n),l||(l=d().createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),r)}))},8663:(e,t,r)=>{"use strict";r.d(t,{Z:()=>v});var n=r(5697),o=r.n(n),i=r(4211),a=r.n(i),c=r(4184),u=r.n(c),l=r(9033),s=r(3299);function f(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h=l.Z.prefix,y=a().forwardRef((function(e,t){var r,n=e.children,o=e.as,i=e.className,c=e.disabled,l=e.small,s=e.size,f=e.kind,y=e.href,v=e.isSelected,b=e.tabIndex,g=e.type,m=e.renderIcon,w=e.iconDescription,O=e.hasIconOnly,x=e.tooltipPosition,E=e.tooltipAlignment,j=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(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,["children","as","className","disabled","small","size","kind","href","isSelected","tabIndex","type","renderIcon","iconDescription","hasIconOnly","tooltipPosition","tooltipAlignment"]),P={tabIndex:b,className:u()(i,(p(r={},"".concat(h,"--btn"),!0),p(r,"".concat(h,"--btn--field"),"field"===s),p(r,"".concat(h,"--btn--sm"),"small"===s||"sm"===s||l),p(r,"".concat(h,"--btn--lg"),"lg"===s),p(r,"".concat(h,"--btn--xl"),"xl"===s),p(r,"".concat(h,"--btn--").concat(f),f),p(r,"".concat(h,"--btn--disabled"),c),p(r,"".concat(h,"--btn--icon-only"),O),p(r,"".concat(h,"--btn--selected"),O&&v&&"ghost"===f),p(r,"".concat(h,"--tooltip__trigger"),O),p(r,"".concat(h,"--tooltip--a11y"),O),p(r,"".concat(h,"--tooltip--").concat(x),O&&x),p(r,"".concat(h,"--tooltip--align-").concat(E),O&&E),r)),ref:t},k=m?a().createElement(m,{"aria-label":w,className:"".concat(h,"--btn__icon"),"aria-hidden":"true"}):null,L="button",S={disabled:c,type:g,"aria-pressed":O&&"ghost"===f?v:null},I={href:y},C=O?a().createElement("span",{className:"".concat(h,"--assistive-text")},w):null;return o?(L=o,S=d(d({},S),I)):y&&!c&&(L="a",S=I),a().createElement(L,d(d(d({},j),P),S),C,n,k)}));y.displayName="Button",y.propTypes={as:o().oneOfType([o().func,o().string,o().elementType]),children:o().node,className:o().string,disabled:o().bool,hasIconOnly:o().bool,href:o().string,iconDescription:function(e){if(e.renderIcon&&!e.children&&!e.iconDescription)return new Error("renderIcon property specified without also providing an iconDescription property.")},isSelected:o().bool,kind:o().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]).isRequired,renderIcon:o().oneOfType([o().func,o().object]),role:o().string,size:o().oneOf(["default","field","small","sm","lg","xl"]),small:(0,s.Z)(o().bool,'\nThe prop `small` for Button has been deprecated in favor of `size`. Please use `size="sm"` instead.'),tabIndex:o().number,tooltipAlignment:o().oneOf(["start","center","end"]),tooltipPosition:o().oneOf(["top","right","bottom","left"]),type:o().oneOf(["button","reset","submit"])},y.defaultProps={tabIndex:0,type:"button",disabled:!1,kind:"primary",size:"default",tooltipAlignment:"center",tooltipPosition:"top"};const v=y},9303:(e,t,r)=>{"use strict";r.d(t,{Ce:()=>n,Cj:()=>a,K5:()=>f,L1:()=>o,SK:()=>c,T:()=>i,Xd:()=>u,a2:()=>l,ol:()=>s});var n={key:"Enter",which:13,keyCode:13},o={key:["Escape","Esc"],which:27,keyCode:27},i={key:" ",which:32,keyCode:32},a={key:"End",which:35,keyCode:35},c={key:"Home",which:36,keyCode:36},u={key:"ArrowLeft",which:37,keyCode:37},l={key:"ArrowUp",which:38,keyCode:38},s={key:"ArrowRight",which:39,keyCode:39},f={key:"ArrowDown",which:40,keyCode:40}},3494:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++)if(o(e,t[r]))return!0;return!1}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.key,n=t.which,o=t.keyCode;return"string"==typeof e?e===r:"number"==typeof e?e===n||e===o:e.key&&Array.isArray(r)?-1!==r.indexOf(e.key):e.key===r||e.which===n||e.keyCode===o}r.d(t,{EQ:()=>o,wB:()=>n})},3712:(e,t,r)=>{"use strict";r.d(t,{M:()=>f});var n=r(4211),o=r(19),i=!("undefined"==typeof window||!window.document||!window.document.createElement);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=(0,o.Z)(),l=i?n.useLayoutEffect:n.useEffect,s=!1;function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",t=(0,n.useState)((function(){return s?"".concat(e,"-").concat(u()):null})),r=a(t,2),o=r[0],i=r[1];return l((function(){null===o&&i("".concat(e,"-").concat(u()))}),[u]),(0,n.useEffect)((function(){!1===s&&(s=!0)}),[]),o}},3299:(e,t,r)=>{"use strict";function n(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Z:()=>c});var a={};function c(e,t){return function(t,r,n){if(void 0!==t[r]){a[n]&&a[n][r]||(a[n]=o(o({},a[n]),{},i({},r,!0)));for(var c=arguments.length,u=new Array(c>3?c-3:0),l=3;l<c;l++)u[l-3]=arguments[l];return e.apply(void 0,[t,r,n].concat(u))}}}},19:(e,t,r)=>{"use strict";function n(){var e=0;return function(){return++e}}r.d(t,{Z:()=>n})},9033:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n={prefix:"bx",selectorTabbable:"\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]\n ",selectorFocusable:"\n a[href], area[href], input:not([disabled]),\n button:not([disabled]),select:not([disabled]),\n textarea:not([disabled]),\n iframe, object, embed, *[tabindex], *[contenteditable=true]\n "}},4184:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&o[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),t.push(u))}},t}},2703:(e,t,r)=>{"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5666:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=P(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=s(e,t,r);if("normal"===u.type){if(n=r.done?h:d,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",y={};function v(){}function b(){}function g(){}var m={};u(m,i,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(I([])));O&&O!==r&&n.call(O,i)&&(m=O);var x=g.prototype=v.prototype=Object.create(m);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function r(o,i,a,c){var u=s(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function P(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=s(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function I(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:C}}function C(){return{value:t,done:!0}}return b.prototype=g,u(x,"constructor",g),u(g,"constructor",b),b.displayName=u(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},E(j.prototype),u(j.prototype,a,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(x),u(x,c,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=I,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],c=0;c<e.length;c++){var u=e[c],l=n.base?u[0]+n.base:u[0],s=i[l]||0,f="".concat(l," ").concat(s);i[l]=s+1;var d=r(f),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=o(p,n);n.byIndex=c,t.splice(c,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var c=r(i[a]);t[c].references--}for(var u=n(e,o),l=0;l<i.length;l++){var s=r(i[l]);0===t[s].references&&(t[s].updater(),t.splice(s,1))}i=u}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8100:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>J});var n=r(4211);function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function c(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}var a,c=function(){},u=c(),l=Object,s=function(e){return e===u},f=function(e){return"function"==typeof e},d=function(e,t){return l.assign({},e,t)},p="undefined",h=function(){return typeof window!=p},y=new WeakMap,v=0,b=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(l(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=y.get(e))return t;if(t=++v+"~",y.set(e,t),o==Array){for(t="@",r=0;r<e.length;r++)t+=b(e[r])+",";y.set(e,t)}if(o==l){t="#";for(var a=l.keys(e).sort();!s(r=a.pop());)s(e[r])||(t+=r+":"+b(e[r])+",");y.set(e,t)}}return t},g=!0,m=h(),w=typeof document!=p,O=m&&window.addEventListener?window.addEventListener.bind(window):c,x=w?document.addEventListener.bind(document):c,E=m&&window.removeEventListener?window.removeEventListener.bind(window):c,j=w?document.removeEventListener.bind(document):c,P={isOnline:function(){return g},isVisible:function(){var e=w&&document.visibilityState;return s(e)||"hidden"!==e}},k={initFocus:function(e){return x("visibilitychange",e),O("focus",e),function(){j("visibilitychange",e),E("focus",e)}},initReconnect:function(e){var t=function(){g=!0,e()},r=function(){g=!1};return O("online",t),O("offline",r),function(){E("online",t),E("offline",r)}}},L=!h()||"Deno"in window,S=L?n.useEffect:n.useLayoutEffect,I="undefined"!=typeof navigator&&navigator.connection,C=!L&&I&&(["slow-2g","2g"].includes(I.effectiveType)||I.saveData),T=function(e){if(f(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?b(e):"",t,e?"$swr$"+e:""]},_=new WeakMap,R=function(e,t,r,n,o,i,a){void 0===a&&(a=!0);var c=_.get(e),u=c[0],l=c[1],s=c[3],f=u[t],d=l[t];if(a&&d)for(var p=0;p<d.length;++p)d[p](r,n,o);return i&&(delete s[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},D=0,A=function(){return++D},M=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(void 0,void 0,void 0,(function(){var t,r,n,o,a,c,l,p,h,y,v,b,g,m,w,O,x,E,j,P,k;return i(this,(function(i){switch(i.label){case 0:if(t=e[0],r=e[1],n=e[2],o=e[3],c=!!s((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,l=!1!==a.revalidate,p=!1!==a.rollbackOnError,h=a.optimisticData,y=T(r),v=y[0],b=y[2],!v)return[2];if(g=_.get(t),m=g[2],e.length<3)return[2,R(t,v,t.get(v),u,u,l,!0)];if(w=n,x=A(),m[v]=[x,0],E=!s(h),j=t.get(v),E&&(P=f(h)?h(j):h,t.set(v,P),R(t,v,P)),f(w))try{w=w(t.get(v))}catch(e){O=e}return w&&f(w.then)?[4,w.catch((function(e){O=e}))]:[3,2];case 1:if(w=i.sent(),x!==m[v][0]){if(O)throw O;return[2,w]}O&&E&&p&&(c=!0,w=j,t.set(v,j)),i.label=2;case 2:return c&&(O||(f(c)&&(w=c(w,j)),t.set(v,w)),t.set(b,d(t.get(b),{error:O}))),m[v][1]=A(),[4,R(t,v,w,O,u,l,!!c)];case 3:if(k=i.sent(),O)throw O;return[2,c?k:w]}}))}))},N=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},V=function(e,t){if(!_.has(e)){var r=d(k,t),n={},o=M.bind(u,e),i=c;if(_.set(e,[n,{},{},{},o]),!L){var a=r.initFocus(setTimeout.bind(u,N.bind(u,n,0))),l=r.initReconnect(setTimeout.bind(u,N.bind(u,n,1)));i=function(){a&&a(),l&&l(),_.delete(e)}}return[e,o,i]}return[e,_.get(e)[4]]},F=V(new Map),z=F[0],B=F[1],Z=d({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:function(e,t,r,n,o){var i=r.errorRetryCount,a=o.retryCount,c=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!s(i)&&a>i||setTimeout(n,c,o)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:C?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:C?5e3:3e3,compare:function(e,t){return b(e)==b(t)},isPaused:function(){return!1},cache:z,mutate:B,fallback:{}},P),G=function(e,t){var r=d(e,t);if(t){var n=e.use,o=e.fallback,i=t.use,a=t.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=d(o,a))}return r},H=(0,n.createContext)({}),U=function(e){return f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},W=function(){return d(Z,(0,n.useContext)(H))},q=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},Y={dedupe:!0},J=(l.defineProperty((function(e){var t=e.value,r=G((0,n.useContext)(H),t),o=t&&t.provider,i=(0,n.useState)((function(){return o?V(o(r.cache||z),t):u}))[0];return i&&(r.cache=i[0],r.mutate=i[1]),S((function(){return i?i[2]:u}),[]),(0,n.createElement)(H.Provider,d(e,{value:r}))}),"default",{value:Z}),a=function(e,t,r){var a=r.cache,c=r.compare,l=r.fallbackData,y=r.suspense,v=r.revalidateOnMount,b=r.refreshInterval,g=r.refreshWhenHidden,m=r.refreshWhenOffline,w=_.get(a),O=w[0],x=w[1],E=w[2],j=w[3],P=T(e),k=P[0],I=P[1],C=P[2],D=(0,n.useRef)(!1),N=(0,n.useRef)(!1),V=(0,n.useRef)(k),F=(0,n.useRef)(t),z=(0,n.useRef)(r),B=function(){return z.current},Z=function(){return B().isVisible()&&B().isOnline()},G=function(e){return a.set(C,d(a.get(C),e))},H=a.get(k),U=s(l)?r.fallback[k]:l,W=s(H)?U:H,J=a.get(C)||{},$=J.error,K=!D.current,Q=function(){return K&&!s(v)?v:!B().isPaused()&&(y?!s(W)&&r.revalidateIfStale:s(W)||r.revalidateIfStale)},X=!(!k||!t)&&(!!J.isValidating||K&&Q()),ee=function(e,t){var r=(0,n.useState)({})[1],o=(0,n.useRef)(e),i=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(e){var n=!1,a=o.current;for(var c in e){var u=c;a[u]!==e[u]&&(a[u]=e[u],i.current[u]&&(n=!0))}n&&!t.current&&r({})}),[]);return S((function(){o.current=e})),[o,i.current,a]}({data:W,error:$,isValidating:X},N),te=ee[0],re=ee[1],ne=ee[2],oe=(0,n.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,n,o,l,d,p,h,y,v,b,g,m,w;return i(this,(function(i){switch(i.label){case 0:if(t=F.current,!k||!t||N.current||B().isPaused())return[2,!1];l=!0,d=e||{},p=!j[k]||!d.dedupe,h=function(){return!N.current&&k===V.current&&D.current},y=function(){var e=j[k];e&&e[1]===o&&delete j[k]},v={isValidating:!1},b=function(){G({isValidating:!1}),h()&&ne(v)},G({isValidating:!0}),ne({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),p&&(R(a,k,te.current.data,te.current.error,!0),r.loadingTimeout&&!a.get(k)&&setTimeout((function(){l&&h()&&B().onLoadingSlow(k,r)}),r.loadingTimeout),j[k]=[t.apply(void 0,I),A()]),w=j[k],n=w[0],o=w[1],[4,n];case 2:return n=i.sent(),p&&setTimeout(y,r.dedupingInterval),j[k]&&j[k][1]===o?(G({error:u}),v.error=u,g=E[k],!s(g)&&(o<=g[0]||o<=g[1]||0===g[1])?(b(),p&&h()&&B().onDiscarded(k),[2,!1]):(c(te.current.data,n)?v.data=te.current.data:v.data=n,c(a.get(k),n)||a.set(k,n),p&&h()&&B().onSuccess(n,k,r),[3,4])):(p&&h()&&B().onDiscarded(k),[2,!1]);case 3:return m=i.sent(),y(),B().isPaused()||(G({error:m}),v.error=m,p&&h()&&(B().onError(m,k,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||f(r.shouldRetryOnError)&&r.shouldRetryOnError(m))&&Z()&&B().onErrorRetry(m,k,r,oe,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,b(),h()&&p&&R(a,k,v.data,v.error,!1),[2,!0]}}))}))}),[k]),ie=(0,n.useCallback)(M.bind(u,a,(function(){return V.current})),[]);if(S((function(){F.current=t,z.current=r})),S((function(){if(k){var e=k!==V.current,t=oe.bind(u,Y),r=0,n=q(k,x,(function(e,t,r){ne(d({error:t,isValidating:r},c(te.current.data,e)?u:{data:e}))})),o=q(k,O,(function(e){if(0==e){var n=Date.now();B().revalidateOnFocus&&n>r&&Z()&&(r=n+B().focusThrottleInterval,t())}else if(1==e)B().revalidateOnReconnect&&Z()&&t();else if(2==e)return oe()}));return N.current=!1,V.current=k,D.current=!0,e&&ne({data:W,error:$,isValidating:X}),Q()&&(s(W)||L?t():(i=t,h()&&typeof window.requestAnimationFrame!=p?window.requestAnimationFrame(i):setTimeout(i,1))),function(){N.current=!0,n(),o()}}var i}),[k,oe]),S((function(){var e;function t(){var t=f(b)?b(W):b;t&&-1!==e&&(e=setTimeout(r,t))}function r(){te.current.error||!g&&!B().isVisible()||!m&&!B().isOnline()?t():oe(Y).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[b,g,m,oe]),(0,n.useDebugValue)(W),y&&s(W)&&k)throw F.current=t,z.current=r,N.current=!1,s($)?oe(Y):$;return{mutate:ie,get data(){return re.data=!0,W},get error(){return re.error=!0,$},get isValidating(){return re.isValidating=!0,X}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=W(),n=U(e),o=n[0],i=n[1],c=n[2],u=G(r,c),l=a,s=u.use;if(s)for(var f=s.length;f-- >0;)l=s[f](l);return l(o,i||u.fetcher,u)})}}]);
@@ -1,3 +1,9 @@
1
+ /*!
2
+ Copyright (c) 2017 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
6
+
1
7
  /*! *****************************************************************************
2
8
  Copyright (c) Microsoft Corporation.
3
9
 
package/dist/574.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"actions":"Actions","casualGreeting":"hey","dataErrorMessage":"Something went wrong loading data from the server.","errorLoadingData":"Error Loading Data","fillForm":"Fill Form","formalGreeting":"hello","formName":"Form Name","noFormsFound":"No Forms To Show","noFormsFoundMessage":"No forms could be found for this category. Please double check the form concept uuids and access permissions.","selectPatientFirst":"Please select a patient first","startGroupSession":"Start Group Session"}')}}]);
1
+ "use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"actions":"Actions","casualGreeting":"hey","dataErrorMessage":"Something went wrong loading data from the server.","errorLoadingData":"Error Loading Data","fillForm":"Fill Form","formalGreeting":"hello","formName":"Form Name","goToForm":"Go To Form","noFormsFound":"No Forms To Show","noFormsFoundMessage":"No forms could be found for this category. Please double check the form concept uuids and access permissions.","selectPatientFirst":"Please select a patient first","startGroupSession":"Start Group Session"}')}}]);