@openmrs/esm-openconceptlab-app 3.0.1-pre.10 → 3.0.1-pre.17
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/.turbo/turbo-build.log +10 -10
- package/dist/168.js +2 -0
- package/dist/{645.js.LICENSE.txt → 168.js.LICENSE.txt} +0 -0
- package/dist/251.js +1 -0
- package/dist/574.js +1 -1
- package/dist/862.js +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-openconceptlab-app.js +1 -1
- package/dist/openmrs-esm-openconceptlab-app.js.buildmanifest.json +53 -53
- package/dist/openmrs-esm-openconceptlab-app.old +1 -1
- package/package.json +2 -2
- package/src/import/import.component.tsx +13 -3
- package/src/subscription/subscription.component.tsx +26 -3
- package/src/utils.ts +27 -0
- package/translations/en.json +3 -1
- package/dist/452.js +0 -1
- package/dist/645.js +0 -2
|
File without changes
|
package/dist/251.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([[251],{3749:(e,t,n)=>{n.r(t),n.d(t,{default:()=>xe});var r=n(6607),o=n(268),a=n.n(o),i=n(4924),c=n(9857),s=n(5047),l=n.n(s),u=n(906),p=n(9140);function d(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,c,"next",e)}function c(e){d(a,r,o,i,c,"throw",e)}i(void 0)}))}}function b(e,t){return f.apply(this,arguments)}function f(){return(f=m(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,p.Z)(t.uuid)?"/ws/rest/v1/openconceptlab/subscription":"/ws/rest/v1/openconceptlab/subscription/".concat(t.uuid),e.abrupt("return",(0,u.openmrsFetch)(r,{method:"POST",body:t,headers:{"Content-Type":"application/json"},signal:null==n?void 0:n.signal}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e,t){return g.apply(this,arguments)}function g(){return(g=m(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="/ws/rest/v1/openconceptlab/subscription/".concat(t.uuid),e.abrupt("return",(0,u.openmrsFetch)(r,{method:"DELETE",signal:null==n?void 0:n.signal}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var h=n(6062),v=n.n(h),y=n(4036),E=n.n(y),w=n(6793),S=n.n(w),k=n(7892),N=n.n(k),x=n(1173),T=n.n(x),C=n(2464),O=n.n(C),P=n(7542),A={};A.styleTagTransform=O(),A.setAttributes=N(),A.insert=S().bind(null,"head"),A.domAPI=E(),A.insertStyleElement=T(),v()(P.Z,A);const D=P.Z&&P.Z.locals?P.Z.locals:void 0;var I=function(e){var t,n,r;e.endsWith("/")&&(e=e.substring(0,e.lastIndexOf("/")));try{n=new URL(e)}catch(e){return!1}return 5==(null!==(r=null===(t=n.pathname.match(/\//g))||void 0===t?void 0:t.length)&&void 0!==r?r:0)};function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function Z(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){j(a,r,o,i,c,"next",e)}function c(e){j(a,r,o,i,c,"throw",e)}i(void 0)}))}}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){z(e,t,n[t])}))}return e}function L(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function B(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 r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||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}}(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 R=function(){var e=(0,i.useTranslation)().t,t=(0,c.kY)().mutate,n=B((0,o.useState)(""),2),s=n[0],p=n[1],d=B((0,o.useState)(""),2),m=d[0],f=d[1],g=B((0,o.useState)(!1),2),h=g[0],v=g[1],y=B((0,o.useState)("FULL"),2),E=y[0],w=y[1],S=B((0,o.useState)(!1),2),k=S[0],N=S[1],x=function(){var e,t=(0,c.ZP)("/ws/rest/v1/openconceptlab/subscription?v=full",u.openmrsFetch),n=t.data,r=t.error,o=t.isValidating;return{data:null==n||null===(e=n.data)||void 0===e?void 0:e.results[0],isLoading:!n&&!r,isError:r,isValidating:o}}(),T=x.data,C=x.isLoading,O=x.isError;(0,o.useEffect)((function(){C||O||(p((null==T?void 0:T.url)||""),f((null==T?void 0:T.token)||""),v((null==T?void 0:T.subscribedToSnapshot)||!1),w((null==T?void 0:T.validationType)||"FULL"),N(!!T&&I(T.url)))}),[C,O,T]);var P,A=(0,o.useCallback)((function(e){p(e.target.value),I(e.target.value)?(N(!0),v(!1)):N(!1)}),[]),F=(0,o.useCallback)((function(e){f(e.target.value)}),[]),j=(0,o.useCallback)((function(e,t){var n=t.checked;t.id,w(n?"NONE":"FULL")}),[]),z=(0,o.useCallback)((function(e,t){var n=t.checked;t.id,v(n)}),[]),R=(0,o.useCallback)((P=Z(l().mark((function n(r){var o,a,i;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.preventDefault(),r.stopPropagation(),!k||!h){n.next=5;break}return(0,u.showNotification)({kind:"error",description:e("snapshotDisabledError","You cannot subscribe to a SNAPSHOT if you've provided the collection version")}),n.abrupt("return");case 5:return o=new AbortController,a=L(H({},T),{url:s,token:m,validationType:E,subscribedToSnapshot:h}),t("/ws/rest/v1/openconceptlab/subscription?v=full",a,!1),n.next=10,b(a,o);case 10:return i=n.sent,t("/ws/rest/v1/openconceptlab/subscription?v=full"),i.ok?(0,u.showNotification)({kind:"success",description:e(201===i.status?"subscriptionCreated":"subscriptionUpdated",201===i.status?"Subscription created successfully":"Subscription updated successfully")}):(0,u.showNotification)({title:e("errorSavingSubscription","Error occured while saving the subscription"),kind:"error",critical:!0,description:JSON.stringify(i.data)}),n.abrupt("return",(function(){return o.abort()}));case 14:case"end":return n.stop()}}),n)}))),function(e){return P.apply(this,arguments)}),[s,m,E,h,k,T,e,t]),U=(0,o.useCallback)((function(){p((null==T?void 0:T.url)||""),f((null==T?void 0:T.token)||""),v((null==T?void 0:T.subscribedToSnapshot)||!1),w((null==T?void 0:T.validationType)||"FULL"),N(!!T&&I(T.url)),(0,u.showNotification)({kind:"info",description:e("cancelledChanges","Cancelled changes successfully")})}),[T,e]),M=(0,o.useCallback)(function(){var n=Z(l().mark((function n(r){var o,a;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r.preventDefault(),r.stopPropagation(),o=new AbortController,n.next=5,_(T,o);case 5:return a=n.sent,t("/ws/rest/v1/openconceptlab/subscription?v=full"),204===a.status?(p(""),f(""),v(!1),w("FULL"),N(!1),(0,u.showNotification)({kind:"success",description:e("subscriptionDeleted","Successfully unsubscribed")})):(0,u.showNotification)({title:e("errorDeletingSubscription","Error occured while deleting the subscription"),kind:"error",critical:!0,description:JSON.stringify(a.data)}),n.abrupt("return",(function(){return o.abort()}));case 9:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),[T,e,t]);return C?a().createElement(r.rjZ,{className:D.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement(r.l09,null,a().createElement(r.N2B,{className:D.productiveHeading03}),a().createElement(r.Kqy,{gap:5},a().createElement(r.znL,null),a().createElement(r.znL,null),a().createElement(r.cwH,{legendText:a().createElement(r.N2B,{width:"75px"}),className:D.formGroup},a().createElement(r.jJq,null),a().createElement(r.jJq,null))),a().createElement(r.Db,null),a().createElement(r.Db,null)),a().createElement(r.l09,{className:D.unsubscribeForm},a().createElement(r.N2B,{className:D.productiveHeading03}),a().createElement(r.N2B,{className:D.unsubscribeText}),a().createElement(r.Db,null)))):(O&&(0,u.showNotification)({kind:"error",description:e("subscriptionError","Error occured while fetching the subscription")}),a().createElement(r.rjZ,{className:D.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement(r.l09,{onSubmit:R},a().createElement("h3",{className:D.productiveHeading03},e("setupSubscription","Setup Subscription")),a().createElement(r.Kqy,{gap:5},a().createElement(r.oil,{id:"subscriptionUrl",type:"url",labelText:e("subscriptionUrl","Subscription URL"),placeholder:"https://api.openconceptlab.org/orgs/organization-name/collections/dictionary-name",value:s,onChange:A,light:!0,required:!0}),a().createElement(r.oil,{id:"apiToken",type:"password",placeholder:"••••••••••••••••••••••••••••••••••••••••••••••••",labelText:e("apiToken","Token"),value:m,onChange:F,light:!0,required:!0}),a().createElement(r.cwH,{legendText:e("advancedOptions","Advanced Options"),className:D.formGroup},a().createElement(r.XZJ,{checked:h,onChange:z,labelText:e("subscribeToSnapshotText","Subscribe to SNAPSHOT versions (not recommended)"),id:"isSubscribedToSnapshot",disabled:k}),a().createElement(r.XZJ,{checked:"NONE"===E,onChange:j,labelText:e("disableValidationText","Disable validation (should be used with care for well curated collections or sources)"),id:"isValidationDisabled"}))),a().createElement(r.zxk,{kind:"secondary",onClick:U},e("cancelButton","Cancel changes")),a().createElement(r.zxk,{kind:"primary",type:"submit"},e("subscribeButton","Save changes"))),a().createElement(r.l09,{onSubmit:M,className:D.unsubscribeForm},a().createElement("h3",{className:D.productiveHeading03},e("unsubscribe","Unsubscribe")),a().createElement("p",{className:D.unsubscribeText},e("unsubscribeInfo","If you unsubscribe, no concepts will be deleted nor changed. All information about subscription will be deleted from your system.")),a().createElement(r.zxk,{kind:"danger",type:"submit",disabled:!T},e("unsubscribeButton","Unsubscribe"))))))};var U=n(302),M={};M.styleTagTransform=O(),M.setAttributes=N(),M.insert=S().bind(null,"head"),M.domAPI=E(),M.insertStyleElement=T(),v()(U.Z,M);const G=U.Z&&U.Z.locals?U.Z.locals:void 0;var K=n(3111),V={};V.styleTagTransform=O(),V.setAttributes=N(),V.insert=S().bind(null,"head"),V.domAPI=E(),V.insertStyleElement=T(),v()(K.Z,V);const J=K.Z&&K.Z.locals?K.Z.locals:void 0;function X(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function q(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){X(a,r,o,i,c,"next",e)}function c(e){X(a,r,o,i,c,"throw",e)}i(void 0)}))}}function Y(e){return W.apply(this,arguments)}function W(){return(W=q(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.openmrsFetch)("/ws/rest/v1/openconceptlab/import",{method:"POST",body:{},headers:{"Content-Type":"application/json"},signal:null==t?void 0:t.signal}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $(e,t){return Q.apply(this,arguments)}function Q(){return(Q=q(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=new FormData).append("file",t),e.abrupt("return",(0,u.openmrsFetch)("/ws/rest/v1/openconceptlab/import",{method:"POST",body:r,signal:null==n?void 0:n.signal}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function te(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function ne(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){te(a,r,o,i,c,"next",e)}function c(e){te(a,r,o,i,c,"throw",e)}i(void 0)}))}}function re(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 r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ee(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)?ee(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 oe=function(){var e=(0,i.useTranslation)().t,t=re((0,o.useState)(!1),2),n=t[0],s=t[1],p=re((0,o.useState)(),2),d=p[0],m=p[1],b=re((0,o.useState)(!1),2),f=b[0],_=b[1],g=function(){var e,t=(0,c.ZP)("/ws/rest/v1/openconceptlab/subscription?v=full",u.openmrsFetch),n=t.data,r=t.error,o=t.isValidating;return{data:null==n||null===(e=n.data)||void 0===e?void 0:e.results[0],isLoading:!n&&!r,isError:r,isValidating:o}}(),h=g.data,v=g.isLoading,y=g.isError;(0,o.useEffect)((function(){v||y||s(!!h)}),[v,y,h]);var E,w=(0,o.useCallback)((function(t,n){var r=n.addedFiles[0];"application/zip"!==r.type?(0,u.showNotification)({kind:"error",description:e("fileFormatError","Only .zip files are allowed")}):m(r)}),[e]),S=(0,o.useCallback)((function(){m(null)}),[]),k=(0,o.useCallback)((E=ne(l().mark((function t(r){var o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.preventDefault(),r.stopPropagation(),n){t.next=5;break}return(0,u.showNotification)({kind:"error",description:e("noSubscriptionError","No saved subscription")}),t.abrupt("return");case 5:return o=new AbortController,t.next=8,Y(o);case 8:201===t.sent.status?(0,u.showNotification)({kind:"success",description:e("importSuccess","Import started successfully")}):(0,u.showNotification)({kind:"error",description:e("importFailed","Import failed")});case 10:case"end":return t.stop()}}),t)}))),function(e){return E.apply(this,arguments)}),[n,e]),N=(0,o.useCallback)(function(){var t=ne(l().mark((function t(n){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_(!0),n.preventDefault(),n.stopPropagation(),d){t.next=7;break}return _(!1),(0,u.showNotification)({kind:"error",description:e("noFileSelected","No file selected")}),t.abrupt("return");case 7:return r=new AbortController,t.next=10,$(d,r);case 10:201===t.sent.status?(m(null),_(!1),(0,u.showNotification)({kind:"success",description:e("importSuccess","Import started successfully")})):(_(!1),(0,u.showNotification)({kind:"error",description:e("importFailed","Import failed")}));case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[d,e]);return v?a().createElement(r.rjZ,{className:J.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement(r.l09,null,a().createElement(r.N2B,{className:J.productiveHeading03,heading:!0}),a().createElement(r.N2B,{className:J.formText,paragraph:!0,lineCount:2}),a().createElement(r.Db,null)),a().createElement(r.l09,{className:J.form},a().createElement(r.N2B,{className:J.productiveHeading03,heading:!0}),a().createElement(r.N2B,{className:J.formText}),a().createElement(r.rhD,{style:{marginBottom:"1.5rem"}}),a().createElement(r.Db,null)))):(y&&(0,u.showNotification)({kind:"error",description:e("subscriptionError","Error occured while fetching the subscription")}),a().createElement(r.rjZ,{className:J.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement(r.l09,{onSubmit:k},a().createElement("h3",{className:J.productiveHeading03},e("importConcepts","Import Concepts")),a().createElement("p",{className:J.formText},e("importInstructions","Avoid importing during data entry hours, because the operation may significantly slow down the system. You can either use the subscription or a zip file to import concepts.")),a().createElement(r.zxk,{kind:"primary",type:"submit",disabled:!n},e("importFromSubscription","Import from Subscription"))),a().createElement(r.l09,{className:J.form,onSubmit:N},a().createElement("h3",{className:J.productiveHeading03},e("importFromFileHeading","Import from file (Offline)")),a().createElement("p",{className:J.formText},e("importFromFileInfo","You can import data without setting up a subscription by using this option.")),d?a().createElement(r.Py3,{key:d.name,name:d.name,size:"default",status:"edit",iconDescription:e("fileAdded","File Added"),onDelete:S,style:{backgroundColor:"#e0e0e0"}}):a().createElement(r.awp,{accept:["application/zip"],multiple:!0,labelText:e("importFromFileDragInfo","Drag and drop file here or click to upload"),onAddFiles:w,style:{marginBottom:"1.5rem"}}),a().createElement(r.Kqy,{gap:6,orientation:"horizontal"},a().createElement(r.zxk,{kind:"primary",type:"submit"},e("importFromFile","Import from file")),f&&a().createElement(r.lSo,{description:e("uploading","Uploading...")}))))))};var ae=n(2258),ie={};ie.styleTagTransform=O(),ie.setAttributes=N(),ie.insert=S().bind(null,"head"),ie.domAPI=E(),ie.insertStyleElement=T(),v()(ae.Z,ie);const ce=ae.Z&&ae.Z.locals?ae.Z.locals:void 0;var se=n(385),le={};le.styleTagTransform=O(),le.setAttributes=N(),le.insert=S().bind(null,"head"),le.domAPI=E(),le.insertStyleElement=T(),v()(se.Z,le);const ue=se.Z&&se.Z.locals?se.Z.locals:void 0;function pe(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function de(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){pe(a,r,o,i,c,"next",e)}function c(e){pe(a,r,o,i,c,"throw",e)}i(void 0)}))}}function me(e,t){return be.apply(this,arguments)}function be(){return(be=de(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="/ws/rest/v1/openconceptlab/import/".concat(t,"/item?state=ERROR&v=full"),e.abrupt("return",(0,u.openmrsFetch)(r,{method:"GET",signal:null==n?void 0:n.signal}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var fe=n(8850),_e={};_e.styleTagTransform=O(),_e.setAttributes=N(),_e.insert=S().bind(null,"head"),_e.domAPI=E(),_e.insertStyleElement=T(),v()(fe.Z,_e);const ge=fe.Z&&fe.Z.locals?fe.Z.locals:void 0;function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ve(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function ye(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 r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return he(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)?he(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 Ee=function(e){var t,n,c=e.importUuid,s=(0,i.useTranslation)().t,p=ye((0,o.useState)(),2),d=p[0],m=p[1],b=ye((0,o.useState)(5),2),f=b[0],_=b[1],g=ye((0,o.useState)([]),2),h=g[0],v=g[1],y=(0,u.usePagination)(h,f),E=y.results,w=y.currentPage,S=y.goTo,k=(0,o.useCallback)((t=l().mark((function e(t){var n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),n=new AbortController,e.next=4,me(t,n);case 4:return(r=e.sent).ok?v(r.data.results):(0,u.showNotification)({title:s("importItemsFetchError","Error occured while fetching the import items"),kind:"error",critical:!0,description:JSON.stringify(r.data)}),m(!1),e.abrupt("return",(function(){return n.abort()}));case 8:case"end":return e.stop()}}),e)})),n=function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(e){ve(a,r,o,i,c,"next",e)}function c(e){ve(a,r,o,i,c,"throw",e)}i(void 0)}))},function(e){return n.apply(this,arguments)}),[s]);if((0,o.useEffect)((function(){k(c)}),[k,c]),d)return a().createElement("div",null,a().createElement(r.gqd,{showHeader:!1,showToolbar:!1,columnCount:2}),a().createElement(r.F3O,null));var N=[{header:s("conceptOrMapping","Concept/Mapping"),key:"uuid"},{header:s("message","Message"),key:"errorMessage"}];return!d&&a().createElement("div",null,a().createElement(r.iA_,{size:"sm",className:ge.tableBordered},a().createElement(r.ssF,null,a().createElement(r.SCH,{className:ge.tableHeaderRow},N.map((function(e,t){return a().createElement(r.xDH,{key:t,isSortable:!0},e.header)})))),a().createElement(r.RMI,null,null==E?void 0:E.map((function(e){return a().createElement(o.Fragment,{key:e.uuid},a().createElement(r.SCH,{className:ge.tableDataRow},a().createElement(r.pj1,null,a().createElement(r.rUS,{href:e.versionUrl},e.type," ",e.uuid)),a().createElement(r.pj1,null,e.errorMessage)))})))),a().createElement(r.tlE,{className:ge.pagination,size:"sm",page:w,pageSize:f,pageSizes:[5,10,20,50,100],totalItems:null==h?void 0:h.length,onChange:function(e){var t=e.page,n=e.pageSize;S(t),_(n)}}))},we=function(e){var t=e.selectedImportObject,n=(0,i.useTranslation)().t;return a().createElement("div",null,a().createElement("span",{className:ue.heading01},n("startedOn","Started on")," "),a().createElement("span",{className:"body"},(0,u.formatDatetime)(new Date(t.localDateStarted))),a().createElement("br",null),a().createElement("span",{className:ue.heading01},n("completedOn","Completed on")," "),a().createElement("span",{className:"body"},(0,u.formatDatetime)(new Date(t.localDateStopped))),a().createElement("br",null),a().createElement("span",{className:ue.heading01},n("duration","Duration")," "),a().createElement("span",{className:"body"},t.importTime),a().createElement("br",null),a().createElement("br",null),a().createElement("span",{className:ue.heading01},n("result","Result:")," "),a().createElement("br",null),a().createElement("div",{className:"body ".concat(ue.indentedContent)},a().createElement("span",null,t.upToDateItemsCount," ",n("conceptsUpToDate","concepts up to date")),a().createElement("br",null),a().createElement("span",null,t.addedItemsCount," ",n("conceptsAdded","concepts added")),a().createElement("br",null),a().createElement("span",null,t.updatedItemsCount," ",n("conceptsUpdated","concepts updated")),a().createElement("br",null),a().createElement("span",null,t.retiredItemsCount," ",n("conceptsRetired","concepts retired")),a().createElement("br",null),a().createElement("span",null,t.errorItemsCount," ",n("errorsFound","errors found")),a().createElement("br",null),a().createElement("span",null,t.ignoredErrorsCount," ",n("errorsIgnored","errors ignored")),a().createElement("br",null)),a().createElement("br",null),0!=t.errorItemsCount&&a().createElement(Ee,{importUuid:t.uuid}))};function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(this,arguments)}const Ne=function(){var e,t,n=(0,i.useTranslation)().t,s=(e=(0,o.useState)(10),t=2,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 r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Se(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)?Se(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.")}()),l=s[0],p=s[1],d=function(){var e,t=(0,c.ZP)("/ws/rest/v1/openconceptlab/import?v=full",u.openmrsFetch),n=t.data,r=t.error,o=t.isValidating;return{data:null==n||null===(e=n.data)||void 0===e?void 0:e.results,isLoading:!n&&!r,isError:r,isValidating:o}}(),m=d.data,b=d.isLoading,f=d.isError,_=(0,u.usePagination)(m,l),g=_.results,h=_.currentPage,v=_.goTo;if(b)return a().createElement(r.rjZ,{className:ce.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement(r.N2B,{className:ce.productiveHeading03}),a().createElement(r.gqd,{showHeader:!1,showToolbar:!1,rowCount:10,columnCount:3}),a().createElement(r.F3O,null)));f&&(0,u.showNotification)({kind:"error",description:n("previousImportsFetchError","Error occured while fetching the imports")});var y=[{header:n("dateAndTime","Date and Time"),key:"localDateStarted"},{header:n("duration","Duration"),key:"importTime"},{header:n("status","Status"),key:"status"}],E=null==g?void 0:g.map((function(e){return{id:e.uuid,localDateStarted:(0,u.formatDatetime)(new Date(e.localDateStarted)),importTime:e.importTime,status:e.status}}));return!b&&!f&&a().createElement(r.rjZ,{className:ce.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement("h3",{className:ce.productiveHeading03},n("previousImports","Previous Imports")),a().createElement(r.wQF,{rows:E,headers:y,size:"sm"},(function(e){var t=e.rows,n=e.headers,i=e.getHeaderProps,c=e.getRowProps,s=e.getTableProps;return a().createElement(r.iA_,ke({},s(),{className:ce.tableBordered}),a().createElement(r.ssF,null,a().createElement(r.SCH,null,a().createElement(r.MOD,null),n.map((function(e,t){return a().createElement(r.xDH,ke({key:t},i({header:e})),e.header)})))),a().createElement(r.RMI,null,t.map((function(e){return a().createElement(o.Fragment,{key:e.id},a().createElement(r.RcE,ke({},c({row:e}),{className:ce.tableRow}),e.cells.map((function(e){return a().createElement(r.pj1,{key:e.id},e.value)}))),e.isExpanded&&a().createElement(r.WdL,{colSpan:n.length+1,className:ce.tableExpandedRow},a().createElement(we,{selectedImportObject:m.find((function(t){return t.uuid===e.id}))})))}))))})),a().createElement(r.tlE,{className:ce.pagination,size:"sm",page:h,pageSize:l,pageSizes:[10,20,50,100],totalItems:m.length,onChange:function(e){var t=e.page,n=e.pageSize;v(t),p(n)}})))},xe=function(){var e=(0,i.useTranslation)().t;return a().createElement(c.J$,null,a().createElement("main",{className:"omrs-main-content ".concat(G.main)},a().createElement("h3",{className:G.moduleHeader},e("moduleTitle","OCL Subscription Module")),a().createElement(r.mQc,null,a().createElement(r.tdY,{className:G.tabList,contained:!0},a().createElement(r.OK9,null,e("subscription","Subscription")," "),a().createElement(r.OK9,null,e("import","Import")," "),a().createElement(r.OK9,null,e("previousImports","Previous Imports")," ")),a().createElement(r.nPR,null,a().createElement(r.x45,{className:G.tabPanel},a().createElement(R,null)),a().createElement(r.x45,{className:G.tabPanel},a().createElement(oe,null)),a().createElement(r.x45,{className:G.tabPanel},a().createElement(Ne,null))))))}},3111:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__import-component__grid___5wW0H{margin-left:0;margin-right:0;padding-left:0;padding-right:0}.-esm-openconceptlab__import-component__productiveHeading03___m6cC7{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0);margin-bottom:.5rem}.-esm-openconceptlab__import-component__form___BAtOz{margin-top:2rem}.-esm-openconceptlab__import-component__formText___-LFNS{padding-bottom:1rem}.-esm-openconceptlab__import-component__fileUploaderDropContainer___u9wb\\+{margin-bottom:1.5rem}",""]),o.locals={grid:"-esm-openconceptlab__import-component__grid___5wW0H",productiveHeading03:"-esm-openconceptlab__import-component__productiveHeading03___m6cC7",form:"-esm-openconceptlab__import-component__form___BAtOz",formText:"-esm-openconceptlab__import-component__formText___-LFNS",fileUploaderDropContainer:"-esm-openconceptlab__import-component__fileUploaderDropContainer___u9wb+"};const a=o},8850:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__import-items-component__pagination___UFodW{font-size:var(--cds-body-short-01-font-size, 0.875rem);font-weight:var(--cds-body-short-01-font-weight, 400);line-height:var(--cds-body-short-01-line-height, 1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing, 0.16px);background-color:#fff;color:#525252;border:1px solid #e0e0e0;display:flex}.-esm-openconceptlab__import-items-component__tableBordered___agwp-{border:1px solid #e0e0e0}.-esm-openconceptlab__import-items-component__tableDataRow___BdXBZ>td{padding-left:1rem !important;background-color:#fff !important}.-esm-openconceptlab__import-items-component__tableHeaderRow___rp03z>th{background-color:#e0e0e0 !important}",""]),o.locals={pagination:"-esm-openconceptlab__import-items-component__pagination___UFodW",tableBordered:"-esm-openconceptlab__import-items-component__tableBordered___agwp-",tableDataRow:"-esm-openconceptlab__import-items-component__tableDataRow___BdXBZ",tableHeaderRow:"-esm-openconceptlab__import-items-component__tableHeaderRow___rp03z"};const a=o},385:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__import-overview-component__heading01___wV6-M{font-size:var(--cds-heading-01-font-size, 0.875rem);font-weight:var(--cds-heading-01-font-weight, 600);line-height:var(--cds-heading-01-line-height, 1.42857);letter-spacing:var(--cds-heading-01-letter-spacing, 0.16px)}.-esm-openconceptlab__import-overview-component__indentedContent___kMG5X{margin-left:2rem}",""]),o.locals={heading01:"-esm-openconceptlab__import-overview-component__heading01___wV6-M",indentedContent:"-esm-openconceptlab__import-overview-component__indentedContent___kMG5X"};const a=o},2258:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__previous-imports-component__grid___VG\\+Rw{margin-left:0;margin-right:0;padding-left:0;padding-right:0}.-esm-openconceptlab__previous-imports-component__productiveHeading03___-O6sL{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0);margin-bottom:.5rem}.-esm-openconceptlab__previous-imports-component__pagination___JXNSt{font-size:var(--cds-body-short-01-font-size, 0.875rem);font-weight:var(--cds-body-short-01-font-weight, 400);line-height:var(--cds-body-short-01-line-height, 1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing, 0.16px);background-color:#fff;color:#525252;border:1px solid #e0e0e0;display:flex}.-esm-openconceptlab__previous-imports-component__tableBordered___440s3{border:1px solid #e0e0e0}.-esm-openconceptlab__previous-imports-component__tableRow___tM2aj>td{background-color:#fff;border-bottom:1px solid #e0e0e0 !important}.-esm-openconceptlab__previous-imports-component__tableExpandedRow___fQwKD>td{padding-left:3rem !important;padding-right:3rem;padding-top:1rem;padding-bottom:1rem}",""]),o.locals={grid:"-esm-openconceptlab__previous-imports-component__grid___VG+Rw",productiveHeading03:"-esm-openconceptlab__previous-imports-component__productiveHeading03___-O6sL",pagination:"-esm-openconceptlab__previous-imports-component__pagination___JXNSt",tableBordered:"-esm-openconceptlab__previous-imports-component__tableBordered___440s3",tableRow:"-esm-openconceptlab__previous-imports-component__tableRow___tM2aj",tableExpandedRow:"-esm-openconceptlab__previous-imports-component__tableExpandedRow___fQwKD"};const a=o},302:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__root-component__main___G0\\+lN{background-color:#fff}.-esm-openconceptlab__root-component__moduleHeader___yB-PY{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0);padding-left:1rem;padding-top:1rem;padding-bottom:1rem}.-esm-openconceptlab__root-component__tabList___aXyg4{padding:0 1rem}.-esm-openconceptlab__root-component__tabPanel___2e0wL{height:100%;background-color:#f4f4f4}",""]),o.locals={main:"-esm-openconceptlab__root-component__main___G0+lN",moduleHeader:"-esm-openconceptlab__root-component__moduleHeader___yB-PY",tabList:"-esm-openconceptlab__root-component__tabList___aXyg4",tabPanel:"-esm-openconceptlab__root-component__tabPanel___2e0wL"};const a=o},7542:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__subscription-component__grid___Kwugy{margin-left:0;margin-right:0;padding-left:0;padding-right:0}.-esm-openconceptlab__subscription-component__productiveHeading03___xgZur{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0);margin-bottom:.5rem}.-esm-openconceptlab__subscription-component__formGroup___GmK5h{margin-bottom:1rem}.-esm-openconceptlab__subscription-component__unsubscribeText___B9jCa{padding-bottom:1rem}.-esm-openconceptlab__subscription-component__unsubscribeForm___dMi0v{margin-top:1rem}",""]),o.locals={grid:"-esm-openconceptlab__subscription-component__grid___Kwugy",productiveHeading03:"-esm-openconceptlab__subscription-component__productiveHeading03___xgZur",formGroup:"-esm-openconceptlab__subscription-component__formGroup___GmK5h",unsubscribeText:"-esm-openconceptlab__subscription-component__unsubscribeText___B9jCa",unsubscribeForm:"-esm-openconceptlab__subscription-component__unsubscribeForm___dMi0v"};const a=o}}]);
|
package/dist/574.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"advancedOptions":"Advanced Options","apiToken":"Token","cancelButton":"Cancel changes","cancelledChanges":"Cancelled changes successfully","completedOn":"Completed on","conceptOrMapping":"Concept/Mapping","conceptsAdded":"concepts added","conceptsRetired":"concepts retired","conceptsUpdated":"concepts updated","conceptsUpToDate":"concepts up to date","dateAndTime":"Date and Time","disableValidationText":"Disable validation (should be used with care for well curated collections or sources)","duration":"Duration","errorDeletingSubscription":"Error occured while deleting the subscription","errorSavingSubscription":"Error occured while saving the subscription","errorsFound":"errors found","errorsIgnored":"errors ignored","fileAdded":"File Added","fileFormatError":"Only .zip files are allowed","import":"Import","importConcepts":"Import Concepts","importFailed":"Import failed","importFromFile":"Import from file","importFromFileDragInfo":"Drag and drop file here or click to upload","importFromFileHeading":"Import from file (Offline)","importFromFileInfo":"You can import data without setting up a subscription by using this option.","importFromSubscription":"Import from Subscription","importInstructions":"Avoid importing during data entry hours, because the operation may significantly slow down the system. You can either use the subscription or a zip file to import concepts.","importItemsFetchError":"Error occured while fetching the import items","importSuccess":"Import started successfully","message":"Message","moduleTitle":"OCL Subscription Module","noFileSelected":"No file selected","noSubscriptionError":"No saved subscription","previousImports":"Previous Imports","previousImportsFetchError":"Error occured while fetching the imports","result":"Result:","setupSubscription":"Setup Subscription","startedOn":"Started on","status":"Status","subscribeButton":"Save changes","subscribeToSnapshotText":"Subscribe to SNAPSHOT versions (not recommended)","subscription":"Subscription","subscriptionDeleted":"Successfully unsubscribed","subscriptionError":"Error occured while fetching the subscription","subscriptionUrl":"Subscription URL","unsubscribe":"Unsubscribe","unsubscribeButton":"Unsubscribe","unsubscribeInfo":"If you unsubscribe, no concepts will be deleted nor changed. All information about subscription will be deleted from your system."}')}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"advancedOptions":"Advanced Options","apiToken":"Token","cancelButton":"Cancel changes","cancelledChanges":"Cancelled changes successfully","completedOn":"Completed on","conceptOrMapping":"Concept/Mapping","conceptsAdded":"concepts added","conceptsRetired":"concepts retired","conceptsUpdated":"concepts updated","conceptsUpToDate":"concepts up to date","dateAndTime":"Date and Time","disableValidationText":"Disable validation (should be used with care for well curated collections or sources)","duration":"Duration","errorDeletingSubscription":"Error occured while deleting the subscription","errorSavingSubscription":"Error occured while saving the subscription","errorsFound":"errors found","errorsIgnored":"errors ignored","fileAdded":"File Added","fileFormatError":"Only .zip files are allowed","import":"Import","importConcepts":"Import Concepts","importFailed":"Import failed","importFromFile":"Import from file","importFromFileDragInfo":"Drag and drop file here or click to upload","importFromFileHeading":"Import from file (Offline)","importFromFileInfo":"You can import data without setting up a subscription by using this option.","importFromSubscription":"Import from Subscription","importInstructions":"Avoid importing during data entry hours, because the operation may significantly slow down the system. You can either use the subscription or a zip file to import concepts.","importItemsFetchError":"Error occured while fetching the import items","importSuccess":"Import started successfully","message":"Message","moduleTitle":"OCL Subscription Module","noFileSelected":"No file selected","noSubscriptionError":"No saved subscription","previousImports":"Previous Imports","previousImportsFetchError":"Error occured while fetching the imports","result":"Result:","setupSubscription":"Setup Subscription","snapshotDisabledError":"You cannot subscribe to a SNAPSHOT if you\'ve provided the collection version","startedOn":"Started on","status":"Status","subscribeButton":"Save changes","subscribeToSnapshotText":"Subscribe to SNAPSHOT versions (not recommended)","subscription":"Subscription","subscriptionDeleted":"Successfully unsubscribed","subscriptionError":"Error occured while fetching the subscription","subscriptionUrl":"Subscription URL","unsubscribe":"Unsubscribe","unsubscribeButton":"Unsubscribe","unsubscribeInfo":"If you unsubscribe, no concepts will be deleted nor changed. All information about subscription will be deleted from your system.","uploading":"Uploading..."}')}}]);
|
package/dist/862.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([[862],{4862:(e,n,o)=>{"use strict";o.r(n),o.d(n,{backendDependencies:()=>a,importTranslation:()=>t,setupOpenMRS:()=>c});var r=o(906),p={},t=o(3979),a={openconceptlab:"^1.2.0","webservices.rest":"^2.2.0"};function c(){var e="@openmrs/esm-openconceptlab-app",n={featureName:"openconceptlab",moduleName:e};return(0,r.defineConfigSchema)(e,p),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([o.e(
|
|
1
|
+
(self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([[862],{4862:(e,n,o)=>{"use strict";o.r(n),o.d(n,{backendDependencies:()=>a,importTranslation:()=>t,setupOpenMRS:()=>c});var r=o(906),p={},t=o(3979),a={openconceptlab:"^1.2.0","webservices.rest":"^2.2.0"};function c(){var e="@openmrs/esm-openconceptlab-app",n={featureName:"openconceptlab",moduleName:e};return(0,r.defineConfigSchema)(e,p),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([o.e(168),o.e(268),o.e(251)]).then(o.bind(o,3749))}),n),route:"ocl"}]}}},3979:(e,n,o)=>{var r={"./en.json":[3574,574]};function p(e){if(!o.o(r,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[e],p=n[0];return o.e(n[1]).then((()=>o(p)))}p.keys=()=>Object.keys(r),p.id=3979,e.exports=p}}]);
|
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e,r,t={4862:(e,r,t)=>{"use strict";t(906),t(3979)},3979:(e,r,t)=>{var n={"./en.json":[3574,574]};function o(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(n),o.id=3979,e.exports=o}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,o.c=n,o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-openconceptlab-app:",o.l=(t,n,a,i)=>{if(e[t])e[t].push(n);else{var l,u;if(void 0!==a)for(var s=document.getElementsByTagName("script"),p=0;p<s.length;p++){var f=s[p];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+a){l=f;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",r+a),l.src=t),e[t]=[n];var c=(r,n)=>{l.onerror=l.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=c.bind(null,l.onerror),l.onload=c.bind(null,l.onload),u&&document.head.appendChild(l)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{o.S={};var e={},r={};o.I=(t,n)=>{n||(n=[]);var a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];o.o(o.S,t)||(o.S[t]={});var i=o.S[t],l="@openmrs/esm-openconceptlab-app",u=(e,r,t,n)=>{var o=i[e]=i[e]||{},a=o[r];(!a||!a.loaded&&(!n!=!a.eager?n:l>a.from))&&(o[r]={get:t,from:l,eager:!!n})},s=[];return"default"===t&&(u("@openmrs/esm-framework","4.0.1-pre.238",(()=>Promise.all([o.e(858),o.e(268)]).then((()=>()=>o(6858))))),u("react-dom","18.2.0",(()=>Promise.all([o.e(316),o.e(268)]).then((()=>()=>o(8316))))),u("react-i18next","11.18.4",(()=>Promise.all([o.e(709),o.e(268)]).then((()=>()=>o(709))))),u("react","18.2.0",(()=>o.e(784).then((()=>()=>o(2784)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e=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},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(l=e[a]))[0]?"-":(o>0?".":"")+(o=2,l);return n}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+u()+")":1===l?"("+u()+" || "+u()+")":2===l?i.pop()+" "+i.pop():r(l))}return u();function u(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var o=r[0],a=o<0;a&&(o=-o-1);for(var i=0,l=1,u=!0;;l++,i++){var s,p,f=l<r.length?(typeof r[l])[0]:"";if(i>=n.length||"o"==(p=(typeof(s=n[i]))[0]))return!u||("u"==f?l>o&&!a:""==f!=a);if("u"==p){if(!u||"u"!=f)return!1}else if(u)if(f==p)if(l<=o){if(s!=r[l])return!1}else{if(a?s>r[l]:s<r[l])return!1;s!=r[l]&&(u=!1)}else if("s"!=f&&"n"!=f){if(a||l<=o)return!1;u=!1,l--}else{if(l<=o||p<f!=a)return!1;u=!1}else"s"!=f&&"n"!=f&&(u=!1,l--)}}var c=[],d=c.pop.bind(c);for(i=1;i<r.length;i++){var h=r[i];c.push(1==h?d()|d():2==h?d()&d():h?t(h,n):!d())}return!!d()},n=(r,t)=>{var n=r[t];return Object.keys(n).reduce(((r,t)=>!r||!n[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var o=r[n],a=(typeof o)[0];if(n>=t.length)return"u"==a;var i=t[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}})(r,t)?t:r),0)},a=(e,o,a,l)=>{var u=n(e,a);return t(l,u)||"undefined"!=typeof console&&console.warn&&console.warn(((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(e,a,u,l)),i(e[a][u])},i=e=>(e.loaded=1,e.get()),l=(e=>function(r,t,n,a){var i=o.I(r);return i&&i.then?i.then(e.bind(e,r,o.S[r],t,n,a)):e(r,o.S[r],t,n,a)})(((e,r,t,n,i)=>r&&o.o(r,t)?a(r,0,t,n):i())),u={},s={268:()=>l("default","react",[1,18],(()=>o.e(784).then((()=>()=>o(2784))))),1858:()=>l("default","react-dom",[1,18],(()=>o.e(316).then((()=>()=>o(8316))))),4924:()=>l("default","react-i18next",[1,11],(()=>o.e(709).then((()=>()=>o(709))))),906:()=>l("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([o.e(858),o.e(268)]).then((()=>()=>o(6858)))))};[906].forEach((e=>{o.m[e]=r=>{u[e]=0,delete o.c[e];var t=s[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var p={
|
|
1
|
+
(()=>{var e,r,t={4862:(e,r,t)=>{"use strict";t(906),t(3979)},3979:(e,r,t)=>{var n={"./en.json":[3574,574]};function o(e){if(!t.o(n,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=n[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(n),o.id=3979,e.exports=o}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,o.c=n,o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((r,t)=>(o.f[t](e,r),r)),[])),o.u=e=>e+".js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-openconceptlab-app:",o.l=(t,n,a,i)=>{if(e[t])e[t].push(n);else{var l,u;if(void 0!==a)for(var s=document.getElementsByTagName("script"),p=0;p<s.length;p++){var f=s[p];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==r+a){l=f;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",r+a),l.src=t),e[t]=[n];var c=(r,n)=>{l.onerror=l.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(n))),r)return r(n)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=c.bind(null,l.onerror),l.onload=c.bind(null,l.onload),u&&document.head.appendChild(l)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{o.S={};var e={},r={};o.I=(t,n)=>{n||(n=[]);var a=r[t];if(a||(a=r[t]={}),!(n.indexOf(a)>=0)){if(n.push(a),e[t])return e[t];o.o(o.S,t)||(o.S[t]={});var i=o.S[t],l="@openmrs/esm-openconceptlab-app",u=(e,r,t,n)=>{var o=i[e]=i[e]||{},a=o[r];(!a||!a.loaded&&(!n!=!a.eager?n:l>a.from))&&(o[r]={get:t,from:l,eager:!!n})},s=[];return"default"===t&&(u("@openmrs/esm-framework","4.0.1-pre.238",(()=>Promise.all([o.e(858),o.e(268)]).then((()=>()=>o(6858))))),u("react-dom","18.2.0",(()=>Promise.all([o.e(316),o.e(268)]).then((()=>()=>o(8316))))),u("react-i18next","11.18.4",(()=>Promise.all([o.e(709),o.e(268)]).then((()=>()=>o(709))))),u("react","18.2.0",(()=>o.e(784).then((()=>()=>o(2784)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e=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},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(l=e[a]))[0]?"-":(o>0?".":"")+(o=2,l);return n}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+u()+")":1===l?"("+u()+" || "+u()+")":2===l?i.pop()+" "+i.pop():r(l))}return u();function u(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var o=r[0],a=o<0;a&&(o=-o-1);for(var i=0,l=1,u=!0;;l++,i++){var s,p,f=l<r.length?(typeof r[l])[0]:"";if(i>=n.length||"o"==(p=(typeof(s=n[i]))[0]))return!u||("u"==f?l>o&&!a:""==f!=a);if("u"==p){if(!u||"u"!=f)return!1}else if(u)if(f==p)if(l<=o){if(s!=r[l])return!1}else{if(a?s>r[l]:s<r[l])return!1;s!=r[l]&&(u=!1)}else if("s"!=f&&"n"!=f){if(a||l<=o)return!1;u=!1,l--}else{if(l<=o||p<f!=a)return!1;u=!1}else"s"!=f&&"n"!=f&&(u=!1,l--)}}var c=[],d=c.pop.bind(c);for(i=1;i<r.length;i++){var h=r[i];c.push(1==h?d()|d():2==h?d()&d():h?t(h,n):!d())}return!!d()},n=(r,t)=>{var n=r[t];return Object.keys(n).reduce(((r,t)=>!r||!n[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var o=r[n],a=(typeof o)[0];if(n>=t.length)return"u"==a;var i=t[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}})(r,t)?t:r),0)},a=(e,o,a,l)=>{var u=n(e,a);return t(l,u)||"undefined"!=typeof console&&console.warn&&console.warn(((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(e,a,u,l)),i(e[a][u])},i=e=>(e.loaded=1,e.get()),l=(e=>function(r,t,n,a){var i=o.I(r);return i&&i.then?i.then(e.bind(e,r,o.S[r],t,n,a)):e(r,o.S[r],t,n,a)})(((e,r,t,n,i)=>r&&o.o(r,t)?a(r,0,t,n):i())),u={},s={268:()=>l("default","react",[1,18],(()=>o.e(784).then((()=>()=>o(2784))))),1858:()=>l("default","react-dom",[1,18],(()=>o.e(316).then((()=>()=>o(8316))))),4924:()=>l("default","react-i18next",[1,11],(()=>o.e(709).then((()=>()=>o(709))))),906:()=>l("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([o.e(858),o.e(268)]).then((()=>()=>o(6858)))))};[906].forEach((e=>{o.m[e]=r=>{u[e]=0,delete o.c[e];var t=s[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}}));var p={251:[1858,4924],268:[268]};o.f.consumes=(e,r)=>{o.o(p,e)&&p[e].forEach((e=>{if(o.o(u,e))return r.push(u[e]);var t=r=>{u[e]=0,o.m[e]=t=>{delete o.c[e],t.exports=r()}},n=r=>{delete u[e],o.m[e]=t=>{throw delete o.c[e],r}};try{var a=s[e]();a.then?r.push(u[e]=a.then(t).catch(n)):t(a)}catch(e){n(e)}}))}})(),(()=>{var e={179:0,862:0};o.f.j=(r,t)=>{var n=o.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(268!=r){var a=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=a);var i=o.p+o.u(r),l=new Error;o.l(i,(t=>{if(o.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{var n,a,[i,l,u]=t,s=0;if(i.some((r=>0!==e[r]))){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);u&&u(o)}for(r&&r(t);s<i.length;s++)a=i[s],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},t=self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),o.nc=void 0,o(4862)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _openmrs_esm_openconceptlab_app;(()=>{function b(a){var c=h[a];if(void 0!==c)return c.exports;var d=h[a]={id:a,loaded:!1,exports:{}};return G[a].call(d.exports,d,d.exports,b),d.loaded=!0,d.exports}var j,k,q,v,w,x,y,z,A,B,C,D,E,F,G={3203:(b,c,d)=>{var f={"./start":()=>d.e(862).then(()=>()=>d(4862))},e=(a,b)=>(d.R=b,b=d.o(f,a)?f[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),d.R=void 0,b),g=(a,b)=>{if(d.S){var c=d.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return d.S["default"]=a,d.I("default",b)}};d.d(c,{get:()=>e,init:()=>g})}},h={};b.m=G,b.c=h,b.n=a=>{var c=a&&a.__esModule?()=>a.default:()=>a;return b.d(c,{a:c}),c},b.d=(a,c)=>{for(var d in c)b.o(c,d)&&!b.o(a,d)&&Object.defineProperty(a,d,{enumerable:!0,get:c[d]})},b.f={},b.e=a=>Promise.all(Object.keys(b.f).reduce((c,d)=>(b.f[d](a,c),c),[])),b.u=a=>a+".js",b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),b.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),j={},k="@openmrs/esm-openconceptlab-app:",b.l=(a,d,e)=>{if(j[a])j[a].push(d);else{var g,h;if(void 0!==e)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+e){g=m;break}g||(h=!0,(g=document.createElement("script")).charset="utf-8",g.timeout=120,b.nc&&g.setAttribute("nonce",b.nc),g.setAttribute("data-webpack",k+e),g.src=a),j[a]=[d];var q=(b,c)=>{g.onerror=g.onload=null,clearTimeout(f);var d=j[a];if(delete j[a],g.parentNode&&g.parentNode.removeChild(g),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(q.bind(null,void 0,{type:"timeout",target:g}),12e4);g.onerror=q.bind(null,g.onerror),g.onload=q.bind(null,g.onload),h&&document.head.appendChild(g)}},b.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},b.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{b.S={};var c={},d={};b.I=(e,f)=>{f||(f=[]);var g=d[e];if(g||(g=d[e]={}),!(0<=f.indexOf(g))){if(f.push(g),c[e])return c[e];b.o(b.S,e)||(b.S[e]={});var h=b.S[e],a=(a,b,c,d)=>{var e=h[a]=h[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-openconceptlab-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-openconceptlab-app",eager:!!d})},i=[];return"default"===e&&(a("@openmrs/esm-framework","4.0.1-pre.238",()=>Promise.all([b.e(858),b.e(268)]).then(()=>()=>b(6858))),a("react-dom","18.2.0",()=>Promise.all([b.e(316),b.e(268)]).then(()=>()=>b(8316))),a("react-i18next","11.18.4",()=>Promise.all([b.e(709),b.e(268)]).then(()=>()=>b(709))),a("react","18.2.0",()=>b.e(784).then(()=>()=>b(2784)))),c[e]=i.length?Promise.all(i).then(()=>c[e]=1):1}}})(),(()=>{var a;b.g.importScripts&&(a=b.g.location+"");var c=b.g.document;if(!a&&c&&(c.currentScript&&(a=c.currentScript.src),!a)){var d=c.getElementsByTagName("script");d.length&&(a=d[d.length-1].src)}if(!a)throw new Error("Automatic publicPath is not supported in this browser");a=a.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),b.p=a})(),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},v=(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++}},w=b=>{function c(){return h.pop().replace(/^\((.+)\)$/,"$1")}var d=b[0],e="";if(1===b.length)return"*";if(d+.5){e+=0==d?">=":-1==d?"<":1==d?"^":2==d?"~":0<d?"=":"!=";for(var f=1,g=1;g<b.length;g++)f--,e+="u"==(typeof(i=b[g]))[0]?"-":(0<f?".":"")+(f=2,i);return e}var h=[];for(g=1;g<b.length;g++){var i=b[g];h.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?h.pop()+" "+h.pop():w(i))}return c()},x=(a,b)=>{if(0 in a){b=q(b);var e=a[0],g=0>e;g&&(e=-e-1);for(var j=0,k=1,m=!0;;k++,j++){var o,t,v=k<a.length?(typeof a[k])[0]:"";if(j>=b.length||"o"==(t=(typeof(o=b[j]))[0]))return!m||("u"==v?k>e&&!g:""==v!=g);if("u"==t){if(!m||"u"!=v)return!1;}else if(!m)"s"!=v&&"n"!=v&&(m=!1,k--);else if(v==t){if(!(k<=e)){if(g?o>a[k]:o<a[k])return!1;o!=a[k]&&(m=!1)}else if(o!=a[k])return!1;}else if("s"!=v&&"n"!=v){if(g||k<=e)return!1;m=!1,k--}else{if(k<=e||t<v!=g)return!1;m=!1}}}var f=[],c=f.pop.bind(f);for(j=1;j<a.length;j++){var d=a[j];f.push(1==d?c()|c():2==d?c()&c():d?x(d,b):!c())}return!!c()},y=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!v(a,b))?a:b,0)},z=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+w(d)+")",A=(a,b,c,d)=>{var e=y(a,c);return x(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(z(a,c,e,d)),B(a[c][e])},B=a=>(a.loaded=1,a.get()),C=(c=>function(d,e,f,g){var h=b.I(d);return h&&h.then?h.then(c.bind(c,d,b.S[d],e,f,g)):c(0,b.S[d],e,f,g)})((a,c,d,e,f)=>c&&b.o(c,d)?A(c,0,d,e):f()),D={},E={268:()=>C("default","react",[1,18],()=>b.e(784).then(()=>()=>b(2784))),906:()=>C("default","@openmrs/esm-framework",[1,4],()=>Promise.all([b.e(858),b.e(268)]).then(()=>()=>b(6858))),1858:()=>C("default","react-dom",[1,18],()=>b.e(316).then(()=>()=>b(8316))),4924:()=>C("default","react-i18next",[1,11],()=>b.e(709).then(()=>()=>b(709)))},F={
|
|
1
|
+
var _openmrs_esm_openconceptlab_app;(()=>{function b(a){var c=h[a];if(void 0!==c)return c.exports;var d=h[a]={id:a,loaded:!1,exports:{}};return G[a].call(d.exports,d,d.exports,b),d.loaded=!0,d.exports}var j,k,q,v,w,x,y,z,A,B,C,D,E,F,G={3203:(b,c,d)=>{var f={"./start":()=>d.e(862).then(()=>()=>d(4862))},e=(a,b)=>(d.R=b,b=d.o(f,a)?f[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),d.R=void 0,b),g=(a,b)=>{if(d.S){var c=d.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return d.S["default"]=a,d.I("default",b)}};d.d(c,{get:()=>e,init:()=>g})}},h={};b.m=G,b.c=h,b.n=a=>{var c=a&&a.__esModule?()=>a.default:()=>a;return b.d(c,{a:c}),c},b.d=(a,c)=>{for(var d in c)b.o(c,d)&&!b.o(a,d)&&Object.defineProperty(a,d,{enumerable:!0,get:c[d]})},b.f={},b.e=a=>Promise.all(Object.keys(b.f).reduce((c,d)=>(b.f[d](a,c),c),[])),b.u=a=>a+".js",b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),b.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),j={},k="@openmrs/esm-openconceptlab-app:",b.l=(a,d,e)=>{if(j[a])j[a].push(d);else{var g,h;if(void 0!==e)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+e){g=m;break}g||(h=!0,(g=document.createElement("script")).charset="utf-8",g.timeout=120,b.nc&&g.setAttribute("nonce",b.nc),g.setAttribute("data-webpack",k+e),g.src=a),j[a]=[d];var q=(b,c)=>{g.onerror=g.onload=null,clearTimeout(f);var d=j[a];if(delete j[a],g.parentNode&&g.parentNode.removeChild(g),d&&d.forEach(a=>a(c)),b)return b(c)},f=setTimeout(q.bind(null,void 0,{type:"timeout",target:g}),12e4);g.onerror=q.bind(null,g.onerror),g.onload=q.bind(null,g.onload),h&&document.head.appendChild(g)}},b.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},b.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{b.S={};var c={},d={};b.I=(e,f)=>{f||(f=[]);var g=d[e];if(g||(g=d[e]={}),!(0<=f.indexOf(g))){if(f.push(g),c[e])return c[e];b.o(b.S,e)||(b.S[e]={});var h=b.S[e],a=(a,b,c,d)=>{var e=h[a]=h[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-openconceptlab-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-openconceptlab-app",eager:!!d})},i=[];return"default"===e&&(a("@openmrs/esm-framework","4.0.1-pre.238",()=>Promise.all([b.e(858),b.e(268)]).then(()=>()=>b(6858))),a("react-dom","18.2.0",()=>Promise.all([b.e(316),b.e(268)]).then(()=>()=>b(8316))),a("react-i18next","11.18.4",()=>Promise.all([b.e(709),b.e(268)]).then(()=>()=>b(709))),a("react","18.2.0",()=>b.e(784).then(()=>()=>b(2784)))),c[e]=i.length?Promise.all(i).then(()=>c[e]=1):1}}})(),(()=>{var a;b.g.importScripts&&(a=b.g.location+"");var c=b.g.document;if(!a&&c&&(c.currentScript&&(a=c.currentScript.src),!a)){var d=c.getElementsByTagName("script");d.length&&(a=d[d.length-1].src)}if(!a)throw new Error("Automatic publicPath is not supported in this browser");a=a.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),b.p=a})(),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},v=(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++}},w=b=>{function c(){return h.pop().replace(/^\((.+)\)$/,"$1")}var d=b[0],e="";if(1===b.length)return"*";if(d+.5){e+=0==d?">=":-1==d?"<":1==d?"^":2==d?"~":0<d?"=":"!=";for(var f=1,g=1;g<b.length;g++)f--,e+="u"==(typeof(i=b[g]))[0]?"-":(0<f?".":"")+(f=2,i);return e}var h=[];for(g=1;g<b.length;g++){var i=b[g];h.push(0===i?"not("+c()+")":1===i?"("+c()+" || "+c()+")":2===i?h.pop()+" "+h.pop():w(i))}return c()},x=(a,b)=>{if(0 in a){b=q(b);var e=a[0],g=0>e;g&&(e=-e-1);for(var j=0,k=1,m=!0;;k++,j++){var o,t,v=k<a.length?(typeof a[k])[0]:"";if(j>=b.length||"o"==(t=(typeof(o=b[j]))[0]))return!m||("u"==v?k>e&&!g:""==v!=g);if("u"==t){if(!m||"u"!=v)return!1;}else if(!m)"s"!=v&&"n"!=v&&(m=!1,k--);else if(v==t){if(!(k<=e)){if(g?o>a[k]:o<a[k])return!1;o!=a[k]&&(m=!1)}else if(o!=a[k])return!1;}else if("s"!=v&&"n"!=v){if(g||k<=e)return!1;m=!1,k--}else{if(k<=e||t<v!=g)return!1;m=!1}}}var f=[],c=f.pop.bind(f);for(j=1;j<a.length;j++){var d=a[j];f.push(1==d?c()|c():2==d?c()&c():d?x(d,b):!c())}return!!c()},y=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!v(a,b))?a:b,0)},z=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+w(d)+")",A=(a,b,c,d)=>{var e=y(a,c);return x(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(z(a,c,e,d)),B(a[c][e])},B=a=>(a.loaded=1,a.get()),C=(c=>function(d,e,f,g){var h=b.I(d);return h&&h.then?h.then(c.bind(c,d,b.S[d],e,f,g)):c(0,b.S[d],e,f,g)})((a,c,d,e,f)=>c&&b.o(c,d)?A(c,0,d,e):f()),D={},E={268:()=>C("default","react",[1,18],()=>b.e(784).then(()=>()=>b(2784))),906:()=>C("default","@openmrs/esm-framework",[1,4],()=>Promise.all([b.e(858),b.e(268)]).then(()=>()=>b(6858))),1858:()=>C("default","react-dom",[1,18],()=>b.e(316).then(()=>()=>b(8316))),4924:()=>C("default","react-i18next",[1,11],()=>b.e(709).then(()=>()=>b(709)))},F={251:[1858,4924],268:[268],862:[906]},b.f.consumes=(a,c)=>{b.o(F,a)&&F[a].forEach(a=>{if(b.o(D,a))return c.push(D[a]);var d=c=>{D[a]=0,b.m[a]=d=>{delete b.c[a],d.exports=c()}},f=c=>{delete D[a],b.m[a]=()=>{throw delete b.c[a],c}};try{var e=E[a]();e.then?c.push(D[a]=e.then(d).catch(f)):d(e)}catch(a){f(a)}})},(()=>{var c={174:0};b.f.j=(d,e)=>{var f=b.o(c,d)?c[d]:void 0;if(0!==f)if(f)e.push(f[2]);else if(268!=d){var g=new Promise((a,b)=>f=c[d]=[a,b]);e.push(f[2]=g);var h=b.p+b.u(d),j=new Error;b.l(h,e=>{if(b.o(c,d)&&(0!==(f=c[d])&&(c[d]=void 0),f)){var g=e&&("load"===e.type?"missing":e.type),h=e&&e.target&&e.target.src;j.message="Loading chunk "+d+" failed.\n("+g+": "+h+")",j.name="ChunkLoadError",j.type=g,j.request=h,f[1](j)}},"chunk-"+d,d)}else c[d]=0};var a=(d,e)=>{var f,g,[h,a,i]=e,j=0;if(h.some(a=>0!==c[a])){for(f in a)b.o(a,f)&&(b.m[f]=a[f]);i&&i(b)}for(d&&d(e);j<h.length;j++)g=h[j],b.o(c,g)&&c[g]&&c[g][0](),c[g]=0},d=self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[];d.forEach(a.bind(null,0)),d.push=a.bind(null,d.push.bind(d))})(),b.nc=void 0;var m=b(3203);_openmrs_esm_openconceptlab_app=m})();
|
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"chunks": [
|
|
3
|
+
{
|
|
4
|
+
"rendered": true,
|
|
5
|
+
"initial": false,
|
|
6
|
+
"entry": false,
|
|
7
|
+
"recorded": false,
|
|
8
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
9
|
+
"size": 1803237,
|
|
10
|
+
"sizes": {
|
|
11
|
+
"javascript": 1803237
|
|
12
|
+
},
|
|
13
|
+
"names": [],
|
|
14
|
+
"idHints": [
|
|
15
|
+
"vendors"
|
|
16
|
+
],
|
|
17
|
+
"runtime": [
|
|
18
|
+
"@openmrs/esm-openconceptlab-app",
|
|
19
|
+
"main"
|
|
20
|
+
],
|
|
21
|
+
"files": [
|
|
22
|
+
"168.js"
|
|
23
|
+
],
|
|
24
|
+
"auxiliaryFiles": [],
|
|
25
|
+
"hash": "eeeb0b9ac923e9ddd9c6",
|
|
26
|
+
"childrenByOrder": {}
|
|
27
|
+
},
|
|
3
28
|
{
|
|
4
29
|
"rendered": true,
|
|
5
30
|
"initial": true,
|
|
@@ -22,7 +47,7 @@
|
|
|
22
47
|
"openmrs-esm-openconceptlab-app.js"
|
|
23
48
|
],
|
|
24
49
|
"auxiliaryFiles": [],
|
|
25
|
-
"hash": "
|
|
50
|
+
"hash": "846a09e2c5334e64e0a4",
|
|
26
51
|
"childrenByOrder": {}
|
|
27
52
|
},
|
|
28
53
|
{
|
|
@@ -48,28 +73,7 @@
|
|
|
48
73
|
"main.js"
|
|
49
74
|
],
|
|
50
75
|
"auxiliaryFiles": [],
|
|
51
|
-
"hash": "
|
|
52
|
-
"childrenByOrder": {}
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"rendered": false,
|
|
56
|
-
"initial": false,
|
|
57
|
-
"entry": false,
|
|
58
|
-
"recorded": false,
|
|
59
|
-
"reason": "reused as split chunk (cache group: default)",
|
|
60
|
-
"size": 42,
|
|
61
|
-
"sizes": {
|
|
62
|
-
"consume-shared": 42
|
|
63
|
-
},
|
|
64
|
-
"names": [],
|
|
65
|
-
"idHints": [],
|
|
66
|
-
"runtime": [
|
|
67
|
-
"@openmrs/esm-openconceptlab-app",
|
|
68
|
-
"main"
|
|
69
|
-
],
|
|
70
|
-
"files": [],
|
|
71
|
-
"auxiliaryFiles": [],
|
|
72
|
-
"hash": "db8ef61fa9ed16831608",
|
|
76
|
+
"hash": "a544e5b5e459c1c08455",
|
|
73
77
|
"childrenByOrder": {}
|
|
74
78
|
},
|
|
75
79
|
{
|
|
@@ -77,35 +81,33 @@
|
|
|
77
81
|
"initial": false,
|
|
78
82
|
"entry": false,
|
|
79
83
|
"recorded": false,
|
|
80
|
-
"
|
|
81
|
-
"size": 137533,
|
|
84
|
+
"size": 79546,
|
|
82
85
|
"sizes": {
|
|
83
|
-
"javascript":
|
|
86
|
+
"javascript": 79462,
|
|
87
|
+
"consume-shared": 84
|
|
84
88
|
},
|
|
85
89
|
"names": [],
|
|
86
|
-
"idHints": [
|
|
87
|
-
"vendors"
|
|
88
|
-
],
|
|
90
|
+
"idHints": [],
|
|
89
91
|
"runtime": [
|
|
90
92
|
"@openmrs/esm-openconceptlab-app",
|
|
91
93
|
"main"
|
|
92
94
|
],
|
|
93
95
|
"files": [
|
|
94
|
-
"
|
|
96
|
+
"251.js"
|
|
95
97
|
],
|
|
96
98
|
"auxiliaryFiles": [],
|
|
97
|
-
"hash": "
|
|
99
|
+
"hash": "a991e015a07a1abcf4ea",
|
|
98
100
|
"childrenByOrder": {}
|
|
99
101
|
},
|
|
100
102
|
{
|
|
101
|
-
"rendered":
|
|
103
|
+
"rendered": false,
|
|
102
104
|
"initial": false,
|
|
103
105
|
"entry": false,
|
|
104
106
|
"recorded": false,
|
|
105
|
-
"
|
|
107
|
+
"reason": "reused as split chunk (cache group: default)",
|
|
108
|
+
"size": 42,
|
|
106
109
|
"sizes": {
|
|
107
|
-
"
|
|
108
|
-
"consume-shared": 84
|
|
110
|
+
"consume-shared": 42
|
|
109
111
|
},
|
|
110
112
|
"names": [],
|
|
111
113
|
"idHints": [],
|
|
@@ -113,11 +115,9 @@
|
|
|
113
115
|
"@openmrs/esm-openconceptlab-app",
|
|
114
116
|
"main"
|
|
115
117
|
],
|
|
116
|
-
"files": [
|
|
117
|
-
"452.js"
|
|
118
|
-
],
|
|
118
|
+
"files": [],
|
|
119
119
|
"auxiliaryFiles": [],
|
|
120
|
-
"hash": "
|
|
120
|
+
"hash": "db8ef61fa9ed16831608",
|
|
121
121
|
"childrenByOrder": {}
|
|
122
122
|
},
|
|
123
123
|
{
|
|
@@ -125,21 +125,24 @@
|
|
|
125
125
|
"initial": false,
|
|
126
126
|
"entry": false,
|
|
127
127
|
"recorded": false,
|
|
128
|
-
"
|
|
128
|
+
"reason": "reused as split chunk (cache group: defaultVendors)",
|
|
129
|
+
"size": 137533,
|
|
129
130
|
"sizes": {
|
|
130
|
-
"javascript":
|
|
131
|
+
"javascript": 137533
|
|
131
132
|
},
|
|
132
133
|
"names": [],
|
|
133
|
-
"idHints": [
|
|
134
|
+
"idHints": [
|
|
135
|
+
"vendors"
|
|
136
|
+
],
|
|
134
137
|
"runtime": [
|
|
135
138
|
"@openmrs/esm-openconceptlab-app",
|
|
136
139
|
"main"
|
|
137
140
|
],
|
|
138
141
|
"files": [
|
|
139
|
-
"
|
|
142
|
+
"316.js"
|
|
140
143
|
],
|
|
141
144
|
"auxiliaryFiles": [],
|
|
142
|
-
"hash": "
|
|
145
|
+
"hash": "03f0939e0125623d49c2",
|
|
143
146
|
"childrenByOrder": {}
|
|
144
147
|
},
|
|
145
148
|
{
|
|
@@ -147,24 +150,21 @@
|
|
|
147
150
|
"initial": false,
|
|
148
151
|
"entry": false,
|
|
149
152
|
"recorded": false,
|
|
150
|
-
"
|
|
151
|
-
"size": 1799596,
|
|
153
|
+
"size": 2510,
|
|
152
154
|
"sizes": {
|
|
153
|
-
"javascript":
|
|
155
|
+
"javascript": 2510
|
|
154
156
|
},
|
|
155
157
|
"names": [],
|
|
156
|
-
"idHints": [
|
|
157
|
-
"vendors"
|
|
158
|
-
],
|
|
158
|
+
"idHints": [],
|
|
159
159
|
"runtime": [
|
|
160
160
|
"@openmrs/esm-openconceptlab-app",
|
|
161
161
|
"main"
|
|
162
162
|
],
|
|
163
163
|
"files": [
|
|
164
|
-
"
|
|
164
|
+
"574.js"
|
|
165
165
|
],
|
|
166
166
|
"auxiliaryFiles": [],
|
|
167
|
-
"hash": "
|
|
167
|
+
"hash": "90b352d45c342cfa0d91",
|
|
168
168
|
"childrenByOrder": {}
|
|
169
169
|
},
|
|
170
170
|
{
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"862.js"
|
|
259
259
|
],
|
|
260
260
|
"auxiliaryFiles": [],
|
|
261
|
-
"hash": "
|
|
261
|
+
"hash": "49f1dbce322e29fc2616",
|
|
262
262
|
"childrenByOrder": {}
|
|
263
263
|
}
|
|
264
264
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _openmrs_esm_openconceptlab_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,p,u,f,c,d,h={3203:(e,r,t)=>{var n={"./start":()=>t.e(862).then((()=>()=>t(4862)))},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})}},m={};function v(e){var r=m[e];if(void 0!==r)return r.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return h[e].call(t.exports,t,t.exports,v),t.loaded=!0,t.exports}v.m=h,v.c=m,v.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return v.d(r,{a:r}),r},v.d=(e,r)=>{for(var t in r)v.o(r,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},v.f={},v.e=e=>Promise.all(Object.keys(v.f).reduce(((r,t)=>(v.f[t](e,r),r)),[])),v.u=e=>e+".js",v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-openconceptlab-app:",v.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),p=0;p<s.length;p++){var u=s[p];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==r+o){i=u;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},v.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{v.S={};var e={},r={};v.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];v.o(v.S,t)||(v.S[t]={});var a=v.S[t],i="@openmrs/esm-openconceptlab-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","4.0.1-pre.238",(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(6858))))),l("react-dom","18.2.0",(()=>Promise.all([v.e(316),v.e(268)]).then((()=>()=>v(8316))))),l("react-i18next","11.18.4",(()=>Promise.all([v.e(709),v.e(268)]).then((()=>()=>v(709))))),l("react","18.2.0",(()=>v.e(784).then((()=>()=>v(2784)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;v.g.importScripts&&(e=v.g.location+"");var r=v.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),v.p=e})(),t=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},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=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,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var p,u,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(u=(typeof(p=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==u){if(!s||"u"!=f)return!1}else if(s)if(f==u)if(l<=n){if(p!=e[l])return!1}else{if(o?p>e[l]:p<e[l])return!1;p!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||u<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var c=[],d=c.pop.bind(c);for(i=1;i<e.length;i++){var h=e[i];c.push(1==h?d()|d():2==h?d()&d():h?a(h,r):!d())}return!!d()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),p(e[t][o])},p=e=>(e.loaded=1,e.get()),u=(e=>function(r,t,n,o){var a=v.I(r);return a&&a.then?a.then(e.bind(e,r,v.S[r],t,n,o)):e(0,v.S[r],t,n,o)})(((e,r,t,n,o)=>r&&v.o(r,t)?s(r,0,t,n):o())),f={},c={268:()=>u("default","react",[1,18],(()=>v.e(784).then((()=>()=>v(2784))))),906:()=>u("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(6858))))),1858:()=>u("default","react-dom",[1,18],(()=>v.e(316).then((()=>()=>v(8316))))),4924:()=>u("default","react-i18next",[1,11],(()=>v.e(709).then((()=>()=>v(709)))))},d={
|
|
1
|
+
var _openmrs_esm_openconceptlab_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,p,u,f,c,d,h={3203:(e,r,t)=>{var n={"./start":()=>t.e(862).then((()=>()=>t(4862)))},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})}},m={};function v(e){var r=m[e];if(void 0!==r)return r.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return h[e].call(t.exports,t,t.exports,v),t.loaded=!0,t.exports}v.m=h,v.c=m,v.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return v.d(r,{a:r}),r},v.d=(e,r)=>{for(var t in r)v.o(r,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},v.f={},v.e=e=>Promise.all(Object.keys(v.f).reduce(((r,t)=>(v.f[t](e,r),r)),[])),v.u=e=>e+".js",v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-openconceptlab-app:",v.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),p=0;p<s.length;p++){var u=s[p];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==r+o){i=u;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},v.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{v.S={};var e={},r={};v.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];v.o(v.S,t)||(v.S[t]={});var a=v.S[t],i="@openmrs/esm-openconceptlab-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","4.0.1-pre.238",(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(6858))))),l("react-dom","18.2.0",(()=>Promise.all([v.e(316),v.e(268)]).then((()=>()=>v(8316))))),l("react-i18next","11.18.4",(()=>Promise.all([v.e(709),v.e(268)]).then((()=>()=>v(709))))),l("react","18.2.0",(()=>v.e(784).then((()=>()=>v(2784)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;v.g.importScripts&&(e=v.g.location+"");var r=v.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),v.p=e})(),t=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},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=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,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var p,u,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(u=(typeof(p=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==u){if(!s||"u"!=f)return!1}else if(s)if(f==u)if(l<=n){if(p!=e[l])return!1}else{if(o?p>e[l]:p<e[l])return!1;p!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||u<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var c=[],d=c.pop.bind(c);for(i=1;i<e.length;i++){var h=e[i];c.push(1==h?d()|d():2==h?d()&d():h?a(h,r):!d())}return!!d()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),p(e[t][o])},p=e=>(e.loaded=1,e.get()),u=(e=>function(r,t,n,o){var a=v.I(r);return a&&a.then?a.then(e.bind(e,r,v.S[r],t,n,o)):e(0,v.S[r],t,n,o)})(((e,r,t,n,o)=>r&&v.o(r,t)?s(r,0,t,n):o())),f={},c={268:()=>u("default","react",[1,18],(()=>v.e(784).then((()=>()=>v(2784))))),906:()=>u("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(6858))))),1858:()=>u("default","react-dom",[1,18],(()=>v.e(316).then((()=>()=>v(8316))))),4924:()=>u("default","react-i18next",[1,11],(()=>v.e(709).then((()=>()=>v(709)))))},d={251:[1858,4924],268:[268],862:[906]},v.f.consumes=(e,r)=>{v.o(d,e)&&d[e].forEach((e=>{if(v.o(f,e))return r.push(f[e]);var t=r=>{f[e]=0,v.m[e]=t=>{delete v.c[e],t.exports=r()}},n=r=>{delete f[e],v.m[e]=t=>{throw delete v.c[e],r}};try{var o=c[e]();o.then?r.push(f[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={174:0};v.f.j=(r,t)=>{var n=v.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(268!=r){var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=v.p+v.u(r),i=new Error;v.l(a,(t=>{if(v.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)}else e[r]=0};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)v.o(i,n)&&(v.m[n]=i[n]);l&&l(v)}for(r&&r(t);s<a.length;s++)o=a[s],v.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),v.nc=void 0;var g=v(3203);_openmrs_esm_openconceptlab_app=g})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-openconceptlab-app",
|
|
3
|
-
"version": "3.0.1-pre.
|
|
3
|
+
"version": "3.0.1-pre.17",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "An app to manage the openconceptlab module",
|
|
6
6
|
"browser": "dist/openmrs-esm-openconceptlab-app.js",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"react-router-dom": "6.x",
|
|
50
50
|
"rxjs": "6.x"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "b9a77150ca9159e66f095a59eab937e28697e3a4"
|
|
53
53
|
}
|
|
@@ -8,6 +8,8 @@ import {
|
|
|
8
8
|
FileUploaderSkeleton,
|
|
9
9
|
Form,
|
|
10
10
|
Grid,
|
|
11
|
+
InlineLoading,
|
|
12
|
+
Stack,
|
|
11
13
|
SkeletonText,
|
|
12
14
|
} from '@carbon/react';
|
|
13
15
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
@@ -19,6 +21,7 @@ const Import: React.FC = () => {
|
|
|
19
21
|
const { t } = useTranslation();
|
|
20
22
|
const [isSubscriptionAvailable, setIsSubscriptionAvailable] = useState(false);
|
|
21
23
|
const [file, setFile] = useState<File>();
|
|
24
|
+
const [isFileUploading, setIsFileUploading] = useState(false);
|
|
22
25
|
|
|
23
26
|
const { data: subscription, isLoading, isError } = useSubscription();
|
|
24
27
|
|
|
@@ -80,10 +83,12 @@ const Import: React.FC = () => {
|
|
|
80
83
|
|
|
81
84
|
const handleImportWithFile = useCallback(
|
|
82
85
|
async (evt: React.FormEvent<HTMLFormElement>) => {
|
|
86
|
+
setIsFileUploading(true);
|
|
83
87
|
evt.preventDefault();
|
|
84
88
|
evt.stopPropagation();
|
|
85
89
|
|
|
86
90
|
if (!file) {
|
|
91
|
+
setIsFileUploading(false);
|
|
87
92
|
showNotification({
|
|
88
93
|
kind: 'error',
|
|
89
94
|
description: t('noFileSelected', 'No file selected'),
|
|
@@ -96,11 +101,13 @@ const Import: React.FC = () => {
|
|
|
96
101
|
|
|
97
102
|
if (response.status === 201) {
|
|
98
103
|
setFile(null);
|
|
104
|
+
setIsFileUploading(false);
|
|
99
105
|
showNotification({
|
|
100
106
|
kind: 'success',
|
|
101
107
|
description: t('importSuccess', 'Import started successfully'),
|
|
102
108
|
});
|
|
103
109
|
} else {
|
|
110
|
+
setIsFileUploading(false);
|
|
104
111
|
showNotification({
|
|
105
112
|
kind: 'error',
|
|
106
113
|
description: t('importFailed', 'Import failed'),
|
|
@@ -178,9 +185,12 @@ const Import: React.FC = () => {
|
|
|
178
185
|
style={{ marginBottom: '1.5rem' }}
|
|
179
186
|
/>
|
|
180
187
|
)}
|
|
181
|
-
<
|
|
182
|
-
|
|
183
|
-
|
|
188
|
+
<Stack gap={6} orientation="horizontal">
|
|
189
|
+
<Button kind="primary" type="submit">
|
|
190
|
+
{t('importFromFile', 'Import from file')}
|
|
191
|
+
</Button>
|
|
192
|
+
{isFileUploading && <InlineLoading description={t('uploading', 'Uploading...')} />}
|
|
193
|
+
</Stack>
|
|
184
194
|
</Form>
|
|
185
195
|
</Column>
|
|
186
196
|
</Grid>
|
|
@@ -18,6 +18,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
18
18
|
import { deleteSubscription, updateSubscription, useSubscription } from './subscription.resource';
|
|
19
19
|
import styles from './subscription.component.scss';
|
|
20
20
|
import { useSWRConfig } from 'swr';
|
|
21
|
+
import { isVersionDefinedInUrl } from '../utils';
|
|
21
22
|
|
|
22
23
|
const Subscription: React.FC = () => {
|
|
23
24
|
const { t } = useTranslation();
|
|
@@ -26,6 +27,7 @@ const Subscription: React.FC = () => {
|
|
|
26
27
|
const [token, setToken] = useState('');
|
|
27
28
|
const [isSubscribedToSnapshot, setIsSubscribedToSnapshot] = useState(false);
|
|
28
29
|
const [validationType, setValidationType] = useState<'NONE' | 'FULL'>('FULL');
|
|
30
|
+
const [isSnapshotOptionDisabled, setIsSnapshotOptionDisabled] = useState(false);
|
|
29
31
|
|
|
30
32
|
const { data: subscription, isLoading, isError } = useSubscription();
|
|
31
33
|
|
|
@@ -35,22 +37,29 @@ const Subscription: React.FC = () => {
|
|
|
35
37
|
setToken(subscription?.token || '');
|
|
36
38
|
setIsSubscribedToSnapshot(subscription?.subscribedToSnapshot || false);
|
|
37
39
|
setValidationType(subscription?.validationType || 'FULL');
|
|
40
|
+
setIsSnapshotOptionDisabled(subscription ? isVersionDefinedInUrl(subscription.url) : false);
|
|
38
41
|
}
|
|
39
42
|
}, [isLoading, isError, subscription]);
|
|
40
43
|
|
|
41
44
|
const handleChangeSubscriptionUrl = useCallback((event: React.ChangeEvent<HTMLInputElement>) => {
|
|
42
45
|
setSubscriptionUrl(event.target.value);
|
|
46
|
+
if (isVersionDefinedInUrl(event.target.value)) {
|
|
47
|
+
setIsSnapshotOptionDisabled(true);
|
|
48
|
+
setIsSubscribedToSnapshot(false);
|
|
49
|
+
} else {
|
|
50
|
+
setIsSnapshotOptionDisabled(false);
|
|
51
|
+
}
|
|
43
52
|
}, []);
|
|
44
53
|
|
|
45
54
|
const handleChangeToken = useCallback((event: React.ChangeEvent<HTMLInputElement>) => {
|
|
46
55
|
setToken(event.target.value);
|
|
47
56
|
}, []);
|
|
48
57
|
|
|
49
|
-
const handleChangeValidationType = useCallback((checked
|
|
58
|
+
const handleChangeValidationType = useCallback((event, { checked, id }) => {
|
|
50
59
|
setValidationType(checked ? 'NONE' : 'FULL');
|
|
51
60
|
}, []);
|
|
52
61
|
|
|
53
|
-
const handleChangeSubscriptionType = useCallback((checked
|
|
62
|
+
const handleChangeSubscriptionType = useCallback((event, { checked, id }) => {
|
|
54
63
|
setIsSubscribedToSnapshot(checked);
|
|
55
64
|
}, []);
|
|
56
65
|
|
|
@@ -59,6 +68,17 @@ const Subscription: React.FC = () => {
|
|
|
59
68
|
evt.preventDefault();
|
|
60
69
|
evt.stopPropagation();
|
|
61
70
|
|
|
71
|
+
if (isSnapshotOptionDisabled && isSubscribedToSnapshot) {
|
|
72
|
+
showNotification({
|
|
73
|
+
kind: 'error',
|
|
74
|
+
description: t(
|
|
75
|
+
'snapshotDisabledError',
|
|
76
|
+
"You cannot subscribe to a SNAPSHOT if you've provided the collection version",
|
|
77
|
+
),
|
|
78
|
+
});
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
|
|
62
82
|
const abortController = new AbortController();
|
|
63
83
|
|
|
64
84
|
const updatedSubscription = {
|
|
@@ -92,7 +112,7 @@ const Subscription: React.FC = () => {
|
|
|
92
112
|
|
|
93
113
|
return () => abortController.abort();
|
|
94
114
|
},
|
|
95
|
-
[subscriptionUrl, token, validationType, isSubscribedToSnapshot,
|
|
115
|
+
[subscriptionUrl, token, validationType, isSubscribedToSnapshot, isSnapshotOptionDisabled, subscription, t, mutate],
|
|
96
116
|
);
|
|
97
117
|
|
|
98
118
|
const handleCancel = useCallback(() => {
|
|
@@ -100,6 +120,7 @@ const Subscription: React.FC = () => {
|
|
|
100
120
|
setToken(subscription?.token || '');
|
|
101
121
|
setIsSubscribedToSnapshot(subscription?.subscribedToSnapshot || false);
|
|
102
122
|
setValidationType(subscription?.validationType || 'FULL');
|
|
123
|
+
setIsSnapshotOptionDisabled(subscription ? isVersionDefinedInUrl(subscription.url) : false);
|
|
103
124
|
|
|
104
125
|
showNotification({
|
|
105
126
|
kind: 'info',
|
|
@@ -121,6 +142,7 @@ const Subscription: React.FC = () => {
|
|
|
121
142
|
setToken('');
|
|
122
143
|
setIsSubscribedToSnapshot(false);
|
|
123
144
|
setValidationType('FULL');
|
|
145
|
+
setIsSnapshotOptionDisabled(false);
|
|
124
146
|
showNotification({
|
|
125
147
|
kind: 'success',
|
|
126
148
|
description: t('subscriptionDeleted', 'Successfully unsubscribed'),
|
|
@@ -205,6 +227,7 @@ const Subscription: React.FC = () => {
|
|
|
205
227
|
onChange={handleChangeSubscriptionType}
|
|
206
228
|
labelText={t('subscribeToSnapshotText', 'Subscribe to SNAPSHOT versions (not recommended)')}
|
|
207
229
|
id="isSubscribedToSnapshot"
|
|
230
|
+
disabled={isSnapshotOptionDisabled}
|
|
208
231
|
/>
|
|
209
232
|
<Checkbox
|
|
210
233
|
checked={validationType === 'NONE'}
|