@openmrs/esm-fast-data-entry-app 1.0.0-pre.17 → 1.0.0-pre.19
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/375.js +1 -0
- package/dist/536.js +2 -0
- package/dist/{338.js.LICENSE.txt → 536.js.LICENSE.txt} +0 -0
- package/dist/737.js +2 -0
- package/dist/{767.js.LICENSE.txt → 737.js.LICENSE.txt} +0 -0
- package/dist/804.js +1 -1
- package/dist/900.js +2 -0
- package/dist/900.js.LICENSE.txt +5 -0
- package/dist/906.js +1 -2
- package/dist/947.js +1 -0
- package/dist/openmrs-esm-fast-data-entry-app.js +1 -1
- package/dist/openmrs-esm-fast-data-entry-app.js.buildmanifest.json +58 -97
- package/dist/openmrs-esm-fast-data-entry-app.old +1 -1
- package/package.json +1 -3
- package/dist/338.js +0 -2
- package/dist/350.js +0 -1
- package/dist/482.js +0 -1
- package/dist/666.js +0 -1
- package/dist/767.js +0 -2
- package/dist/906.js.LICENSE.txt +0 -27
package/dist/350.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[350],{6350:(e,t,n)=>{n.r(t),n.d(t,{default:()=>G});var a=n(7114),r=n(7103),i=n(311),o=n(3755),l=n(4211),s=n.n(l),c=n(2221),m=n(5666),d=n.n(m);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function u(e,t,n,a,r,i,o){try{var l=e[i](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(a,r)}const p=function(e){var t,n,a=(t=(0,l.useState)(null),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(t,n)||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.")}()),r=a[0],o=a[1];(0,l.useEffect)((function(){e?m(e):o(null)}),[e]);var s,c,m=(s=d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.fetchCurrentPatient)(t);case 2:n=e.sent,o(null==n?void 0:n.data);case 4:case"end":return e.stop()}}),e)})),c=function(){var e=this,t=arguments;return new Promise((function(n,a){var r=s.apply(e,t);function i(e){u(r,n,a,i,o,"next",e)}function o(e){u(r,n,a,i,o,"throw",e)}i(void 0)}))},function(e){return c.apply(this,arguments)});return r},_=function(e){var t=e.formUuid,n=e.patientUuid,a=e.visitUuid,r=e.visitTypeUuid,o=e.encounterUuid,l=p(n);return s().createElement("div",null,t&&n&&l&&s().createElement(i.ExtensionSlot,{extensionSlotName:"form-widget-slot",state:{view:"form",formUuid:t,visitUuid:null!=a?a:"",visitTypeUuid:null!=r?r:"",patientUuid:n,patient:l,encounterUuid:null!=o?o:"",closeWorkspace:function(){}}}))};var y=function(e){var t=e.children;return s().createElement("div",{style:{padding:"1rem"}},t)};const h=function(e){var t,n,a,r,i,l,c,m=e.patientUuid,d=p(m),f=null==d||null===(t=d.name)||void 0===t||null===(n=t[0])||void 0===n||null===(a=n.given)||void 0===a?void 0:a[0],u=null==d||null===(r=d.name)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.family,_=null==d||null===(l=d.identifier)||void 0===l||null===(c=l[0])||void 0===c?void 0:c.value;return d?s().createElement(y,null,s().createElement("div",{style:{fontWeight:300,fontSize:"0.8rem",lineHeight:"0.9rem"}},_),s().createElement("div",{style:{fontWeight:"bold"}},f," ",u)):s().createElement(y,null,s().createElement(o.SkeletonText,{style:{maxWidth:"8rem"}}))};var g=n(3379),v=n.n(g),b=n(7795),E=n.n(b),w=n(569),x=n.n(w),S=n(3565),I=n.n(S),k=n(9216),A=n.n(k),C=n(4589),U=n.n(C),N=n(8407),P={};P.styleTagTransform=U(),P.setAttributes=I(),P.insert=x().bind(null,"head"),P.domAPI=E(),P.insertStyleElement=A(),v()(N.Z,P);const T=N.Z&&N.Z.locals?N.Z.locals:void 0;var j=n(4595),Z=n(1444),z=n(3397);function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var O=function(){return s().createElement("div",{className:T.container},s().createElement("div",{className:T.patientInfoContainer},s().createElement(o.SkeletonPlaceholder,null),s().createElement("div",{className:T.patientInfoContent},s().createElement("div",{className:T.patientInfoRow},s().createElement("span",{className:T.patientName},s().createElement(o.SkeletonText,null))),s().createElement("div",{className:T.patientInfoRow},s().createElement("div",{className:T.demographics},s().createElement("span",null,s().createElement(o.SkeletonText,null)),s().createElement("span",null,s().createElement(o.SkeletonText,null)),s().createElement("span",null,s().createElement(o.SkeletonText,null)))),s().createElement("div",{className:T.patientInfoRow},s().createElement("span",{className:T.identifier},s().createElement(o.SkeletonText,null))))))};const R=function(e){var t,n,a,r,c,m,d,f=e.patientUuid,u=p(f),_=(0,z.useTranslation)().t,y=(m=(0,l.useState)(!1),d=2,function(e){if(Array.isArray(e))return e}(m)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(m,d)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(m,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=y[0],g=y[1],v="".concat(null===(n=null==u||null===(t=u.name)||void 0===t?void 0:t[0].given)||void 0===n?void 0:n.join(" ")," ").concat(null==u||null===(a=u.name)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.family),b=s().useMemo((function(){return{patientUuid:null==u?void 0:u.id,patientName:v}}),[null==u?void 0:u.id,v]);return u?s().createElement("div",{className:T.container},s().createElement("div",{className:"".concat(h?T.activePatientInfoContainer:T.patientInfoContainer)},s().createElement(i.ExtensionSlot,{extensionSlotName:"patient-photo-slot",state:b}),s().createElement("div",{className:T.patientInfoContent},s().createElement("div",{className:T.patientInfoRow},s().createElement("span",{className:T.patientName},v)),s().createElement("div",{className:T.patientInfoRow},s().createElement("div",{className:T.demographics},s().createElement("span",null,(null!==(c=u.gender)&&void 0!==c?c:_("unknown","Unknown")).replace(/^\w/,(function(e){return e.toUpperCase()}))," ","·"," "),s().createElement("span",null,(0,i.age)(u.birthDate)," · "),s().createElement("span",null,(0,i.formatDate)((0,i.parseDate)(u.birthDate),{mode:"wide",time:!1})))),s().createElement("div",{className:T.patientInfoRow},s().createElement("span",{className:T.identifier},u.identifier.length?u.identifier.map((function(e){return e.value})).join(", "):"--"),s().createElement(o.Button,{kind:"ghost",renderIcon:h?Z.Z:j.Z,iconDescription:"Toggle contact details",onClick:function(e){return function(e){e.stopPropagation(),g((function(e){return!e}))}(e)},disabled:!0},h?_("showLess","Show less"):_("showAllDetails","Show all details")))))):s().createElement(O,null)};var M=n(2275),X={};X.styleTagTransform=U(),X.setAttributes=I(),X.insert=x().bind(null,"head"),X.domAPI=E(),X.insertStyleElement=A(),v()(M.Z,X);const q=M.Z&&M.Z.locals?M.Z.locals:void 0;function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function W(){return W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},W.apply(this,arguments)}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(e,t)||Q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}var F=function(e){var t=e.patientUuids,n=e.setPatientUuids,l=e.setActivePatientUuid;return s().createElement("div",{style:{display:"flex",backgroundColor:"white",padding:"2rem 1rem"}},s().createElement("span",{style:{padding:"1rem"}},"Next patient:"),s().createElement("span",{style:{minWidth:"35rem"}},s().createElement(i.ExtensionSlot,{extensionSlotName:"patient-search-bar-slot",state:{selectPatientAction:function(e){var a;n((a=t,function(e){if(Array.isArray(e))return D(e)}(a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||Q(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e])),l(e)},buttonProps:{kind:"primary"}}})),s().createElement("span",{style:{padding:"1rem"}},"or"),s().createElement("span",null,s().createElement(o.Button,{disabled:!0},"Create new patient ",s().createElement(a.RVU,null))),s().createElement("span",{style:{flexGrow:1}}),s().createElement("span",null,s().createElement(o.Button,{kind:"ghost",disabled:!0},"Cancel ",s().createElement(r.dOq,null))))};const G=function(){var e=(0,c.useParams)().formUuid,t=H((0,l.useState)([]),2),n=t[0],a=t[1],r=H((0,l.useState)(null),2),m=r[0],d=r[1];return s().createElement("div",null,s().createElement("div",{className:q.breadcrumbsContainer},s().createElement(i.ExtensionSlot,{extensionSlotName:"breadcrumbs-slot"})),!m&&s().createElement(F,W({},{patientUuids:n,setPatientUuids:a,setActivePatientUuid:d})),m&&s().createElement(R,{patientUuid:m}),s().createElement("div",{style:{display:"flex",justifyContent:"center"}},s().createElement("div",{style:{width:"1100px"}},!n.length&&s().createElement("div",{style:{margin:"2rem",textAlign:"center"}},"Please select a patient first"),!!n.length&&s().createElement("div",{className:q.formContainer},s().createElement("div",{style:{flexGrow:1}},s().createElement(_,W({patientUuid:m},{formUuid:e}))),s().createElement("div",{style:{width:"13rem",textAlign:"left"}},s().createElement("h4",null,"Forms filled"),s().createElement("div",{style:{margin:"1rem 0",borderBottom:"1px solid #f4f4f4"}},n.map((function(e){return s().createElement(h,{patientUuid:e,key:e})}))),s().createElement("div",{style:{display:"flex",flexDirection:"column",rowGap:"0.5rem"}},s().createElement(o.Button,{kind:"primary",onClick:function(){return d(null)},style:{width:"100%"}},"Next Patient"),s().createElement(o.Button,{kind:"secondary",disabled:!0,style:{width:"100%"}},"Review & Save"),s().createElement(o.Button,{kind:"tertiary",disabled:!0,style:{width:"100%"}},"Cancel")))))))}},8407:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.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__patient-info__skeleton___SIgE4{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__patient-info__container___TUAaR{border-bottom:.0125rem solid #c6c6c6;background-color:#fff;padding:0}.-esm-fast-data-entry__patient-info__patientInfoContainer___A-vPU{padding:0 0 0 1rem;display:flex;align-items:center;min-height:7rem}.-esm-fast-data-entry__patient-info__activePatientInfoContainer___F5QkZ{background-color:#edf5ff;padding:0 0 0 1rem;display:flex;align-items:center;min-height:7rem}.-esm-fast-data-entry__patient-info__patientName___jlZOP{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}.-esm-fast-data-entry__patient-info__patientInfoContent___AdJAM{margin:1rem 0 0 1rem;width:100%}.-esm-fast-data-entry__patient-info__demographics___jDIQX{font-size:1rem;font-weight:400;line-height:1.375;letter-spacing:0;color:#525252;margin-top:.25rem}.-esm-fast-data-entry__patient-info__identifier___g\\+HbB{font-size:1rem;font-weight:400;line-height:1.375;letter-spacing:0;color:#8d8d8d}.-esm-fast-data-entry__patient-info__patientInfoRow___4rtW5{display:flex;justify-content:space-between;align-items:center}.-esm-fast-data-entry__patient-info__patientInfoRow___4rtW5>button{min-height:2rem}.-esm-fast-data-entry__patient-info__patientEditBtn___lP3pm{color:#161616;margin:.5rem}",""]),r.locals={container:"-esm-fast-data-entry__patient-info__container___TUAaR",patientInfoContainer:"-esm-fast-data-entry__patient-info__patientInfoContainer___A-vPU",activePatientInfoContainer:"-esm-fast-data-entry__patient-info__activePatientInfoContainer___F5QkZ",patientName:"-esm-fast-data-entry__patient-info__patientName___jlZOP",patientInfoContent:"-esm-fast-data-entry__patient-info__patientInfoContent___AdJAM",demographics:"-esm-fast-data-entry__patient-info__demographics___jDIQX",identifier:"-esm-fast-data-entry__patient-info__identifier___g+HbB",patientInfoRow:"-esm-fast-data-entry__patient-info__patientInfoRow___4rtW5",patientEditBtn:"-esm-fast-data-entry__patient-info__patientEditBtn___lP3pm",skeleton:"-esm-fast-data-entry__patient-info__skeleton___SIgE4"};const i=r},2275:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(3645),r=n.n(a)()((function(e){return e[1]}));r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-fast-data-entry__styles__breadcrumbsContainer___ToO0y>div>div>nav{background-color:#fff;padding:.5rem;border-bottom:1px solid #f4f4f4}.-esm-fast-data-entry__styles__formContainer___KZsne{display:flex;text-align:center;margin-top:1rem}",""]),r.locals={breadcrumbsContainer:"-esm-fast-data-entry__styles__breadcrumbsContainer___ToO0y",formContainer:"-esm-fast-data-entry__styles__formContainer___KZsne"};const i=r}}]);
|
package/dist/482.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[482],{1281:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}r.d(t,{u9:()=>l});var c=["width","height","viewBox"],s=["tabindex"],u={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,r=e.height,n=e.viewBox,o=void 0===n?"0 0 ".concat(t," ").concat(r):n,l=i(e,c),p=l.tabindex,f=i(l,s),d=a(a(a({},u),f),{},{width:t,height:r,viewBox:o});return d["aria-label"]||d["aria-labelledby"]||d.title?(d.role="img",null!=p&&(d.focusable="true",d.tabindex=p)):d["aria-hidden"]=!0,d}},6635:(e,t,r)=>{"use strict";r.d(t,{I:()=>b,_:()=>f,a:()=>p});var n=r(1281),a=r(5697),o=r.n(a),i=r(4211),c=r.n(i);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){return p=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},p.apply(this,arguments)}function f(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var d=["className","children","tabIndex"],h=["tabindex"],b=c().forwardRef((function(e,t){var r=e.className,a=e.children,o=e.tabIndex,i=f(e,d),s=(0,n.u9)(u(u({},i),{},{tabindex:o})),l=s.tabindex,p=f(s,h);return r&&(p.className=r),null!=l&&(p.tabIndex=l),t&&(p.ref=t),c().createElement("svg",p,a)}));b.displayName="Icon",b.propTypes={"aria-hidden":o().string,"aria-label":o().string,"aria-labelledby":o().string,children:o().node,className:o().string,height:o().oneOfType([o().number,o().string]),preserveAspectRatio:o().string,tabIndex:o().string,viewBox:o().string,width:o().oneOfType([o().number,o().string]),xmlns:o().string},b.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"}},7114:(e,t,r)=>{"use strict";r.d(t,{RVU:()=>s});var n,a=r(6635),o=r(4211),i=r.n(o),c=["children"],s=i().forwardRef((function(e,t){var r=e.children,o=(0,a._)(e,c);return i().createElement(a.I,(0,a.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},o),n||(n=i().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)}))},7103:(e,t,r)=>{"use strict";r.d(t,{dOq:()=>s});var n,a=r(6635),o=r(4211),i=r.n(o),c=["children"],s=i().forwardRef((function(e,t){var r=e.children,o=(0,a._)(e,c);return i().createElement(a.I,(0,a.a)({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},o),n||(n=i().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)}))},4595:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n,a=r(6635),o=r(4211),i=r.n(o),c=["children"],s=i().forwardRef((function(e,t){var r=e.children,o=(0,a._)(e,c);return i().createElement(a.I,(0,a.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},o),n||(n=i().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),r)}))},1444:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n,a=r(6635),o=r(4211),i=r.n(o),c=["children"],s=i().forwardRef((function(e,t){var r=e.children,o=(0,a._)(e,c);return i().createElement(a.I,(0,a.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},o),n||(n=i().createElement("path",{d:"M8 5L13 10 12.3 10.7 8 6.4 3.7 10.7 3 10z"})),r)}))},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);n&&a[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),t.push(s))}},t}},2703:(e,t,r)=>{"use strict";var n=r(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,i){if(i!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var o={},i=[],c=0;c<e.length;c++){var s=e[c],u=n.base?s[0]+n.base:s[0],l=o[u]||0,p="".concat(u," ").concat(l);o[u]=l+1;var f=r(p),d={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(d);else{var h=a(d,n);n.byIndex=c,t.splice(c,0,{identifier:p,updater:h,references:1})}i.push(p)}return i}function a(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,a){var o=n(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var c=r(o[i]);t[c].references--}for(var s=n(e,a),u=0;u<o.length;u++){var l=r(o[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=s}}},569:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,a&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}}]);
|
package/dist/666.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[666],{5666:t=>{var r=function(t){"use strict";var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof g?r:g,i=Object.create(o.prototype),a=new G(n||[]);return i._invoke=function(t,r,e){var n=s;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return T()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=j(a,e);if(c){if(c===v)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===s)throw n=y,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var u=f(t,r,e);if("normal"===u.type){if(n=e.done?y:l,u.arg===v)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=y,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var s="suspendedStart",l="suspendedYield",p="executing",y="completed",v={};function g(){}function d(){}function m(){}var w={};u(w,i,(function(){return this}));var L=Object.getPrototypeOf,_=L&&L(L(N([])));_&&_!==e&&n.call(_,i)&&(w=_);var b=m.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function E(t,r){function e(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var h=u.arg,s=h.value;return s&&"object"==typeof s&&n.call(s,"__await")?r.resolve(s.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(s).then((function(t){h.value=t,a(h)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}function j(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function O(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:T}}function T(){return{value:r,done:!0}}return d.prototype=m,u(b,"constructor",m),u(m,"constructor",d),d.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(E.prototype),u(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new E(h(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,G.prototype={constructor:G,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},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 e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!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"),h=n.call(a,"finallyLoc");if(u&&h){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(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,r){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&&r&&(this.next=r),v},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),O(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;O(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}}]);
|
package/dist/767.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 767.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[767],{1767:(e,t,r)=>{r.r(t),r.d(t,{FormsRoot:()=>pe,customFormRepresentation:()=>se,default:()=>be,formEncounterUrl:()=>fe,formEncounterUrlPoc:()=>de,useFormEncounters:()=>ve});var n=r(5666),o=r.n(n),i=r(311),a=r(3755),u=r(4211),c=r.n(u);function l(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))}function s(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var f,d=function(){},v=d(),p=Object,b=function(e){return e===v},m=function(e){return"function"==typeof e},y=function(e,t){return p.assign({},e,t)},h="undefined",g=function(){return typeof window!=h},w=new WeakMap,O=0,E=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(p(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=w.get(e))return t;if(t=++O+"~",w.set(e,t),o==Array){for(t="@",r=0;r<e.length;r++)t+=E(e[r])+",";w.set(e,t)}if(o==p){t="#";for(var a=p.keys(e).sort();!b(r=a.pop());)b(e[r])||(t+=r+":"+E(e[r])+",");w.set(e,t)}}return t},P=!0,T=g(),j=typeof document!=h,k=T&&window.addEventListener?window.addEventListener.bind(window):d,R=j?document.addEventListener.bind(document):d,S=T&&window.removeEventListener?window.removeEventListener.bind(window):d,C=j?document.removeEventListener.bind(document):d,D={isOnline:function(){return P},isVisible:function(){var e=j&&document.visibilityState;return b(e)||"hidden"!==e}},x={initFocus:function(e){return R("visibilitychange",e),k("focus",e),function(){C("visibilitychange",e),S("focus",e)}},initReconnect:function(e){var t=function(){P=!0,e()},r=function(){P=!1};return k("online",t),k("offline",r),function(){S("online",t),S("offline",r)}}},F=!g()||"Deno"in window,V=F?u.useEffect:u.useLayoutEffect,I="undefined"!=typeof navigator&&navigator.connection,_=!F&&I&&(["slow-2g","2g"].includes(I.effectiveType)||I.saveData),L=function(e){if(m(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?E(e):"",t,e?"$swr$"+e:""]},A=new WeakMap,M=function(e,t,r,n,o,i,a){void 0===a&&(a=!0);var u=A.get(e),c=u[0],l=u[1],s=u[3],f=c[t],d=l[t];if(a&&d)for(var v=0;v<d.length;++v)d[v](r,n,o);return i&&(delete s[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},W=0,H=function(){return++W},U=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l(void 0,void 0,void 0,(function(){var t,r,n,o,i,a,u,c,l,f,d,p,h,g,w,O,E,P,T,j,k;return s(this,(function(s){switch(s.label){case 0:if(t=e[0],r=e[1],n=e[2],o=e[3],a=!!b((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,u=!1!==i.revalidate,c=!1!==i.rollbackOnError,l=i.optimisticData,f=L(r),d=f[0],p=f[2],!d)return[2];if(h=A.get(t),g=h[2],e.length<3)return[2,M(t,d,t.get(d),v,v,u,!0)];if(w=n,E=H(),g[d]=[E,0],P=!b(l),T=t.get(d),P&&(j=m(l)?l(T):l,t.set(d,j),M(t,d,j)),m(w))try{w=w(t.get(d))}catch(e){O=e}return w&&m(w.then)?[4,w.catch((function(e){O=e}))]:[3,2];case 1:if(w=s.sent(),E!==g[d][0]){if(O)throw O;return[2,w]}O&&P&&c&&(a=!0,w=T,t.set(d,T)),s.label=2;case 2:return a&&(O||(m(a)&&(w=a(w,T)),t.set(d,w)),t.set(p,y(t.get(p),{error:O}))),g[d][1]=H(),[4,M(t,d,w,O,v,u,!!a)];case 3:if(k=s.sent(),O)throw O;return[2,a?k:w]}}))}))},q=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},B=function(e,t){if(!A.has(e)){var r=y(x,t),n={},o=U.bind(v,e),i=d;if(A.set(e,[n,{},{},{},o]),!F){var a=r.initFocus(setTimeout.bind(v,q.bind(v,n,0))),u=r.initReconnect(setTimeout.bind(v,q.bind(v,n,1)));i=function(){a&&a(),u&&u(),A.delete(e)}}return[e,o,i]}return[e,A.get(e)[4]]},J=B(new Map),N=J[0],$=J[1],G=y({onLoadingSlow:d,onSuccess:d,onError:d,onErrorRetry:function(e,t,r,n,o){var i=r.errorRetryCount,a=o.retryCount,u=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!b(i)&&a>i||setTimeout(n,u,o)},onDiscarded:d,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:_?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:_?5e3:3e3,compare:function(e,t){return E(e)==E(t)},isPaused:function(){return!1},cache:N,mutate:$,fallback:{}},D),z=function(e,t){var r=y(e,t);if(t){var n=e.use,o=e.fallback,i=t.use,a=t.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=y(o,a))}return r},K=(0,u.createContext)({}),Q=function(e){return m(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},X=function(){return y(G,(0,u.useContext)(K))},Y=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},Z={dedupe:!0},ee=(p.defineProperty((function(e){var t=e.value,r=z((0,u.useContext)(K),t),n=t&&t.provider,o=(0,u.useState)((function(){return n?B(n(r.cache||N),t):v}))[0];return o&&(r.cache=o[0],r.mutate=o[1]),V((function(){return o?o[2]:v}),[]),(0,u.createElement)(K.Provider,y(e,{value:r}))}),"default",{value:G}),f=function(e,t,r){var n=r.cache,o=r.compare,i=r.fallbackData,a=r.suspense,c=r.revalidateOnMount,f=r.refreshInterval,d=r.refreshWhenHidden,p=r.refreshWhenOffline,w=A.get(n),O=w[0],E=w[1],P=w[2],T=w[3],j=L(e),k=j[0],R=j[1],S=j[2],C=(0,u.useRef)(!1),D=(0,u.useRef)(!1),x=(0,u.useRef)(k),I=(0,u.useRef)(t),_=(0,u.useRef)(r),W=function(){return _.current},q=function(){return W().isVisible()&&W().isOnline()},B=function(e){return n.set(S,y(n.get(S),e))},J=n.get(k),N=b(i)?r.fallback[k]:i,$=b(J)?N:J,G=n.get(S)||{},z=G.error,K=!C.current,Q=function(){return K&&!b(c)?c:!W().isPaused()&&(a?!b($)&&r.revalidateIfStale:b($)||r.revalidateIfStale)},X=!(!k||!t)&&(!!G.isValidating||K&&Q()),ee=function(e,t){var r=(0,u.useState)({})[1],n=(0,u.useRef)(e),o=(0,u.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,u.useCallback)((function(e){var i=!1,a=n.current;for(var u in e){var c=u;a[c]!==e[c]&&(a[c]=e[c],o.current[c]&&(i=!0))}i&&!t.current&&r({})}),[]);return V((function(){n.current=e})),[n,o.current,i]}({data:$,error:z,isValidating:X},D),te=ee[0],re=ee[1],ne=ee[2],oe=(0,u.useCallback)((function(e){return l(void 0,void 0,void 0,(function(){var t,i,a,u,c,l,f,d,p,y,h,g,w;return s(this,(function(s){switch(s.label){case 0:if(t=I.current,!k||!t||D.current||W().isPaused())return[2,!1];u=!0,c=e||{},l=!T[k]||!c.dedupe,f=function(){return!D.current&&k===x.current&&C.current},d=function(){var e=T[k];e&&e[1]===a&&delete T[k]},p={isValidating:!1},y=function(){B({isValidating:!1}),f()&&ne(p)},B({isValidating:!0}),ne({isValidating:!0}),s.label=1;case 1:return s.trys.push([1,3,,4]),l&&(M(n,k,te.current.data,te.current.error,!0),r.loadingTimeout&&!n.get(k)&&setTimeout((function(){u&&f()&&W().onLoadingSlow(k,r)}),r.loadingTimeout),T[k]=[t.apply(void 0,R),H()]),w=T[k],i=w[0],a=w[1],[4,i];case 2:return i=s.sent(),l&&setTimeout(d,r.dedupingInterval),T[k]&&T[k][1]===a?(B({error:v}),p.error=v,h=P[k],!b(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(y(),l&&f()&&W().onDiscarded(k),[2,!1]):(o(te.current.data,i)?p.data=te.current.data:p.data=i,o(n.get(k),i)||n.set(k,i),l&&f()&&W().onSuccess(i,k,r),[3,4])):(l&&f()&&W().onDiscarded(k),[2,!1]);case 3:return g=s.sent(),d(),W().isPaused()||(B({error:g}),p.error=g,l&&f()&&(W().onError(g,k,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||m(r.shouldRetryOnError)&&r.shouldRetryOnError(g))&&q()&&W().onErrorRetry(g,k,r,oe,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,y(),f()&&l&&M(n,k,p.data,p.error,!1),[2,!0]}}))}))}),[k]),ie=(0,u.useCallback)(U.bind(v,n,(function(){return x.current})),[]);if(V((function(){I.current=t,_.current=r})),V((function(){if(k){var e=k!==x.current,t=oe.bind(v,Z),r=0,n=Y(k,E,(function(e,t,r){ne(y({error:t,isValidating:r},o(te.current.data,e)?v:{data:e}))})),i=Y(k,O,(function(e){if(0==e){var n=Date.now();W().revalidateOnFocus&&n>r&&q()&&(r=n+W().focusThrottleInterval,t())}else if(1==e)W().revalidateOnReconnect&&q()&&t();else if(2==e)return oe()}));return D.current=!1,x.current=k,C.current=!0,e&&ne({data:$,error:z,isValidating:X}),Q()&&(b($)||F?t():(a=t,g()&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(a):setTimeout(a,1))),function(){D.current=!0,n(),i()}}var a}),[k,oe]),V((function(){var e;function t(){var t=m(f)?f($):f;t&&-1!==e&&(e=setTimeout(r,t))}function r(){te.current.error||!d&&!W().isVisible()||!p&&!W().isOnline()?t():oe(Z).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[f,d,p,oe]),(0,u.useDebugValue)($),a&&b($)&&k)throw I.current=t,_.current=r,D.current=!1,b(z)?oe(Z):z;return{mutate:ie,get data(){return re.data=!0,$},get error(){return re.error=!0,z},get isValidating(){return re.isValidating=!0,X}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=X(),n=Q(e),o=n[0],i=n[1],a=n[2],u=z(r,a),c=f,l=u.use;if(l)for(var s=l.length;s-- >0;)c=l[s](c);return c(o,i||u.fetcher,u)}),te=r(2221);function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ne(){return ne=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},ne.apply(this,arguments)}var oe=[{key:"name",header:"Form name"},{key:"actions",header:"Actions"}];const ie=function(e){var t=e.rows,r=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){re(e,t,r[t])}))}return e}({},e),r=null!=(r={actions:c().createElement(te.Link,{to:e.uuid},"Fill Form")})?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 t&&(null==t?void 0:t.length)?c().createElement(a.DataTable,{rows:r,headers:oe,isSortable:!0},(function(e){var t=e.rows,r=e.headers,n=e.getTableProps,o=e.getHeaderProps,i=e.getRowProps,u=e.onInputChange;return c().createElement(a.TableContainer,null,c().createElement("div",{style:{position:"relative",display:"flex",height:"3rem",justifyContent:"flex-end"}},c().createElement(a.TableToolbar,{style:{width:"20%",minWidth:"200px"}},c().createElement(a.TableToolbarContent,null,c().createElement(a.TableToolbarSearch,{onChange:u})))),c().createElement(a.Table,ne({},n()),c().createElement(a.TableHead,null,c().createElement(a.TableRow,null,r.map((function(e){return c().createElement(a.TableHeader,ne({},o({header:e})),e.header)})))),c().createElement(a.TableBody,null,null==t?void 0:t.map((function(e){return c().createElement(a.TableRow,ne({},i({row:e})),e.cells.map((function(e){return c().createElement(a.TableCell,{key:e.id},e.value)})))})))))})):c().createElement(a.DataTableSkeleton,null)};function ae(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function ue(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ae(i,n,o,a,u,"next",e)}function u(e){ae(i,n,o,a,u,"throw",e)}a(void 0)}))}}function ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(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){ce(e,t,r[t])}))}return e}var se="(uuid,name,display,encounterType:(uuid,name,viewPrivilege,editPrivilege),version,published,retired,resources:(uuid,name,dataType,valueReference))",fe="/ws/rest/v1/form?v=custom:".concat(se),de="/ws/rest/v1/form?v=custom:".concat(se,"&q=poc");function ve(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!0,r=t?fe:de;return ee([r,e],ue(o().mark((function e(){var t,n,a,u,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,i.openmrsFetch)(r);case 3:return a=e.sent,c=null!==(u=null===(t=a.data)||void 0===t||null===(n=t.results)||void 0===n?void 0:n.filter((function(e){return e.published&&!/component/i.test(e.name)})))&&void 0!==u?u:[],e.abrupt("return",c);case 7:case"end":return e.stop()}}),e)}))))}var pe=function(){var e=(0,i.useConfig)(),t=e.formCategories,r=e.formCategoriesToShow,n=function(e){if(e)return null==e?void 0:e.map((function(e){return t=le({},e),r=null!=(r={id:e.uuid})?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}))}(ve().data),o=r.map((function(e){var r=t.find((function(t){return t.name===e})),o=[];if(r&&n&&n.length){var i,a=null===(i=r.forms)||void 0===i?void 0:i.map((function(e){return e.formUUID}));o=n.filter((function(e){return a.includes(e.uuid)}))}return le({},{name:e,rows:o})}));return c().createElement("div",{style:{padding:"2rem"}},c().createElement("h3",{style:{marginBottom:"1.5rem"}},"Forms"),c().createElement(a.Tabs,{type:"container"},c().createElement(a.Tab,{label:"All Forms"},c().createElement(ie,{rows:n})),null==o?void 0:o.map((function(e){return c().createElement(a.Tab,{label:e.name},c().createElement(ie,{rows:e.rows}))}))))};const be=pe}}]);
|
package/dist/906.js.LICENSE.txt
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
-
purpose with or without fee is hereby granted.
|
|
11
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
12
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
13
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
14
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
16
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
17
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
18
|
-
***************************************************************************** */
|
|
19
|
-
|
|
20
|
-
/** @license React v16.13.1
|
|
21
|
-
* react-is.production.min.js
|
|
22
|
-
*
|
|
23
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
24
|
-
*
|
|
25
|
-
* This source code is licensed under the MIT license found in the
|
|
26
|
-
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/
|