@openmrs/esm-fast-data-entry-app 1.0.1-pre.8 → 1.0.1-pre.82

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 (84) hide show
  1. package/README.md +21 -2
  2. package/dist/132.js +1 -0
  3. package/dist/168.js +1 -0
  4. package/dist/229.js +1 -0
  5. package/dist/247.js +1 -0
  6. package/dist/255.js +1 -0
  7. package/dist/294.js +2 -0
  8. package/dist/294.js.LICENSE.txt +9 -0
  9. package/dist/32.js +1 -0
  10. package/dist/327.js +1 -0
  11. package/dist/403.js +2 -0
  12. package/dist/403.js.LICENSE.txt +14 -0
  13. package/dist/553.js +2 -0
  14. package/dist/553.js.LICENSE.txt +14 -0
  15. package/dist/569.js +2 -0
  16. package/dist/569.js.LICENSE.txt +27 -0
  17. package/dist/574.js +1 -0
  18. package/dist/595.js +2 -0
  19. package/dist/595.js.LICENSE.txt +1 -0
  20. package/dist/617.js +1 -0
  21. package/dist/68.js +2 -0
  22. package/dist/68.js.LICENSE.txt +21 -0
  23. package/dist/74.js +1 -0
  24. package/dist/757.js +1 -0
  25. package/dist/776.js +1 -0
  26. package/dist/804.js +1 -0
  27. package/dist/820.js +1 -0
  28. package/dist/935.js +2 -0
  29. package/dist/935.js.LICENSE.txt +19 -0
  30. package/dist/main.js +1 -0
  31. package/dist/openmrs-esm-fast-data-entry-app.js +1 -1
  32. package/dist/openmrs-esm-fast-data-entry-app.js.buildmanifest.json +612 -0
  33. package/dist/openmrs-esm-fast-data-entry-app.old +1 -0
  34. package/package.json +9 -9
  35. package/src/CancelModal.tsx +48 -0
  36. package/src/CompleteModal.tsx +46 -0
  37. package/src/FormBootstrap.tsx +18 -3
  38. package/src/add-group-modal/AddGroupModal.tsx +80 -27
  39. package/src/add-group-modal/styles.scss +14 -4
  40. package/src/config-schema.ts +22 -0
  41. package/src/context/FormWorkflowContext.tsx +13 -1
  42. package/src/context/FormWorkflowReducer.ts +13 -3
  43. package/src/context/GroupFormWorkflowContext.tsx +41 -6
  44. package/src/context/GroupFormWorkflowReducer.ts +170 -12
  45. package/src/form-entry-workflow/FormEntryWorkflow.tsx +67 -101
  46. package/src/form-entry-workflow/styles.scss +2 -1
  47. package/src/forms-page/FormsPage.tsx +8 -3
  48. package/src/forms-page/forms-table/FormsTable.tsx +11 -5
  49. package/src/group-form-entry-workflow/GroupFormEntryWorkflow.tsx +13 -400
  50. package/src/group-form-entry-workflow/GroupSessionWorkspace.tsx +247 -0
  51. package/src/group-form-entry-workflow/SessionDetailsForm.tsx +122 -0
  52. package/src/group-form-entry-workflow/SessionMetaWorkspace.tsx +107 -0
  53. package/src/group-form-entry-workflow/attendance-table/AttendanceTable.tsx +105 -0
  54. package/src/group-form-entry-workflow/attendance-table/index.ts +1 -0
  55. package/src/group-form-entry-workflow/{group-banner/GroupBanner.test.tsx → group-display-header/GroupDisplayHeader.test.tsx} +2 -2
  56. package/src/group-form-entry-workflow/{group-banner/GroupBanner.tsx → group-display-header/GroupDisplayHeader.tsx} +23 -5
  57. package/src/group-form-entry-workflow/group-display-header/index.ts +3 -0
  58. package/src/group-form-entry-workflow/group-search/CompactGroupResults.tsx +61 -28
  59. package/src/group-form-entry-workflow/group-search/CompactGroupSearch.tsx +5 -0
  60. package/src/group-form-entry-workflow/group-search/GroupSearch.tsx +65 -8
  61. package/src/group-form-entry-workflow/group-search/group-search.scss +8 -6
  62. package/src/group-form-entry-workflow/group-search-header/GroupSearchHeader.tsx +11 -7
  63. package/src/group-form-entry-workflow/styles.scss +12 -1
  64. package/src/hooks/index.ts +1 -0
  65. package/src/hooks/useGetSystemSetting.ts +38 -0
  66. package/src/hooks/usePostEndpoint.ts +70 -0
  67. package/src/hooks/useSearchEndpoint.ts +120 -0
  68. package/src/hooks/useStartVisit.ts +92 -0
  69. package/src/patient-card/styles.scss +1 -0
  70. package/tools/i18next-parser.config.js +93 -0
  71. package/translations/en.json +27 -9
  72. package/translations/fr.json +50 -0
  73. package/.editorconfig +0 -12
  74. package/.eslintignore +0 -2
  75. package/.eslintrc.js +0 -10
  76. package/.husky/pre-push +0 -1
  77. package/.prettierignore +0 -14
  78. package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
  79. package/.yarn/versions/7ee3eceb.yml +0 -0
  80. package/src/group-form-entry-workflow/group-banner/index.ts +0 -3
  81. package/src/group-form-entry-workflow/group-search/mock-group-data.ts +0 -79
  82. package/src/group-form-entry-workflow/group-search/useGroupSearch.ts +0 -14
  83. package/src/hooks/usePostCohort.ts +0 -18
  84. /package/src/group-form-entry-workflow/{group-banner → group-display-header}/styles.scss +0 -0
@@ -0,0 +1 @@
1
+ /*! For license information please see openmrs-esm-react-utils.js.LICENSE.txt */
package/dist/617.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[617],{5672:(t,e,r)=>{r.d(e,{AB:()=>p,ZP:()=>y,ol:()=>v});var n=r(1672),o=r.n(n),i=r(2126),u=r(1338),a=r(7612),l=r(1132);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){s(t,e,r[e])}))}return t}var d={addPatient:function(t){},openPatientSearch:function(){},saveEncounter:function(t){},editEncounter:function(t){},submitForNext:function(){},submitForReview:function(){},submitForComplete:function(){},goToReview:function(){},destroySession:function(){},closeSession:function(){}},v={activeFormUuid:null,forms:{},workflowState:null,activePatientUuid:null,activeEncounterUuid:null,patientUuids:[],encounters:{},singleSessionVisitTypeUuid:null,userUuid:null},m=o().createContext(f({},v,d)),p=function(t){var e,r,s,p,y,b,w,h,U,S,E,O,g,P,F,T,_,I,k,j,A,R,N,C=t.children,x=(0,l.useSession)().user,M=(0,u.useParams)().formUuid.split("&")[0],D=(0,u.useLocation)().search,B=new URLSearchParams(D).get("patientUuid"),W=(j=(0,n.useReducer)(i.ZP,f({},v,d)),A=2,function(t){if(Array.isArray(t))return t}(j)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}}(j,A)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(j,A)||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.")}()),V=W[0],L=W[1],Z=(0,a.Z)("@openmrs/esm-fast-data-entry-app.groupSessionVisitTypeUuid"),$=null==Z||null===(e=Z.result)||void 0===e||null===(r=e.data)||void 0===r||null===(s=r.results)||void 0===s||null===(p=s[0])||void 0===p?void 0:p.value,G=(0,n.useMemo)((function(){return{initializeWorkflowState:function(t){var e=t.activeFormUuid,r=t.newPatientUuid;return L({type:"INITIALIZE_WORKFLOW_STATE",activeFormUuid:e,newPatientUuid:r,userUuid:x.uuid})},addPatient:function(t){return L({type:"ADD_PATIENT",patientUuid:t})},openPatientSearch:function(){return L({type:"OPEN_PATIENT_SEARCH"})},saveEncounter:function(t){return L({type:"SAVE_ENCOUNTER",encounterUuid:t})},submitForNext:function(){return L({type:"SUBMIT_FOR_NEXT"})},submitForReview:function(){return L({type:"SUBMIT_FOR_REVIEW"})},submitForComplete:function(){return L({type:"SUBMIT_FOR_COMPLETE"})},editEncounter:function(t){return L({type:"EDIT_ENCOUNTER",patientUuid:t})},goToReview:function(){return L({type:"GO_TO_REVIEW"})},destroySession:function(){return L({type:"DESTROY_SESSION"})},closeSession:function(){return L({type:"CLOSE_SESSION"})}}}),[x]);return(0,n.useEffect)((function(){null===(null==V?void 0:V.workflowState)&&M&&G.initializeWorkflowState({activeFormUuid:M,newPatientUuid:B})}),[M,B,null==V?void 0:V.workflowState,G]),o().createElement(m.Provider,{value:(R=f({},V,G),N={workflowState:null!==(F=null===(y=V.forms)||void 0===y||null===(b=y[V.activeFormUuid])||void 0===b?void 0:b.workflowState)&&void 0!==F?F:v.workflowState,activePatientUuid:null!==(T=null===(w=V.forms)||void 0===w||null===(h=w[V.activeFormUuid])||void 0===h?void 0:h.activePatientUuid)&&void 0!==T?T:v.activePatientUuid,activeEncounterUuid:null!==(_=null===(U=V.forms)||void 0===U||null===(S=U[V.activeFormUuid])||void 0===S?void 0:S.activeEncounterUuid)&&void 0!==_?_:v.activeEncounterUuid,patientUuids:null!==(I=null===(E=V.forms)||void 0===E||null===(O=E[V.activeFormUuid])||void 0===O?void 0:O.patientUuids)&&void 0!==I?I:v.patientUuids,encounters:null!==(k=null===(g=V.forms)||void 0===g||null===(P=g[V.activeFormUuid])||void 0===P?void 0:P.encounters)&&void 0!==k?k:v.encounters,singleSessionVisitTypeUuid:$},N=null!=N?N:{},Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(N)):function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r.push.apply(r,n)}return r}(Object(N)).forEach((function(t){Object.defineProperty(R,t,Object.getOwnPropertyDescriptor(N,t))})),R)},C)};const y=m},2126:(t,e,r)=>{r.d(e,{Go:()=>v,IE:()=>d,ZP:()=>y});var n=r(1132),o=r(5672);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),n.forEach((function(e){u(t,e,r[e])}))}return t}function l(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r.push.apply(r,n)}return r}(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})),t}function c(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function s(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===f(e)?e:String(e)}var f=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},d="1.1.0",v="openmrs:fastDataEntryWorkflowState",m=function(t){localStorage.setItem(v+":"+t.userUuid,JSON.stringify(t))},p={workflowState:"NEW_PATIENT",activePatientUuid:null,activeEncounterUuid:null,patientUuids:[],encounters:{}};const y=function(t,e){switch(e.type){case"INITIALIZE_WORKFLOW_STATE":var r,f=localStorage.getItem(v+":"+e.userUuid),y=f?JSON.parse(f):{},b={},w=e.newPatientUuid?{activePatientUuid:e.newPatientUuid,workflowState:"EDIT_FORM"}:{};return f&&y._storageVersion===d?(b=l(a({},y),{activeFormUuid:e.activeFormUuid,forms:l(a({},y.forms),u({},e.activeFormUuid,l(a({},p,y.forms[e.activeFormUuid],w),{patientUuids:(null===(r=y.forms[e.activeFormUuid])||void 0===r?void 0:r.patientUuids)||p.patientUuids})))}),e.newPatientUuid&&!b.forms[e.activeFormUuid].patientUuids.includes(e.newPatientUuid)&&b.forms[e.activeFormUuid].patientUuids.push(e.newPatientUuid)):b=l(a({},o.ol),{_storageVersion:d,forms:u({},e.activeFormUuid,p),activeFormUuid:e.activeFormUuid,userUuid:e.userUuid}),m(b),a({},b);case"ADD_PATIENT":var h=l(a({},t),{forms:l(a({},t.forms),u({},t.activeFormUuid,l(a({},t.forms[t.activeFormUuid]),{patientUuids:(R=t.forms[t.activeFormUuid].patientUuids,function(t){if(Array.isArray(t))return i(t)}(R)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(R)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(R)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e.patientUuid]),activePatientUuid:e.patientUuid,activeEncounterUuid:null,workflowState:"EDIT_FORM"})))});return m(h),h;case"OPEN_PATIENT_SEARCH":var U=l(a({},t),{forms:l(a({},t.forms),u({},t.activeFormUuid,l(a({},t.forms[t.activeFormUuid]),{activePatientUuid:null,activeEncounterUuid:null,workflowState:"NEW_PATIENT"})))});return m(U),U;case"SAVE_ENCOUNTER":if("SUBMIT_FOR_COMPLETE"===t.forms[t.activeFormUuid].workflowState){var S=t.forms,E=t.activeFormUuid,O=(S[E],c(S,[E].map(s))),g=l(a({},t),{forms:O,activeFormUuid:null});return m(g),(0,n.navigate)({to:"${openmrsSpaBase}/forms"}),g}var P=l(a({},t),{forms:l(a({},t.forms),u({},t.activeFormUuid,l(a({},t.forms[t.activeFormUuid]),{encounters:l(a({},t.forms[t.activeFormUuid].encounters),u({},t.forms[t.activeFormUuid].activePatientUuid,e.encounterUuid)),activePatientUuid:null,activeEncounterUuid:null,workflowState:"SUBMIT_FOR_NEXT"===t.forms[t.activeFormUuid].workflowState?"NEW_PATIENT":"SUBMIT_FOR_REVIEW"===t.forms[t.activeFormUuid].workflowState?"REVIEW":t.forms[t.activeFormUuid].workflowState})))});return m(P),P;case"EDIT_ENCOUNTER":var F=l(a({},t),{forms:l(a({},t.forms),u({},t.activeFormUuid,l(a({},t.forms[t.activeFormUuid]),{activeEncounterUuid:t.forms[t.activeFormUuid].encounters[e.patientUuid],activePatientUuid:e.patientUuid,workflowState:"EDIT_FORM"})))});return m(F),F;case"SUBMIT_FOR_NEXT":return window.dispatchEvent(new CustomEvent("ampath-form-action",{detail:{formUuid:t.activeFormUuid,patientUuid:t.forms[t.activeFormUuid].activePatientUuid,action:"onSubmit"}})),l(a({},t),{forms:l(a({},t.forms),u({},t.activeFormUuid,l(a({},t.forms[t.activeFormUuid]),{workflowState:"SUBMIT_FOR_NEXT"})))});case"SUBMIT_FOR_REVIEW":return window.dispatchEvent(new CustomEvent("ampath-form-action",{detail:{formUuid:t.activeFormUuid,patientUuid:t.forms[t.activeFormUuid].activePatientUuid,action:"onSubmit"}})),l(a({},t),{forms:l(a({},t.forms),u({},t.activeFormUuid,l(a({},t.forms[t.activeFormUuid]),{workflowState:"SUBMIT_FOR_REVIEW"})))});case"SUBMIT_FOR_COMPLETE":return window.dispatchEvent(new CustomEvent("ampath-form-action",{detail:{formUuid:t.activeFormUuid,patientUuid:t.forms[t.activeFormUuid].activePatientUuid,action:"onSubmit"}})),l(a({},t),{forms:l(a({},t.forms),u({},t.activeFormUuid,l(a({},t.forms[t.activeFormUuid]),{workflowState:"SUBMIT_FOR_COMPLETE"})))});case"GO_TO_REVIEW":var T=l(a({},t),{forms:l(a({},t.forms),u({},t.activeFormUuid,l(a({},t.forms[t.activeFormUuid]),{activeEncounterUuid:null,activePatientUuid:null,workflowState:"REVIEW"})))});return m(T),T;case"DESTROY_SESSION":var _=t.forms,I=t.activeFormUuid,k=(_[I],c(_,[I].map(s))),j=l(a({},t),{forms:k,activeFormUuid:null});return m(j),(0,n.navigate)({to:"${openmrsSpaBase}/forms"}),j;case"CLOSE_SESSION":var A=l(a({},t),{activeFormUuid:null});return m(A),(0,n.navigate)({to:"${openmrsSpaBase}/forms"}),A;default:return t}var R}},282:(t,e,r)=>{r.d(e,{wJ:()=>f,lQ:()=>y,Eu:()=>d.Z,zg:()=>S});var n=r(1132),o=r(821);function i(t,e,r,n,o,i,u){try{var a=t[i](u),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var u=t.apply(e,r);function a(t){i(u,n,o,a,l,"next",t)}function l(t){i(u,n,o,a,l,"throw",t)}a(void 0)}))}}var a=function(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;u;)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 u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}},l="(uuid,name,display,encounterType:(uuid,name,viewPrivilege,editPrivilege),version,published,retired,resources:(uuid,name,dataType,valueReference))",c="/ws/rest/v1/form?v=custom:".concat(l),s="/ws/rest/v1/form?v=custom:".concat(l,"&q=poc");const f=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=(0,n.useSession)(),r=!0,i=r?c:s,l=(0,o.ZP)([i,t],u((function(){var t,e,r,o;return a(this,(function(u){switch(u.label){case 0:return[4,(0,n.openmrsFetch)(i)];case 1:return r=u.sent(),[2,null!==(o=null===(t=r.data)||void 0===t||null===(e=t.results)||void 0===e?void 0:e.filter((function(t){return t.published&&!/component/i.test(t.name)})))&&void 0!==o?o:[]]}}))}))),f=l.data,d=l.error;return{forms:null==f?void 0:f.filter((function(t){var r,o;return Boolean((0,n.userHasAccess)(null===(r=t.encounterType)||void 0===r||null===(o=r.editPrivilege)||void 0===o?void 0:o.display,null==e?void 0:e.user))})),isLoading:!d&&!f,error:d}};var d=r(4439),v=r(1672);function m(t,e,r,n,o,i,u){try{var a=t[i](u),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){m(i,n,o,u,a,"next",t)}function a(t){m(i,n,o,u,a,"throw",t)}u(void 0)}))}}const y=function(t){var e="".concat("/ws/rest/v1/encounter/").concat(t),r=(0,o.ZP)(e,p((function(){return function(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;u;)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 u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(t){switch(t.label){case 0:return[4,(0,n.openmrsFetch)(e)];case 1:return[2,t.sent().data||null]}}))}))),i=r.data,u=r.error;return{encounter:i,isLoading:!u&&i,error:u}};function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function w(t,e,r,n,o,i,u){try{var a=t[i](u),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,o)}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(t,e):void 0}}(t,e)||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.")}()}var U=function(t){var e,r,o=t.endpointUrl,i=h((0,v.useState)(null),2),u=i[0],a=i[1],l=h((0,v.useState)(null),2),c=l[0],s=l[1],f=h((0,v.useState)(null),2),d=f[0],m=f[1],p=(0,v.useCallback)((function(t){a(!1),d&&m(null),s(t.data)}),[d]),y=(0,v.useCallback)((function(t){var e,r,n;a(!1),c&&s(null),m(null!==(n=null!==(r=null==t||null===(e=t.responseBody)||void 0===e?void 0:e.error)&&void 0!==r?r:null==t?void 0:t.responseBody)&&void 0!==n?n:t)}),[c]),b=(0,v.useCallback)((e=function(t){var e;return function(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;u;)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 u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(r){return a(!0),e={},[2,(0,n.openmrsFetch)(o,(e.method="POST",e.headers={"Content-Type":"application/json"},e.body=t,e)).then(p).catch(y)]}))},r=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(t){w(i,n,o,u,a,"next",t)}function a(t){w(i,n,o,u,a,"throw",t)}u(void 0)}))},function(t){return r.apply(this,arguments)}),[o,y,p]);return{post:b,isPosting:u,result:c,error:d,reset:function(){a(null),s(null),m(null)}}},S=function(){return U({endpointUrl:"/ws/rest/v1/cohortm/cohort"})}},4439:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(1132),o=r(1672);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e,r,n,o,i,u){try{var a=t[i](u),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,o)}const a=function(t){var e,r,a=(e=(0,o.useState)(null),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}}(e,r)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(e,r)||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.")}()),l=a[0],c=a[1];(0,o.useEffect)((function(){t?d(t):c(null)}),[t]);var s,f,d=(s=function(t){var e;return function(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;u;)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 u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,n.fetchCurrentPatient)(t)];case 1:return e=r.sent(),c(null==e?void 0:e.data),[2]}}))},f=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=s.apply(t,e);function i(t){u(o,r,n,i,a,"next",t)}function a(t){u(o,r,n,i,a,"throw",t)}i(void 0)}))},function(t){return f.apply(this,arguments)});return l}},7612:(t,e,r)=>{r.d(e,{Z:()=>a});var n=r(1672),o=r(1132);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||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.")}()}const a=function(t){var e=u((0,n.useState)(!1),2),r=e[0],i=e[1],a=u((0,n.useState)(null),2),l=a[0],c=a[1],s=u((0,n.useState)(null),2),f=s[0],d=s[1],v=(0,n.useCallback)((function(t){i(!1),d(!1),c(t)}),[]),m=(0,n.useCallback)((function(t){i(!1),c(null),d(t)}),[]),p=(0,n.useCallback)((function(){(0,o.openmrsFetch)("/ws/rest/v1/systemsetting?q=".concat(t,"&v=default")).then(v).catch(m)}),[m,v,t]);return(0,n.useEffect)((function(){p()}),[p]),{result:l,error:f,isSubmitting:r}}}}]);
package/dist/68.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 68.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[68],{6068:(e,t,n)=>{n.r(t),n.d(t,{BrowserRouter:()=>re,HashRouter:()=>ie,Link:()=>ue,MemoryRouter:()=>K,NavLink:()=>ce,Navigate:()=>V,NavigationType:()=>a,Outlet:()=>q,Route:()=>z,Router:()=>G,Routes:()=>Q,UNSAFE_LocationContext:()=>v,UNSAFE_NavigationContext:()=>d,UNSAFE_RouteContext:()=>m,createPath:()=>f,createRoutesFromChildren:()=>X,createSearchParams:()=>he,generatePath:()=>y,matchPath:()=>w,matchRoutes:()=>b,parsePath:()=>p,renderMatches:()=>Y,resolvePath:()=>S,unstable_HistoryRouter:()=>oe,useHref:()=>M,useInRouterContext:()=>$,useLinkClickHandler:()=>le,useLocation:()=>j,useMatch:()=>W,useNavigate:()=>H,useNavigationType:()=>B,useOutlet:()=>U,useOutletContext:()=>I,useParams:()=>Z,useResolvedPath:()=>F,useRoutes:()=>D,useSearchParams:()=>se});var a,r=n(1672),i=n(7462);!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));var o="beforeunload",u="popstate";function c(e,t,n){return Math.min(Math.max(e,t),n)}function l(e){e.preventDefault(),e.returnValue=""}function s(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function h(){return Math.random().toString(36).substr(2,8)}function f(e){var t=e.pathname,n=void 0===t?"/":t,a=e.search,r=void 0===a?"":a,i=e.hash,o=void 0===i?"":i;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),o&&"#"!==o&&(n+="#"===o.charAt(0)?o:"#"+o),n}function p(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}const d=(0,r.createContext)(null),v=(0,r.createContext)(null),m=(0,r.createContext)({outlet:null,matches:[]});function g(e,t){if(!e)throw new Error(t)}function y(e,t){return void 0===t&&(t={}),e.replace(/:(\w+)/g,((e,n)=>(null==t[n]&&g(!1),t[n]))).replace(/\/*\*$/,(e=>null==t["*"]?"":t["*"].replace(/^\/*/,"/")))}function b(e,t,n){void 0===n&&(n="/");let a=O(("string"==typeof t?p(t):t).pathname||"/",n);if(null==a)return null;let r=x(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(r);let i=null;for(let e=0;null==i&&e<r.length;++e)i=C(r[e],a);return i}function x(e,t,n,a){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===a&&(a=""),e.forEach(((e,r)=>{let i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(a)||g(!1),i.relativePath=i.relativePath.slice(a.length));let o=L([a,i.relativePath]),u=n.concat(i);e.children&&e.children.length>0&&(!0===e.index&&g(!1),x(e.children,t,u,o)),(null!=e.path||e.index)&&t.push({path:o,score:k(o,e.index),routesMeta:u})})),t}const P=/^:\w+$/,E=e=>"*"===e;function k(e,t){let n=e.split("/"),a=n.length;return n.some(E)&&(a+=-2),t&&(a+=2),n.filter((e=>!E(e))).reduce(((e,t)=>e+(P.test(t)?3:""===t?1:10)),a)}function C(e,t){let{routesMeta:n}=e,a={},r="/",i=[];for(let e=0;e<n.length;++e){let o=n[e],u=e===n.length-1,c="/"===r?t:t.slice(r.length)||"/",l=w({path:o.relativePath,caseSensitive:o.caseSensitive,end:u},c);if(!l)return null;Object.assign(a,l.params);let s=o.route;i.push({params:a,pathname:L([r,l.pathname]),pathnameBase:A(L([r,l.pathnameBase])),route:s}),"/"!==l.pathnameBase&&(r=L([r,l.pathnameBase]))}return i}function w(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0);let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,((e,t)=>(a.push(t),"([^\\/]+)")));return e.endsWith("*")?(a.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(r,t?void 0:"i"),a]}(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let i=r[0],o=i.replace(/(.)\/+$/,"$1"),u=r.slice(1);return{params:a.reduce(((e,t,n)=>{if("*"===t){let e=u[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(t){return e}}(u[n]||""),e}),{}),pathname:i,pathnameBase:o,pattern:e}}function S(e,t){void 0===t&&(t="/");let{pathname:n,search:a="",hash:r=""}="string"==typeof e?p(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:_(a),hash:N(r)}}function R(e,t,n){let a,r="string"==typeof e?p(e):e,i=""===e||""===r.pathname?"/":r.pathname;if(null==i)a=n;else{let e=t.length-1;if(i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}a=e>=0?t[e]:"/"}let o=S(r,a);return i&&"/"!==i&&i.endsWith("/")&&!o.pathname.endsWith("/")&&(o.pathname+="/"),o}function O(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}const L=e=>e.join("/").replace(/\/\/+/g,"/"),A=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function M(e){$()||g(!1);let{basename:t,navigator:n}=(0,r.useContext)(d),{hash:a,pathname:i,search:o}=F(e),u=i;if("/"!==t){let n=function(e){return""===e||""===e.pathname?"/":"string"==typeof e?p(e).pathname:e.pathname}(e),a=null!=n&&n.endsWith("/");u="/"===i?t+(a?"/":""):L([t,i])}return n.createHref({pathname:u,search:o,hash:a})}function $(){return null!=(0,r.useContext)(v)}function j(){return $()||g(!1),(0,r.useContext)(v).location}function B(){return(0,r.useContext)(v).navigationType}function W(e){$()||g(!1);let{pathname:t}=j();return(0,r.useMemo)((()=>w(e,t)),[t,e])}function H(){$()||g(!1);let{basename:e,navigator:t}=(0,r.useContext)(d),{matches:n}=(0,r.useContext)(m),{pathname:a}=j(),i=JSON.stringify(n.map((e=>e.pathnameBase))),o=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{o.current=!0})),(0,r.useCallback)((function(n,r){if(void 0===r&&(r={}),!o.current)return;if("number"==typeof n)return void t.go(n);let u=R(n,JSON.parse(i),a);"/"!==e&&(u.pathname=L([e,u.pathname])),(r.replace?t.replace:t.push)(u,r.state)}),[e,t,i,a])}const T=(0,r.createContext)(null);function I(){return(0,r.useContext)(T)}function U(e){let t=(0,r.useContext)(m).outlet;return t?(0,r.createElement)(T.Provider,{value:e},t):t}function Z(){let{matches:e}=(0,r.useContext)(m),t=e[e.length-1];return t?t.params:{}}function F(e){let{matches:t}=(0,r.useContext)(m),{pathname:n}=j(),a=JSON.stringify(t.map((e=>e.pathnameBase)));return(0,r.useMemo)((()=>R(e,JSON.parse(a),n)),[e,a,n])}function D(e,t){$()||g(!1);let{matches:n}=(0,r.useContext)(m),a=n[n.length-1],i=a?a.params:{},o=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let u,c=j();if(t){var l;let e="string"==typeof t?p(t):t;"/"===o||(null==(l=e.pathname)?void 0:l.startsWith(o))||g(!1),u=e}else u=c;let s=u.pathname||"/",h=b(e,{pathname:"/"===o?s:s.slice(o.length)||"/"});return J(h&&h.map((e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:L([o,e.pathname]),pathnameBase:"/"===e.pathnameBase?o:L([o,e.pathnameBase])}))),n)}function J(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight(((n,a,i)=>(0,r.createElement)(m.Provider,{children:void 0!==a.route.element?a.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,i+1))}})),null)}function K(e){let{basename:t,children:n,initialEntries:o,initialIndex:u}=e,l=(0,r.useRef)();null==l.current&&(l.current=function(e){void 0===e&&(e={});var t=e,n=t.initialEntries,r=void 0===n?["/"]:n,o=t.initialIndex,u=r.map((function(e){return(0,i.Z)({pathname:"/",search:"",hash:"",state:null,key:h()},"string"==typeof e?p(e):e)})),l=c(null==o?u.length-1:o,0,u.length-1),d=a.Pop,v=u[l],m=s(),g=s();function y(e,t){return void 0===t&&(t=null),(0,i.Z)({pathname:v.pathname,search:"",hash:""},"string"==typeof e?p(e):e,{state:t,key:h()})}function b(e,t,n){return!g.length||(g.call({action:e,location:t,retry:n}),!1)}function x(e,t){d=e,v=t,m.call({action:d,location:v})}function P(e){var t=c(l+e,0,u.length-1),n=a.Pop,r=u[t];b(n,r,(function(){P(e)}))&&(l=t,x(n,r))}var E={get index(){return l},get action(){return d},get location(){return v},createHref:function(e){return"string"==typeof e?e:f(e)},push:function e(t,n){var r=a.Push,i=y(t,n);b(r,i,(function(){e(t,n)}))&&(l+=1,u.splice(l,u.length,i),x(r,i))},replace:function e(t,n){var r=a.Replace,i=y(t,n);b(r,i,(function(){e(t,n)}))&&(u[l]=i,x(r,i))},go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(e){return m.push(e)},block:function(e){return g.push(e)}};return E}({initialEntries:o,initialIndex:u}));let d=l.current,[v,m]=(0,r.useState)({action:d.action,location:d.location});return(0,r.useLayoutEffect)((()=>d.listen(m)),[d]),(0,r.createElement)(G,{basename:t,children:n,location:v.location,navigationType:v.action,navigator:d})}function V(e){let{to:t,replace:n,state:a}=e;$()||g(!1);let i=H();return(0,r.useEffect)((()=>{i(t,{replace:n,state:a})})),null}function q(e){return U(e.context)}function z(e){g(!1)}function G(e){let{basename:t="/",children:n=null,location:i,navigationType:o=a.Pop,navigator:u,static:c=!1}=e;$()&&g(!1);let l=A(t),s=(0,r.useMemo)((()=>({basename:l,navigator:u,static:c})),[l,u,c]);"string"==typeof i&&(i=p(i));let{pathname:h="/",search:f="",hash:m="",state:y=null,key:b="default"}=i,x=(0,r.useMemo)((()=>{let e=O(h,l);return null==e?null:{pathname:e,search:f,hash:m,state:y,key:b}}),[l,h,f,m,y,b]);return null==x?null:(0,r.createElement)(d.Provider,{value:s},(0,r.createElement)(v.Provider,{children:n,value:{location:x,navigationType:o}}))}function Q(e){let{children:t,location:n}=e;return D(X(t),n)}function X(e){let t=[];return r.Children.forEach(e,(e=>{if(!(0,r.isValidElement)(e))return;if(e.type===r.Fragment)return void t.push.apply(t,X(e.props.children));e.type!==z&&g(!1);let n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=X(e.props.children)),t.push(n)})),t}function Y(e){return J(e)}function ee(){return ee=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ee.apply(this,arguments)}function te(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}const ne=["onClick","reloadDocument","replace","state","target","to"],ae=["aria-current","caseSensitive","className","end","style","to","children"];function re(e){let{basename:t,children:n,window:c}=e,d=(0,r.useRef)();null==d.current&&(d.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function c(){var e=n.location,t=e.pathname,a=e.search,i=e.hash,o=r.state||{};return[o.idx,{pathname:t,search:a,hash:i,state:o.usr||null,key:o.key||"default"}]}var d=null;n.addEventListener(u,(function(){if(d)x.call(d),d=null;else{var e=a.Pop,t=c(),n=t[0],r=t[1];if(x.length){if(null!=n){var i=g-n;i&&(d={action:e,location:r,retry:function(){S(-1*i)}},S(i))}}else w(e)}}));var v=a.Pop,m=c(),g=m[0],y=m[1],b=s(),x=s();function P(e){return"string"==typeof e?e:f(e)}function E(e,t){return void 0===t&&(t=null),(0,i.Z)({pathname:y.pathname,hash:"",search:""},"string"==typeof e?p(e):e,{state:t,key:h()})}function k(e,t){return[{usr:e.state,key:e.key,idx:t},P(e)]}function C(e,t,n){return!x.length||(x.call({action:e,location:t,retry:n}),!1)}function w(e){v=e;var t=c();g=t[0],y=t[1],b.call({action:v,location:y})}function S(e){r.go(e)}null==g&&(g=0,r.replaceState((0,i.Z)({},r.state,{idx:g}),""));var R={get action(){return v},get location(){return y},createHref:P,push:function e(t,i){var o=a.Push,u=E(t,i);if(C(o,u,(function(){e(t,i)}))){var c=k(u,g+1),l=c[0],s=c[1];try{r.pushState(l,"",s)}catch(e){n.location.assign(s)}w(o)}},replace:function e(t,n){var i=a.Replace,o=E(t,n);if(C(i,o,(function(){e(t,n)}))){var u=k(o,g),c=u[0],l=u[1];r.replaceState(c,"",l),w(i)}},go:S,back:function(){S(-1)},forward:function(){S(1)},listen:function(e){return b.push(e)},block:function(e){var t=x.push(e);return 1===x.length&&n.addEventListener(o,l),function(){t(),x.length||n.removeEventListener(o,l)}}};return R}({window:c}));let v=d.current,[m,g]=(0,r.useState)({action:v.action,location:v.location});return(0,r.useLayoutEffect)((()=>v.listen(g)),[v]),(0,r.createElement)(G,{basename:t,children:n,location:m.location,navigationType:m.action,navigator:v})}function ie(e){let{basename:t,children:n,window:c}=e,d=(0,r.useRef)();null==d.current&&(d.current=function(e){void 0===e&&(e={});var t=e.window,n=void 0===t?document.defaultView:t,r=n.history;function c(){var e=p(n.location.hash.substr(1)),t=e.pathname,a=void 0===t?"/":t,i=e.search,o=void 0===i?"":i,u=e.hash,c=void 0===u?"":u,l=r.state||{};return[l.idx,{pathname:a,search:o,hash:c,state:l.usr||null,key:l.key||"default"}]}var d=null;function v(){if(d)P.call(d),d=null;else{var e=a.Pop,t=c(),n=t[0],r=t[1];if(P.length){if(null!=n){var i=y-n;i&&(d={action:e,location:r,retry:function(){R(-1*i)}},R(i))}}else S(e)}}n.addEventListener(u,v),n.addEventListener("hashchange",(function(){f(c()[1])!==f(b)&&v()}));var m=a.Pop,g=c(),y=g[0],b=g[1],x=s(),P=s();function E(e){return function(){var e=document.querySelector("base"),t="";if(e&&e.getAttribute("href")){var a=n.location.href,r=a.indexOf("#");t=-1===r?a:a.slice(0,r)}return t}()+"#"+("string"==typeof e?e:f(e))}function k(e,t){return void 0===t&&(t=null),(0,i.Z)({pathname:b.pathname,hash:"",search:""},"string"==typeof e?p(e):e,{state:t,key:h()})}function C(e,t){return[{usr:e.state,key:e.key,idx:t},E(e)]}function w(e,t,n){return!P.length||(P.call({action:e,location:t,retry:n}),!1)}function S(e){m=e;var t=c();y=t[0],b=t[1],x.call({action:m,location:b})}function R(e){r.go(e)}return null==y&&(y=0,r.replaceState((0,i.Z)({},r.state,{idx:y}),"")),{get action(){return m},get location(){return b},createHref:E,push:function e(t,i){var o=a.Push,u=k(t,i);if(w(o,u,(function(){e(t,i)}))){var c=C(u,y+1),l=c[0],s=c[1];try{r.pushState(l,"",s)}catch(e){n.location.assign(s)}S(o)}},replace:function e(t,n){var i=a.Replace,o=k(t,n);if(w(i,o,(function(){e(t,n)}))){var u=C(o,y),c=u[0],l=u[1];r.replaceState(c,"",l),S(i)}},go:R,back:function(){R(-1)},forward:function(){R(1)},listen:function(e){return x.push(e)},block:function(e){var t=P.push(e);return 1===P.length&&n.addEventListener(o,l),function(){t(),P.length||n.removeEventListener(o,l)}}}}({window:c}));let v=d.current,[m,g]=(0,r.useState)({action:v.action,location:v.location});return(0,r.useLayoutEffect)((()=>v.listen(g)),[v]),(0,r.createElement)(G,{basename:t,children:n,location:m.location,navigationType:m.action,navigator:v})}function oe(e){let{basename:t,children:n,history:a}=e;const[i,o]=(0,r.useState)({action:a.action,location:a.location});return(0,r.useLayoutEffect)((()=>a.listen(o)),[a]),(0,r.createElement)(G,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:a})}const ue=(0,r.forwardRef)((function(e,t){let{onClick:n,reloadDocument:a,replace:i=!1,state:o,target:u,to:c}=e,l=te(e,ne),s=M(c),h=le(c,{replace:i,state:o,target:u});return(0,r.createElement)("a",ee({},l,{href:s,onClick:function(e){n&&n(e),e.defaultPrevented||a||h(e)},ref:t,target:u}))})),ce=(0,r.forwardRef)((function(e,t){let{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:o=!1,style:u,to:c,children:l}=e,s=te(e,ae),h=j(),f=F(c),p=h.pathname,d=f.pathname;a||(p=p.toLowerCase(),d=d.toLowerCase());let v,m=p===d||!o&&p.startsWith(d)&&"/"===p.charAt(d.length),g=m?n:void 0;v="function"==typeof i?i({isActive:m}):[i,m?"active":null].filter(Boolean).join(" ");let y="function"==typeof u?u({isActive:m}):u;return(0,r.createElement)(ue,ee({},s,{"aria-current":g,className:v,ref:t,style:y,to:c}),"function"==typeof l?l({isActive:m}):l)}));function le(e,t){let{target:n,replace:a,state:i}=void 0===t?{}:t,o=H(),u=j(),c=F(e);return(0,r.useCallback)((t=>{if(!(0!==t.button||n&&"_self"!==n||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let n=!!a||f(u)===f(c);o(e,{replace:n,state:i})}}),[u,o,c,a,i,n,e])}function se(e){let t=(0,r.useRef)(he(e)),n=j(),a=(0,r.useMemo)((()=>{let e=he(n.search);for(let n of t.current.keys())e.has(n)||t.current.getAll(n).forEach((t=>{e.append(n,t)}));return e}),[n.search]),i=H();return[a,(0,r.useCallback)(((e,t)=>{i("?"+he(e),t)}),[i])]}function he(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map((e=>[n,e])):[[n,a]])}),[]))}},7462:(e,t,n)=>{function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},a.apply(this,arguments)}n.d(t,{Z:()=>a})}}]);
@@ -0,0 +1,21 @@
1
+ /**
2
+ * React Router DOM v6.3.0
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+
12
+ /**
13
+ * React Router v6.3.0
14
+ *
15
+ * Copyright (c) Remix Software Inc.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE.md file in the root directory of this source tree.
19
+ *
20
+ * @license MIT
21
+ */
package/dist/74.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[74],{4211:(t,e,n)=>{n.d(e,{Z:()=>u});var a=n(4422),r=n(1672),i=n.n(r),o=n(3397);function s(t,e,n,a,r,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(a,r)}function l(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){s(i,a,r,o,l,"next",t)}function l(t){s(i,a,r,o,l,"throw",t)}o(void 0)}))}}var c=function(t,e){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=e.call(t,o)}catch(t){i=[6,t],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};const u=function(t){var e,n=t.open,r=t.setOpen,s=t.context,u=(0,o.useTranslation)().t,d=(e=l((function(){return c(this,(function(t){switch(t.label){case 0:return[4,s.destroySession()];case 1:return t.sent(),[2]}}))})),function(){return e.apply(this,arguments)}),f=function(){var t=l((function(){return c(this,(function(t){switch(t.label){case 0:return[4,s.closeSession()];case 1:return t.sent(),[2]}}))}));return function(){return t.apply(this,arguments)}}();return i().createElement(a.ComposedModal,{open:n},i().createElement(a.ModalHeader,null,u("areYouSure","Are you sure?")),i().createElement(a.ModalBody,null,u("cancelExplanation","You will lose any unsaved changes on the current form. Do you want to discard the current session?")),i().createElement(a.ModalFooter,null,i().createElement(a.Button,{kind:"secondary",onClick:function(){return r(!1)}},u("cancel","Cancel")),i().createElement(a.Button,{kind:"danger",onClick:d},u("discard","Discard")),i().createElement(a.Button,{kind:"primary",onClick:f},u("saveSession","Save Session"))))}},2223:(t,e,n)=>{n.d(e,{Z:()=>s});var a=n(4422),r=n(1672),i=n.n(r),o=n(3397);const s=function(t){var e=t.open,n=t.setOpen,r=t.context,s=t.validateFirst,l=void 0!==s&&s,c=(0,o.useTranslation)().t;return i().createElement(a.ComposedModal,{open:e},i().createElement(a.ModalHeader,null,c("areYouSure","Are you sure?")),i().createElement(a.ModalBody,null,c("saveExplanation","Do you want to save the current form and exit the workflow?")),i().createElement(a.ModalFooter,null,i().createElement(a.Button,{kind:"secondary",onClick:function(){return n(!1)}},c("cancel","Cancel")),i().createElement(a.Button,{kind:"primary",onClick:function(){l?r.validateForComplete():r.submitForComplete(),n(!1)}},c("complete","Complete"))))}},611:(t,e,n)=>{n.d(e,{Z:()=>l});var a=n(1672),r=n.n(a),i=n(1132),o=n(4439);function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}const l=function(t){var e=t.formUuid,n=t.patientUuid,l=t.visitUuid,c=t.visitTypeUuid,u=t.encounterUuid,d=t.handlePostResponse,f=t.handleEncounterCreate,_=t.handleOnValidate,m=(0,o.Z)(n);(0,a.useEffect)((function(){return function(){return(0,i.detach)("form-widget-slot","form-widget-slot")}}));var y,v,p=(y=(0,a.useState)(!0),v=2,function(t){if(Array.isArray(t))return t}(y)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var a,r,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(a=n.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(t){s=!0,r=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return i}}(y,v)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(y,v)||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.")}()),h=p[0],b=p[1];return(0,a.useEffect)((function(){n&&e&&m&&(b(!1),setTimeout((function(){b(!0)})))}),[n,e,m]),r().createElement("div",null,h&&e&&n&&m&&r().createElement(i.ExtensionSlot,{name:"form-widget-slot",state:{view:"form",formUuid:e,visitUuid:null!=l?l:"",visitTypeUuid:null!=c?c:"",patientUuid:n,patient:m,encounterUuid:null!=u?u:"",closeWorkspace:function(){},handlePostResponse:d,handleEncounterCreate:f,handleOnValidate:_,showDiscardSubmitButtons:!1}}))}},9688:(t,e,n)=>{n.d(e,{Z:()=>l});var a=n(1672),r=n(3397),i=n(1132);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var a,r,i=[],o=!0,s=!1;try{for(n=n.call(t);!(o=(a=n.next()).done)&&(i.push(a.value),!e||i.length!==e);o=!0);}catch(t){s=!0,r=t}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||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.")}()}const l=function(t){var e=t.showSuccessNotification,n=void 0===e||e,o=t.showErrorNotification,l=void 0===o||o,c=(0,r.useTranslation)().t,u=s((0,a.useState)(!1),2),d=u[0],f=u[1],_=s((0,a.useState)(null),2),m=_[0],y=_[1],v=s((0,a.useState)(null),2),p=v[0],h=v[1],b=(0,a.useCallback)((function(t){var e,a;f(!1),h(!1),y(t),n&&(0,i.showToast)({critical:!0,kind:"success",description:c("visitStartedSuccessfully","".concat(null==t||null===(e=t.data)||void 0===e||null===(a=e.visitType)||void 0===a?void 0:a.display," started successfully")),title:c("visitStarted","Visit started")})}),[c,n]),w=(0,a.useCallback)((function(t){f(!1),y(!1),h(t),l&&(0,i.showNotification)({title:c("startVisitError","Error starting visit"),kind:"error",critical:!0,description:null==t?void 0:t.message})}),[c,l]);return{saveVisit:(0,a.useCallback)((function(t){var e={patient:t.patientUuid,startDatetime:t.startDatetime,stopDatetime:t.stopDatetime,visitType:t.visitType,location:t.location};(0,i.openmrsFetch)("/ws/rest/v1/visit",{method:"POST",body:e,headers:{"Content-Type":"application/json"}}).then(b).catch(w)}),[w,b]),updateEncounter:(0,a.useCallback)((function(t){(0,i.openmrsFetch)("/ws/rest/v1/encounter/"+t.uuid,{method:"POST",body:{visit:t.visit},headers:{"Content-Type":"application/json"}})}),[]),success:m,error:p,isSubmitting:d}}},1671:(t,e,n)=>{n.d(e,{Z:()=>k});var a=n(3133),r=n(1409),i=n(4422),o=n(1672),s=n.n(o),l=n(4439),c=n(3379),u=n.n(c),d=n(7795),f=n.n(d),_=n(569),m=n.n(_),y=n(3565),v=n.n(y),p=n(9216),h=n.n(p),b=n(4589),w=n.n(b),E=n(7018),S={};S.styleTagTransform=w(),S.setAttributes=v(),S.insert=m().bind(null,"head"),S.domAPI=f(),S.insertStyleElement=h(),u()(E.Z,S);const C=E.Z&&E.Z.locals?E.Z.locals:void 0;var g=function(t){var e=t.onClick,n=void 0===e?function(){}:e,a=t.active,r=t.children;return s().createElement("div",{onClick:n,className:"".concat(C.cardContainer," ").concat(!a&&C.inactiveCard),role:"button",tabIndex:0},r)};const k=function(t){var e,n,o,c,u,d,f,_=t.patientUuid,m=t.activePatientUuid,y=t.editEncounter,v=t.encounters,p=(0,l.Z)(_),h=null==p||null===(e=p.name)||void 0===e||null===(n=e[0])||void 0===n||null===(o=n.given)||void 0===o?void 0:o[0],b=null==p||null===(c=p.name)||void 0===c||null===(u=c[0])||void 0===u?void 0:u.family,w=null==p||null===(d=p.identifier)||void 0===d||null===(f=d[0])||void 0===f?void 0:f.value;if(!p)return s().createElement(g,{active:!0},s().createElement(i.SkeletonText,{className:C.skeletonText}));var E=m===_;return s().createElement(g,{onClick:E?function(){}:function(){return y(_)},active:E},s().createElement("div",{className:C.patientInfo},s().createElement("div",{className:C.identifier},w),s().createElement("div",{className:"".concat(C.displayName," ").concat(E&&C.activeDisplayName)},h," ",b)),s().createElement("div",null,_ in v?s().createElement(a.Wz,{size:16,className:C.statusSuccess}):s().createElement(r.lw,{size:16,className:C.statusWarning})))}},7018:(t,e,n)=>{n.d(e,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".-esm-fast-data-entry__styles__cardContainer___4G2XB{padding:1rem;display:flex;cursor:pointer}.-esm-fast-data-entry__styles__skeletonText___OTsMw{max-width:8rem}.-esm-fast-data-entry__styles__identifier___QX2jh{font-weight:300;font-size:.8rem;line-height:.9rem}.-esm-fast-data-entry__styles__displayName___LPMSY{font-weight:bold}.-esm-fast-data-entry__styles__activeDisplayName___38O3T{color:#4589ff}.-esm-fast-data-entry__styles__inactiveCard___VF8Fq:hover{background-color:#c6c6c6}.-esm-fast-data-entry__styles__patientInfo___1U6KC{flex-grow:1}.-esm-fast-data-entry__styles__statusSuccess___aKUxu{fill:#198038}.-esm-fast-data-entry__styles__statusWarning___F1leF{fill:#d2a106}",""]),r.locals={cardContainer:"-esm-fast-data-entry__styles__cardContainer___4G2XB",skeletonText:"-esm-fast-data-entry__styles__skeletonText___OTsMw",identifier:"-esm-fast-data-entry__styles__identifier___QX2jh",displayName:"-esm-fast-data-entry__styles__displayName___LPMSY",activeDisplayName:"-esm-fast-data-entry__styles__activeDisplayName___38O3T",inactiveCard:"-esm-fast-data-entry__styles__inactiveCard___VF8Fq",patientInfo:"-esm-fast-data-entry__styles__patientInfo___1U6KC",statusSuccess:"-esm-fast-data-entry__styles__statusSuccess___aKUxu",statusWarning:"-esm-fast-data-entry__styles__statusWarning___F1leF"};const i=r}}]);
package/dist/757.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[757],{2757:e=>{e.exports=JSON.parse('{"actions":"Actions","allFieldsRequired":"Tous les champs sont requis, sauf s\'ils sont marqués comme optionnels","areYouSure":"Êtes vous sûres?","cancel":"Annuler","cancelExplanation":"Les modifications non sauvegardées seront perdues. Souhaitez-vous quitter la session actuelle?","chooseGroupError":"Veuillez sélectionner un groupe","createNewPatient":"Créer un nouveau patient","createGroup":"Créer un groupe","createNewGroup":"Créer un nouveau groupe","createNewSession":"Créer une nouvelle session","complete":"Terminer","dataErrorMessage":"Un problème est survenu en chargeant les données du serveur","description":"Description","discard":"Eliminer","error":"Erreur","errorCoppy":"Désolé, il y a eu une erreur. Vous pouvez essayer de recharger cette page, ou contacter l\'administrateur du site et citer le code d\'erreur ci-dessus.","errorLoadingData":"Erreur de chargement des données","fastDataEntry":"Saisie rapide de données","fillForm":"Remplir le formulaire","formName":"Nom du formulaire","formsAppMenuLink":"Saisie rapide de données","goToForm":"Accéder au formulaire","group":"Groupe","groupNameError":"Veuillez saisir un nom de groupe","members":"Membres","newGroupName":"Nom du nouveau groupe","nextPatient":"Prochain patient","noFormsFound":"Aucun formulaire à montrer","noFormsFoundMessage":"Aucun formulaire n\'a pu être trouvé pour cette catégorie. Veuillez vérifier l\'UUIDS du concept du formulaire ainsi que les droits d\'accès.","noGroupsFoundMessage":"Désolé, aucun groupe n\'a pu être trouvé.","noPatientError":"Veuillez entrer au moins un patient","or":"ou","orLabelName":"OU nom de l\'étiquette","practitionerName":"Nom du praticien","remove":"Enlever","resumeSession":"Reprendre la session","resumeGroupSession":"Reprendre la session de groupe","saveAndComplete":"Sauvegarder et terminer","saveExplanation":"Voulez-vous sauvegarder le formulaire actuel et quitter le flux de travail?","saveSession":"Sauvegarder la session","searchResultsText":"Résultat(s) de la recherche","selectPatientFirst":"Veuillez d\'abord sélectionner un patient","sessionDate":"Date de la session","sessionDetails":"Détails de la session","sessionName":"Nom de la session","sessionNotes":"Notes de la session","startGroupSession":"Démarrer la session de groupe","trySearchWithPatientUniqueID":"Essayez de rechercher la description de la cohorte"}')}}]);
package/dist/776.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[776],{5776:(a,e,n)=>{n.r(e),n.d(e,{default:()=>_});var t=n(1672),s=n.n(t),r=n(3397),p=n(1132);function _(){var a=(0,r.useTranslation)().t;return s().createElement(p.ConfigurableLink,{to:"${openmrsSpaBase}/forms"},a("formsAppMenuLink","Fast Data Entry"))}}}]);
package/dist/804.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[804],{9804:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a=n(1672),r=n.n(a),l=n(1338),m=window.spaBase,u="".concat(m).concat("/forms"),o=r().lazy((function(){return Promise.all([n.e(553),n.e(397),n.e(617),n.e(229),n.e(32)]).then(n.bind(n,8032))})),c=r().lazy((function(){return Promise.all([n.e(820),n.e(553),n.e(397),n.e(617),n.e(74),n.e(255)]).then(n.bind(n,5255))})),s=r().lazy((function(){return Promise.all([n.e(820),n.e(327),n.e(553),n.e(403),n.e(397),n.e(617),n.e(229),n.e(74),n.e(168)]).then(n.bind(n,5168))}));const i=function(){return r().createElement("main",null,r().createElement(l.BrowserRouter,{basename:u},r().createElement(l.Routes,null,r().createElement(l.Route,{path:"/",element:r().createElement(o,null)}),r().createElement(l.Route,{path:"/form/:formUuid",element:r().createElement(c,null)}),r().createElement(l.Route,{path:"/groupform/:formUuid",element:r().createElement(s,null)}))))}}}]);
package/dist/820.js ADDED
@@ -0,0 +1 @@
1
+ (self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[820],{8115:(e,t,r)=>{"use strict";r.d(t,{a2:()=>u,d8:()=>z,mm:()=>g,r_:()=>v});var n,l,a,i,o,c,h=r(1927),w=r(1672),s=r.n(w),p=["children","size"],d=["children","size"],f=["children","size"],m=["children","size"],g=s().forwardRef((function(e,t){var r=e.children,l=e.size,a=void 0===l?16:l,i=(0,h._)(e,p);return s().createElement(h.I,(0,h.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),n||(n=s().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)})),v=s().forwardRef((function(e,t){var r=e.children,n=e.size,i=void 0===n?16:n,o=(0,h._)(e,d);return s().createElement(h.I,(0,h.a)({width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},o),l||(l=s().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"})),a||(a=s().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)})),u=s().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,h._)(e,f);return 16===l||"16"===l||"16px"===l?s().createElement(h.I,(0,h.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),i||(i=s().createElement("path",{d:"M3.7 6.7L7.5 2.9 7.5 15 8.5 15 8.5 2.9 12.3 6.7 13 6 8 1 3 6z"})),r):s().createElement(h.I,(0,h.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),o||(o=s().createElement("path",{d:"M16 4L6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z"})),r)})),z=s().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,h._)(e,m);return s().createElement(h.I,(0,h.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),c||(c=s().createElement("path",{d:"M27.6 20.6L24 24.2 24 4 22 4 22 24.2 18.4 20.6 17 22 23 28 29 22zM9 4L3 10 4.4 11.4 8 7.8 8 28 10 28 10 7.8 13.6 11.4 15 10z"})),r)}))},1409:(e,t,r)=>{"use strict";r.d(t,{G7:()=>T,KS:()=>k,Od:()=>W,Rr:()=>Y,lw:()=>N,v3:()=>D});var n,l,a,i,o,c,h,w,s,p,d,f,m,g,v,u,z,x,M,E,b,y,C,O,I,L,B,_=r(1927),A=r(1672),j=r.n(A),S=["children","size"],R=["children","size"],P=["children","size"],Z=["children","size"],H=["children","size"],V=["children","size"],T=j().forwardRef((function(e,t){var r=e.children,o=e.size,c=void 0===o?16:o,h=(0,_._)(e,S);return 16===c||"16"===c||"16px"===c?j().createElement(_.I,(0,_.a)({width:c,height:c,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},h),n||(n=j().createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),l||(l=j().createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),r):j().createElement(_.I,(0,_.a)({width:c,height:c,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},h),a||(a=j().createElement("path",{d:"M30.94,15.66A16.69,16.69,0,0,0,16,5,16.69,16.69,0,0,0,1.06,15.66a1,1,0,0,0,0,.68A16.69,16.69,0,0,0,16,27,16.69,16.69,0,0,0,30.94,16.34,1,1,0,0,0,30.94,15.66ZM16,25c-5.3,0-10.9-3.93-12.93-9C5.1,10.93,10.7,7,16,7s10.9,3.93,12.93,9C26.9,21.07,21.3,25,16,25Z"})),i||(i=j().createElement("path",{d:"M16,10a6,6,0,1,0,6,6A6,6,0,0,0,16,10Zm0,10a4,4,0,1,1,4-4A4,4,0,0,1,16,20Z"})),r)})),k=j().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,_._)(e,R);return 16===l||"16"===l||"16px"===l?j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),o||(o=j().createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),c||(c=j().createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),r):j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),h||(h=j().createElement("path",{d:"M5.24,22.51l1.43-1.42A14.06,14.06,0,0,1,3.07,16C5.1,10.93,10.7,7,16,7a12.38,12.38,0,0,1,4,.72l1.55-1.56A14.72,14.72,0,0,0,16,5,16.69,16.69,0,0,0,1.06,15.66a1,1,0,0,0,0,.68A16,16,0,0,0,5.24,22.51Z"})),w||(w=j().createElement("path",{d:"M12 15.73a4 4 0 013.7-3.7l1.81-1.82a6 6 0 00-7.33 7.33zM30.94 15.66A16.4 16.4 0 0025.2 8.22L30 3.41 28.59 2 2 28.59 3.41 30l5.1-5.1A15.29 15.29 0 0016 27 16.69 16.69 0 0030.94 16.34 1 1 0 0030.94 15.66zM20 16a4 4 0 01-6 3.44L19.44 14A4 4 0 0120 16zm-4 9a13.05 13.05 0 01-6-1.58l2.54-2.54a6 6 0 008.35-8.35l2.87-2.87A14.54 14.54 0 0128.93 16C26.9 21.07 21.3 25 16 25z"})),r)})),D=j().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,_._)(e,P);return 16===l||"16"===l||"16px"===l?j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),s||(s=j().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),p||(p=j().createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),r):j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),d||(d=j().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),f||(f=j().createElement("path",{d:"M15 8H17V19H15zM16 22a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 22z"})),r)})),N=j().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,_._)(e,Z);return 16===l||"16"===l||"16px"===l?j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),m||(m=j().createElement("path",{d:"M14.5,14h-13c-0.2,0-0.3-0.1-0.4-0.2c-0.1-0.2-0.1-0.3,0-0.5l6.5-12C7.7,1,8,0.9,8.2,1.1c0.1,0,0.2,0.1,0.2,0.2l6.5,12 c0.1,0.2,0.1,0.3,0,0.5C14.9,13.9,14.7,14,14.5,14z M2.3,13h11.3L8,2.5L2.3,13z"})),g||(g=j().createElement("path",{d:"M7.5 6H8.5V9.5H7.5zM8 10.8c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.8 8 10.8z"})),r):j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),v||(v=j().createElement("path",{d:"M16 23a1.5 1.5 0 101.5 1.5A1.5 1.5 0 0016 23zM15 12H17V21H15z"})),u||(u=j().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),r)})),W=j().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,_._)(e,H);return j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),z||(z=j().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),x||(x=j().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),M||(M=j().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),r)})),Y=j().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,_._)(e,V);return 16===l||"16"===l||"16px"===l?j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),E||(E=j().createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),b||(b=j().createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),r):20===l||"20"===l||"20px"===l?j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},a),y||(y=j().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),C||(C=j().createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),r):24===l||"24"===l||"24px"===l?j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},a),O||(O=j().createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),I||(I=j().createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),r):j().createElement(_.I,(0,_.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),L||(L=j().createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),B||(B=j().createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),r)}))},3133:(e,t,r)=>{"use strict";r.d(t,{BV:()=>F,MC:()=>U,Wz:()=>G,XZ:()=>Y,_M:()=>K,_Q:()=>X,kF:()=>q,s$:()=>Q,x8:()=>J,z6:()=>$});var n,l,a,i,o,c,h,w,s,p,d,f,m,g,v,u,z,x,M,E,b,y,C,O,I,L,B,_,A=r(1927),j=r(1672),S=r.n(j),R=["children","size"],P=["children","size"],Z=["children","size"],H=["children","size"],V=["children","size"],T=["children","size"],k=["children","size"],D=["children","size"],N=["children","size"],W=["children","size"],Y=S().forwardRef((function(e,t){var r=e.children,l=e.size,a=void 0===l?16:l,i=(0,A._)(e,R);return S().createElement(A.I,(0,A.a)({width:a,height:a,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},i),n||(n=S().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),r)})),F=S().forwardRef((function(e,t){var r=e.children,n=e.size,i=void 0===n?16:n,o=(0,A._)(e,P);return S().createElement(A.I,(0,A.a)({width:i,height:i,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},o),l||(l=S().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),a||(a=S().createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),r)})),U=S().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,A._)(e,Z);return 20===l||"20"===l||"20px"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},a),i||(i=S().createElement("path",{d:"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),o||(o=S().createElement("path",{d:"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),r):24===l||"24"===l||"24px"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},a),c||(c=S().createElement("path",{d:"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"})),r):S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),h||(h=S().createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),r)})),q=S().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,A._)(e,H);return 16===l||"16"===l||"16px"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),w||(w=S().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"})),s||(s=S().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):20===l||"20"===l||"20px"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},a),p||(p=S().createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),d||(d=S().createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),r):24===l||"24"===l||"24px"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},a),f||(f=S().createElement("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"})),m||(m=S().createElement("path",{fill:"none",d:"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z","data-icon-path":"inner-path",opacity:"0"})),r):S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),g||(g=S().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),v||(v=S().createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),r)})),G=S().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,A._)(e,V);return S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),u||(u=S().createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),z||(z=S().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),r)})),K=S().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,A._)(e,T);return"glyph"===l||"glyph"===l||"glyphpx"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor"},a),x||(x=S().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),r):16===l||"16"===l||"16px"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),M||(M=S().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),r):S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),E||(E=S().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),r)})),Q=S().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,A._)(e,k);return"glyph"===l||"glyph"===l||"glyphpx"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor"},a),b||(b=S().createElement("path",{d:"M0 5L5 0 5.7 0.7 1.4 5 5.7 9.3 5 10z"})),r):16===l||"16"===l||"16px"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),y||(y=S().createElement("path",{d:"M5 8L10 3 10.7 3.7 6.4 8 10.7 12.3 10 13z"})),r):S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),C||(C=S().createElement("path",{d:"M10 16L20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z"})),r)})),X=S().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,A._)(e,D);return"glyph"===l||"glyph"===l||"glyphpx"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor"},a),O||(O=S().createElement("path",{d:"M6 5L1 10 0.3 9.3 4.6 5 0.3 0.7 1 0z"})),r):16===l||"16"===l||"16px"===l?S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),I||(I=S().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),r):S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),L||(L=S().createElement("path",{d:"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),r)})),$=S().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,A._)(e,N);return S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),B||(B=S().createElement("path",{d:"M7.7 4.7a14.7 14.7 0 00-3 3.1L6.3 9A13.26 13.26 0 018.9 6.3zM4.6 12.3l-1.9-.6A12.51 12.51 0 002 16H4A11.48 11.48 0 014.6 12.3zM2.7 20.4a14.4 14.4 0 002 3.9l1.6-1.2a12.89 12.89 0 01-1.7-3.3zM7.8 27.3a14.4 14.4 0 003.9 2l.6-1.9A12.89 12.89 0 019 25.7zM11.7 2.7l.6 1.9A11.48 11.48 0 0116 4V2A12.51 12.51 0 0011.7 2.7zM24.2 27.3a15.18 15.18 0 003.1-3.1L25.7 23A11.53 11.53 0 0123 25.7zM27.4 19.7l1.9.6A15.47 15.47 0 0030 16H28A11.48 11.48 0 0127.4 19.7zM29.2 11.6a14.4 14.4 0 00-2-3.9L25.6 8.9a12.89 12.89 0 011.7 3.3zM24.1 4.6a14.4 14.4 0 00-3.9-2l-.6 1.9a12.89 12.89 0 013.3 1.7zM20.3 29.3l-.6-1.9A11.48 11.48 0 0116 28v2A21.42 21.42 0 0020.3 29.3z"})),r)})),J=S().forwardRef((function(e,t){var r=e.children,n=e.size,l=void 0===n?16:n,a=(0,A._)(e,W);return S().createElement(A.I,(0,A.a)({width:l,height:l,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),_||(_=S().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)}))},1927:(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 l(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){a(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 a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}r.d(t,{I:()=>x,_:()=>v,a:()=>m});var o=["width","height","viewBox"],c=["tabindex"],h={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var w=r(5697),s=r.n(w),p=r(1672),d=r.n(p);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 m(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){g(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 g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}var u=["className","children","tabIndex"],z=["tabindex"],x=d().forwardRef((function(e,t){var r=e.className,n=e.children,a=e.tabIndex,w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,a=void 0===n?"0 0 ".concat(t," ").concat(r):n,w=i(e,o),s=w.tabindex,p=i(w,c),d=l(l(l({},h),p),{},{width:t,height:r,viewBox:a});return d["aria-label"]||d["aria-labelledby"]||d.title?(d.role="img",null!=s&&(d.focusable="true",d.tabindex=s)):d["aria-hidden"]=!0,d}(m(m({},v(e,u)),{},{tabindex:a})),s=w.tabindex,p=v(w,z);return r&&(p.className=r),null!=s&&(p.tabIndex=s),t&&(p.ref=t),d().createElement("svg",p,n)}));x.displayName="Icon",x.propTypes={"aria-hidden":s().string,"aria-label":s().string,"aria-labelledby":s().string,children:s().node,className:s().string,height:s().oneOfType([s().number,s().string]),preserveAspectRatio:s().string,tabIndex:s().string,viewBox:s().string,width:s().oneOfType([s().number,s().string]),xmlns:s().string},x.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"},s().oneOfType([s().number,s().string])},2703:(e,t,r)=>{"use strict";var n=r(414);function l(){}function a(){}a.resetWarningCache=l,e.exports=function(){function e(e,t,r,l,a,i){if(i!==n){var o=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 o.name="Invariant Violation",o}}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:a,resetWarningCache:l};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"}}]);