@openmrs/esm-openconceptlab-app 4.4.1-pre.945 → 4.4.1-pre.952
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 +1 -1
- package/dist/3799.js +1 -1
- package/dist/3799.js.map +1 -1
- package/dist/5117.js +1 -1
- package/dist/5117.js.map +1 -1
- package/dist/openmrs-esm-openconceptlab-app.js +2 -2
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/import/import.component.tsx +4 -4
- package/src/import/import.test.tsx +22 -0
- package/src/subscription/subscription.component.tsx +8 -8
- package/src/subscription/subscription.test.tsx +41 -3
- package/translations/en.json +1 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/3799.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_openconceptlab_app=globalThis.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([["3799"],{2138(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>B});var a=n(2491),r=n.n(a),o=n(3373),l=n.n(o),s=n(4920),i=n(4011),c=n(5500),m=n(5327),u=n.n(m);async function p(e){return(0,c.openmrsFetch)("/ws/rest/v1/openconceptlab/import",{method:"POST",body:{},headers:{"Content-Type":"application/json"},signal:e?.signal})}async function d(e,t){let n=new FormData;return n.append("file",e),(0,c.openmrsFetch)("/ws/rest/v1/openconceptlab/import",{method:"POST",body:n,signal:t?.signal})}let b="-esm-openconceptlab__import__grid___zbAjr",_="-esm-openconceptlab__import__productiveHeading03___M4cku",E="-esm-openconceptlab__import__form___bZoUd",h="-esm-openconceptlab__import__formText___Aeytl",g=["application/zip","application/x-zip-compressed"],f=()=>{let{t:e}=(0,i.useTranslation)(),[t,n]=(0,a.useState)(!1),[o,l]=(0,a.useState)(),[m,f]=(0,a.useState)(!1),{data:S,isLoading:k,error:T}=function(){let{data:e,error:t,isLoading:n,isValidating:a}=u()("/ws/rest/v1/openconceptlab/subscription?v=full",c.openmrsFetch);return{data:e?.data?.results[0],error:t,isLoading:n,isValidating:a}}();(0,a.useEffect)(()=>{k||T||n(!!S)},[k,T,S]);let y=(0,a.useCallback)((t,{addedFiles:n})=>{let a=n[0];g.includes(a.type)?l(a):(0,c.showNotification)({kind:"error",description:e("fileFormatError","Only .zip files are allowed")})},[e]),w=(0,a.useCallback)(()=>{l(null)},[]),N=(0,a.useCallback)(async n=>{if(n.preventDefault(),n.stopPropagation(),!t)return void(0,c.showNotification)({kind:"error",description:e("noSubscriptionError","No saved subscription")});let a=new AbortController;201===(await p(a)).status?(0,c.showNotification)({kind:"success",description:e("importSuccess","Import started successfully")}):(0,c.showNotification)({kind:"error",description:e("importFailed","Import failed")})},[t,e]),v=(0,a.useCallback)(async t=>{if(f(!0),t.preventDefault(),t.stopPropagation(),!o){f(!1),(0,c.showNotification)({kind:"error",description:e("noFileSelected","No file selected")});return}let n=new AbortController;201===(await d(o,n)).status?(l(null),f(!1),(0,c.showNotification)({kind:"success",description:e("importSuccess","Import started successfully")})):(f(!1),(0,c.showNotification)({kind:"error",description:e("importFailed","Import failed")}))},[o,e]);return k?r().createElement(s.Grid,{className:b},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement(s.Form,null,r().createElement(s.SkeletonText,{className:_,heading:!0}),r().createElement(s.SkeletonText,{className:h,paragraph:!0,lineCount:2}),r().createElement(s.ButtonSkeleton,null)),r().createElement(s.Form,{className:E},r().createElement(s.SkeletonText,{className:_,heading:!0}),r().createElement(s.SkeletonText,{className:h}),r().createElement(s.FileUploaderSkeleton,{style:{marginBottom:"1.5rem"}}),r().createElement(s.ButtonSkeleton,null)))):(T&&(0,c.showNotification)({kind:"error",description:e("subscriptionError","Error occured while fetching the subscription")}),r().createElement(s.Grid,{className:b},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement(s.Form,{onSubmit:N},r().createElement("h3",{className:_},e("importConcepts","Import Concepts")),r().createElement("p",{className:h},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.")),r().createElement(s.Button,{kind:"primary",type:"submit",disabled:!t},e("importFromSubscription","Import from Subscription"))),r().createElement(s.Form,{className:E,onSubmit:v},r().createElement("h3",{className:_},e("importFromFileHeading","Import from file (Offline)")),r().createElement("p",{className:h},e("importFromFileInfo","You can import data without setting up a subscription by using this option.")),o?r().createElement(s.FileUploaderItem,{key:o.name,name:o.name,size:"md",status:"edit",iconDescription:e("fileAdded","File Added"),onDelete:w,style:{backgroundColor:"#e0e0e0"}}):r().createElement(s.FileUploaderDropContainer,{accept:g,multiple:!0,labelText:e("importFromFileDragInfo","Drag and drop file here or click to upload"),onAddFiles:y,style:{marginBottom:"1.5rem"}}),r().createElement(s.Stack,{gap:6,orientation:"horizontal"},r().createElement(s.Button,{kind:"primary",type:"submit"},e("importFromFile","Import from file")),m&&r().createElement(s.InlineLoading,{description:e("uploading","Uploading...")}))))))};async function S(e,t){let n=`/ws/rest/v1/openconceptlab/import/${e}/item?state=ERROR&v=full`;return(0,c.openmrsFetch)(n,{method:"GET",signal:t?.signal})}let k=({importUuid:e})=>{let{t}=(0,i.useTranslation)(),[n,o]=(0,a.useState)(),[l,m]=(0,a.useState)(5),[u,p]=(0,a.useState)([]),{results:d,currentPage:b,goTo:_}=(0,c.usePagination)(u,l),E=(0,a.useCallback)(async e=>{o(!0);let n=new AbortController,a=await S(e,n);return a.ok?p(a.data.results):(0,c.showNotification)({title:t("importItemsFetchError","Error occured while fetching the import items"),kind:"error",critical:!0,description:JSON.stringify(a.data)}),o(!1),()=>n.abort()},[t]);if((0,a.useEffect)(()=>{E(e)},[E,e]),n)return r().createElement("div",null,r().createElement(s.DataTableSkeleton,{showHeader:!1,showToolbar:!1,columnCount:2}),r().createElement(s.PaginationSkeleton,null));let h=[{header:t("conceptOrMapping","Concept/Mapping"),key:"uuid"},{header:t("message","Message"),key:"errorMessage"}];return!n&&r().createElement("div",null,r().createElement(s.Table,{size:"sm",className:"-esm-openconceptlab__import-items__tableBordered___HFu3Y"},r().createElement(s.TableHead,null,r().createElement(s.TableRow,{className:"-esm-openconceptlab__import-items__tableHeaderRow___NZ9bl"},h.map((e,t)=>r().createElement(s.TableHeader,{key:t,isSortable:!0},e.header)))),r().createElement(s.TableBody,null,d?.map(e=>r().createElement(a.Fragment,{key:e.uuid},r().createElement(s.TableRow,{className:"-esm-openconceptlab__import-items__tableDataRow___hqtpK"},r().createElement(s.TableCell,null,r().createElement(s.Link,{href:e.versionUrl},e.type," ",e.uuid)),r().createElement(s.TableCell,null,e.errorMessage)))))),r().createElement(s.Pagination,{className:"-esm-openconceptlab__import-items__pagination___g1orb",size:"sm",page:b,pageSize:l,pageSizes:[5,10,20,50,100],totalItems:u?.length,onChange:({page:e,pageSize:t})=>{_(e),m(t)}}))},T="-esm-openconceptlab__import-overview__heading01___kHOsN",y=({selectedImportObject:e})=>{let{t}=(0,i.useTranslation)();return r().createElement("div",null,r().createElement("span",{className:T},t("startedOn","Started on")," "),r().createElement("span",{className:"body"},(0,c.formatDatetime)(new Date(e.localDateStarted))),r().createElement("br",null),r().createElement("span",{className:T},t("completedOn","Completed on")," "),r().createElement("span",{className:"body"},(0,c.formatDatetime)(new Date(e.localDateStopped))),r().createElement("br",null),r().createElement("span",{className:T},t("duration","Duration")," "),r().createElement("span",{className:"body"},e.importTime),r().createElement("br",null),r().createElement("br",null),r().createElement("span",{className:T},t("result","Result:")," "),r().createElement("br",null),r().createElement("div",{className:l()("body","-esm-openconceptlab__import-overview__indentedContent___4nLqa")},r().createElement("span",null,e.upToDateItemsCount," ",t("conceptsUpToDate","concepts up to date")),r().createElement("br",null),r().createElement("span",null,e.addedItemsCount," ",t("conceptsAdded","concepts added")),r().createElement("br",null),r().createElement("span",null,e.updatedItemsCount," ",t("conceptsUpdated","concepts updated")),r().createElement("br",null),r().createElement("span",null,e.retiredItemsCount," ",t("conceptsRetired","concepts retired")),r().createElement("br",null),r().createElement("span",null,e.errorItemsCount," ",t("errorsFound","errors found")),r().createElement("br",null),r().createElement("span",null,e.ignoredErrorsCount," ",t("errorsIgnored","errors ignored")),r().createElement("br",null)),r().createElement("br",null),0!=e.errorItemsCount&&r().createElement(k,{importUuid:e.uuid}))},w="-esm-openconceptlab__previous-imports__grid___vDXOz",N="-esm-openconceptlab__previous-imports__productiveHeading03___Y-mRO",v=()=>{let{t:e}=(0,i.useTranslation)(),[t,n]=(0,a.useState)(10),{data:o,isLoading:l,error:m}=function(){let{data:e,error:t,isLoading:n,isValidating:a}=u()("/ws/rest/v1/openconceptlab/import?v=full",c.openmrsFetch);return{data:e?.data?.results,error:t,isLoading:n,isValidating:a}}(),{results:p,currentPage:d,goTo:b}=(0,c.usePagination)(o,t);if(l)return r().createElement(s.Grid,{className:w},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement(s.SkeletonText,{className:N}),r().createElement(s.DataTableSkeleton,{showHeader:!1,showToolbar:!1,rowCount:10,columnCount:3}),r().createElement(s.PaginationSkeleton,null)));m&&(0,c.showNotification)({kind:"error",description:e("previousImportsFetchError","Error occured while fetching the imports")});let _=[{header:e("dateAndTime","Date and Time"),key:"localDateStarted"},{header:e("duration","Duration"),key:"importTime"},{header:e("status","Status"),key:"status"}],E=p?.map(e=>({id:e.uuid,localDateStarted:(0,c.formatDatetime)(new Date(e.localDateStarted)),importTime:e.importTime,status:e.status}));return!l&&!m&&r().createElement(s.Grid,{className:w},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement("h3",{className:N},e("previousImports","Previous Imports")),r().createElement(s.DataTable,{rows:E,headers:_,size:"sm"},({rows:e,headers:t,getHeaderProps:n,getRowProps:l,getTableProps:i})=>r().createElement(s.Table,{...i(),className:"-esm-openconceptlab__previous-imports__tableBordered___DZHsa"},r().createElement(s.TableHead,null,r().createElement(s.TableRow,null,r().createElement(s.TableExpandHeader,null),t.map((e,t)=>r().createElement(s.TableHeader,{key:t,...n({header:e})},e.header)))),r().createElement(s.TableBody,null,e.map(e=>r().createElement(a.Fragment,{key:e.id},r().createElement(s.TableExpandRow,{...l({row:e}),className:"-esm-openconceptlab__previous-imports__tableRow___Z8Au5"},e.cells.map(e=>r().createElement(s.TableCell,{key:e.id},e.value))),e.isExpanded&&r().createElement(s.TableExpandedRow,{colSpan:t.length+1,className:"-esm-openconceptlab__previous-imports__tableExpandedRow___gtaig"},r().createElement(y,{selectedImportObject:o.find(t=>t.uuid===e.id)}))))))),r().createElement(s.Pagination,{className:"-esm-openconceptlab__previous-imports__pagination___EhrLO",size:"sm",page:d,pageSize:t,pageSizes:[10,20,50,100],totalItems:o.length,onChange:({page:e,pageSize:t})=>{b(e),n(t)}})))};var C=n(254);async function F(e,t){let n=(0,C.A)(e.uuid)?"/ws/rest/v1/openconceptlab/subscription":`/ws/rest/v1/openconceptlab/subscription/${e.uuid}`;return(0,c.openmrsFetch)(n,{method:"POST",body:e,headers:{"Content-Type":"application/json"},signal:t?.signal})}async function x(e,t){let n=`/ws/rest/v1/openconceptlab/subscription/${e.uuid}`;return(0,c.openmrsFetch)(n,{method:"DELETE",signal:t?.signal})}let D=e=>{let t;e.endsWith("/")&&(e=e.substring(0,e.lastIndexOf("/")));try{t=new URL(e)}catch(e){return!1}return(t.pathname.match(/\//g)?.length??0)==5},I="-esm-openconceptlab__subscription__grid___6QxTX",O="-esm-openconceptlab__subscription__productiveHeading03___u53nE",P="-esm-openconceptlab__subscription__formGroup___RxpgP",A="-esm-openconceptlab__subscription__unsubscribeText___yW3t-",L="-esm-openconceptlab__subscription__unsubscribeForm___Gr+gA",U=()=>{let{t:e}=(0,i.useTranslation)(),{mutate:t}=(0,m.useSWRConfig)(),[n,o]=(0,a.useState)(""),[l,p]=(0,a.useState)(""),[d,b]=(0,a.useState)(!1),[_,E]=(0,a.useState)("FULL"),[h,g]=(0,a.useState)(!1),{data:f,isLoading:S,error:k}=function(){let{data:e,error:t,isLoading:n,isValidating:a}=u()("/ws/rest/v1/openconceptlab/subscription?v=full",c.openmrsFetch);return{data:e?.data?.results[0],error:t,isLoading:n,isValidating:a}}();(0,a.useEffect)(()=>{S||k||(o(f?.url||""),p(f?.token||""),b(f?.subscribedToSnapshot||!1),E(f?.validationType||"FULL"),g(!!f&&D(f.url)))},[S,k,f]);let T=(0,a.useCallback)(e=>{o(e.target.value),D(e.target.value)?(g(!0),b(!1)):g(!1)},[]),y=(0,a.useCallback)(e=>{p(e.target.value)},[]),w=(0,a.useCallback)((e,{checked:t,id:n})=>{E(t?"NONE":"FULL")},[]),N=(0,a.useCallback)((e,{checked:t,id:n})=>{b(t)},[]),v=(0,a.useCallback)(async a=>{if(a.preventDefault(),a.stopPropagation(),h&&d)return void(0,c.showNotification)({kind:"error",description:e("snapshotDisabledError","You cannot subscribe to a SNAPSHOT if you've provided the collection version")});let r=new AbortController,o={...f,url:n,token:l,validationType:_,subscribedToSnapshot:d};t("/ws/rest/v1/openconceptlab/subscription?v=full",o,!1);let s=await F(o,r);return t("/ws/rest/v1/openconceptlab/subscription?v=full"),s.ok?(0,c.showNotification)({kind:"success",description:e(201===s.status?"subscriptionCreated":"subscriptionUpdated",201===s.status?"Subscription created successfully":"Subscription updated successfully")}):(0,c.showNotification)({title:e("errorSavingSubscription","Error occured while saving the subscription"),kind:"error",critical:!0,description:JSON.stringify(s.data)}),()=>r.abort()},[n,l,_,d,h,f,e,t]),C=(0,a.useCallback)(()=>{o(f?.url||""),p(f?.token||""),b(f?.subscribedToSnapshot||!1),E(f?.validationType||"FULL"),g(!!f&&D(f.url)),(0,c.showNotification)({kind:"info",description:e("cancelledChanges","Cancelled changes successfully")})},[f,e]),U=(0,a.useCallback)(async n=>{n.preventDefault(),n.stopPropagation();let a=new AbortController,r=await x(f,a);return t("/ws/rest/v1/openconceptlab/subscription?v=full"),204===r.status?(o(""),p(""),b(!1),E("FULL"),g(!1),(0,c.showNotification)({kind:"success",description:e("subscriptionDeleted","Successfully unsubscribed")})):(0,c.showNotification)({title:e("errorDeletingSubscription","Error occured while deleting the subscription"),kind:"error",critical:!0,description:JSON.stringify(r.data)}),()=>a.abort()},[f,e,t]);return S?r().createElement(s.Grid,{className:I},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement(s.Form,null,r().createElement(s.SkeletonText,{className:O}),r().createElement(s.Stack,{gap:5},r().createElement(s.TextInputSkeleton,null),r().createElement(s.TextInputSkeleton,null),r().createElement(s.FormGroup,{legendText:r().createElement(s.SkeletonText,{width:"75px"}),className:P},r().createElement(s.CheckboxSkeleton,null),r().createElement(s.CheckboxSkeleton,null))),r().createElement(s.ButtonSkeleton,null),r().createElement(s.ButtonSkeleton,null)),r().createElement(s.Form,{className:L},r().createElement(s.SkeletonText,{className:O}),r().createElement(s.SkeletonText,{className:A}),r().createElement(s.ButtonSkeleton,null)))):(k&&(0,c.showNotification)({kind:"error",description:e("subscriptionError","Error occured while fetching the subscription")}),r().createElement(s.Grid,{className:I},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement(s.Form,{onSubmit:v},r().createElement("h3",{className:O},e("setupSubscription","Setup Subscription")),r().createElement(s.Stack,{gap:5},r().createElement(s.Layer,null,r().createElement(s.TextInput,{id:"subscriptionUrl",type:"url",labelText:e("subscriptionUrl","Subscription URL"),placeholder:"https://api.openconceptlab.org/orgs/organization-name/collections/dictionary-name",value:n,onChange:T,required:!0})),r().createElement(s.Layer,null,r().createElement(s.TextInput,{id:"apiToken",type:"password",placeholder:"••••••••••••••••••••••••••••••••••••••••••••••••",labelText:e("apiToken","Token"),value:l,onChange:y,required:!0})),r().createElement(s.FormGroup,{legendText:e("advancedOptions","Advanced Options"),className:P},r().createElement(s.Checkbox,{checked:d,onChange:N,labelText:e("subscribeToSnapshotText","Subscribe to SNAPSHOT versions (not recommended)"),id:"isSubscribedToSnapshot",disabled:h}),r().createElement(s.Checkbox,{checked:"NONE"===_,onChange:w,labelText:e("disableValidationText","Disable validation (should be used with care for well curated collections or sources)"),id:"isValidationDisabled"}))),r().createElement(s.Button,{kind:"secondary",onClick:C},e("cancelButton","Cancel changes")),r().createElement(s.Button,{kind:"primary",type:"submit"},e("subscribeButton","Save changes"))),r().createElement(s.Form,{onSubmit:U,className:L},r().createElement("h3",{className:O},e("unsubscribe","Unsubscribe")),r().createElement("p",{className:A},e("unsubscribeInfo","If you unsubscribe, no concepts will be deleted nor changed. All information about subscription will be deleted from your system.")),r().createElement(s.Button,{kind:"danger",type:"submit",disabled:!f},e("unsubscribeButton","Unsubscribe"))))))},H="-esm-openconceptlab__root__tabPanel___93q1W",B=()=>{let{t:e}=(0,i.useTranslation)();return r().createElement("main",{className:l()("omrs-main-content","-esm-openconceptlab__root__main___cY7YF")},r().createElement(c.PageHeader,{className:"-esm-openconceptlab__root__header___qVH-V"},r().createElement(c.PageHeaderContent,{illustration:r().createElement(c.ConceptDictionaryPictogram,null),title:e("moduleTitle","OCL Subscription Module")})),r().createElement(s.Tabs,null,r().createElement(s.TabList,{"aria-label":"OCL tabs",className:"-esm-openconceptlab__root__tabList___wT42t",contained:!0},r().createElement(s.Tab,null,e("subscription","Subscription")," "),r().createElement(s.Tab,null,e("import","Import")," "),r().createElement(s.Tab,null,e("previousImports","Previous Imports")," ")),r().createElement(s.TabPanels,null,r().createElement(s.TabPanel,{className:H},r().createElement(U,null)),r().createElement(s.TabPanel,{className:H},r().createElement(f,null)),r().createElement(s.TabPanel,{className:H},r().createElement(v,null)))))}},3373(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",r=0;r<arguments.length;r++){var o=arguments[r];o&&(e=a(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var o in e)t.call(e,o)&&e[o]&&(r=a(r,o));return r}(o)))}return e}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()},254(e,t,n){"use strict";n.d(t,{A:()=>a});let a=function(e){return null==e}}}]);
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_openconceptlab_app=globalThis.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([["3799"],{2138(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>B});var a=n(2491),r=n.n(a),o=n(3373),l=n.n(o),s=n(4920),i=n(4011),c=n(5500),m=n(5327),u=n.n(m);async function p(e){return(0,c.openmrsFetch)("/ws/rest/v1/openconceptlab/import",{method:"POST",body:{},headers:{"Content-Type":"application/json"},signal:e?.signal})}async function d(e,t){let n=new FormData;return n.append("file",e),(0,c.openmrsFetch)("/ws/rest/v1/openconceptlab/import",{method:"POST",body:n,signal:t?.signal})}let b="-esm-openconceptlab__import__grid___zbAjr",_="-esm-openconceptlab__import__productiveHeading03___M4cku",E="-esm-openconceptlab__import__form___bZoUd",h="-esm-openconceptlab__import__formText___Aeytl",g=()=>{let{t:e}=(0,i.useTranslation)(),[t,n]=(0,a.useState)(!1),[o,l]=(0,a.useState)(),[m,g]=(0,a.useState)(!1),{data:f,isLoading:S,error:k}=function(){let{data:e,error:t,isLoading:n,isValidating:a}=u()("/ws/rest/v1/openconceptlab/subscription?v=full",c.openmrsFetch);return{data:e?.data?.results[0],error:t,isLoading:n,isValidating:a}}();(0,a.useEffect)(()=>{S||k||n(!!f)},[S,k,f]);let T=(0,a.useCallback)((t,{addedFiles:n})=>{let a=n[0];a&&a.name.toLowerCase().endsWith(".zip")?l(a):(0,c.showNotification)({kind:"error",description:e("fileFormatError","Only .zip files are allowed")})},[e]),y=(0,a.useCallback)(()=>{l(null)},[]),w=(0,a.useCallback)(async n=>{if(n.preventDefault(),n.stopPropagation(),!t)return void(0,c.showNotification)({kind:"error",description:e("noSubscriptionError","No saved subscription")});let a=new AbortController;201===(await p(a)).status?(0,c.showNotification)({kind:"success",description:e("importSuccess","Import started successfully")}):(0,c.showNotification)({kind:"error",description:e("importFailed","Import failed")})},[t,e]),N=(0,a.useCallback)(async t=>{if(g(!0),t.preventDefault(),t.stopPropagation(),!o){g(!1),(0,c.showNotification)({kind:"error",description:e("noFileSelected","No file selected")});return}let n=new AbortController;201===(await d(o,n)).status?(l(null),g(!1),(0,c.showNotification)({kind:"success",description:e("importSuccess","Import started successfully")})):(g(!1),(0,c.showNotification)({kind:"error",description:e("importFailed","Import failed")}))},[o,e]);return S?r().createElement(s.Grid,{className:b},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement(s.Form,null,r().createElement(s.SkeletonText,{className:_,heading:!0}),r().createElement(s.SkeletonText,{className:h,paragraph:!0,lineCount:2}),r().createElement(s.ButtonSkeleton,null)),r().createElement(s.Form,{className:E},r().createElement(s.SkeletonText,{className:_,heading:!0}),r().createElement(s.SkeletonText,{className:h}),r().createElement(s.FileUploaderSkeleton,{style:{marginBottom:"1.5rem"}}),r().createElement(s.ButtonSkeleton,null)))):(k&&(0,c.showNotification)({kind:"error",description:e("subscriptionError","Error occured while fetching the subscription")}),r().createElement(s.Grid,{className:b},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement(s.Form,{onSubmit:w},r().createElement("h3",{className:_},e("importConcepts","Import Concepts")),r().createElement("p",{className:h},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.")),r().createElement(s.Button,{kind:"primary",type:"submit",disabled:!t},e("importFromSubscription","Import from Subscription"))),r().createElement(s.Form,{className:E,onSubmit:N},r().createElement("h3",{className:_},e("importFromFileHeading","Import from file (Offline)")),r().createElement("p",{className:h},e("importFromFileInfo","You can import data without setting up a subscription by using this option.")),o?r().createElement(s.FileUploaderItem,{key:o.name,name:o.name,size:"md",status:"edit",iconDescription:e("fileAdded","File Added"),onDelete:y,style:{backgroundColor:"#e0e0e0"}}):r().createElement(s.FileUploaderDropContainer,{accept:[".zip"],multiple:!0,labelText:e("importFromFileDragInfo","Drag and drop file here or click to upload"),onAddFiles:T,style:{marginBottom:"1.5rem"}}),r().createElement(s.Stack,{gap:6,orientation:"horizontal"},r().createElement(s.Button,{kind:"primary",type:"submit"},e("importFromFile","Import from file")),m&&r().createElement(s.InlineLoading,{description:e("uploading","Uploading...")}))))))};async function f(e,t){let n=`/ws/rest/v1/openconceptlab/import/${e}/item?state=ERROR&v=full`;return(0,c.openmrsFetch)(n,{method:"GET",signal:t?.signal})}let S=({importUuid:e})=>{let{t}=(0,i.useTranslation)(),[n,o]=(0,a.useState)(),[l,m]=(0,a.useState)(5),[u,p]=(0,a.useState)([]),{results:d,currentPage:b,goTo:_}=(0,c.usePagination)(u,l),E=(0,a.useCallback)(async e=>{o(!0);let n=new AbortController,a=await f(e,n);return a.ok?p(a.data.results):(0,c.showNotification)({title:t("importItemsFetchError","Error occured while fetching the import items"),kind:"error",critical:!0,description:JSON.stringify(a.data)}),o(!1),()=>n.abort()},[t]);if((0,a.useEffect)(()=>{E(e)},[E,e]),n)return r().createElement("div",null,r().createElement(s.DataTableSkeleton,{showHeader:!1,showToolbar:!1,columnCount:2}),r().createElement(s.PaginationSkeleton,null));let h=[{header:t("conceptOrMapping","Concept/Mapping"),key:"uuid"},{header:t("message","Message"),key:"errorMessage"}];return!n&&r().createElement("div",null,r().createElement(s.Table,{size:"sm",className:"-esm-openconceptlab__import-items__tableBordered___HFu3Y"},r().createElement(s.TableHead,null,r().createElement(s.TableRow,{className:"-esm-openconceptlab__import-items__tableHeaderRow___NZ9bl"},h.map((e,t)=>r().createElement(s.TableHeader,{key:t,isSortable:!0},e.header)))),r().createElement(s.TableBody,null,d?.map(e=>r().createElement(a.Fragment,{key:e.uuid},r().createElement(s.TableRow,{className:"-esm-openconceptlab__import-items__tableDataRow___hqtpK"},r().createElement(s.TableCell,null,r().createElement(s.Link,{href:e.versionUrl},e.type," ",e.uuid)),r().createElement(s.TableCell,null,e.errorMessage)))))),r().createElement(s.Pagination,{className:"-esm-openconceptlab__import-items__pagination___g1orb",size:"sm",page:b,pageSize:l,pageSizes:[5,10,20,50,100],totalItems:u?.length,onChange:({page:e,pageSize:t})=>{_(e),m(t)}}))},k="-esm-openconceptlab__import-overview__heading01___kHOsN",T=({selectedImportObject:e})=>{let{t}=(0,i.useTranslation)();return r().createElement("div",null,r().createElement("span",{className:k},t("startedOn","Started on")," "),r().createElement("span",{className:"body"},(0,c.formatDatetime)(new Date(e.localDateStarted))),r().createElement("br",null),r().createElement("span",{className:k},t("completedOn","Completed on")," "),r().createElement("span",{className:"body"},(0,c.formatDatetime)(new Date(e.localDateStopped))),r().createElement("br",null),r().createElement("span",{className:k},t("duration","Duration")," "),r().createElement("span",{className:"body"},e.importTime),r().createElement("br",null),r().createElement("br",null),r().createElement("span",{className:k},t("result","Result:")," "),r().createElement("br",null),r().createElement("div",{className:l()("body","-esm-openconceptlab__import-overview__indentedContent___4nLqa")},r().createElement("span",null,e.upToDateItemsCount," ",t("conceptsUpToDate","concepts up to date")),r().createElement("br",null),r().createElement("span",null,e.addedItemsCount," ",t("conceptsAdded","concepts added")),r().createElement("br",null),r().createElement("span",null,e.updatedItemsCount," ",t("conceptsUpdated","concepts updated")),r().createElement("br",null),r().createElement("span",null,e.retiredItemsCount," ",t("conceptsRetired","concepts retired")),r().createElement("br",null),r().createElement("span",null,e.errorItemsCount," ",t("errorsFound","errors found")),r().createElement("br",null),r().createElement("span",null,e.ignoredErrorsCount," ",t("errorsIgnored","errors ignored")),r().createElement("br",null)),r().createElement("br",null),0!=e.errorItemsCount&&r().createElement(S,{importUuid:e.uuid}))},y="-esm-openconceptlab__previous-imports__grid___vDXOz",w="-esm-openconceptlab__previous-imports__productiveHeading03___Y-mRO",N=()=>{let{t:e}=(0,i.useTranslation)(),[t,n]=(0,a.useState)(10),{data:o,isLoading:l,error:m}=function(){let{data:e,error:t,isLoading:n,isValidating:a}=u()("/ws/rest/v1/openconceptlab/import?v=full",c.openmrsFetch);return{data:e?.data?.results,error:t,isLoading:n,isValidating:a}}(),{results:p,currentPage:d,goTo:b}=(0,c.usePagination)(o,t);if(l)return r().createElement(s.Grid,{className:y},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement(s.SkeletonText,{className:w}),r().createElement(s.DataTableSkeleton,{showHeader:!1,showToolbar:!1,rowCount:10,columnCount:3}),r().createElement(s.PaginationSkeleton,null)));m&&(0,c.showNotification)({kind:"error",description:e("previousImportsFetchError","Error occured while fetching the imports")});let _=[{header:e("dateAndTime","Date and Time"),key:"localDateStarted"},{header:e("duration","Duration"),key:"importTime"},{header:e("status","Status"),key:"status"}],E=p?.map(e=>({id:e.uuid,localDateStarted:(0,c.formatDatetime)(new Date(e.localDateStarted)),importTime:e.importTime,status:e.status}));return!l&&!m&&r().createElement(s.Grid,{className:y},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement("h3",{className:w},e("previousImports","Previous Imports")),r().createElement(s.DataTable,{rows:E,headers:_,size:"sm"},({rows:e,headers:t,getHeaderProps:n,getRowProps:l,getTableProps:i})=>r().createElement(s.Table,{...i(),className:"-esm-openconceptlab__previous-imports__tableBordered___DZHsa"},r().createElement(s.TableHead,null,r().createElement(s.TableRow,null,r().createElement(s.TableExpandHeader,null),t.map((e,t)=>r().createElement(s.TableHeader,{key:t,...n({header:e})},e.header)))),r().createElement(s.TableBody,null,e.map(e=>r().createElement(a.Fragment,{key:e.id},r().createElement(s.TableExpandRow,{...l({row:e}),className:"-esm-openconceptlab__previous-imports__tableRow___Z8Au5"},e.cells.map(e=>r().createElement(s.TableCell,{key:e.id},e.value))),e.isExpanded&&r().createElement(s.TableExpandedRow,{colSpan:t.length+1,className:"-esm-openconceptlab__previous-imports__tableExpandedRow___gtaig"},r().createElement(T,{selectedImportObject:o.find(t=>t.uuid===e.id)}))))))),r().createElement(s.Pagination,{className:"-esm-openconceptlab__previous-imports__pagination___EhrLO",size:"sm",page:d,pageSize:t,pageSizes:[10,20,50,100],totalItems:o.length,onChange:({page:e,pageSize:t})=>{b(e),n(t)}})))};var v=n(254);async function C(e,t){let n=(0,v.A)(e.uuid)?"/ws/rest/v1/openconceptlab/subscription":`/ws/rest/v1/openconceptlab/subscription/${e.uuid}`;return(0,c.openmrsFetch)(n,{method:"POST",body:e,headers:{"Content-Type":"application/json"},signal:t?.signal})}async function F(e,t){let n=`/ws/rest/v1/openconceptlab/subscription/${e.uuid}`;return(0,c.openmrsFetch)(n,{method:"DELETE",signal:t?.signal})}let x=e=>{let t;e.endsWith("/")&&(e=e.substring(0,e.lastIndexOf("/")));try{t=new URL(e)}catch(e){return!1}return(t.pathname.match(/\//g)?.length??0)==5},D="-esm-openconceptlab__subscription__grid___6QxTX",I="-esm-openconceptlab__subscription__productiveHeading03___u53nE",O="-esm-openconceptlab__subscription__formGroup___RxpgP",P="-esm-openconceptlab__subscription__unsubscribeText___yW3t-",A="-esm-openconceptlab__subscription__unsubscribeForm___Gr+gA",L=()=>{let{t:e}=(0,i.useTranslation)(),{mutate:t}=(0,m.useSWRConfig)(),[n,o]=(0,a.useState)(""),[l,p]=(0,a.useState)(""),[d,b]=(0,a.useState)(!1),[_,E]=(0,a.useState)("FULL"),[h,g]=(0,a.useState)(!1),{data:f,isLoading:S,error:k}=function(){let{data:e,error:t,isLoading:n,isValidating:a}=u()("/ws/rest/v1/openconceptlab/subscription?v=full",c.openmrsFetch);return{data:e?.data?.results[0],error:t,isLoading:n,isValidating:a}}();(0,a.useEffect)(()=>{S||k||(o(f?.url||""),p(f?.token||""),b(f?.subscribedToSnapshot||!1),E(f?.validationType||"FULL"),g(!!f&&x(f.url)))},[S,k,f]);let T=(0,a.useCallback)(e=>{o(e.target.value),x(e.target.value)?(g(!0),b(!1)):g(!1)},[]),y=(0,a.useCallback)(e=>{p(e.target.value)},[]),w=(0,a.useCallback)((e,{checked:t,id:n})=>{E(t?"NONE":"FULL")},[]),N=(0,a.useCallback)((e,{checked:t,id:n})=>{b(t)},[]),v=(0,a.useCallback)(async a=>{if(a.preventDefault(),a.stopPropagation(),h&&d)return void(0,c.showNotification)({kind:"error",description:e("snapshotDisabledError","You cannot subscribe to a SNAPSHOT if you've provided the collection version")});let r=new AbortController,o={...f,url:n,token:l,validationType:_,subscribedToSnapshot:d};try{let n=await C(o,r);t("/ws/rest/v1/openconceptlab/subscription?v=full"),(0,c.showNotification)({kind:"success",description:e(201===n.status?"subscriptionCreated":"subscriptionUpdated",201===n.status?"Subscription created successfully":"Subscription updated successfully")})}catch(a){let t=a instanceof c.OpenmrsFetchError?a.responseBody:null,n="object"==typeof t&&null!==t?t.error?.message:null;(0,c.showNotification)({title:e("errorSavingSubscription","Error occured while saving the subscription"),kind:"error",critical:!0,description:n??e("unexpectedError","An unexpected error occurred")})}return()=>r.abort()},[n,l,_,d,h,f,e,t]),L=(0,a.useCallback)(()=>{o(f?.url||""),p(f?.token||""),b(f?.subscribedToSnapshot||!1),E(f?.validationType||"FULL"),g(!!f&&x(f.url)),(0,c.showNotification)({kind:"info",description:e("cancelledChanges","Cancelled changes successfully")})},[f,e]),U=(0,a.useCallback)(async n=>{n.preventDefault(),n.stopPropagation();let a=new AbortController,r=await F(f,a);return t("/ws/rest/v1/openconceptlab/subscription?v=full"),204===r.status?(o(""),p(""),b(!1),E("FULL"),g(!1),(0,c.showNotification)({kind:"success",description:e("subscriptionDeleted","Successfully unsubscribed")})):(0,c.showNotification)({title:e("errorDeletingSubscription","Error occured while deleting the subscription"),kind:"error",critical:!0,description:JSON.stringify(r.data)}),()=>a.abort()},[f,e,t]);return S?r().createElement(s.Grid,{className:D},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement(s.Form,null,r().createElement(s.SkeletonText,{className:I}),r().createElement(s.Stack,{gap:5},r().createElement(s.TextInputSkeleton,null),r().createElement(s.TextInputSkeleton,null),r().createElement(s.FormGroup,{legendText:r().createElement(s.SkeletonText,{width:"75px"}),className:O},r().createElement(s.CheckboxSkeleton,null),r().createElement(s.CheckboxSkeleton,null))),r().createElement(s.ButtonSkeleton,null),r().createElement(s.ButtonSkeleton,null)),r().createElement(s.Form,{className:A},r().createElement(s.SkeletonText,{className:I}),r().createElement(s.SkeletonText,{className:P}),r().createElement(s.ButtonSkeleton,null)))):(k&&(0,c.showNotification)({kind:"error",description:e("subscriptionError","Error occured while fetching the subscription")}),r().createElement(s.Grid,{className:D},r().createElement(s.Column,{sm:4,md:8,lg:10},r().createElement(s.Form,{onSubmit:v},r().createElement("h3",{className:I},e("setupSubscription","Setup Subscription")),r().createElement(s.Stack,{gap:5},r().createElement(s.Layer,null,r().createElement(s.TextInput,{id:"subscriptionUrl",type:"url",labelText:e("subscriptionUrl","Subscription URL"),placeholder:"https://api.openconceptlab.org/orgs/organization-name/collections/dictionary-name",value:n,onChange:T,required:!0})),r().createElement(s.Layer,null,r().createElement(s.TextInput,{id:"apiToken",type:"password",placeholder:"••••••••••••••••••••••••••••••••••••••••••••••••",labelText:e("apiToken","Token"),value:l,onChange:y,required:!0})),r().createElement(s.FormGroup,{legendText:e("advancedOptions","Advanced Options"),className:O},r().createElement(s.Checkbox,{checked:d,onChange:N,labelText:e("subscribeToSnapshotText","Subscribe to SNAPSHOT versions (not recommended)"),id:"isSubscribedToSnapshot",disabled:h}),r().createElement(s.Checkbox,{checked:"NONE"===_,onChange:w,labelText:e("disableValidationText","Disable validation (should be used with care for well curated collections or sources)"),id:"isValidationDisabled"}))),r().createElement(s.Button,{kind:"secondary",onClick:L},e("cancelButton","Cancel changes")),r().createElement(s.Button,{kind:"primary",type:"submit"},e("subscribeButton","Save changes"))),r().createElement(s.Form,{onSubmit:U,className:A},r().createElement("h3",{className:I},e("unsubscribe","Unsubscribe")),r().createElement("p",{className:P},e("unsubscribeInfo","If you unsubscribe, no concepts will be deleted nor changed. All information about subscription will be deleted from your system.")),r().createElement(s.Button,{kind:"danger",type:"submit",disabled:!f},e("unsubscribeButton","Unsubscribe"))))))},U="-esm-openconceptlab__root__tabPanel___93q1W",B=()=>{let{t:e}=(0,i.useTranslation)();return r().createElement("main",{className:l()("omrs-main-content","-esm-openconceptlab__root__main___cY7YF")},r().createElement(c.PageHeader,{className:"-esm-openconceptlab__root__header___qVH-V"},r().createElement(c.PageHeaderContent,{illustration:r().createElement(c.ConceptDictionaryPictogram,null),title:e("moduleTitle","OCL Subscription Module")})),r().createElement(s.Tabs,null,r().createElement(s.TabList,{"aria-label":"OCL tabs",className:"-esm-openconceptlab__root__tabList___wT42t",contained:!0},r().createElement(s.Tab,null,e("subscription","Subscription")," "),r().createElement(s.Tab,null,e("import","Import")," "),r().createElement(s.Tab,null,e("previousImports","Previous Imports")," ")),r().createElement(s.TabPanels,null,r().createElement(s.TabPanel,{className:U},r().createElement(L,null)),r().createElement(s.TabPanel,{className:U},r().createElement(g,null)),r().createElement(s.TabPanel,{className:U},r().createElement(N,null)))))}},3373(e){!function(){"use strict";var t={}.hasOwnProperty;function n(){for(var e="",r=0;r<arguments.length;r++){var o=arguments[r];o&&(e=a(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var o in e)t.call(e,o)&&e[o]&&(r=a(r,o));return r}(o)))}return e}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return n}):window.classNames=n}()},254(e,t,n){"use strict";n.d(t,{A:()=>a});let a=function(e){return null==e}}}]);
|
package/dist/3799.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3799.js","sources":["webpack://@openmrs/esm-openconceptlab-app/./src/import/import.resource.ts","webpack://@openmrs/esm-openconceptlab-app/./src/import/import.scss?7e9a","webpack://@openmrs/esm-openconceptlab-app/./src/import/import.component.tsx","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/import-overview/import-items.resource.ts","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/import-overview/import-items.scss?b7ea","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/import-overview/import-items.component.tsx","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/import-overview/import-overview.scss?b870","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/import-overview/import-overview.component.tsx","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/previous-imports.scss?c0fc","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/previous-imports.component.tsx","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/previous-imports.resource.ts","webpack://@openmrs/esm-openconceptlab-app/./src/subscription/subscription.resource.ts","webpack://@openmrs/esm-openconceptlab-app/./src/utils.ts","webpack://@openmrs/esm-openconceptlab-app/./src/subscription/subscription.scss?af6b","webpack://@openmrs/esm-openconceptlab-app/./src/subscription/subscription.component.tsx","webpack://@openmrs/esm-openconceptlab-app/./src/root.scss?e7b0","webpack://@openmrs/esm-openconceptlab-app/./src/root.component.tsx","webpack://@openmrs/esm-openconceptlab-app/../../node_modules/classnames/index.js","webpack://@openmrs/esm-openconceptlab-app/../../node_modules/lodash-es/isNil.js"],"names":["startImportWithSubscription","abortController","openmrsFetch","startImportWithFile","file","formData","FormData","allowedMimeTypes","t","useTranslation","isSubscriptionAvailable","setIsSubscriptionAvailable","useState","setFile","isFileUploading","setIsFileUploading","subscription","isLoading","error","useSubscription","data","isValidating","useSWR","useEffect","onAddFiles","useCallback","evt","addedFiles","fileToUpload","showNotification","handleFileUploaderItemClick","handleImportWithSubscription","AbortController","response","handleImportWithFile","Grid","Column","Form","SkeletonText","ButtonSkeleton","FileUploaderSkeleton","Button","FileUploaderItem","FileUploaderDropContainer","Stack","InlineLoading","getImportDetails","importUuid","url","setIsLoading","pageSize","setPageSize","selectedImportItems","setSelectedImportItems","results","currentPage","goTo","usePagination","handleImportDetails","uuid","JSON","DataTableSkeleton","PaginationSkeleton","headerData","Table","TableHead","TableRow","header","i","TableHeader","TableBody","row","Fragment","TableCell","Link","Pagination","page","selectedImportObject","formatDatetime","Date","classNames","ImportItems","prevImports","usePreviousImports","rowData","prevImport","DataTable","rows","headers","getHeaderProps","getRowProps","getTableProps","TableExpandHeader","TableExpandRow","cell","TableExpandedRow","ImportOverview","importItem","updateSubscription","isNil","deleteSubscription","isVersionDefinedInUrl","subscriptionUrl","URL","e","count","mutate","useSWRConfig","setSubscriptionUrl","token","setToken","isSubscribedToSnapshot","setIsSubscribedToSnapshot","validationType","setValidationType","isSnapshotOptionDisabled","setIsSnapshotOptionDisabled","handleChangeSubscriptionUrl","event","handleChangeToken","handleChangeValidationType","checked","id","handleChangeSubscriptionType","handleSubmit","updatedSubscription","handleCancel","handleUnsubscribe","TextInputSkeleton","FormGroup","CheckboxSkeleton","Layer","TextInput","Checkbox","PageHeader","PageHeaderContent","ConceptDictionaryPictogram","Tabs","TabList","Tab","TabPanels","TabPanel","Subscription","Import","PreviousImports","arguments","a","Array","Object","define","window"],"mappings":"sRAkBO,eAAeA,EAA4BC,CAAiC,EAEjF,MAAOC,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EADK,oCACqB,CAC/B,OAAQ,OACR,KAAM,CAAC,EACP,QAAS,CACP,eAAgB,kBAClB,EACA,OAAQD,GAAiB,MAC3B,EACF,CAEO,eAAeE,EAAoBC,CAAU,CAAEH,CAAiC,EAErF,IAAMI,EAAqB,IAAIC,SAE/B,OADAD,EAAS,MAAM,CAAC,OAAQD,GACjBF,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAHK,oCAGqB,CAC/B,OAAQ,OACR,KAAMG,EACN,OAAQJ,GAAiB,MAC3B,EACF,CCtCA,MAAuB,8CAAkE,6DAAkE,8CAAuD,gDCkB5MM,EAAmB,CAAC,kBAAmB,+BAA+B,CAsL5E,EApLyB,KACvB,GAAM,CAAEC,EAAAA,CAAC,CAAE,CAAGC,AAAAA,GAAAA,EAAAA,cAAAA,AAAAA,IACR,CAACC,EAAyBC,EAA2B,CAAGC,AAAAA,GAAAA,EAAAA,QAAAA,AAAAA,EAAS,IACjE,CAACR,EAAMS,EAAQ,CAAGD,AAAAA,GAAAA,EAAAA,QAAAA,AAAAA,IAClB,CAACE,EAAiBC,EAAmB,CAAGH,AAAAA,GAAAA,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|
|
1
|
+
{"version":3,"file":"3799.js","sources":["webpack://@openmrs/esm-openconceptlab-app/./src/import/import.resource.ts","webpack://@openmrs/esm-openconceptlab-app/./src/import/import.scss?7e9a","webpack://@openmrs/esm-openconceptlab-app/./src/import/import.component.tsx","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/import-overview/import-items.resource.ts","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/import-overview/import-items.scss?b7ea","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/import-overview/import-items.component.tsx","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/import-overview/import-overview.scss?b870","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/import-overview/import-overview.component.tsx","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/previous-imports.scss?c0fc","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/previous-imports.component.tsx","webpack://@openmrs/esm-openconceptlab-app/./src/previous-imports/previous-imports.resource.ts","webpack://@openmrs/esm-openconceptlab-app/./src/subscription/subscription.resource.ts","webpack://@openmrs/esm-openconceptlab-app/./src/utils.ts","webpack://@openmrs/esm-openconceptlab-app/./src/subscription/subscription.scss?af6b","webpack://@openmrs/esm-openconceptlab-app/./src/subscription/subscription.component.tsx","webpack://@openmrs/esm-openconceptlab-app/./src/root.scss?e7b0","webpack://@openmrs/esm-openconceptlab-app/./src/root.component.tsx","webpack://@openmrs/esm-openconceptlab-app/../../node_modules/classnames/index.js","webpack://@openmrs/esm-openconceptlab-app/../../node_modules/lodash-es/isNil.js"],"names":["startImportWithSubscription","abortController","openmrsFetch","startImportWithFile","file","formData","FormData","t","useTranslation","isSubscriptionAvailable","setIsSubscriptionAvailable","useState","setFile","isFileUploading","setIsFileUploading","subscription","isLoading","error","useSubscription","data","isValidating","useSWR","useEffect","onAddFiles","useCallback","evt","addedFiles","fileToUpload","showNotification","handleFileUploaderItemClick","handleImportWithSubscription","AbortController","response","handleImportWithFile","Grid","Column","Form","SkeletonText","ButtonSkeleton","FileUploaderSkeleton","Button","FileUploaderItem","FileUploaderDropContainer","Stack","InlineLoading","getImportDetails","importUuid","url","setIsLoading","pageSize","setPageSize","selectedImportItems","setSelectedImportItems","results","currentPage","goTo","usePagination","handleImportDetails","uuid","JSON","DataTableSkeleton","PaginationSkeleton","headerData","Table","TableHead","TableRow","header","i","TableHeader","TableBody","row","Fragment","TableCell","Link","Pagination","page","selectedImportObject","formatDatetime","Date","classNames","ImportItems","prevImports","usePreviousImports","rowData","prevImport","DataTable","rows","headers","getHeaderProps","getRowProps","getTableProps","TableExpandHeader","TableExpandRow","cell","TableExpandedRow","ImportOverview","importItem","updateSubscription","isNil","deleteSubscription","isVersionDefinedInUrl","subscriptionUrl","URL","e","count","mutate","useSWRConfig","setSubscriptionUrl","token","setToken","isSubscribedToSnapshot","setIsSubscribedToSnapshot","validationType","setValidationType","isSnapshotOptionDisabled","setIsSnapshotOptionDisabled","handleChangeSubscriptionUrl","event","handleChangeToken","handleChangeValidationType","checked","id","handleChangeSubscriptionType","handleSubmit","updatedSubscription","responseBody","OpenmrsFetchError","reason","handleCancel","handleUnsubscribe","TextInputSkeleton","FormGroup","CheckboxSkeleton","Layer","TextInput","Checkbox","PageHeader","PageHeaderContent","ConceptDictionaryPictogram","Tabs","TabList","Tab","TabPanels","TabPanel","Subscription","Import","PreviousImports","arguments","a","Array","Object","define","window"],"mappings":"sRAkBO,eAAeA,EAA4BC,CAAiC,EAEjF,MAAOC,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EADK,oCACqB,CAC/B,OAAQ,OACR,KAAM,CAAC,EACP,QAAS,CACP,eAAgB,kBAClB,EACA,OAAQD,GAAiB,MAC3B,EACF,CAEO,eAAeE,EAAoBC,CAAU,CAAEH,CAAiC,EAErF,IAAMI,EAAqB,IAAIC,SAE/B,OADAD,EAAS,MAAM,CAAC,OAAQD,GACjBF,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAHK,oCAGqB,CAC/B,OAAQ,OACR,KA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,GAEd,IAAK,IAAI,KAAO,EACX,EAAO,IAAI,CAAC,EAAK,IAAQ,CAAG,CAAC,EAAI,EACpC,GAAUF,EAAY,EAAS,EAAG,EAIpC,OAAO,CACR,EAjC6C,GAAI,CAEhD,CAEA,OAAO,CACR,CA8BA,SAASA,EAAa,CAAK,CAAE,CAAQ,SACpC,AAAK,EAID,EACI,EAAQ,IAAM,EAGf,EAAQ,EAPP,CAQT,CAEqC,EAAO,OAAO,EAClD,EAAW,OAAO,CAAG,EACrB,EAAO,OAAO,CAAG,GACP,AAAkB,YAAlB,OAAOG,QAAyB,AAAsB,UAAtB,OAAOA,OAAO,GAAG,EAAiBA,OAAO,GAAG,CAEtFA,OAAO,aAAc,EAAE,CAAE,WACxB,OAAO,CACR,GAEAC,OAAO,UAAU,CAAG,CAEtB,G,2CCpDA,MAJA,SAAe,CAAK,EAClB,OAAO,AAAS,MAAT,CACT,C"}
|
package/dist/5117.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_openconceptlab_app=globalThis.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([["5117"],{4300(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","manageConcepts":"Manage Concepts","message":"Message","moduleTitle":"OCL Subscription Module","noFileSelected":"No file selected","noSubscriptionError":"No saved subscription","openConceptLab":"Open Concept Lab","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..."}')}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_openconceptlab_app=globalThis.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([["5117"],{4300(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","manageConcepts":"Manage Concepts","message":"Message","moduleTitle":"OCL Subscription Module","noFileSelected":"No file selected","noSubscriptionError":"No saved subscription","openConceptLab":"Open Concept Lab","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","unexpectedError":"An unexpected error occurred","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/5117.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"5117.js","sources":["webpack://@openmrs/esm-openconceptlab-app/json|/home/runner/work/openmrs-esm-admin-tools/openmrs-esm-admin-tools/packages/esm-admin-openconceptlab-app/translations/en.json"],"names":["JSON"],"mappings":"yJAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"5117.js","sources":["webpack://@openmrs/esm-openconceptlab-app/json|/home/runner/work/openmrs-esm-admin-tools/openmrs-esm-admin-tools/packages/esm-admin-openconceptlab-app/translations/en.json"],"names":["JSON"],"mappings":"yJAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,gkF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var _openmrs_esm_openconceptlab_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@openmrs/esm-openconceptlab-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@openmrs/esm-openconceptlab-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={1193(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(523),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},M=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},O=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},_=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],T={},w=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(_))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-openconceptlab-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(M))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:O,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:w,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},1840(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},1772(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},9837(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(1772);let n=r(7789),o=r(3054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},3738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(1772);let n=r(7789),o=r(3054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},7789(e,t,r){r(1772);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-openconceptlab-app:4.4.1-pre.945";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},223(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3545(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},6917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1864(e,t,r){let n=r(3545),o=r(1092),i=r(2677),a=r(85),s=r(6781);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
|
|
1
|
+
var _openmrs_esm_openconceptlab_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@openmrs/esm-openconceptlab-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@openmrs/esm-openconceptlab-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={1193(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(523),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},M=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},O=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},_=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],T={},w=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(_))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-openconceptlab-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(M))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:O,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:w,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},1840(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},3054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},1853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},1772(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},9837(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(1772);let n=r(7789),o=r(3054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},3738(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(1772);let n=r(7789),o=r(3054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},7789(e,t,r){r(1772);let n=r(3054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-openconceptlab-app:4.4.1-pre.952";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},223(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3545(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},6917(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},1864(e,t,r){let n=r(3545),o=r(1092),i=r(2677),a=r(85),s=r(6781);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},85(e,t){t.RUNTIME_012="RUNTIME-012"},6781(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
|
|
2
2
|
${n}`),o.join("\n")}},1315(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:n,libraryType:o="global"})=>{let{runtime:i,instance:a,bundlerRuntime:s,sharedFallback:l}=n.federation;if(!l)return t;let u=l[e];if(!u)return t;let p=r?u.find(e=>e[1]===r):u[0];if(!p)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>i.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:p[2],entry:`${n.p}${p[0]}`,type:o,entryGlobalName:p[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(n.federation.instance,s).then(()=>t.get())})}},2677(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},523(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let n=r(223),o=r(3545),i=r(3586),a=r(1864),s=r(2221),l=r(4307),u=r(1180),p=r(367),c=r(1315),d=r(3738);d=n.__toESM(d);let f={remotes:i.remotes,consumes:a.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:u.initContainerEntry,init:p.init,getSharedFallbackGetter:c.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:o.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,b=h.bundlerRuntimeOptions;t.attachShareScopeMap=o.attachShareScopeMap,t.bundlerRuntime=f,t.bundlerRuntimeOptions=b,t.default=h,t.initOptions=g,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return d}})},367(e,t,r){let n=r(223),o=r(3738),i=r(9837);i=n.__toESM(i),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:n,sharedFallback:a,bundlerRuntime:s,libraryType:l}=e.federation;if(!t)throw Error("initOptions is required!");return t.plugins||=[],t.plugins.push({name:"tree-shake-plugin",beforeInit(t){let{userOptions:n,origin:u,options:p}=t,c=n.version||p.version;if(!a)return t;let d=n.shared||{},f=[];Object.keys(d).forEach(t=>{(Array.isArray(d[t])?d[t]:[d[t]]).forEach(r=>{f.push([t,r]),"get"in r&&(r.treeShaking||={},r.treeShaking.get=r.get,r.get=s.getSharedFallbackGetter({shareKey:t,factory:r.get,webpackRequire:e,libraryType:l,version:r.version}))})});let h=i.default.global.getGlobalSnapshotInfoByModuleInfo({name:u.name,version:c});return h&&"shared"in h&&(Object.keys(p.shared||{}).forEach(e=>{p.shared[e].forEach(t=>{f.push([e,t])})}),f.forEach(([e,t])=>{((e,t)=>{let n=h.shared.find(t=>t.sharedName===e);if(!n)return;let{treeShaking:i}=t;if(!i)return;let{secondarySharedTreeShakingName:a,secondarySharedTreeShakingEntry:s,treeShakingStatus:p}=n;i.status!==p&&(i.status=p,s&&l&&a&&(i.get=async()=>{let e=await (0,o.getRemoteEntry)({origin:u,remoteInfo:{name:a,entry:s,type:l,entryGlobalName:a,shareScope:"default"}});return await e.init(u,r.federation.bundlerRuntime),e.get()}))})(e,t)})),t}}),n.init(t)}},1180(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=i?.shareScopeKeys,l=i?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}},2221(e,t,r){let n=r(3545),o=r(6917);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:i,initScope:a}){let s=Array.isArray(e)?e:[e];var l=[],u=function(s){a||(a=[]);let l=t.federation.instance;var u=i[s];if(u||(u=i[s]={from:l.name}),a.indexOf(u)>=0)return;a.push(u);let p=r[s];if(p)return p;var c=r=>{var n=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var o=t(r);if(!o)return;var i=r=>r&&r.init&&r.init(t.S[s],a,{shareScopeMap:t.S||{},shareScopeKeys:e});if(o.then)return d.push(o.then(i,n));var l=i(o);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(n))}catch(e){n(e)}};let d=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:a,from:"build"});n.attachShareScopeMap(t);let f=t.federation.bundlerRuntimeOptions.remotes;return(f&&Object.keys(f.idToRemoteMap).forEach(e=>{let t=f.idToRemoteMap[e],r=f.idToExternalAndNameMapping[e][2];if(t.length>1)c(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||c(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(u(e))}),Promise.all(l).then(()=>!0)}},4307(e,t,r){let n=r(1092),o=r(2677);t.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:i,initialConsumes:a,asyncLoad:s}=e,l=[];a.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n,asyncLoad:i}=e,a=n.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=o.getUsedExports(n,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[a.options.name]}),i)return a.loadShare(s,{customShareInfo:t});return a.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}})({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s})])});let u=(e,n)=>{r.m[e]=o=>{i[e]=0,delete r.c[e];let a=n();if("function"!=typeof a)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=a(),{shareInfo:l}=t[e];if(l?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}o.exports=s}};if(s)return Promise.all(l.map(async([e,t])=>{let r=await t();u(e,()=>r)}));l.forEach(([e,t])=>{u(e,t)})}},3586(e,t,r){r(223);let n=r(3545),o=r(6917),i=r(1092),a=r(1853);t.remotes=function(e){i.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:u,idToRemoteMap:p}=e;n.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let n=u[e],i=p[e]||[];if(t.indexOf(n)>=0)return;if(t.push(n),n.p)return r.push(n.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
|
|
3
|
-
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(1840),s.federation||(s.federation={chunkMatcher:function(e){return!/^(3360|4228|639|6616|7248)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l={},s.l=function(e,t,r,n){if(l[e])return void l[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var p=a[u];if(p.getAttribute("src")==e||p.getAttribute("data-rspack")=="@openmrs/esm-openconceptlab-app:"+r){o=p;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-openconceptlab-app:"+r),o.src=e),l[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("8013"),s.e("871"),s.e("6616"),s.e("3360")]).then(()=>()=>s(2458)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"10.0.1-pre.5753",factory:()=>Promise.all([s.e("8013"),s.e("2771"),s.e("6616"),s.e("3360"),s.e("639"),s.e("4228"),s.e("7248")]).then(()=>()=>s(8094)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>s.e("5697").then(()=>()=>s(3464)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("689"),s.e("6616")]).then(()=>()=>s(3144)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("1789"),s.e("6616")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.22.2",factory:()=>Promise.all([s.e("9712"),s.e("6616"),s.e("3360")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(4041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("6616")]).then(()=>()=>s(2372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("6616"),s.e("9061")]).then(()=>()=>s(9876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("6616"),s.e("9771")]).then(()=>()=>s(2470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("6616"),s.e("7209")]).then(()=>()=>s(5216)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-openconceptlab-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,p=s.g.document;if(!u&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(u=p.currentScript.src),!u)){var c=p.getElementsByTagName("script");if(c.length)for(var d=c.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=c[d--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");if(s.p=u=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{4228:["5327"],7248:["4274","3780","6311","6038","9256"],3378:["5500"],639:["4011","4920"],6616:["2491"],3360:["5427"]},moduleIdToConsumeDataMapping:{2491:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},5500:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8013"),s.e("2771"),s.e("6616"),s.e("3360"),s.e("639"),s.e("4228"),s.e("7248")]).then(()=>()=>s(8094))},5327:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9590")]).then(()=>()=>s(5216))},3780:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},6038:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("2152")]).then(()=>()=>s(2470))},9256:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("1442")]).then(()=>()=>s(9876))},4920:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8013"),s.e("871"),s.e("3360")]).then(()=>()=>s(2458))},4274:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5697").then(()=>()=>s(3464))},5427:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("689").then(()=>()=>s(3144))},4011:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))},6311:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9712").then(()=>()=>s(7059))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},m={2984:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({2771:1,3799:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(h(n,o))return t();f(e,o,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>s.e("3378").then(()=>()=>s(7481))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={2984:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(3360|4228|639|6616|7248)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_openconceptlab_app=globalThis.webpackChunk_openmrs_esm_openconceptlab_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(1193)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_openconceptlab_app=s.x()})();
|
|
3
|
+
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},1092(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(1840),s.federation||(s.federation={chunkMatcher:function(e){return!/^(3360|4228|639|6616|7248)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l={},s.l=function(e,t,r,n){if(l[e])return void l[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var p=a[u];if(p.getAttribute("src")==e||p.getAttribute("data-rspack")=="@openmrs/esm-openconceptlab-app:"+r){o=p;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-openconceptlab-app:"+r),o.src=e),l[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("8013"),s.e("871"),s.e("6616"),s.e("3360")]).then(()=>()=>s(2458)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"11.0.1-pre.5762",factory:()=>Promise.all([s.e("8013"),s.e("2771"),s.e("6616"),s.e("3360"),s.e("639"),s.e("4228"),s.e("7248")]).then(()=>()=>s(8094)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"dayjs",version:"1.11.13",factory:()=>s.e("5697").then(()=>()=>s(3464)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("689"),s.e("6616")]).then(()=>()=>s(3144)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("1789"),s.e("6616")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.22.2",factory:()=>Promise.all([s.e("9712"),s.e("6616"),s.e("3360")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("466").then(()=>()=>s(4041)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"swr/_internal",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("6616")]).then(()=>()=>s(2372)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/immutable",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("6616"),s.e("9061")]).then(()=>()=>s(9876)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr/infinite",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("6616"),s.e("9771")]).then(()=>()=>s(2470)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0},{name:"swr",version:"2.5.1",factory:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("6616"),s.e("7209")]).then(()=>()=>s(5216)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-openconceptlab-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,p=s.g.document;if(!u&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(u=p.currentScript.src),!u)){var c=p.getElementsByTagName("script");if(c.length)for(var d=c.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=c[d--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");if(s.p=u=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{4228:["5327"],7248:["4274","3780","6311","6038","9256"],3378:["5500"],639:["4011","4920"],6616:["2491"],3360:["5427"]},moduleIdToConsumeDataMapping:{2491:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},5500:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8013"),s.e("2771"),s.e("6616"),s.e("3360"),s.e("639"),s.e("4228"),s.e("7248")]).then(()=>()=>s(8094))},5327:{shareScope:"default",shareKey:"swr",import:"swr",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("9590")]).then(()=>()=>s(5216))},3780:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},6038:{shareScope:"default",shareKey:"swr/infinite",import:"swr/infinite",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("2152")]).then(()=>()=>s(2470))},9256:{shareScope:"default",shareKey:"swr/immutable",import:"swr/immutable",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("3989"),s.e("4560"),s.e("1442")]).then(()=>()=>s(9876))},4920:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("8013"),s.e("871"),s.e("3360")]).then(()=>()=>s(2458))},4274:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5697").then(()=>()=>s(3464))},5427:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("689").then(()=>()=>s(3144))},4011:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))},6311:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9712").then(()=>()=>s(7059))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},m={2984:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({2771:1,3799:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(h(n,o))return t();f(e,o,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>s.e("3378").then(()=>()=>s(7481))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={2984:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(3360|4228|639|6616|7248)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_openconceptlab_app=globalThis.webpackChunk_openmrs_esm_openconceptlab_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(1193)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_openconceptlab_app=s.x()})();
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"openconceptlab":">=1.2.0","webservices.rest":">=2.2.0"},"extensions":[{"name":"admin-ocl-card-link","slot":"system-admin-page-card-link-slot","component":"adminOclCardLink"}],"pages":[{"component":"root","route":"ocl"}],"version":"4.4.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"openconceptlab":">=1.2.0","webservices.rest":">=2.2.0"},"extensions":[{"name":"admin-ocl-card-link","slot":"system-admin-page-card-link-slot","component":"adminOclCardLink"}],"pages":[{"component":"root","route":"ocl"}],"version":"4.4.1-pre.952"}
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ import { showNotification } from '@openmrs/esm-framework';
|
|
|
17
17
|
import { startImportWithFile, startImportWithSubscription, useSubscription } from './import.resource';
|
|
18
18
|
import styles from './import.scss';
|
|
19
19
|
|
|
20
|
-
const
|
|
20
|
+
const isZipFile = (file: File) => file.name.toLowerCase().endsWith('.zip');
|
|
21
21
|
|
|
22
22
|
const Import: React.FC = () => {
|
|
23
23
|
const { t } = useTranslation();
|
|
@@ -35,8 +35,8 @@ const Import: React.FC = () => {
|
|
|
35
35
|
|
|
36
36
|
const onAddFiles = useCallback(
|
|
37
37
|
(evt: React.DragEvent<HTMLInputElement>, { addedFiles }) => {
|
|
38
|
-
const fileToUpload: File = addedFiles[0];
|
|
39
|
-
if (!
|
|
38
|
+
const fileToUpload: File | undefined = addedFiles[0];
|
|
39
|
+
if (!fileToUpload || !isZipFile(fileToUpload)) {
|
|
40
40
|
showNotification({
|
|
41
41
|
kind: 'error',
|
|
42
42
|
description: t('fileFormatError', 'Only .zip files are allowed'),
|
|
@@ -180,7 +180,7 @@ const Import: React.FC = () => {
|
|
|
180
180
|
/>
|
|
181
181
|
) : (
|
|
182
182
|
<FileUploaderDropContainer
|
|
183
|
-
accept={
|
|
183
|
+
accept={['.zip']}
|
|
184
184
|
multiple
|
|
185
185
|
labelText={t('importFromFileDragInfo', 'Drag and drop file here or click to upload')}
|
|
186
186
|
onAddFiles={onAddFiles}
|
|
@@ -23,6 +23,28 @@ vi.mock('./import.resource', async () => {
|
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
describe('Import component', () => {
|
|
26
|
+
it('accepts a .zip file whatever MIME type the browser reports, and rejects other files', async () => {
|
|
27
|
+
const user = userEvent.setup({ applyAccept: false });
|
|
28
|
+
mockOpenmrsFetch.mockResolvedValueOnce({ data: { results: [] } } as unknown as FetchResponse);
|
|
29
|
+
renderWithSwr(<Import />);
|
|
30
|
+
await waitForLoadingToFinish();
|
|
31
|
+
|
|
32
|
+
const dropZone = screen.getByLabelText(/drag and drop file here or click to upload/i);
|
|
33
|
+
|
|
34
|
+
await user.upload(dropZone, new File(['bin'], 'concepts.bin', { type: 'application/octet-stream' }));
|
|
35
|
+
expect(mockShowNotification).toHaveBeenCalledWith(
|
|
36
|
+
expect.objectContaining({ kind: 'error', description: 'Only .zip files are allowed' }),
|
|
37
|
+
);
|
|
38
|
+
expect(screen.queryByText('concepts.bin')).not.toBeInTheDocument();
|
|
39
|
+
|
|
40
|
+
// Carbon drops a file whose name fails its extension pattern, so onAddFiles receives an empty list.
|
|
41
|
+
await user.upload(dropZone, new File(['x'], 'README_', { type: '' }));
|
|
42
|
+
expect(mockShowNotification).toHaveBeenCalledTimes(2);
|
|
43
|
+
|
|
44
|
+
await user.upload(dropZone, new File(['zip'], 'concepts.zip', { type: '' }));
|
|
45
|
+
expect(await screen.findByText('concepts.zip')).toBeInTheDocument();
|
|
46
|
+
});
|
|
47
|
+
|
|
26
48
|
it('renders the form elements', async () => {
|
|
27
49
|
mockOpenmrsFetch.mockResolvedValueOnce({ data: { results: [] } } as unknown as FetchResponse);
|
|
28
50
|
renderWithSwr(<Import />);
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
TextInputSkeleton,
|
|
17
17
|
} from '@carbon/react';
|
|
18
18
|
import { useTranslation } from 'react-i18next';
|
|
19
|
-
import { showNotification } from '@openmrs/esm-framework';
|
|
19
|
+
import { OpenmrsFetchError, showNotification } from '@openmrs/esm-framework';
|
|
20
20
|
import { deleteSubscription, updateSubscription, useSubscription } from './subscription.resource';
|
|
21
21
|
import { isVersionDefinedInUrl } from '../utils';
|
|
22
22
|
import styles from './subscription.scss';
|
|
@@ -89,12 +89,10 @@ const Subscription: React.FC = () => {
|
|
|
89
89
|
validationType: validationType,
|
|
90
90
|
subscribedToSnapshot: isSubscribedToSnapshot,
|
|
91
91
|
};
|
|
92
|
-
mutate('/ws/rest/v1/openconceptlab/subscription?v=full', updatedSubscription, false);
|
|
93
92
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
if (response.ok) {
|
|
93
|
+
try {
|
|
94
|
+
const response = await updateSubscription(updatedSubscription, abortController);
|
|
95
|
+
mutate('/ws/rest/v1/openconceptlab/subscription?v=full');
|
|
98
96
|
showNotification({
|
|
99
97
|
kind: 'success',
|
|
100
98
|
description: t(
|
|
@@ -102,12 +100,14 @@ const Subscription: React.FC = () => {
|
|
|
102
100
|
response.status === 201 ? 'Subscription created successfully' : 'Subscription updated successfully',
|
|
103
101
|
),
|
|
104
102
|
});
|
|
105
|
-
}
|
|
103
|
+
} catch (error) {
|
|
104
|
+
const responseBody = error instanceof OpenmrsFetchError ? error.responseBody : null;
|
|
105
|
+
const reason = typeof responseBody === 'object' && responseBody !== null ? responseBody.error?.message : null;
|
|
106
106
|
showNotification({
|
|
107
107
|
title: t('errorSavingSubscription', 'Error occured while saving the subscription'),
|
|
108
108
|
kind: 'error',
|
|
109
109
|
critical: true,
|
|
110
|
-
description:
|
|
110
|
+
description: reason ?? t('unexpectedError', 'An unexpected error occurred'),
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { vi, describe, it, expect } from 'vitest';
|
|
3
3
|
import userEvent from '@testing-library/user-event';
|
|
4
4
|
import { screen, waitFor } from '@testing-library/react';
|
|
5
|
-
import { type FetchResponse, openmrsFetch, showNotification } from '@openmrs/esm-framework';
|
|
5
|
+
import { type FetchResponse, OpenmrsFetchError, openmrsFetch, showNotification } from '@openmrs/esm-framework';
|
|
6
6
|
import { renderWithSwr } from '@tools/test-helpers';
|
|
7
7
|
import { mockSubscription } from '@mocks/openconceptlab.mock';
|
|
8
8
|
import { deleteSubscription, updateSubscription } from './subscription.resource';
|
|
@@ -49,7 +49,7 @@ describe('Subscription component', () => {
|
|
|
49
49
|
expect(screen.getByRole('button', { name: /danger\s*Unsubscribe/i })).toBeEnabled();
|
|
50
50
|
});
|
|
51
51
|
|
|
52
|
-
it
|
|
52
|
+
it('allows adding a new subscription', async () => {
|
|
53
53
|
const user = userEvent.setup();
|
|
54
54
|
mockOpenmrsFetch.mockResolvedValueOnce({ data: { results: [] } } as unknown as FetchResponse);
|
|
55
55
|
renderWithSwr(<Subscription />);
|
|
@@ -80,7 +80,7 @@ describe('Subscription component', () => {
|
|
|
80
80
|
expect(mockShowNotification).toHaveBeenCalledTimes(1);
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
it
|
|
83
|
+
it('allows changing the saved subscription', async () => {
|
|
84
84
|
const user = userEvent.setup();
|
|
85
85
|
mockOpenmrsFetch.mockResolvedValueOnce({ data: { results: [mockSubscription] } } as unknown as FetchResponse);
|
|
86
86
|
renderWithSwr(<Subscription />);
|
|
@@ -118,6 +118,44 @@ describe('Subscription component', () => {
|
|
|
118
118
|
expect(mockShowNotification).toHaveBeenCalledTimes(1);
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
+
it('keeps the entered values and shows an error when saving the subscription fails', async () => {
|
|
122
|
+
const user = userEvent.setup();
|
|
123
|
+
mockOpenmrsFetch.mockResolvedValueOnce({ data: { results: [] } } as unknown as FetchResponse);
|
|
124
|
+
renderWithSwr(<Subscription />);
|
|
125
|
+
await waitForLoadingToFinish();
|
|
126
|
+
|
|
127
|
+
const urlInputField = screen.getByLabelText('Subscription URL');
|
|
128
|
+
const tokenInputField = screen.getByLabelText('Token');
|
|
129
|
+
const saveButton = screen.getByRole('button', { name: 'Save changes' });
|
|
130
|
+
|
|
131
|
+
mockUpdateSubscription.mockRejectedValueOnce(
|
|
132
|
+
new OpenmrsFetchError(
|
|
133
|
+
'/ws/rest/v1/openconceptlab/subscription',
|
|
134
|
+
new Response(null, { status: 500, statusText: 'Internal Server Error' }),
|
|
135
|
+
{ error: { message: 'Wrong url address' } },
|
|
136
|
+
new Error(),
|
|
137
|
+
),
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
await user.type(urlInputField, mockSubscription.url);
|
|
141
|
+
await user.type(tokenInputField, mockSubscription.token);
|
|
142
|
+
await user.click(saveButton);
|
|
143
|
+
|
|
144
|
+
await waitFor(() =>
|
|
145
|
+
expect(mockShowNotification).toHaveBeenCalledWith(
|
|
146
|
+
expect.objectContaining({
|
|
147
|
+
kind: 'error',
|
|
148
|
+
title: 'Error occured while saving the subscription',
|
|
149
|
+
description: 'Wrong url address',
|
|
150
|
+
}),
|
|
151
|
+
),
|
|
152
|
+
);
|
|
153
|
+
expect(mockUpdateSubscription).toHaveBeenCalledTimes(1);
|
|
154
|
+
expect(mockOpenmrsFetch).toHaveBeenCalledTimes(1);
|
|
155
|
+
expect(urlInputField).toHaveValue(mockSubscription.url);
|
|
156
|
+
expect(tokenInputField).toHaveValue(mockSubscription.token);
|
|
157
|
+
});
|
|
158
|
+
|
|
121
159
|
it.skip('allows removing the saved subscription', async () => {
|
|
122
160
|
const user = userEvent.setup();
|
|
123
161
|
mockOpenmrsFetch.mockResolvedValueOnce({ data: { results: [mockSubscription] } } as unknown as FetchResponse);
|
package/translations/en.json
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"subscriptionDeleted": "Successfully unsubscribed",
|
|
49
49
|
"subscriptionError": "Error occured while fetching the subscription",
|
|
50
50
|
"subscriptionUrl": "Subscription URL",
|
|
51
|
+
"unexpectedError": "An unexpected error occurred",
|
|
51
52
|
"unsubscribe": "Unsubscribe",
|
|
52
53
|
"unsubscribeButton": "Unsubscribe",
|
|
53
54
|
"unsubscribeInfo": "If you unsubscribe, no concepts will be deleted nor changed. All information about subscription will be deleted from your system.",
|