@openmrs/esm-openconceptlab-app 3.0.1-pre.10 → 3.0.1-pre.5

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.
Files changed (34) hide show
  1. package/.turbo/turbo-build.log +19 -19
  2. package/dist/15.js +1 -0
  3. package/dist/538.js +2 -0
  4. package/dist/{645.js.LICENSE.txt → 538.js.LICENSE.txt} +0 -0
  5. package/dist/574.js +1 -1
  6. package/dist/862.js +1 -1
  7. package/dist/main.js +1 -1
  8. package/dist/openmrs-esm-openconceptlab-app.js +1 -1
  9. package/dist/openmrs-esm-openconceptlab-app.js.buildmanifest.json +42 -42
  10. package/dist/openmrs-esm-openconceptlab-app.old +1 -1
  11. package/locales/en/translation.json +35 -0
  12. package/locales/fr/translation.json +35 -0
  13. package/package.json +2 -2
  14. package/src/import/import.component.tsx +16 -23
  15. package/src/import/import.test.tsx +15 -13
  16. package/src/root.component.tsx +5 -8
  17. package/src/root.test.tsx +4 -4
  18. package/src/subscription/subscription.component.tsx +17 -28
  19. package/src/subscription/subscription.test.tsx +20 -22
  20. package/src/types.ts +0 -10
  21. package/translations/en.json +26 -40
  22. package/dist/452.js +0 -1
  23. package/dist/645.js +0 -2
  24. package/src/previous-imports/import-overview/import-items.component.scss +0 -24
  25. package/src/previous-imports/import-overview/import-items.component.tsx +0 -124
  26. package/src/previous-imports/import-overview/import-items.resource.ts +0 -10
  27. package/src/previous-imports/import-overview/import-items.test.tsx +0 -93
  28. package/src/previous-imports/import-overview/import-overview.component.scss +0 -11
  29. package/src/previous-imports/import-overview/import-overview.component.tsx +0 -65
  30. package/src/previous-imports/import-overview/import-overview.test.tsx +0 -83
  31. package/src/previous-imports/previous-imports.component.scss +0 -39
  32. package/src/previous-imports/previous-imports.component.tsx +0 -136
  33. package/src/previous-imports/previous-imports.resource.ts +0 -17
  34. package/src/previous-imports/previous-imports.test.tsx +0 -77
@@ -47,9 +47,9 @@ describe(`Subscription component`, () => {
47
47
  renderSubscriptionComponent();
48
48
  await waitForLoadingToFinish();
49
49
 
50
- expect(screen.getByText('Setup Subscription')).toBeVisible();
51
- expect(screen.getByRole('heading', { name: 'Unsubscribe' })).toBeVisible();
52
- expect(screen.getByRole('button', { name: 'danger Unsubscribe' })).toBeDisabled();
50
+ expect(screen.getByText('setupSubscription')).toBeVisible();
51
+ expect(screen.getByText('unsubscribe')).toBeVisible();
52
+ expect(screen.getByText('unsubscribeButton')).toBeDisabled();
53
53
  });
54
54
 
55
55
  it(`renders the subscription if a subscription exists`, async () => {
@@ -58,13 +58,11 @@ describe(`Subscription component`, () => {
58
58
  await waitForLoadingToFinish();
59
59
  await waitForLoadingSubscription();
60
60
 
61
- expect(screen.getByLabelText('Subscription URL')).toHaveValue(mockSubscription.url);
62
- expect(screen.getByLabelText('Token')).toHaveValue(mockSubscription.token);
63
- expect(screen.getByLabelText('Subscribe to SNAPSHOT versions (not recommended)')).not.toBeChecked();
64
- expect(
65
- screen.getByLabelText('Disable validation (should be used with care for well curated collections or sources)'),
66
- ).not.toBeChecked();
67
- expect(screen.getByRole('button', { name: 'danger Unsubscribe' })).toBeEnabled();
61
+ expect(screen.getByLabelText('subscriptionUrl')).toHaveValue(mockSubscription.url);
62
+ expect(screen.getByLabelText('apiToken')).toHaveValue(mockSubscription.token);
63
+ expect(screen.getByLabelText('subscribeToSnapshotText')).not.toBeChecked();
64
+ expect(screen.getByLabelText('disableValidationText')).not.toBeChecked();
65
+ expect(screen.getByText('unsubscribeButton')).toBeEnabled();
68
66
  });
69
67
 
70
68
  it(`allows adding a new subscription`, async () => {
@@ -72,9 +70,9 @@ describe(`Subscription component`, () => {
72
70
  renderSubscriptionComponent();
73
71
  await waitForLoadingToFinish();
74
72
 
75
- const urlInputField = screen.getByLabelText('Subscription URL');
76
- const tokenInputField = screen.getByLabelText('Token');
77
- const saveButton = screen.getByRole('button', { name: 'Save changes' });
73
+ const urlInputField = screen.getByLabelText('subscriptionUrl');
74
+ const tokenInputField = screen.getByLabelText('apiToken');
75
+ const saveButton = screen.getByText('subscribeButton');
78
76
 
79
77
  mockUpdateSubscription.mockReturnValueOnce({ status: 201, ok: true });
80
78
 
@@ -90,7 +88,7 @@ describe(`Subscription component`, () => {
90
88
 
91
89
  expect(mockShowNotification).toHaveBeenCalledWith(
92
90
  expect.objectContaining({
93
- description: 'Subscription created successfully',
91
+ description: 'subscriptionCreated',
94
92
  kind: 'success',
95
93
  }),
96
94
  );
@@ -103,9 +101,9 @@ describe(`Subscription component`, () => {
103
101
  await waitForLoadingToFinish();
104
102
  await waitForLoadingSubscription();
105
103
 
106
- const urlInputField = screen.getByLabelText('Subscription URL');
107
- const tokenInputField = screen.getByLabelText('Token');
108
- const saveButton = screen.getByRole('button', { name: 'Save changes' });
104
+ const urlInputField = screen.getByLabelText('subscriptionUrl');
105
+ const tokenInputField = screen.getByLabelText('apiToken');
106
+ const saveButton = screen.getByText('subscribeButton');
109
107
 
110
108
  mockUpdateSubscription.mockReturnValueOnce({ status: 200, ok: true });
111
109
 
@@ -129,7 +127,7 @@ describe(`Subscription component`, () => {
129
127
 
130
128
  expect(mockShowNotification).toHaveBeenCalledWith(
131
129
  expect.objectContaining({
132
- description: 'Subscription updated successfully',
130
+ description: 'subscriptionUpdated',
133
131
  kind: 'success',
134
132
  }),
135
133
  );
@@ -142,7 +140,7 @@ describe(`Subscription component`, () => {
142
140
  await waitForLoadingToFinish();
143
141
  await waitForLoadingSubscription();
144
142
 
145
- const unsubscribeButton = screen.getByRole('button', { name: 'danger Unsubscribe' });
143
+ const unsubscribeButton = screen.getByText('unsubscribeButton');
146
144
 
147
145
  mockDeleteSubscription.mockReturnValueOnce({ status: 204 });
148
146
 
@@ -156,7 +154,7 @@ describe(`Subscription component`, () => {
156
154
 
157
155
  expect(mockShowNotification).toHaveBeenCalledWith(
158
156
  expect.objectContaining({
159
- description: 'Successfully unsubscribed',
157
+ description: 'subscriptionDeleted',
160
158
  kind: 'success',
161
159
  }),
162
160
  );
@@ -170,12 +168,12 @@ function renderSubscriptionComponent() {
170
168
 
171
169
  function waitForLoadingToFinish() {
172
170
  return waitFor(() => {
173
- expect(screen.getByText('Setup Subscription')).toBeVisible(), { timeout: 2000 };
171
+ expect(screen.getByText('setupSubscription')).toBeVisible(), { timeout: 2000 };
174
172
  });
175
173
  }
176
174
 
177
175
  function waitForLoadingSubscription() {
178
176
  return waitFor(() => {
179
- expect(screen.getByLabelText('Subscription URL')).not.toHaveValue(''), { timeout: 2000 };
177
+ expect(screen.getByLabelText('subscriptionUrl')).not.toHaveValue(''), { timeout: 2000 };
180
178
  });
181
179
  }
package/src/types.ts CHANGED
@@ -14,7 +14,6 @@ export interface Import {
14
14
  errorMessage: string;
15
15
  importProgress: number;
16
16
  allItemsCount: number;
17
- addedItemsCount: number;
18
17
  errorItemsCount: number;
19
18
  ignoredErrorsCount: number;
20
19
  updatedItemsCount: number;
@@ -23,12 +22,3 @@ export interface Import {
23
22
  unretiredItemsCount: number;
24
23
  status: string;
25
24
  }
26
-
27
- export interface ImportItem {
28
- uuid: string;
29
- errorMessage: string;
30
- type: 'CONCEPT' | 'MAPPING';
31
- versionUrl: string;
32
- updatedOn: Date;
33
- state: 'ADDED' | 'UPDATED' | 'RETIRED' | 'UNRETIRED' | 'ERROR' | 'IGNORED_ERROR' | 'UP_TO_DATE' | 'DUPLICATE';
34
- }
@@ -1,51 +1,37 @@
1
1
  {
2
- "advancedOptions": "Advanced Options",
2
+ "moduleTitle": "OCL Subscription Module",
3
+ "subscription": "Subscription",
4
+ "import": "Import",
5
+ "previousImports": "Previous Imports",
6
+ "setupSubscription": "Setup Subscription",
7
+ "subscriptionUrl": "Subscription URL",
3
8
  "apiToken": "Token",
4
- "cancelButton": "Cancel changes",
5
- "cancelledChanges": "Cancelled changes successfully",
6
- "completedOn": "Completed on",
7
- "conceptOrMapping": "Concept/Mapping",
8
- "conceptsAdded": "concepts added",
9
- "conceptsRetired": "concepts retired",
10
- "conceptsUpdated": "concepts updated",
11
- "conceptsUpToDate": "concepts up to date",
12
- "dateAndTime": "Date and Time",
9
+ "advancedOptions": "Advanced Options",
10
+ "subscribeToSnapshotText": "Subscribe to SNAPSHOT versions (not recommended)",
13
11
  "disableValidationText": "Disable validation (should be used with care for well curated collections or sources)",
14
- "duration": "Duration",
15
- "errorDeletingSubscription": "Error occured while deleting the subscription",
12
+ "subscribeButton": "Save changes",
13
+ "cancelButton": "Cancel changes",
14
+ "unsubscribe": "Unsubscribe",
15
+ "unsubscribeButton": "Unsubscribe",
16
+ "unsubscribeInfo": "If you unsubscribe, no concepts will be deleted nor changed. All information about subscription will be deleted from your system.",
17
+ "subscriptionCreated": "Subscription created successfully",
18
+ "subscriptionUpdated": "Subscription updated successfully",
16
19
  "errorSavingSubscription": "Error occured while saving the subscription",
17
- "errorsFound": "errors found",
18
- "errorsIgnored": "errors ignored",
19
- "fileAdded": "File Added",
20
- "fileFormatError": "Only .zip files are allowed",
21
- "import": "Import",
20
+ "subscriptionDeleted": "Successfully unsubscribed",
21
+ "errorDeletingSubscription": "Error occured while deleting the subscription",
22
+ "cancelledChanges": "Cancelled changes successfully",
22
23
  "importConcepts": "Import Concepts",
23
- "importFailed": "Import failed",
24
- "importFromFile": "Import from file",
25
- "importFromFileDragInfo": "Drag and drop file here or click to upload",
24
+ "importInstructions": "Avoid importing during data entry hours, because the operation may significantly slow down the system. You can either use the subscription or a zip file to import concepts.",
25
+ "importFromSubscription": "Import from Subscription",
26
26
  "importFromFileHeading": "Import from file (Offline)",
27
27
  "importFromFileInfo": "You can import data without setting up a subscription by using this option.",
28
- "importFromSubscription": "Import from Subscription",
29
- "importInstructions": "Avoid importing during data entry hours, because the operation may significantly slow down the system. You can either use the subscription or a zip file to import concepts.",
30
- "importItemsFetchError": "Error occured while fetching the import items",
28
+ "fileAdded":"File Added",
29
+ "importFromFileDragInfo": "Drag and drop file here or click to upload",
30
+ "importFromFile": "Import from file",
31
31
  "importSuccess": "Import started successfully",
32
- "message": "Message",
33
- "moduleTitle": "OCL Subscription Module",
32
+ "importFailed": "Import failed",
34
33
  "noFileSelected": "No file selected",
35
34
  "noSubscriptionError": "No saved subscription",
36
- "previousImports": "Previous Imports",
37
- "previousImportsFetchError": "Error occured while fetching the imports",
38
- "result": "Result:",
39
- "setupSubscription": "Setup Subscription",
40
- "startedOn": "Started on",
41
- "status": "Status",
42
- "subscribeButton": "Save changes",
43
- "subscribeToSnapshotText": "Subscribe to SNAPSHOT versions (not recommended)",
44
- "subscription": "Subscription",
45
- "subscriptionDeleted": "Successfully unsubscribed",
46
- "subscriptionError": "Error occured while fetching the subscription",
47
- "subscriptionUrl": "Subscription URL",
48
- "unsubscribe": "Unsubscribe",
49
- "unsubscribeButton": "Unsubscribe",
50
- "unsubscribeInfo": "If you unsubscribe, no concepts will be deleted nor changed. All information about subscription will be deleted from your system."
35
+ "fileFormatError": "Only .zip files are allowed",
36
+ "subscriptionError": "Error occured while fetching the subscription"
51
37
  }
package/dist/452.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([[452],{7564:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ke});var r=n(7730),o=n(268),a=n.n(o),i=n(4924),c=n(9857),s=n(5047),l=n.n(s),u=n(906),p=n(9140);function d(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,c,"next",e)}function c(e){d(a,r,o,i,c,"throw",e)}i(void 0)}))}}function b(e,t){return f.apply(this,arguments)}function f(){return(f=m(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,p.Z)(t.uuid)?"/ws/rest/v1/openconceptlab/subscription":"/ws/rest/v1/openconceptlab/subscription/".concat(t.uuid),e.abrupt("return",(0,u.openmrsFetch)(r,{method:"POST",body:t,headers:{"Content-Type":"application/json"},signal:null==n?void 0:n.signal}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e,t){return g.apply(this,arguments)}function g(){return(g=m(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="/ws/rest/v1/openconceptlab/subscription/".concat(t.uuid),e.abrupt("return",(0,u.openmrsFetch)(r,{method:"DELETE",signal:null==n?void 0:n.signal}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var h=n(6062),v=n.n(h),y=n(4036),E=n.n(y),w=n(6793),S=n.n(w),N=n(7892),k=n.n(N),x=n(1173),T=n.n(x),C=n(2464),O=n.n(C),P=n(7542),A={};A.styleTagTransform=O(),A.setAttributes=k(),A.insert=S().bind(null,"head"),A.domAPI=E(),A.insertStyleElement=T(),v()(P.Z,A);const D=P.Z&&P.Z.locals?P.Z.locals:void 0;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function j(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){F(a,r,o,i,c,"next",e)}function c(e){F(a,r,o,i,c,"throw",e)}i(void 0)}))}}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Z(e,t,n[t])}))}return e}function H(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const L=function(){var e=(0,i.useTranslation)().t,t=(0,c.kY)().mutate,n=B((0,o.useState)(""),2),s=n[0],p=n[1],d=B((0,o.useState)(""),2),m=d[0],f=d[1],g=B((0,o.useState)(!1),2),h=g[0],v=g[1],y=B((0,o.useState)("FULL"),2),E=y[0],w=y[1],S=function(){var e,t=(0,c.ZP)("/ws/rest/v1/openconceptlab/subscription?v=full",u.openmrsFetch),n=t.data,r=t.error,o=t.isValidating;return{data:null==n||null===(e=n.data)||void 0===e?void 0:e.results[0],isLoading:!n&&!r,isError:r,isValidating:o}}(),N=S.data,k=S.isLoading,x=S.isError;(0,o.useEffect)((function(){k||x||(p((null==N?void 0:N.url)||""),f((null==N?void 0:N.token)||""),v((null==N?void 0:N.subscribedToSnapshot)||!1),w((null==N?void 0:N.validationType)||"FULL"))}),[k,x,N]);var T,C=(0,o.useCallback)((function(e){p(e.target.value)}),[]),O=(0,o.useCallback)((function(e){f(e.target.value)}),[]),P=(0,o.useCallback)((function(e){w(e?"NONE":"FULL")}),[]),A=(0,o.useCallback)((function(e){v(e)}),[]),I=(0,o.useCallback)((T=j(l().mark((function n(r){var o,a,i;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r.preventDefault(),r.stopPropagation(),o=new AbortController,a=H(z({},N),{url:s,token:m,validationType:E,subscribedToSnapshot:h}),t("/ws/rest/v1/openconceptlab/subscription?v=full",a,!1),n.next=7,b(a,o);case 7:return i=n.sent,t("/ws/rest/v1/openconceptlab/subscription?v=full"),i.ok?(0,u.showNotification)({kind:"success",description:e(201===i.status?"subscriptionCreated":"subscriptionUpdated",201===i.status?"Subscription created successfully":"Subscription updated successfully")}):(0,u.showNotification)({title:e("errorSavingSubscription","Error occured while saving the subscription"),kind:"error",critical:!0,description:JSON.stringify(i.data)}),n.abrupt("return",(function(){return o.abort()}));case 11:case"end":return n.stop()}}),n)}))),function(e){return T.apply(this,arguments)}),[s,m,E,h,e,N,t]),F=(0,o.useCallback)((function(){p((null==N?void 0:N.url)||""),f((null==N?void 0:N.token)||""),v((null==N?void 0:N.subscribedToSnapshot)||!1),w((null==N?void 0:N.validationType)||"FULL"),(0,u.showNotification)({kind:"info",description:e("cancelledChanges","Cancelled changes successfully")})}),[N,e]),Z=(0,o.useCallback)(function(){var n=j(l().mark((function n(r){var o,a;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r.preventDefault(),r.stopPropagation(),o=new AbortController,n.next=5,_(N,o);case 5:return a=n.sent,t("/ws/rest/v1/openconceptlab/subscription?v=full"),204===a.status?(p(""),f(""),v(!1),w("FULL"),(0,u.showNotification)({kind:"success",description:e("subscriptionDeleted","Successfully unsubscribed")})):(0,u.showNotification)({title:e("errorDeletingSubscription","Error occured while deleting the subscription"),kind:"error",critical:!0,description:JSON.stringify(a.data)}),n.abrupt("return",(function(){return o.abort()}));case 9:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),[N,e,t]);return k?a().createElement(r.rjZ,{className:D.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement(r.l09,null,a().createElement(r.N2B,{className:D.productiveHeading03}),a().createElement(r.Kqy,{gap:5},a().createElement(r.znL,null),a().createElement(r.znL,null),a().createElement(r.cwH,{legendText:a().createElement(r.N2B,{width:"75px"}),className:D.formGroup},a().createElement(r.jJq,null),a().createElement(r.jJq,null))),a().createElement(r.Db,null),a().createElement(r.Db,null)),a().createElement(r.l09,{className:D.unsubscribeForm},a().createElement(r.N2B,{className:D.productiveHeading03}),a().createElement(r.N2B,{className:D.unsubscribeText}),a().createElement(r.Db,null)))):(x&&(0,u.showNotification)({kind:"error",description:e("subscriptionError","Error occured while fetching the subscription")}),a().createElement(r.rjZ,{className:D.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement(r.l09,{onSubmit:I},a().createElement("h3",{className:D.productiveHeading03},e("setupSubscription","Setup Subscription")),a().createElement(r.Kqy,{gap:5},a().createElement(r.oil,{id:"subscriptionUrl",type:"url",labelText:e("subscriptionUrl","Subscription URL"),placeholder:"https://api.openconceptlab.org/orgs/organization-name/collections/dictionary-name",value:s,onChange:C,light:!0,required:!0}),a().createElement(r.oil,{id:"apiToken",type:"password",placeholder:"••••••••••••••••••••••••••••••••••••••••••••••••",labelText:e("apiToken","Token"),value:m,onChange:O,light:!0,required:!0}),a().createElement(r.cwH,{legendText:e("advancedOptions","Advanced Options"),className:D.formGroup},a().createElement(r.XZJ,{checked:h,onChange:A,labelText:e("subscribeToSnapshotText","Subscribe to SNAPSHOT versions (not recommended)"),id:"isSubscribedToSnapshot"}),a().createElement(r.XZJ,{checked:"NONE"===E,onChange:P,labelText:e("disableValidationText","Disable validation (should be used with care for well curated collections or sources)"),id:"isValidationDisabled"}))),a().createElement(r.zxk,{kind:"secondary",onClick:F},e("cancelButton","Cancel changes")),a().createElement(r.zxk,{kind:"primary",type:"submit"},e("subscribeButton","Save changes"))),a().createElement(r.l09,{onSubmit:Z,className:D.unsubscribeForm},a().createElement("h3",{className:D.productiveHeading03},e("unsubscribe","Unsubscribe")),a().createElement("p",{className:D.unsubscribeText},e("unsubscribeInfo","If you unsubscribe, no concepts will be deleted nor changed. All information about subscription will be deleted from your system.")),a().createElement(r.zxk,{kind:"danger",type:"submit",disabled:!N},e("unsubscribeButton","Unsubscribe"))))))};var R=n(302),U={};U.styleTagTransform=O(),U.setAttributes=k(),U.insert=S().bind(null,"head"),U.domAPI=E(),U.insertStyleElement=T(),v()(R.Z,U);const M=R.Z&&R.Z.locals?R.Z.locals:void 0;var G=n(3111),V={};V.styleTagTransform=O(),V.setAttributes=k(),V.insert=S().bind(null,"head"),V.domAPI=E(),V.insertStyleElement=T(),v()(G.Z,V);const K=G.Z&&G.Z.locals?G.Z.locals:void 0;function J(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function X(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){J(a,r,o,i,c,"next",e)}function c(e){J(a,r,o,i,c,"throw",e)}i(void 0)}))}}function q(e){return Y.apply(this,arguments)}function Y(){return(Y=X(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.openmrsFetch)("/ws/rest/v1/openconceptlab/import",{method:"POST",body:{},headers:{"Content-Type":"application/json"},signal:null==t?void 0:t.signal}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e,t){return $.apply(this,arguments)}function $(){return($=X(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=new FormData).append("file",t),e.abrupt("return",(0,u.openmrsFetch)("/ws/rest/v1/openconceptlab/import",{method:"POST",body:r,signal:null==n?void 0:n.signal}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function te(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){ee(a,r,o,i,c,"next",e)}function c(e){ee(a,r,o,i,c,"throw",e)}i(void 0)}))}}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Q(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const re=function(){var e=(0,i.useTranslation)().t,t=ne((0,o.useState)(!1),2),n=t[0],s=t[1],p=ne((0,o.useState)(),2),d=p[0],m=p[1],b=function(){var e,t=(0,c.ZP)("/ws/rest/v1/openconceptlab/subscription?v=full",u.openmrsFetch),n=t.data,r=t.error,o=t.isValidating;return{data:null==n||null===(e=n.data)||void 0===e?void 0:e.results[0],isLoading:!n&&!r,isError:r,isValidating:o}}(),f=b.data,_=b.isLoading,g=b.isError;(0,o.useEffect)((function(){_||g||s(!!f)}),[_,g,f]);var h,v=(0,o.useCallback)((function(t,n){var r=n.addedFiles[0];"application/zip"!==r.type?(0,u.showNotification)({kind:"error",description:e("fileFormatError","Only .zip files are allowed")}):m(r)}),[e]),y=(0,o.useCallback)((function(){m(null)}),[]),E=(0,o.useCallback)((h=te(l().mark((function t(r){var o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.preventDefault(),r.stopPropagation(),n){t.next=5;break}return(0,u.showNotification)({kind:"error",description:e("noSubscriptionError","No saved subscription")}),t.abrupt("return");case 5:return o=new AbortController,t.next=8,q(o);case 8:201===t.sent.status?(0,u.showNotification)({kind:"success",description:e("importSuccess","Import started successfully")}):(0,u.showNotification)({kind:"error",description:e("importFailed","Import failed")});case 10:case"end":return t.stop()}}),t)}))),function(e){return h.apply(this,arguments)}),[n,e]),w=(0,o.useCallback)(function(){var t=te(l().mark((function t(n){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),n.stopPropagation(),d){t.next=5;break}return(0,u.showNotification)({kind:"error",description:e("noFileSelected","No file selected")}),t.abrupt("return");case 5:return r=new AbortController,t.next=8,W(d,r);case 8:201===t.sent.status?(m(null),(0,u.showNotification)({kind:"success",description:e("importSuccess","Import started successfully")})):(0,u.showNotification)({kind:"error",description:e("importFailed","Import failed")});case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[d,e]);return _?a().createElement(r.rjZ,{className:K.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement(r.l09,null,a().createElement(r.N2B,{className:K.productiveHeading03,heading:!0}),a().createElement(r.N2B,{className:K.formText,paragraph:!0,lineCount:2}),a().createElement(r.Db,null)),a().createElement(r.l09,{className:K.form},a().createElement(r.N2B,{className:K.productiveHeading03,heading:!0}),a().createElement(r.N2B,{className:K.formText}),a().createElement(r.rhD,{style:{marginBottom:"1.5rem"}}),a().createElement(r.Db,null)))):(g&&(0,u.showNotification)({kind:"error",description:e("subscriptionError","Error occured while fetching the subscription")}),a().createElement(r.rjZ,{className:K.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement(r.l09,{onSubmit:E},a().createElement("h3",{className:K.productiveHeading03},e("importConcepts","Import Concepts")),a().createElement("p",{className:K.formText},e("importInstructions","Avoid importing during data entry hours, because the operation may significantly slow down the system. You can either use the subscription or a zip file to import concepts.")),a().createElement(r.zxk,{kind:"primary",type:"submit",disabled:!n},e("importFromSubscription","Import from Subscription"))),a().createElement(r.l09,{className:K.form,onSubmit:w},a().createElement("h3",{className:K.productiveHeading03},e("importFromFileHeading","Import from file (Offline)")),a().createElement("p",{className:K.formText},e("importFromFileInfo","You can import data without setting up a subscription by using this option.")),d?a().createElement(r.Py3,{key:d.name,name:d.name,size:"default",status:"edit",iconDescription:e("fileAdded","File Added"),onDelete:y,style:{backgroundColor:"#e0e0e0"}}):a().createElement(r.awp,{accept:["application/zip"],multiple:!0,labelText:e("importFromFileDragInfo","Drag and drop file here or click to upload"),onAddFiles:v,style:{marginBottom:"1.5rem"}}),a().createElement(r.zxk,{kind:"primary",type:"submit"},e("importFromFile","Import from file"))))))};var oe=n(2258),ae={};ae.styleTagTransform=O(),ae.setAttributes=k(),ae.insert=S().bind(null,"head"),ae.domAPI=E(),ae.insertStyleElement=T(),v()(oe.Z,ae);const ie=oe.Z&&oe.Z.locals?oe.Z.locals:void 0;var ce=n(385),se={};se.styleTagTransform=O(),se.setAttributes=k(),se.insert=S().bind(null,"head"),se.domAPI=E(),se.insertStyleElement=T(),v()(ce.Z,se);const le=ce.Z&&ce.Z.locals?ce.Z.locals:void 0;function ue(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function pe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){ue(a,r,o,i,c,"next",e)}function c(e){ue(a,r,o,i,c,"throw",e)}i(void 0)}))}}function de(e,t){return me.apply(this,arguments)}function me(){return(me=pe(l().mark((function e(t,n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="/ws/rest/v1/openconceptlab/import/".concat(t,"/item?state=ERROR&v=full"),e.abrupt("return",(0,u.openmrsFetch)(r,{method:"GET",signal:null==n?void 0:n.signal}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var be=n(8850),fe={};fe.styleTagTransform=O(),fe.setAttributes=k(),fe.insert=S().bind(null,"head"),fe.domAPI=E(),fe.insertStyleElement=T(),v()(be.Z,fe);const _e=be.Z&&be.Z.locals?be.Z.locals:void 0;function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function he(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function ve(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ge(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const ye=function(e){var t,n,c=e.importUuid,s=(0,i.useTranslation)().t,p=ve((0,o.useState)(),2),d=p[0],m=p[1],b=ve((0,o.useState)(5),2),f=b[0],_=b[1],g=ve((0,o.useState)([]),2),h=g[0],v=g[1],y=(0,u.usePagination)(h,f),E=y.results,w=y.currentPage,S=y.goTo,N=(0,o.useCallback)((t=l().mark((function e(t){var n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),n=new AbortController,e.next=4,de(t,n);case 4:return(r=e.sent).ok?v(r.data.results):(0,u.showNotification)({title:s("importItemsFetchError","Error occured while fetching the import items"),kind:"error",critical:!0,description:JSON.stringify(r.data)}),m(!1),e.abrupt("return",(function(){return n.abort()}));case 8:case"end":return e.stop()}}),e)})),n=function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function i(e){he(a,r,o,i,c,"next",e)}function c(e){he(a,r,o,i,c,"throw",e)}i(void 0)}))},function(e){return n.apply(this,arguments)}),[s]);if((0,o.useEffect)((function(){N(c)}),[N,c]),d)return a().createElement("div",null,a().createElement(r.gqd,{showHeader:!1,showToolbar:!1,columnCount:2}),a().createElement(r.F3O,null));var k=[{header:s("conceptOrMapping","Concept/Mapping"),key:"uuid"},{header:s("message","Message"),key:"errorMessage"}];return!d&&a().createElement("div",null,a().createElement(r.iA_,{size:"sm",className:_e.tableBordered},a().createElement(r.ssF,null,a().createElement(r.SCH,{className:_e.tableHeaderRow},k.map((function(e,t){return a().createElement(r.xDH,{key:t,isSortable:!0},e.header)})))),a().createElement(r.RMI,null,null==E?void 0:E.map((function(e){return a().createElement(o.Fragment,{key:e.uuid},a().createElement(r.SCH,{className:_e.tableDataRow},a().createElement(r.pj1,null,a().createElement(r.rUS,{href:e.versionUrl},e.type," ",e.uuid)),a().createElement(r.pj1,null,e.errorMessage)))})))),a().createElement(r.tlE,{className:_e.pagination,size:"sm",page:w,pageSize:f,pageSizes:[5,10,20,50,100],totalItems:null==h?void 0:h.length,onChange:function(e){var t=e.page,n=e.pageSize;S(t),_(n)}}))},Ee=function(e){var t=e.selectedImportObject,n=(0,i.useTranslation)().t;return a().createElement("div",null,a().createElement("span",{className:le.heading01},n("startedOn","Started on")," "),a().createElement("span",{className:"body"},(0,u.formatDatetime)(new Date(t.localDateStarted))),a().createElement("br",null),a().createElement("span",{className:le.heading01},n("completedOn","Completed on")," "),a().createElement("span",{className:"body"},(0,u.formatDatetime)(new Date(t.localDateStopped))),a().createElement("br",null),a().createElement("span",{className:le.heading01},n("duration","Duration")," "),a().createElement("span",{className:"body"},t.importTime),a().createElement("br",null),a().createElement("br",null),a().createElement("span",{className:le.heading01},n("result","Result:")," "),a().createElement("br",null),a().createElement("div",{className:"body ".concat(le.indentedContent)},a().createElement("span",null,t.upToDateItemsCount," ",n("conceptsUpToDate","concepts up to date")),a().createElement("br",null),a().createElement("span",null,t.addedItemsCount," ",n("conceptsAdded","concepts added")),a().createElement("br",null),a().createElement("span",null,t.updatedItemsCount," ",n("conceptsUpdated","concepts updated")),a().createElement("br",null),a().createElement("span",null,t.retiredItemsCount," ",n("conceptsRetired","concepts retired")),a().createElement("br",null),a().createElement("span",null,t.errorItemsCount," ",n("errorsFound","errors found")),a().createElement("br",null),a().createElement("span",null,t.ignoredErrorsCount," ",n("errorsIgnored","errors ignored")),a().createElement("br",null)),a().createElement("br",null),0!=t.errorItemsCount&&a().createElement(ye,{importUuid:t.uuid}))};function we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Se(){return Se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se.apply(this,arguments)}const Ne=function(){var e,t,n=(0,i.useTranslation)().t,s=(e=(0,o.useState)(10),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return we(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?we(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=s[0],p=s[1],d=function(){var e,t=(0,c.ZP)("/ws/rest/v1/openconceptlab/import?v=full",u.openmrsFetch),n=t.data,r=t.error,o=t.isValidating;return{data:null==n||null===(e=n.data)||void 0===e?void 0:e.results,isLoading:!n&&!r,isError:r,isValidating:o}}(),m=d.data,b=d.isLoading,f=d.isError,_=(0,u.usePagination)(m,l),g=_.results,h=_.currentPage,v=_.goTo;if(b)return a().createElement(r.rjZ,{className:ie.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement(r.N2B,{className:ie.productiveHeading03}),a().createElement(r.gqd,{showHeader:!1,showToolbar:!1,rowCount:10,columnCount:3}),a().createElement(r.F3O,null)));f&&(0,u.showNotification)({kind:"error",description:n("previousImportsFetchError","Error occured while fetching the imports")});var y=[{header:n("dateAndTime","Date and Time"),key:"localDateStarted"},{header:n("duration","Duration"),key:"importTime"},{header:n("status","Status"),key:"status"}],E=null==g?void 0:g.map((function(e){return{id:e.uuid,localDateStarted:(0,u.formatDatetime)(new Date(e.localDateStarted)),importTime:e.importTime,status:e.status}}));return!b&&!f&&a().createElement(r.rjZ,{className:ie.grid},a().createElement(r.sgG,{sm:4,md:8,lg:10},a().createElement("h3",{className:ie.productiveHeading03},n("previousImports","Previous Imports")),a().createElement(r.wQF,{rows:E,headers:y,size:"sm"},(function(e){var t=e.rows,n=e.headers,i=e.getHeaderProps,c=e.getRowProps,s=e.getTableProps;return a().createElement(r.iA_,Se({},s(),{className:ie.tableBordered}),a().createElement(r.ssF,null,a().createElement(r.SCH,null,a().createElement(r.MOD,null),n.map((function(e,t){return a().createElement(r.xDH,Se({key:t},i({header:e})),e.header)})))),a().createElement(r.RMI,null,t.map((function(e){return a().createElement(o.Fragment,{key:e.id},a().createElement(r.RcE,Se({},c({row:e}),{className:ie.tableRow}),e.cells.map((function(e){return a().createElement(r.pj1,{key:e.id},e.value)}))),e.isExpanded&&a().createElement(r.WdL,{colSpan:n.length+1,className:ie.tableExpandedRow},a().createElement(Ee,{selectedImportObject:m.find((function(t){return t.uuid===e.id}))})))}))))})),a().createElement(r.tlE,{className:ie.pagination,size:"sm",page:h,pageSize:l,pageSizes:[10,20,50,100],totalItems:m.length,onChange:function(e){var t=e.page,n=e.pageSize;v(t),p(n)}})))},ke=function(){var e=(0,i.useTranslation)().t;return a().createElement(c.J$,null,a().createElement("main",{className:"omrs-main-content ".concat(M.main)},a().createElement("h3",{className:M.moduleHeader},e("moduleTitle","OCL Subscription Module")),a().createElement(r.mQc,null,a().createElement(r.tdY,{className:M.tabList,contained:!0},a().createElement(r.OK9,null,e("subscription","Subscription")," "),a().createElement(r.OK9,null,e("import","Import")," "),a().createElement(r.OK9,null,e("previousImports","Previous Imports")," ")),a().createElement(r.nPR,null,a().createElement(r.x45,{className:M.tabPanel},a().createElement(L,null)),a().createElement(r.x45,{className:M.tabPanel},a().createElement(re,null)),a().createElement(r.x45,{className:M.tabPanel},a().createElement(Ne,null))))))}},3111:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__import-component__grid___5wW0H{margin-left:0;margin-right:0;padding-left:0;padding-right:0}.-esm-openconceptlab__import-component__productiveHeading03___m6cC7{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0);margin-bottom:.5rem}.-esm-openconceptlab__import-component__form___BAtOz{margin-top:2rem}.-esm-openconceptlab__import-component__formText___-LFNS{padding-bottom:1rem}.-esm-openconceptlab__import-component__fileUploaderDropContainer___u9wb\\+{margin-bottom:1.5rem}",""]),o.locals={grid:"-esm-openconceptlab__import-component__grid___5wW0H",productiveHeading03:"-esm-openconceptlab__import-component__productiveHeading03___m6cC7",form:"-esm-openconceptlab__import-component__form___BAtOz",formText:"-esm-openconceptlab__import-component__formText___-LFNS",fileUploaderDropContainer:"-esm-openconceptlab__import-component__fileUploaderDropContainer___u9wb+"};const a=o},8850:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__import-items-component__pagination___UFodW{font-size:var(--cds-body-short-01-font-size, 0.875rem);font-weight:var(--cds-body-short-01-font-weight, 400);line-height:var(--cds-body-short-01-line-height, 1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing, 0.16px);background-color:#fff;color:#525252;border:1px solid #e0e0e0;display:flex}.-esm-openconceptlab__import-items-component__tableBordered___agwp-{border:1px solid #e0e0e0}.-esm-openconceptlab__import-items-component__tableDataRow___BdXBZ>td{padding-left:1rem !important;background-color:#fff !important}.-esm-openconceptlab__import-items-component__tableHeaderRow___rp03z>th{background-color:#e0e0e0 !important}",""]),o.locals={pagination:"-esm-openconceptlab__import-items-component__pagination___UFodW",tableBordered:"-esm-openconceptlab__import-items-component__tableBordered___agwp-",tableDataRow:"-esm-openconceptlab__import-items-component__tableDataRow___BdXBZ",tableHeaderRow:"-esm-openconceptlab__import-items-component__tableHeaderRow___rp03z"};const a=o},385:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__import-overview-component__heading01___wV6-M{font-size:var(--cds-heading-01-font-size, 0.875rem);font-weight:var(--cds-heading-01-font-weight, 600);line-height:var(--cds-heading-01-line-height, 1.42857);letter-spacing:var(--cds-heading-01-letter-spacing, 0.16px)}.-esm-openconceptlab__import-overview-component__indentedContent___kMG5X{margin-left:2rem}",""]),o.locals={heading01:"-esm-openconceptlab__import-overview-component__heading01___wV6-M",indentedContent:"-esm-openconceptlab__import-overview-component__indentedContent___kMG5X"};const a=o},2258:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__previous-imports-component__grid___VG\\+Rw{margin-left:0;margin-right:0;padding-left:0;padding-right:0}.-esm-openconceptlab__previous-imports-component__productiveHeading03___-O6sL{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0);margin-bottom:.5rem}.-esm-openconceptlab__previous-imports-component__pagination___JXNSt{font-size:var(--cds-body-short-01-font-size, 0.875rem);font-weight:var(--cds-body-short-01-font-weight, 400);line-height:var(--cds-body-short-01-line-height, 1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing, 0.16px);background-color:#fff;color:#525252;border:1px solid #e0e0e0;display:flex}.-esm-openconceptlab__previous-imports-component__tableBordered___440s3{border:1px solid #e0e0e0}.-esm-openconceptlab__previous-imports-component__tableRow___tM2aj>td{background-color:#fff;border-bottom:1px solid #e0e0e0 !important}.-esm-openconceptlab__previous-imports-component__tableExpandedRow___fQwKD>td{padding-left:3rem !important;padding-right:3rem;padding-top:1rem;padding-bottom:1rem}",""]),o.locals={grid:"-esm-openconceptlab__previous-imports-component__grid___VG+Rw",productiveHeading03:"-esm-openconceptlab__previous-imports-component__productiveHeading03___-O6sL",pagination:"-esm-openconceptlab__previous-imports-component__pagination___JXNSt",tableBordered:"-esm-openconceptlab__previous-imports-component__tableBordered___440s3",tableRow:"-esm-openconceptlab__previous-imports-component__tableRow___tM2aj",tableExpandedRow:"-esm-openconceptlab__previous-imports-component__tableExpandedRow___fQwKD"};const a=o},302:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__root-component__main___G0\\+lN{background-color:#fff}.-esm-openconceptlab__root-component__moduleHeader___yB-PY{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0);padding-left:1rem;padding-top:1rem;padding-bottom:1rem}.-esm-openconceptlab__root-component__tabList___aXyg4{padding:0 1rem}.-esm-openconceptlab__root-component__tabPanel___2e0wL{height:100%;background-color:#f4f4f4}",""]),o.locals={main:"-esm-openconceptlab__root-component__main___G0+lN",moduleHeader:"-esm-openconceptlab__root-component__moduleHeader___yB-PY",tabList:"-esm-openconceptlab__root-component__tabList___aXyg4",tabPanel:"-esm-openconceptlab__root-component__tabPanel___2e0wL"};const a=o},7542:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(2609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-openconceptlab__subscription-component__grid___Kwugy{margin-left:0;margin-right:0;padding-left:0;padding-right:0}.-esm-openconceptlab__subscription-component__productiveHeading03___xgZur{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0);margin-bottom:.5rem}.-esm-openconceptlab__subscription-component__formGroup___GmK5h{margin-bottom:1rem}.-esm-openconceptlab__subscription-component__unsubscribeText___B9jCa{padding-bottom:1rem}.-esm-openconceptlab__subscription-component__unsubscribeForm___dMi0v{margin-top:1rem}",""]),o.locals={grid:"-esm-openconceptlab__subscription-component__grid___Kwugy",productiveHeading03:"-esm-openconceptlab__subscription-component__productiveHeading03___xgZur",formGroup:"-esm-openconceptlab__subscription-component__formGroup___GmK5h",unsubscribeText:"-esm-openconceptlab__subscription-component__unsubscribeText___B9jCa",unsubscribeForm:"-esm-openconceptlab__subscription-component__unsubscribeForm___dMi0v"};const a=o}}]);