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,gBAAf/d,KAAK+d,MAChC,sBAAsC,YAAf/d,KAAK+d,MAC5B,sBAAsC,YAAf/d,KAAK+d,MAC5B,oBAAoC,UAAf/d,KAAK+d,QAE9B,OAAO,IAAK;iCACaD;;0BAEP9d,KAAKge;yBACP,OAAUhe,KAAKge;kBACrBhe,KAAKge,WAAa;;;;;;;;;;;;;;;;;;;KAoBhC,EAEJpf,EAAW,EACP,QAAS,CAAEuE,KAAMC,UAClB8b,EAAqB7b,UAAW,aAAS,GAC5CzE,EAAW,EACP,QAAS,CAAEuE,KAAMC,UAClB8b,EAAqB7b,UAAW,iBAAa,GAChDzE,EAAW,EACP,QAAS,CAAEuE,KAAMC,UAClB8b,EAAqB7b,UAAW,YAAQ,QACQG,IAA/CC,eAAeC,IAAI,yBACnBD,eAAeE,OAAO,uBAAwBub,E","sources":["webpack://CATSAS/./node_modules/date-fns/add.mjs","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/combined-input/combined-input.styles.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/combined-input/combined-input.ts","webpack://CATSAS/./node_modules/date-fns/startOfHour.mjs","webpack://CATSAS/./node_modules/date-fns/isSameHour.mjs","webpack://CATSAS/./node_modules/date-fns/startOfMinute.mjs","webpack://CATSAS/./node_modules/date-fns/isSameMinute.mjs","webpack://CATSAS/./node_modules/date-fns/setHours.mjs","webpack://CATSAS/./node_modules/date-fns/setMilliseconds.mjs","webpack://CATSAS/./node_modules/date-fns/setMinutes.mjs","webpack://CATSAS/./node_modules/date-fns/setSeconds.mjs","webpack://CATSAS/./node_modules/date-fns/startOfToday.mjs","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/time-selector-list/time-selector-list.styles.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/time-selector-list/time-selector-list.ts","webpack://CATSAS/./node_modules/date-fns/endOfToday.mjs","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/daterangepicker-field/daterangepicker-field.styles.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/daterangepicker-field/daterangepicker-field.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/DaterangepickerField/DaterangepickerField.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/file-upload/file-upload.styles.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/file-upload/file-upload.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/file-upload/file-upload.model.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/FileUpload/FileUpload.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/icon/icons/add-circle.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/AddCircle/AddCircle.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/icon/icons/copy.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/Copy/Copy.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/Dealer/Dealer.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/DocumentFilled/DocumentFilled.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/FileUpload/FileUpload.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/icon/icons/lock.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/Lock/Lock.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/icon/icons/people.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/People/People.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/icon/icons/share.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/Share/Share.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/icon/icons/star.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/Star/Star.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/icon/icons/star-filled.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/StarFilled/StarFilled.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-react/components/Icons/WarningTriangleFilled/WarningTriangleFilled.tsx","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/icon/icons/document-filled.ts","webpack://CATSAS/./node_modules/blocks-nextjs/blocks-web-components/components/icon/icons/file-upload.ts"],"sourcesContent":["import { addDays } from \"./addDays.mjs\";\nimport { addMonths } from \"./addMonths.mjs\";\nimport { constructFrom } from \"./constructFrom.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n/**\n * @name add\n * @category Common Helpers\n * @summary Add the specified years, months, weeks, days, hours, minutes and seconds to the given date.\n *\n * @description\n * Add the specified years, months, weeks, days, hours, minutes and seconds to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param duration - The object with years, months, weeks, days, hours, minutes and seconds to be added.\n *\n * | Key | Description |\n * |----------------|------------------------------------|\n * | years | Amount of years to be added |\n * | months | Amount of months to be added |\n * | weeks | Amount of weeks to be added |\n * | days | Amount of days to be added |\n * | hours | Amount of hours to be added |\n * | minutes | Amount of minutes to be added |\n * | seconds | Amount of seconds to be added |\n *\n * All values default to 0\n *\n * @returns The new date with the seconds added\n *\n * @example\n * // Add the following duration to 1 September 2014, 10:19:50\n * const result = add(new Date(2014, 8, 1, 10, 19, 50), {\n * years: 2,\n * months: 9,\n * weeks: 1,\n * days: 7,\n * hours: 5,\\\\-7\n * minutes: 9,\n * seconds: 30,\n * })\n * //=> Thu Jun 15 2017 15:29:20\n */\nexport function add(date, duration) {\n const {\n years = 0,\n months = 0,\n weeks = 0,\n days = 0,\n hours = 0,\n minutes = 0,\n seconds = 0,\n } = duration;\n\n // Add years and months\n const _date = toDate(date);\n const dateWithMonths =\n months || years ? addMonths(_date, months + years * 12) : _date;\n\n // Add weeks and days\n const dateWithDays =\n days || weeks ? addDays(dateWithMonths, days + weeks * 7) : dateWithMonths;\n\n // Add days, hours, minutes and seconds\n const minutesToAdd = minutes + hours * 60;\n const secondsToAdd = seconds + minutesToAdd * 60;\n const msToAdd = secondsToAdd * 1000;\n const finalDate = constructFrom(date, dateWithDays.getTime() + msToAdd);\n\n return finalDate;\n}\n\n// Fallback for modularized imports:\nexport default add;\n","import { css } from 'lit';\nexport default css ` \n @charset \"UTF-8\";\n/* ------------------------------------*\\\n #RESET\n\\*------------------------------------ */\n/**\n * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/\n */\n*,\n::slotted(*),\n*:before,\n*:after {\n box-sizing: border-box;\n}\n\n:focus-visible {\n outline-color: var(--cat-theme-color-focus-ring);\n}\n\n/* ------------------------------------*\\\n    #BREAKPOINT VARIABLES\n\\*------------------------------------ */\n:root,\n:host {\n --size-base-unit: 0.5rem;\n}\n\n/**\n * RTL support for values logical properties can't automatically adjust for\n * 1) Percentage based horizontal translate values need to be flipped\n * 2) Background gradients using \"to right\" or \"to left\" need to be switched to using deg values\n * 3) Background Position From is used for reversing animation from right to left at 0%\n * 4) Background Position To is used for reversing animation from right to left at 100%\n * 5) Rotate Icon to 180deg for nav button\n * 6) Transformation size for badge left positions\n * 7) Transformation size for badge right positions\n * 8 to 18) Padding values for Input Field Type Tel\n */\n[dir=rtl] {\n --rtlTranslateX: 50%; /* 1 */\n --rtlGradientToRight: 270deg; /* 2 */\n --rtlBackgroundPositionFrom: -135%; /* 3 */\n --rtlBackgroundPositionTo: 0%; /* 4 */\n --rtlRotate180: 180deg; /* 5 */\n --rtlRotate135: 135deg;\n --rtlBadgeLeft: -1.5; /* 6 */\n --rtlBadgeRight: 1.5; /* 7 */\n --rtlTelTypeInputFieldPaddingStart: calc(var(--size-base-unit) * 5); /* 8 */\n --rtlTelTypeInputFieldPaddingEnd: calc(var(--size-base-unit) * 2); /* 9 */\n --rtlTelTypeInputFieldMedPaddingStart: calc(var(--size-base-unit) * 4.5); /* 10 */\n --rtlTelTypeInputFieldMedPaddingEnd: calc(var(--size-base-unit) * 1.5); /* 11 */\n --rtlTelTypeInputFieldSmPaddingStart: calc(var(--size-base-unit) * 4); /* 12 */\n --rtlTelTypeInputFieldSmPaddingEnd: calc(var(--size-base-unit) * 1); /* 13 */\n --rtlTelTypeInputFieldCharBeforePaddingEnd: calc(var(--size-base-unit) * 3.75); /* 14 */\n --rtlTelTypeInputFieldCharAfterPaddingStart: calc(var(--size-base-unit) * 6); /* 15 */\n --rtlTelTypeInputFieldCharAfterErrPaddingStart: calc(var(--size-base-unit) * 9); /* 16 */\n --rtlTelTypeInputFieldIconAfterErrPaddingStart: calc(var(--size-base-unit) * 8); /* 17 */\n --rtlTelTypeInputFieldIconCharAfterErrPaddingStart: calc(var(--size-base-unit) * 12); /* 18 */\n --rtlDisplayNone: none;\n --rtlDisplayBlock: block;\n --rtlDrawerRightTranslateX: -100%;\n --rtlDrawerLeftTranslateX: 100%;\n}\n\n/**\n * Visible focus outline for elements on a light background\n */\n/**\n * Visible focus outline for elements on a dark background\n */\n/**\n * Invisible focus outline for elements that need a more visible\n * focus state for high-contrast mode\n */\n/**\n * Visually hidden from display\n */\n/**\n * style for text ellipsis\n */\n/**\n * Popover attribute has default styling which comes from UA stylesheets which will be overridden here.\n */\n/* ------------------------------------*\\\n #TYPOGRAPHY APPLICATIONS\n\\*------------------------------------ */ /* ------------------------------------*\\\n #COMBINED-INPUT\n\\*------------------------------------ */\n.cat-c-combined-input {\n --cat-input-field-height: 100%;\n}\n.cat-c-combined-input cat-input-field {\n height: 100%;\n}\n\n/**\n * Combined input wrapper\n * 1) The div that contains the input fields\n */\n.cat-c-combined-input__wrapper {\n display: inline-flex;\n width: 100%;\n gap: calc(var(--size-base-unit) * 0.5);\n}\n\n/**\n * Combined input container\n * 1) Each input is wrapped in the input container div\n */\n.cat-c-combined-input__input-container {\n position: relative;\n width: 50%;\n --cat-input-box-shadow: inset 0 0 0 0 var(--cat-theme-color-border-strong);\n /**\n * Increase the z-index on hover so the left/right border's are visible\n */\n}\n.cat-c-combined-input__input-container:hover {\n z-index: var(--cat-z-index-100);\n}\n.cat-c-combined-input__input-container .cat-c-combined-input__input[isactive] {\n --cat-input-field--outline: 2px solid var(--cat-theme-color-focus-ring);\n --cat-input-field--outline-offset: -2px;\n}\n`;\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { nanoid } from 'nanoid';\nimport { KEYS } from '../../util/event-keys';\nimport { BlocksElement } from '../BlocksElement';\nimport '../icon/icons/calendar';\nimport styles from './combined-input.styles';\n/**\n * @slot field-note - for custom field notes\n * @slot error - for custom error notes\n * @fires bl-change - emitted on change from or to date\n * @csspart base - The component's base wrapper.\n * @csspart wrapper - The component's wrapper.\n * @csspart start-input-container - The component's start-input-container.\n * @csspart start-input - The component's start-input wrapper.\n * @csspart start-after - The component's start-after slot.\n * @csspart end-input-container - The component's end-input-container wrapper.\n * @csspart end-input - The component's end-input wrapper.\n * @csspart end-after - The component's end-after wrapper.\n */\nexport class BlocksCombinedInput extends BlocksElement {\n constructor() {\n super(...arguments);\n /**\n * The Start Date field's label\n */\n this.startDateLabel = 'Start Date';\n /**\n * The End Date field's label\n */\n this.endDateLabel = 'End Date';\n /**\n * The field's placeholder attribute\n */\n this.placeholder = 'mm/dd/yyyy';\n /**\n * The field's required attribute\n */\n this.required = false;\n /**\n * size\n * \n * \n * \n */\n this.size = 'lg';\n /**\n * Notation is used for setting required or optional label\n */\n this.notation = '(required)';\n /**\n * Delay for show tooltip when label overflow\n */\n this.tooltipShowDelay = 0;\n /**\n * Delay for hide tooltip when label overflow\n */\n this.tooltipHideDelay = 0;\n /**\n * Hide the label overflow tooltip\n */\n this.hideLabelTooltip = false;\n }\n static { this.styles = styles; }\n /**\n * Get the label overflow tooltip\n */\n get labelOverflowStartTooltip() {\n return this._catDateStartInput?.shadowRoot?.querySelector('cat-tooltip-label-overflow');\n }\n /**\n * Get the label overflow tooltip\n */\n get labelOverflowEndTooltip() {\n return this._catDateEndInput?.shadowRoot?.querySelector('cat-tooltip-label-overflow');\n }\n /**\n * Query the start input\n */\n get _catDateStartInput() {\n return this.shadowRoot?.querySelector('.cat-c-combined-input__input-container:first-child cat-input-field');\n }\n /**\n * Query the end input\n */\n get _catDateEndInput() {\n return this.shadowRoot?.querySelector('.cat-c-combined-input__input-container:last-child cat-input-field');\n }\n connectedCallback() {\n super.connectedCallback();\n this.fieldId = this.fieldId || nanoid();\n }\n /**\n * Change output binding\n * @param $event focused element\n */\n handleOnChange(e) {\n const targetInput = e.target;\n const value = targetInput.value;\n this.dispatch({ eventName: 'bl-change', detailObj: { value } });\n }\n /**\n * Handle on input keydown\n * 1) If key selected is enter or spacebar, toggle the active state\n */\n handleKeyDown(e) {\n const targetInput = e.target;\n targetInput.shadowRoot?.querySelector('input')?.focus();\n if (e.key === KEYS.ENTER || e.key === KEYS.SPACE) {\n this.toggleActive(e);\n }\n }\n /**\n * Show when focused in the input field\n */\n toggleActive(e) {\n const inputs = this.shadowRoot?.querySelectorAll('cat-input-field');\n inputs?.forEach((input) => {\n input.isActive = false;\n });\n const targetInput = e.currentTarget;\n targetInput.isActive = true;\n }\n /**\n * Hide the tooltip if other tooltip is already open\n */\n handleTooltipOpen(e) {\n if (this.hideLabelTooltip || !this.labelOverflowStartTooltip || !this.labelOverflowEndTooltip) {\n return;\n }\n this.labelOverflowStartTooltip.enableTooltip = true;\n this.labelOverflowEndTooltip.enableTooltip = true;\n // Get the calender\n const catCalendar = this.parentElement?.querySelector('.cat-c-daterangepicker-field__popup');\n // If any calender is open the disable the tooltip\n if (!catCalendar?.hidden) {\n this.labelOverflowStartTooltip.enableTooltip = false;\n this.labelOverflowEndTooltip.enableTooltip = false;\n return;\n }\n // Hover or tab on start input will enable the start date tooltip and disable the endtooltip\n if (e.target === this._catDateStartInput) {\n this.labelOverflowStartTooltip.enableTooltip = true;\n this.labelOverflowEndTooltip.enableTooltip = false;\n }\n // Hover or tab on end input will enable the end date tooltip and disable the start date tooltip\n if (e.target === this._catDateEndInput) {\n this.labelOverflowEndTooltip.enableTooltip = true;\n this.labelOverflowStartTooltip.enableTooltip = false;\n }\n }\n /**\n * hover or focus out\n */\n handleTooltipLeave() {\n if (this.hideLabelTooltip || !this.labelOverflowStartTooltip || !this.labelOverflowEndTooltip) {\n return;\n }\n this.labelOverflowStartTooltip.enableTooltip = true;\n this.labelOverflowEndTooltip.enableTooltip = true;\n }\n render() {\n const componentClassNames = this.componentClassNames('cat-c-combined-input');\n return html `\n
\n
\n
\n \n \n \n
\n
\n \n \n \n
\n
\n
\n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksCombinedInput.prototype, \"fieldId\", void 0);\n__decorate([\n property({ type: String })\n], BlocksCombinedInput.prototype, \"startDateLabel\", void 0);\n__decorate([\n property({ type: String })\n], BlocksCombinedInput.prototype, \"endDateLabel\", void 0);\n__decorate([\n property({ type: String })\n], BlocksCombinedInput.prototype, \"name\", void 0);\n__decorate([\n property({ type: String })\n], BlocksCombinedInput.prototype, \"value\", void 0);\n__decorate([\n property({ type: String })\n], BlocksCombinedInput.prototype, \"placeholder\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksCombinedInput.prototype, \"required\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksCombinedInput.prototype, \"disabled\", void 0);\n__decorate([\n property({ type: String })\n], BlocksCombinedInput.prototype, \"size\", void 0);\n__decorate([\n property({ type: String })\n], BlocksCombinedInput.prototype, \"status\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksCombinedInput.prototype, \"isReadonly\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksCombinedInput.prototype, \"hideLabel\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksCombinedInput.prototype, \"isLoading\", void 0);\n__decorate([\n property({ type: String })\n], BlocksCombinedInput.prototype, \"notation\", void 0);\n__decorate([\n property({ type: Number })\n], BlocksCombinedInput.prototype, \"tooltipShowDelay\", void 0);\n__decorate([\n property({ type: Number })\n], BlocksCombinedInput.prototype, \"tooltipHideDelay\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksCombinedInput.prototype, \"hideLabelTooltip\", void 0);\nif (customElements.get('cat-combined-input') === undefined) {\n customElements.define('cat-combined-input', BlocksCombinedInput);\n}\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name startOfHour\n * @category Hour Helpers\n * @summary Return the start of an hour for the given date.\n *\n * @description\n * Return the start of an hour for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of an hour\n *\n * @example\n * // The start of an hour for 2 September 2014 11:55:00:\n * const result = startOfHour(new Date(2014, 8, 2, 11, 55))\n * //=> Tue Sep 02 2014 11:00:00\n */\nexport function startOfHour(date) {\n const _date = toDate(date);\n _date.setMinutes(0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfHour;\n","import { startOfHour } from \"./startOfHour.mjs\";\n\n/**\n * @name isSameHour\n * @category Hour Helpers\n * @summary Are the given dates in the same hour (and same day)?\n *\n * @description\n * Are the given dates in the same hour (and same day)?\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The first date to check\n * @param dateRight - The second date to check\n *\n * @returns The dates are in the same hour (and same day)\n *\n * @example\n * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour?\n * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30))\n * //=> true\n *\n * @example\n * // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour?\n * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0))\n * //=> false\n */\nexport function isSameHour(dateLeft, dateRight) {\n const dateLeftStartOfHour = startOfHour(dateLeft);\n const dateRightStartOfHour = startOfHour(dateRight);\n\n return +dateLeftStartOfHour === +dateRightStartOfHour;\n}\n\n// Fallback for modularized imports:\nexport default isSameHour;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name startOfMinute\n * @category Minute Helpers\n * @summary Return the start of a minute for the given date.\n *\n * @description\n * Return the start of a minute for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n *\n * @returns The start of a minute\n *\n * @example\n * // The start of a minute for 1 December 2014 22:15:45.400:\n * const result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))\n * //=> Mon Dec 01 2014 22:15:00\n */\nexport function startOfMinute(date) {\n const _date = toDate(date);\n _date.setSeconds(0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfMinute;\n","import { startOfMinute } from \"./startOfMinute.mjs\";\n\n/**\n * @name isSameMinute\n * @category Minute Helpers\n * @summary Are the given dates in the same minute (and hour and day)?\n *\n * @description\n * Are the given dates in the same minute (and hour and day)?\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The first date to check\n * @param dateRight - The second date to check\n *\n * @returns The dates are in the same minute (and hour and day)\n *\n * @example\n * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute?\n * const result = isSameMinute(\n * new Date(2014, 8, 4, 6, 30),\n * new Date(2014, 8, 4, 6, 30, 15)\n * )\n * //=> true\n *\n * @example\n * // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute?\n * const result = isSameMinute(\n * new Date(2014, 8, 4, 6, 30),\n * new Date(2014, 8, 5, 6, 30)\n * )\n * //=> false\n */\nexport function isSameMinute(dateLeft, dateRight) {\n const dateLeftStartOfMinute = startOfMinute(dateLeft);\n const dateRightStartOfMinute = startOfMinute(dateRight);\n\n return +dateLeftStartOfMinute === +dateRightStartOfMinute;\n}\n\n// Fallback for modularized imports:\nexport default isSameMinute;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name setHours\n * @category Hour Helpers\n * @summary Set the hours to the given date.\n *\n * @description\n * Set the hours to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param hours - The hours of the new date\n *\n * @returns The new date with the hours set\n *\n * @example\n * // Set 4 hours to 1 September 2014 11:30:00:\n * const result = setHours(new Date(2014, 8, 1, 11, 30), 4)\n * //=> Mon Sep 01 2014 04:30:00\n */\nexport function setHours(date, hours) {\n const _date = toDate(date);\n _date.setHours(hours);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setHours;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name setMilliseconds\n * @category Millisecond Helpers\n * @summary Set the milliseconds to the given date.\n *\n * @description\n * Set the milliseconds to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param milliseconds - The milliseconds of the new date\n *\n * @returns The new date with the milliseconds set\n *\n * @example\n * // Set 300 milliseconds to 1 September 2014 11:30:40.500:\n * const result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300)\n * //=> Mon Sep 01 2014 11:30:40.300\n */\nexport function setMilliseconds(date, milliseconds) {\n const _date = toDate(date);\n _date.setMilliseconds(milliseconds);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setMilliseconds;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name setMinutes\n * @category Minute Helpers\n * @summary Set the minutes to the given date.\n *\n * @description\n * Set the minutes to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param minutes - The minutes of the new date\n *\n * @returns The new date with the minutes set\n *\n * @example\n * // Set 45 minutes to 1 September 2014 11:30:40:\n * const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45)\n * //=> Mon Sep 01 2014 11:45:40\n */\nexport function setMinutes(date, minutes) {\n const _date = toDate(date);\n _date.setMinutes(minutes);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setMinutes;\n","import { toDate } from \"./toDate.mjs\";\n\n/**\n * @name setSeconds\n * @category Second Helpers\n * @summary Set the seconds to the given date.\n *\n * @description\n * Set the seconds to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The date to be changed\n * @param seconds - The seconds of the new date\n *\n * @returns The new date with the seconds set\n *\n * @example\n * // Set 45 seconds to 1 September 2014 11:30:40:\n * const result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45)\n * //=> Mon Sep 01 2014 11:30:45\n */\nexport function setSeconds(date, seconds) {\n const _date = toDate(date);\n _date.setSeconds(seconds);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setSeconds;\n","import { startOfDay } from \"./startOfDay.mjs\";\n\n/**\n * @name startOfToday\n * @category Day Helpers\n * @summary Return the start of today.\n * @pure false\n *\n * @description\n * Return the start of today.\n *\n * @returns The start of today\n *\n * @example\n * // If today is 6 October 2014:\n * const result = startOfToday()\n * //=> Mon Oct 6 2014 00:00:00\n */\nexport function startOfToday() {\n return startOfDay(Date.now());\n}\n\n// Fallback for modularized imports:\nexport default startOfToday;\n","import { css } from 'lit';\nexport default css ` \n @charset \"UTF-8\";\n/* ------------------------------------*\\\n #RESET\n\\*------------------------------------ */\n/**\n * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/\n */\n*,\n::slotted(*),\n*:before,\n*:after {\n box-sizing: border-box;\n}\n\n:focus-visible {\n outline-color: var(--cat-theme-color-focus-ring);\n}\n\n/* ------------------------------------*\\\n    #BREAKPOINT VARIABLES\n\\*------------------------------------ */\n:root,\n:host {\n --size-base-unit: 0.5rem;\n}\n\n/**\n * RTL support for values logical properties can't automatically adjust for\n * 1) Percentage based horizontal translate values need to be flipped\n * 2) Background gradients using \"to right\" or \"to left\" need to be switched to using deg values\n * 3) Background Position From is used for reversing animation from right to left at 0%\n * 4) Background Position To is used for reversing animation from right to left at 100%\n * 5) Rotate Icon to 180deg for nav button\n * 6) Transformation size for badge left positions\n * 7) Transformation size for badge right positions\n * 8 to 18) Padding values for Input Field Type Tel\n */\n[dir=rtl] {\n --rtlTranslateX: 50%; /* 1 */\n --rtlGradientToRight: 270deg; /* 2 */\n --rtlBackgroundPositionFrom: -135%; /* 3 */\n --rtlBackgroundPositionTo: 0%; /* 4 */\n --rtlRotate180: 180deg; /* 5 */\n --rtlRotate135: 135deg;\n --rtlBadgeLeft: -1.5; /* 6 */\n --rtlBadgeRight: 1.5; /* 7 */\n --rtlTelTypeInputFieldPaddingStart: calc(var(--size-base-unit) * 5); /* 8 */\n --rtlTelTypeInputFieldPaddingEnd: calc(var(--size-base-unit) * 2); /* 9 */\n --rtlTelTypeInputFieldMedPaddingStart: calc(var(--size-base-unit) * 4.5); /* 10 */\n --rtlTelTypeInputFieldMedPaddingEnd: calc(var(--size-base-unit) * 1.5); /* 11 */\n --rtlTelTypeInputFieldSmPaddingStart: calc(var(--size-base-unit) * 4); /* 12 */\n --rtlTelTypeInputFieldSmPaddingEnd: calc(var(--size-base-unit) * 1); /* 13 */\n --rtlTelTypeInputFieldCharBeforePaddingEnd: calc(var(--size-base-unit) * 3.75); /* 14 */\n --rtlTelTypeInputFieldCharAfterPaddingStart: calc(var(--size-base-unit) * 6); /* 15 */\n --rtlTelTypeInputFieldCharAfterErrPaddingStart: calc(var(--size-base-unit) * 9); /* 16 */\n --rtlTelTypeInputFieldIconAfterErrPaddingStart: calc(var(--size-base-unit) * 8); /* 17 */\n --rtlTelTypeInputFieldIconCharAfterErrPaddingStart: calc(var(--size-base-unit) * 12); /* 18 */\n --rtlDisplayNone: none;\n --rtlDisplayBlock: block;\n --rtlDrawerRightTranslateX: -100%;\n --rtlDrawerLeftTranslateX: 100%;\n}\n\n/**\n * Visible focus outline for elements on a light background\n */\n/**\n * Visible focus outline for elements on a dark background\n */\n/**\n * Invisible focus outline for elements that need a more visible\n * focus state for high-contrast mode\n */\n/**\n * Visually hidden from display\n */\n/**\n * style for text ellipsis\n */\n/**\n * Popover attribute has default styling which comes from UA stylesheets which will be overridden here.\n */\n/* ------------------------------------*\\\n #TYPOGRAPHY APPLICATIONS\n\\*------------------------------------ */ /* ------------------------------------*\\\n #TIME-SELECTOR-LIST\n\\*------------------------------------ */\n/**\n * Container for a heading and list of times\n */\n.cat-c-time-selector-list {\n max-width: max-content;\n height: 100%;\n display: flex;\n flex-direction: column;\n background-color: var(--cat-theme-color-background-default);\n}\n.cat-c-time-selector-list .cat-c-time-selector-list__top {\n width: calc(var(--size-base-unit) * 12.625);\n}\n\n/**\n * Inner container for list of times and set min height as per the figma to render time selector\n */\n.cat-c-time-selector-list__inner {\n flex: 1 0 0;\n overflow: auto;\n min-height: calc(var(--size-base-unit) * 35.125);\n background-color: var(--cat-theme-color-background-default);\n /** \n * Adjust scrollbar styles for consistent appearance across browsers\n */\n /**\n * Only show scrollbar when hovering over list for non-touch devices\n */\n}\n.cat-c-time-selector-list__inner::-webkit-scrollbar {\n background-color: transparent;\n width: calc(var(--size-base-unit) * 0.75);\n}\n@media not (hover: none) {\n .cat-c-time-selector-list__inner:hover::-webkit-scrollbar-thumb {\n border-radius: var(--cat-border-radius-md);\n background-color: var(--cat-theme-color-background-subtle-hover);\n }\n}\n\n/**\n * Horizontal list\n */\n.cat-c-time-selector-list--horizontal .cat-c-time-selector-list__inner {\n display: flex;\n min-height: auto;\n padding-block-end: calc(var(--size-base-unit) * 0.275);\n padding-inline-start: calc(var(--size-base-unit) * 0);\n /** \n * Adjust horizontal scrollbar dimensions\n */\n}\n.cat-c-time-selector-list--horizontal .cat-c-time-selector-list__inner::-webkit-scrollbar {\n width: auto;\n height: calc(var(--size-base-unit) * 0.75);\n}\n\n/**\n * Horizontal list\n */\n.cat-c-time-selector-list--horizontal {\n flex-direction: row;\n max-width: none;\n height: auto;\n}\n.cat-c-time-selector-list--horizontal .cat-c-time-selector-list__top {\n width: calc(var(--size-base-unit) * 7);\n}\n\n/**\n * Heading appearing before list of times\n */\n.cat-c-time-selector-list__top {\n margin-block-start: -1px;\n margin-inline-end: calc(var(--size-base-unit) * 0.6987);\n padding-block-start: calc(var(--size-base-unit) * 0.375);\n background: var(--cat-theme-color-background-default);\n}\n.cat-c-time-selector-list__top .cat-c-time-selector-list__heading {\n font-family: var(--cat-theme-typography-label-font-family);\n font-weight: var(--cat-theme-typography-label-font-weight);\n font-size: var(--cat-theme-typography-label-font-size);\n line-height: var(--cat-theme-typography-label-line-height);\n margin: 0;\n color: var(--cat-theme-color-content-strong);\n font-weight: var(--cat-font-weight-bold);\n text-align: center;\n padding: calc(var(--size-base-unit) * 1.25) calc(var(--size-base-unit) * 1.25) calc(var(--size-base-unit) * 1.125);\n box-shadow: var(--cat-theme-box-shadow-sm);\n border-block-end: var(--cat-border-width-sm) solid var(--cat-theme-color-border-default);\n word-break: break-word;\n hyphens: auto;\n}\n.cat-c-time-selector-list--horizontal .cat-c-time-selector-list__top .cat-c-time-selector-list__heading {\n padding-block-end: 0;\n padding: calc(var(--size-base-unit) * 1.75) calc(var(--size-base-unit) * 1);\n border-inline-end: var(--cat-border-width-sm) solid var(--cat-theme-color-border-default);\n border-block-end: 0;\n}\n.cat-c-time-selector-list--horizontal .cat-c-time-selector-list__top {\n padding-block-start: calc(var(--size-base-unit) * 0);\n}\n\n/** \n * The actual list of times\n */\n.cat-c-time-selector-list__list {\n list-style: none;\n padding: calc(var(--size-base-unit) * 3) calc(var(--size-base-unit) * 0.25) calc(var(--size-base-unit) * 0.125);\n margin: 0;\n display: grid;\n justify-content: center;\n gap: calc(var(--size-base-unit) * 0.5);\n background-color: var(--cat-theme-color-background-default);\n}\n.cat-c-time-selector-list--horizontal .cat-c-time-selector-list__list {\n display: flex;\n padding: 0;\n padding-block: calc(var(--size-base-unit) * 0.5);\n margin-inline-start: calc(var(--size-base-unit) * 0.5);\n}\n\n/**\n * Individual time button\n */\n.cat-c-time-selector-list__button {\n font-family: var(--cat-theme-typography-body-sm-font-family);\n font-weight: var(--cat-theme-typography-body-sm-font-weight);\n font-size: var(--cat-theme-typography-body-sm-font-size);\n line-height: var(--cat-theme-typography-body-sm-line-height);\n color: var(--cat-theme-color-content-default);\n text-transform: uppercase;\n background: none;\n border: 0;\n border-radius: calc(var(--size-base-unit) * 25);\n padding: calc(var(--size-base-unit) * 1.25) calc(var(--size-base-unit) * 1);\n position: relative;\n cursor: pointer;\n white-space: nowrap;\n width: 100%;\n min-width: 5.5rem;\n transition: background-color var(--cat-anim-fade-quick) var(--cat-anim-ease), color var(--cat-anim-fade-quick) var(--cat-anim-ease);\n /**\n * Hover/Focus styles\n */\n /**\n * Focus states for dates\n */\n /**\n * Selected\n */\n /**\n * Disabled\n */\n}\n.cat-c-time-selector-list__button:focus-visible, .cat-c-time-selector-list__button:hover {\n background-color: var(--cat-theme-color-background-subtle);\n cursor: pointer;\n outline: none;\n}\n.cat-c-time-selector-list__button:focus-visible {\n outline: 2px solid var(--cat-theme-color-focus-ring);\n outline-offset: var(--cat-theme-offset-focus-ring, -2px);\n transition: all var(--cat-anim-fade-quick) var(--cat-anim-ease);\n}\n.cat-c-time-selector-list__button:focus {\n outline: 2px solid var(--cat-theme-color-focus-ring);\n outline-offset: var(--cat-theme-offset-focus-ring, -2px);\n transition: all var(--cat-anim-fade-quick) var(--cat-anim-ease);\n --cat-theme-offset-focus-ring: 0;\n}\n.cat-c-time-selector-list__button.is-active {\n font-family: var(--cat-theme-typography-label-font-family);\n font-weight: var(--cat-theme-typography-label-font-weight);\n font-size: var(--cat-theme-typography-label-font-size);\n line-height: var(--cat-theme-typography-label-line-height);\n color: var(--cat-theme-color-content-knockout);\n background-color: var(--cat-theme-color-background-xstrong);\n}\n.cat-c-time-selector-list__button:disabled, .cat-c-time-selector-list__button:disabled:focus, .cat-c-time-selector-list__button:disabled:hover {\n color: var(--cat-theme-color-content-disabled);\n cursor: not-allowed;\n background: none;\n}\n`;\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { addMinutes } from 'date-fns/addMinutes';\nimport { endOfToday } from 'date-fns/endOfToday';\nimport { format } from 'date-fns/format';\nimport { isAfter } from 'date-fns/isAfter';\nimport { isBefore } from 'date-fns/isBefore';\nimport { isEqual } from 'date-fns/isEqual';\nimport { isSameHour } from 'date-fns/isSameHour';\nimport { isSameMinute } from 'date-fns/isSameMinute';\nimport { enUS } from 'date-fns/locale';\nimport { setDefaultOptions } from 'date-fns/setDefaultOptions';\nimport { setHours } from 'date-fns/setHours';\nimport { setMilliseconds } from 'date-fns/setMilliseconds';\nimport { setMinutes } from 'date-fns/setMinutes';\nimport { setSeconds } from 'date-fns/setSeconds';\nimport { startOfToday } from 'date-fns/startOfToday';\nimport { html } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { KEYS } from '../../util/event-keys';\nimport { scrollIntoView } from '../../util/scroll';\nimport { BlocksElement } from '../BlocksElement';\nimport styles from './time-selector-list.styles';\n/**\n * @fires bl-time-change -Emit when time value change\n * @csspart base - The component's base wrapper.\n * @csspart top - The component's top wrapper.\n * @csspart heading - The component's heading.\n * @csspart inner - The component's inner wrapper.\n * @csspart list - The component's list element.\n * @csspart item - The component's item.\n * @csspart button - The component's `\n `\n : ''}\n \n `;\n })}\n \n \n \n `;\n }\n}\n__decorate([\n property({ type: Object })\n], BlocksTimeSelectorList.prototype, \"locale\", void 0);\n__decorate([\n property({ type: Object })\n], BlocksTimeSelectorList.prototype, \"currentDate\", void 0);\n__decorate([\n property({ type: String })\n], BlocksTimeSelectorList.prototype, \"setActiveTime\", void 0);\n__decorate([\n property({ type: Array })\n], BlocksTimeSelectorList.prototype, \"times\", void 0);\n__decorate([\n property({ type: Number })\n], BlocksTimeSelectorList.prototype, \"timeIncrements\", void 0);\n__decorate([\n property({ type: String })\n], BlocksTimeSelectorList.prototype, \"timeStart\", void 0);\n__decorate([\n property({ type: String })\n], BlocksTimeSelectorList.prototype, \"timeEnd\", void 0);\n__decorate([\n property({ type: String })\n], BlocksTimeSelectorList.prototype, \"disabledMinTime\", void 0);\n__decorate([\n property({ type: String })\n], BlocksTimeSelectorList.prototype, \"disabledMaxTime\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksTimeSelectorList.prototype, \"resetTime\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksTimeSelectorList.prototype, \"is24HourFormat\", void 0);\n__decorate([\n property({ type: String })\n], BlocksTimeSelectorList.prototype, \"timeFormat\", void 0);\n__decorate([\n property({ type: String })\n], BlocksTimeSelectorList.prototype, \"orientation\", void 0);\n__decorate([\n property({ type: String })\n], BlocksTimeSelectorList.prototype, \"timeSelectorLabel\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksTimeSelectorList.prototype, \"isActive\", void 0);\n__decorate([\n query('.is-active')\n], BlocksTimeSelectorList.prototype, \"_isActiveEL\", void 0);\n__decorate([\n query('.is-available')\n], BlocksTimeSelectorList.prototype, \"_isAvailableEL\", void 0);\n__decorate([\n query('.cat-c-time-selector-list__inner')\n], BlocksTimeSelectorList.prototype, \"_timeListContainer\", void 0);\n__decorate([\n state()\n], BlocksTimeSelectorList.prototype, \"selectedTime\", void 0);\nif (customElements.get('cat-time-selector-list') === undefined) {\n customElements.define('cat-time-selector-list', BlocksTimeSelectorList);\n}\n","import { endOfDay } from \"./endOfDay.mjs\";\n\n/**\n * @name endOfToday\n * @category Day Helpers\n * @summary Return the end of today.\n * @pure false\n *\n * @description\n * Return the end of today.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @returns The end of today\n *\n * @example\n * // If today is 6 October 2014:\n * const result = endOfToday()\n * //=> Mon Oct 6 2014 23:59:59.999\n */\nexport function endOfToday() {\n return endOfDay(Date.now());\n}\n\n// Fallback for modularized imports:\nexport default endOfToday;\n","import { css } from 'lit';\nexport default css ` \n @charset \"UTF-8\";\n/* ------------------------------------*\\\n #RESET\n\\*------------------------------------ */\n/**\n * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/\n */\n*,\n::slotted(*),\n*:before,\n*:after {\n box-sizing: border-box;\n}\n\n:focus-visible {\n outline-color: var(--cat-theme-color-focus-ring);\n}\n\n/* ------------------------------------*\\\n    #BREAKPOINT VARIABLES\n\\*------------------------------------ */\n:root,\n:host {\n --size-base-unit: 0.5rem;\n}\n\n/**\n * RTL support for values logical properties can't automatically adjust for\n * 1) Percentage based horizontal translate values need to be flipped\n * 2) Background gradients using \"to right\" or \"to left\" need to be switched to using deg values\n * 3) Background Position From is used for reversing animation from right to left at 0%\n * 4) Background Position To is used for reversing animation from right to left at 100%\n * 5) Rotate Icon to 180deg for nav button\n * 6) Transformation size for badge left positions\n * 7) Transformation size for badge right positions\n * 8 to 18) Padding values for Input Field Type Tel\n */\n[dir=rtl] {\n --rtlTranslateX: 50%; /* 1 */\n --rtlGradientToRight: 270deg; /* 2 */\n --rtlBackgroundPositionFrom: -135%; /* 3 */\n --rtlBackgroundPositionTo: 0%; /* 4 */\n --rtlRotate180: 180deg; /* 5 */\n --rtlRotate135: 135deg;\n --rtlBadgeLeft: -1.5; /* 6 */\n --rtlBadgeRight: 1.5; /* 7 */\n --rtlTelTypeInputFieldPaddingStart: calc(var(--size-base-unit) * 5); /* 8 */\n --rtlTelTypeInputFieldPaddingEnd: calc(var(--size-base-unit) * 2); /* 9 */\n --rtlTelTypeInputFieldMedPaddingStart: calc(var(--size-base-unit) * 4.5); /* 10 */\n --rtlTelTypeInputFieldMedPaddingEnd: calc(var(--size-base-unit) * 1.5); /* 11 */\n --rtlTelTypeInputFieldSmPaddingStart: calc(var(--size-base-unit) * 4); /* 12 */\n --rtlTelTypeInputFieldSmPaddingEnd: calc(var(--size-base-unit) * 1); /* 13 */\n --rtlTelTypeInputFieldCharBeforePaddingEnd: calc(var(--size-base-unit) * 3.75); /* 14 */\n --rtlTelTypeInputFieldCharAfterPaddingStart: calc(var(--size-base-unit) * 6); /* 15 */\n --rtlTelTypeInputFieldCharAfterErrPaddingStart: calc(var(--size-base-unit) * 9); /* 16 */\n --rtlTelTypeInputFieldIconAfterErrPaddingStart: calc(var(--size-base-unit) * 8); /* 17 */\n --rtlTelTypeInputFieldIconCharAfterErrPaddingStart: calc(var(--size-base-unit) * 12); /* 18 */\n --rtlDisplayNone: none;\n --rtlDisplayBlock: block;\n --rtlDrawerRightTranslateX: -100%;\n --rtlDrawerLeftTranslateX: 100%;\n}\n\n/**\n * Visible focus outline for elements on a light background\n */\n/**\n * Visible focus outline for elements on a dark background\n */\n/**\n * Invisible focus outline for elements that need a more visible\n * focus state for high-contrast mode\n */\n/**\n * Visually hidden from display\n */\n/**\n * style for text ellipsis\n */\n/**\n * Popover attribute has default styling which comes from UA stylesheets which will be overridden here.\n */\n/* ------------------------------------*\\\n #TYPOGRAPHY APPLICATIONS\n\\*------------------------------------ */\n[popover] {\n position: unset;\n inset: unset;\n width: unset;\n height: unset;\n margin: unset;\n border: unset;\n padding: unset;\n color: unset;\n background-color: unset;\n overflow: unset;\n}\n\n/* ------------------------------------*\\\n #DATERANGEPICKER-FIELD\n\\*------------------------------------ */\n.cat-c-daterangepicker-field {\n width: var(--cat-date-range-picker--width, 100%);\n max-width: 100%;\n --cat-input-pointer-events: auto;\n --cat-input-field-readonly--border-color: var(--cat-theme-color-form-border);\n --cat-input-field-readonly--border-color: var(--cat-theme-color-border-disabled);\n /**\n * Disabled state\n */\n /**\n * Padding for input field in warning and error state \n */\n}\n.cat-c-daterangepicker-field.cat-c-daterangepicker-field--with-timeselector {\n width: calc(var(--size-base-unit) * 50.75);\n}\n.cat-c-daterangepicker-field.cat-c-daterangepicker-field--full-width {\n width: 100%;\n}\n.cat-c-daterangepicker-field.cat-c-daterangepicker-field--disabled:hover {\n cursor: not-allowed;\n}\n.cat-c-daterangepicker-field.cat-c-daterangepicker-field--disabled cat-combined-input {\n pointer-events: none;\n}\n.cat-c-daterangepicker-field.cat-c-daterangepicker-field--readonly {\n pointer-events: none;\n --cat-input-pointer-events: none;\n --cat-input-field-readonly--border-color: var(--cat-theme-color-border-readonly);\n}\n.cat-c-daterangepicker-field.cat-is-warning, .cat-c-daterangepicker-field.cat-is-error {\n --cat-input-padding-horiz-end: calc(var(--size-base-unit) * 8);\n}\n\n/**\n * Datepicker container wrapper\n */\n.cat-c-daterangepicker-field__body {\n position: relative;\n}\n\n.cat-c-daterangepicker-field__popup-wrapper {\n display: none;\n z-index: var(--cat-z-index-400);\n}\n\n/**\n * Datepicker popup container\n */\n.cat-c-daterangepicker-field__popup {\n box-shadow: var(--cat-theme-box-shadow-lg);\n border-radius: var(--cat-border-radius-lg);\n z-index: 1;\n overflow: hidden;\n}\n\n/**\n * Popup body, containing the calendar w/ optional time selector list\n */\n.cat-c-daterangepicker-field__popup-body {\n box-shadow: var(--cat-theme-box-shadow-lg);\n border-radius: var(--cat-border-radius-lg);\n background-color: var(--cat-theme-color-background-default);\n overflow: hidden;\n pointer-events: auto;\n}\n\n.cat-c-daterangepicker-field__calendar-start:focus,\n.cat-c-daterangepicker-field__calendar-end:focus {\n outline: none;\n}\n\n/**\n * Calendar w/ optional time selector list container\n */\n.cat-c-daterangepicker-field__calendar:not([hidden]) {\n /**\n  * Popup body on large screens\n * 1) Position for calendar with time selector at larger screens\n  */\n}\n.cat-c-daterangepicker-field--with-timeselector:not(.cat-c-daterangepicker-field--small-screen) .cat-c-daterangepicker-field__calendar:not([hidden]) {\n display: grid;\n column-gap: calc(var(--size-base-unit) * 1);\n grid-template-columns: minmax(auto, 25rem) auto; /* 1 */\n}\n\n/**\n * Container for time selector list component\n * 1) Declare explicit dimensions for smaller screens\n */\n.cat-c-daterangepicker-field--small-screen .cat-c-daterangepicker-field__time-selector-container {\n height: 3.25rem; /* 1 */\n width: calc(var(--size-base-unit) * 40); /* 1 */\n overflow: hidden;\n border-block-start: 1px solid var(--cat-theme-color-border-default);\n}\n\n/**\n * Popup footer\n */\n.cat-c-daterangepicker-field__footer {\n border-block-start: 1px solid var(--cat-theme-color-border-default);\n padding: calc(var(--size-base-unit) * 2);\n grid-column-start: span 2;\n display: flex;\n gap: calc(var(--size-base-unit) * 2);\n}\n\ncat-time-selector-list {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n/**\n * Accessibility instructions\n */\n.cat-c-daterangepicker-field__instructions {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.cat-c-daterangepicker-field__button {\n margin-inline-end: calc(var(--size-base-unit) * 2);\n}\n\n.cat-c-daterangepicker-field__button_container {\n display: flex;\n}\n\n/**\n * Apply loaders style\n */\n.cat-c-daterangepicker-field--loader {\n display: flex;\n flex-direction: column;\n gap: calc(var(--size-base-unit) * 0.5);\n}\n.cat-c-daterangepicker-field--loader .cat-c-daterangepicker__input-loader-container {\n display: flex;\n gap: calc(var(--size-base-unit) * 0.5);\n}\n.cat-c-daterangepicker-field--loader .cat-c-daterangepicker__input-loader-container .cat-c-daterangepicker__input-loader-wrapper {\n width: 50%;\n gap: 4px;\n display: flex;\n flex-direction: column;\n}\n\n.cat-c-daterangepicker__input-loader {\n --cat-skeleton-loader-height: calc(var(--size-base-unit) * 3.5);\n position: relative;\n}\n.cat-c-daterangepicker__input-loader .cat-c-daterangepicker__icon-loader {\n position: absolute;\n inset-inline-end: calc(var(--size-base-unit) * 2);\n inset-block-end: calc(var(--size-base-unit) * 1.25);\n}\n.cat-c-daterangepicker-field--medium .cat-c-daterangepicker__input-loader {\n --cat-skeleton-loader-height: calc(var(--size-base-unit) * 2.5);\n}\n.cat-c-daterangepicker-field--small .cat-c-daterangepicker__input-loader {\n --cat-skeleton-loader-height: calc(var(--size-base-unit) * 2);\n}\n`;\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { autoUpdate } from '@floating-ui/dom';\nimport { add } from 'date-fns/add';\nimport { format } from 'date-fns/format';\nimport { isAfter } from 'date-fns/isAfter';\nimport { isBefore } from 'date-fns/isBefore';\nimport { isEqual } from 'date-fns/isEqual';\nimport { enUS } from 'date-fns/locale';\nimport { parse } from 'date-fns/parse';\nimport { setDefaultOptions } from 'date-fns/setDefaultOptions';\nimport { createFocusTrap } from 'focus-trap';\nimport { html, nothing } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { nanoid } from 'nanoid';\nimport { AutoPositionController } from '../../controllers/autoPositionOverlay';\nimport { KEYS } from '../../util/event-keys';\nimport { isPopoverSupported } from '../../util/popover';\nimport { BlocksElement } from '../BlocksElement';\nimport '../button/button';\nimport '../calendar/calendar';\nimport '../combined-input/combined-input';\nimport '../input-field/input-field';\nimport '../time-selector-list/time-selector-list';\nimport styles from './daterangepicker-field.styles';\n/**\n * @slot field-note - The dropdown field note\n * @slot error - The dropdown error note\n * @slot warning - The dropdown warning note\n * @fires bl-date-range-open - emitted when daterange-picker is opened\n * @fires bl-date-range-close - emitted when daterange-picker is closed\n * @fires bl-date-range-change - emitted when date range is changed\n * @csspart base - The component's base wrapper.\n * @csspart loader-container - The component's loader-container.\n * @csspart loader-wrapper - The component's loader wrapper.\n * @csspart label-loader - The component's label loader.\n * @csspart label-skeleton - The component's label skeleton.\n * @csspart body-loader - The component's body loader.\n * @csspart body-skeleton - The component's body skeleton.\n * @csspart icon-calendar - The component's calendar icon.\n * @csspart field-note-loader - The component's field-note-loader.\n * @csspart field-note-skeleton - The component's field-note-skeleton.\n * @csspart body - The component's body wrapper.\n * @csspart combined - The component's ``.\n * @csspart popup-wrapper - The component's popup wrapper.\n * @csspart popup - The component's popup.\n * @csspart popup-body - The component's popup body.\n * @csspart calendar-start-wrapper - The component's start calendar wrapper.\n * @csspart calendar-start - The component's start ``.\n * @csspart time-start-wrapper - The component's start time wrapper.\n * @csspart time-start - The component's start ``.\n * @csspart calendar-end-wrapper - The component's end calendar wrapper.\n * @csspart calendar-end - The component's end ``.\n * @csspart time-end-wrapper - The component's end time wrapper.\n * @csspart time-end - The component's end ``.\n * @csspart footer - The component's footer wrapper.\n * @csspart footer-submit - The component's footer-submit button.\n * @csspart footer-cancel - The component's footer-cancel button.\n * @csspart field-note-wrapper - The component's field-note wrapper.\n * @csspart part-field-note - The component's field-note slot.\n * @csspart part-error - The component's error slot.\n * @csspart part-warning - The component's warning slot.\n */\nexport class BlocksDaterangepickerField extends BlocksElement {\n constructor() {\n super(...arguments);\n /**\n * locale object from date-fns/locale\n */\n this.locale = enUS;\n /**\n * ISO Format for date\n */\n this.isoFormat = 'yyyy/MM/dd';\n /**\n * Use 24 hour time format\n */\n this.is24HourFormat = false;\n /**\n * Increments of time\n */\n this.timeIncrements = 30;\n /**\n * Cancel button label\n */\n this.cancelLabel = 'Cancel';\n /**\n * Apply button label\n */\n this.applyLabel = 'Apply';\n /**\n * Time selector heading label\n */\n this.timeSelectorLabel = 'Time';\n /**\n * If the window is a small screen\n */\n this.isSmallScreen = false;\n /**\n * isCancelled.\n * This property is intended only for internal state.\n * The app should not use this property. This is **deprecated** and will be removed in major release 3.0.0\n * @deprecated\n */\n this.isCancelled = false;\n /**\n * The Start Date field's label\n */\n this.startDateLabel = 'Start Date';\n /**\n * The End Date field's label\n */\n this.endDateLabel = 'End Date';\n /**\n * Specify date format for UI display\n */\n this.dateFormat = 'MMM dd, yyyy';\n /**\n * Amount of years to go before and after the current date\n */\n this.multiYear = 3;\n this.previousButtonText = 'Previous Month';\n this.nextButtonText = 'Next Month';\n /**\n * Positions the dropdown panel absolutely to the datepicker.\n */\n this.position = 'auto';\n /**\n * Determines the behavior of the panel based on the value of the `isInline` property.\n * If `isInline` is false and the popover attribute is supported by the browser,\n * the panel will be opened inside the top layer.\n * If `isInline` is true, the popover attribute will not be used, and the panel\n * will use the floating UI absolute strategy.\n * @property {Boolean} isInline - Default is false.\n */\n this.isInline = false;\n /**\n * size\n * \n *
    \n *
  • **lg** increases the datepicker height with label inside
  • \n *
  • **md** reduce the datepicker height with label outside
  • \n *
  • **sm** reduce the datepicker height without label
  • \n *
\n *
\n */\n this.size = 'lg';\n /**\n * Notation is used for setting required or optional label\n */\n this.notation = '(required)';\n /**\n * Aria label attribute\n * - Provides an accessible name for the daterangepicker element\n */\n this.arialabel = 'Date range picker';\n /**\n * Delay for show tooltip when label overflow\n */\n this.tooltipShowDelay = 0;\n /**\n * Delay for hide tooltip when label overflow\n */\n this.tooltipHideDelay = 0;\n /**\n * Hide the label overflow tooltip\n */\n this.hideLabelTooltip = false;\n /**\n * The submit button's attribute\n */\n this.disabledSubmit = true;\n this.isPopOverSupported = isPopoverSupported();\n this.internals_ = this.attachInternals?.();\n this.autoPositionController = new AutoPositionController(this);\n /**\n * Toggle display of datepicker\n */\n this.toggleDateRangePicker = () => {\n if (this.disabled) {\n return;\n }\n this.showDateRangePicker = true;\n this.dynamicPosition();\n this._startMax = this.disabledMaxDate || null;\n this._startMin = this.disabledMinDate || null;\n this._endMax = this.disabledMaxDate || null;\n this._endMin = this.disabledMinDate || null;\n /**\n * Disable tabbing on combined input that is not active, so the next tab sequence would be inside the datepicker popup.\n */\n if (this._catCombinedInputNotActive) {\n this._catCombinedInputNotActive.tabIndex = 0;\n }\n /**\n * If start input is active, show start calendar\n */\n if (this._catDateStartInput?.isActive) {\n this.setTooltipDisplay(false);\n if (this._catDateStartCalendarPopup) {\n this._catDateStartCalendarPopup.hidden = false;\n }\n if (this._catDateEndCalendarPopup) {\n this._catDateEndCalendarPopup.hidden = true;\n }\n // Focus on calendar after activated\n setTimeout(() => {\n if (this._catDateStartCalendarPopup) {\n this._catDateStartCalendarPopup.tabIndex = 0;\n this._catDateStartCalendarPopup?.focus();\n }\n }, 100);\n }\n /**\n * If end input is active, show end calendar\n */\n if (this._catDateEndInput?.isActive) {\n this.setTooltipDisplay(false);\n if (this._catDateStartCalendarPopup) {\n this._catDateStartCalendarPopup.hidden = true;\n }\n if (this._catDateEndCalendarPopup) {\n this._catDateEndCalendarPopup.hidden = false;\n }\n // Focus on calendar after activated\n setTimeout(() => {\n if (this._catDateEndCalendarPopup) {\n this._catDateEndCalendarPopup.tabIndex = 0;\n this._catDateEndCalendarPopup.focus();\n }\n }, 100);\n }\n // Clear cancelled state\n this.isCancelled = false;\n setTimeout(() => {\n if (this.selectedStartTime) {\n this._catDateStartCalendarTimeList?.shadowRoot?.querySelector('.is-active')?.focus();\n }\n if (this.selectedEndTime) {\n this._catDateEndCalendarTimeList?.shadowRoot?.querySelector('.is-active')?.focus();\n }\n }, 100);\n // Focus on the active date if the start value available in start date calendar\n if (this.startValue) {\n setTimeout(() => {\n const element = this._catStartCalender?.shadowRoot?.querySelector('.is-active');\n if (element) {\n this._catStartCalender?.setFocusOnDate(element);\n }\n }, 100);\n }\n // Focus on the active date if the end value available in end date calendar\n if (this.endValue) {\n setTimeout(() => {\n const element = this._catEndCalender?.shadowRoot?.querySelector('.is-active');\n if (element) {\n this._catEndCalender?.setFocusOnDate(element);\n }\n }, 100);\n }\n this.emitPanelOpenEvent();\n // Close month popup on toggle if it is open\n if (this._catStartCalender?.showMonthPopup) {\n this._catStartCalender.showMonthPopup = false;\n }\n if (this._catEndCalender?.showMonthPopup) {\n this._catEndCalender.showMonthPopup = false;\n }\n };\n /**\n * Handle click outside the component\n * 1) Close the show hide panel on click outside\n * 2) If the calendar is already closed then we don't care about outside clicks and we\n * can bail early\n * 3) By the time a user clicks on the page the shadowRoot will almost certainly be\n * defined, but TypeScript isn't that trusting and sees this.shadowRoot as possibly\n * undefined. To work around that we'll check that we have a shadowRoot (and a\n * rendered .host) element here to appease the TypeScript compiler. This should never\n * actually be shown or run for a human end user.\n * 4) Check to see if we clicked inside the active calendar item\n * 5) If the calendar is active and we've clicked outside of the calendar then it should\n * be closed.\n */\n this.handleOnClickOutside = (e) => {\n /* 2 */\n if (!this.showDateRangePicker) {\n return;\n }\n /* 3 */\n if (!this.shadowRoot?.host) {\n throw Error('Could not determine navigation context during click handler');\n }\n /* 4 */\n const didClickInside = e.composedPath().includes(this.shadowRoot.host);\n /* 5 */\n if (this.showDateRangePicker && !didClickInside) {\n this.setTooltipDisplay(true);\n if (this.showFooter) {\n this.cancelSubmission();\n }\n else {\n this.showDateRangePicker = false;\n this.hidePopup();\n this.removeActiveState();\n }\n }\n };\n /**\n * Handle calendar placement update on scroll and resize.\n */\n this.autoUpdatePosition = () => {\n const allowedPlacements = ['bottom-start', 'top-end', 'bottom-end', 'top-start'];\n if (this._catDateCalendarPopup) {\n this.autoPositionController.autoPosition(this._catDateCalendarPopup, '', this.position, this.isInline, 0, this._catDateInputContainer, allowedPlacements);\n }\n };\n /**\n * Resize Handler\n */\n this.onResize = () => {\n if (window.innerWidth < 480) {\n this.isSmallScreen = true;\n }\n else {\n this.isSmallScreen = false;\n }\n };\n }\n static { this.formAssociated = true; }\n static { this.styles = styles; }\n /**\n * Get the start calender instance\n */\n get _catStartCalender() {\n return this._catDateStartCalendarPopup?.querySelector('cat-calendar');\n }\n /**\n * Get the end calender instance\n */\n get _catEndCalender() {\n return this._catDateEndCalendarPopup?.querySelector('cat-calendar');\n }\n /**\n * Get the start time list instance\n */\n get _catStartTimeList() {\n return this._catDateStartCalendarPopup?.querySelector('cat-time-selector-list');\n }\n /**\n * Get the end time list instance\n */\n get _catEndTimeList() {\n return this._catDateEndCalendarPopup?.querySelector('cat-time-selector-list');\n }\n /**\n * Associates the control with a form element\n */\n get form() {\n return this.internals_?.form;\n }\n /**\n * Query the start combined input\n */\n get _catDateStartInput() {\n return this.shadowRoot\n ?.querySelector('cat-combined-input')\n ?.shadowRoot?.querySelector('.cat-c-combined-input__input-container:first-child cat-input-field');\n }\n /**\n * Get the label overflow tooltip\n */\n get labelOverflowStartTooltip() {\n return this._catDateStartInput?.shadowRoot?.querySelector('cat-tooltip-label-overflow');\n }\n /**\n * Get the label overflow tooltip\n */\n get labelOverflowEndTooltip() {\n return this._catDateEndInput?.shadowRoot?.querySelector('cat-tooltip-label-overflow');\n }\n /**\n * Query the end combined input\n */\n get _catDateEndInput() {\n return this.shadowRoot\n ?.querySelector('cat-combined-input')\n ?.shadowRoot?.querySelector('.cat-c-combined-input__input-container:last-child cat-input-field');\n }\n /**\n * get current time format\n */\n get timeFormat() {\n return this.is24HourFormat ? 'HH:mm' : 'h:mm a';\n }\n /**\n * Query all the input fields in the combined input\n */\n get _catCombinedInputFields() {\n const combinedInputElements = this.shadowRoot?.querySelector('cat-combined-input');\n const inputFieldElements = combinedInputElements?.shadowRoot?.querySelectorAll('cat-input-field');\n let elements;\n if (inputFieldElements) {\n elements = Array.from(inputFieldElements);\n }\n return elements;\n }\n get hasStartAndEndDates() {\n return this.startValue && this.endValue;\n }\n get hasDateAndTime() {\n return (this.selectedStartTime || this.setActiveStartTime) && (this.selectedEndTime || this.setActiveEndTime) && this.hasStartAndEndDates;\n }\n /**\n * Query the combined input container that is active\n */\n get _catCombinedInputActive() {\n return this._catCombinedInputFields\n ?.filter((el) => el.isActive === true)[0]\n ?.shadowRoot?.querySelector('.cat-c-input-field__input');\n }\n /**\n * Query the combined input container that is not active\n */\n get _catCombinedInputNotActive() {\n return this._catCombinedInputFields\n ?.filter((el) => el.isActive !== true)[0]\n .shadowRoot?.querySelector('.cat-c-input-field__input');\n }\n get isPopoverEnabled() {\n return this.isPopOverSupported && !this.isInline;\n }\n /**\n * Query the Apply \"submit\" button\n */\n get _catDateApply() {\n return this.shadowRoot?.querySelector('.cat-c-daterangepicker-field__footer-submit');\n }\n /**\n * Set tooltip display based on active panel\n */\n setTooltipDisplay(enableTooltip) {\n if (!this.hideLabelTooltip) {\n this.displayStartTooltip(enableTooltip);\n this.displayEndTooltip(enableTooltip);\n }\n }\n /**\n * Show or hide the tooltip when label overflow\n */\n displayStartTooltip(enableTooltip) {\n if (this.labelOverflowStartTooltip) {\n this.labelOverflowStartTooltip.enableTooltip = enableTooltip;\n }\n }\n /**\n * Show or hide the tooltip when label overflow\n */\n displayEndTooltip(enableTooltip) {\n if (this.labelOverflowEndTooltip) {\n this.labelOverflowEndTooltip.enableTooltip = enableTooltip;\n }\n }\n /**\n * Emit open event when panel is opened\n */\n emitPanelOpenEvent() {\n this.dispatch({ eventName: 'bl-date-range-open', detailObj: { isActive: true } });\n }\n /**\n * Emit close event when panel is closed\n */\n emitPanelCloseEvent() {\n this.dispatch({ eventName: 'bl-date-range-close', detailObj: { isActive: false } });\n }\n /**\n * Connected callback lifecycle\n * 1) Add event listeners\n */\n connectedCallback() {\n super.connectedCallback();\n document.addEventListener('mousedown', this.handleOnClickOutside, false);\n window.addEventListener('resize', this.onResize);\n this.fieldId = this.fieldId || nanoid();\n this.onResize();\n if (this.disabledMaxDate) {\n this._startMax = this.disabledMaxDate;\n this._endMax = this.disabledMaxDate;\n }\n if (this.disabledMinDate) {\n this._startMin = this.disabledMinDate;\n this._endMin = this.disabledMinDate;\n }\n }\n /**\n * Disconnected callback lifecycle\n * 1) Remove event listeners\n */\n disconnectedCallback() {\n super.disconnectedCallback();\n document.removeEventListener('mousedown', this.handleOnClickOutside, false);\n window.removeEventListener('resize', this.onResize);\n this._focusTrap?.deactivate();\n }\n /**\n * firstUpdated lifecycle\n * 1) Add keydown event listener to the input field\n */\n firstUpdated() {\n if (this.showDateRangePicker) {\n this.dynamicPosition();\n }\n }\n /**\n * Handle keydown - Close the calendar popup when escape is hit\n * 1) Set the focus on the active combined input item on press of the escape key\n */\n handleCloseKeyDown(e) {\n /* 1 */\n if (e.key === KEYS.DOWN_ARROW || e.key === KEYS.UP_ARROW) {\n e.preventDefault();\n if (this._catDateStartInput?.isActive) {\n this.showDateRangePicker && this._catStartCalender?.focusOnFirstKeypress(e);\n this.showDateRangePicker && this._catDateStartCalendarPopup?.removeAttribute('tabindex');\n }\n if (this._catDateEndInput?.isActive) {\n this.showDateRangePicker && this._catEndCalender?.focusOnFirstKeypress(e);\n this.showDateRangePicker && this._catDateEndCalendarPopup?.removeAttribute('tabindex');\n }\n }\n if (e.key === KEYS.ESCAPE) {\n this.setTooltipDisplay(true);\n this.showDateRangePicker = false;\n this.hidePopup();\n /* 1 */\n if (this._catCombinedInputActive) {\n this._catCombinedInputActive?.focus();\n }\n }\n this.setTabindexOnCalendar(e);\n }\n /**\n * Focus on calendar for using the first arrow key press. For arrow keys tabindex required but not for the tab events\n */\n setTabindexOnCalendar(e) {\n if (this._catDateStartInput?.isActive) {\n if (e.key === KEYS.TAB) {\n this._catDateStartCalendarPopup?.removeAttribute('tabindex');\n }\n }\n if (this._catDateEndInput?.isActive) {\n if (e.key === KEYS.TAB) {\n this._catDateEndCalendarPopup?.removeAttribute('tabindex');\n }\n }\n }\n /**\n * Handle on input keydown\n * 1) If key selected is enter or spacebar, toggle the calendar open/close\n */\n handleToggleKeyDown(e) {\n if ((e.key === KEYS.ENTER || e.key === KEYS.SPACE) && !this.readonly) {\n this.toggleDateRangePicker();\n }\n }\n /**\n * Handle dynamic placement for calendar popup\n */\n dynamicPosition() {\n setTimeout(() => {\n if (this._catDateCalendarPopup) {\n if (this.isPopoverEnabled) {\n this._catDateCalendarPopup.showPopover();\n }\n this.cleanup?.();\n if (this._catDateInputContainer) {\n this.cleanup = autoUpdate(this._catDateInputContainer, this._catDateCalendarPopup, this.autoUpdatePosition, { animationFrame: true });\n }\n this._catDateCalendarPopup.style.display = 'block';\n }\n }, 1);\n }\n /**\n * Hide calender popup\n */\n hidePopup() {\n if (this._catDateCalendarPopup) {\n this._catDateCalendarPopup.style.display = 'none';\n if (this.isPopoverEnabled) {\n this._catDateCalendarPopup.hidePopover();\n }\n }\n if (!!this.cleanup) {\n this.cleanup();\n this.cleanup = undefined;\n }\n this.updateCalendarGrid();\n this.emitPanelCloseEvent();\n this._focusTrap?.deactivate();\n if (this._catCombinedInputActive && this._catCombinedInputFields) {\n this._catCombinedInputFields[0]?.shadowRoot?.querySelector('.cat-c-input-field__input')?.focus();\n }\n // Clear the calender and time list values\n if (!this.startValue) {\n this._catStartCalender?.hidePopup();\n }\n this._catStartTimeList?.resetFocusToFirstTime();\n if (!this.endValue) {\n this._catEndCalender?.hidePopup();\n }\n this._catEndTimeList?.resetFocusToFirstTime();\n this.setTooltipDisplay(true);\n }\n /**\n * convertTime - Formats a 12 hour time string into 24 hour format\n * @param {string} timeStr - accepts a 12 hour time string\n * @example convertTime('12:00 AM')\n * @returns // '00:00'\n */\n convertTime(timeStr) {\n if (!timeStr) {\n return;\n }\n const [time, modifier] = timeStr.split(' ');\n // eslint-disable-next-line prefer-const\n let [hours, minutes] = time.split(':');\n if (hours === '12' && modifier === 'AM') {\n hours = '00';\n }\n if (modifier === 'PM') {\n hours = parseInt(hours, 10) + 12 + '';\n }\n return `${hours}:${minutes}`;\n }\n /**\n * Close datepicker when Cancel button is clicked\n */\n cancelSubmission() {\n this.showDateRangePicker = false;\n /**\n * If start value exists, save it and return to that value if window is cancelled\n */\n if (this.originalStartValue && this.originalStartValueRaw && this.showFooter) {\n // Update the selected start date value to be the original one from last applied\n this.startValue = this.originalStartDateFormatted;\n // Update the stored raw date value to be used when passing dates that need other formats\n this.startValueRaw = this.originalStartValueRaw;\n // Make the start input value revert back to the originally applied date\n if (this._catDateStartInput && this.startValueRaw) {\n this._catDateStartInput.value = format(this.startValueRaw, this.dateFormat);\n }\n // Pass the setActiveDate value to the calendar component property to update the calendar date\n if (this.startValueRaw) {\n this.setActiveStartDate = format(this.startValueRaw, this.dateFormat, { locale: enUS }); //Calendar input\n }\n // Pass the setActiveTime value to the time selector component property to update the start time\n if (this.originalStartTime) {\n this.setActiveStartTime = format(this.originalStartTime, 'HH:mm');\n }\n // Reset the disabledMinDate to disable end dated that come before the updated start date\n if (this.startValueRaw) {\n this._endMin = format(this.startValueRaw, this.isoFormat, { locale: enUS });\n }\n this.isCancelled = true;\n }\n else {\n // If no stored value, reset everything\n if (!(!this.showFooter && this._catDateStartInput?.value && this._catDateEndInput?.value)) {\n if (!this.originalStartValue) {\n if (this._catDateStartInput) {\n this._catDateStartInput.value = '';\n }\n this.setActiveStartDate = null;\n this.setActiveStartTime = null;\n this.startValue = null;\n this.startValueRaw = null;\n this.selectedStartTime = null;\n this.isCancelled = true;\n }\n }\n }\n /**\n * If end value exists, save it and return to that value if window is cancelled\n */\n if (this.originalEndValue && this.originalEndValueRaw && this.showFooter) {\n // Update the selected end date value to be the original one from last applied\n this.endValue = this.originalEndDateFormatted;\n // Update the stored raw date value to be used when passing dates that need other formats\n this.endValueRaw = this.originalEndValueRaw;\n // Make the end input value revert back to the originally applied date\n if (this._catDateEndInput) {\n this._catDateEndInput.value = format(this.originalEndValueRaw, this.dateFormat);\n }\n // Pass the setActiveTime value to the time selector component property to update the end time\n if (this.originalEndTime) {\n this.setActiveEndTime = format(this.originalEndTime, 'HH:mm');\n }\n // Pass the setActiveDate value to the calendar component property to update the calendar date\n if (this.endValueRaw) {\n this.setActiveEndDate = format(this.endValueRaw, this.dateFormat, { locale: enUS });\n }\n this.isCancelled = true;\n }\n else {\n // If no stored value, reset everything\n if (!(!this.showFooter && this._catDateEndInput?.value && this._catDateStartInput?.value)) {\n if (!this.originalEndValue) {\n if (this._catDateEndInput) {\n this._catDateEndInput.value = '';\n }\n this.setActiveEndDate = null;\n this.setActiveEndTime = null;\n this.selectedEndTime = null;\n this.endValue = null;\n this.endValueRaw = null;\n this.isCancelled = true;\n }\n }\n }\n this.hidePopup();\n this.checkApply();\n this.removeActiveState();\n }\n /**\n * remove Active state on corresponding input field.\n */\n removeActiveState() {\n if (this._catDateStartInput) {\n this._catDateStartInput.isActive = false;\n }\n if (this._catDateEndInput) {\n this._catDateEndInput.isActive = false;\n }\n }\n /**\n * Apply the values and close datepicker\n */\n submitForm() {\n if (!this.disabledSubmit) {\n this.showDateRangePicker = false;\n this.hidePopup();\n this.isCancelled = false;\n /**\n * If the picker is cancelled and a start value is present, go back to the original start value\n */\n if (this._catDateStartInput?.value) {\n this.originalStartValue = this._catDateStartInput.value;\n this.originalStartValueRaw = this.startValueRaw;\n this.originalStartTime = this.selectedStartTime;\n if (this.startValueRaw) {\n this.originalStartDateFormatted = format(this.startValueRaw, this.dateFormat, { locale: enUS });\n this.setActiveStartDate = format(this.startValueRaw, this.dateFormat, { locale: enUS });\n }\n }\n /**\n * If the picker is cancelled and a end value is present, go back to the original end value\n */\n if (this._catDateEndInput?.value) {\n this.originalEndValue = this._catDateEndInput.value;\n this.originalEndValueRaw = this.endValueRaw;\n this.originalEndTime = this.selectedEndTime;\n if (this.endValueRaw) {\n this.originalEndDateFormatted = format(this.endValueRaw, this.dateFormat, { locale: enUS });\n this.setActiveEndDate = format(this.endValueRaw, this.dateFormat, { locale: enUS });\n }\n }\n }\n this.dispatchDateRangeEvent();\n this.removeActiveState();\n }\n formatStartDate() {\n return (format(this.originalStartValueRaw ?? '', this.dateFormat) +\n (this.originalStartTime ? ` ${format(this.originalStartTime, this.timeFormat)}` : ''));\n }\n formatEndDate() {\n return (format(this.originalEndValueRaw ?? '', this.dateFormat) + (this.originalEndTime ? ` ${format(this.originalEndTime, this.timeFormat)}` : ''));\n }\n formatOriginalStartValue() {\n return format(this.originalStartValueRaw ?? '', this.dateFormat);\n }\n formatOriginalEndValue() {\n return format(this.originalEndValueRaw ?? '', this.dateFormat);\n }\n /**\n * Check whether or not to enable the \"Apply\" button\n */\n checkApply() {\n /**\n * Logic to apply whether or not a time selector is present\n */\n if (this.showTimeSelector) {\n /**\n * If both start and end fields have values, enable the apply button\n */\n if (this._catDateStartInput?.value &&\n this.startValueRaw &&\n this.selectedStartTime &&\n this._catDateEndInput?.value &&\n this.endValueRaw &&\n this.selectedEndTime) {\n let disabledSubmit = false;\n if (!this.originalStartValueRaw ||\n !this.originalEndValueRaw ||\n !this.originalEndTime ||\n !this.originalStartTime ||\n this._catDateStartInput.value !== this.formatStartDate() ||\n this._catDateEndInput.value !== this.formatEndDate()) {\n disabledSubmit = false;\n }\n else if (this._catDateStartInput.value === this.formatStartDate() || this._catDateEndInput.value === this.formatEndDate()) {\n disabledSubmit = true;\n }\n this.disabledSubmit = disabledSubmit;\n }\n else {\n this.disabledSubmit = true;\n }\n }\n else {\n /**\n * If both start and end fields have values, enable the apply button\n */\n if (this._catDateStartInput?.value && this.startValueRaw && this._catDateEndInput?.value && this.endValueRaw) {\n let disabledSubmit = false;\n if (!this.originalStartValueRaw ||\n !this.originalEndValueRaw ||\n this._catDateStartInput.value !== this.formatOriginalStartValue() ||\n this._catDateEndInput.value !== this.formatOriginalEndValue()) {\n disabledSubmit = false;\n }\n else if (this._catDateStartInput.value === this.formatOriginalStartValue() ||\n this._catDateEndInput.value === this.formatOriginalEndValue()) {\n disabledSubmit = true;\n }\n this.disabledSubmit = disabledSubmit;\n }\n else {\n this.disabledSubmit = true;\n }\n }\n }\n /**\n * @fires bl-date-range-change\n */\n async dispatchDateRangeEvent() {\n await this.updateComplete;\n let detailObj;\n if (this.showTimeSelector) {\n const time = this.selectedStartTime && format(this.selectedStartTime, 'HH:mm');\n const start24h = time ?? null;\n const end24h = (this.selectedEndTime && format(this.selectedEndTime, 'HH:mm')) ?? null;\n const startDate = this.startValueRaw && start24h ? this.combineDateAndTime(start24h, this.startValueRaw) : this.startValueRaw?.toISOString() || null;\n const endDate = this.endValueRaw && end24h ? this.combineDateAndTime(end24h, this.endValueRaw) : this.endValueRaw?.toISOString() || null;\n detailObj = {\n start: {\n value: this.startValue,\n date: startDate,\n time: start24h\n },\n end: {\n value: this.endValue,\n date: endDate,\n time: end24h\n }\n };\n }\n else {\n detailObj = {\n start: {\n date: this.startValue || null,\n value: this.startValueRaw?.toISOString() || null\n },\n end: {\n date: this.endValue || null,\n value: this.endValueRaw?.toISOString() || null\n }\n };\n }\n this.dispatch({ eventName: 'bl-date-range-change', detailObj });\n }\n combineDateAndTime(time24h, date) {\n const [hours, minutes] = time24h.split(':');\n const newDateTime = add(date, {\n hours: +hours,\n minutes: +minutes\n }).toISOString();\n return newDateTime;\n }\n /**\n * When calendar start date is changed\n */\n async dateUpdateStart(e) {\n // Update the input with the selected value\n if (this._catDateStartInput) {\n this._catDateStartInput.value = format(e.detail.rawDate, this.dateFormat);\n }\n // Set global startValue\n this.startValue = e.detail.value;\n // Save the raw date for date caparisons and formatting\n this.startValueRaw = e.detail.rawDate;\n /**\n * Disable all dates before the selected start date on the end calendar\n */\n this._endMin = format(e.detail.rawDate, this.isoFormat, { locale: enUS });\n /**\n * If there's no time selector, move to the \"end\" calendar after date selection\n */\n if (!this.showTimeSelector) {\n if (this._catDateStartInput) {\n this._catDateStartInput.isActive = false;\n }\n if (this._catDateEndInput) {\n this._catDateEndInput.isActive = true;\n }\n if (this._catDateStartCalendarPopup) {\n this._catDateStartCalendarPopup.hidden = true;\n }\n if (this._catDateEndCalendarPopup) {\n this._catDateEndCalendarPopup.hidden = false;\n }\n }\n const timeFormat = this.timeFormat;\n /**\n * If the start date is after the selected end date, update the end date to match the start date\n */\n if (this._catDateEndInput?.value && this.startValueRaw && this.endValueRaw && isAfter(this.startValueRaw, this.endValueRaw)) {\n // Update calendar active end date\n this.setActiveEndDate = format(this.startValueRaw, this.dateFormat, { locale: enUS });\n // Move the calendar to the new month and year\n if (this._catEndCalender) {\n this._catEndCalender.updateGrid(this.startValueRaw);\n }\n /**\n * If an end time is present, keep it and update just the date to the start date\n */\n if (this.selectedEndTime) {\n this._catDateEndInput.value = this._catDateStartInput?.value + ' ' + format(this.selectedEndTime, timeFormat);\n }\n else if (this._catDateEndInput && this._catDateStartInput) {\n this._catDateEndInput.value = this._catDateStartInput?.value;\n }\n }\n /**\n * If a date and time value are present, keep both when the date is being updated\n */\n if (this.selectedStartTime && this._catDateStartInput?.value && this.startValueRaw) {\n this._catDateStartInput.value = format(this.startValueRaw, this.dateFormat) + ' ' + format(this.selectedStartTime, timeFormat);\n }\n /**\n * If the end input doesn't have a value, set the end calendar to the\n * same month and year as the start value\n */\n if (!this._catDateEndInput?.value && this._catEndCalender && this.startValueRaw) {\n this._catEndCalender.updateGrid(this.startValueRaw);\n }\n if (this.endValue) {\n const element = this._catEndCalender?.shadowRoot?.querySelector('.is-active');\n const catCalendarElement = this._catDateEndCalendarPopup?.querySelector('cat-calendar');\n if (element && catCalendarElement) {\n catCalendarElement.setFocusOnDate(element);\n }\n }\n /**\n * Focus on first available time selector button\n */\n this.focusStartTimeList();\n // Is it ok to submit the timestamps?\n this.checkApply();\n if (!this.showFooter) {\n await this.updateComplete;\n this.dispatchDateRangeEvent();\n }\n }\n focusStartTimeList() {\n setTimeout(() => {\n if (this.showTimeSelector) {\n if (this._catDateStartCalendarTimeList?.shadowRoot?.querySelector('.cat-c-time-selector-list__item button.is-active')) {\n this._catDateStartCalendarTimeList?.shadowRoot\n ?.querySelector('.cat-c-time-selector-list__item button.is-active')\n ?.focus();\n }\n else {\n this._catStartTimeList?.setFocussedTime();\n }\n }\n }, 10);\n }\n /**\n * When calendar end date is changed\n */\n async dateUpdateEnd(e) {\n // Update the input with the selected value\n if (this._catDateEndInput) {\n this._catDateEndInput.value = format(e.detail.rawDate, this.dateFormat);\n }\n // Set global endValue\n this.endValue = e.detail.value;\n // Save the raw date for date caparisons and formatting\n this.endValueRaw = e.detail.rawDate;\n /**\n * Disable all dates after the selected end date on the start calendar\n */\n this._startMax = format(e.detail.rawDate, this.isoFormat, { locale: enUS });\n const timeFormat = this.timeFormat;\n /**\n * If the start date is before the selected end date, update the start date to match the end date\n */\n if (this._catDateStartInput?.value && this.endValueRaw && this.startValueRaw && isBefore(this.endValueRaw, this.startValueRaw)) {\n // Update calendar active end date\n this.setActiveStartDate = format(this.endValueRaw, this.dateFormat, { locale: enUS });\n //Move the calendar to the new month and year\n if (this._catStartCalender) {\n this._catStartCalender.updateGrid(this.endValueRaw);\n }\n /**\n * If an start time is present, keep it and update just the date to the end date\n */\n if (this.selectedStartTime) {\n this._catDateStartInput.value = this._catDateEndInput?.value + ' ' + format(this.selectedStartTime, timeFormat);\n }\n else if (this._catDateEndInput?.value) {\n this._catDateStartInput.value = this._catDateEndInput?.value;\n }\n }\n /**\n * If a date and time value are present, keep both when the date is being updated\n */\n if (this.selectedEndTime && this._catDateEndInput?.value) {\n if (this.endValueRaw) {\n this._catDateEndInput.value = format(this.endValueRaw, this.dateFormat) + ' ' + format(this.selectedEndTime, timeFormat);\n }\n }\n /**\n * If the start date is equal to the end date, check the times and disable\n * any end times that come before the selected start time\n */\n if (this.showTimeSelector) {\n if (this.startValue === this.endValue && this.selectedStartTime) {\n this.minEndTime = format(this.selectedStartTime, 'HH:mm');\n }\n else {\n this.minEndTime = null;\n }\n /**\n * Focus on first available time selector button\n */\n setTimeout(() => {\n const activeDate = this._catDateEndCalendarTimeList?.shadowRoot?.querySelector('.cat-c-time-selector-list__item button.is-active');\n const availableTime = this._catDateEndCalendarTimeList?.shadowRoot?.querySelector('.cat-c-time-selector-list__item button.is-available');\n if (activeDate) {\n activeDate.focus();\n }\n else if (availableTime) {\n this._catEndTimeList?.setFocusOnTime(availableTime);\n }\n }, 10);\n }\n else {\n if (this.showFooter) {\n /**\n * Focus on the Apply button once a time is selected\n */\n setTimeout(() => {\n this._catDateApply?.focus();\n }, 1);\n }\n }\n // Is it ok to submit the timestamps?\n this.checkApply();\n if (!this.showFooter) {\n await this.updateComplete;\n this.dispatchDateRangeEvent();\n if (!this.showTimeSelector) {\n this.closeDateRangePickerPanel();\n }\n }\n }\n /**\n * When calendar start time is changed\n */\n timeUpdateStart(e) {\n this.selectedStartTime = e.detail.rawDate;\n const timeFormat = this.timeFormat;\n /**\n * If a date value exists, append the time value\n */\n if (this._catDateStartInput?.value && this.startValueRaw) {\n /**\n * Move to the \"end\" calendar after time selection\n */\n this._catDateStartInput.isActive = false;\n if (this._catDateEndInput) {\n this._catDateEndInput.isActive = true;\n }\n if (this._catDateStartCalendarPopup) {\n this._catDateStartCalendarPopup.hidden = true;\n }\n if (this._catDateEndCalendarPopup) {\n this._catDateEndCalendarPopup.hidden = false;\n }\n const catCalendar = this._catDateEndCalendarPopup?.querySelector('cat-calendar');\n if (!this.endValue) {\n catCalendar?.shadowRoot?.querySelector('.cat-c-calendar__month-selector-button')?.focus();\n }\n if (this.endValue) {\n const element = this._catEndCalender?.shadowRoot?.querySelector('.is-active');\n if (element) {\n catCalendar?.setFocusOnDate(element);\n }\n }\n // Append time value to existing date\n if (this.selectedStartTime) {\n this._catDateStartInput.value = format(this.startValueRaw, this.dateFormat) + ' ' + format(this.selectedStartTime, timeFormat);\n }\n // Is it ok to submit the timestamp?\n this.checkApply();\n }\n else if (this._catDateStartInput && this.selectedStartTime) {\n this._catDateStartInput.value = format(this.selectedStartTime, timeFormat);\n }\n if (!this.showFooter) {\n this.dispatchDateRangeEvent();\n }\n }\n /**\n * When calendar end time is changed\n */\n timeUpdateEnd(e) {\n this.selectedEndTime = e.detail.rawDate;\n const timeFormat = this.timeFormat;\n /**\n * If a date value exists, append the time value\n */\n if (this._catDateEndInput?.value && this.endValueRaw) {\n // Append time value to existing date\n if (this.selectedEndTime) {\n this._catDateEndInput.value = format(this.endValueRaw, this.dateFormat) + ' ' + format(this.selectedEndTime, timeFormat);\n }\n // Is it ok to submit the timestamp?\n this.checkApply();\n /**\n * Focus on the Apply button once a time is selected\n */\n setTimeout(() => {\n this._catDateApply?.focus();\n }, 1);\n }\n else if (this._catDateEndInput && this.selectedEndTime) {\n this._catDateEndInput.value = format(this.selectedEndTime, timeFormat);\n }\n if (!this.showFooter) {\n this.dispatchDateRangeEvent();\n this.closeDateRangePickerPanel();\n }\n }\n async updated(_changedProperties) {\n await this.updateComplete;\n if (_changedProperties.has('locale')) {\n const locale = this.locale;\n setDefaultOptions({ locale });\n if (this.setActiveEndDate) {\n this.setEndDate();\n }\n if (this.setActiveStartDate) {\n this.setStartDate();\n }\n if (this.setActiveStartTime) {\n this.setStartTime();\n }\n if (this.setActiveEndTime) {\n this.setEndTime();\n }\n }\n if (_changedProperties.has('setActiveEndDate') && this.setActiveEndDate != _changedProperties.get('setActiveEndDate')) {\n if (this.setActiveEndDate) {\n this.setEndDate();\n }\n else {\n /**\n * When user needs to clear the selected DateRange, clear the input field and\n * originalEndValue and reset everything using isCancelled.\n */\n if (this._catDateEndInput) {\n this._catDateEndInput.value = '';\n }\n this.endValue = null;\n this.endValueRaw = null;\n this.selectedEndTime = null;\n this.originalEndValue = null;\n this.originalEndValueRaw = null;\n this.originalEndTime = null;\n this.isCancelled = true;\n this.checkApply();\n }\n }\n if (_changedProperties.has('setActiveStartDate') && this.setActiveStartDate != _changedProperties.get('setActiveStartDate')) {\n if (this.setActiveStartDate) {\n this.setStartDate();\n }\n else {\n /**\n * When user needs to clear the selected DateRange, clear the input field and\n * originalStartValue and reset everything using isCancelled.\n */\n if (this._catDateStartInput) {\n this._catDateStartInput.value = '';\n }\n this.startValue = null;\n this.startValueRaw = null;\n this.selectedStartTime = null;\n this.originalStartValue = null;\n this.originalStartValueRaw = null;\n this.originalStartTime = null;\n this.isCancelled = true;\n this.checkApply();\n }\n }\n if ((_changedProperties.has('setActiveStartTime') && this.setActiveStartTime != _changedProperties.get('setActiveStartTime')) ||\n (this.setActiveStartTime && this.isCancelled)) {\n if (this.setActiveStartTime) {\n this.setStartTime();\n }\n }\n if ((_changedProperties.has('setActiveEndTime') && this.setActiveEndTime != _changedProperties.get('setActiveEndTime')) ||\n (this.setActiveEndTime && this.isCancelled)) {\n if (this.setActiveEndTime) {\n this.setEndTime();\n }\n }\n if (_changedProperties.has('disabledMaxDate')) {\n this._startMax = this.disabledMaxDate;\n this._endMax = this.disabledMaxDate;\n }\n if (_changedProperties.has('disabledMinDate')) {\n this._startMin = this.disabledMinDate;\n this._endMin = this.disabledMinDate;\n }\n this.internals_?.setFormValue(JSON.stringify({ start: this.startValueRaw?.toISOString() || null, end: this.endValueRaw?.toISOString() || null }));\n /**To activate focus trap */\n if (this.showDateRangePicker && _changedProperties.has('showDateRangePicker')) {\n this.setFocusTrap();\n }\n }\n setFocusTrap() {\n const calendarPanel = this._catCalendarPanel;\n if (calendarPanel) {\n this._focusTrap = createFocusTrap(calendarPanel, {\n initialFocus: calendarPanel,\n tabbableOptions: { getShadowRoot: true },\n fallbackFocus: calendarPanel,\n allowOutsideClick: true\n });\n this._focusTrap?.activate();\n }\n }\n setEndDate() {\n if (this.setActiveEndDate) {\n this.endValueRaw = parse(this.setActiveEndDate, this.dateFormat, new Date(), { locale: enUS });\n }\n if (this.endValueRaw) {\n this.endValue = format(this.endValueRaw, this.dateFormat, { locale: enUS });\n this._startMax = format(this.endValueRaw, this.isoFormat, { locale: enUS });\n if (this._catDateEndInput) {\n this._catDateEndInput.value = format(this.endValueRaw, this.dateFormat);\n }\n }\n this.originalEndValueRaw = this.endValueRaw;\n if (this.selectedEndTime && this._catDateEndInput?.value) {\n this.populateEndOutputField();\n }\n if (this.endValueRaw) {\n this.originalEndDateFormatted = format(this.endValueRaw, this.dateFormat, { locale: enUS });\n }\n this.originalEndValue = this._catDateEndInput?.value;\n }\n setStartDate() {\n if (this.setActiveStartDate) {\n this.startValueRaw = parse(this.setActiveStartDate, this.dateFormat, new Date(), { locale: enUS });\n this.startValue = format(this.startValueRaw, this.dateFormat, { locale: enUS });\n this._endMin = format(this.startValueRaw, this.isoFormat, { locale: enUS });\n if (this._catDateStartInput) {\n this._catDateStartInput.value = format(this.startValueRaw, this.dateFormat);\n }\n }\n if (this.selectedStartTime && this._catDateStartInput?.value) {\n this.populateStartOutputField();\n }\n this.originalStartValueRaw = this.startValueRaw;\n if (this.startValueRaw) {\n this.originalStartDateFormatted = format(this.startValueRaw, this.dateFormat, { locale: enUS });\n }\n this.originalStartValue = this._catDateStartInput?.value;\n }\n setStartTime() {\n this.populateStartOutputField();\n this.originalStartTime = this.selectedStartTime;\n this.originalStartValue = this._catDateStartInput?.value;\n }\n setEndTime() {\n this.originalEndTime = this.selectedEndTime;\n this.populateEndOutputField();\n this.originalEndValue = this._catDateEndInput?.value;\n this.originalEndTime = this.selectedEndTime;\n }\n willUpdate(_changedProperties) {\n if (_changedProperties.has('setActiveEndTime')) {\n if (this.setActiveEndTime) {\n const date = new Date();\n const convertedTime = this.convertTime(this.setActiveEndTime);\n if (convertedTime) {\n const [hours, minutes] = convertedTime.split(':');\n date.setHours(+hours);\n date.setMinutes(+minutes);\n this.selectedEndTime = date;\n }\n }\n else {\n this.selectedEndTime = null;\n this.originalEndTime = null;\n this.isCancelled = true;\n this.populateEndOutputField();\n this.checkApply();\n }\n }\n if (_changedProperties.has('setActiveStartTime')) {\n if (this.setActiveStartTime) {\n const date = new Date();\n const convertedTime = this.convertTime(this.setActiveStartTime);\n if (convertedTime) {\n const [hours, minutes] = convertedTime.split(':');\n date.setHours(+hours);\n date.setMinutes(+minutes);\n this.selectedStartTime = date;\n }\n }\n else {\n this.selectedStartTime = null;\n this.originalStartTime = null;\n this.isCancelled = true;\n this.populateStartOutputField();\n this.checkApply();\n }\n }\n if (_changedProperties.has('showDateRangePicker') && this.showDateRangePicker) {\n if (this.showFooter) {\n this.checkApply();\n }\n }\n if (_changedProperties.has('disabledMaxDate')) {\n this._startMax = this.disabledMaxDate;\n this._endMax = this.disabledMaxDate;\n }\n if (_changedProperties.has('disabledMinDate')) {\n this._startMin = this.disabledMinDate;\n this._endMin = this.disabledMinDate;\n }\n }\n /**\n * Handle click outside the component\n * 1) In start calendar , when there is already date set/selected and user navigates to another month/year and closes the panel. In such cases the grid should\n display the selected date when re-opened.\n * 2) In End calendar , when there is already date set/selected and user navigates to another month/year and closes the panel. In such cases the grid should\n display the selected date when re-opened.\n * 3)Irrespective of whether it is start calendar/end calendar, when disabledMin and Max date is set and user navigates to another month/year and closes the panel.In such cases the grid should\n display the disabledMin date when re-opened. Now if there is any date explicitly set from user, then grid should display only the date selected.\n */\n updateCalendarGrid() {\n const startCalendar = this._catStartCalender;\n const endCalendar = this._catEndCalender;\n const currentStartMonth = startCalendar?.navDate?.getMonth();\n const currentStartYear = startCalendar?.navDate?.getFullYear();\n const currentEndMonth = endCalendar?.navDate?.getMonth();\n const currentEndYear = endCalendar?.navDate?.getFullYear();\n if (startCalendar && endCalendar) {\n const currentStartDate = parse(this.startValue || format(startCalendar.currentDate, this.dateFormat, { locale: enUS }), this.dateFormat, new Date(), {\n locale: enUS\n });\n const activeStartMonth = currentStartDate?.getMonth();\n const activeStartYear = currentStartDate?.getFullYear();\n const currentEndDate = parse(this.endValue || format(endCalendar.currentDate, this.dateFormat, { locale: enUS }), this.dateFormat, new Date(), {\n locale: enUS\n });\n const activeEndMonth = currentStartDate?.getMonth();\n const activeEndYear = currentStartDate?.getFullYear();\n /* 1 */\n if (((currentStartMonth != activeStartMonth || currentStartYear != activeStartYear) && this.setActiveStartDate && this.showFooter) ||\n (!this.showFooter && !isEqual(startCalendar?.navDate ?? '', currentStartDate))) {\n startCalendar.updateGrid(currentStartDate);\n }\n /* 2 */\n if (((currentEndMonth != activeEndMonth || currentEndYear != activeEndYear) && this.setActiveEndDate && this.showFooter) ||\n (!this.showFooter && !isEqual(endCalendar?.navDate ?? '', currentEndDate))) {\n endCalendar.updateGrid(currentEndDate);\n }\n /* 3 */\n if (isEqual(currentStartDate, currentEndDate) && !(this.startValue && this.endValue)) {\n if (this._startMax && this._startMin && this._endMax && this._endMin) {\n if (this.disabledMinDate) {\n const minDates = parse(this.disabledMinDate, 'yyyy/MM/dd', new Date(), { locale: enUS });\n startCalendar.updateGrid(minDates);\n endCalendar.updateGrid(minDates);\n }\n }\n else {\n startCalendar.updateGrid(startCalendar.currentDate);\n endCalendar.updateGrid(endCalendar.currentDate);\n }\n }\n }\n }\n populateStartOutputField() {\n if (this._catDateStartInput) {\n if (this.startValueRaw && this.selectedStartTime) {\n this._catDateStartInput.value = format(this.startValueRaw, this.dateFormat) + ' ' + format(this.selectedStartTime, this.timeFormat);\n }\n else if (this.selectedStartTime) {\n this._catDateStartInput.value = format(this.selectedStartTime, this.timeFormat);\n }\n else {\n this._catDateStartInput.value = '';\n }\n }\n }\n populateEndOutputField() {\n if (this._catDateEndInput) {\n if (this.endValueRaw && this.selectedEndTime) {\n this._catDateEndInput.value = format(this.endValueRaw, this.dateFormat) + ' ' + format(this.selectedEndTime, this.timeFormat);\n }\n else if (this.selectedEndTime) {\n this._catDateEndInput.value = format(this.selectedEndTime, this.timeFormat);\n }\n else {\n this._catDateEndInput.value = '';\n }\n }\n }\n /**\n * close the panel when both the input values are given and there is no footer\n */\n closeDateRangePickerPanel() {\n if (!this.showTimeSelector) {\n if (this.hasStartAndEndDates) {\n this.showDateRangePicker = false;\n this.hidePopup();\n this.removeActiveState();\n }\n }\n else {\n if (this.hasDateAndTime) {\n this.showDateRangePicker = false;\n this.hidePopup();\n this.removeActiveState();\n }\n }\n }\n hasFieldNote() {\n return (this.fieldNote ||\n this.errorNote ||\n this.warningNote ||\n this.slotNotEmpty('field-note') ||\n this.slotNotEmpty('error') ||\n this.slotNotEmpty('warning'));\n }\n renderLoading(componentClassNames) {\n return html `\n
\n
\n
\n ${this.size === 'md' && !this.hideLabel\n ? html ` \n `\n : nothing}\n\n
\n \n \n
\n
\n
\n ${this.size === 'md' && !this.hideLabel\n ? html ` \n `\n : nothing}\n\n
\n \n \n
\n
\n
\n\n ${this.hasFieldNote()\n ? html `
\n \n
`\n : nothing}\n
\n `;\n }\n setAriaDescribedBy() {\n if (this.hasFieldNote()) {\n this.ariaDescribedBy = this.ariaDescribedBy || nanoid();\n }\n }\n render() {\n const componentClassNames = this.componentClassNames('cat-c-daterangepicker-field', {\n 'cat-c-daterangepicker-field--hidden-label': this.hideLabel,\n 'cat-c-daterangepicker-field--with-timeselector': this.showTimeSelector,\n 'cat-c-daterangepicker-field--small-screen': this.isSmallScreen,\n 'cat-c-daterangepicker-field--full-width': this.isFullWidth,\n 'cat-c-daterangepicker-field--disabled': this.disabled,\n 'cat-c-daterangepicker-field--readonly': this.readonly,\n 'cat-c-daterangepicker-field--loader': this.isLoading === true,\n 'cat-c-daterangepicker-field--large': this.size === 'lg',\n 'cat-c-daterangepicker-field--medium': this.size === 'md',\n 'cat-c-daterangepicker-field--small': this.size === 'sm',\n 'cat-is-warning': this.status === 'warning',\n 'cat-is-error': this.status === 'error'\n });\n if (this.isLoading) {\n return this.renderLoading(componentClassNames);\n }\n this.setAriaDescribedBy();\n return html `\n
\n
\n \n \n
\n
\n
\n \n ${this.showTimeSelector\n ? html `\n
\n \n
\n `\n : html `${nothing}`}\n
\n \n ${this.showFooter\n ? html `\n
\n ${this.applyLabel}\n ${this.cancelLabel}\n
\n `\n : html `${nothing}`}\n
\n
\n
\n
\n ${this.fieldNote || this.slotNotEmpty('field-note')\n ? html `\n \n ${this.fieldNote}\n \n `\n : html `${nothing}`}\n ${this.errorNote || this.slotNotEmpty('error')\n ? html `\n \n ${this.errorNote}\n \n `\n : html `${nothing}`}\n ${this.warningNote || this.slotNotEmpty('warning')\n ? html `\n \n ${this.warningNote}\n \n `\n : html `${nothing}`}\n \n `;\n }\n}\n__decorate([\n property({ type: Object })\n], BlocksDaterangepickerField.prototype, \"locale\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"fieldId\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"fieldNote\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"errorNote\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"warningNote\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"hideLabel\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"isoFormat\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"startValue\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"endValue\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"minEndTime\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"is24HourFormat\", void 0);\n__decorate([\n property({ type: Number })\n], BlocksDaterangepickerField.prototype, \"timeIncrements\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"timeStart\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"timeEnd\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"ariaDescribedBy\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"cancelLabel\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"applyLabel\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"timeSelectorLabel\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true })\n], BlocksDaterangepickerField.prototype, \"disabled\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"required\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"isSmallScreen\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"showDateRangePicker\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"showTimeSelector\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"isFullWidth\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"showFooter\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"isCancelled\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"setActiveStartDate\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"setActiveEndDate\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"setActiveStartTime\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"setActiveEndTime\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"placeholder\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"startDateLabel\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"endDateLabel\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"dateFormat\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"disabledMinDate\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"disabledMaxDate\", void 0);\n__decorate([\n property({ type: Number })\n], BlocksDaterangepickerField.prototype, \"multiYear\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"previousButtonText\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"nextButtonText\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"position\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"isInline\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"size\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"status\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"readonly\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"isLoading\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"notation\", void 0);\n__decorate([\n property({ type: String })\n], BlocksDaterangepickerField.prototype, \"arialabel\", void 0);\n__decorate([\n property({ type: Number })\n], BlocksDaterangepickerField.prototype, \"tooltipShowDelay\", void 0);\n__decorate([\n property({ type: Number })\n], BlocksDaterangepickerField.prototype, \"tooltipHideDelay\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksDaterangepickerField.prototype, \"hideLabelTooltip\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"disabledSubmit\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"originalStartValue\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"originalEndValue\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"originalStartDateFormatted\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"originalEndDateFormatted\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"originalStartTime\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"originalEndTime\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"originalStartValueRaw\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"originalEndValueRaw\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"startValueRaw\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"endValueRaw\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"selectedStartTime\", void 0);\n__decorate([\n state()\n], BlocksDaterangepickerField.prototype, \"selectedEndTime\", void 0);\n__decorate([\n query('.cat-c-daterangepicker-field__body')\n], BlocksDaterangepickerField.prototype, \"_catDateInputContainer\", void 0);\n__decorate([\n query('.cat-c-daterangepicker-field__popup-wrapper')\n], BlocksDaterangepickerField.prototype, \"_catDateCalendarPopup\", void 0);\n__decorate([\n query('.cat-c-daterangepicker-field__calendar-start')\n], BlocksDaterangepickerField.prototype, \"_catDateStartCalendarPopup\", void 0);\n__decorate([\n query('.cat-c-daterangepicker-field__calendar-end')\n], BlocksDaterangepickerField.prototype, \"_catDateEndCalendarPopup\", void 0);\n__decorate([\n query('.cat-c-daterangepicker-field__calendar-start cat-time-selector-list')\n], BlocksDaterangepickerField.prototype, \"_catDateStartCalendarTimeList\", void 0);\n__decorate([\n query('.cat-c-daterangepicker-field__calendar-end cat-time-selector-list')\n], BlocksDaterangepickerField.prototype, \"_catDateEndCalendarTimeList\", void 0);\n__decorate([\n query('.cat-c-daterangepicker-field__popup-body')\n], BlocksDaterangepickerField.prototype, \"_catCalendarPanel\", void 0);\nif (customElements.get('cat-daterangepicker-field') === undefined) {\n customElements.define('cat-daterangepicker-field', BlocksDaterangepickerField);\n}\n","import { BlocksDaterangepickerField } from 'blocks-nextjs/blocks-web-components/components/daterangepicker-field/daterangepicker-field';\nimport React from 'react';\nimport { createComponent } from '../CustomWrapper/CustomWrapper';\nexport const CatDaterangepickerField = createComponent({\n react: React,\n tagName: 'cat-daterangepicker-field',\n elementClass: BlocksDaterangepickerField,\n events: {\n onBlDateRangeChange: 'bl-date-range-change',\n onBlDateRangeOpen: 'bl-date-range-open',\n onBlDateRangeClose: 'bl-date-range-close'\n }\n});\n","import { css } from 'lit';\nexport default css ` \n @charset \"UTF-8\";\n/* ------------------------------------*\\\n #RESET\n\\*------------------------------------ */\n/**\n * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/\n */\n*,\n::slotted(*),\n*:before,\n*:after {\n box-sizing: border-box;\n}\n\n:focus-visible {\n outline-color: var(--cat-theme-color-focus-ring);\n}\n\n/* ------------------------------------*\\\n    #BREAKPOINT VARIABLES\n\\*------------------------------------ */\n:root,\n:host {\n --size-base-unit: 0.5rem;\n}\n\n/**\n * RTL support for values logical properties can't automatically adjust for\n * 1) Percentage based horizontal translate values need to be flipped\n * 2) Background gradients using \"to right\" or \"to left\" need to be switched to using deg values\n * 3) Background Position From is used for reversing animation from right to left at 0%\n * 4) Background Position To is used for reversing animation from right to left at 100%\n * 5) Rotate Icon to 180deg for nav button\n * 6) Transformation size for badge left positions\n * 7) Transformation size for badge right positions\n * 8 to 18) Padding values for Input Field Type Tel\n */\n[dir=rtl] {\n --rtlTranslateX: 50%; /* 1 */\n --rtlGradientToRight: 270deg; /* 2 */\n --rtlBackgroundPositionFrom: -135%; /* 3 */\n --rtlBackgroundPositionTo: 0%; /* 4 */\n --rtlRotate180: 180deg; /* 5 */\n --rtlRotate135: 135deg;\n --rtlBadgeLeft: -1.5; /* 6 */\n --rtlBadgeRight: 1.5; /* 7 */\n --rtlTelTypeInputFieldPaddingStart: calc(var(--size-base-unit) * 5); /* 8 */\n --rtlTelTypeInputFieldPaddingEnd: calc(var(--size-base-unit) * 2); /* 9 */\n --rtlTelTypeInputFieldMedPaddingStart: calc(var(--size-base-unit) * 4.5); /* 10 */\n --rtlTelTypeInputFieldMedPaddingEnd: calc(var(--size-base-unit) * 1.5); /* 11 */\n --rtlTelTypeInputFieldSmPaddingStart: calc(var(--size-base-unit) * 4); /* 12 */\n --rtlTelTypeInputFieldSmPaddingEnd: calc(var(--size-base-unit) * 1); /* 13 */\n --rtlTelTypeInputFieldCharBeforePaddingEnd: calc(var(--size-base-unit) * 3.75); /* 14 */\n --rtlTelTypeInputFieldCharAfterPaddingStart: calc(var(--size-base-unit) * 6); /* 15 */\n --rtlTelTypeInputFieldCharAfterErrPaddingStart: calc(var(--size-base-unit) * 9); /* 16 */\n --rtlTelTypeInputFieldIconAfterErrPaddingStart: calc(var(--size-base-unit) * 8); /* 17 */\n --rtlTelTypeInputFieldIconCharAfterErrPaddingStart: calc(var(--size-base-unit) * 12); /* 18 */\n --rtlDisplayNone: none;\n --rtlDisplayBlock: block;\n --rtlDrawerRightTranslateX: -100%;\n --rtlDrawerLeftTranslateX: 100%;\n}\n\n/**\n * Visible focus outline for elements on a light background\n */\n/**\n * Visible focus outline for elements on a dark background\n */\n/**\n * Invisible focus outline for elements that need a more visible\n * focus state for high-contrast mode\n */\n/**\n * Visually hidden from display\n */\n/**\n * style for text ellipsis\n */\n/**\n * Popover attribute has default styling which comes from UA stylesheets which will be overridden here.\n */\n/* ------------------------------------*\\\n #TYPOGRAPHY APPLICATIONS\n\\*------------------------------------ */ /* ------------------------------------*\\\n #FILE-UPLOAD\n\\*------------------------------------ */\n/**\n * 1) Form field that consists of a label, text input, and field note\n */\n/**\n * File upload label\n */\n.cat-c-file-upload__label {\n font-family: var(--cat-theme-typography-body-sm-font-family);\n font-weight: var(--cat-theme-typography-body-sm-font-weight);\n font-size: var(--cat-theme-typography-body-sm-font-size);\n line-height: var(--cat-theme-typography-body-sm-line-height);\n display: block;\n margin-block-end: calc(var(--size-base-unit) * 1);\n}\n\n/**\n * File upload label text\n */\n.cat-c-file-upload__label-text {\n margin-block-end: calc(var(--size-base-unit) * 1);\n /**\n * Hide label text\n */\n}\n.cat-c-file-upload--hidden-label .cat-c-file-upload__label-text {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n/**\n * Dragging state\n */\n.cat-is-dragging .cat-c-file-upload__body {\n background: var(--cat-theme-color-background-disabled);\n position: relative;\n display: flex;\n flex-flow: column wrap;\n align-items: center;\n gap: calc(var(--size-base-unit) * 1);\n justify-content: center;\n text-align: center;\n outline: var(--cat-theme-border-width) dashed var(--cat-theme-color-border-default);\n}\n\n/**\n * Content inside of file upload area\n */\n.cat-c-file-upload__body {\n font-family: var(--cat-theme-typography-body-font-family);\n font-weight: var(--cat-theme-typography-body-font-weight);\n font-size: var(--cat-theme-typography-body-font-size);\n line-height: var(--cat-theme-typography-body-line-height);\n position: relative;\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n gap: calc(var(--size-base-unit) * 1);\n justify-content: center;\n padding: calc(var(--size-base-unit) * 2);\n text-align: center;\n outline: var(--cat-theme-border-width) dashed var(--cat-theme-color-border-default);\n /**\n * \"Button\" variant\n */\n}\n.cat-c-file-upload--button .cat-c-file-upload__body {\n font-family: var(--cat-theme-typography-label-font-family);\n font-weight: var(--cat-theme-typography-label-font-weight);\n font-size: var(--cat-theme-typography-label-font-size);\n line-height: var(--cat-theme-typography-label-line-height);\n display: flex;\n flex-flow: row nowrap;\n text-align: start;\n align-items: flex-start;\n hyphens: auto;\n color: var(--cat-theme-color-content-knockout);\n background-color: var(--cat-theme-color-button-contrast-background);\n min-height: var(--cat-line-height-40);\n outline: var(--cat-theme-border-width) solid var(--cat-theme-color-button-contrast-border);\n border-radius: var(--cat-theme-border-radius);\n padding: calc(var(--size-base-unit) * 1) calc(var(--size-base-unit) * 2);\n}\n.cat-c-file-upload--button.cat-c-file-upload--disabled .cat-c-file-upload__body {\n background-color: var(--cat-theme-color-background-default-disabled);\n outline: var(--cat-theme-border-width) solid var(--cat-theme-color-border-disabled);\n color: var(--cat-theme-color-content-disabled);\n}\n.cat-c-file-upload__body:has(.cat-c-file-upload__input:focus) {\n outline: 2px solid var(--cat-theme-color-focus-ring);\n outline-offset: var(--cat-theme-offset-focus-ring, -2px);\n transition: all var(--cat-anim-fade-quick) var(--cat-anim-ease);\n outline-offset: calc(var(--size-base-unit) * -0.125);\n}\n.cat-c-file-upload__body:has(.cat-c-file-upload__input:focus-visible) {\n outline: 2px solid var(--cat-theme-color-focus-ring);\n outline-offset: var(--cat-theme-offset-focus-ring, -2px);\n transition: all var(--cat-anim-fade-quick) var(--cat-anim-ease);\n}\n.cat-c-file-upload__body .cat-c-file-upload__description {\n display: flex;\n text-align: start;\n gap: calc(var(--size-base-unit) * 1);\n}\n\n.cat-c-file-upload--button .cat-c-file-upload__body:hover {\n background-color: var(--cat-theme-color-button-contrast-background-hover);\n border: 0;\n}\n\n.cat-c-file-upload--button.cat-c-file_upload_active .cat-c-file-upload__body {\n background-color: var(--cat-theme-color-button-contrast-background-active);\n border: 1px solid var(--cat-theme-color-button-contrast-border-active);\n}\n.cat-c-file-upload--button.cat-c-file_upload_active .cat-c-file-upload__body:has(.cat-c-file-upload__input:focus) {\n outline: none;\n}\n\n/**\n * Disabled state\n */\n.cat-c-file-upload--disabled {\n cursor: not-allowed;\n color: var(--cat-theme-color-content-disabled);\n /**\n * Hiding table header in disabled state\n */\n}\n.cat-c-file-upload--disabled .cat-c-file-upload__list {\n color: var(--cat-theme-color-content-disabled);\n}\n.cat-c-file-upload--disabled .cat-c-file-upload__list .cat-c-file-upload__status--failed {\n color: var(--cat-theme-color-content-disabled);\n}\n.cat-c-file-upload--disabled .cat-c-file-upload__list .cat-c-file-upload__status--success {\n color: var(--cat-theme-color-content-disabled);\n}\n.cat-c-file-upload--disabled .cat-c-file-upload__list .cat-c-file-upload__close-button {\n --cat-icon-fill: var(--cat-theme-color-button-content-disabled);\n}\n.cat-c-file-upload--disabled .cat-c-file-upload__label {\n pointer-events: none;\n}\n.cat-c-file-upload--disabled .cat-c-file-upload__item.cat-c-file-upload__item-header {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n/**\n * Disabled body & input\n */\n.cat-c-file-upload--disabled .cat-c-file-upload__body,\n.cat-c-file-upload--disabled .cat-c-file-upload__input {\n cursor: not-allowed;\n}\n\n/**\n * Disabled fieldnote\n */\ncat-field-note {\n --cat-field-note-margin-block-start: 0;\n --cat-theme-color-content-brand: var(--cat-theme-color-content-subtle);\n line-height: var(--cat-line-height-16);\n}\n.cat-c-file-upload--disabled cat-field-note {\n --cat-theme-color-content-brand: var(--cat-theme-color-content-disabled);\n}\n\n.cat-file-upload-fieldNote {\n display: flex;\n --cat-theme-color-content-brand: var(--cat-theme-color-content-default);\n}\n\n/**\n * Slotted content that appears in the drop zone\n */\n.cat-c-file-upload__body slot {\n font-family: var(--cat-theme-typography-body-sm-font-family);\n font-weight: var(--cat-theme-typography-body-sm-font-weight);\n font-size: var(--cat-theme-typography-body-sm-font-size);\n line-height: var(--cat-theme-typography-body-sm-line-height);\n align-items: center;\n}\n\n/**\n * Button styles\n */\n.cat-file-upload-button,\n::slotted(cat-button) {\n z-index: 2;\n --cat-theme-color-button-default-content: var(--cat-theme-color-content-knockout);\n --cat-theme-color-button-default-background: var(--cat-color-neutral-70);\n /**\n * Disabled button\n */\n}\n.cat-c-file-upload--disabled .cat-file-upload-button,\n.cat-c-file-upload--disabled ::slotted(cat-button) {\n --cat-theme-color-button-content: var(--cat-theme-color-content-disabled);\n --cat-theme-color-button-background: var(--cat-theme-color-background-default-disabled);\n --cat-theme-color-button-border: var(--cat-theme-color-border-disabled);\n}\n\ncat-loading-indicator {\n display: block;\n margin-inline-end: calc(var(--size-base-unit) * 1);\n}\n\n/**\n * Optional upload icon\n */\n.cat-file-upload-icon,\n::slotted(cat-icon),\n::slotted(.cat-icon) {\n --cat-icon-height: calc(var(--size-base-unit) * 2);\n --cat-icon-width: calc(var(--size-base-unit) * 2);\n /**\n * Button variant icon size\n */\n /**\n * Disabled icon\n */\n}\n.cat-c-file-upload--button .cat-file-upload-icon,\n.cat-c-file-upload--button ::slotted(cat-icon),\n.cat-c-file-upload--button ::slotted(.cat-icon) {\n --cat-icon-height: calc(var(--size-base-unit) * 2);\n --cat-icon-width: calc(var(--size-base-unit) * 2);\n}\n.cat-c-file-upload--disabled .cat-file-upload-icon,\n.cat-c-file-upload--disabled ::slotted(cat-icon),\n.cat-c-file-upload--disabled ::slotted(.cat-icon) {\n --cat-icon-fill: var(--cat-theme-color-button-content-disabled);\n}\n\n/**\n * File upload input\n */\n.cat-c-file-upload__input {\n position: absolute;\n inset-block-start: 0;\n inset-inline-start: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n border: none;\n z-index: 2;\n opacity: 0;\n}\n\n/**\n * File upload list\n */\n.cat-c-file-upload__list {\n font-family: var(--cat-theme-typography-body-sm-font-family);\n font-weight: var(--cat-theme-typography-body-sm-font-weight);\n font-size: var(--cat-theme-typography-body-sm-font-size);\n line-height: var(--cat-theme-typography-body-sm-line-height);\n list-style: none;\n margin: calc(var(--size-base-unit) * 1) 0 0;\n padding: 0;\n}\n\n/**\n * Uploaded list item\n */\n.cat-c-file-upload__item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.cat-c-file-upload__item-header {\n border-block-end: var(--cat-theme-border-width) solid var(--cat-theme-color-border-default);\n}\n\n/**\n * Uploaded list item headings\n */\n.cat-c-file-upload__item cat-heading {\n font-family: var(--cat-theme-typography-label-font-family);\n font-weight: var(--cat-theme-typography-label-font-weight);\n font-size: var(--cat-theme-typography-label-font-size);\n line-height: var(--cat-theme-typography-label-line-height);\n --cat-font-size-16: var(--cat-font-size-14);\n margin-block-end: calc(var(--size-base-unit) * 0.5);\n}\n\n/**\n * Uploaded items first group heading\n */\nh3.cat-c-file-upload__item-first {\n padding-inline-start: calc(var(--size-base-unit) * 1);\n}\n\n/**\n * Uploaded list item grouping\n */\n.cat-c-file-upload__item-first {\n display: flex;\n padding: calc(var(--size-base-unit) * 0.75) calc(var(--size-base-unit) * 2);\n align-items: flex-start;\n flex: 1 0 0;\n}\n\n.cat-c-file-upload__item-second {\n display: flex;\n padding: calc(var(--size-base-unit) * 0.75) calc(var(--size-base-unit) * 2);\n align-items: center;\n gap: calc(var(--size-base-unit) * 1);\n flex: 1 0 0;\n overflow: hidden;\n}\n\n.cat-c-file-upload__item-third {\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: calc(var(--size-base-unit) * 10.875);\n}\n\n.cat-c-file-upload__item-first__title,\n.cat-c-file-upload__item-second__title,\n.cat-c-file-upload__item-third__title {\n display: flex;\n padding: calc(var(--size-base-unit) * 0.5) calc(var(--size-base-unit) * 2);\n align-items: center;\n gap: calc(var(--size-base-unit) * 1);\n font-size: var(--cat-font-size-14);\n font-weight: var(--cat-font-weight-semibold);\n line-height: var(--cat-line-height-20);\n color: var(--cat-theme-color-content-default);\n}\n\n.cat-c-file-upload__item-first__title,\n.cat-c-file-upload__item-second__title {\n flex: 1 0 0;\n}\n\n.cat-c-file-upload__item-third__title {\n justify-content: center;\n width: calc(var(--size-base-unit) * 10.875);\n}\n\n.cat-c-file-upload__list-small-table {\n font-family: var(--cat-theme-typography-body-sm-font-family);\n font-weight: var(--cat-theme-typography-body-sm-font-weight);\n font-size: var(--cat-theme-typography-body-sm-font-size);\n line-height: var(--cat-theme-typography-body-sm-line-height);\n list-style: none;\n margin: calc(var(--size-base-unit) * 1) 0 0;\n padding: 0;\n}\n.cat-c-file-upload__list-small-table .cat-c-file-upload__item-small-table {\n display: flex;\n align-items: center;\n padding: calc(var(--size-base-unit) * 2);\n width: calc(var(--size-base-unit) * 47.5);\n justify-content: space-between;\n outline: var(--cat-theme-border-width) solid var(--cat-theme-color-border-default);\n margin-block-end: calc(var(--size-base-unit) * 1);\n}\n.cat-c-file-upload__list-small-table .cat-c-file-upload__item-small-table .cat-c-file-upload__small-table .cat-c-file-upload__name-container {\n display: flex;\n align-items: center;\n}\n.cat-c-file-upload__list-small-table .cat-c-file-upload__item-small-table .cat-c-file-upload__item-second {\n margin-block-start: calc(var(--size-base-unit) * 1);\n padding: 0;\n width: unset;\n}\n.cat-c-file-upload__list-small-table .cat-c-file-upload__item-small-table .cat-c-file-upload__item-second .cat-c-file-upload__status-text {\n margin-inline-start: 3px;\n}\n\n.cat-c-drop_text {\n line-height: var(--cat-line-height-40);\n}\n\n/**\n * File name of uploaded item\n */\n.cat-c-file-upload__item-text {\n word-break: break-all;\n}\n\n.cat-c-file-upload__small-table .cat-c-file-upload__name-container--remove {\n display: flex;\n align-items: center;\n color: var(--cat-theme-color-content-disabled);\n}\n\n/**\n * Upload status\n */\n.cat-c-file-upload__status {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n /**\n * Status icon\n */\n /**\n * Status text in tabular format\n */\n /**\n * Success \n */\n /**\n * Failed\n */\n /**\n * Removed\n */\n}\n.cat-c-file-upload__status cat-icon,\n.cat-c-file-upload__status .cat-icon {\n --cat-icon-height: calc(var(--size-base-unit) * 2);\n --cat-icon-width: calc(var(--size-base-unit) * 2);\n margin-inline-end: calc(var(--size-base-unit) * 1);\n}\n@media all and (max-width: 48rem) {\n .cat-c-file-upload__status cat-icon,\n .cat-c-file-upload__status .cat-icon {\n margin-block-start: 3px;\n }\n}\n.cat-c-file-upload__status .cat-c-tabular-text {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.cat-c-file-upload__status--success {\n color: var(--cat-theme-color-content-utility-success);\n}\n.cat-c-file-upload__status--failed {\n color: var(--cat-theme-color-content-utility-error);\n}\n.cat-c-file-upload__status--removed {\n color: var(--cat-color-neutral-60);\n}\n\n/**\n * Prefixed icon of uploaded item\n */\n.cat-c-file-upload__icon {\n --cat-icon-width: calc(var(--size-base-unit) * 2);\n --cat-icon-height: calc(var(--size-base-unit) * 2);\n height: var(--cat-icon-height);\n width: var(--cat-icon-width);\n margin-inline-end: calc(var(--size-base-unit) * 1);\n}\n\n/**\n * File upload close button\n */\n.cat-c-file-upload__close-button {\n --cat-icon-fill: var(--cat-color-utility-red);\n --cat-button-padding: calc(var(--size-base-unit) * 0.625) calc(var(--size-base-unit) * 2);\n}\n`;\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html, nothing } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { nanoid } from 'nanoid';\nimport { BlocksElement } from '../BlocksElement';\nimport '../button/button';\nimport '../field-note/field-note';\nimport '../icon/icons/close-circle';\nimport '../icon/icons/document-filled';\nimport '../icon/icons/file-upload';\nimport '../icon/icons/success';\nimport '../icon/icons/trash';\nimport '../icon/icons/warning-diamond-filled';\nimport '../loading-indicator/loading-indicator';\nimport '../text-passage/text-passage';\nimport { defaultTextConfig } from './file-upload.model';\nimport styles from './file-upload.styles';\n/**\n * @slot default - default component content\n * @slot error - error slot\n * @slot field-note - default field-note\n *\n * @fires bl-file-add - Emitted when file added\n * @fires bl-file-action - Emitted when we click on file action\n *\n * @csspart base - The component's base wrapper.\n * @csspart part-label - The component's label element.\n * @csspart label-text - The component's label field text.\n * @csspart body - The component's body field.\n * @csspart input - The component's input element.\n * @csspart text - The component's custom drag drop text.\n * @csspart part-default - The component's default slot.\n * @csspart description-wrapper - The component's description wrapper.\n * @csspart upload-icon - The component's upload icon.\n * @csspart description - The component's description text element.\n * @csspart upload-button - The component's upload button element.\n * @csspart small-table - The component's small-table wrapper.\n * @csspart table-wrapper - The component's table wrapper.\n * @csspart table-item - The component's table item field.\n * @csspart name-container - The component's name container field.\n * @csspart document-filled-icon - The component's document filled icon.\n * @csspart item-text - The component's item text field.\n * @csspart item-second - The component's item second wrapper.\n * @csspart uploading-wrapper - The component's uploading wrapper .\n * @csspart uploading-icon - The component's uploading icon .\n * @csspart uploading-text - The component's uploading text.\n * @csspart success-wrapper - The component's success wrapper.\n * @csspart success-icon - The component's success icon.\n * @csspart success-text - The component'success text.\n * @csspart remove-status-wrapper - The component's status remove wrapper.\n * @csspart close-circle-icon - The component's close circle icon.\n * @csspart status-text - The component's status text field.\n * @csspart item-third - The component's item third wrapper.\n * @csspart close-button - The component's close button icon.\n * @csspart upload-list - The component's upload-list wrapper.\n * @csspart item-header - The component's item header field.\n * @csspart first-title - The component's first title field.\n * @csspart second-title - The component's second title field.\n * @csspart third-title - The component's third title field.\n * @csspart item-wrapper - The component's uploading item wrapper.\n * @csspart item-first - The component's item first wrapper.\n * @csspart field-note-wrapper - The component's field-note wrapper.\n * @csspart part-field-note - The component's field-note slot.\n * @csspart part-error - The component's error slot.\n * @csspart part-warning - The component's warning slot.\n * @csspart warning-icon - The component's warning icon.\n */\nexport class BlocksFileUpload extends BlocksElement {\n constructor() {\n super(...arguments);\n /**\n * Required attribute\n */\n this.required = false;\n /**\n * File Upload Feedback\n * tabular - Displays file details in tabular format.\n * compact - Displays file details in compact, card-like format.\n * preview - Hide the feedback section and application will be handling the preview display.\n */\n this.feedback = 'tabular';\n /**\n * Getter and setter methods for textConfig\n * TextConfig is a JSON structure used to configure the text messages for file upload\n * fileFormatErrorText - Text to be displayed when the file uploaded is not as per supported format,\n * fileSizeErrorText - Text to be displayed when the file size exceeds,\n * uploadingText - Text to be displayed when the file is getting uploaded,\n * dragandDropText - Text to be displayed on drag and drop state,\n * tableFileText - Text to be displayed for the first column heading of preview table,\n * tableStatusText - Text to be displayed for the second column heading of preview table,\n * tableActionText - Text to be displayed for the third column heading of preview table,\n * uploadingActionText - Text to be displayed in third column when file is being uploaded\n */\n this.textConfig = {\n fileFormatErrorText: defaultTextConfig.fileFormatErrorText,\n fileSizeErrorText: defaultTextConfig.fileSizeErrorText,\n uploadingText: defaultTextConfig.uploadingText,\n dragandDropText: defaultTextConfig.dragandDropText,\n tableFileText: defaultTextConfig.tableFileText,\n tableStatusText: defaultTextConfig.tableStatusText,\n tableActionText: defaultTextConfig.tableActionText,\n uploadingActionText: defaultTextConfig.uploadingActionText\n };\n /**\n * Getter and Setter for uploading time\n */\n this.uploadingtime = 1000;\n /**\n * Getter and Setter for file size Validation\n */\n this.fileSizeLimit = 75;\n /**\n * Boolean attribute used to show a small variant for preview table\n */\n this.isSmallTable = false;\n /**\n * To replace the old file with new file\n */\n this.isReplace = false;\n /**\n * To hide action column\n */\n this.hideAction = false;\n /**\n * Files state\n */\n this.filesState = [];\n this.internals_ = this.attachInternals?.();\n this.onDragOver = (e) => {\n e.preventDefault();\n if (!this.isDragging) {\n this.isDragging = true;\n }\n };\n this.onDragEnd = (e) => {\n e.preventDefault();\n if (this.isDragging) {\n this.isDragging = false;\n }\n };\n /**\n * Based on the fieldId update the userAction details and trigger the event with details\n */\n this.onFileAction = (fieldId) => {\n this.filesState.map((file) => (file.userAction = file.fieldId === fieldId ? file.action : ''));\n this.filesState = this.filesState.filter((file) => file.fieldId !== fieldId || file.preventDelete === true);\n this.dispatch({ eventName: 'bl-file-action', detailObj: { updatedFiles: this.filesState } });\n this.fileUploadInput.value = '';\n };\n /**\n * 1. Copy existing files from state to a new variable, if isReplace as true , empty the files array, so old files will be removed\n */\n this.onFileInputChange = (e) => {\n const fileObjects = window.DragEvent && e instanceof DragEvent ? e.dataTransfer?.files : e.target?.files;\n if (!fileObjects || fileObjects.length === 0)\n return;\n /* 1 */\n const files = this.isReplace ? [] : Array.apply(undefined, this.filesState);\n const uploadedFiles = [];\n Object.entries(fileObjects)\n .filter((file) => file?.[1] instanceof File)\n .forEach((file) => {\n const fileSizeError = this.checkFileSizeError(file);\n const fileFormatError = this.checkFileFormatError(file);\n const fileObj = {\n fileObject: file,\n status: fileSizeError || fileFormatError ? 'Failed' : 'Uploading',\n fieldId: nanoid(),\n statusText: '',\n fileSizeExceeded: fileSizeError,\n fileFormatError: fileFormatError,\n action: 'cancel',\n actionText: this.textConfig.uploadingActionText\n };\n uploadedFiles.push(fileObj);\n files.push(fileObj);\n });\n this.dispatch({ eventName: 'bl-file-add', detailObj: { uploadedFiles } });\n this.filesState = files;\n };\n }\n /**\n * Add a static formAssociated property to custom element class.\n * This tells the browser to treat the element like a form control\n */\n static { this.formAssociated = true; }\n static { this.styles = styles; }\n /**\n * Associates the control with a form element\n */\n get form() {\n return this.internals_?.form;\n }\n /**\n * To return variant type button\n */\n get isButtonVariant() {\n return this.variant === 'button';\n }\n connectedCallback() {\n super.connectedCallback();\n this.fieldId = this.fieldId || nanoid();\n }\n updated(changedProperties) {\n changedProperties.forEach((oldValue, propName) => {\n if (propName === 'uploadFiles' && this.uploadFiles !== oldValue) {\n setTimeout(() => {\n const updateFiles = this.filesState;\n this.uploadFiles?.forEach((file) => {\n const index = updateFiles.findIndex((fileData) => fileData.fieldId === file.fileId);\n if (index > -1) {\n updateFiles[index].status = file.status;\n updateFiles[index].statusText = file.statusText;\n updateFiles[index].action = file.action;\n updateFiles[index].actionText = file.actionText;\n updateFiles[index].userAction = file.userAction;\n updateFiles[index].preventDelete = file.preventDelete;\n }\n });\n this.filesState = [];\n this.filesState = updateFiles;\n }, this.uploadingtime);\n }\n });\n if (changedProperties.has('filesState')) {\n const formData = new FormData();\n this.filesState?.forEach(({ fileObject }) => {\n if (this.name) {\n formData.append(this.name, fileObject?.[1]);\n }\n });\n this.internals_?.setFormValue(formData);\n }\n }\n getFileSizeBasedOnOS(fileSize) {\n //TODO:Since appVersion deprecated Should check alternatives\n if (navigator.appVersion.indexOf('Win') !== -1) {\n return fileSize * 1024 * 1024;\n }\n else if (navigator.appVersion.indexOf('Mac') !== -1 || navigator.appVersion.indexOf('Linux') !== -1) {\n return fileSize * 1000 * 1000;\n }\n }\n /**\n * Adding scss to button on open of fileExplorer in minimal variant\n */\n openFileExplorer() {\n if (this.isButtonVariant) {\n this.activeState = true;\n }\n }\n /**\n * Removing scss to button on close of fileExplorer in minimal variant\n */\n closeFileExplorer() {\n if (this.isButtonVariant) {\n this.activeState = false;\n }\n }\n checkFileSizeError(file) {\n const fileSizeBasedOnOS = this.getFileSizeBasedOnOS(this.fileSizeLimit);\n return !!(fileSizeBasedOnOS && file[1].size > fileSizeBasedOnOS);\n }\n /**\n * 1. Split the accept inputs to check the file format. It can be case-insensitive. (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept#unique_file_type_specifiers)\n * 2. Check the file format based on extension/MIME type - Need to handle all 3 types\n * examples:\n * i) image/png - MIME type\n * ii) image/* - wildcard MIME type\n * iii) .png - extension\n */\n checkFileFormatError(file) {\n if (this.accept === '*') {\n return false;\n }\n const acceptTypesArray = Array.from(new Set(this.accept?.split(',').map((accept) => accept.toLowerCase()))); //1\n if (!acceptTypesArray.length) {\n return false;\n }\n // get MIME type of file - returns `image/png` (i)\n const fileMimeType = file[1]?.type;\n // 'image/png' is valid if 'image/*' is in array of accepted types (wildcard) (ii)\n const fileMimeTypeRoot = fileMimeType?.split('/')?.shift(); //(returns `image`)\n const fileMimeTypeWildcard = `${fileMimeTypeRoot}/*`; // (returns `image/*`)\n // if user renamed file extension(ex: testfile.png to testfile.txt), file may still contain actual extension. ex: testfile.png.txt\n const fileExtArr = file[1]?.name?.split('.'); // returns `[testfile,png,txt]`\n const fileExt = `.${fileExtArr?.pop()?.toLowerCase()}`; // returns `.txt` (iii)\n // file type (or root of mime type if specifying wildcard) must be in array of valid types\n return (acceptTypesArray.indexOf(fileMimeType) === -1 && //2\n acceptTypesArray.indexOf(fileMimeTypeWildcard) === -1 &&\n acceptTypesArray.indexOf(fileExt) === -1);\n }\n setAriaDescribedBy() {\n if (this.hasFieldNote()) {\n this.ariaDescribedBy = this.ariaDescribedBy || nanoid();\n }\n }\n handleUploadButton() {\n this.fileUploadInput?.click();\n this.fileUploadInput?.focus();\n }\n hasFieldNote() {\n return this.fieldNote || this.slotNotEmpty('field-note') || this.errorNote || this.slotNotEmpty('error');\n }\n /**\n * @param statusText - failed status text - compact section\n */\n failedCompactTpl(statusText) {\n return html `\n
\n \n ${statusText}\n
\n `;\n }\n /**\n * @param statusText - failed status text - Tabular section\n */\n failedTabularTpl(statusText) {\n return html `\n
\n ${statusText}\n
\n `;\n }\n render() {\n const componentClassNames = this.componentClassNames('cat-c-file-upload', {\n 'cat-is-error': this.status === 'error',\n 'cat-is-success': this.status === 'success',\n 'cat-is-dragging': this.isDragging === true,\n 'cat-c-file-upload--hidden-label': this.hideLabel,\n 'cat-c-file-upload--disabled': this.disabled,\n 'cat-c-file-upload--button': this.isButtonVariant,\n 'cat-c-file_upload_active': this.activeState === true\n });\n this.setAriaDescribedBy();\n return html `\n
\n
\n \n ${this.fieldNote || this.slotNotEmpty('field-note')\n ? html `\n \n ${this.fieldNote}\n \n `\n : nothing}\n ${this.errorNote || this.slotNotEmpty('error')\n ? html `\n \n ${this.errorNote}\n \n `\n : nothing}\n ${this.isSmallTable || this.feedback === 'compact'\n ? html `\n
    \n ${this.filesState?.map((file) => html `\n
  • \n
    \n \n \n ${file.fileObject[1].name}\n
    \n ${file.status\n ? html `\n
    \n ${file.status === 'Uploading'\n ? html `\n \n \n ${this.textConfig.uploadingText}\n
    \n `\n : nothing}\n ${file.status === 'Success'\n ? html `\n
    \n \n ${file.statusText}\n
    \n `\n : nothing}\n ${file.status === 'Failed' && file.fileSizeExceeded && !file.fileFormatError\n ? this.failedCompactTpl(this.textConfig.fileSizeErrorText)\n : nothing}\n ${file.status === 'Failed' && file.fileFormatError\n ? this.failedCompactTpl(this.textConfig.fileFormatErrorText)\n : nothing}\n ${file.status === 'Failed' && file.statusText ? this.failedCompactTpl(file.statusText) : nothing}\n ${file.status === 'Removed' && file.statusText\n ? html `\n
    \n \n ${file.statusText}\n
    \n `\n : nothing}\n \n `\n : nothing}\n \n ${file.action && file.actionText && !this.hideAction\n ? html `
    \n this.onFileAction(file.fieldId)}\n >\n ${file.actionText}\n \n
    `\n : nothing}\n
  • \n `)}\n
\n `\n : nothing}\n ${this.feedback === 'tabular' && !this.isSmallTable\n ? html `\n
    \n
  • \n
    ${this.textConfig.tableFileText}
    \n
    ${this.textConfig.tableStatusText}
    \n ${!this.hideAction\n ? html `
    ${this.textConfig.tableActionText}
    `\n : nothing}\n
  • \n ${this.filesState?.map((file) => html `\n
  • \n
    \n ${file.fileObject[1].name}\n
    \n
    \n ${file.status === 'Uploading'\n ? html `\n
    \n \n ${this.textConfig.uploadingText}\n
    \n `\n : nothing}\n ${file.status === 'Success'\n ? html `\n
    \n \n ${file.statusText}\n
    \n `\n : nothing}\n ${file.status === 'Failed' && file.fileSizeExceeded && !file.fileFormatError\n ? this.failedTabularTpl(this.textConfig.fileSizeErrorText)\n : nothing}\n ${file.status === 'Failed' && file.fileFormatError ? this.failedTabularTpl(this.textConfig.fileFormatErrorText) : nothing}\n ${file.status === 'Failed' && file.statusText ? this.failedTabularTpl(file.statusText) : nothing}\n ${file.status === 'Removed' && file.statusText\n ? html `\n
    \n \n ${file.statusText}\n
    \n `\n : nothing}\n
    \n ${file.action && file.actionText && !this.hideAction\n ? html `
    \n this.onFileAction(file.fieldId)}\n >\n ${file.actionText}\n \n
    `\n : nothing}\n
  • \n `)}\n
\n `\n : nothing}\n \n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"fieldId\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"label\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"description\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"name\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"value\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"fieldNote\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"errorNote\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"ariaDescribedBy\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksFileUpload.prototype, \"required\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true })\n], BlocksFileUpload.prototype, \"disabled\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"placeholder\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"status\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksFileUpload.prototype, \"hideLabel\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"feedback\", void 0);\n__decorate([\n property({ type: Object })\n], BlocksFileUpload.prototype, \"textConfig\", void 0);\n__decorate([\n property({ type: Array })\n], BlocksFileUpload.prototype, \"uploadFiles\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"variant\", void 0);\n__decorate([\n property({ type: Number })\n], BlocksFileUpload.prototype, \"uploadingtime\", void 0);\n__decorate([\n property({ type: Number })\n], BlocksFileUpload.prototype, \"fileSizeLimit\", void 0);\n__decorate([\n property({ type: String })\n], BlocksFileUpload.prototype, \"accept\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksFileUpload.prototype, \"isSmallTable\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksFileUpload.prototype, \"multiple\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksFileUpload.prototype, \"isReplace\", void 0);\n__decorate([\n property({ type: Boolean })\n], BlocksFileUpload.prototype, \"hideAction\", void 0);\n__decorate([\n state()\n], BlocksFileUpload.prototype, \"filesState\", void 0);\n__decorate([\n state()\n], BlocksFileUpload.prototype, \"isDragging\", void 0);\n__decorate([\n state()\n], BlocksFileUpload.prototype, \"activeState\", void 0);\n__decorate([\n query('.cat-c-file-upload__input')\n], BlocksFileUpload.prototype, \"fileUploadInput\", void 0);\nif (customElements.get('cat-file-upload') === undefined) {\n customElements.define('cat-file-upload', BlocksFileUpload);\n}\n","export const defaultTextConfig = {\n fileFormatErrorText: 'Failed, file format error',\n fileSizeErrorText: 'Error, file size exceeded. (Max. 10MB)',\n uploadingText: 'Uploading...',\n dragandDropText: 'Drop files here.',\n tableFileText: 'File Name',\n tableStatusText: 'Status',\n tableActionText: 'Action',\n uploadingActionText: 'Cancel'\n};\n","import { createComponent } from '@lit/react';\nimport { BlocksFileUpload } from 'blocks-nextjs/blocks-web-components/components/file-upload/file-upload';\nimport React from 'react';\nexport const CatFileUpload = createComponent({\n react: React,\n tagName: 'cat-file-upload',\n elementClass: BlocksFileUpload,\n events: {\n onBlFileAdd: 'bl-file-add',\n onBlFileAction: 'bl-file-action'\n }\n});\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { BlocksElement } from '../../BlocksElement';\nimport styles from '../icon.styles';\n/**\n * AddCircle component\n * @csspart base- The component's base wrapper\n */\nexport class BlocksIconAddCircle extends BlocksElement {\n static { this.styles = styles; }\n connectedCallback() {\n super.connectedCallback();\n this.classList.add('cat-icon');\n }\n render() {\n const componentClassName = this.componentClassNames('cat-c-icon', {\n 'cat-c-icon--sm': this.size === 'sm',\n 'cat-c-icon--lg': this.size === 'lg',\n 'cat-c-icon--xl': this.size === 'xl',\n 'cat-c-icon--content-strong': this.color === 'content-strong',\n 'cat-c-icon--knockout': this.color === 'knockout',\n 'cat-c-icon--knockout-brand': this.color === 'knockout-brand',\n 'cat-c-icon--information': this.color === 'information',\n 'cat-c-icon--success': this.color === 'success',\n 'cat-c-icon--warning': this.color === 'warning',\n 'cat-c-icon--error': this.color === 'error'\n });\n return html `\n \n \n \n \n \n \n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksIconAddCircle.prototype, \"color\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconAddCircle.prototype, \"iconTitle\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconAddCircle.prototype, \"size\", void 0);\nif (customElements.get('cat-icon-add-circle') === undefined) {\n customElements.define('cat-icon-add-circle', BlocksIconAddCircle);\n}\n","import { BlocksIconAddCircle } from 'blocks-nextjs/blocks-web-components/components/icon/icons/add-circle';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconAddCircle = createComponent({ react: React, tagName: 'cat-icon-add-circle', elementClass: BlocksIconAddCircle });\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { BlocksElement } from '../../BlocksElement';\nimport styles from '../icon.styles';\n/**\n * Copy component\n * @csspart base- The component's base wrapper\n */\nexport class BlocksIconCopy extends BlocksElement {\n static { this.styles = styles; }\n connectedCallback() {\n super.connectedCallback();\n this.classList.add('cat-icon');\n }\n render() {\n const componentClassName = this.componentClassNames('cat-c-icon', {\n 'cat-c-icon--sm': this.size === 'sm',\n 'cat-c-icon--lg': this.size === 'lg',\n 'cat-c-icon--xl': this.size === 'xl',\n 'cat-c-icon--content-strong': this.color === 'content-strong',\n 'cat-c-icon--knockout': this.color === 'knockout',\n 'cat-c-icon--knockout-brand': this.color === 'knockout-brand',\n 'cat-c-icon--information': this.color === 'information',\n 'cat-c-icon--success': this.color === 'success',\n 'cat-c-icon--warning': this.color === 'warning',\n 'cat-c-icon--error': this.color === 'error'\n });\n return html `\n \n \n \n \n \n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksIconCopy.prototype, \"color\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconCopy.prototype, \"iconTitle\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconCopy.prototype, \"size\", void 0);\nif (customElements.get('cat-icon-copy') === undefined) {\n customElements.define('cat-icon-copy', BlocksIconCopy);\n}\n","import { BlocksIconCopy } from 'blocks-nextjs/blocks-web-components/components/icon/icons/copy';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconCopy = createComponent({ react: React, tagName: 'cat-icon-copy', elementClass: BlocksIconCopy });\n","import { BlocksIconDealer } from 'blocks-nextjs/blocks-web-components/components/icon/icons/dealer';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconDealer = createComponent({ react: React, tagName: 'cat-icon-dealer', elementClass: BlocksIconDealer });\n","import { BlocksIconDocumentFilled } from 'blocks-nextjs/blocks-web-components/components/icon/icons/document-filled';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconDocumentFilled = createComponent({ react: React, tagName: 'cat-icon-document-filled', elementClass: BlocksIconDocumentFilled });\n","import { BlocksIconFileUpload } from 'blocks-nextjs/blocks-web-components/components/icon/icons/file-upload';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconFileUpload = createComponent({ react: React, tagName: 'cat-icon-file-upload', elementClass: BlocksIconFileUpload });\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { BlocksElement } from '../../BlocksElement';\nimport styles from '../icon.styles';\n/**\n * Lock component\n * @csspart base- The component's base wrapper\n */\nexport class BlocksIconLock extends BlocksElement {\n static { this.styles = styles; }\n connectedCallback() {\n super.connectedCallback();\n this.classList.add('cat-icon');\n }\n render() {\n const componentClassName = this.componentClassNames('cat-c-icon', {\n 'cat-c-icon--sm': this.size === 'sm',\n 'cat-c-icon--lg': this.size === 'lg',\n 'cat-c-icon--xl': this.size === 'xl',\n 'cat-c-icon--content-strong': this.color === 'content-strong',\n 'cat-c-icon--knockout': this.color === 'knockout',\n 'cat-c-icon--knockout-brand': this.color === 'knockout-brand',\n 'cat-c-icon--information': this.color === 'information',\n 'cat-c-icon--success': this.color === 'success',\n 'cat-c-icon--warning': this.color === 'warning',\n 'cat-c-icon--error': this.color === 'error'\n });\n return html `\n \n \n \n \n \n \n \n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksIconLock.prototype, \"color\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconLock.prototype, \"iconTitle\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconLock.prototype, \"size\", void 0);\nif (customElements.get('cat-icon-lock') === undefined) {\n customElements.define('cat-icon-lock', BlocksIconLock);\n}\n","import { BlocksIconLock } from 'blocks-nextjs/blocks-web-components/components/icon/icons/lock';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconLock = createComponent({ react: React, tagName: 'cat-icon-lock', elementClass: BlocksIconLock });\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { BlocksElement } from '../../BlocksElement';\nimport styles from '../icon.styles';\n/**\n * People component\n * @csspart base- The component's base wrapper\n */\nexport class BlocksIconPeople extends BlocksElement {\n static { this.styles = styles; }\n connectedCallback() {\n super.connectedCallback();\n this.classList.add('cat-icon');\n }\n render() {\n const componentClassName = this.componentClassNames('cat-c-icon', {\n 'cat-c-icon--sm': this.size === 'sm',\n 'cat-c-icon--lg': this.size === 'lg',\n 'cat-c-icon--xl': this.size === 'xl',\n 'cat-c-icon--content-strong': this.color === 'content-strong',\n 'cat-c-icon--knockout': this.color === 'knockout',\n 'cat-c-icon--knockout-brand': this.color === 'knockout-brand',\n 'cat-c-icon--information': this.color === 'information',\n 'cat-c-icon--success': this.color === 'success',\n 'cat-c-icon--warning': this.color === 'warning',\n 'cat-c-icon--error': this.color === 'error'\n });\n return html `\n \n \n \n \n \n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksIconPeople.prototype, \"color\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconPeople.prototype, \"iconTitle\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconPeople.prototype, \"size\", void 0);\nif (customElements.get('cat-icon-people') === undefined) {\n customElements.define('cat-icon-people', BlocksIconPeople);\n}\n","import { BlocksIconPeople } from 'blocks-nextjs/blocks-web-components/components/icon/icons/people';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconPeople = createComponent({ react: React, tagName: 'cat-icon-people', elementClass: BlocksIconPeople });\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { BlocksElement } from '../../BlocksElement';\nimport styles from '../icon.styles';\n/**\n * Share component\n * @csspart base- The component's base wrapper\n */\nexport class BlocksIconShare extends BlocksElement {\n static { this.styles = styles; }\n connectedCallback() {\n super.connectedCallback();\n this.classList.add('cat-icon');\n }\n render() {\n const componentClassName = this.componentClassNames('cat-c-icon', {\n 'cat-c-icon--sm': this.size === 'sm',\n 'cat-c-icon--lg': this.size === 'lg',\n 'cat-c-icon--xl': this.size === 'xl',\n 'cat-c-icon--content-strong': this.color === 'content-strong',\n 'cat-c-icon--knockout': this.color === 'knockout',\n 'cat-c-icon--knockout-brand': this.color === 'knockout-brand',\n 'cat-c-icon--information': this.color === 'information',\n 'cat-c-icon--success': this.color === 'success',\n 'cat-c-icon--warning': this.color === 'warning',\n 'cat-c-icon--error': this.color === 'error'\n });\n return html `\n \n \n \n \n \n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksIconShare.prototype, \"color\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconShare.prototype, \"iconTitle\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconShare.prototype, \"size\", void 0);\nif (customElements.get('cat-icon-share') === undefined) {\n customElements.define('cat-icon-share', BlocksIconShare);\n}\n","import { BlocksIconShare } from 'blocks-nextjs/blocks-web-components/components/icon/icons/share';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconShare = createComponent({ react: React, tagName: 'cat-icon-share', elementClass: BlocksIconShare });\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { BlocksElement } from '../../BlocksElement';\nimport styles from '../icon.styles';\n/**\n * Star component\n * @csspart base- The component's base wrapper\n */\nexport class BlocksIconStar extends BlocksElement {\n static { this.styles = styles; }\n connectedCallback() {\n super.connectedCallback();\n this.classList.add('cat-icon');\n }\n render() {\n const componentClassName = this.componentClassNames('cat-c-icon', {\n 'cat-c-icon--sm': this.size === 'sm',\n 'cat-c-icon--lg': this.size === 'lg',\n 'cat-c-icon--xl': this.size === 'xl',\n 'cat-c-icon--content-strong': this.color === 'content-strong',\n 'cat-c-icon--knockout': this.color === 'knockout',\n 'cat-c-icon--knockout-brand': this.color === 'knockout-brand',\n 'cat-c-icon--information': this.color === 'information',\n 'cat-c-icon--success': this.color === 'success',\n 'cat-c-icon--warning': this.color === 'warning',\n 'cat-c-icon--error': this.color === 'error'\n });\n return html `\n \n \n \n \n \n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksIconStar.prototype, \"color\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconStar.prototype, \"iconTitle\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconStar.prototype, \"size\", void 0);\nif (customElements.get('cat-icon-star') === undefined) {\n customElements.define('cat-icon-star', BlocksIconStar);\n}\n","import { BlocksIconStar } from 'blocks-nextjs/blocks-web-components/components/icon/icons/star';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconStar = createComponent({ react: React, tagName: 'cat-icon-star', elementClass: BlocksIconStar });\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { BlocksElement } from '../../BlocksElement';\nimport styles from '../icon.styles';\n/**\n * StarFilled icon component\n * @csspart base- The component's base wrapper\n */\nexport class BlocksIconStarFilled extends BlocksElement {\n static { this.styles = styles; }\n connectedCallback() {\n super.connectedCallback();\n this.classList.add('cat-icon');\n }\n render() {\n const componentClassName = this.componentClassNames('cat-c-icon', {\n 'cat-c-icon--sm': this.size === 'sm',\n 'cat-c-icon--lg': this.size === 'lg',\n 'cat-c-icon--xl': this.size === 'xl',\n 'cat-c-icon--content-strong': this.color === 'content-strong',\n 'cat-c-icon--knockout': this.color === 'knockout',\n 'cat-c-icon--knockout-brand': this.color === 'knockout-brand',\n 'cat-c-icon--information': this.color === 'information',\n 'cat-c-icon--success': this.color === 'success',\n 'cat-c-icon--warning': this.color === 'warning',\n 'cat-c-icon--error': this.color === 'error'\n });\n return html `\n \n \n \n \n \n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksIconStarFilled.prototype, \"color\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconStarFilled.prototype, \"iconTitle\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconStarFilled.prototype, \"size\", void 0);\nif (customElements.get('cat-icon-star-filled') === undefined) {\n customElements.define('cat-icon-star-filled', BlocksIconStarFilled);\n}\n","import { BlocksIconStarFilled } from 'blocks-nextjs/blocks-web-components/components/icon/icons/star-filled';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconStarFilled = createComponent({\n react: React,\n tagName: 'cat-icon-star-filled',\n elementClass: BlocksIconStarFilled\n});\n","import { BlocksIconWarningTriangleFilled } from 'blocks-nextjs/blocks-web-components/components/icon/icons/warning-triangle-filled';\nimport React from 'react';\nimport { createComponent } from '../../CustomWrapper/CustomWrapper';\nexport const CatIconWarningTriangleFilled = createComponent({\n react: React,\n tagName: 'cat-icon-warning-triangle-filled',\n elementClass: BlocksIconWarningTriangleFilled\n});\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { BlocksElement } from '../../BlocksElement';\nimport styles from '../icon.styles';\n/**\n * DocumentFilled component\n * @csspart base- The component's base wrapper\n */\nexport class BlocksIconDocumentFilled extends BlocksElement {\n static { this.styles = styles; }\n connectedCallback() {\n super.connectedCallback();\n this.classList.add('cat-icon');\n }\n render() {\n const componentClassName = this.componentClassNames('cat-c-icon', {\n 'cat-c-icon--sm': this.size === 'sm',\n 'cat-c-icon--lg': this.size === 'lg',\n 'cat-c-icon--xl': this.size === 'xl',\n 'cat-c-icon--content-strong': this.color === 'content-strong',\n 'cat-c-icon--knockout': this.color === 'knockout',\n 'cat-c-icon--knockout-brand': this.color === 'knockout-brand',\n 'cat-c-icon--information': this.color === 'information',\n 'cat-c-icon--success': this.color === 'success',\n 'cat-c-icon--warning': this.color === 'warning',\n 'cat-c-icon--error': this.color === 'error'\n });\n return html `\n \n \n \n \n \n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksIconDocumentFilled.prototype, \"color\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconDocumentFilled.prototype, \"iconTitle\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconDocumentFilled.prototype, \"size\", void 0);\nif (customElements.get('cat-icon-document-filled') === undefined) {\n customElements.define('cat-icon-document-filled', BlocksIconDocumentFilled);\n}\n","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { BlocksElement } from '../../BlocksElement';\nimport styles from '../icon.styles';\n/**\n * FileUpload component\n * @csspart base- The component's base wrapper\n */\nexport class BlocksIconFileUpload extends BlocksElement {\n static { this.styles = styles; }\n connectedCallback() {\n super.connectedCallback();\n this.classList.add('cat-icon');\n }\n render() {\n const componentClassName = this.componentClassNames('cat-c-icon', {\n 'cat-c-icon--sm': this.size === 'sm',\n 'cat-c-icon--lg': this.size === 'lg',\n 'cat-c-icon--xl': this.size === 'xl',\n 'cat-c-icon--content-strong': this.color === 'content-strong',\n 'cat-c-icon--knockout': this.color === 'knockout',\n 'cat-c-icon--knockout-brand': this.color === 'knockout-brand',\n 'cat-c-icon--information': this.color === 'information',\n 'cat-c-icon--success': this.color === 'success',\n 'cat-c-icon--warning': this.color === 'warning',\n 'cat-c-icon--error': this.color === 'error'\n });\n return html `\n \n \n \n \n \n \n `;\n }\n}\n__decorate([\n property({ type: String })\n], BlocksIconFileUpload.prototype, \"color\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconFileUpload.prototype, \"iconTitle\", void 0);\n__decorate([\n property({ type: String })\n], BlocksIconFileUpload.prototype, \"size\", void 0);\nif (customElements.get('cat-icon-file-upload') === undefined) {\n customElements.define('cat-icon-file-upload', BlocksIconFileUpload);\n}\n"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","BlocksCombinedInput","BlocksElement","constructor","super","this","startDateLabel","endDateLabel","placeholder","required","size","notation","tooltipShowDelay","tooltipHideDelay","hideLabelTooltip","styles","labelOverflowStartTooltip","_catDateStartInput","shadowRoot","querySelector","labelOverflowEndTooltip","_catDateEndInput","connectedCallback","fieldId","handleOnChange","e","value","dispatch","eventName","detailObj","handleKeyDown","targetInput","focus","ENTER","SPACE","toggleActive","inputs","querySelectorAll","forEach","input","isActive","currentTarget","handleTooltipOpen","enableTooltip","catCalendar","parentElement","hidden","handleTooltipLeave","render","componentClassNames","getExportParts","hideLabel","isReadonly","name","disabled","status","type","String","prototype","Boolean","Number","undefined","customElements","get","define","startOfHour","date","_date","toDate","setMinutes","isSameHour","dateLeft","dateRight","startOfMinute","setSeconds","isSameMinute","setHours","hours","setMilliseconds","milliseconds","minutes","seconds","startOfToday","startOfDay","Date","now","BlocksTimeSelectorList","locale","currentDate","times","timeIncrements","resetTime","is24HourFormat","timeFormat","orientation","timeSelectorLabel","onChanged","selectedTime","format","rawDate","setTimes","todayStart","todayEnd","endOfDay","time","available","timeStart","timeEnd","start","setTime","end","isAfter","isEqual","isBefore","push","addMinutes","selectTime","resetFocus","handleKeypress","DOWN_ARROW","getNextTime","UP_ARROW","getPreviousTime","setTabValue","index","setActiveTime","isActiveTime","_isAvailableEL","setAttribute","firstUpdated","updated","changedProperties","has","setDefaultOptions","updateComplete","splitHour","split","splitMinute","setActiveSeconds","parseInt","setFocusOnTime","_isActiveEL","setInitialTime","focusedTime","updatedTime","splitTimeHour","splitTimeMinutes","isNaN","isAvailable","dateToCheck","setActiveDisabledMinTime","setActiveDisabledMaxTime","disabledMinTime","splitMinHour","splitMinMinute","disabledMaxTime","splitMaxHour","splitMaxMinute","activeTime","element","isFocus","preventDefault","_timeListContainer","resetFocusToFirstTime","isToClearWithTime","setFocussedTime","focusTime","closestListItem","closest","nextAvailableTime","nextElementSibling","closestList","firstAvailableTime","previousAvailableTime","previousElementSibling","lastAvailableTime","Array","from","pop","map","getTime","BlocksDaterangepickerField","isoFormat","cancelLabel","applyLabel","isSmallScreen","isCancelled","dateFormat","multiYear","previousButtonText","nextButtonText","position","isInline","arialabel","disabledSubmit","isPopOverSupported","internals_","attachInternals","autoPositionController","toggleDateRangePicker","showDateRangePicker","dynamicPosition","_startMax","disabledMaxDate","_startMin","disabledMinDate","_endMax","_endMin","_catCombinedInputNotActive","tabIndex","setTooltipDisplay","_catDateStartCalendarPopup","_catDateEndCalendarPopup","setTimeout","selectedStartTime","_catDateStartCalendarTimeList","selectedEndTime","_catDateEndCalendarTimeList","startValue","_catStartCalender","setFocusOnDate","endValue","_catEndCalender","emitPanelOpenEvent","showMonthPopup","handleOnClickOutside","host","Error","didClickInside","composedPath","includes","showFooter","cancelSubmission","hidePopup","removeActiveState","autoUpdatePosition","_catDateCalendarPopup","autoPosition","_catDateInputContainer","onResize","window","innerWidth","formAssociated","_catStartTimeList","_catEndTimeList","form","_catCombinedInputFields","combinedInputElements","inputFieldElements","elements","hasStartAndEndDates","hasDateAndTime","setActiveStartTime","setActiveEndTime","_catCombinedInputActive","filter","el","isPopoverEnabled","_catDateApply","displayStartTooltip","displayEndTooltip","emitPanelCloseEvent","document","addEventListener","disconnectedCallback","removeEventListener","_focusTrap","deactivate","handleCloseKeyDown","focusOnFirstKeypress","removeAttribute","ESCAPE","setTabindexOnCalendar","TAB","handleToggleKeyDown","readonly","showPopover","cleanup","animationFrame","style","display","hidePopover","updateCalendarGrid","convertTime","timeStr","modifier","originalStartValue","originalStartValueRaw","originalStartDateFormatted","startValueRaw","setActiveStartDate","originalStartTime","originalEndValue","originalEndValueRaw","originalEndDateFormatted","endValueRaw","originalEndTime","setActiveEndDate","checkApply","submitForm","dispatchDateRangeEvent","formatStartDate","formatEndDate","formatOriginalStartValue","formatOriginalEndValue","showTimeSelector","start24h","end24h","startDate","combineDateAndTime","toISOString","endDate","time24h","duration","years","months","weeks","days","dateWithMonths","addMonths","dateWithDays","addDays","msToAdd","constructFrom","add","dateUpdateStart","detail","updateGrid","catCalendarElement","focusStartTimeList","dateUpdateEnd","minEndTime","activeDate","availableTime","closeDateRangePickerPanel","timeUpdateStart","timeUpdateEnd","_changedProperties","setEndDate","setStartDate","setStartTime","setEndTime","setFormValue","JSON","stringify","setFocusTrap","calendarPanel","_catCalendarPanel","createFocusTrap","initialFocus","tabbableOptions","getShadowRoot","fallbackFocus","allowOutsideClick","activate","parse","populateEndOutputField","populateStartOutputField","willUpdate","convertedTime","startCalendar","endCalendar","currentStartMonth","navDate","getMonth","currentStartYear","getFullYear","currentEndMonth","currentEndYear","currentStartDate","activeStartMonth","activeStartYear","currentEndDate","activeEndMonth","activeEndYear","minDates","hasFieldNote","fieldNote","errorNote","warningNote","slotNotEmpty","renderLoading","setAriaDescribedBy","ariaDescribedBy","isFullWidth","isLoading","reflect","CatDaterangepickerField","react","tagName","elementClass","events","onBlDateRangeChange","onBlDateRangeOpen","onBlDateRangeClose","BlocksFileUpload","feedback","textConfig","fileFormatErrorText","fileSizeErrorText","uploadingText","dragandDropText","tableFileText","tableStatusText","tableActionText","uploadingActionText","uploadingtime","fileSizeLimit","isSmallTable","isReplace","hideAction","filesState","onDragOver","isDragging","onDragEnd","onFileAction","file","userAction","action","preventDelete","updatedFiles","fileUploadInput","onFileInputChange","fileObjects","DragEvent","dataTransfer","files","apply","uploadedFiles","entries","File","fileSizeError","checkFileSizeError","fileFormatError","checkFileFormatError","fileObj","fileObject","statusText","fileSizeExceeded","actionText","isButtonVariant","variant","oldValue","propName","uploadFiles","updateFiles","findIndex","fileData","fileId","formData","FormData","append","getFileSizeBasedOnOS","fileSize","navigator","appVersion","indexOf","openFileExplorer","activeState","closeFileExplorer","fileSizeBasedOnOS","accept","acceptTypesArray","Set","toLowerCase","fileMimeType","fileMimeTypeRoot","shift","fileMimeTypeWildcard","fileExtArr","fileExt","handleUploadButton","click","failedCompactTpl","failedTabularTpl","label","multiple","description","CatFileUpload","onBlFileAdd","onBlFileAction","BlocksIconAddCircle","classList","componentClassName","color","iconTitle","CatIconAddCircle","BlocksIconCopy","CatIconCopy","CatIconDealer","CatIconFileUpload","BlocksIconLock","CatIconLock","BlocksIconPeople","CatIconPeople","BlocksIconShare","CatIconShare","BlocksIconStar","CatIconStar","BlocksIconStarFilled","CatIconStarFilled","CatIconWarningTriangleFilled","BlocksIconDocumentFilled","BlocksIconFileUpload"],"sourceRoot":""}