@openmrs/esm-patient-attachments-app 13.0.2-pre.12952 → 13.0.2-pre.12957
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/6271.js +1 -0
- package/dist/6271.js.map +1 -0
- package/dist/9499.js +1 -1
- package/dist/9499.js.map +1 -1
- package/dist/openmrs-esm-patient-attachments-app.js +2 -2
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/translations/es_419.json +66 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/6271.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_attachments_app=globalThis.webpackChunk_openmrs_esm_patient_attachments_app||[]).push([["6271"],{1842(e){e.exports=JSON.parse('{"add":"Add","addAnImage":"Add image","addAttachment":"Add Attachment","addAttachment_title":"Add Attachment","addMoreAttachments":"Add more attachments","attachmentActions":"Attachment actions","attachmentPreview":"Attachment preview","attachments":"Attachments","Attachments":"Attachments","attachmentsInLowerCase":"attachments","attachmentsInProperFormat":"Attachments","cameraAccessErrorMessage":"Please enable camera access in your browser settings and try again.","cameraError":"Camera Error","chooseSupportedFileType":"The file \\"{{fileName}}\\" cannot be uploaded. Please upload a file with one of the following extensions: {{supportedExtensions}}.","closeModal":"Close","closePreview":"Close preview","dateUploaded":"Date uploaded","deleteAttachment":"Delete attachment","deleteAttachmentConfirmationText":"Are you sure you want to delete the attachment \\"{{fileName}}\\"? This action can\'t be undone.","deleteImage":"Delete image","deletePdf":"Delete PDF","edit":"Edit","enterAttachmentDescription":"Enter attachment description","enterAttachmentName":"Enter attachment name","error":"Error","failed":"failed","failedDeleting":"couldn\'t be deleted","file":"File","fileDeleted":"File deleted","fileName":"File name","fileSizeInstructions":"Drag and drop files here or click to upload","fileSizeLimitExceeded":"exceeds the size limit of","fileSizeLimitExceededText":"File size limit exceeded","fileUploadSizeConstraints":"File limit is {{fileSize}}MB","gridView":"Grid view","image":"Image","imageDescription":"Image description","imagePlaceholder":"Image placeholder","imagePreview":"Image preview","keepAttachment":"Keep attachment","loadingUploadLimit":"Loading upload size limit...","name":"name","nameIsRequired":"Name is required","noAttachmentsToDisplay":"There are no attachments to display for this patient","noImageToDisplay":"No image to display","noPreviewAvailable":"No preview is available for this file.","openFile":"Open file","retry":"Retry","retryUploadLimit":"Try again before choosing a file.","successfullyDeleted":"successfully deleted","supportedFiletypes":"Supported files are {{supportedFiles}}","tableView":"Table view","type":"Type","unsavedAttachment":"Unsaved attachment","unsavedAttachmentMessage":"You have an unsaved attachment. Are you sure you want to discard it?","unsupportedFileType":"Unsupported file type","uploadComplete":"Upload complete","uploadedSuccessfully":"uploaded successfully","uploadError":"Error uploading file","uploadFiles":"Upload files","uploading":"Uploading","uploadLimitUnavailable":"Could not load the upload size limit","uploadWillContinueInTheBackground":"Files will be uploaded in the background. You can close this modal.","webcam":"Webcam"}')}}]);
|
package/dist/6271.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"6271.js","sources":["webpack://@openmrs/esm-patient-attachments-app/json|/home/runner/work/openmrs-esm-patient-chart/openmrs-esm-patient-chart/packages/esm-patient-attachments-app/translations/es_419.json"],"names":["JSON"],"mappings":"mKAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,gqF"}
|
package/dist/9499.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_patient_attachments_app=globalThis.webpackChunk_openmrs_esm_patient_attachments_app||[]).push([["9499"],{4767(e,t,a){var n={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["1690","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function s(e){if(!a.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],s=t[0];return a.e(t[1]).then(function(){return a(s)})}s.keys=()=>Object.keys(n),s.id=4767,e.exports=s},4298(e,t,a){"use strict";a.d(t,{A:()=>l});var n=a(3338);a(5399);var s=a(7807),i=a(324);let l=({attachment:e,imageClassName:t,pdfClassName:a})=>{let{t:l}=(0,s.useTranslation)();return"IMAGE"===e.bytesContentFamily?(0,n.jsx)("img",{className:t,src:e.src,alt:e.description||e.filename}):"PDF"===e.bytesContentFamily?(0,n.jsx)("iframe",{className:a,src:e.src,title:e.filename}):(0,n.jsxs)("p",{children:[l("noPreviewAvailable","No preview is available for this file.")," ",(0,n.jsx)(i.Link,{href:e.src,target:"_blank",rel:"noopener noreferrer",children:l("openFile","Open file")})]})}},310(e,t,a){"use strict";a.r(t),a.d(t,{capturePhotoModal:()=>z,capturePhotoWidget:()=>I,importTranslation:()=>A,attachmentsSummaryResultsDashboard:()=>P,deleteAttachmentModal:()=>L,attachmentsOverview:()=>F,startupApp:()=>S,attachmentPreviewModal:()=>E});var n=a(6717),s=a(2664);let i={maxFileSize:{_type:s.Type.Number,_description:"Deprecated. The upload limit is read from the backend attachments.maxUploadFileSize global property.",_default:1,_validators:[(0,s.validator)(e=>"number"==typeof e&&e>0,"Must be greater than zero")]}};var l=a(3338),r=a(5399),o=a(7807),c=a(324),m=a(2326),d=a(1895),h=a(7351),_=a(4298),p=a(75);let u=({attachmentToPreview:e,onClosePreview:t,onDeleteAttachment:a})=>{let{t:n}=(0,o.useTranslation)(),i="tablet"===(0,s.useLayoutType)(),m="PDF"===e.bytesContentFamily,d=i?"lg":"md";return(0,r.useEffect)(()=>{let e=e=>{"Escape"==e.key&&t()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[t]),(0,l.jsxs)("div",{role:"dialog","aria-label":n("attachmentPreview","Attachment preview"),className:"-esm-patient-attachments__attachment-preview__previewContainer___QY5s-",children:[(0,l.jsxs)("div",{className:"-esm-patient-attachments__attachment-preview__leftPanel___FMRXC",children:[(0,l.jsx)(c.Button,{className:"-esm-patient-attachments__attachment-preview__closePreviewButton___zRWnA",hasIconOnly:!0,iconDescription:n("closePreview","Close preview"),kind:"ghost",onClick:t,renderIcon:s.CloseIcon,size:d}),(0,l.jsx)("div",{className:"-esm-patient-attachments__attachment-preview__attachmentPreview___ZBcTw",children:(0,l.jsx)(_.A,{attachment:e,pdfClassName:"-esm-patient-attachments__attachment-preview__pdfViewer___9RcS1"})}),(0,l.jsx)(c.OverflowMenu,{align:"left","aria-label":n("attachmentActions","Attachment actions"),className:"-esm-patient-attachments__attachment-preview__overflowMenu___jh0EP",flipped:!0,iconDescription:n("attachmentActions","Attachment actions"),size:d,children:(0,l.jsx)(c.OverflowMenuItem,{className:"-esm-patient-attachments__attachment-preview__menuItem___DKbRE",hasDivider:!0,isDelete:!0,itemText:m?n("deletePdf","Delete PDF"):n("deleteImage","Delete image"),onClick:()=>a(e)})})]}),(0,l.jsxs)("div",{className:"-esm-patient-attachments__attachment-preview__rightPanel___XEzqg",children:[(0,l.jsx)("h4",{className:"-esm-patient-attachments__attachment-preview__title___AoN-N",children:e.filename}),e?.description?(0,l.jsx)("p",{className:"-esm-patient-attachments__attachment-preview__imageDescription___YdqzG",children:(0,l.jsx)(p.A,{options:{target:"_blank"},children:e.description})}):null]})]})};var j=a(1899);let v="-esm-patient-attachments__attachment-thumbnail__pdfThumbnail___hUzzo";function b(e){return(0,l.jsx)("div",{className:"-esm-patient-attachments__attachment-thumbnail__thumbnail___u+1Vo",children:(0,l.jsx)(f,{...e})})}function y(e){return(0,l.jsx)("div",{className:"-esm-patient-attachments__attachment-thumbnail__imageThumbnail___kz7Mx",role:"button",tabIndex:0,onClick:e?.onClick,children:(0,l.jsx)("img",{src:e.src,alt:e.title,style:e.style})})}function w(e){return(0,l.jsx)("div",{className:v,onClick:e.onClick,role:"button",tabIndex:0,children:(0,l.jsx)(j.aD,{size:24})})}function x(e){return(0,l.jsx)("div",{className:v,onClick:e.onClick,role:"button",tabIndex:0,children:(0,l.jsx)(j.WZ,{size:24})})}function f(e){let t=e.item.bytesContentFamily,a={src:e.imageProps.src,title:e.imageProps.title,style:e.imageProps.style,onClick:e.imageProps?.onClick};return"IMAGE"===t?(0,l.jsx)(y,{...a}):"PDF"===t?(0,l.jsx)(w,{...a}):(0,l.jsx)(x,{...a})}let g="-esm-patient-attachments__attachments-grid-overview__attachmentThumbnailSkeleton___F-Tk6",k="-esm-patient-attachments__attachments-grid-overview__galleryContainer___0BLA-",C=({attachments:e,isLoading:t,onOpenAttachment:a})=>t?(0,l.jsxs)("div",{className:k,children:[(0,l.jsx)(c.SkeletonPlaceholder,{className:g}),(0,l.jsx)(c.SkeletonPlaceholder,{className:g}),(0,l.jsx)(c.SkeletonPlaceholder,{className:g}),(0,l.jsx)(c.SkeletonPlaceholder,{className:g})]}):(0,l.jsx)("div",{className:k,children:e.map((e,t)=>{let n={src:e.src,title:e.filename,style:{},onClick:()=>a(e)},{id:s,dateTime:i,bytesMimeType:r,bytesContentFamily:o}=e;return(0,l.jsxs)("div",{children:[(0,l.jsx)(b,{imageProps:n,item:{id:s,dateTime:i,bytesMimeType:r,bytesContentFamily:o}}),(0,l.jsx)("p",{className:"-esm-patient-attachments__attachments-grid-overview__title___7QC6D",children:e.filename}),(0,l.jsx)("p",{className:"-esm-patient-attachments__attachments-grid-overview__muted___6HFoR",children:e.dateTime})]},t)})}),N={attachmentTable:"-esm-patient-attachments__attachments-table-overview__attachmentTable___uXfz8","cds--data-table-header":"-esm-patient-attachments__attachments-table-overview__cds--data-table-header___sL104",link:"-esm-patient-attachments__attachments-table-overview__link___OQ4FC",menuItem:"-esm-patient-attachments__attachments-table-overview__menuItem___2ACgg",emptyState:"-esm-patient-attachments__attachments-table-overview__emptyState___rt6lW",emptyStateContent:"-esm-patient-attachments__attachments-table-overview__emptyStateContent___BNg85"},T=({attachments:e,isLoading:t,onDeleteAttachment:a,onOpenAttachment:i})=>{let{t:m}=(0,o.useTranslation)(),d=(0,s.useLayoutType)(),h="small-desktop"===d||"large-desktop"===d,_="tablet"===d?"lg":"md",p=(0,r.useMemo)(()=>e.map(e=>({id:e.id,fileName:(0,l.jsx)(c.Button,{className:N.link,kind:"ghost",onClick:()=>i(e),size:_,children:e.filename}),type:e.bytesContentFamily,dateUploaded:{content:e.dateTime,sortKey:new Date(e.dateTimeValue).getTime()},actions:(0,l.jsx)(c.IconButton,{align:"top-end",kind:"ghost",label:(0,s.getCoreTranslation)("delete"),onClick:()=>a(e),size:_,children:(0,l.jsx)(s.TrashCanIcon,{size:16})})})),[e,a,i,_]),u=(0,r.useMemo)(()=>[{key:"fileName",header:m("fileName","File name")},{key:"type",header:m("type","Type")},{key:"dateUploaded",header:m("dateUploaded","Date uploaded"),isSortable:!0},{key:"actions",header:""}],[m]);return t?(0,l.jsx)("div",{className:N.attachmentTable,children:(0,l.jsx)(c.DataTableSkeleton,{className:N.dataTableSkeleton,compact:h,zebra:!0})}):p.length?(0,l.jsx)(c.DataTable,{rows:p,headers:u,overflowMenuOnHover:h,size:_,sortRow:(e,t,{sortDirection:a,sortStates:s})=>a===s.DESC?(0,n.compare)(e?.sortKey,t?.sortKey):(0,n.compare)(t?.sortKey,e?.sortKey),children:({rows:e,headers:t,getHeaderProps:a,getRowProps:n,getTableProps:s})=>(0,l.jsx)(c.TableContainer,{children:(0,l.jsxs)(c.Table,{...s(),useZebraStyles:!0,children:[(0,l.jsx)(c.TableHead,{children:(0,l.jsx)(c.TableRow,{children:t.map(e=>(0,l.jsx)(c.TableHeader,{...a({header:e}),children:e.header},e.key))})}),(0,l.jsx)(c.TableBody,{children:e.map(e=>(0,l.jsx)(c.TableRow,{...n({row:e}),children:e.cells.map(e=>(0,l.jsx)(c.TableCell,{children:e.value?.content??e.value},e.id))},e.id))})]})})}):(0,l.jsx)(s.ResponsiveWrapper,{children:(0,l.jsxs)(c.Tile,{className:N.emptyState,children:[(0,l.jsx)(n.EmptyDataIllustration,{}),(0,l.jsx)("p",{className:N.emptyStateContent,children:m("noAttachmentsToDisplay","There are no attachments to display for this patient")})]})})},A=a(4767),D="@openmrs/esm-patient-attachments-app";function S(){(0,s.defineConfigSchema)(D,i)}let F=(0,s.getSyncLifecycle)(({patientUuid:e})=>{let t="tablet"===(0,s.useLayoutType)(),{t:a}=(0,o.useTranslation)(),{data:i,mutate:_,isValidating:p,isLoading:j}=(0,s.useAttachments)(e,!0),{allowedFileExtensions:v}=(0,n.useAllowedFileExtensions)(),[b,y]=(0,r.useState)(null),[w,x]=(0,r.useState)(!1),[f,g]=(0,r.useState)("grid"),k=(0,r.useMemo)(()=>i.map(e=>(0,h.N)(e)),[i]),N=(0,r.useCallback)(()=>y(null),[y]);w&&((0,s.showSnackbar)({isLowContrast:!0,kind:"error",subtitle:a("unsupportedFileType","Unsupported file type"),title:a("uploadError","Error uploading file")}),x(!1));let A=(0,r.useCallback)(e=>{(0,s.deleteAttachmentPermanently)(e.id,new AbortController).then(()=>{_(),y(null),(0,s.showSnackbar)({title:a("fileDeleted","File deleted"),subtitle:`${e.filename} ${a("successfullyDeleted","successfully deleted")}`,kind:"success",isLowContrast:!0})}).catch(()=>{(0,s.showSnackbar)({title:a("error","Error"),subtitle:`${e.filename} ${a("failedDeleting","couldn't be deleted")}`,kind:"error"})})},[_,a,y]),D=(0,r.useCallback)(e=>{if("IMAGE"===e.bytesContentFamily||"PDF"===e.bytesContentFamily)y(e);else{let t=document.createElement("a");t.setAttribute("href",e.src),t.setAttribute("download",e.filename),t.click()}},[y]),S=(0,r.useCallback)(()=>{let t=(0,s.showModal)("capture-photo-modal",{saveFile:t=>(t.capturedFromWebcam&&!t.fileName.includes(".")&&(t.fileName=`${t.fileName}.png`),(0,s.createAttachment)(e,t)),allowedExtensions:v,closeModal:()=>t(),onCompletion:()=>_(),multipleFiles:!0,collectDescription:!0})},[v,_,e]),F=(0,r.useCallback)(e=>{let t=(0,s.showModal)("delete-attachment-modal",{attachment:e,close:()=>t(),onConfirmation:e=>{A(e),t()}})},[A]);return j?(0,l.jsx)(c.DataTableSkeleton,{role:"progressbar"}):k.length?(0,l.jsxs)(s.UserHasAccess,{privilege:"View Attachments",children:[(0,l.jsx)("div",{onDragOverCapture:S,className:"-esm-patient-attachments__attachments-overview__overview___+tNe3",children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(n.CardHeader,{title:a("attachments","Attachments"),children:[(0,l.jsx)("div",{className:"-esm-patient-attachments__attachments-overview__validatingDataIcon___rt-iw",children:p&&(0,l.jsx)(c.Loading,{withOverlay:!1,small:!0})}),(0,l.jsxs)("div",{className:"-esm-patient-attachments__attachments-overview__attachmentHeaderActionItems___diXOO",children:[(0,l.jsxs)(c.ContentSwitcher,{onChange:e=>g(e.name.toString()),selectedIndex:+("grid"!==f),size:t?"md":"sm",children:[(0,l.jsx)(c.IconSwitch,{name:"grid",text:a("gridView","Grid view"),children:(0,l.jsx)(m.C9,{size:16})}),(0,l.jsx)(c.IconSwitch,{name:"tabular",text:a("tableView","Table view"),children:(0,l.jsx)(d.Ut,{size:16})})]}),(0,l.jsx)("div",{className:"-esm-patient-attachments__attachments-overview__divider___y7g2J"}),(0,l.jsx)(c.Button,{kind:"ghost",renderIcon:s.AddIcon,iconDescription:"Add attachment",onClick:S,children:a("add","Add")})]})]}),"grid"===f?(0,l.jsx)(C,{attachments:k,isLoading:j,onOpenAttachment:D}):(0,l.jsx)(T,{attachments:k,isLoading:j,onDeleteAttachment:F,onOpenAttachment:D})]})}),b&&(0,l.jsx)(u,{attachmentToPreview:b,onClosePreview:N,onDeleteAttachment:F},b.id)]}):(0,l.jsx)(n.EmptyState,{displayText:a("attachmentsInLowerCase","attachments"),headerTitle:a("attachmentsInProperFormat","Attachments"),launchForm:S})},{featureName:"patient-attachments",moduleName:D}),P=(0,s.getSyncLifecycle)((0,n.createDashboardLink)({slot:"patient-chart-attachments-dashboard-slot",path:"attachments",title:"Attachments",icon:"omrs-icon-document-attachment"}),{featureName:"attachments-dashboard-link",moduleName:D}),z=(0,s.getAsyncLifecycle)(()=>Promise.all([a.e("356"),a.e("6449")]).then(a.bind(a,7720)),{featureName:"capture-photo-modal",moduleName:D}),I=(0,s.getAsyncLifecycle)(()=>a.e("6519").then(a.bind(a,602)),{featureName:"capture-photo-widget",moduleName:D}),L=(0,s.getAsyncLifecycle)(()=>a.e("5688").then(a.bind(a,5643)),{featureName:"delete-attachment-modal",moduleName:D}),E=(0,s.getAsyncLifecycle)(()=>a.e("6022").then(a.bind(a,7333)),{featureName:"attachment-preview-modal",moduleName:D})},7351(e,t,a){"use strict";a.d(t,{N:()=>l,a:()=>i});var n=a(2664),s=a(6717);function i(e){return new Promise(t=>{if(e){let a=new FileReader;a.addEventListener("load",()=>{"string"==typeof a.result?t(a.result):t("")}),a.addEventListener("error",()=>{t("")}),a.readAsDataURL(e)}else t("")})}function l(e){return{id:e.uuid,src:(0,s.getAttachmentBytesUrl)(e.uuid),filename:e.filename.replace(/\.[^\\/.]+$/,""),description:e.comment,dateTimeValue:e.dateTime,dateTime:(0,n.formatDate)(new Date(e.dateTime),{mode:"wide"}),bytesMimeType:e.bytesMimeType,bytesContentFamily:e.bytesContentFamily}}}}]);
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_patient_attachments_app=globalThis.webpackChunk_openmrs_esm_patient_attachments_app||[]).push([["9499"],{4767(e,t,a){var n={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./es_419.json":["1842","6271"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["1690","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["4087","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","3378"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function s(e){if(!a.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],s=t[0];return a.e(t[1]).then(function(){return a(s)})}s.keys=()=>Object.keys(n),s.id=4767,e.exports=s},4298(e,t,a){"use strict";a.d(t,{A:()=>l});var n=a(3338);a(5399);var s=a(7807),i=a(324);let l=({attachment:e,imageClassName:t,pdfClassName:a})=>{let{t:l}=(0,s.useTranslation)();return"IMAGE"===e.bytesContentFamily?(0,n.jsx)("img",{className:t,src:e.src,alt:e.description||e.filename}):"PDF"===e.bytesContentFamily?(0,n.jsx)("iframe",{className:a,src:e.src,title:e.filename}):(0,n.jsxs)("p",{children:[l("noPreviewAvailable","No preview is available for this file.")," ",(0,n.jsx)(i.Link,{href:e.src,target:"_blank",rel:"noopener noreferrer",children:l("openFile","Open file")})]})}},310(e,t,a){"use strict";a.r(t),a.d(t,{capturePhotoModal:()=>z,capturePhotoWidget:()=>I,importTranslation:()=>A,attachmentsSummaryResultsDashboard:()=>P,deleteAttachmentModal:()=>L,attachmentsOverview:()=>F,startupApp:()=>S,attachmentPreviewModal:()=>E});var n=a(6717),s=a(2664);let i={maxFileSize:{_type:s.Type.Number,_description:"Deprecated. The upload limit is read from the backend attachments.maxUploadFileSize global property.",_default:1,_validators:[(0,s.validator)(e=>"number"==typeof e&&e>0,"Must be greater than zero")]}};var l=a(3338),r=a(5399),o=a(7807),c=a(324),m=a(2326),d=a(1895),h=a(7351),_=a(4298),p=a(75);let u=({attachmentToPreview:e,onClosePreview:t,onDeleteAttachment:a})=>{let{t:n}=(0,o.useTranslation)(),i="tablet"===(0,s.useLayoutType)(),m="PDF"===e.bytesContentFamily,d=i?"lg":"md";return(0,r.useEffect)(()=>{let e=e=>{"Escape"==e.key&&t()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[t]),(0,l.jsxs)("div",{role:"dialog","aria-label":n("attachmentPreview","Attachment preview"),className:"-esm-patient-attachments__attachment-preview__previewContainer___QY5s-",children:[(0,l.jsxs)("div",{className:"-esm-patient-attachments__attachment-preview__leftPanel___FMRXC",children:[(0,l.jsx)(c.Button,{className:"-esm-patient-attachments__attachment-preview__closePreviewButton___zRWnA",hasIconOnly:!0,iconDescription:n("closePreview","Close preview"),kind:"ghost",onClick:t,renderIcon:s.CloseIcon,size:d}),(0,l.jsx)("div",{className:"-esm-patient-attachments__attachment-preview__attachmentPreview___ZBcTw",children:(0,l.jsx)(_.A,{attachment:e,pdfClassName:"-esm-patient-attachments__attachment-preview__pdfViewer___9RcS1"})}),(0,l.jsx)(c.OverflowMenu,{align:"left","aria-label":n("attachmentActions","Attachment actions"),className:"-esm-patient-attachments__attachment-preview__overflowMenu___jh0EP",flipped:!0,iconDescription:n("attachmentActions","Attachment actions"),size:d,children:(0,l.jsx)(c.OverflowMenuItem,{className:"-esm-patient-attachments__attachment-preview__menuItem___DKbRE",hasDivider:!0,isDelete:!0,itemText:m?n("deletePdf","Delete PDF"):n("deleteImage","Delete image"),onClick:()=>a(e)})})]}),(0,l.jsxs)("div",{className:"-esm-patient-attachments__attachment-preview__rightPanel___XEzqg",children:[(0,l.jsx)("h4",{className:"-esm-patient-attachments__attachment-preview__title___AoN-N",children:e.filename}),e?.description?(0,l.jsx)("p",{className:"-esm-patient-attachments__attachment-preview__imageDescription___YdqzG",children:(0,l.jsx)(p.A,{options:{target:"_blank"},children:e.description})}):null]})]})};var j=a(1899);let v="-esm-patient-attachments__attachment-thumbnail__pdfThumbnail___hUzzo";function b(e){return(0,l.jsx)("div",{className:"-esm-patient-attachments__attachment-thumbnail__thumbnail___u+1Vo",children:(0,l.jsx)(f,{...e})})}function y(e){return(0,l.jsx)("div",{className:"-esm-patient-attachments__attachment-thumbnail__imageThumbnail___kz7Mx",role:"button",tabIndex:0,onClick:e?.onClick,children:(0,l.jsx)("img",{src:e.src,alt:e.title,style:e.style})})}function w(e){return(0,l.jsx)("div",{className:v,onClick:e.onClick,role:"button",tabIndex:0,children:(0,l.jsx)(j.aD,{size:24})})}function x(e){return(0,l.jsx)("div",{className:v,onClick:e.onClick,role:"button",tabIndex:0,children:(0,l.jsx)(j.WZ,{size:24})})}function f(e){let t=e.item.bytesContentFamily,a={src:e.imageProps.src,title:e.imageProps.title,style:e.imageProps.style,onClick:e.imageProps?.onClick};return"IMAGE"===t?(0,l.jsx)(y,{...a}):"PDF"===t?(0,l.jsx)(w,{...a}):(0,l.jsx)(x,{...a})}let g="-esm-patient-attachments__attachments-grid-overview__attachmentThumbnailSkeleton___F-Tk6",k="-esm-patient-attachments__attachments-grid-overview__galleryContainer___0BLA-",C=({attachments:e,isLoading:t,onOpenAttachment:a})=>t?(0,l.jsxs)("div",{className:k,children:[(0,l.jsx)(c.SkeletonPlaceholder,{className:g}),(0,l.jsx)(c.SkeletonPlaceholder,{className:g}),(0,l.jsx)(c.SkeletonPlaceholder,{className:g}),(0,l.jsx)(c.SkeletonPlaceholder,{className:g})]}):(0,l.jsx)("div",{className:k,children:e.map((e,t)=>{let n={src:e.src,title:e.filename,style:{},onClick:()=>a(e)},{id:s,dateTime:i,bytesMimeType:r,bytesContentFamily:o}=e;return(0,l.jsxs)("div",{children:[(0,l.jsx)(b,{imageProps:n,item:{id:s,dateTime:i,bytesMimeType:r,bytesContentFamily:o}}),(0,l.jsx)("p",{className:"-esm-patient-attachments__attachments-grid-overview__title___7QC6D",children:e.filename}),(0,l.jsx)("p",{className:"-esm-patient-attachments__attachments-grid-overview__muted___6HFoR",children:e.dateTime})]},t)})}),N={attachmentTable:"-esm-patient-attachments__attachments-table-overview__attachmentTable___uXfz8","cds--data-table-header":"-esm-patient-attachments__attachments-table-overview__cds--data-table-header___sL104",link:"-esm-patient-attachments__attachments-table-overview__link___OQ4FC",menuItem:"-esm-patient-attachments__attachments-table-overview__menuItem___2ACgg",emptyState:"-esm-patient-attachments__attachments-table-overview__emptyState___rt6lW",emptyStateContent:"-esm-patient-attachments__attachments-table-overview__emptyStateContent___BNg85"},T=({attachments:e,isLoading:t,onDeleteAttachment:a,onOpenAttachment:i})=>{let{t:m}=(0,o.useTranslation)(),d=(0,s.useLayoutType)(),h="small-desktop"===d||"large-desktop"===d,_="tablet"===d?"lg":"md",p=(0,r.useMemo)(()=>e.map(e=>({id:e.id,fileName:(0,l.jsx)(c.Button,{className:N.link,kind:"ghost",onClick:()=>i(e),size:_,children:e.filename}),type:e.bytesContentFamily,dateUploaded:{content:e.dateTime,sortKey:new Date(e.dateTimeValue).getTime()},actions:(0,l.jsx)(c.IconButton,{align:"top-end",kind:"ghost",label:(0,s.getCoreTranslation)("delete"),onClick:()=>a(e),size:_,children:(0,l.jsx)(s.TrashCanIcon,{size:16})})})),[e,a,i,_]),u=(0,r.useMemo)(()=>[{key:"fileName",header:m("fileName","File name")},{key:"type",header:m("type","Type")},{key:"dateUploaded",header:m("dateUploaded","Date uploaded"),isSortable:!0},{key:"actions",header:""}],[m]);return t?(0,l.jsx)("div",{className:N.attachmentTable,children:(0,l.jsx)(c.DataTableSkeleton,{className:N.dataTableSkeleton,compact:h,zebra:!0})}):p.length?(0,l.jsx)(c.DataTable,{rows:p,headers:u,overflowMenuOnHover:h,size:_,sortRow:(e,t,{sortDirection:a,sortStates:s})=>a===s.DESC?(0,n.compare)(e?.sortKey,t?.sortKey):(0,n.compare)(t?.sortKey,e?.sortKey),children:({rows:e,headers:t,getHeaderProps:a,getRowProps:n,getTableProps:s})=>(0,l.jsx)(c.TableContainer,{children:(0,l.jsxs)(c.Table,{...s(),useZebraStyles:!0,children:[(0,l.jsx)(c.TableHead,{children:(0,l.jsx)(c.TableRow,{children:t.map(e=>(0,l.jsx)(c.TableHeader,{...a({header:e}),children:e.header},e.key))})}),(0,l.jsx)(c.TableBody,{children:e.map(e=>(0,l.jsx)(c.TableRow,{...n({row:e}),children:e.cells.map(e=>(0,l.jsx)(c.TableCell,{children:e.value?.content??e.value},e.id))},e.id))})]})})}):(0,l.jsx)(s.ResponsiveWrapper,{children:(0,l.jsxs)(c.Tile,{className:N.emptyState,children:[(0,l.jsx)(n.EmptyDataIllustration,{}),(0,l.jsx)("p",{className:N.emptyStateContent,children:m("noAttachmentsToDisplay","There are no attachments to display for this patient")})]})})},A=a(4767),D="@openmrs/esm-patient-attachments-app";function S(){(0,s.defineConfigSchema)(D,i)}let F=(0,s.getSyncLifecycle)(({patientUuid:e})=>{let t="tablet"===(0,s.useLayoutType)(),{t:a}=(0,o.useTranslation)(),{data:i,mutate:_,isValidating:p,isLoading:j}=(0,s.useAttachments)(e,!0),{allowedFileExtensions:v}=(0,n.useAllowedFileExtensions)(),[b,y]=(0,r.useState)(null),[w,x]=(0,r.useState)(!1),[f,g]=(0,r.useState)("grid"),k=(0,r.useMemo)(()=>i.map(e=>(0,h.N)(e)),[i]),N=(0,r.useCallback)(()=>y(null),[y]);w&&((0,s.showSnackbar)({isLowContrast:!0,kind:"error",subtitle:a("unsupportedFileType","Unsupported file type"),title:a("uploadError","Error uploading file")}),x(!1));let A=(0,r.useCallback)(e=>{(0,s.deleteAttachmentPermanently)(e.id,new AbortController).then(()=>{_(),y(null),(0,s.showSnackbar)({title:a("fileDeleted","File deleted"),subtitle:`${e.filename} ${a("successfullyDeleted","successfully deleted")}`,kind:"success",isLowContrast:!0})}).catch(()=>{(0,s.showSnackbar)({title:a("error","Error"),subtitle:`${e.filename} ${a("failedDeleting","couldn't be deleted")}`,kind:"error"})})},[_,a,y]),D=(0,r.useCallback)(e=>{if("IMAGE"===e.bytesContentFamily||"PDF"===e.bytesContentFamily)y(e);else{let t=document.createElement("a");t.setAttribute("href",e.src),t.setAttribute("download",e.filename),t.click()}},[y]),S=(0,r.useCallback)(()=>{let t=(0,s.showModal)("capture-photo-modal",{saveFile:t=>(t.capturedFromWebcam&&!t.fileName.includes(".")&&(t.fileName=`${t.fileName}.png`),(0,s.createAttachment)(e,t)),allowedExtensions:v,closeModal:()=>t(),onCompletion:()=>_(),multipleFiles:!0,collectDescription:!0})},[v,_,e]),F=(0,r.useCallback)(e=>{let t=(0,s.showModal)("delete-attachment-modal",{attachment:e,close:()=>t(),onConfirmation:e=>{A(e),t()}})},[A]);return j?(0,l.jsx)(c.DataTableSkeleton,{role:"progressbar"}):k.length?(0,l.jsxs)(s.UserHasAccess,{privilege:"View Attachments",children:[(0,l.jsx)("div",{onDragOverCapture:S,className:"-esm-patient-attachments__attachments-overview__overview___+tNe3",children:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(n.CardHeader,{title:a("attachments","Attachments"),children:[(0,l.jsx)("div",{className:"-esm-patient-attachments__attachments-overview__validatingDataIcon___rt-iw",children:p&&(0,l.jsx)(c.Loading,{withOverlay:!1,small:!0})}),(0,l.jsxs)("div",{className:"-esm-patient-attachments__attachments-overview__attachmentHeaderActionItems___diXOO",children:[(0,l.jsxs)(c.ContentSwitcher,{onChange:e=>g(e.name.toString()),selectedIndex:+("grid"!==f),size:t?"md":"sm",children:[(0,l.jsx)(c.IconSwitch,{name:"grid",text:a("gridView","Grid view"),children:(0,l.jsx)(m.C9,{size:16})}),(0,l.jsx)(c.IconSwitch,{name:"tabular",text:a("tableView","Table view"),children:(0,l.jsx)(d.Ut,{size:16})})]}),(0,l.jsx)("div",{className:"-esm-patient-attachments__attachments-overview__divider___y7g2J"}),(0,l.jsx)(c.Button,{kind:"ghost",renderIcon:s.AddIcon,iconDescription:"Add attachment",onClick:S,children:a("add","Add")})]})]}),"grid"===f?(0,l.jsx)(C,{attachments:k,isLoading:j,onOpenAttachment:D}):(0,l.jsx)(T,{attachments:k,isLoading:j,onDeleteAttachment:F,onOpenAttachment:D})]})}),b&&(0,l.jsx)(u,{attachmentToPreview:b,onClosePreview:N,onDeleteAttachment:F},b.id)]}):(0,l.jsx)(n.EmptyState,{displayText:a("attachmentsInLowerCase","attachments"),headerTitle:a("attachmentsInProperFormat","Attachments"),launchForm:S})},{featureName:"patient-attachments",moduleName:D}),P=(0,s.getSyncLifecycle)((0,n.createDashboardLink)({slot:"patient-chart-attachments-dashboard-slot",path:"attachments",title:"Attachments",icon:"omrs-icon-document-attachment"}),{featureName:"attachments-dashboard-link",moduleName:D}),z=(0,s.getAsyncLifecycle)(()=>Promise.all([a.e("356"),a.e("6449")]).then(a.bind(a,7720)),{featureName:"capture-photo-modal",moduleName:D}),I=(0,s.getAsyncLifecycle)(()=>a.e("6519").then(a.bind(a,602)),{featureName:"capture-photo-widget",moduleName:D}),L=(0,s.getAsyncLifecycle)(()=>a.e("5688").then(a.bind(a,5643)),{featureName:"delete-attachment-modal",moduleName:D}),E=(0,s.getAsyncLifecycle)(()=>a.e("6022").then(a.bind(a,7333)),{featureName:"attachment-preview-modal",moduleName:D})},7351(e,t,a){"use strict";a.d(t,{N:()=>l,a:()=>i});var n=a(2664),s=a(6717);function i(e){return new Promise(t=>{if(e){let a=new FileReader;a.addEventListener("load",()=>{"string"==typeof a.result?t(a.result):t("")}),a.addEventListener("error",()=>{t("")}),a.readAsDataURL(e)}else t("")})}function l(e){return{id:e.uuid,src:(0,s.getAttachmentBytesUrl)(e.uuid),filename:e.filename.replace(/\.[^\\/.]+$/,""),description:e.comment,dateTimeValue:e.dateTime,dateTime:(0,n.formatDate)(new Date(e.dateTime),{mode:"wide"}),bytesMimeType:e.bytesMimeType,bytesContentFamily:e.bytesContentFamily}}}}]);
|
package/dist/9499.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"9499.js","sources":["webpack://@openmrs/esm-patient-attachments-app/./translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachment-media.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/attachments-config-schema.ts","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachment-preview.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachment-preview.scss?db63","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachment-thumbnail.scss?3dea","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachment-thumbnail.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-grid-overview.scss?7c8e","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-grid-overview.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-table-overview.scss?6610","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-table-overview.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/index.ts","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-overview.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-overview.scss?2feb","webpack://@openmrs/esm-patient-attachments-app/./src/dashboard.meta.ts","webpack://@openmrs/esm-patient-attachments-app/./src/utils.ts"],"names":["Promise","Error","Object","attachment","imageClassName","pdfClassName","t","useTranslation","Link","attachmentsConfigSchema","Type","validator","v","attachmentToPreview","onClosePreview","onDeleteAttachment","isTablet","useLayoutType","isPdf","responsiveSize","useEffect","closePreviewOnEscape","event","window","Button","CloseIcon","AttachmentMedia","OverflowMenu","OverflowMenuItem","Linkify","AttachmentThumbnail","props","Thumbnail","ImageThumbnail","PdfThumbnail","DocumentPdf","OtherThumbnail","DocumentUnknown","contentType","imageProps","attachments","isLoading","openAttachment","SkeletonPlaceholder","i","id","dateTime","bytesMimeType","bytesContentFamily","onOpenAttachment","layout","isDesktop","rows","useMemo","styles","Date","IconButton","getCoreTranslation","TrashCanIcon","headers","DataTableSkeleton","DataTable","cellA","cellB","sortDirection","sortStates","compare","getHeaderProps","getRowProps","getTableProps","TableContainer","Table","TableHead","TableRow","header","TableHeader","TableBody","row","cell","TableCell","ResponsiveWrapper","Tile","EmptyDataIllustration","importTranslation","require","moduleName","startupApp","defineConfigSchema","attachmentsOverview","getSyncLifecycle","patientUuid","data","mutate","isValidating","useAttachments","allowedFileExtensions","useAllowedFileExtensions","setAttachmentToPreview","useState","hasUploadError","setHasUploadError","view","setView","item","createGalleryEntry","closeImageOrPdfPreview","useCallback","showSnackbar","deleteAttachment","deleteAttachmentPermanently","AbortController","anchor","document","showAddAttachmentModal","close","showModal","file","createAttachment","showDeleteAttachmentModal","UserHasAccess","CardHeader","Loading","ContentSwitcher","IconSwitch","Thumbnail_2","List","AddIcon","AttachmentsGridOverview","AttachmentsTableOverview","AttachmentPreview","EmptyState","attachmentsSummaryResultsDashboard","createDashboardLink","capturePhotoModal","getAsyncLifecycle","capturePhotoWidget","deleteAttachmentModal","attachmentPreviewModal","readFileAsString","resolve","reader","FileReader","getAttachmentBytesUrl","formatDate"],"mappings":"0JAAA,IAAI,EAAM,CACR,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,MACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,iBAAkB,CAChB,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,AACH,EACA,SAAS,EAAuB,CAAG,EACjC,GAAG,CAAC,EAAoB,CAAC,CAAC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mrs/esm-patient-attachments-app/./src/attachments/attachment-media.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/attachments-config-schema.ts","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachment-preview.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachment-preview.scss?db63","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachment-thumbnail.scss?3dea","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachment-thumbnail.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-grid-overview.scss?7c8e","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-grid-overview.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-table-overview.scss?6610","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-table-overview.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/index.ts","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-overview.component.tsx","webpack://@openmrs/esm-patient-attachments-app/./src/attachments/attachments-overview.scss?2feb","webpack://@openmrs/esm-patient-attachments-app/./src/dashboard.meta.ts","webpack://@openmrs/esm-patient-attachments-app/./src/utils.ts"],"names":["Promise","Error","Object","attachment","imageClassName","pdfClassName","t","useTranslation","Link","attachmentsConfigSchema","Type","validator","v","attachmentToPreview","onClosePreview","onDeleteAttachment","isTablet","useLayoutType","isPdf","responsiveSize","useEffect","closePreviewOnEscape","event","window","Button","CloseIcon","AttachmentMedia","OverflowMenu","OverflowMenuItem","Linkify","AttachmentThumbnail","props","Thumbnail","ImageThumbnail","PdfThumbnail","DocumentPdf","OtherThumbnail","DocumentUnknown","contentType","imageProps","attachments","isLoading","openAttachment","SkeletonPlaceholder","i","id","dateTime","bytesMimeType","bytesContentFamily","onOpenAttachment","layout","isDesktop","rows","useMemo","styles","Date","IconButton","getCoreTranslation","TrashCanIcon","headers","DataTableSkeleton","DataTable","cellA","cellB","sortDirection","sortStates","compare","getHeaderProps","getRowProps","getTableProps","TableContainer","Table","TableHead","TableRow","header","TableHeader","TableBody","row","cell","TableCell","ResponsiveWrapper","Tile","EmptyDataIllustration","importTranslation","require","moduleName","startupApp","defineConfigSchema","attachmentsOverview","getSyncLifecycle","patientUuid","data","mutate","isValidating","useAttachments","allowedFileExtensions","useAllowedFileExtensions","setAttachmentToPreview","useState","hasUploadError","setHasUploadError","view","setView","item","createGalleryEntry","closeImageOrPdfPreview","useCallback","showSnackbar","deleteAttachment","deleteAttachmentPermanently","AbortController","anchor","document","showAddAttachmentModal","close","showModal","file","createAttachment","showDeleteAttachmentModal","UserHasAccess","CardHeader","Loading","ContentSwitcher","IconSwitch","Thumbnail_2","List","AddIcon","AttachmentsGridOverview","AttachmentsTableOverview","AttachmentPreview","EmptyState","attachmentsSummaryResultsDashboard","createDashboardLink","capturePhotoModal","getAsyncLifecycle","capturePhotoWidget","deleteAttachmentModal","attachmentPreviewModal","readFileAsString","resolve","reader","FileReader","getAttachmentBytesUrl","formatDate"],"mappings":"0JAAA,IAAI,EAAM,CACR,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,gBAAiB,CACf,OACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,eAAgB,CACd,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,OACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,MACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,eAAgB,CACd,MACA,MACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,OACD,CACD,YAAa,CACX,OACA,MACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,eAAgB,CACd,OACA,OACD,CACD,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EAC,EAAO,aAAa,CAACxB,EACvB,MACEuB,EAAQ,GAEZ,EACF,CAMO,SAASnC,EAAmBb,CAAwB,EACzD,MAAO,CACL,GAAIA,EAAK,IAAI,CACb,IAAKmD,AAAAA,GAAAA,EAAAA,qBAAAA,AAAAA,EAAsBnD,EAAK,IAAI,EACpC,SAAUA,EAAK,QAAQ,CAAC,OAAO,CAAC,cAAe,IAC/C,YAAaA,EAAK,OAAO,CACzB,cAAeA,EAAK,QAAQ,CAC5B,SAAUoD,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,EAAW,IAAIxF,KAAKoC,EAAK,QAAQ,EAAG,CAC5C,KAAM,MACR,GACA,cAAeA,EAAK,aAAa,CACjC,mBAAoBA,EAAK,kBAAkB,AAC7C,CACF,C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var _openmrs_esm_patient_attachments_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-patient-attachments-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-patient-attachments-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={7526(e,t,r){"use strict";var n,o,i,a,s,l,u,c,p,d,f,h,m=r(523),g=r.n(m);let y=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),b={};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==(c=r.initializeSharingData)?void 0:c.scopeToSharingDataMapping)?i:{},_=null!=(a=null==(p=r.consumesLoadingData)?void 0:p.chunkMapping)?a:{},v=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},O={},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(v))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-patient-attachments-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,c={},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(a)&&(c.eager=a),p(u)&&(c.strictVersion=u);let d={version:o,scope:[t],shareConfig:c,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(b).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>b),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=b[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:_,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:O,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:O,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},3281(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,c=l.length;u<c;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-patient-attachments-app:13.0.2-pre.12952";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,c=l.length;u<c;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:c,moduleToHandlerMapping:p}=e;n.attachShareScopeMap(u),u.o(c,t)&&c[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}=p[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:c,getter:d,shareInfo:f,treeShakingGetter:h}=p[e],m=i.getUsedExports(u,c),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 y=o.loadShare(c,{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:c}));return h?.()||d()}return e});y.then?r.push(l[e]=y.then(t).catch(n)):t(y)}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_patient_attachments_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-patient-attachments-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-patient-attachments-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={7526(e,t,r){"use strict";var n,o,i,a,s,l,u,c,p,d,f,h,m=r(523),g=r.n(m);let y=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),b={};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==(c=r.initializeSharingData)?void 0:c.scopeToSharingDataMapping)?i:{},_=null!=(a=null==(p=r.consumesLoadingData)?void 0:p.chunkMapping)?a:{},v=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},O={},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(v))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-patient-attachments-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,c={},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(a)&&(c.eager=a),p(u)&&(c.strictVersion=u);let d={version:o,scope:[t],shareConfig:c,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(b).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>y),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>b),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=b[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:_,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:O,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:O,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},3281(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,c=l.length;u<c;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-patient-attachments-app:13.0.2-pre.12957";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,c=l.length;u<c;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:c,moduleToHandlerMapping:p}=e;n.attachShareScopeMap(u),u.o(c,t)&&c[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}=p[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:c,getter:d,shareInfo:f,treeShakingGetter:h}=p[e],m=i.getUsedExports(u,c),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 y=o.loadShare(c,{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:c}));return h?.()||d()}return e});y.then?r.push(l[e]=y.then(t).catch(n)):t(y)}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 c=r?u.find(e=>e[1]===r):u[0];if(!c)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>i.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:c[2],entry:`${n.p}${c[0]}`,type:o,entryGlobalName:c[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),c=r(367),p=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:c.init,getSharedFallbackGetter:p.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:o.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,y=h.bundlerRuntimeOptions;t.attachShareScopeMap=o.attachShareScopeMap,t.bundlerRuntime=f,t.bundlerRuntimeOptions=y,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:c}=t,p=n.version||c.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:p});return h&&"shared"in h&&(Object.keys(c.shared||{}).forEach(e=>{c.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:c}=n;i.status!==c&&(i.status=c,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 c=r[s];if(c)return c;var p=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)p(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||p(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:c}=e;n.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let n=u[e],i=c[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},p=(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)=>p(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?p(()=>{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):p(s,n[2],0,0,(e,t,r)=>e?p(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,c={requiredVersion:`^${o}`},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(a)&&(c.eager=a),p(u)&&(c.strictVersion=u);let d={version:o,scope:[e],shareConfig:c,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]={id:e,exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(3281),s.federation||(s.federation={chunkMatcher:function(e){return!/^(2(022|318|95)|5591|6961|7468|8167|8652|9937)$/.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 c=a[u];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@openmrs/esm-patient-attachments-app:"+r){o=c;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-patient-attachments-app:"+r),o.src=e),l[e]=[t];var p=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(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.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.nc=void 0,s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("6797"),s.e("8670"),s.e("8635"),s.e("8652"),s.e("7468"),s.e("295")]).then(()=>()=>s(5702)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"11.0.1-pre.6006",factory:()=>Promise.all([s.e("6797"),s.e("257"),s.e("9740"),s.e("8652"),s.e("7468"),s.e("5591"),s.e("295"),s.e("8167"),s.e("2022")]).then(()=>()=>s(2551)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"13.0.2-pre.12952",factory:()=>Promise.all([s.e("257"),s.e("8652"),s.e("5591"),s.e("295"),s.e("8167"),s.e("3961"),s.e("6961"),s.e("2318")]).then(()=>()=>s(7360)),eager:0,singleton:1,requiredVersion:"13.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/client",version:"18.3.1",factory:()=>Promise.all([s.e("7468"),s.e("1610")]).then(()=>()=>s(5873)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("689"),s.e("8652")]).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("8652")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([s.e("9712"),s.e("8652"),s.e("7468")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react/jsx-runtime",version:"18.3.1",factory:()=>Promise.all([s.e("8652"),s.e("3390")]).then(()=>()=>s(1085)),eager:0,singleton:1,requiredVersion:"18.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("8652")]).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("8652"),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("8652"),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("8652"),s.e("7209")]).then(()=>()=>s(5216)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-attachments-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,c=s.g.document;if(!u&&c&&(c.currentScript&&"SCRIPT"===c.currentScript.tagName.toUpperCase()&&(u=c.currentScript.src),!u)){var p=c.getElementsByTagName("script");if(p.length)for(var d=p.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=p[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:{8167:["7807","324"],8652:["5399"],7468:["8439"],9499:["6717"],6961:["2664"],295:["3338"],2022:["6442","682","3432","222"],5591:["5571","3660","1619"]},moduleIdToConsumeDataMapping:{222:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5697").then(()=>()=>s(3464))},6442:{shareScope:"default",shareKey:"react-dom/client",import:"react-dom/client",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9229").then(()=>()=>s(5873))},6717:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"13.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("257"),s.e("5591"),s.e("3961"),s.e("9937")]).then(()=>()=>s(7360))},3432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},3338:{shareScope:"default",shareKey:"react/jsx-runtime",import:"react/jsx-runtime",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1009").then(()=>()=>s(1085))},2664:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("6797"),s.e("257"),s.e("9740"),s.e("7468"),s.e("5591"),s.e("2022")]).then(()=>()=>s(2551))},3660:{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))},5571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9712"),s.e("7468")]).then(()=>()=>s(7059))},8439:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("8652")]).then(()=>()=>s(3144))},5399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},682:{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))},7807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))},324:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("6797"),s.e("8670"),s.e("8635"),s.e("7468")]).then(()=>()=>s(5702))},1619:{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))}},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={8921:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({2318:1,5688:1,6022:1,6449:1,6519:1,9499:1,9740:1,9937: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":()=>Promise.all([s.e("8670"),s.e("9861"),s.e("8652"),s.e("295"),s.e("8167"),s.e("6961"),s.e("9499")]).then(()=>()=>s(310))},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={8921: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(/^(2(022|318|95)|5591|6961|7468|8167|8652|9937)$/.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_patient_attachments_app=globalThis.webpackChunk_openmrs_esm_patient_attachments_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(7526)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_patient_attachments_app=s.x()})();
|
|
3
|
+
while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},p=(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)=>p(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?p(()=>{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):p(s,n[2],0,0,(e,t,r)=>e?p(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,c={requiredVersion:`^${o}`},p=function(e){return void 0!==e};p(s)&&(c.singleton=s),p(l)&&(c.requiredVersion=l),p(a)&&(c.eager=a),p(u)&&(c.strictVersion=u);let d={version:o,scope:[e],shareConfig:c,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]={id:e,exports:{}};return i[e].call(r.exports,r,r.exports,s),r.exports}s.m=i,s.c=a,s.x=()=>s(3281),s.federation||(s.federation={chunkMatcher:function(e){return!/^(2(022|318|95)|5591|6961|7468|8167|8652|9937)$/.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 c=a[u];if(c.getAttribute("src")==e||c.getAttribute("data-rspack")=="@openmrs/esm-patient-attachments-app:"+r){o=c;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-patient-attachments-app:"+r),o.src=e),l[e]=[t];var p=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(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.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.nc=void 0,s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@carbon/react",version:"1.92.1",factory:()=>Promise.all([s.e("6797"),s.e("8670"),s.e("8635"),s.e("8652"),s.e("7468"),s.e("295")]).then(()=>()=>s(5702)),eager:0,singleton:1,requiredVersion:"1.x",strictVersion:0},{name:"@openmrs/esm-framework",version:"11.0.1-pre.6018",factory:()=>Promise.all([s.e("6797"),s.e("257"),s.e("9740"),s.e("8652"),s.e("7468"),s.e("5591"),s.e("295"),s.e("8167"),s.e("2022")]).then(()=>()=>s(2551)),eager:0,singleton:1,requiredVersion:"11.x",strictVersion:0},{name:"@openmrs/esm-patient-common-lib",version:"13.0.2-pre.12957",factory:()=>Promise.all([s.e("257"),s.e("8652"),s.e("5591"),s.e("295"),s.e("8167"),s.e("3961"),s.e("6961"),s.e("2318")]).then(()=>()=>s(7360)),eager:0,singleton:1,requiredVersion:"13.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/client",version:"18.3.1",factory:()=>Promise.all([s.e("7468"),s.e("1610")]).then(()=>()=>s(5873)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("689"),s.e("8652")]).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("8652")]).then(()=>()=>s(2348)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react-router-dom",version:"6.30.4",factory:()=>Promise.all([s.e("9712"),s.e("8652"),s.e("7468")]).then(()=>()=>s(7059)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0},{name:"react/jsx-runtime",version:"18.3.1",factory:()=>Promise.all([s.e("8652"),s.e("3390")]).then(()=>()=>s(1085)),eager:0,singleton:1,requiredVersion:"18.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("8652")]).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("8652"),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("8652"),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("8652"),s.e("7209")]).then(()=>()=>s(5216)),eager:0,singleton:1,requiredVersion:"2.x",strictVersion:0}]},uniqueName:"@openmrs/esm-patient-attachments-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,c=s.g.document;if(!u&&c&&(c.currentScript&&"SCRIPT"===c.currentScript.tagName.toUpperCase()&&(u=c.currentScript.src),!u)){var p=c.getElementsByTagName("script");if(p.length)for(var d=p.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=p[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:{8167:["7807","324"],8652:["5399"],7468:["8439"],9499:["6717"],6961:["2664"],295:["3338"],2022:["6442","682","3432","222"],5591:["5571","3660","1619"]},moduleIdToConsumeDataMapping:{222:{shareScope:"default",shareKey:"dayjs",import:"dayjs",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5697").then(()=>()=>s(3464))},6442:{shareScope:"default",shareKey:"react-dom/client",import:"react-dom/client",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("9229").then(()=>()=>s(5873))},6717:{shareScope:"default",shareKey:"@openmrs/esm-patient-common-lib",import:"@openmrs/esm-patient-common-lib",requiredVersion:"13.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("257"),s.e("5591"),s.e("3961"),s.e("9937")]).then(()=>()=>s(7360))},3432:{shareScope:"default",shareKey:"swr/_internal",import:"swr/_internal",requiredVersion:"2.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3989").then(()=>()=>s(2372))},3338:{shareScope:"default",shareKey:"react/jsx-runtime",import:"react/jsx-runtime",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1009").then(()=>()=>s(1085))},2664:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"11.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("6797"),s.e("257"),s.e("9740"),s.e("7468"),s.e("5591"),s.e("2022")]).then(()=>()=>s(2551))},3660:{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))},5571:{shareScope:"default",shareKey:"react-router-dom",import:"react-router-dom",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("9712"),s.e("7468")]).then(()=>()=>s(7059))},8439:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("689"),s.e("8652")]).then(()=>()=>s(3144))},5399:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("466").then(()=>()=>s(4041))},682:{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))},7807:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("1789").then(()=>()=>s(2348))},324:{shareScope:"default",shareKey:"@carbon/react",import:"@carbon/react",requiredVersion:"1.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("6797"),s.e("8670"),s.e("8635"),s.e("7468")]).then(()=>()=>s(5702))},1619:{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))}},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={8921:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({2318:1,5688:1,6022:1,6449:1,6519:1,9499:1,9740:1,9937: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":()=>Promise.all([s.e("8670"),s.e("9861"),s.e("8652"),s.e("295"),s.e("8167"),s.e("6961"),s.e("9499")]).then(()=>()=>s(310))},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={8921: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(/^(2(022|318|95)|5591|6961|7468|8167|8652|9937)$/.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_patient_attachments_app=globalThis.webpackChunk_openmrs_esm_patient_attachments_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(7526)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_patient_attachments_app=s.x()})();
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"attachments":">=3.1.0","webservices.rest":">=2.12.0"},"extensions":[{"name":"attachments-overview-widget","component":"attachmentsOverview","slot":"patient-chart-attachments-dashboard-slot"},{"name":"attachments-results-summary-dashboard","component":"attachmentsSummaryResultsDashboard","slot":"patient-chart-dashboard-slot","meta":{"slot":"patient-chart-attachments-dashboard-slot","path":"attachments"},"order":9},{"name":"capture-photo-widget","component":"capturePhotoWidget","slot":"capture-patient-photo-slot"}],"modals":[{"name":"capture-photo-modal","component":"capturePhotoModal"},{"name":"delete-attachment-modal","component":"deleteAttachmentModal"},{"name":"attachment-preview-modal","component":"attachmentPreviewModal"}],"pages":[],"version":"13.0.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"attachments":">=3.1.0","webservices.rest":">=2.12.0"},"extensions":[{"name":"attachments-overview-widget","component":"attachmentsOverview","slot":"patient-chart-attachments-dashboard-slot"},{"name":"attachments-results-summary-dashboard","component":"attachmentsSummaryResultsDashboard","slot":"patient-chart-dashboard-slot","meta":{"slot":"patient-chart-attachments-dashboard-slot","path":"attachments"},"order":9},{"name":"capture-photo-widget","component":"capturePhotoWidget","slot":"capture-patient-photo-slot"}],"modals":[{"name":"capture-photo-modal","component":"capturePhotoModal"},{"name":"delete-attachment-modal","component":"deleteAttachmentModal"},{"name":"attachment-preview-modal","component":"attachmentPreviewModal"}],"pages":[],"version":"13.0.2-pre.12957"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-patient-attachments-app",
|
|
3
|
-
"version": "13.0.2-pre.
|
|
3
|
+
"version": "13.0.2-pre.12957",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Patient attachments microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-patient-attachments-app.js",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@carbon/react": "^1.92.1",
|
|
60
|
-
"@openmrs/esm-patient-common-lib": "13.0.2-pre.
|
|
60
|
+
"@openmrs/esm-patient-common-lib": "13.0.2-pre.12957",
|
|
61
61
|
"openmrs": "next",
|
|
62
62
|
"vitest": "^4.1.2"
|
|
63
63
|
},
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"add": "Add",
|
|
3
|
+
"addAnImage": "Add image",
|
|
4
|
+
"addAttachment": "Add Attachment",
|
|
5
|
+
"addAttachment_title": "Add Attachment",
|
|
6
|
+
"addMoreAttachments": "Add more attachments",
|
|
7
|
+
"attachmentActions": "Attachment actions",
|
|
8
|
+
"attachmentPreview": "Attachment preview",
|
|
9
|
+
"attachments": "Attachments",
|
|
10
|
+
"Attachments": "Attachments",
|
|
11
|
+
"attachmentsInLowerCase": "attachments",
|
|
12
|
+
"attachmentsInProperFormat": "Attachments",
|
|
13
|
+
"cameraAccessErrorMessage": "Please enable camera access in your browser settings and try again.",
|
|
14
|
+
"cameraError": "Camera Error",
|
|
15
|
+
"chooseSupportedFileType": "The file \"{{fileName}}\" cannot be uploaded. Please upload a file with one of the following extensions: {{supportedExtensions}}.",
|
|
16
|
+
"closeModal": "Close",
|
|
17
|
+
"closePreview": "Close preview",
|
|
18
|
+
"dateUploaded": "Date uploaded",
|
|
19
|
+
"deleteAttachment": "Delete attachment",
|
|
20
|
+
"deleteAttachmentConfirmationText": "Are you sure you want to delete the attachment \"{{fileName}}\"? This action can't be undone.",
|
|
21
|
+
"deleteImage": "Delete image",
|
|
22
|
+
"deletePdf": "Delete PDF",
|
|
23
|
+
"edit": "Edit",
|
|
24
|
+
"enterAttachmentDescription": "Enter attachment description",
|
|
25
|
+
"enterAttachmentName": "Enter attachment name",
|
|
26
|
+
"error": "Error",
|
|
27
|
+
"failed": "failed",
|
|
28
|
+
"failedDeleting": "couldn't be deleted",
|
|
29
|
+
"file": "File",
|
|
30
|
+
"fileDeleted": "File deleted",
|
|
31
|
+
"fileName": "File name",
|
|
32
|
+
"fileSizeInstructions": "Drag and drop files here or click to upload",
|
|
33
|
+
"fileSizeLimitExceeded": "exceeds the size limit of",
|
|
34
|
+
"fileSizeLimitExceededText": "File size limit exceeded",
|
|
35
|
+
"fileUploadSizeConstraints": "File limit is {{fileSize}}MB",
|
|
36
|
+
"gridView": "Grid view",
|
|
37
|
+
"image": "Image",
|
|
38
|
+
"imageDescription": "Image description",
|
|
39
|
+
"imagePlaceholder": "Image placeholder",
|
|
40
|
+
"imagePreview": "Image preview",
|
|
41
|
+
"keepAttachment": "Keep attachment",
|
|
42
|
+
"loadingUploadLimit": "Loading upload size limit...",
|
|
43
|
+
"name": "name",
|
|
44
|
+
"nameIsRequired": "Name is required",
|
|
45
|
+
"noAttachmentsToDisplay": "There are no attachments to display for this patient",
|
|
46
|
+
"noImageToDisplay": "No image to display",
|
|
47
|
+
"noPreviewAvailable": "No preview is available for this file.",
|
|
48
|
+
"openFile": "Open file",
|
|
49
|
+
"retry": "Retry",
|
|
50
|
+
"retryUploadLimit": "Try again before choosing a file.",
|
|
51
|
+
"successfullyDeleted": "successfully deleted",
|
|
52
|
+
"supportedFiletypes": "Supported files are {{supportedFiles}}",
|
|
53
|
+
"tableView": "Table view",
|
|
54
|
+
"type": "Type",
|
|
55
|
+
"unsavedAttachment": "Unsaved attachment",
|
|
56
|
+
"unsavedAttachmentMessage": "You have an unsaved attachment. Are you sure you want to discard it?",
|
|
57
|
+
"unsupportedFileType": "Unsupported file type",
|
|
58
|
+
"uploadComplete": "Upload complete",
|
|
59
|
+
"uploadedSuccessfully": "uploaded successfully",
|
|
60
|
+
"uploadError": "Error uploading file",
|
|
61
|
+
"uploadFiles": "Upload files",
|
|
62
|
+
"uploading": "Uploading",
|
|
63
|
+
"uploadLimitUnavailable": "Could not load the upload size limit",
|
|
64
|
+
"uploadWillContinueInTheBackground": "Files will be uploaded in the background. You can close this modal.",
|
|
65
|
+
"webcam": "Webcam"
|
|
66
|
+
}
|