@openmrs/esm-fast-data-entry-app 1.0.0-pre.57 → 1.0.0-pre.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/187.js +1 -0
- package/dist/312.js +1 -0
- package/dist/412.js +1 -0
- package/dist/574.js +1 -1
- package/dist/592.js +1 -1
- package/dist/804.js +1 -1
- package/dist/880.js +2 -0
- package/dist/{120.js.LICENSE.txt → 880.js.LICENSE.txt} +0 -0
- package/dist/990.js +1 -1
- package/dist/openmrs-esm-fast-data-entry-app.js +1 -1
- package/dist/openmrs-esm-fast-data-entry-app.js.buildmanifest.json +88 -64
- package/dist/openmrs-esm-fast-data-entry-app.old +1 -1
- package/package.json +1 -1
- package/src/context/FormWorkflowContext.tsx +6 -0
- package/src/context/FormWorkflowReducer.ts +80 -24
- package/src/form-entry-workflow/FormEntryWorkflow.tsx +109 -37
- package/src/form-entry-workflow/styles.scss +0 -3
- package/src/patient-card/PatientCard.tsx +19 -8
- package/src/patient-card/styles.scss +13 -0
- package/translations/en.json +7 -2
- package/dist/120.js +0 -2
- package/dist/557.js +0 -1
- package/dist/84.js +0 -1
package/dist/804.js
CHANGED
|
@@ -1 +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:()=>o});var a=n(4211),r=n.n(a),l=n(2221),c=window.spaBase,s="".concat(c).concat("/forms"),u=r().lazy((function(){return Promise.all([n.e(
|
|
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:()=>o});var a=n(4211),r=n.n(a),l=n(2221),c=window.spaBase,s="".concat(c).concat("/forms"),u=r().lazy((function(){return Promise.all([n.e(880),n.e(187),n.e(397),n.e(592),n.e(990)]).then(n.bind(n,4273))})),m=r().lazy((function(){return Promise.all([n.e(880),n.e(412),n.e(397),n.e(592),n.e(312)]).then(n.bind(n,2312))}));const o=function(){return r().createElement("main",null,r().createElement(l.BrowserRouter,{basename:s},r().createElement(l.Switch,null,r().createElement(l.Route,{exact:!0,path:"/",children:r().createElement(u,null)}),r().createElement(l.Route,{path:"/:formUuid?",children:r().createElement(m,null)}))))}}}]);
|
package/dist/880.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 880.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[880],{3346:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(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,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}r.d(e,{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(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(){return b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},b.apply(this,arguments)}function g(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}var m=["className","children","tabIndex"],w=["tabindex"],O=p().forwardRef((function(t,e){var r=t.className,n=t.children,i=t.tabIndex,s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.width,r=t.height,n=t.viewBox,i=void 0===n?"0 0 ".concat(e," ").concat(r):n,s=a(t,c),f=s.tabindex,d=a(s,u),p=o(o(o({},l),d),{},{width:e,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}(v(v({},g(t,m)),{},{tabindex:i})),f=s.tabindex,d=g(s,w);return r&&(d.className=r),null!=f&&(d.tabIndex=f),e&&(d.ref=e),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:(t,e,r)=>{"use strict";r.d(e,{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(t,e){var r=t.children,o=(0,a._)(t,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:e},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(t,e){var r=t.children,n=(0,a._)(t,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:e},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:(t,e,r)=>{"use strict";r.d(e,{F3j:()=>P,PcV:()=>I,Y3p:()=>_,cDj:()=>E,cRw:()=>x,dOq:()=>k,tEK:()=>j});var n,o,i,a,c,u,l,s,f,d=r(3346),p=r(4211),h=r.n(p),v=["children"],y=["children"],b=["children"],g=["children"],m=["children"],w=["children"],O=["children"],_=h().forwardRef((function(t,e){var r=t.children,i=(0,d._)(t,v);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:e},i),n||(n=h().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=h().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)})),j=h().forwardRef((function(t,e){var r=t.children,n=(0,d._)(t,y);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:e},n),i||(i=h().createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),a||(a=h().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)})),x=h().forwardRef((function(t,e){var r=t.children,n=(0,d._)(t,b);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:e},n),c||(c=h().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),r)})),E=h().forwardRef((function(t,e){var r=t.children,n=(0,d._)(t,g);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:e},n),u||(u=h().createElement("path",{d:"M5 8L10 3 10.7 3.7 6.4 8 10.7 12.3 10 13z"})),r)})),P=h().forwardRef((function(t,e){var r=t.children,n=(0,d._)(t,m);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:e},n),l||(l=h().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),r)})),k=h().forwardRef((function(t,e){var r=t.children,n=(0,d._)(t,w);return h().createElement(d.I,(0,d.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:e},n),s||(s=h().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)})),I=h().forwardRef((function(t,e){var r=t.children,n=(0,d._)(t,O);return h().createElement(d.I,(0,d.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:e},n),f||(f=h().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:(t,e,r)=>{"use strict";r.d(e,{Z:()=>y});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(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=l.Z.prefix,v=a().forwardRef((function(t,e){var r,n=t.children,o=t.as,i=t.className,c=t.disabled,l=t.small,s=t.size,f=t.kind,v=t.href,y=t.isSelected,b=t.tabIndex,g=t.type,m=t.renderIcon,w=t.iconDescription,O=t.hasIconOnly,_=t.tooltipPosition,j=t.tooltipAlignment,x=function(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}(t,["children","as","className","disabled","small","size","kind","href","isSelected","tabIndex","type","renderIcon","iconDescription","hasIconOnly","tooltipPosition","tooltipAlignment"]),E={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&&y&&"ghost"===f),p(r,"".concat(h,"--tooltip__trigger"),O),p(r,"".concat(h,"--tooltip--a11y"),O),p(r,"".concat(h,"--tooltip--").concat(_),O&&_),p(r,"".concat(h,"--tooltip--align-").concat(j),O&&j),r)),ref:e},P=m?a().createElement(m,{"aria-label":w,className:"".concat(h,"--btn__icon"),"aria-hidden":"true"}):null,k="button",I={disabled:c,type:g,"aria-pressed":O&&"ghost"===f?y:null},S={href:v},T=O?a().createElement("span",{className:"".concat(h,"--assistive-text")},w):null;return o?(k=o,I=d(d({},I),S)):v&&!c&&(k="a",I=S),a().createElement(k,d(d(d({},x),E),I),T,n,P)}));v.displayName="Button",v.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(t){if(t.renderIcon&&!t.children&&!t.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"])},v.defaultProps={tabIndex:0,type:"button",disabled:!1,kind:"primary",size:"default",tooltipAlignment:"center",tooltipPosition:"top"};const y=v},9303:(t,e,r)=>{"use strict";r.d(e,{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:(t,e,r)=>{"use strict";function n(t,e){for(var r=0;r<e.length;r++)if(o(t,e[r]))return!0;return!1}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.key,n=e.which,o=e.keyCode;return"string"==typeof t?t===r:"number"==typeof t?t===n||t===o:t.key&&Array.isArray(r)?-1!==r.indexOf(t.key):t.key===r||t.which===n||t.keyCode===o}r.d(e,{EQ:()=>o,wB:()=>n})},3719:(t,e,r)=>{"use strict";r.d(e,{DY:()=>a,I0:()=>n,Kq:()=>i,ui:()=>o});var n="undefined"!=typeof Node&&Node.DOCUMENT_POSITION_PRECEDING|Node.DOCUMENT_POSITION_CONTAINS,o="undefined"!=typeof Node&&Node.DOCUMENT_POSITION_FOLLOWING|Node.DOCUMENT_POSITION_CONTAINED_BY,i="\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']):not([disabled]), *[contenteditable=true]\n",a="\n a[href], area[href], input:not([disabled]),\n button:not([disabled]),select:not([disabled]),\n textarea:not([disabled]),\n iframe, object, embed, *[tabindex]:not([disabled]), *[contenteditable=true]\n"},3712:(t,e,r)=>{"use strict";r.d(e,{M:()=>f});var n=r(4211),o=r(19),i=!("undefined"==typeof window||!window.document||!window.document.createElement);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(t,e)||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(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(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.")}()}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}var u=(0,o.Z)(),l=i?n.useLayoutEffect:n.useEffect,s=!1;function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id",e=(0,n.useState)((function(){return s?"".concat(t,"-").concat(u()):null})),r=a(e,2),o=r[0],i=r[1];return l((function(){null===o&&i("".concat(t,"-").concat(u()))}),[u]),(0,n.useEffect)((function(){!1===s&&(s=!0)}),[]),o}},1593:(t,e,r)=>{"use strict";r.d(e,{Z:()=>u});var n=r(9176),o=r.n(n),i=r(9033),a=r(3719),c=i.Z.prefix;const u=function(t){var e=t.bodyNode,r=t.startTrapNode,n=t.endTrapNode,i=t.currentActiveNode,u=t.oldActiveNode,l=t.selectorsFloatingMenus;if(e&&i&&u&&!e.contains(i)&&!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[".".concat(c,"--overflow-menu-options"),".".concat(c,"--tooltip"),".flatpickr-calendar"];if(t&&"function"==typeof t.closest)return e.some((function(e){return t.closest(e)}))}(i,l)){var s=u.compareDocumentPosition(i);if(i===r||s&a.I0){var f=o()(e.querySelectorAll(a.Kq),(function(t){return Boolean(t.offsetParent)}));f?f.focus():e!==u&&e.focus()}else if(i===n||s&a.ui){var d=Array.prototype.find.call(e.querySelectorAll(a.Kq),(function(t){return Boolean(t.offsetParent)}));d?d.focus():e!==u&&e.focus()}}}},3299:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,{Z:()=>c});var a={};function c(t,e){return function(e,r,n){if(void 0!==e[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 t.apply(void 0,[e,r,n].concat(u))}}}},1839:(t,e,r)=>{"use strict";function n(t,e){return function(t,r,n){for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return e.apply(void 0,[t,r,n].concat(i))}}r.d(e,{Z:()=>n})},19:(t,e,r)=>{"use strict";function n(){var t=0;return function(){return++t}}r.d(e,{Z:()=>n})},9033:(t,e,r)=>{"use strict";r.d(e,{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:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&t.push(a)}else if("object"===i)for(var c in r)n.call(r,c)&&r[c]&&t.push(c)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=t(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);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<t.length;c++){var u=[].concat(t[c]);n&&o[u[0]]||(r&&(u[2]?u[2]="".concat(r," and ").concat(u[2]):u[2]=r),e.push(u))}},e}},9176:(t,e,r)=>{t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",c="[object Boolean]",u="[object Date]",l="[object Error]",s="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",v="[object RegExp]",y="[object Set]",b="[object String]",g="[object Symbol]",m="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/,x=/^\./,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/^\s+|\s+$/g,k=/\\(\\)?/g,I=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,T=/^\[object .+?Constructor\]$/,A=/^0o[0-7]+$/i,L=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[i]=C[a]=C[w]=C[c]=C[O]=C[u]=C[l]=C[s]=C[f]=C[d]=C[p]=C[v]=C[y]=C[b]=C[m]=!1;var N=parseInt,R="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,M=R||D||Function("return this")(),F=e&&!e.nodeType&&e,B=F&&t&&!t.nodeType&&t,V=B&&B.exports===F&&R.process,z=function(){try{return V&&V.binding("util")}catch(t){}}(),$=z&&z.isTypedArray;function U(t,e){for(var r=-1,n=t?t.length:0;++r<n;)if(e(t[r],r,t))return!0;return!1}function Z(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function G(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function q(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var W,H,Y,K=Array.prototype,J=Function.prototype,Q=Object.prototype,X=M["__core-js_shared__"],tt=(W=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",et=J.toString,rt=Q.hasOwnProperty,nt=Q.toString,ot=RegExp("^"+et.call(rt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),it=M.Symbol,at=M.Uint8Array,ct=Q.propertyIsEnumerable,ut=K.splice,lt=(H=Object.keys,Y=Object,function(t){return H(Y(t))}),st=Math.max,ft=Math.min,dt=Bt(M,"DataView"),pt=Bt(M,"Map"),ht=Bt(M,"Promise"),vt=Bt(M,"Set"),yt=Bt(M,"WeakMap"),bt=Bt(Object,"create"),gt=Wt(dt),mt=Wt(pt),wt=Wt(ht),Ot=Wt(vt),_t=Wt(yt),jt=it?it.prototype:void 0,xt=jt?jt.valueOf:void 0,Et=jt?jt.toString:void 0;function Pt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function kt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function It(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function St(t){var e=-1,r=t?t.length:0;for(this.__data__=new It;++e<r;)this.add(t[e])}function Tt(t){this.__data__=new kt(t)}function At(t,e){for(var r=t.length;r--;)if(Jt(t[r][0],e))return r;return-1}function Lt(t,e){for(var r=0,n=(e=$t(e,t)?[e]:Dt(e)).length;null!=t&&r<n;)t=t[qt(e[r++])];return r&&r==n?t:void 0}function Ct(t,e){return null!=t&&e in Object(t)}function Nt(t,e,r,n,o){return t===e||(null==t||null==e||!ne(t)&&!oe(e)?t!=t&&e!=e:function(t,e,r,n,o,s){var h=Xt(t),m=Xt(e),_=a,j=a;h||(_=(_=Vt(t))==i?p:_),m||(j=(j=Vt(e))==i?p:j);var x=_==p&&!Z(t),E=j==p&&!Z(e),P=_==j;if(P&&!x)return s||(s=new Tt),h||ae(t)?Mt(t,e,r,n,o,s):function(t,e,r,n,o,i,a){switch(r){case O:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!n(new at(t),new at(e)));case c:case u:case d:return Jt(+t,+e);case l:return t.name==e.name&&t.message==e.message;case v:case b:return t==e+"";case f:var s=G;case y:var p=2&i;if(s||(s=q),t.size!=e.size&&!p)return!1;var h=a.get(t);if(h)return h==e;i|=1,a.set(t,e);var m=Mt(s(t),s(e),n,o,i,a);return a.delete(t),m;case g:if(xt)return xt.call(t)==xt.call(e)}return!1}(t,e,_,r,n,o,s);if(!(2&o)){var k=x&&rt.call(t,"__wrapped__"),I=E&&rt.call(e,"__wrapped__");if(k||I){var S=k?t.value():t,T=I?e.value():e;return s||(s=new Tt),r(S,T,n,o,s)}}return!!P&&(s||(s=new Tt),function(t,e,r,n,o,i){var a=2&o,c=ce(t),u=c.length;if(u!=ce(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:rt.call(e,s)))return!1}var f=i.get(t);if(f&&i.get(e))return f==e;var d=!0;i.set(t,e),i.set(e,t);for(var p=a;++l<u;){var h=t[s=c[l]],v=e[s];if(n)var y=a?n(v,h,s,e,t,i):n(h,v,s,t,e,i);if(!(void 0===y?h===v||r(h,v,n,o,i):y)){d=!1;break}p||(p="constructor"==s)}if(d&&!p){var b=t.constructor,g=e.constructor;b==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(d=!1)}return i.delete(t),i.delete(e),d}(t,e,r,n,o,s))}(t,e,Nt,r,n,o))}function Rt(t){return"function"==typeof t?t:null==t?ue:"object"==typeof t?Xt(t)?function(t,e){return $t(t)&&Ut(e)?Zt(qt(t),e):function(r){var n=function(t,e,r){var n=null==t?void 0:Lt(t,e);return void 0===n?void 0:n}(r,t);return void 0===n&&n===e?function(t,e){return null!=t&&function(t,e,r){for(var n,o=-1,i=(e=$t(e,t)?[e]:Dt(e)).length;++o<i;){var a=qt(e[o]);if(!(n=null!=t&&r(t,a)))break;t=t[a]}return n||!!(i=t?t.length:0)&&re(i)&&zt(a,i)&&(Xt(t)||Qt(t))}(t,e,Ct)}(r,t):Nt(e,n,void 0,3)}}(t[0],t[1]):(r=function(t){for(var e=ce(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,Ut(o)]}return e}(e=t),1==r.length&&r[0][2]?Zt(r[0][0],r[0][1]):function(t){return t===e||function(t,e,r,n){var o=r.length,i=o;if(null==t)return!i;for(t=Object(t);o--;){var a=r[o];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<i;){var c=(a=r[o])[0],u=t[c],l=a[1];if(a[2]){if(void 0===u&&!(c in t))return!1}else{var s,f=new Tt;if(!(void 0===s?Nt(l,u,n,3,f):s))return!1}}return!0}(t,0,r)}):$t(n=t)?(o=qt(n),function(t){return null==t?void 0:t[o]}):function(t){return function(e){return Lt(e,t)}}(n);var e,r,n,o}function Dt(t){return Xt(t)?t:Gt(t)}function Mt(t,e,r,n,o,i){var a=2&o,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var s=-1,f=!0,d=1&o?new St:void 0;for(i.set(t,e),i.set(e,t);++s<c;){var p=t[s],h=e[s];if(n)var v=a?n(h,p,s,e,t,i):n(p,h,s,t,e,i);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!U(e,(function(t,e){if(!d.has(e)&&(p===t||r(p,t,n,o,i)))return d.add(e)}))){f=!1;break}}else if(p!==h&&!r(p,h,n,o,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function Ft(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function Bt(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!ne(t)||function(t){return!!tt&&tt in t}(t))&&(ee(t)||Z(t)?ot:T).test(Wt(t))}(r)?r:void 0}Pt.prototype.clear=function(){this.__data__=bt?bt(null):{}},Pt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},Pt.prototype.get=function(t){var e=this.__data__;if(bt){var r=e[t];return r===n?void 0:r}return rt.call(e,t)?e[t]:void 0},Pt.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:rt.call(e,t)},Pt.prototype.set=function(t,e){return this.__data__[t]=bt&&void 0===e?n:e,this},kt.prototype.clear=function(){this.__data__=[]},kt.prototype.delete=function(t){var e=this.__data__,r=At(e,t);return!(r<0||(r==e.length-1?e.pop():ut.call(e,r,1),0))},kt.prototype.get=function(t){var e=this.__data__,r=At(e,t);return r<0?void 0:e[r][1]},kt.prototype.has=function(t){return At(this.__data__,t)>-1},kt.prototype.set=function(t,e){var r=this.__data__,n=At(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},It.prototype.clear=function(){this.__data__={hash:new Pt,map:new(pt||kt),string:new Pt}},It.prototype.delete=function(t){return Ft(this,t).delete(t)},It.prototype.get=function(t){return Ft(this,t).get(t)},It.prototype.has=function(t){return Ft(this,t).has(t)},It.prototype.set=function(t,e){return Ft(this,t).set(t,e),this},St.prototype.add=St.prototype.push=function(t){return this.__data__.set(t,n),this},St.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.clear=function(){this.__data__=new kt},Tt.prototype.delete=function(t){return this.__data__.delete(t)},Tt.prototype.get=function(t){return this.__data__.get(t)},Tt.prototype.has=function(t){return this.__data__.has(t)},Tt.prototype.set=function(t,e){var r=this.__data__;if(r instanceof kt){var n=r.__data__;if(!pt||n.length<199)return n.push([t,e]),this;r=this.__data__=new It(n)}return r.set(t,e),this};var Vt=function(t){return nt.call(t)};function zt(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||L.test(t))&&t>-1&&t%1==0&&t<e}function $t(t,e){if(Xt(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!ie(t))||j.test(t)||!_.test(t)||null!=e&&t in Object(e)}function Ut(t){return t==t&&!ne(t)}function Zt(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}(dt&&Vt(new dt(new ArrayBuffer(1)))!=O||pt&&Vt(new pt)!=f||ht&&Vt(ht.resolve())!=h||vt&&Vt(new vt)!=y||yt&&Vt(new yt)!=m)&&(Vt=function(t){var e=nt.call(t),r=e==p?t.constructor:void 0,n=r?Wt(r):void 0;if(n)switch(n){case gt:return O;case mt:return f;case wt:return h;case Ot:return y;case _t:return m}return e});var Gt=Kt((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(ie(t))return Et?Et.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var r=[];return x.test(t)&&r.push(""),t.replace(E,(function(t,e,n,o){r.push(n?o.replace(k,"$1"):e||t)})),r}));function qt(t){if("string"==typeof t||ie(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Wt(t){if(null!=t){try{return et.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var Ht,Yt=(Ht=function(t,e,r){var n=t?t.length:0;if(!n)return-1;var o,i,a,c=n-1;return void 0!==r&&(i=(o=(a=r)?1/0===(a=function(t){if("number"==typeof t)return t;if(ie(t))return NaN;if(ne(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ne(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(P,"");var r=S.test(t);return r||A.test(t)?N(t.slice(2),r?2:8):I.test(t)?NaN:+t}(a))||a===-1/0?17976931348623157e292*(a<0?-1:1):a==a?a:0:0===a?a:0)%1,c=o==o?i?o-i:o:0,c=r<0?st(n+c,0):ft(c,n-1)),function(t,e,r,n){t.length;for(var o=r+1;o--;)if(e(t[o],o,t))return o;return-1}(t,Rt(e),c)},function(t,e,r){var n=Object(t);if(!te(t)){var o=Rt(e);t=ce(t),e=function(t){return o(n[t],t,n)}}var i=Ht(t,e,r);return i>-1?n[o?t[i]:i]:void 0});function Kt(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(Kt.Cache||It),r}function Jt(t,e){return t===e||t!=t&&e!=e}function Qt(t){return function(t){return oe(t)&&te(t)}(t)&&rt.call(t,"callee")&&(!ct.call(t,"callee")||nt.call(t)==i)}Kt.Cache=It;var Xt=Array.isArray;function te(t){return null!=t&&re(t.length)&&!ee(t)}function ee(t){var e=ne(t)?nt.call(t):"";return e==s||"[object GeneratorFunction]"==e}function re(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function ne(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function oe(t){return!!t&&"object"==typeof t}function ie(t){return"symbol"==typeof t||oe(t)&&nt.call(t)==g}var ae=$?function(t){return function(e){return t(e)}}($):function(t){return oe(t)&&re(t.length)&&!!C[nt.call(t)]};function ce(t){return te(t)?function(t,e){var r=Xt(t)||Qt(t)?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!e&&!rt.call(t,i)||o&&("length"==i||zt(i,n))||r.push(i);return r}(t):function(t){if(r=(e=t)&&e.constructor,e!==("function"==typeof r&&r.prototype||Q))return lt(t);var e,r,n=[];for(var o in Object(t))rt.call(t,o)&&"constructor"!=o&&n.push(o);return n}(t)}function ue(t){return t}t.exports=Yt},2703:(t,e,r)=>{"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,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 e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5697:(t,e,r)=>{t.exports=r(2703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5666:t=>{var e=function(t){"use strict";var e,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(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new I(n||[]);return i._invoke=function(t,e,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 T()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===v)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(t,e,r);if("normal"===u.type){if(n=r.done?h:d,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function y(){}function b(){}function g(){}var m={};u(m,i,(function(){return this}));var w=Object.getPrototypeOf,O=w&&w(w(S([])));O&&O!==r&&n.call(O,i)&&(m=O);var _=g.prototype=y.prototype=Object.create(m);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function S(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return b.prototype=g,u(_,"constructor",g),u(g,"constructor",b),b.displayName=u(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,u(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},j(x.prototype),u(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(_),u(_,c,"Generator"),u(_,i,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},3379:t=>{"use strict";var e=[];function r(t){for(var r=-1,n=0;n<e.length;n++)if(e[n].identifier===t){r=n;break}return r}function n(t,n){for(var i={},a=[],c=0;c<t.length;c++){var u=t[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)e[d].references++,e[d].updater(p);else{var h=o(p,n);n.byIndex=c,e.splice(c,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function o(t,e){var r=e.domAPI(e);return r.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;r.update(t=e)}else r.remove()}}t.exports=function(t,o){var i=n(t=t||[],o=o||{});return function(t){t=t||[];for(var a=0;a<i.length;a++){var c=r(i[a]);e[c].references--}for(var u=n(t,o),l=0;l<i.length;l++){var s=r(i[l]);0===e[s].references&&(e[s].updater(),e.splice(s,1))}i=u}}},569:t=>{"use strict";var e={};t.exports=function(t,r){var n=function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}(t);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:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:(t,e,r)=>{"use strict";t.exports=function(t){var e=r.nc;e&&t.setAttribute("nonce",e)}},7795:t=>{"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(r){!function(t,e,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))))," */")),e.styleTagTransform(n,t,e.options)}(e,t,r)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},8100:(t,e,r)=>{"use strict";r.d(e,{ZP:()=>Y});var n=r(4211);function o(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}u((n=n.apply(t,e||[])).next())}))}function i(t,e){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=e.call(t,a)}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,c])}}}var a,c=function(){},u=c(),l=Object,s=function(t){return t===u},f=function(t){return"function"==typeof t},d=function(t,e){return l.assign({},t,e)},p="undefined",h=function(){return typeof window!=p},v=new WeakMap,y=0,b=function(t){var e,r,n=typeof t,o=t&&t.constructor,i=o==Date;if(l(t)!==t||i||o==RegExp)e=i?t.toJSON():"symbol"==n?t.toString():"string"==n?JSON.stringify(t):""+t;else{if(e=v.get(t))return e;if(e=++y+"~",v.set(t,e),o==Array){for(e="@",r=0;r<t.length;r++)e+=b(t[r])+",";v.set(t,e)}if(o==l){e="#";for(var a=l.keys(t).sort();!s(r=a.pop());)s(t[r])||(e+=r+":"+b(t[r])+",");v.set(t,e)}}return e},g=!0,m=h(),w=typeof document!=p,O=m&&window.addEventListener?window.addEventListener.bind(window):c,_=w?document.addEventListener.bind(document):c,j=m&&window.removeEventListener?window.removeEventListener.bind(window):c,x=w?document.removeEventListener.bind(document):c,E={isOnline:function(){return g},isVisible:function(){var t=w&&document.visibilityState;return s(t)||"hidden"!==t}},P={initFocus:function(t){return _("visibilitychange",t),O("focus",t),function(){x("visibilitychange",t),j("focus",t)}},initReconnect:function(t){var e=function(){g=!0,t()},r=function(){g=!1};return O("online",e),O("offline",r),function(){j("online",e),j("offline",r)}}},k=!h()||"Deno"in window,I=k?n.useEffect:n.useLayoutEffect,S="undefined"!=typeof navigator&&navigator.connection,T=!k&&S&&(["slow-2g","2g"].includes(S.effectiveType)||S.saveData),A=function(t){if(f(t))try{t=t()}catch(e){t=""}var e=[].concat(t);return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?b(t):"",e,t?"$swr$"+t:""]},L=new WeakMap,C=function(t,e,r,n,o,i,a){void 0===a&&(a=!0);var c=L.get(t),u=c[0],l=c[1],s=c[3],f=u[e],d=l[e];if(a&&d)for(var p=0;p<d.length;++p)d[p](r,n,o);return i&&(delete s[e],f&&f[0])?f[0](2).then((function(){return t.get(e)})):t.get(e)},N=0,R=function(){return++N},D=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(void 0,void 0,void 0,(function(){var e,r,n,o,a,c,l,p,h,v,y,b,g,m,w,O,_,j,x,E,P;return i(this,(function(i){switch(i.label){case 0:if(e=t[0],r=t[1],n=t[2],o=t[3],c=!!s((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,l=!1!==a.revalidate,p=!1!==a.rollbackOnError,h=a.optimisticData,v=A(r),y=v[0],b=v[2],!y)return[2];if(g=L.get(e),m=g[2],t.length<3)return[2,C(e,y,e.get(y),u,u,l,!0)];if(w=n,_=R(),m[y]=[_,0],j=!s(h),x=e.get(y),j&&(E=f(h)?h(x):h,e.set(y,E),C(e,y,E)),f(w))try{w=w(e.get(y))}catch(t){O=t}return w&&f(w.then)?[4,w.catch((function(t){O=t}))]:[3,2];case 1:if(w=i.sent(),_!==m[y][0]){if(O)throw O;return[2,w]}O&&j&&p&&(c=!0,w=x,e.set(y,x)),i.label=2;case 2:return c&&(O||(f(c)&&(w=c(w,x)),e.set(y,w)),e.set(b,d(e.get(b),{error:O}))),m[y][1]=R(),[4,C(e,y,w,O,u,l,!!c)];case 3:if(P=i.sent(),O)throw O;return[2,c?P:w]}}))}))},M=function(t,e){for(var r in t)t[r][0]&&t[r][0](e)},F=function(t,e){if(!L.has(t)){var r=d(P,e),n={},o=D.bind(u,t),i=c;if(L.set(t,[n,{},{},{},o]),!k){var a=r.initFocus(setTimeout.bind(u,M.bind(u,n,0))),l=r.initReconnect(setTimeout.bind(u,M.bind(u,n,1)));i=function(){a&&a(),l&&l(),L.delete(t)}}return[t,o,i]}return[t,L.get(t)[4]]},B=F(new Map),V=B[0],z=B[1],$=d({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:function(t,e,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:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function(t,e){return b(t)==b(e)},isPaused:function(){return!1},cache:V,mutate:z,fallback:{}},E),U=function(t,e){var r=d(t,e);if(e){var n=t.use,o=t.fallback,i=e.use,a=e.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=d(o,a))}return r},Z=(0,n.createContext)({}),G=function(t){return f(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}]},q=function(){return d($,(0,n.useContext)(Z))},W=function(t,e,r){var n=e[t]||(e[t]=[]);return n.push(r),function(){var t=n.indexOf(r);t>=0&&(n[t]=n[n.length-1],n.pop())}},H={dedupe:!0},Y=(l.defineProperty((function(t){var e=t.value,r=U((0,n.useContext)(Z),e),o=e&&e.provider,i=(0,n.useState)((function(){return o?F(o(r.cache||V),e):u}))[0];return i&&(r.cache=i[0],r.mutate=i[1]),I((function(){return i?i[2]:u}),[]),(0,n.createElement)(Z.Provider,d(t,{value:r}))}),"default",{value:$}),a=function(t,e,r){var a=r.cache,c=r.compare,l=r.fallbackData,v=r.suspense,y=r.revalidateOnMount,b=r.refreshInterval,g=r.refreshWhenHidden,m=r.refreshWhenOffline,w=L.get(a),O=w[0],_=w[1],j=w[2],x=w[3],E=A(t),P=E[0],S=E[1],T=E[2],N=(0,n.useRef)(!1),M=(0,n.useRef)(!1),F=(0,n.useRef)(P),B=(0,n.useRef)(e),V=(0,n.useRef)(r),z=function(){return V.current},$=function(){return z().isVisible()&&z().isOnline()},U=function(t){return a.set(T,d(a.get(T),t))},Z=a.get(P),G=s(l)?r.fallback[P]:l,q=s(Z)?G:Z,Y=a.get(T)||{},K=Y.error,J=!N.current,Q=function(){return J&&!s(y)?y:!z().isPaused()&&(v?!s(q)&&r.revalidateIfStale:s(q)||r.revalidateIfStale)},X=!(!P||!e)&&(!!Y.isValidating||J&&Q()),tt=function(t,e){var r=(0,n.useState)({})[1],o=(0,n.useRef)(t),i=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(t){var n=!1,a=o.current;for(var c in t){var u=c;a[u]!==t[u]&&(a[u]=t[u],i.current[u]&&(n=!0))}n&&!e.current&&r({})}),[]);return I((function(){o.current=t})),[o,i.current,a]}({data:q,error:K,isValidating:X},M),et=tt[0],rt=tt[1],nt=tt[2],ot=(0,n.useCallback)((function(t){return o(void 0,void 0,void 0,(function(){var e,n,o,l,d,p,h,v,y,b,g,m,w;return i(this,(function(i){switch(i.label){case 0:if(e=B.current,!P||!e||M.current||z().isPaused())return[2,!1];l=!0,d=t||{},p=!x[P]||!d.dedupe,h=function(){return!M.current&&P===F.current&&N.current},v=function(){var t=x[P];t&&t[1]===o&&delete x[P]},y={isValidating:!1},b=function(){U({isValidating:!1}),h()&&nt(y)},U({isValidating:!0}),nt({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),p&&(C(a,P,et.current.data,et.current.error,!0),r.loadingTimeout&&!a.get(P)&&setTimeout((function(){l&&h()&&z().onLoadingSlow(P,r)}),r.loadingTimeout),x[P]=[e.apply(void 0,S),R()]),w=x[P],n=w[0],o=w[1],[4,n];case 2:return n=i.sent(),p&&setTimeout(v,r.dedupingInterval),x[P]&&x[P][1]===o?(U({error:u}),y.error=u,g=j[P],!s(g)&&(o<=g[0]||o<=g[1]||0===g[1])?(b(),p&&h()&&z().onDiscarded(P),[2,!1]):(c(et.current.data,n)?y.data=et.current.data:y.data=n,c(a.get(P),n)||a.set(P,n),p&&h()&&z().onSuccess(n,P,r),[3,4])):(p&&h()&&z().onDiscarded(P),[2,!1]);case 3:return m=i.sent(),v(),z().isPaused()||(U({error:m}),y.error=m,p&&h()&&(z().onError(m,P,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||f(r.shouldRetryOnError)&&r.shouldRetryOnError(m))&&$()&&z().onErrorRetry(m,P,r,ot,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,b(),h()&&p&&C(a,P,y.data,y.error,!1),[2,!0]}}))}))}),[P]),it=(0,n.useCallback)(D.bind(u,a,(function(){return F.current})),[]);if(I((function(){B.current=e,V.current=r})),I((function(){if(P){var t=P!==F.current,e=ot.bind(u,H),r=0,n=W(P,_,(function(t,e,r){nt(d({error:e,isValidating:r},c(et.current.data,t)?u:{data:t}))})),o=W(P,O,(function(t){if(0==t){var n=Date.now();z().revalidateOnFocus&&n>r&&$()&&(r=n+z().focusThrottleInterval,e())}else if(1==t)z().revalidateOnReconnect&&$()&&e();else if(2==t)return ot()}));return M.current=!1,F.current=P,N.current=!0,t&&nt({data:q,error:K,isValidating:X}),Q()&&(s(q)||k?e():(i=e,h()&&typeof window.requestAnimationFrame!=p?window.requestAnimationFrame(i):setTimeout(i,1))),function(){M.current=!0,n(),o()}}var i}),[P,ot]),I((function(){var t;function e(){var e=f(b)?b(q):b;e&&-1!==t&&(t=setTimeout(r,e))}function r(){et.current.error||!g&&!z().isVisible()||!m&&!z().isOnline()?e():ot(H).then(e)}return e(),function(){t&&(clearTimeout(t),t=-1)}}),[b,g,m,ot]),(0,n.useDebugValue)(q),v&&s(q)&&P)throw B.current=e,V.current=r,M.current=!1,s(K)?ot(H):K;return{mutate:it,get data(){return rt.data=!0,q},get error(){return rt.error=!0,K},get isValidating(){return rt.isValidating=!0,X}}},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=q(),n=G(t),o=n[0],i=n[1],c=n[2],u=U(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)})}}]);
|
|
File without changes
|
package/dist/990.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[990],{4273:(e,t,r)=>{r.r(t),r.d(t,{default:()=>re});var n=r(311),a=r(622),o=r(751),i=r(4211),s=r.n(i),l=r(2187),c=r(5393),f=r(2370),m=r(5566),d=r(2302),g=r(3567),u=r(5185),h=r(8529),p=r(8722),_=r(9758),b=r(9586),y=r(7450),v=r(7188),w=r(3397),k=r(2221),E=r(4116),z=r(3379),O=r.n(z),j=r(7795),x=r.n(j),S=r(569),P=r.n(S),X=r(3565),C=r.n(X),Z=r(9216),T=r.n(Z),q=r(4589),M=r.n(q),F=r(8772),L={};L.styleTagTransform=M(),L.setAttributes=C(),L.insert=P().bind(null,"head"),L.domAPI=x(),L.insertStyleElement=T(),O()(F.Z,L);const H=F.Z&&F.Z.locals?F.Z.locals:void 0;var D=function(e){var t=e.width,r=void 0===t?"64":t,n=e.height,a=void 0===n?"64":n;return s().createElement("svg",{width:r,height:a,viewBox:"0 0 64 64"},s().createElement("title",null,"Empty data illustration"),s().createElement("g",{fill:"none",fillRule:"evenodd"},s().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),s().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),s().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),s().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),s().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),s().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),s().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),s().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),s().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),s().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))};const A=function(e){var t=e.headerTitle,r=e.displayText,a="tablet"===(0,n.useLayoutType)();return s().createElement(E.n9,{light:!0,className:H.tile},s().createElement("div",{className:a?H.tabletHeading:H.desktopHeading},s().createElement("h4",null,t)),s().createElement(D,null),s().createElement("p",{className:H.content},r))};var N=r(2362),V={};V.styleTagTransform=M(),V.setAttributes=C(),V.insert=P().bind(null,"head"),V.domAPI=x(),V.insertStyleElement=T(),O()(N.Z,V);const I=N.Z&&N.Z.locals?N.Z.locals:void 0;function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(){return R=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},R.apply(this,arguments)}const Q=function(e){var t=e.rows,r=e.error,a=e.isLoading,o=e.activeForms,i=(0,w.useTranslation)().t,l=[{key:"display",header:i("formName","Form Name")},{key:"actions",header:i("actions","Actions")},{key:"actions2",header:""}],E=null==t?void 0:t.map((function(e){return t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){B(e,t,r[t])}))}return e}({},e),r=null!=(r={actions:s().createElement(k.Link,{to:e.uuid},o.includes(e.uuid)?i("resumeSession","Resume Session"):i("fillForm","Fill Form")),actions2:s().createElement(k.Link,{to:"#",className:I.inactiveLink},i("startGroupSession","Start Group Session"))})?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})),t;var t,r}));return a?s().createElement(c.Z,null):r?s().createElement(n.ErrorState,{headerTitle:i("errorLoadingData","Error Loading Data"),error:r}):0===E.length?s().createElement(A,{headerTitle:i("noFormsFound","No Forms To Show"),displayText:i("noFormsFoundMessage","No forms could be found for this category. Please double check the form concept uuids and access permissions.")}):s().createElement(f.ZP,{rows:E,headers:l,isSortable:!0},(function(e){var t=e.rows,r=e.headers,n=e.getTableProps,a=e.getHeaderProps,o=e.getRowProps,i=e.onInputChange;return s().createElement(m.Z,null,s().createElement("div",{className:I.toolbarWrapper},s().createElement(d.Z,{className:I.tableToolbar},s().createElement(g.Z,null,s().createElement(u.Z,{onChange:i})))),s().createElement(h.Z,R({},n()),s().createElement(p.Z,null,s().createElement(_.Z,null,r.map((function(e){return s().createElement(b.Z,R({},a({header:e})),e.header)})))),s().createElement(y.Z,null,null==t?void 0:t.map((function(e){return s().createElement(_.Z,R({},o({row:e})),e.cells.map((function(e){return s().createElement(v.Z,{key:e.id},e.value)})))})))))}))};var J=r(8388),W={};W.styleTagTransform=M(),W.setAttributes=C(),W.insert=P().bind(null,"head"),W.domAPI=x(),W.insertStyleElement=T(),O()(J.Z,W);const G=J.Z&&J.Z.locals?J.Z.locals:void 0;var U=r(2126);function Y(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}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(){return K=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},K.apply(this,arguments)}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$(e,t,r[t])}))}return e}function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Y(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y(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.")}()}const re=function(){var e,t,r=(0,n.useConfig)(),i=(0,w.useTranslation)().t,c=r.formCategories,f=r.formCategoriesToShow,m=(0,l.wJ)(),d=m.forms,g=m.isLoading,u=m.error,h=(t=d)?null==t?void 0:t.map((function(e){return t=ee({},e),r=null!=(r={id:e.uuid,display:e.display||e.name})?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})),t;var t,r})):null,p=localStorage.getItem(U.Go),_=[];p&&(null===(e=JSON.parse(p))||void 0===e?void 0:e._storageVersion)===U.IE&&Object.entries(JSON.parse(p).forms).forEach((function(e){var t=te(e,2),r=t[0];t[1].workflowState&&_.push(r)}));var b=f.map((function(e){var t=c.find((function(t){return t.name===e})),r=[];if(t&&h&&h.length){var n,a=null===(n=t.forms)||void 0===n?void 0:n.map((function(e){return e.formUUID}));r=h.filter((function(e){return a.includes(e.uuid)}))}return ee({},{name:e,rows:r})}));return s().createElement("div",{className:G.mainContent},s().createElement("h3",{className:G.pageTitle},i("forms","Forms")),s().createElement(a.Z,{type:"container"},s().createElement(o.Z,{label:"".concat(i("allForms","All Forms")," (").concat(h?null==h?void 0:h.length:"??",")")},s().createElement(Q,K({rows:h},{error:u,isLoading:g,activeForms:_}))),null==b?void 0:b.map((function(e,t){return s().createElement(o.Z,{label:"".concat(e.name," (").concat(e.rows.length,")"),key:t},s().createElement(Q,K({rows:e.rows},{error:u,isLoading:g,activeForms:_})))}))))}},8772:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(3645),a=r.n(n)()((function(e){return e[1]}));a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}button,select,input,textarea{font-family:inherit;border-radius:0}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-fast-data-entry__styles__skeleton___OigVX{0%{transform:scaleX(0);transform-origin:left;opacity:.3}20%{transform:scaleX(1);transform-origin:left;opacity:1}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{transform:scaleX(0);transform-origin:left;opacity:.3}}.-esm-fast-data-entry__styles__action___ei5aj{margin-bottom:.5rem}.-esm-fast-data-entry__styles__content___7TnbC{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px;color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-fast-data-entry__styles__desktopHeading___z4QwX h4{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0;color:#525252}.-esm-fast-data-entry__styles__tabletHeading___XCRdE h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0;color:#525252}.-esm-fast-data-entry__styles__desktopHeading___z4QwX,.-esm-fast-data-entry__styles__tabletHeading___XCRdE{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-fast-data-entry__styles__desktopHeading___z4QwX h4:after,.-esm-fast-data-entry__styles__tabletHeading___XCRdE h4:after{content:\"\";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-fast-data-entry__styles__heading___C0rzi:after{content:\"\";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-fast-data-entry__styles__tile___szqEV{text-align:center;border:1px solid #e0e0e0}",""]),a.locals={action:"-esm-fast-data-entry__styles__action___ei5aj",content:"-esm-fast-data-entry__styles__content___7TnbC",desktopHeading:"-esm-fast-data-entry__styles__desktopHeading___z4QwX",tabletHeading:"-esm-fast-data-entry__styles__tabletHeading___XCRdE",heading:"-esm-fast-data-entry__styles__heading___C0rzi",tile:"-esm-fast-data-entry__styles__tile___szqEV",skeleton:"-esm-fast-data-entry__styles__skeleton___OigVX"};const o=a},8388:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(3645),a=r.n(n)()((function(e){return e[1]}));a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}button,select,input,textarea{font-family:inherit;border-radius:0}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-fast-data-entry__styles__skeleton___nZ\\+Ln{0%{transform:scaleX(0);transform-origin:left;opacity:.3}20%{transform:scaleX(1);transform-origin:left;opacity:1}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{transform:scaleX(0);transform-origin:left;opacity:.3}}.-esm-fast-data-entry__styles__mainContent___JbeQi{padding:2rem}.-esm-fast-data-entry__styles__pageTitle___-6QBj{margin-bottom:1.5rem}",""]),a.locals={mainContent:"-esm-fast-data-entry__styles__mainContent___JbeQi",pageTitle:"-esm-fast-data-entry__styles__pageTitle___-6QBj",skeleton:"-esm-fast-data-entry__styles__skeleton___nZ+Ln"};const o=a},2362:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(3645),a=r.n(n)()((function(e){return e[1]}));a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}button,select,input,textarea{font-family:inherit;border-radius:0}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-fast-data-entry__styles__skeleton___elkzD{0%{transform:scaleX(0);transform-origin:left;opacity:.3}20%{transform:scaleX(1);transform-origin:left;opacity:1}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{transform:scaleX(0);transform-origin:left;opacity:.3}}.-esm-fast-data-entry__styles__toolbarWrapper___bYvir{position:relative;display:flex;height:3rem;justify-content:flex-end}.-esm-fast-data-entry__styles__tableToolbar___SObAt{width:20%;min-width:12.5rem}.-esm-fast-data-entry__styles__inactiveLink___s67Mk{color:#a8a8a8;cursor:not-allowed}",""]),a.locals={toolbarWrapper:"-esm-fast-data-entry__styles__toolbarWrapper___bYvir",tableToolbar:"-esm-fast-data-entry__styles__tableToolbar___SObAt",inactiveLink:"-esm-fast-data-entry__styles__inactiveLink___s67Mk",skeleton:"-esm-fast-data-entry__styles__skeleton___elkzD"};const o=a}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[990],{4273:(e,t,r)=>{r.r(t),r.d(t,{default:()=>re});var n=r(311),a=r(622),o=r(751),i=r(4211),s=r.n(i),l=r(2187),c=r(5393),f=r(8631),m=r(5566),d=r(2302),g=r(3567),u=r(5185),h=r(8529),p=r(8722),_=r(9758),b=r(9586),y=r(7450),v=r(7188),w=r(3397),k=r(2221),E=r(4116),z=r(3379),O=r.n(z),j=r(7795),x=r.n(j),S=r(569),P=r.n(S),X=r(3565),C=r.n(X),Z=r(9216),T=r.n(Z),q=r(4589),M=r.n(q),F=r(8772),L={};L.styleTagTransform=M(),L.setAttributes=C(),L.insert=P().bind(null,"head"),L.domAPI=x(),L.insertStyleElement=T(),O()(F.Z,L);const H=F.Z&&F.Z.locals?F.Z.locals:void 0;var D=function(e){var t=e.width,r=void 0===t?"64":t,n=e.height,a=void 0===n?"64":n;return s().createElement("svg",{width:r,height:a,viewBox:"0 0 64 64"},s().createElement("title",null,"Empty data illustration"),s().createElement("g",{fill:"none",fillRule:"evenodd"},s().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),s().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),s().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),s().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),s().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),s().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),s().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),s().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),s().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),s().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))};const A=function(e){var t=e.headerTitle,r=e.displayText,a="tablet"===(0,n.useLayoutType)();return s().createElement(E.n9,{light:!0,className:H.tile},s().createElement("div",{className:a?H.tabletHeading:H.desktopHeading},s().createElement("h4",null,t)),s().createElement(D,null),s().createElement("p",{className:H.content},r))};var N=r(2362),V={};V.styleTagTransform=M(),V.setAttributes=C(),V.insert=P().bind(null,"head"),V.domAPI=x(),V.insertStyleElement=T(),O()(N.Z,V);const I=N.Z&&N.Z.locals?N.Z.locals:void 0;function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(){return R=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},R.apply(this,arguments)}const Q=function(e){var t=e.rows,r=e.error,a=e.isLoading,o=e.activeForms,i=(0,w.useTranslation)().t,l=[{key:"display",header:i("formName","Form Name")},{key:"actions",header:i("actions","Actions")},{key:"actions2",header:""}],E=null==t?void 0:t.map((function(e){return t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){B(e,t,r[t])}))}return e}({},e),r=null!=(r={actions:s().createElement(k.Link,{to:e.uuid},o.includes(e.uuid)?i("resumeSession","Resume Session"):i("fillForm","Fill Form")),actions2:s().createElement(k.Link,{to:"#",className:I.inactiveLink},i("startGroupSession","Start Group Session"))})?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})),t;var t,r}));return a?s().createElement(c.Z,null):r?s().createElement(n.ErrorState,{headerTitle:i("errorLoadingData","Error Loading Data"),error:r}):0===E.length?s().createElement(A,{headerTitle:i("noFormsFound","No Forms To Show"),displayText:i("noFormsFoundMessage","No forms could be found for this category. Please double check the form concept uuids and access permissions.")}):s().createElement(f.ZP,{rows:E,headers:l,isSortable:!0},(function(e){var t=e.rows,r=e.headers,n=e.getTableProps,a=e.getHeaderProps,o=e.getRowProps,i=e.onInputChange;return s().createElement(m.Z,null,s().createElement("div",{className:I.toolbarWrapper},s().createElement(d.Z,{className:I.tableToolbar},s().createElement(g.Z,null,s().createElement(u.Z,{onChange:i})))),s().createElement(h.Z,R({},n()),s().createElement(p.Z,null,s().createElement(_.Z,null,r.map((function(e){return s().createElement(b.Z,R({},a({header:e})),e.header)})))),s().createElement(y.Z,null,null==t?void 0:t.map((function(e){return s().createElement(_.Z,R({},o({row:e})),e.cells.map((function(e){return s().createElement(v.Z,{key:e.id},e.value)})))})))))}))};var J=r(8388),W={};W.styleTagTransform=M(),W.setAttributes=C(),W.insert=P().bind(null,"head"),W.domAPI=x(),W.insertStyleElement=T(),O()(J.Z,W);const G=J.Z&&J.Z.locals?J.Z.locals:void 0;var U=r(2126);function Y(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}function $(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(){return K=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},K.apply(this,arguments)}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$(e,t,r[t])}))}return e}function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Y(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y(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.")}()}const re=function(){var e,t,r=(0,n.useConfig)(),i=(0,w.useTranslation)().t,c=r.formCategories,f=r.formCategoriesToShow,m=(0,l.wJ)(),d=m.forms,g=m.isLoading,u=m.error,h=(t=d)?null==t?void 0:t.map((function(e){return t=ee({},e),r=null!=(r={id:e.uuid,display:e.display||e.name})?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r}(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})),t;var t,r})):null,p=localStorage.getItem(U.Go),_=[];p&&(null===(e=JSON.parse(p))||void 0===e?void 0:e._storageVersion)===U.IE&&Object.entries(JSON.parse(p).forms).forEach((function(e){var t=te(e,2),r=t[0];t[1].workflowState&&_.push(r)}));var b=f.map((function(e){var t=c.find((function(t){return t.name===e})),r=[];if(t&&h&&h.length){var n,a=null===(n=t.forms)||void 0===n?void 0:n.map((function(e){return e.formUUID}));r=h.filter((function(e){return a.includes(e.uuid)}))}return ee({},{name:e,rows:r})}));return s().createElement("div",{className:G.mainContent},s().createElement("h3",{className:G.pageTitle},i("forms","Forms")),s().createElement(a.Z,{type:"container"},s().createElement(o.Z,{label:"".concat(i("allForms","All Forms")," (").concat(h?null==h?void 0:h.length:"??",")")},s().createElement(Q,K({rows:h},{error:u,isLoading:g,activeForms:_}))),null==b?void 0:b.map((function(e,t){return s().createElement(o.Z,{label:"".concat(e.name," (").concat(e.rows.length,")"),key:t},s().createElement(Q,K({rows:e.rows},{error:u,isLoading:g,activeForms:_})))}))))}},8772:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(3645),a=r.n(n)()((function(e){return e[1]}));a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}button,select,input,textarea{font-family:inherit;border-radius:0}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-fast-data-entry__styles__skeleton___OigVX{0%{transform:scaleX(0);transform-origin:left;opacity:.3}20%{transform:scaleX(1);transform-origin:left;opacity:1}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{transform:scaleX(0);transform-origin:left;opacity:.3}}.-esm-fast-data-entry__styles__action___ei5aj{margin-bottom:.5rem}.-esm-fast-data-entry__styles__content___7TnbC{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px;color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-fast-data-entry__styles__desktopHeading___z4QwX h4{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0;color:#525252}.-esm-fast-data-entry__styles__tabletHeading___XCRdE h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0;color:#525252}.-esm-fast-data-entry__styles__desktopHeading___z4QwX,.-esm-fast-data-entry__styles__tabletHeading___XCRdE{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-fast-data-entry__styles__desktopHeading___z4QwX h4:after,.-esm-fast-data-entry__styles__tabletHeading___XCRdE h4:after{content:\"\";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-fast-data-entry__styles__heading___C0rzi:after{content:\"\";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-fast-data-entry__styles__tile___szqEV{text-align:center;border:1px solid #e0e0e0}",""]),a.locals={action:"-esm-fast-data-entry__styles__action___ei5aj",content:"-esm-fast-data-entry__styles__content___7TnbC",desktopHeading:"-esm-fast-data-entry__styles__desktopHeading___z4QwX",tabletHeading:"-esm-fast-data-entry__styles__tabletHeading___XCRdE",heading:"-esm-fast-data-entry__styles__heading___C0rzi",tile:"-esm-fast-data-entry__styles__tile___szqEV",skeleton:"-esm-fast-data-entry__styles__skeleton___OigVX"};const o=a},8388:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(3645),a=r.n(n)()((function(e){return e[1]}));a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}button,select,input,textarea{font-family:inherit;border-radius:0}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-fast-data-entry__styles__skeleton___nZ\\+Ln{0%{transform:scaleX(0);transform-origin:left;opacity:.3}20%{transform:scaleX(1);transform-origin:left;opacity:1}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{transform:scaleX(0);transform-origin:left;opacity:.3}}.-esm-fast-data-entry__styles__mainContent___JbeQi{padding:2rem}.-esm-fast-data-entry__styles__pageTitle___-6QBj{margin-bottom:1.5rem}",""]),a.locals={mainContent:"-esm-fast-data-entry__styles__mainContent___JbeQi",pageTitle:"-esm-fast-data-entry__styles__pageTitle___-6QBj",skeleton:"-esm-fast-data-entry__styles__skeleton___nZ+Ln"};const o=a},2362:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(3645),a=r.n(n)()((function(e){return e[1]}));a.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}button,select,input,textarea{font-family:inherit;border-radius:0}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-fast-data-entry__styles__skeleton___elkzD{0%{transform:scaleX(0);transform-origin:left;opacity:.3}20%{transform:scaleX(1);transform-origin:left;opacity:1}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{transform:scaleX(0);transform-origin:left;opacity:.3}}.-esm-fast-data-entry__styles__toolbarWrapper___bYvir{position:relative;display:flex;height:3rem;justify-content:flex-end}.-esm-fast-data-entry__styles__tableToolbar___SObAt{width:20%;min-width:12.5rem}.-esm-fast-data-entry__styles__inactiveLink___s67Mk{color:#a8a8a8;cursor:not-allowed}",""]),a.locals={toolbarWrapper:"-esm-fast-data-entry__styles__toolbarWrapper___bYvir",tableToolbar:"-esm-fast-data-entry__styles__tableToolbar___SObAt",inactiveLink:"-esm-fast-data-entry__styles__inactiveLink___s67Mk",skeleton:"-esm-fast-data-entry__styles__skeleton___elkzD"};const o=a}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-fast-data-entry-app",[],function(a,b){var c=void 0;return{execute:function(){a((()=>{function g(a){var b=m[a];if(void 0!==b)return b.exports;var c=m[a]={id:a,loaded:!1,exports:{}};return G[a].call(c.exports,c,c.exports,g),c.loaded=!0,c.exports}var j,k,q,w,x,y,z,A,B,C,r,D,E,F,G={1858:(a,b,c)=>{(0,c(2722).s)(1)},2722:(a,b,c)=>{const d=c(3905).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},5356:(a,b,c)=>{c(1858)},3905:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},6751:(b,d,f)=>{var g={app:()=>(c||((self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[132],{8132:(b,c,d)=>{function e(){var b={featureName:"fast-data-entry-app",moduleName:"@openmrs/esm-fast-data-entry-app"};return(0,f.defineConfigSchema)("@openmrs/esm-fast-data-entry-app",a),(0,f.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/forms"),title:"Forms",parent:"".concat(window.spaBase,"/home")}]),{pages:[{load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(211),d.e(804)]).then(d.bind(d,9804))},b),route:"forms"}],extensions:[{name:"forms-app-link",slot:"app-menu-slot",load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(211),d.e(397),d.e(776)]).then(d.bind(d,5776))},b),online:!0,offline:!0}]}}d.r(c),d.d(c,{backendDependencies:()=>h,importTranslation:()=>g,setupOpenMRS:()=>e,assets:()=>["
|
|
1
|
+
System.register("@openmrs/esm-fast-data-entry-app",[],function(a,b){var c=void 0;return{execute:function(){a((()=>{function g(a){var b=m[a];if(void 0!==b)return b.exports;var c=m[a]={id:a,loaded:!1,exports:{}};return G[a].call(c.exports,c,c.exports,g),c.loaded=!0,c.exports}var j,k,q,w,x,y,z,A,B,C,r,D,E,F,G={1858:(a,b,c)=>{(0,c(2722).s)(1)},2722:(a,b,c)=>{const d=c(3905).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},5356:(a,b,c)=>{c(1858)},3905:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},6751:(b,d,f)=>{var g={app:()=>(c||((self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[132],{8132:(b,c,d)=>{function e(){var b={featureName:"fast-data-entry-app",moduleName:"@openmrs/esm-fast-data-entry-app"};return(0,f.defineConfigSchema)("@openmrs/esm-fast-data-entry-app",a),(0,f.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/forms"),title:"Forms",parent:"".concat(window.spaBase,"/home")}]),{pages:[{load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(211),d.e(804)]).then(d.bind(d,9804))},b),route:"forms"}],extensions:[{name:"forms-app-link",slot:"app-menu-slot",load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(211),d.e(397),d.e(776)]).then(d.bind(d,5776))},b),online:!0,offline:!0}]}}d.r(c),d.d(c,{backendDependencies:()=>h,importTranslation:()=>g,setupOpenMRS:()=>e,assets:()=>["187.js","247.js","294.js","312.js","412.js","openmrs-esm-fast-data-entry-app.js","536.js","574.js","592.js","595.js","776.js","804.js","880.js","906.js","935.js","990.js"]});var f=d(311),a={formCategories:{_type:f.Type.Array,_description:"Organize forms into categories. A form can belong to multiple categories.",_elements:{name:{_type:f.Type.String,_description:"Category name"},forms:{_type:f.Type.Array,_description:"List of forms for this category.",_elements:{formUUID:{_type:f.Type.UUID,_description:"UUID of form"},name:{_type:f.Type.String,_description:"Name of form"}}}},_default:[{name:"ICRC Forms",forms:[{formUUID:"0cefb866-110c-4f16-af58-560932a1db1f",name:"Adult Triage"}]},{name:"Distress Scales",forms:[{formUUID:"9f26aad4-244a-46ca-be49-1196df1a8c9a",name:"POC Sample Form 1"}]}]},formCategoriesToShow:{_type:f.Type.Array,_description:"Forms to show by default on the forms app home page.",_elements:{_type:f.Type.String,_description:"Name of category"},_default:["ICRC Forms","Distress Scales"]}},g=d(3979),h={fhir2:"^1.2.0","webservices.rest":"^2.2.0"}},3979:(b,c,d)=>{function e(a){if(!d.o(f,a))return Promise.resolve().then(()=>{var b=new Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b});var b=f[a],c=b[0];return d.e(b[1]).then(()=>d(c))}var f={"./en.json":[3574,574]};e.keys=()=>Object.keys(f),e.id=3979,b.exports=e}}]),c=f.e(132).then(()=>()=>f(8132))),c)},e=(a,b)=>(f.R=b,b=f.o(g,a)?g[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),f.R=void 0,b),h=(a,b)=>{if(f.S){var c=f.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return f.S["default"]=a,f.I("default",b)}};f.d(d,{get:()=>e,init:()=>h})}},m={};return g.m=G,g.c=m,g.y=b,g.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return g.d(b,{a:b}),b},g.d=(a,b)=>{for(var c in b)g.o(b,c)&&!g.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},g.f={},g.e=a=>Promise.all(Object.keys(g.f).reduce((b,c)=>(g.f[c](a,b),b),[])),g.u=a=>a+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),g.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),j={},k="@openmrs/esm-fast-data-entry-app:",g.l=(a,b,c)=>{if(j[a])j[a].push(b);else{var e,h;if(void 0!==c)for(var m,n=document.getElementsByTagName("script"),o=0;o<n.length;o++)if(m=n[o],m.getAttribute("src")==a||m.getAttribute("data-webpack")==k+c){e=m;break}e||(h=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,g.nc&&e.setAttribute("nonce",g.nc),e.setAttribute("data-webpack",k+c),e.src=a),j[a]=[b];var q=(b,c)=>{e.onerror=e.onload=null,clearTimeout(d);var f=j[a];if(delete j[a],e.parentNode&&e.parentNode.removeChild(e),f&&f.forEach(a=>a(c)),b)return b(c)},d=setTimeout(q.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=q.bind(null,e.onerror),e.onload=q.bind(null,e.onload),h&&document.head.appendChild(e)}},g.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},g.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{g.S={};var b={},c={};g.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];g.o(g.S,d)||(g.S[d]={});var h=g.S[d],a=(a,b,c,d)=>{var e=h[a]=h[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-fast-data-entry-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-fast-data-entry-app",eager:!!d})},i=[];return"default"===d&&(a("@openmrs/esm-framework","3.4.1-pre.189",()=>Promise.all([g.e(595),g.e(211)]).then(()=>()=>g(595))),a("carbon-icons","7.0.7",()=>g.e(906).then(()=>()=>g(906))),a("react-dom","16.14.0",()=>Promise.all([g.e(935),g.e(211)]).then(()=>()=>g(3935))),a("react-i18next","11.18.3",()=>Promise.all([g.e(247),g.e(211)]).then(()=>()=>g(8247))),a("react-router-dom","5.3.3",()=>Promise.all([g.e(536),g.e(211)]).then(()=>()=>g(536))),a("react","16.14.0",()=>g.e(294).then(()=>()=>g(7294)))),b[d]=i.length?Promise.all(i).then(()=>b[d]=1):1}}})(),g.p="",q=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},w=(b,c)=>{b=q(b),c=q(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},x=a=>{function b(){return g.pop().replace(/^\((.+)\)$/,"$1")}var c=a[0],d="";if(1===a.length)return"*";if(c+.5){d+=0==c?">=":-1==c?"<":1==c?"^":2==c?"~":0<c?"=":"!=";for(var e=1,f=1;f<a.length;f++)e--,d+="u"==(typeof(h=a[f]))[0]?"-":(0<e?".":"")+(e=2,h);return d}var g=[];for(f=1;f<a.length;f++){var h=a[f];g.push(0===h?"not("+b()+")":1===h?"("+b()+" || "+b()+")":2===h?g.pop()+" "+g.pop():x(h))}return b()},y=(b,e)=>{if(0 in b){e=q(e);var g=b[0],i=0>g;i&&(g=-g-1);for(var j=0,k=1,m=!0;;k++,j++){var n,o,v=k<b.length?(typeof b[k])[0]:"";if(j>=e.length||"o"==(o=(typeof(n=e[j]))[0]))return!m||("u"==v?k>g&&!i:""==v!=i);if("u"==o){if(!m||"u"!=v)return!1;}else if(!m)"s"!=v&&"n"!=v&&(m=!1,k--);else if(v==o){if(!(k<=g)){if(i?n>b[k]:n<b[k])return!1;n!=b[k]&&(m=!1)}else if(n!=b[k])return!1;}else if("s"!=v&&"n"!=v){if(i||k<=g)return!1;m=!1,k--}else{if(k<=g||o<v!=i)return!1;m=!1}}}var d=[],p=d.pop.bind(d);for(j=1;j<b.length;j++){var c=b[j];d.push(1==c?p()|p():2==c?p()&p():c?y(c,e):!p())}return!!p()},z=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!w(a,b))?a:b,0)},A=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+x(d)+")",B=(a,b,c,d)=>{var e=z(a,c);return y(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(A(a,c,e,d)),C(a[c][e])},C=a=>(a.loaded=1,a.get()),r=(b=>function(c,d,e,f){var h=g.I(c);return h&&h.then?h.then(b.bind(b,c,g.S[c],d,e,f)):b(0,g.S[c],d,e,f)})((a,b,c,d,e)=>b&&g.o(b,c)?B(b,0,c,d):e()),D={},E={311:()=>r("default","@openmrs/esm-framework",[1,"next"],()=>Promise.all([g.e(595),g.e(211)]).then(()=>()=>g(595))),4211:()=>r("default","react",[1,16,14],()=>g.e(294).then(()=>()=>g(7294))),2221:()=>r("default","react-router-dom",[1,5,0,0],()=>g.e(536).then(()=>()=>g(536))),3397:()=>r("default","react-i18next",[1,11],()=>g.e(247).then(()=>()=>g(8247))),8408:()=>r("default","react-dom",[1,16,0],()=>g.e(935).then(()=>()=>g(3935)))},F={132:[311],211:[4211],397:[3397],804:[2221],990:[8408]},g.f.consumes=(a,b)=>{g.o(F,a)&&F[a].forEach(a=>{if(g.o(D,a))return b.push(D[a]);var c=b=>{D[a]=0,g.m[a]=c=>{delete g.c[a],c.exports=b()}},d=b=>{delete D[a],g.m[a]=()=>{throw delete g.c[a],b}};try{var e=E[a]();e.then?b.push(D[a]=e.then(c).catch(d)):c(e)}catch(a){d(a)}})},(()=>{var b={447:0};g.f.j=(c,d)=>{var e=g.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(211|397)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var h=g.p+g.u(c),j=new Error;g.l(h,d=>{if(g.o(b,c)&&(0!==(e=b[c])&&(b[c]=void 0),e)){var f=d&&("load"===d.type?"missing":d.type),h=d&&d.target&&d.target.src;j.message="Loading chunk "+c+" failed.\n("+f+": "+h+")",j.name="ChunkLoadError",j.type=f,j.request=h,e[1](j)}},"chunk-"+c,c)}};var a=(c,d)=>{var e,f,[h,a,i]=d,j=0;if(h.some(a=>0!==b[a])){for(e in a)g.o(a,e)&&(g.m[e]=a[e]);i&&i(g)}for(c&&c(d);j<h.length;j++)f=h[j],g.o(b,f)&&b[f]&&b[f][0](),b[f]=0},c=self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),g.nc=void 0,g(5356),g(6751)})())}}});
|
|
@@ -5,23 +5,21 @@
|
|
|
5
5
|
"initial": false,
|
|
6
6
|
"entry": false,
|
|
7
7
|
"recorded": false,
|
|
8
|
-
"
|
|
9
|
-
"size": 1173789,
|
|
8
|
+
"size": 4640,
|
|
10
9
|
"sizes": {
|
|
11
|
-
"
|
|
10
|
+
"consume-shared": 42,
|
|
11
|
+
"javascript": 4598
|
|
12
12
|
},
|
|
13
13
|
"names": [],
|
|
14
|
-
"idHints": [
|
|
15
|
-
"vendors"
|
|
16
|
-
],
|
|
14
|
+
"idHints": [],
|
|
17
15
|
"runtime": [
|
|
18
16
|
"@openmrs/esm-fast-data-entry-app"
|
|
19
17
|
],
|
|
20
18
|
"files": [
|
|
21
|
-
"
|
|
19
|
+
"132.js"
|
|
22
20
|
],
|
|
23
21
|
"auxiliaryFiles": [],
|
|
24
|
-
"hash": "
|
|
22
|
+
"hash": "20cd55cddce10201fde8",
|
|
25
23
|
"childrenByOrder": {}
|
|
26
24
|
},
|
|
27
25
|
{
|
|
@@ -30,9 +28,9 @@
|
|
|
30
28
|
"entry": false,
|
|
31
29
|
"recorded": false,
|
|
32
30
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
33
|
-
"size":
|
|
31
|
+
"size": 1101806,
|
|
34
32
|
"sizes": {
|
|
35
|
-
"javascript":
|
|
33
|
+
"javascript": 1101806
|
|
36
34
|
},
|
|
37
35
|
"names": [],
|
|
38
36
|
"idHints": [
|
|
@@ -42,32 +40,10 @@
|
|
|
42
40
|
"@openmrs/esm-fast-data-entry-app"
|
|
43
41
|
],
|
|
44
42
|
"files": [
|
|
45
|
-
"
|
|
46
|
-
],
|
|
47
|
-
"auxiliaryFiles": [],
|
|
48
|
-
"hash": "f581f85666374b1d2278",
|
|
49
|
-
"childrenByOrder": {}
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"rendered": true,
|
|
53
|
-
"initial": false,
|
|
54
|
-
"entry": false,
|
|
55
|
-
"recorded": false,
|
|
56
|
-
"size": 4640,
|
|
57
|
-
"sizes": {
|
|
58
|
-
"consume-shared": 42,
|
|
59
|
-
"javascript": 4598
|
|
60
|
-
},
|
|
61
|
-
"names": [],
|
|
62
|
-
"idHints": [],
|
|
63
|
-
"runtime": [
|
|
64
|
-
"@openmrs/esm-fast-data-entry-app"
|
|
65
|
-
],
|
|
66
|
-
"files": [
|
|
67
|
-
"132.js"
|
|
43
|
+
"187.js"
|
|
68
44
|
],
|
|
69
45
|
"auxiliaryFiles": [],
|
|
70
|
-
"hash": "
|
|
46
|
+
"hash": "286c15965e45ce27fdce",
|
|
71
47
|
"childrenByOrder": {}
|
|
72
48
|
},
|
|
73
49
|
{
|
|
@@ -135,6 +111,27 @@
|
|
|
135
111
|
"hash": "ced286e1e2386fbec77d",
|
|
136
112
|
"childrenByOrder": {}
|
|
137
113
|
},
|
|
114
|
+
{
|
|
115
|
+
"rendered": true,
|
|
116
|
+
"initial": false,
|
|
117
|
+
"entry": false,
|
|
118
|
+
"recorded": false,
|
|
119
|
+
"size": 57724,
|
|
120
|
+
"sizes": {
|
|
121
|
+
"javascript": 57724
|
|
122
|
+
},
|
|
123
|
+
"names": [],
|
|
124
|
+
"idHints": [],
|
|
125
|
+
"runtime": [
|
|
126
|
+
"@openmrs/esm-fast-data-entry-app"
|
|
127
|
+
],
|
|
128
|
+
"files": [
|
|
129
|
+
"312.js"
|
|
130
|
+
],
|
|
131
|
+
"auxiliaryFiles": [],
|
|
132
|
+
"hash": "ec3d9a67e6c281e6bcd4",
|
|
133
|
+
"childrenByOrder": {}
|
|
134
|
+
},
|
|
138
135
|
{
|
|
139
136
|
"rendered": false,
|
|
140
137
|
"initial": false,
|
|
@@ -155,6 +152,30 @@
|
|
|
155
152
|
"hash": "6603850deb0c49f5efc3",
|
|
156
153
|
"childrenByOrder": {}
|
|
157
154
|
},
|
|
155
|
+
{
|
|
156
|
+
"rendered": true,
|
|
157
|
+
"initial": false,
|
|
158
|
+
"entry": false,
|
|
159
|
+
"recorded": false,
|
|
160
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
161
|
+
"size": 290330,
|
|
162
|
+
"sizes": {
|
|
163
|
+
"javascript": 290330
|
|
164
|
+
},
|
|
165
|
+
"names": [],
|
|
166
|
+
"idHints": [
|
|
167
|
+
"vendors"
|
|
168
|
+
],
|
|
169
|
+
"runtime": [
|
|
170
|
+
"@openmrs/esm-fast-data-entry-app"
|
|
171
|
+
],
|
|
172
|
+
"files": [
|
|
173
|
+
"412.js"
|
|
174
|
+
],
|
|
175
|
+
"auxiliaryFiles": [],
|
|
176
|
+
"hash": "c725e1e32b2c65b8a8c1",
|
|
177
|
+
"childrenByOrder": {}
|
|
178
|
+
},
|
|
158
179
|
{
|
|
159
180
|
"rendered": true,
|
|
160
181
|
"initial": true,
|
|
@@ -177,7 +198,7 @@
|
|
|
177
198
|
"openmrs-esm-fast-data-entry-app.js"
|
|
178
199
|
],
|
|
179
200
|
"auxiliaryFiles": [],
|
|
180
|
-
"hash": "
|
|
201
|
+
"hash": "be879c36cfbeb248b65b",
|
|
181
202
|
"childrenByOrder": {}
|
|
182
203
|
},
|
|
183
204
|
{
|
|
@@ -209,30 +230,9 @@
|
|
|
209
230
|
"initial": false,
|
|
210
231
|
"entry": false,
|
|
211
232
|
"recorded": false,
|
|
212
|
-
"size":
|
|
213
|
-
"sizes": {
|
|
214
|
-
"javascript": 71004
|
|
215
|
-
},
|
|
216
|
-
"names": [],
|
|
217
|
-
"idHints": [],
|
|
218
|
-
"runtime": [
|
|
219
|
-
"@openmrs/esm-fast-data-entry-app"
|
|
220
|
-
],
|
|
221
|
-
"files": [
|
|
222
|
-
"557.js"
|
|
223
|
-
],
|
|
224
|
-
"auxiliaryFiles": [],
|
|
225
|
-
"hash": "fa239b313bfd20451ae6",
|
|
226
|
-
"childrenByOrder": {}
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"rendered": true,
|
|
230
|
-
"initial": false,
|
|
231
|
-
"entry": false,
|
|
232
|
-
"recorded": false,
|
|
233
|
-
"size": 557,
|
|
233
|
+
"size": 846,
|
|
234
234
|
"sizes": {
|
|
235
|
-
"javascript":
|
|
235
|
+
"javascript": 846
|
|
236
236
|
},
|
|
237
237
|
"names": [],
|
|
238
238
|
"idHints": [],
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"574.js"
|
|
244
244
|
],
|
|
245
245
|
"auxiliaryFiles": [],
|
|
246
|
-
"hash": "
|
|
246
|
+
"hash": "18b2e4fdfe93a2925da9",
|
|
247
247
|
"childrenByOrder": {}
|
|
248
248
|
},
|
|
249
249
|
{
|
|
@@ -252,9 +252,9 @@
|
|
|
252
252
|
"entry": false,
|
|
253
253
|
"recorded": false,
|
|
254
254
|
"reason": "split chunk (cache group: default)",
|
|
255
|
-
"size":
|
|
255
|
+
"size": 37019,
|
|
256
256
|
"sizes": {
|
|
257
|
-
"javascript":
|
|
257
|
+
"javascript": 37019
|
|
258
258
|
},
|
|
259
259
|
"names": [],
|
|
260
260
|
"idHints": [],
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
"592.js"
|
|
266
266
|
],
|
|
267
267
|
"auxiliaryFiles": [],
|
|
268
|
-
"hash": "
|
|
268
|
+
"hash": "62bcb0effaa800159a01",
|
|
269
269
|
"childrenByOrder": {}
|
|
270
270
|
},
|
|
271
271
|
{
|
|
@@ -332,7 +332,31 @@
|
|
|
332
332
|
"804.js"
|
|
333
333
|
],
|
|
334
334
|
"auxiliaryFiles": [],
|
|
335
|
-
"hash": "
|
|
335
|
+
"hash": "399f1cf1f41bda6fc66d",
|
|
336
|
+
"childrenByOrder": {}
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"rendered": true,
|
|
340
|
+
"initial": false,
|
|
341
|
+
"entry": false,
|
|
342
|
+
"recorded": false,
|
|
343
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
344
|
+
"size": 656311,
|
|
345
|
+
"sizes": {
|
|
346
|
+
"javascript": 656311
|
|
347
|
+
},
|
|
348
|
+
"names": [],
|
|
349
|
+
"idHints": [
|
|
350
|
+
"vendors"
|
|
351
|
+
],
|
|
352
|
+
"runtime": [
|
|
353
|
+
"@openmrs/esm-fast-data-entry-app"
|
|
354
|
+
],
|
|
355
|
+
"files": [
|
|
356
|
+
"880.js"
|
|
357
|
+
],
|
|
358
|
+
"auxiliaryFiles": [],
|
|
359
|
+
"hash": "f873bdee413318ec1522",
|
|
336
360
|
"childrenByOrder": {}
|
|
337
361
|
},
|
|
338
362
|
{
|
|
@@ -402,7 +426,7 @@
|
|
|
402
426
|
"990.js"
|
|
403
427
|
],
|
|
404
428
|
"auxiliaryFiles": [],
|
|
405
|
-
"hash": "
|
|
429
|
+
"hash": "9a1c9d39c70cf2ecf9e6",
|
|
406
430
|
"childrenByOrder": {}
|
|
407
431
|
}
|
|
408
432
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-fast-data-entry-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,u,l,f,d,p,c,h,m={1858:(e,r,t)=>{(0,t(2722).s)(1)},2722:(e,r,t)=>{const n=t(3905).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},5356:(e,r,t)=>{t(1858)},3905:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},6751:(e,r,t)=>{"use strict";var n={app:()=>t.e(132).then((()=>()=>t(8132)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},v={};function y(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}return y.m=m,y.c=v,y.y=r,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-fast-data-entry-app:",y.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var d=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),s&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-fast-data-entry-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},u=[];return"default"===t&&(s("@openmrs/esm-framework","3.4.1-pre.
|
|
1
|
+
System.register("@openmrs/esm-fast-data-entry-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,u,l,f,d,p,c,h,m={1858:(e,r,t)=>{(0,t(2722).s)(1)},2722:(e,r,t)=>{const n=t(3905).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},5356:(e,r,t)=>{t(1858)},3905:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},6751:(e,r,t)=>{"use strict";var n={app:()=>t.e(132).then((()=>()=>t(8132)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},v={};function y(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}return y.m=m,y.c=v,y.y=r,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-fast-data-entry-app:",y.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var d=(t,n)=>{i.onerror=i.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),s&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-fast-data-entry-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},u=[];return"default"===t&&(s("@openmrs/esm-framework","3.4.1-pre.189",(()=>Promise.all([y.e(595),y.e(211)]).then((()=>()=>y(595))))),s("carbon-icons","7.0.7",(()=>y.e(906).then((()=>()=>y(906))))),s("react-dom","16.14.0",(()=>Promise.all([y.e(935),y.e(211)]).then((()=>()=>y(3935))))),s("react-i18next","11.18.3",(()=>Promise.all([y.e(247),y.e(211)]).then((()=>()=>y(8247))))),s("react-router-dom","5.3.3",(()=>Promise.all([y.e(536),y.e(211)]).then((()=>()=>y(536))))),s("react","16.14.0",(()=>y.e(294).then((()=>()=>y(7294)))))),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),y.p="",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+u()+")":1===s?"("+u()+" || "+u()+")":2===s?i.pop()+" "+i.pop():a(s))}return u();function u(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,u=!0;;s++,a++){var l,f,d=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(f=(typeof(l=r[a]))[0]))return!u||("u"==d?s>t&&!o:""==d!=o);if("u"==f){if(!u||"u"!=d)return!1}else if(u)if(d==f)if(s<=t){if(l!=e[s])return!1}else{if(o?l>e[s]:l<e[s])return!1;l!=e[s]&&(u=!1)}else if("s"!=d&&"n"!=d){if(o||s<=t)return!1;u=!1,s--}else{if(s<=t||f<d!=o)return!1;u=!1}else"s"!=d&&"n"!=d&&(u=!1,s--)}}var p=[],c=p.pop.bind(p);for(a=1;a<e.length;a++){var h=e[a];p.push(1==h?c()|c():2==h?c()&c():h?i(h,r):!c())}return!!c()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},u=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",l=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(u(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=y.I(r);return a&&a.then?a.then(e.bind(e,r,y.S[r],t,n,o)):e(0,y.S[r],t,n,o)})(((e,r,t,n,o)=>r&&y.o(r,t)?l(r,0,t,n):o())),p={},c={311:()=>d("default","@openmrs/esm-framework",[1,"next"],(()=>Promise.all([y.e(595),y.e(211)]).then((()=>()=>y(595))))),4211:()=>d("default","react",[1,16,14],(()=>y.e(294).then((()=>()=>y(7294))))),2221:()=>d("default","react-router-dom",[1,5,0,0],(()=>y.e(536).then((()=>()=>y(536))))),3397:()=>d("default","react-i18next",[1,11],(()=>y.e(247).then((()=>()=>y(8247))))),8408:()=>d("default","react-dom",[1,16,0],(()=>y.e(935).then((()=>()=>y(3935)))))},h={132:[311],211:[4211],397:[3397],804:[2221],990:[8408]},y.f.consumes=(e,r)=>{y.o(h,e)&&h[e].forEach((e=>{if(y.o(p,e))return r.push(p[e]);var t=r=>{p[e]=0,y.m[e]=t=>{delete y.c[e],t.exports=r()}},n=r=>{delete p[e],y.m[e]=t=>{throw delete y.c[e],r}};try{var o=c[e]();o.then?r.push(p[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={447:0};y.f.j=(r,t)=>{var n=y.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(211|397)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=y.p+y.u(r),i=new Error;y.l(a,(t=>{if(y.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,u=0;if(a.some((r=>0!==e[r]))){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);s&&s(y)}for(r&&r(t);u<a.length;u++)o=a[u],y.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),y.nc=void 0,y(5356),y(6751)})())}}}));
|
package/package.json
CHANGED
|
@@ -12,7 +12,10 @@ const initialActions = {
|
|
|
12
12
|
editEncounter: (patientUuid: string | number) => undefined,
|
|
13
13
|
submitForNext: () => undefined,
|
|
14
14
|
submitForReview: () => undefined,
|
|
15
|
+
submitForComplete: () => undefined,
|
|
15
16
|
goToReview: () => undefined,
|
|
17
|
+
destroySession: () => undefined,
|
|
18
|
+
closeSession: () => undefined,
|
|
16
19
|
};
|
|
17
20
|
|
|
18
21
|
export const initialWorkflowState = {
|
|
@@ -62,9 +65,12 @@ const FormWorkflowProvider = ({ children }) => {
|
|
|
62
65
|
}),
|
|
63
66
|
submitForNext: () => dispatch({ type: "SUBMIT_FOR_NEXT" }),
|
|
64
67
|
submitForReview: () => dispatch({ type: "SUBMIT_FOR_REVIEW" }),
|
|
68
|
+
submitForComplete: () => dispatch({ type: "SUBMIT_FOR_COMPLETE" }),
|
|
65
69
|
editEncounter: (patientUuid) =>
|
|
66
70
|
dispatch({ type: "EDIT_ENCOUNTER", patientUuid }),
|
|
67
71
|
goToReview: () => dispatch({ type: "GO_TO_REVIEW" }),
|
|
72
|
+
destroySession: () => dispatch({ type: "DESTROY_SESSION" }),
|
|
73
|
+
closeSession: () => dispatch({ type: "CLOSE_SESSION" }),
|
|
68
74
|
}),
|
|
69
75
|
[]
|
|
70
76
|
);
|