@openmrs/esm-reports-app 4.2.2-pre.347 → 4.2.2-pre.356
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 +5 -5
- package/dist/1650.js +1 -1
- package/dist/2316.js +1 -1
- package/dist/2358.js +1 -1
- package/dist/3715.js +1 -1
- package/dist/4584.js +1 -1
- package/dist/6336.js +1 -1
- package/dist/6336.js.map +1 -1
- package/dist/7304.js +1 -1
- package/dist/7304.js.map +1 -1
- package/dist/8178.js +1 -1
- package/dist/8178.js.map +1 -1
- package/dist/826.js +1 -1
- package/dist/8390.js +1 -1
- package/dist/9090.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-reports-app.js +1 -1
- package/dist/openmrs-esm-reports-app.js.buildmanifest.json +46 -46
- package/dist/openmrs-esm-reports-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/routes.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Browserslist: browsers data (caniuse-lite) is 10 months old. Please run:
|
|
2
2
|
npx update-browserslist-db@latest
|
|
3
3
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme
|
|
4
|
-
assets by path *.js 3.
|
|
5
|
-
assets by chunk 2.
|
|
4
|
+
assets by path *.js 3.23 MiB
|
|
5
|
+
assets by chunk 2.79 MiB (id hint: vendors)
|
|
6
6
|
assets by status 2.35 MiB [big]
|
|
7
7
|
asset 8178.js 1.96 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
|
|
8
8
|
asset 2345.js 401 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
|
|
@@ -13,13 +13,13 @@ assets by path *.json 32.6 KiB
|
|
|
13
13
|
asset routes.json 661 bytes [emitted] [from: src/routes.json] [copied]
|
|
14
14
|
orphan modules 9.21 MiB [orphan] 3167 modules
|
|
15
15
|
runtime modules 41.7 KiB 28 modules
|
|
16
|
-
built modules 8.
|
|
16
|
+
built modules 8.35 MiB (javascript) 294 bytes (share-init) 294 bytes (consume-shared) [built]
|
|
17
17
|
modules by path ../../node_modules/ 7.9 MiB 555 modules
|
|
18
18
|
modules by path ./ 463 KiB
|
|
19
19
|
modules by path ./translations/ 121 KiB 40 modules
|
|
20
20
|
modules by path ./src/ 342 KiB 24 modules
|
|
21
21
|
provide-module modules 294 bytes
|
|
22
|
-
provide shared module (default) @openmrs/esm-framework@8.0.1-pre.
|
|
22
|
+
provide shared module (default) @openmrs/esm-framework@8.0.1-pre.3425 = ../../no...(truncated) 42 bytes [built] [code generated]
|
|
23
23
|
+ 6 modules
|
|
24
24
|
consume-shared-module modules 294 bytes
|
|
25
25
|
consume shared module (default) @openmrs/esm-framework@* (singleton) (fallback: ...(truncated) 42 bytes [built] [code generated]
|
|
@@ -33,4 +33,4 @@ Assets:
|
|
|
33
33
|
2345.js (401 KiB)
|
|
34
34
|
8178.js (1.96 MiB)
|
|
35
35
|
|
|
36
|
-
webpack 5.99.9 compiled with 1 warning in
|
|
36
|
+
webpack 5.99.9 compiled with 1 warning in 78696 ms
|
package/dist/1650.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([[1650],{39759:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(30977),r=t.n(a),i=t(95924),o=t.n(i)()(r());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-reports__edit-scheduled-report-form__tablet___Li1fK{padding:1.5rem 1rem;background-color:#fff}.-esm-reports__edit-scheduled-report-form__desktop___ibIfk{padding:0rem}.-esm-reports__edit-scheduled-report-form__button___1NcYv{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-reports__edit-scheduled-report-form__container___jdNln{margin:1rem 0rem;background-color:#fff}.-esm-reports__edit-scheduled-report-form__container___jdNln section{margin:.25rem 1rem 0}.-esm-reports__edit-scheduled-report-form__desktopEditSchedule___jjagw{background-color:#fff;display:flex;flex-direction:column;justify-content:space-between}.-esm-reports__edit-scheduled-report-form__outputFormatDiv___3m2U-{margin-bottom:50px;display:flex;padding:32px 16px 16px 16px;flex-direction:column;align-items:flex-start;gap:16px}.-esm-reports__edit-scheduled-report-form__basicInputElement___11PMi{width:300px;height:30px;margin-bottom:30px}.-esm-reports__edit-scheduled-report-form__buttonsDiv___HEfMd{margin-top:50px}.-esm-reports__edit-scheduled-report-form__reportButton___Wpvwj{max-width:none !important;width:350px !important}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/edit-scheduled-report/edit-scheduled-report-form.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,0DACE,mBAAA,CACA,qBDHM,CCMR,2DACE,YAAA,CAGF,0DACE,WAAA,CACA,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,6DACE,gBAAA,CACA,qBDdc,CCgBd,qEACE,oBAAA,CAIJ,uEACE,qBDtBc,CCuBd,YAAA,CACA,qBAAA,CACA,6BAAA,CAGF,mEACE,kBAAA,CACA,YAAA,CACA,2BAAA,CACA,qBAAA,CACA,sBAAA,CACA,QAAA,CAGF,qEACE,WAAA,CACA,WAAA,CACA,kBAAA,CAGF,8DACE,eAAA,CAGF,gEACE,yBAAA,CACA,sBAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.desktop {\n padding: 0rem;\n}\n\n.button {\n height: 4rem;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n}\n\n.container {\n margin: layout.$spacing-05 0rem;\n background-color: $ui-background;\n\n & section {\n margin: layout.$spacing-02 layout.$spacing-05 0;\n }\n}\n\n.desktopEditSchedule {\n background-color: $ui-background;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.outputFormatDiv {\n margin-bottom: 50px;\n display: flex;\n padding: 32px 16px 16px 16px;\n flex-direction: column;\n align-items: flex-start;\n gap: 16px;\n}\n\n.basicInputElement {\n width: 300px;\n height: 30px;\n margin-bottom: 30px;\n}\n\n.buttonsDiv {\n margin-top: 50px;\n}\n\n.reportButton {\n max-width: none !important;\n width: 350px !important;\n}\n"],sourceRoot:""}]),o.locals={tablet:"-esm-reports__edit-scheduled-report-form__tablet___Li1fK",desktop:"-esm-reports__edit-scheduled-report-form__desktop___ibIfk",button:"-esm-reports__edit-scheduled-report-form__button___1NcYv",container:"-esm-reports__edit-scheduled-report-form__container___jdNln",desktopEditSchedule:"-esm-reports__edit-scheduled-report-form__desktopEditSchedule___jjagw",outputFormatDiv:"-esm-reports__edit-scheduled-report-form__outputFormatDiv___3m2U-",basicInputElement:"-esm-reports__edit-scheduled-report-form__basicInputElement___11PMi",buttonsDiv:"-esm-reports__edit-scheduled-report-form__buttonsDiv___HEfMd",reportButton:"-esm-reports__edit-scheduled-report-form__reportButton___Wpvwj"};const l=o},52970:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(30977),r=t.n(a),i=t(95924),o=t.n(i)()(r());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-reports__simple-cron-editor__dangerLabel01___LMUsk{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:#da1e28}.-esm-reports__simple-cron-editor__cronEditor___3HFzf{display:inline}.-esm-reports__simple-cron-editor__cronEditorField___vroT7{float:left}.-esm-reports__simple-cron-editor__cronTimePickerField___yCcD6{float:left;width:min-content}.-esm-reports__simple-cron-editor__cronEditorFieldSeparator___HeJB-{float:left;height:2.5rem;margin-top:1.25rem;margin-left:1.25rem;margin-right:1.25rem}.-esm-reports__simple-cron-editor__cronContainer___nZkT6{padding:1rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/simple-cron-editor/simple-cron-editor.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDF,yDC61BI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD31BF,aDeO,CCZT,sDACE,cAAA,CAGF,2DACE,UAAA,CAGF,+DACE,UAAA,CACA,iBAAA,CAGF,oEACE,UAAA,CACA,aEqBW,CFpBX,kBAAA,CACA,mBAAA,CACA,oBAAA,CAGF,yDACE,YEDW",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.dangerLabel01 {\n @include type.type-style('label-01');\n color: $danger;\n}\n\n.cronEditor {\n display: inline;\n}\n\n.cronEditorField {\n float: left;\n}\n\n.cronTimePickerField {\n float: left;\n width: min-content;\n}\n\n.cronEditorFieldSeparator {\n float: left;\n height: layout.$spacing-08;\n margin-top: 1.25rem;\n margin-left: 1.25rem;\n margin-right: 1.25rem;\n}\n\n.cronContainer {\n padding: layout.$spacing-05;\n}\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={dangerLabel01:"-esm-reports__simple-cron-editor__dangerLabel01___LMUsk",cronEditor:"-esm-reports__simple-cron-editor__cronEditor___3HFzf",cronEditorField:"-esm-reports__simple-cron-editor__cronEditorField___vroT7",cronTimePickerField:"-esm-reports__simple-cron-editor__cronTimePickerField___yCcD6",cronEditorFieldSeparator:"-esm-reports__simple-cron-editor__cronEditorFieldSeparator___HeJB-",cronContainer:"-esm-reports__simple-cron-editor__cronContainer___nZkT6"};const l=o},61650:(e,n,t)=>{t.r(n),t.d(n,{default:()=>He});var a=t(1343),r=t.n(a),i=t(53373),o=t.n(i),l=t(93150),s=t(12345),c=t(12516),u=t(82628),p=t(11715),d=t(68622),f=t(85951),y=t(12116),h=t(57691),g=t(59172),m=t(23517),b=t(95635);function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function $(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,n){return"java.util.Date"===e.type?new Date(n):"org.openmrs.Location"===e.type?null==n?void 0:n.uuid:n}const k=function(e){var n=e.parameter,t=e.value,i=e.onChange,o=function(e){var t;t="checkbox"===e.target.type?e.target.checked:e.target.value,d(t),"java.util.Date"===n.type?i(new Date(t).toLocaleDateString()):i(t)},l=(0,u.kH)().locations,c=$((0,a.useState)(A(n,t)),2),p=c[0],d=c[1],f=(0,a.useCallback)((function(e,t){return"java.util.Date"===n.type?(0,m.A)(new Date(e),new Date(t)):(0,m.A)(e,t)}),[n.type]);return(0,a.useEffect)((function(){var e=A(n,t);d((function(n){return f(e,n)?n:e}))}),[t,f,n]),r().createElement("div",{className:b.A.runReportInnerDivElement},function(){switch(n.type){case"java.util.Date":return r().createElement(s.lrV,{datePickerType:"single",onChange:function(e){return n=$(e,1)[0],t=new Date(n),d(t.toISOString()),void i(t.toISOString());var n,t},className:b.A.datePicker,value:p},r().createElement(s.tKA,{id:n.name,labelText:n.label,type:"date"}));case"java.lang.String":case"java.lang.Integer":return r().createElement(s.ksK,{id:n.name,name:n.name,labelText:n.label,className:b.A.basicInputElement,onChange:function(e){return o(e)},value:p});case"org.openmrs.Location":return r().createElement(s.l6P,{id:n.name,name:n.name,labelText:n.label,className:b.A.basicInputElement,onChange:function(e){return o(e)},value:p},r().createElement(s.ebT,{text:"",value:""}),null==l?void 0:l.map((function(e){return r().createElement(s.ebT,{key:e.uuid,text:e.display,value:e.uuid},e.display)})));default:return r().createElement("span",{className:b.A.unknownParameterTypeSpan},"Unknown parameter type: ".concat(n.type," for parameter: ").concat(n.label))}}())};var w=t(46372),x=t.n(w),_=t(57657),C=t.n(_),E=t(72591),S=t.n(E),O=t(1740),T=t.n(O),z=t(88128),D=t.n(z),M=t(30855),j=t.n(M),I=t(93051),P=t.n(I),N=t(73656),F=t.n(N),B=t(52970),q={};q.styleTagTransform=F(),q.setAttributes=j(),q.insert=D().bind(null,"head"),q.domAPI=T(),q.insertStyleElement=P(),S()(B.A,q);const R=B.A&&B.A.locals?B.A.locals:void 0;function U(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function W(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return U(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?U(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const L=function(e){var n=e.value,t=e.onChange,i=(0,l.useTranslation)().t,o=W((0,a.useState)(n),2),c=o[0],u=o[1],p=W((0,a.useState)({invalid:!1,invalidText:null}),2),d=p[0],f=p[1],y=(0,a.useCallback)((function(){var e,n;e=c,(null!=(n=Date)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)?(f({invalid:!1,invalidText:null}),t(c)):(f({invalid:!0,invalidText:i("dateRequired","Required")}),t(null))}),[i,c,t]);return(0,a.useEffect)((function(){u(n)}),[n]),(0,a.useEffect)((function(){y()}),[y,c]),r().createElement("div",null,r().createElement(s.lrV,{datePickerType:"single",value:c,invalid:d.invalid,invalidText:i(d.invalidText),onChange:function(e){var n=W(e,1)[0];u(n)}},r().createElement(s.tKA,{id:"cronDatePicker",labelText:"",hideLabel:!0})),d.invalid&&r().createElement("span",{className:R.dangerLabel01},d.invalidText&&i(d.invalidText)))};var H="once",G="everyDay",Y="everyWeek",K="everyMonth",Z="advanced",J=[H,G,Y,K,Z],Q={once:"Once",everyDay:"Every day",everyWeek:"Every week",everyMonth:"Every month"},V=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map((function(e,n){return{name:e,value:n}})),X={sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday"},ee=[{name:"",value:""},{name:"firstDay",value:"1"},{name:"lastDay",value:"L"}],ne={firstDay:"First day",lastDay:"Last day"};function te(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function ae(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function re(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return te(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?te(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const ie=function(e){var n=e.value,t=e.onChange,i=(0,l.useTranslation)().t,o=re((0,a.useState)(null==n?void 0:n.value),2),c=o[0],u=o[1],p=re((0,a.useState)({invalid:!1,invalidText:null}),2),d=p[0],f=p[1],y=(0,a.useCallback)((function(){c?(f({invalid:!1,invalidText:null}),t(ee.find((function(e){return e.value===c})))):(f({invalid:!0,invalidText:i("dayOfMonthRequired","Required")}),t(null))}),[i,c,t]);(0,a.useEffect)((function(){u(null==n?void 0:n.value)}),[n]),(0,a.useEffect)((function(){y()}),[y,c]);var h=(0,a.useMemo)((function(){return ee.map((function(e){return n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){ae(e,n,t[n])}))}return e}({},e),t=null!=(t={label:i("dayOfMonth_".concat(e.name),ne[e.name]||e.name)})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n;var n,t}))}),[i]);return r().createElement(s.l6P,{id:"dayOfMonth",hideLabel:!0,onChange:function(e){u(e.target.value)},value:c,invalid:d.invalid,invalidText:i(d.invalidText)},h.map((function(e){return r().createElement(s.ebT,{key:e.value,text:e.label,value:e.value.toString()})})))};function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function le(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return oe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const se=function(e){var n=e.value,t=e.onChange,i=(0,l.useTranslation)().t,o=le((0,a.useState)(n),2),c=o[0],u=o[1],p=le((0,a.useState)({invalid:!1,invalidText:null}),2),d=p[0],f=p[1],y=(0,a.useCallback)((function(){c&&c.length>0?(f({invalid:!1,invalidText:null}),t(c)):(f({invalid:!0,invalidText:i("dayOfWeekRequired","Required")}),t(null))}),[i,c,t]);return(0,a.useEffect)((function(){u(n)}),[n]),(0,a.useEffect)((function(){y()}),[y,c]),r().createElement(s.Qp5,{id:"dayOfWeek",hideLabel:!0,selectedItems:c||[],invalid:d.invalid,invalidText:i(d.invalidText),items:V,itemToString:function(e){return e?i("dayOfWeek_"+e.name,X[e.name]||e.name):""},sortItems:function(e,n){var t=n.selectedItems;return e.slice(0).sort((function(e,n){if(e.isSelectAll)return-1;if(n.isSelectAll)return 1;var a=t.includes(e),r=t.includes(n);return a&&!r?-1:r&&!a?1:"number"==typeof e.value&&"number"==typeof n.value?e.value-n.value:"string"==typeof e.value&&"string"==typeof n.value?e.value.localeCompare(n.value):"number"==typeof e.value&&"string"==typeof n.value?-1:"string"==typeof e.value&&"number"==typeof n.value?1:0}))},onChange:function(e){return u(e.selectedItems)},selectionFeedback:"fixed"})};var ce="^(2[0-3]|[0-1]?[0-9]):([0-5][0-9])$",ue=new RegExp(ce);function pe(e){return e?("getHours"in e?(n=e.getHours(),t=e.getMinutes()):(n=(a=e).hours,t=a.minutes),n>23||t>59?"":"".concat(String(n).padStart(2,"0"),":").concat(String(t).padStart(2,"0"))):"";var n,t,a}function de(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function fe(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return de(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?de(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const ye=function(e){var n=e.value,t=e.onChange,i=(0,l.useTranslation)().t,o=fe((0,a.useState)(pe(n)),2),c=o[0],u=o[1],p=fe((0,a.useState)({invalid:!1,invalidText:null}),2),d=p[0],f=p[1],y=(0,a.useCallback)((function(){ue.test(c)?(f({invalid:!1,invalidText:null}),t(function(e){if(!e||!ue.test(e))return null;var n=e.split(":"),t=parseInt(n[0],10),a=parseInt(n[1],10);return t>23||a>59?null:{hours:t,minutes:a}}(c))):(f({invalid:!0,invalidText:i("notATimeText","hh:mm 24-hr pattern required")}),t(null))}),[i,c,t]);return(0,a.useEffect)((function(){var e=pe(n);u(e)}),[n]),r().createElement(s.AG,{id:"cronTimePicker",hideLabel:!0,invalid:d.invalid,invalidText:i(d.invalidText),onBlur:y,onChange:function(e){return u(e.target.value)},pattern:ce,value:c})};function he(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function ge(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){ge(e,n,t[n])}))}return e}function be(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}function ve(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return he(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?he(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}x().extend(C());var $e={scheduleType:H,date:null,time:null,selectedDaysOfWeek:[],selectedDayOfMonth:null,cron:null};function Ae(e){var n=ke(e),t=function(e){if(!e)return null;var n=e.split(" ");return{seconds:n[0],minutes:n[1],hours:n[2],day:n[3],month:n[4],dayOfWeek:n[5],year:n[6]}}(e);return n===Z?{scheduleType:n,date:void 0,selectedDayOfMonth:void 0,selectedDaysOfWeek:[],time:void 0,cron:e}:n===H?{scheduleType:n,date:x()().utc().set("year",parseInt(t.year)).set("month",parseInt(t.month)-1).set("date",parseInt(t.day)).toDate(),selectedDayOfMonth:void 0,selectedDaysOfWeek:[],time:{hours:parseInt(t.hours),minutes:parseInt(t.minutes)},cron:null}:n===G?{scheduleType:n,date:void 0,selectedDayOfMonth:void 0,selectedDaysOfWeek:[],time:{hours:parseInt(t.hours),minutes:parseInt(t.minutes)},cron:null}:n===Y?{scheduleType:n,date:void 0,selectedDayOfMonth:void 0,selectedDaysOfWeek:t.dayOfWeek.split(",").map((function(e){return parseInt(e)})).map((function(e){return V[e]})),time:{hours:parseInt(t.hours),minutes:parseInt(t.minutes)},cron:null}:n===K?{scheduleType:n,date:void 0,selectedDayOfMonth:ee.find((function(e){return(null==e?void 0:e.value)===t.day})),selectedDaysOfWeek:[],time:{hours:parseInt(t.hours),minutes:parseInt(t.minutes)},cron:null}:$e}function ke(e){return e?new RegExp("^0\\s\\d{1,2}\\s\\d{1,2}\\s\\d{1,2}\\s\\d{1,2}\\s[?]\\s\\d{4}").test(e)?H:new RegExp("^0\\s\\d{1,2}\\s\\d{1,2}\\s[*]\\s[*]\\s[?]").test(e)?G:new RegExp("^0\\s\\d{1,2}\\s\\d{1,2}\\s[?]\\s[*]\\s[1-7*,]*").test(e)?Y:new RegExp("^0\\s\\d{1,2}\\s\\d{1,2}\\s(1|L)\\s[*]\\s[?]").test(e)?K:Z:null}const we=function(e){var n,t=e.initialCron,i=e.onChange,o=(0,l.useTranslation)().t,c=ke(t),u=ve((0,a.useState)(Ae(t)),2),p=u[0],d=u[1],f=ve((0,a.useState)(!1),2),y=f[0],h=f[1],g=ve((0,a.useState)(t),2),m=g[0],b=g[1],v=(0,a.useCallback)((function(){return h(!0),!1}),[h]),$=(0,a.useCallback)((function(){return h(!1),!0}),[h]),A=(0,a.useCallback)((function(){var e,n,t=p.scheduleType,a=p.time;if(t===Z){if(!p.cron)return v()}else if(t===H){if(!a||(e=p.date,!(null!=(n=Date)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)))return v()}else if(t===G){if(!a)return v()}else if(t===Y){if(!a||!p.selectedDaysOfWeek||0===p.selectedDaysOfWeek.length)return v()}else if(!(t!==K||a&&p.selectedDayOfMonth))return v();return $()}),[p.cron,p.date,p.scheduleType,p.selectedDayOfMonth,p.selectedDaysOfWeek,p.time,v,$]),k=(0,a.useCallback)((function(){if(A()){var e=p.scheduleType,n=p.time;if(e===Z)b(p.cron);else if(e===H)b("0 ".concat(n.minutes," ").concat(n.hours," ").concat(p.date.getDate()," ").concat(p.date.getMonth()+1," ? ").concat(p.date.getFullYear()));else if(e===G)b("0 ".concat(n.minutes," ").concat(n.hours," * * ?"));else if(e===Y)b("0 ".concat(n.minutes," ").concat(n.hours," ? * ").concat(p.selectedDaysOfWeek.map((function(e){return null==e?void 0:e.value}))));else if(e===K){var t;b("0 ".concat(n.minutes," ").concat(n.hours," ").concat(null===(t=p.selectedDayOfMonth)||void 0===t?void 0:t.value," * ?"))}}else b(null)}),[p.cron,p.date,p.scheduleType,null===(n=p.selectedDayOfMonth)||void 0===n?void 0:n.value,p.selectedDaysOfWeek,p.time,A]);(0,a.useEffect)((function(){d(Ae(t))}),[t]),(0,a.useEffect)((function(){k()}),[k,p]),(0,a.useEffect)((function(){i(m,!y)}),[m,y,i]);var w=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronEditorField},r().createElement(s.l6P,{id:"scheduleType",hideLabel:!0,onChange:function(e){d((function(n){return be(me({},n),{scheduleType:e.target.value})}))},value:p.scheduleType},J.filter((function(e){return c!==Z&&e!==Z||c===Z})).map((function(e){return r().createElement(s.ebT,{key:e,text:o("scheduleType_"+e,Q[e]||e),value:e},e)}))))}),[p.scheduleType,c,o]),x=(0,a.useCallback)((function(e){d((function(n){return be(me({},n),{date:e})}))}),[]),_=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronEditorField},r().createElement(L,{value:p.date,onChange:x}))}),[p.date,x]),C=(0,a.useCallback)((function(e){d((function(n){return be(me({},n),{selectedDaysOfWeek:e})}))}),[]),E=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronEditorField},r().createElement(se,{value:p.selectedDaysOfWeek,onChange:C}))}),[p.selectedDaysOfWeek,C]),S=(0,a.useCallback)((function(e){d((function(n){return be(me({},n),{time:e})}))}),[]),O=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronTimePickerField},r().createElement(ye,{value:p.time,onChange:S}))}),[p.time,S]),T=(0,a.useCallback)((function(e){d((function(n){return be(me({},n),{selectedDayOfMonth:e})}))}),[]),z=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronEditorField},r().createElement(ie,{value:p.selectedDayOfMonth,onChange:T}))}),[p.selectedDayOfMonth,T]),D=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronEditorField},r().createElement(s.ksK,{id:"cron",labelText:"",hideLabel:!0,onChange:function(e){return d((function(n){return be(me({},n),{cron:e.target.value})}))},readOnly:!0,type:"text",value:p.cron}))}),[p.cron]);return r().createElement("div",{className:R.cronContainer},w(),p.scheduleType!==Z&&p.scheduleType!==G&&r().createElement("div",{className:R.cronEditorFieldSeparator},r().createElement("span",null,o("on","on"))),p.scheduleType===H&&_(),p.scheduleType===Y&&E(),p.scheduleType===K&&z(),p.scheduleType!==Z&&r().createElement("div",{className:R.cronEditorFieldSeparator},r().createElement("span",null,o("at","at"))),p.scheduleType!==Z&&O(),p.scheduleType===Z&&D())};var xe=t(39759),_e={};_e.styleTagTransform=F(),_e.setAttributes=j(),_e.insert=D().bind(null,"head"),_e.domAPI=T(),_e.insertStyleElement=P(),S()(xe.A,_e);const Ce=xe.A&&xe.A.locals?xe.A.locals:void 0;function Ee(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function Se(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Oe(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Ee(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ee(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Te=function(e){var n=e.reportDefinitionUuid,t=e.reportRequestUuid,i=e.closePanel,p=(0,l.useTranslation)().t,d="tablet"===(0,c.useLayoutType)(),f=(0,u.LC)(n),y=(0,u.jF)(n).reportDesigns,h=(0,u.Ls)(t).reportRequest,m=Oe((0,a.useState)((null==h?void 0:h.parameterMappings)||{}),2),b=m[0],v=m[1],$=Oe((0,a.useState)(),2),A=$[0],w=$[1],x=Oe((0,a.useState)(),2),_=x[0],C=x[1],E=Oe((0,a.useState)(""),2),S=E[0],O=E[1],T=Oe((0,a.useState)(!1),2),z=T[0],D=T[1],M=Oe((0,a.useState)(!1),2),j=M[0],I=M[1],P=Oe((0,a.useState)(!0),2),N=(P[0],P[1]);(0,a.useEffect)((function(){var e;C(null==h?void 0:h.schedule),w(null==h||null===(e=h.renderingMode)||void 0===e?void 0:e.argument),(null==h?void 0:h.parameterMappings)&&v(h.parameterMappings)}),[h]);var F,B=(0,a.useCallback)((function(e){e.preventDefault(),D(!0);var a={uuid:t||null,reportDefinition:{parameterizable:{uuid:n},parameterMappings:b},renderingMode:{argument:A},schedule:S};(0,u.Ns)(a).pipe((0,g.s)(1)).subscribe((function(){(0,c.showSnackbar)({kind:"success",title:p("reportScheduled","Report scheduled"),subtitle:p("reportScheduledSuccessfullyMsg","Report scheduled successfully")}),i(),D(!1)}),(function(){(0,c.showSnackbar)({kind:"error",title:p("reportScheduledErrorMsg","Failed to schedule a report"),subtitle:p("reportScheduledErrorMsg","Failed to schedule a report")}),i(),D(!1)}))}),[t,n,b,A,S,p,i]);return(0,a.useEffect)((function(){I(!!S&&!!A)}),[S,A]),r().createElement(s.lVW,{className:Ce.desktopEditSchedule,onChange:function(){N((function(e){return!e}))},onSubmit:B},r().createElement(s.BJc,{gap:8,className:Ce.container},r().createElement(we,{initialCron:_,onChange:function(e,n){O(n?e:"")}}),null==f?void 0:f.parameters.map((function(e){return r().createElement(k,{key:"".concat(f.name,"-").concat(e.name,"-param-input"),parameter:e,onChange:function(n){v((function(t){return a=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){Se(e,n,t[n])}))}return e}({},t),r=null!=(r=Se({},e.name,n))?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(r)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(r,e))})),a;var a,r}))},value:null==h?void 0:h.parameterMappings[e.name]})})),r().createElement("div",{className:Ce.outputFormatDiv},r().createElement(s.l6P,{id:"outputFormat",className:Ce.basicInputElement,labelText:p("outputFormat","Output format"),onChange:function(e){return w(e.target.value)},value:A},r().createElement(s.ebT,{text:"",value:""}),null==y?void 0:y.map((function(e){return r().createElement(s.ebT,{key:e.uuid,text:e.name,value:e.uuid},e.name)}))))),r().createElement("div",{className:Ce.buttonsDiv},r().createElement(s.Te$,{className:o()((F={},Se(F,Ce.tablet,d),Se(F,Ce.desktop,!d),F))},r().createElement(s.$nd,{className:Ce.button,kind:"secondary",onClick:i},(0,c.getCoreTranslation)("cancel")),r().createElement(s.$nd,{className:Ce.button,disabled:z||!j,kind:"primary",type:"submit"},(0,c.getCoreTranslation)("save")))))};var ze=t(1019),De=t(17666);x().extend(C());const Me=function(e){var n=e.schedule,t=e.currentDate,a=function(){if(!n)return"";var e=ze.q(n,{hasSeconds:!0}),a=De.D$(e,{startAt:t.toISOString(),matchCount:1});return 1===a.length?x().utc(a[0].toString()).format("YYYY-MM-DD HH:mm"):""}();return r().createElement("span",null,a)};var je=t(77053),Ie=t(37021),Pe=t.n(Ie);const Ne=function(e){var n=e.schedule,t=(0,c.useSession)(),a=n?Pe().toString(n,{locale:t.locale,use24HourTimeFormat:!0,dayOfWeekStartIndexZero:!0}):"";return r().createElement("span",null,a)};var Fe=t(18888);function Be(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const qe=function(e){var n,t=e.hasSchedule,a=(0,l.useTranslation)().t;return r().createElement("span",{className:o()((n={},Be(n,Fe.A.scheduledStatusText,t),Be(n,Fe.A.notScheduledStatusText,!t),n))},t?a("scheduled","Scheduled"):a("notScheduled","Not scheduled"))},Re=function(e){var n=e.cell,t=e.mutate,a=(0,l.useTranslation)().t,i=(0,c.useSession)();return function(){switch(n.info.header){case"name":var e,o;return r().createElement("div",null,null!==(o=null===(e=n.value)||void 0===e?void 0:e.content)&&void 0!==o?o:n.value);case"status":return r().createElement(qe,{hasSchedule:n.value});case"schedule":return r().createElement(Ne,{schedule:n.value});case"nextRun":return r().createElement(Me,{schedule:n.value,currentDate:new Date});case"actions":return r().createElement("div",null,r().createElement(je.A,{shouldBeDisplayed:(0,c.userHasAccess)(h.zD,i.user),label:a("edit","Edit"),icon:function(){return r().createElement(d.ff,{size:16,className:Fe.A.actionButtonIcon})},reportRequestUuid:null,onClick:function(){(0,y._5)(a("editScheduledReport","Edit scheduled report"),r().createElement(Te,{reportDefinitionUuid:n.value.reportDefinitionUuid,reportRequestUuid:n.value.reportRequestUuid,closePanel:function(){(0,y.L9)(),t()}}))}}),r().createElement(je.A,{shouldBeDisplayed:!!n.value.reportRequestUuid&&(0,c.userHasAccess)(h.zD,i.user),label:a("deleteSchedule","Delete Schedule"),icon:function(){return r().createElement(f.zH,{size:16,className:Fe.A.actionButtonIcon})},reportRequestUuid:n.value.reportRequestUuid,onClick:function(){return e=n.value.reportRequestUuid,void(a=(0,c.showModal)("cancel-report-modal",{closeModal:function(){a(),t()},reportRequestUuid:e,modalType:"schedule"}));var e,a}}));default:var l,s;return r().createElement("span",null,null!==(s=null===(l=n.value)||void 0===l?void 0:l.content)&&void 0!==s?s:n.value)}}()};var Ue=t(15283);function We(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function Le(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const He=function(){var e,n,t=(0,l.useTranslation)().t,i=(0,c.useLayoutType)(),d=(0,u.mn)("name"),f=d.scheduledReports,y=d.mutateScheduledReports,h=f?f.map((function(e){return{id:e.reportRequestUuid?e.reportRequestUuid:e.reportDefinitionUuid,name:e.name,status:!!e.reportRequestUuid,schedule:e.schedule,nextRun:e.schedule,actions:{reportDefinitionUuid:e.reportDefinitionUuid,reportRequestUuid:e.reportRequestUuid}}})):[],g=(e=(0,a.useState)(Ue.yQ),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return We(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?We(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=g[0],b=g[1],v=(0,c.usePagination)(h,m),$=v.currentPage,A=v.results,k=v.goTo,w=(0,a.useMemo)((function(){return[{key:"name",header:t("reportName","Report name")},{key:"status",header:t("status","Status")},{key:"schedule",header:t("schedule","Schedule")},{key:"nextRun",header:t("nextRun","Next run")},{key:"actions",header:t("actions","Actions")}]}),[t]);return r().createElement("div",null,r().createElement(c.ExtensionSlot,{name:"breadcrumbs-slot",className:Fe.A.breadcrumb}),r().createElement("div",{className:Fe.A.mainPanelDiv},r().createElement("div",{className:Fe.A.reportsLabelDiv},r().createElement("h3",null,t("scheduledReports","Scheduld Reports"))),r().createElement("div",{className:Fe.A.mainActionButtonsDiv}),r().createElement(s.bQt,{rows:A,headers:w,isSortable:!1},(function(e){var n=e.rows,t=e.headers;return r().createElement(s.K3K,null,r().createElement(s.XIK,null,r().createElement(s.ndF,null,r().createElement(s.Hjg,null,t.map((function(e,n){var t;return r().createElement(s.A0N,{key:null!==(t=e.key)&&void 0!==t?t:"header-".concat(n)},e.header)})))),r().createElement(s.BFY,null,n.map((function(e,n){var t;return r().createElement(s.Hjg,{key:null!==(t=e.id)&&void 0!==t?t:"row-".concat(n),className:Fe.A.tableRow},e.cells.map((function(e){var t;return r().createElement(s.nA6,{key:e.id,className:o()((t={},Le(t,Fe.A.rowCellEven,n%2==0),Le(t,Fe.A.rowCellOdd,n%2!=0),t))},r().createElement(Re,{cell:e,mutate:y}))})))})))))})),r().createElement(s.dKS,{backwardText:t("previousPage","Previous page"),forwardText:t("nextPage","Next page"),page:$,pageSize:m,pageSizes:Ue.ZE,totalItems:null==f?void 0:f.length,size:(0,c.isDesktop)(i)?"sm":"lg",onChange:function(e){var n=e.pageSize,t=e.page;n!==m&&b(n),t!==$&&k(t)}})),r().createElement(p.A,null))}}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_reports_app=globalThis.webpackChunk_openmrs_esm_reports_app||[]).push([[1650],{39759:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(30977),r=t.n(a),i=t(95924),o=t.n(i)()(r());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-reports__edit-scheduled-report-form__tablet___Li1fK{padding:1.5rem 1rem;background-color:#fff}.-esm-reports__edit-scheduled-report-form__desktop___ibIfk{padding:0rem}.-esm-reports__edit-scheduled-report-form__button___1NcYv{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-reports__edit-scheduled-report-form__container___jdNln{margin:1rem 0rem;background-color:#fff}.-esm-reports__edit-scheduled-report-form__container___jdNln section{margin:.25rem 1rem 0}.-esm-reports__edit-scheduled-report-form__desktopEditSchedule___jjagw{background-color:#fff;display:flex;flex-direction:column;justify-content:space-between}.-esm-reports__edit-scheduled-report-form__outputFormatDiv___3m2U-{margin-bottom:50px;display:flex;padding:32px 16px 16px 16px;flex-direction:column;align-items:flex-start;gap:16px}.-esm-reports__edit-scheduled-report-form__basicInputElement___11PMi{width:300px;height:30px;margin-bottom:30px}.-esm-reports__edit-scheduled-report-form__buttonsDiv___HEfMd{margin-top:50px}.-esm-reports__edit-scheduled-report-form__reportButton___Wpvwj{max-width:none !important;width:350px !important}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/edit-scheduled-report/edit-scheduled-report-form.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,0DACE,mBAAA,CACA,qBDHM,CCMR,2DACE,YAAA,CAGF,0DACE,WAAA,CACA,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,6DACE,gBAAA,CACA,qBDdc,CCgBd,qEACE,oBAAA,CAIJ,uEACE,qBDtBc,CCuBd,YAAA,CACA,qBAAA,CACA,6BAAA,CAGF,mEACE,kBAAA,CACA,YAAA,CACA,2BAAA,CACA,qBAAA,CACA,sBAAA,CACA,QAAA,CAGF,qEACE,WAAA,CACA,WAAA,CACA,kBAAA,CAGF,8DACE,eAAA,CAGF,gEACE,yBAAA,CACA,sBAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.desktop {\n padding: 0rem;\n}\n\n.button {\n height: 4rem;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n}\n\n.container {\n margin: layout.$spacing-05 0rem;\n background-color: $ui-background;\n\n & section {\n margin: layout.$spacing-02 layout.$spacing-05 0;\n }\n}\n\n.desktopEditSchedule {\n background-color: $ui-background;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.outputFormatDiv {\n margin-bottom: 50px;\n display: flex;\n padding: 32px 16px 16px 16px;\n flex-direction: column;\n align-items: flex-start;\n gap: 16px;\n}\n\n.basicInputElement {\n width: 300px;\n height: 30px;\n margin-bottom: 30px;\n}\n\n.buttonsDiv {\n margin-top: 50px;\n}\n\n.reportButton {\n max-width: none !important;\n width: 350px !important;\n}\n"],sourceRoot:""}]),o.locals={tablet:"-esm-reports__edit-scheduled-report-form__tablet___Li1fK",desktop:"-esm-reports__edit-scheduled-report-form__desktop___ibIfk",button:"-esm-reports__edit-scheduled-report-form__button___1NcYv",container:"-esm-reports__edit-scheduled-report-form__container___jdNln",desktopEditSchedule:"-esm-reports__edit-scheduled-report-form__desktopEditSchedule___jjagw",outputFormatDiv:"-esm-reports__edit-scheduled-report-form__outputFormatDiv___3m2U-",basicInputElement:"-esm-reports__edit-scheduled-report-form__basicInputElement___11PMi",buttonsDiv:"-esm-reports__edit-scheduled-report-form__buttonsDiv___HEfMd",reportButton:"-esm-reports__edit-scheduled-report-form__reportButton___Wpvwj"};const l=o},52970:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(30977),r=t.n(a),i=t(95924),o=t.n(i)()(r());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-reports__simple-cron-editor__dangerLabel01___LMUsk{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:#da1e28}.-esm-reports__simple-cron-editor__cronEditor___3HFzf{display:inline}.-esm-reports__simple-cron-editor__cronEditorField___vroT7{float:left}.-esm-reports__simple-cron-editor__cronTimePickerField___yCcD6{float:left;width:min-content}.-esm-reports__simple-cron-editor__cronEditorFieldSeparator___HeJB-{float:left;height:2.5rem;margin-top:1.25rem;margin-left:1.25rem;margin-right:1.25rem}.-esm-reports__simple-cron-editor__cronContainer___nZkT6{padding:1rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/simple-cron-editor/simple-cron-editor.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDF,yDC61BI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD31BF,aDeO,CCZT,sDACE,cAAA,CAGF,2DACE,UAAA,CAGF,+DACE,UAAA,CACA,iBAAA,CAGF,oEACE,UAAA,CACA,aEqBW,CFpBX,kBAAA,CACA,mBAAA,CACA,oBAAA,CAGF,yDACE,YEDW",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.dangerLabel01 {\n @include type.type-style('label-01');\n color: $danger;\n}\n\n.cronEditor {\n display: inline;\n}\n\n.cronEditorField {\n float: left;\n}\n\n.cronTimePickerField {\n float: left;\n width: min-content;\n}\n\n.cronEditorFieldSeparator {\n float: left;\n height: layout.$spacing-08;\n margin-top: 1.25rem;\n margin-left: 1.25rem;\n margin-right: 1.25rem;\n}\n\n.cronContainer {\n padding: layout.$spacing-05;\n}\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={dangerLabel01:"-esm-reports__simple-cron-editor__dangerLabel01___LMUsk",cronEditor:"-esm-reports__simple-cron-editor__cronEditor___3HFzf",cronEditorField:"-esm-reports__simple-cron-editor__cronEditorField___vroT7",cronTimePickerField:"-esm-reports__simple-cron-editor__cronTimePickerField___yCcD6",cronEditorFieldSeparator:"-esm-reports__simple-cron-editor__cronEditorFieldSeparator___HeJB-",cronContainer:"-esm-reports__simple-cron-editor__cronContainer___nZkT6"};const l=o},61650:(e,n,t)=>{t.r(n),t.d(n,{default:()=>He});var a=t(1343),r=t.n(a),i=t(53373),o=t.n(i),l=t(72339),s=t(12345),c=t(12516),u=t(82628),p=t(11715),d=t(68622),f=t(85951),y=t(12116),h=t(57691),g=t(59172),m=t(23517),b=t(95635);function v(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function $(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return v(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?v(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,n){return"java.util.Date"===e.type?new Date(n):"org.openmrs.Location"===e.type?null==n?void 0:n.uuid:n}const k=function(e){var n=e.parameter,t=e.value,i=e.onChange,o=function(e){var t;t="checkbox"===e.target.type?e.target.checked:e.target.value,d(t),"java.util.Date"===n.type?i(new Date(t).toLocaleDateString()):i(t)},l=(0,u.kH)().locations,c=$((0,a.useState)(A(n,t)),2),p=c[0],d=c[1],f=(0,a.useCallback)((function(e,t){return"java.util.Date"===n.type?(0,m.A)(new Date(e),new Date(t)):(0,m.A)(e,t)}),[n.type]);return(0,a.useEffect)((function(){var e=A(n,t);d((function(n){return f(e,n)?n:e}))}),[t,f,n]),r().createElement("div",{className:b.A.runReportInnerDivElement},function(){switch(n.type){case"java.util.Date":return r().createElement(s.lrV,{datePickerType:"single",onChange:function(e){return n=$(e,1)[0],t=new Date(n),d(t.toISOString()),void i(t.toISOString());var n,t},className:b.A.datePicker,value:p},r().createElement(s.tKA,{id:n.name,labelText:n.label,type:"date"}));case"java.lang.String":case"java.lang.Integer":return r().createElement(s.ksK,{id:n.name,name:n.name,labelText:n.label,className:b.A.basicInputElement,onChange:function(e){return o(e)},value:p});case"org.openmrs.Location":return r().createElement(s.l6P,{id:n.name,name:n.name,labelText:n.label,className:b.A.basicInputElement,onChange:function(e){return o(e)},value:p},r().createElement(s.ebT,{text:"",value:""}),null==l?void 0:l.map((function(e){return r().createElement(s.ebT,{key:e.uuid,text:e.display,value:e.uuid},e.display)})));default:return r().createElement("span",{className:b.A.unknownParameterTypeSpan},"Unknown parameter type: ".concat(n.type," for parameter: ").concat(n.label))}}())};var w=t(46372),x=t.n(w),_=t(57657),C=t.n(_),E=t(72591),S=t.n(E),O=t(1740),T=t.n(O),z=t(88128),D=t.n(z),M=t(30855),j=t.n(M),I=t(93051),P=t.n(I),N=t(73656),F=t.n(N),B=t(52970),q={};q.styleTagTransform=F(),q.setAttributes=j(),q.insert=D().bind(null,"head"),q.domAPI=T(),q.insertStyleElement=P(),S()(B.A,q);const R=B.A&&B.A.locals?B.A.locals:void 0;function U(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function W(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return U(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?U(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const L=function(e){var n=e.value,t=e.onChange,i=(0,l.useTranslation)().t,o=W((0,a.useState)(n),2),c=o[0],u=o[1],p=W((0,a.useState)({invalid:!1,invalidText:null}),2),d=p[0],f=p[1],y=(0,a.useCallback)((function(){var e,n;e=c,(null!=(n=Date)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)?(f({invalid:!1,invalidText:null}),t(c)):(f({invalid:!0,invalidText:i("dateRequired","Required")}),t(null))}),[i,c,t]);return(0,a.useEffect)((function(){u(n)}),[n]),(0,a.useEffect)((function(){y()}),[y,c]),r().createElement("div",null,r().createElement(s.lrV,{datePickerType:"single",value:c,invalid:d.invalid,invalidText:i(d.invalidText),onChange:function(e){var n=W(e,1)[0];u(n)}},r().createElement(s.tKA,{id:"cronDatePicker",labelText:"",hideLabel:!0})),d.invalid&&r().createElement("span",{className:R.dangerLabel01},d.invalidText&&i(d.invalidText)))};var H="once",G="everyDay",Y="everyWeek",K="everyMonth",Z="advanced",J=[H,G,Y,K,Z],Q={once:"Once",everyDay:"Every day",everyWeek:"Every week",everyMonth:"Every month"},V=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map((function(e,n){return{name:e,value:n}})),X={sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday"},ee=[{name:"",value:""},{name:"firstDay",value:"1"},{name:"lastDay",value:"L"}],ne={firstDay:"First day",lastDay:"Last day"};function te(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function ae(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function re(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return te(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?te(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const ie=function(e){var n=e.value,t=e.onChange,i=(0,l.useTranslation)().t,o=re((0,a.useState)(null==n?void 0:n.value),2),c=o[0],u=o[1],p=re((0,a.useState)({invalid:!1,invalidText:null}),2),d=p[0],f=p[1],y=(0,a.useCallback)((function(){c?(f({invalid:!1,invalidText:null}),t(ee.find((function(e){return e.value===c})))):(f({invalid:!0,invalidText:i("dayOfMonthRequired","Required")}),t(null))}),[i,c,t]);(0,a.useEffect)((function(){u(null==n?void 0:n.value)}),[n]),(0,a.useEffect)((function(){y()}),[y,c]);var h=(0,a.useMemo)((function(){return ee.map((function(e){return n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){ae(e,n,t[n])}))}return e}({},e),t=null!=(t={label:i("dayOfMonth_".concat(e.name),ne[e.name]||e.name)})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n;var n,t}))}),[i]);return r().createElement(s.l6P,{id:"dayOfMonth",hideLabel:!0,onChange:function(e){u(e.target.value)},value:c,invalid:d.invalid,invalidText:i(d.invalidText)},h.map((function(e){return r().createElement(s.ebT,{key:e.value,text:e.label,value:e.value.toString()})})))};function oe(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function le(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return oe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oe(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const se=function(e){var n=e.value,t=e.onChange,i=(0,l.useTranslation)().t,o=le((0,a.useState)(n),2),c=o[0],u=o[1],p=le((0,a.useState)({invalid:!1,invalidText:null}),2),d=p[0],f=p[1],y=(0,a.useCallback)((function(){c&&c.length>0?(f({invalid:!1,invalidText:null}),t(c)):(f({invalid:!0,invalidText:i("dayOfWeekRequired","Required")}),t(null))}),[i,c,t]);return(0,a.useEffect)((function(){u(n)}),[n]),(0,a.useEffect)((function(){y()}),[y,c]),r().createElement(s.Qp5,{id:"dayOfWeek",hideLabel:!0,selectedItems:c||[],invalid:d.invalid,invalidText:i(d.invalidText),items:V,itemToString:function(e){return e?i("dayOfWeek_"+e.name,X[e.name]||e.name):""},sortItems:function(e,n){var t=n.selectedItems;return e.slice(0).sort((function(e,n){if(e.isSelectAll)return-1;if(n.isSelectAll)return 1;var a=t.includes(e),r=t.includes(n);return a&&!r?-1:r&&!a?1:"number"==typeof e.value&&"number"==typeof n.value?e.value-n.value:"string"==typeof e.value&&"string"==typeof n.value?e.value.localeCompare(n.value):"number"==typeof e.value&&"string"==typeof n.value?-1:"string"==typeof e.value&&"number"==typeof n.value?1:0}))},onChange:function(e){return u(e.selectedItems)},selectionFeedback:"fixed"})};var ce="^(2[0-3]|[0-1]?[0-9]):([0-5][0-9])$",ue=new RegExp(ce);function pe(e){return e?("getHours"in e?(n=e.getHours(),t=e.getMinutes()):(n=(a=e).hours,t=a.minutes),n>23||t>59?"":"".concat(String(n).padStart(2,"0"),":").concat(String(t).padStart(2,"0"))):"";var n,t,a}function de(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function fe(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return de(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?de(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const ye=function(e){var n=e.value,t=e.onChange,i=(0,l.useTranslation)().t,o=fe((0,a.useState)(pe(n)),2),c=o[0],u=o[1],p=fe((0,a.useState)({invalid:!1,invalidText:null}),2),d=p[0],f=p[1],y=(0,a.useCallback)((function(){ue.test(c)?(f({invalid:!1,invalidText:null}),t(function(e){if(!e||!ue.test(e))return null;var n=e.split(":"),t=parseInt(n[0],10),a=parseInt(n[1],10);return t>23||a>59?null:{hours:t,minutes:a}}(c))):(f({invalid:!0,invalidText:i("notATimeText","hh:mm 24-hr pattern required")}),t(null))}),[i,c,t]);return(0,a.useEffect)((function(){var e=pe(n);u(e)}),[n]),r().createElement(s.AG,{id:"cronTimePicker",hideLabel:!0,invalid:d.invalid,invalidText:i(d.invalidText),onBlur:y,onChange:function(e){return u(e.target.value)},pattern:ce,value:c})};function he(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function ge(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){ge(e,n,t[n])}))}return e}function be(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}function ve(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return he(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?he(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}x().extend(C());var $e={scheduleType:H,date:null,time:null,selectedDaysOfWeek:[],selectedDayOfMonth:null,cron:null};function Ae(e){var n=ke(e),t=function(e){if(!e)return null;var n=e.split(" ");return{seconds:n[0],minutes:n[1],hours:n[2],day:n[3],month:n[4],dayOfWeek:n[5],year:n[6]}}(e);return n===Z?{scheduleType:n,date:void 0,selectedDayOfMonth:void 0,selectedDaysOfWeek:[],time:void 0,cron:e}:n===H?{scheduleType:n,date:x()().utc().set("year",parseInt(t.year)).set("month",parseInt(t.month)-1).set("date",parseInt(t.day)).toDate(),selectedDayOfMonth:void 0,selectedDaysOfWeek:[],time:{hours:parseInt(t.hours),minutes:parseInt(t.minutes)},cron:null}:n===G?{scheduleType:n,date:void 0,selectedDayOfMonth:void 0,selectedDaysOfWeek:[],time:{hours:parseInt(t.hours),minutes:parseInt(t.minutes)},cron:null}:n===Y?{scheduleType:n,date:void 0,selectedDayOfMonth:void 0,selectedDaysOfWeek:t.dayOfWeek.split(",").map((function(e){return parseInt(e)})).map((function(e){return V[e]})),time:{hours:parseInt(t.hours),minutes:parseInt(t.minutes)},cron:null}:n===K?{scheduleType:n,date:void 0,selectedDayOfMonth:ee.find((function(e){return(null==e?void 0:e.value)===t.day})),selectedDaysOfWeek:[],time:{hours:parseInt(t.hours),minutes:parseInt(t.minutes)},cron:null}:$e}function ke(e){return e?new RegExp("^0\\s\\d{1,2}\\s\\d{1,2}\\s\\d{1,2}\\s\\d{1,2}\\s[?]\\s\\d{4}").test(e)?H:new RegExp("^0\\s\\d{1,2}\\s\\d{1,2}\\s[*]\\s[*]\\s[?]").test(e)?G:new RegExp("^0\\s\\d{1,2}\\s\\d{1,2}\\s[?]\\s[*]\\s[1-7*,]*").test(e)?Y:new RegExp("^0\\s\\d{1,2}\\s\\d{1,2}\\s(1|L)\\s[*]\\s[?]").test(e)?K:Z:null}const we=function(e){var n,t=e.initialCron,i=e.onChange,o=(0,l.useTranslation)().t,c=ke(t),u=ve((0,a.useState)(Ae(t)),2),p=u[0],d=u[1],f=ve((0,a.useState)(!1),2),y=f[0],h=f[1],g=ve((0,a.useState)(t),2),m=g[0],b=g[1],v=(0,a.useCallback)((function(){return h(!0),!1}),[h]),$=(0,a.useCallback)((function(){return h(!1),!0}),[h]),A=(0,a.useCallback)((function(){var e,n,t=p.scheduleType,a=p.time;if(t===Z){if(!p.cron)return v()}else if(t===H){if(!a||(e=p.date,!(null!=(n=Date)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)))return v()}else if(t===G){if(!a)return v()}else if(t===Y){if(!a||!p.selectedDaysOfWeek||0===p.selectedDaysOfWeek.length)return v()}else if(!(t!==K||a&&p.selectedDayOfMonth))return v();return $()}),[p.cron,p.date,p.scheduleType,p.selectedDayOfMonth,p.selectedDaysOfWeek,p.time,v,$]),k=(0,a.useCallback)((function(){if(A()){var e=p.scheduleType,n=p.time;if(e===Z)b(p.cron);else if(e===H)b("0 ".concat(n.minutes," ").concat(n.hours," ").concat(p.date.getDate()," ").concat(p.date.getMonth()+1," ? ").concat(p.date.getFullYear()));else if(e===G)b("0 ".concat(n.minutes," ").concat(n.hours," * * ?"));else if(e===Y)b("0 ".concat(n.minutes," ").concat(n.hours," ? * ").concat(p.selectedDaysOfWeek.map((function(e){return null==e?void 0:e.value}))));else if(e===K){var t;b("0 ".concat(n.minutes," ").concat(n.hours," ").concat(null===(t=p.selectedDayOfMonth)||void 0===t?void 0:t.value," * ?"))}}else b(null)}),[p.cron,p.date,p.scheduleType,null===(n=p.selectedDayOfMonth)||void 0===n?void 0:n.value,p.selectedDaysOfWeek,p.time,A]);(0,a.useEffect)((function(){d(Ae(t))}),[t]),(0,a.useEffect)((function(){k()}),[k,p]),(0,a.useEffect)((function(){i(m,!y)}),[m,y,i]);var w=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronEditorField},r().createElement(s.l6P,{id:"scheduleType",hideLabel:!0,onChange:function(e){d((function(n){return be(me({},n),{scheduleType:e.target.value})}))},value:p.scheduleType},J.filter((function(e){return c!==Z&&e!==Z||c===Z})).map((function(e){return r().createElement(s.ebT,{key:e,text:o("scheduleType_"+e,Q[e]||e),value:e},e)}))))}),[p.scheduleType,c,o]),x=(0,a.useCallback)((function(e){d((function(n){return be(me({},n),{date:e})}))}),[]),_=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronEditorField},r().createElement(L,{value:p.date,onChange:x}))}),[p.date,x]),C=(0,a.useCallback)((function(e){d((function(n){return be(me({},n),{selectedDaysOfWeek:e})}))}),[]),E=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronEditorField},r().createElement(se,{value:p.selectedDaysOfWeek,onChange:C}))}),[p.selectedDaysOfWeek,C]),S=(0,a.useCallback)((function(e){d((function(n){return be(me({},n),{time:e})}))}),[]),O=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronTimePickerField},r().createElement(ye,{value:p.time,onChange:S}))}),[p.time,S]),T=(0,a.useCallback)((function(e){d((function(n){return be(me({},n),{selectedDayOfMonth:e})}))}),[]),z=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronEditorField},r().createElement(ie,{value:p.selectedDayOfMonth,onChange:T}))}),[p.selectedDayOfMonth,T]),D=(0,a.useCallback)((function(){return r().createElement("div",{className:R.cronEditorField},r().createElement(s.ksK,{id:"cron",labelText:"",hideLabel:!0,onChange:function(e){return d((function(n){return be(me({},n),{cron:e.target.value})}))},readOnly:!0,type:"text",value:p.cron}))}),[p.cron]);return r().createElement("div",{className:R.cronContainer},w(),p.scheduleType!==Z&&p.scheduleType!==G&&r().createElement("div",{className:R.cronEditorFieldSeparator},r().createElement("span",null,o("on","on"))),p.scheduleType===H&&_(),p.scheduleType===Y&&E(),p.scheduleType===K&&z(),p.scheduleType!==Z&&r().createElement("div",{className:R.cronEditorFieldSeparator},r().createElement("span",null,o("at","at"))),p.scheduleType!==Z&&O(),p.scheduleType===Z&&D())};var xe=t(39759),_e={};_e.styleTagTransform=F(),_e.setAttributes=j(),_e.insert=D().bind(null,"head"),_e.domAPI=T(),_e.insertStyleElement=P(),S()(xe.A,_e);const Ce=xe.A&&xe.A.locals?xe.A.locals:void 0;function Ee(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function Se(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Oe(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Ee(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ee(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Te=function(e){var n=e.reportDefinitionUuid,t=e.reportRequestUuid,i=e.closePanel,p=(0,l.useTranslation)().t,d="tablet"===(0,c.useLayoutType)(),f=(0,u.LC)(n),y=(0,u.jF)(n).reportDesigns,h=(0,u.Ls)(t).reportRequest,m=Oe((0,a.useState)((null==h?void 0:h.parameterMappings)||{}),2),b=m[0],v=m[1],$=Oe((0,a.useState)(),2),A=$[0],w=$[1],x=Oe((0,a.useState)(),2),_=x[0],C=x[1],E=Oe((0,a.useState)(""),2),S=E[0],O=E[1],T=Oe((0,a.useState)(!1),2),z=T[0],D=T[1],M=Oe((0,a.useState)(!1),2),j=M[0],I=M[1],P=Oe((0,a.useState)(!0),2),N=(P[0],P[1]);(0,a.useEffect)((function(){var e;C(null==h?void 0:h.schedule),w(null==h||null===(e=h.renderingMode)||void 0===e?void 0:e.argument),(null==h?void 0:h.parameterMappings)&&v(h.parameterMappings)}),[h]);var F,B=(0,a.useCallback)((function(e){e.preventDefault(),D(!0);var a={uuid:t||null,reportDefinition:{parameterizable:{uuid:n},parameterMappings:b},renderingMode:{argument:A},schedule:S};(0,u.Ns)(a).pipe((0,g.s)(1)).subscribe((function(){(0,c.showSnackbar)({kind:"success",title:p("reportScheduled","Report scheduled"),subtitle:p("reportScheduledSuccessfullyMsg","Report scheduled successfully")}),i(),D(!1)}),(function(){(0,c.showSnackbar)({kind:"error",title:p("reportScheduledErrorMsg","Failed to schedule a report"),subtitle:p("reportScheduledErrorMsg","Failed to schedule a report")}),i(),D(!1)}))}),[t,n,b,A,S,p,i]);return(0,a.useEffect)((function(){I(!!S&&!!A)}),[S,A]),r().createElement(s.lVW,{className:Ce.desktopEditSchedule,onChange:function(){N((function(e){return!e}))},onSubmit:B},r().createElement(s.BJc,{gap:8,className:Ce.container},r().createElement(we,{initialCron:_,onChange:function(e,n){O(n?e:"")}}),null==f?void 0:f.parameters.map((function(e){return r().createElement(k,{key:"".concat(f.name,"-").concat(e.name,"-param-input"),parameter:e,onChange:function(n){v((function(t){return a=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){Se(e,n,t[n])}))}return e}({},t),r=null!=(r=Se({},e.name,n))?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(r)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(r,e))})),a;var a,r}))},value:null==h?void 0:h.parameterMappings[e.name]})})),r().createElement("div",{className:Ce.outputFormatDiv},r().createElement(s.l6P,{id:"outputFormat",className:Ce.basicInputElement,labelText:p("outputFormat","Output format"),onChange:function(e){return w(e.target.value)},value:A},r().createElement(s.ebT,{text:"",value:""}),null==y?void 0:y.map((function(e){return r().createElement(s.ebT,{key:e.uuid,text:e.name,value:e.uuid},e.name)}))))),r().createElement("div",{className:Ce.buttonsDiv},r().createElement(s.Te$,{className:o()((F={},Se(F,Ce.tablet,d),Se(F,Ce.desktop,!d),F))},r().createElement(s.$nd,{className:Ce.button,kind:"secondary",onClick:i},(0,c.getCoreTranslation)("cancel")),r().createElement(s.$nd,{className:Ce.button,disabled:z||!j,kind:"primary",type:"submit"},(0,c.getCoreTranslation)("save")))))};var ze=t(1019),De=t(17666);x().extend(C());const Me=function(e){var n=e.schedule,t=e.currentDate,a=function(){if(!n)return"";var e=ze.q(n,{hasSeconds:!0}),a=De.D$(e,{startAt:t.toISOString(),matchCount:1});return 1===a.length?x().utc(a[0].toString()).format("YYYY-MM-DD HH:mm"):""}();return r().createElement("span",null,a)};var je=t(77053),Ie=t(37021),Pe=t.n(Ie);const Ne=function(e){var n=e.schedule,t=(0,c.useSession)(),a=n?Pe().toString(n,{locale:t.locale,use24HourTimeFormat:!0,dayOfWeekStartIndexZero:!0}):"";return r().createElement("span",null,a)};var Fe=t(18888);function Be(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const qe=function(e){var n,t=e.hasSchedule,a=(0,l.useTranslation)().t;return r().createElement("span",{className:o()((n={},Be(n,Fe.A.scheduledStatusText,t),Be(n,Fe.A.notScheduledStatusText,!t),n))},t?a("scheduled","Scheduled"):a("notScheduled","Not scheduled"))},Re=function(e){var n=e.cell,t=e.mutate,a=(0,l.useTranslation)().t,i=(0,c.useSession)();return function(){switch(n.info.header){case"name":var e,o;return r().createElement("div",null,null!==(o=null===(e=n.value)||void 0===e?void 0:e.content)&&void 0!==o?o:n.value);case"status":return r().createElement(qe,{hasSchedule:n.value});case"schedule":return r().createElement(Ne,{schedule:n.value});case"nextRun":return r().createElement(Me,{schedule:n.value,currentDate:new Date});case"actions":return r().createElement("div",null,r().createElement(je.A,{shouldBeDisplayed:(0,c.userHasAccess)(h.zD,i.user),label:a("edit","Edit"),icon:function(){return r().createElement(d.ff,{size:16,className:Fe.A.actionButtonIcon})},reportRequestUuid:null,onClick:function(){(0,y._5)(a("editScheduledReport","Edit scheduled report"),r().createElement(Te,{reportDefinitionUuid:n.value.reportDefinitionUuid,reportRequestUuid:n.value.reportRequestUuid,closePanel:function(){(0,y.L9)(),t()}}))}}),r().createElement(je.A,{shouldBeDisplayed:!!n.value.reportRequestUuid&&(0,c.userHasAccess)(h.zD,i.user),label:a("deleteSchedule","Delete Schedule"),icon:function(){return r().createElement(f.zH,{size:16,className:Fe.A.actionButtonIcon})},reportRequestUuid:n.value.reportRequestUuid,onClick:function(){return e=n.value.reportRequestUuid,void(a=(0,c.showModal)("cancel-report-modal",{closeModal:function(){a(),t()},reportRequestUuid:e,modalType:"schedule"}));var e,a}}));default:var l,s;return r().createElement("span",null,null!==(s=null===(l=n.value)||void 0===l?void 0:l.content)&&void 0!==s?s:n.value)}}()};var Ue=t(15283);function We(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function Le(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const He=function(){var e,n,t=(0,l.useTranslation)().t,i=(0,c.useLayoutType)(),d=(0,u.mn)("name"),f=d.scheduledReports,y=d.mutateScheduledReports,h=f?f.map((function(e){return{id:e.reportRequestUuid?e.reportRequestUuid:e.reportDefinitionUuid,name:e.name,status:!!e.reportRequestUuid,schedule:e.schedule,nextRun:e.schedule,actions:{reportDefinitionUuid:e.reportDefinitionUuid,reportRequestUuid:e.reportRequestUuid}}})):[],g=(e=(0,a.useState)(Ue.yQ),n=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return We(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?We(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=g[0],b=g[1],v=(0,c.usePagination)(h,m),$=v.currentPage,A=v.results,k=v.goTo,w=(0,a.useMemo)((function(){return[{key:"name",header:t("reportName","Report name")},{key:"status",header:t("status","Status")},{key:"schedule",header:t("schedule","Schedule")},{key:"nextRun",header:t("nextRun","Next run")},{key:"actions",header:t("actions","Actions")}]}),[t]);return r().createElement("div",null,r().createElement(c.ExtensionSlot,{name:"breadcrumbs-slot",className:Fe.A.breadcrumb}),r().createElement("div",{className:Fe.A.mainPanelDiv},r().createElement("div",{className:Fe.A.reportsLabelDiv},r().createElement("h3",null,t("scheduledReports","Scheduld Reports"))),r().createElement("div",{className:Fe.A.mainActionButtonsDiv}),r().createElement(s.bQt,{rows:A,headers:w,isSortable:!1},(function(e){var n=e.rows,t=e.headers;return r().createElement(s.K3K,null,r().createElement(s.XIK,null,r().createElement(s.ndF,null,r().createElement(s.Hjg,null,t.map((function(e,n){var t;return r().createElement(s.A0N,{key:null!==(t=e.key)&&void 0!==t?t:"header-".concat(n)},e.header)})))),r().createElement(s.BFY,null,n.map((function(e,n){var t;return r().createElement(s.Hjg,{key:null!==(t=e.id)&&void 0!==t?t:"row-".concat(n),className:Fe.A.tableRow},e.cells.map((function(e){var t;return r().createElement(s.nA6,{key:e.id,className:o()((t={},Le(t,Fe.A.rowCellEven,n%2==0),Le(t,Fe.A.rowCellOdd,n%2!=0),t))},r().createElement(Re,{cell:e,mutate:y}))})))})))))})),r().createElement(s.dKS,{backwardText:t("previousPage","Previous page"),forwardText:t("nextPage","Next page"),page:$,pageSize:m,pageSizes:Ue.ZE,totalItems:null==f?void 0:f.length,size:(0,c.isDesktop)(i)?"sm":"lg",onChange:function(e){var n=e.pageSize,t=e.page;n!==m&&b(n),t!==$&&k(t)}})),r().createElement(p.A,null))}}}]);
|