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A6SXC,cAAe,CACbC,gBAAgB,IAIMC,IACtBC,GAAmB,IAAA5B,GAAgBkB,E","sources":["webpack://frontend/./node_modules/@vonage/vivid/shared/definition13.js"],"sourcesContent":["import { a as attr, F as FoundationElement, h as html, r as registerFactory } from './index.js';\nimport { C as CalendarEvent } from './calendar-event.js';\nimport { b as _has, _ as _curry1, a as _curry2 } from './_has.js';\nimport { r as repeat } from './repeat.js';\n\n/**\n * Tests whether or not an object is an array.\n *\n * @private\n * @param {*} val The object to test.\n * @return {Boolean} `true` if `val` is an array, `false` otherwise.\n * @example\n *\n * _isArray([]); //=> true\n * _isArray(null); //=> false\n * _isArray({}); //=> false\n */\nconst _isArray = Array.isArray || function _isArray(val) {\n return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';\n};\n\nfunction _isString(x) {\n return Object.prototype.toString.call(x) === '[object String]';\n}\n\nvar toString = Object.prototype.toString;\n\nvar _isArguments =\n/*#__PURE__*/\nfunction () {\n return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {\n return toString.call(x) === '[object Arguments]';\n } : function _isArguments(x) {\n return _has('callee', x);\n };\n}();\n\nvar hasEnumBug = !\n/*#__PURE__*/\n{\n toString: null\n}.propertyIsEnumerable('toString');\nvar nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug\n\nvar hasArgsEnumBug =\n/*#__PURE__*/\nfunction () {\n\n return arguments.propertyIsEnumerable('length');\n}();\n\nvar contains = function contains(list, item) {\n var idx = 0;\n\n while (idx < list.length) {\n if (list[idx] === item) {\n return true;\n }\n\n idx += 1;\n }\n\n return false;\n};\n/**\n * Returns a list containing the names of all the enumerable own properties of\n * the supplied object.\n * Note that the order of the output array is not guaranteed to be consistent\n * across different JS platforms.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Object\n * @sig {k: v} -> [k]\n * @param {Object} obj The object to extract properties from\n * @return {Array} An array of the object's own properties.\n * @see R.keysIn, R.values, R.toPairs\n * @example\n *\n * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']\n */\n\n\nvar keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?\n/*#__PURE__*/\n_curry1(function keys(obj) {\n return Object(obj) !== obj ? [] : Object.keys(obj);\n}) :\n/*#__PURE__*/\n_curry1(function keys(obj) {\n if (Object(obj) !== obj) {\n return [];\n }\n\n var prop, nIdx;\n var ks = [];\n\n var checkArgsLength = hasArgsEnumBug && _isArguments(obj);\n\n for (prop in obj) {\n if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {\n ks[ks.length] = prop;\n }\n }\n\n if (hasEnumBug) {\n nIdx = nonEnumerableProps.length - 1;\n\n while (nIdx >= 0) {\n prop = nonEnumerableProps[nIdx];\n\n if (_has(prop, obj) && !contains(ks, prop)) {\n ks[ks.length] = prop;\n }\n\n nIdx -= 1;\n }\n }\n\n return ks;\n});\n\n/**\n * Gives a single-word string description of the (native) type of a value,\n * returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not\n * attempt to distinguish user Object types any further, reporting them all as\n * 'Object'.\n *\n * @func\n * @memberOf R\n * @since v0.8.0\n * @category Type\n * @sig (* -> {*}) -> String\n * @param {*} val The value to test\n * @return {String}\n * @example\n *\n * R.type({}); //=> \"Object\"\n * R.type(1); //=> \"Number\"\n * R.type(false); //=> \"Boolean\"\n * R.type('s'); //=> \"String\"\n * R.type(null); //=> \"Null\"\n * R.type([]); //=> \"Array\"\n * R.type(/[A-z]/); //=> \"RegExp\"\n * R.type(() => {}); //=> \"Function\"\n * R.type(undefined); //=> \"Undefined\"\n */\n\nvar type =\n/*#__PURE__*/\n_curry1(function type(val) {\n return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);\n});\n\n/**\n * A function that returns the `!` of its argument. It will return `true` when\n * passed false-y value, and `false` when passed a truth-y one.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Logic\n * @sig * -> Boolean\n * @param {*} a any value\n * @return {Boolean} the logical inverse of passed argument.\n * @see R.complement\n * @example\n *\n * R.not(true); //=> false\n * R.not(false); //=> true\n * R.not(0); //=> true\n * R.not(1); //=> false\n */\n\nvar not =\n/*#__PURE__*/\n_curry1(function not(a) {\n return !a;\n});\n\nfunction _arrayFromIterator(iter) {\n var list = [];\n var next;\n\n while (!(next = iter.next()).done) {\n list.push(next.value);\n }\n\n return list;\n}\n\nfunction _includesWith(pred, x, list) {\n var idx = 0;\n var len = list.length;\n\n while (idx < len) {\n if (pred(x, list[idx])) {\n return true;\n }\n\n idx += 1;\n }\n\n return false;\n}\n\nfunction _functionName(f) {\n // String(x => x) evaluates to \"x => x\", so the pattern may not match.\n var match = String(f).match(/^function (\\w*)/);\n return match == null ? '' : match[1];\n}\n\n// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\nfunction _objectIs(a, b) {\n // SameValue algorithm\n if (a === b) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return a !== 0 || 1 / a === 1 / b;\n } else {\n // Step 6.a: NaN == NaN\n return a !== a && b !== b;\n }\n}\n\nconst _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;\n\n/**\n * private _uniqContentEquals function.\n * That function is checking equality of 2 iterator contents with 2 assumptions\n * - iterators lengths are the same\n * - iterators values are unique\n *\n * false-positive result will be returned for comparison of, e.g.\n * - [1,2,3] and [1,2,3,4]\n * - [1,1,1] and [1,2,3]\n * */\n\nfunction _uniqContentEquals(aIterator, bIterator, stackA, stackB) {\n var a = _arrayFromIterator(aIterator);\n\n var b = _arrayFromIterator(bIterator);\n\n function eq(_a, _b) {\n return _equals(_a, _b, stackA.slice(), stackB.slice());\n } // if *a* array contains any element that is not included in *b*\n\n\n return !_includesWith(function (b, aItem) {\n return !_includesWith(eq, aItem, b);\n }, b, a);\n}\n\nfunction _equals(a, b, stackA, stackB) {\n if (_objectIs$1(a, b)) {\n return true;\n }\n\n var typeA = type(a);\n\n if (typeA !== type(b)) {\n return false;\n }\n\n if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {\n return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);\n }\n\n if (typeof a.equals === 'function' || typeof b.equals === 'function') {\n return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);\n }\n\n switch (typeA) {\n case 'Arguments':\n case 'Array':\n case 'Object':\n if (typeof a.constructor === 'function' && _functionName(a.constructor) === 'Promise') {\n return a === b;\n }\n\n break;\n\n case 'Boolean':\n case 'Number':\n case 'String':\n if (!(typeof a === typeof b && _objectIs$1(a.valueOf(), b.valueOf()))) {\n return false;\n }\n\n break;\n\n case 'Date':\n if (!_objectIs$1(a.valueOf(), b.valueOf())) {\n return false;\n }\n\n break;\n\n case 'Error':\n return a.name === b.name && a.message === b.message;\n\n case 'RegExp':\n if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {\n return false;\n }\n\n break;\n }\n\n var idx = stackA.length - 1;\n\n while (idx >= 0) {\n if (stackA[idx] === a) {\n return stackB[idx] === b;\n }\n\n idx -= 1;\n }\n\n switch (typeA) {\n case 'Map':\n if (a.size !== b.size) {\n return false;\n }\n\n return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));\n\n case 'Set':\n if (a.size !== b.size) {\n return false;\n }\n\n return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));\n\n case 'Arguments':\n case 'Array':\n case 'Object':\n case 'Boolean':\n case 'Number':\n case 'String':\n case 'Date':\n case 'Error':\n case 'RegExp':\n case 'Int8Array':\n case 'Uint8Array':\n case 'Uint8ClampedArray':\n case 'Int16Array':\n case 'Uint16Array':\n case 'Int32Array':\n case 'Uint32Array':\n case 'Float32Array':\n case 'Float64Array':\n case 'ArrayBuffer':\n break;\n\n default:\n // Values of other types are only equal if identical.\n return false;\n }\n\n var keysA = keys(a);\n\n if (keysA.length !== keys(b).length) {\n return false;\n }\n\n var extendedStackA = stackA.concat([a]);\n var extendedStackB = stackB.concat([b]);\n idx = keysA.length - 1;\n\n while (idx >= 0) {\n var key = keysA[idx];\n\n if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {\n return false;\n }\n\n idx -= 1;\n }\n\n return true;\n}\n\n/**\n * Returns `true` if its arguments are equivalent, `false` otherwise. Handles\n * cyclical data structures.\n *\n * Dispatches symmetrically to the `equals` methods of both arguments, if\n * present.\n *\n * @func\n * @memberOf R\n * @since v0.15.0\n * @category Relation\n * @sig a -> b -> Boolean\n * @param {*} a\n * @param {*} b\n * @return {Boolean}\n * @example\n *\n * R.equals(1, 1); //=> true\n * R.equals(1, '1'); //=> false\n * R.equals([1, 2, 3], [1, 2, 3]); //=> true\n *\n * const a = {}; a.v = a;\n * const b = {}; b.v = b;\n * R.equals(a, b); //=> true\n */\n\nvar equals =\n/*#__PURE__*/\n_curry2(function equals(a, b) {\n return _equals(a, b, [], []);\n});\n\nfunction _isObject(x) {\n return Object.prototype.toString.call(x) === '[object Object]';\n}\n\n/**\n * Tests whether or not an object is a typed array.\n *\n * @private\n * @param {*} val The object to test.\n * @return {Boolean} `true` if `val` is a typed array, `false` otherwise.\n * @example\n *\n * _isTypedArray(new Uint8Array([])); //=> true\n * _isTypedArray(new Float32Array([])); //=> true\n * _isTypedArray([]); //=> false\n * _isTypedArray(null); //=> false\n * _isTypedArray({}); //=> false\n */\nfunction _isTypedArray(val) {\n var type = Object.prototype.toString.call(val);\n return type === '[object Uint8ClampedArray]' || type === '[object Int8Array]' || type === '[object Uint8Array]' || type === '[object Int16Array]' || type === '[object Uint16Array]' || type === '[object Int32Array]' || type === '[object Uint32Array]' || type === '[object Float32Array]' || type === '[object Float64Array]' || type === '[object BigInt64Array]' || type === '[object BigUint64Array]';\n}\n\n/**\n * Returns the empty value of its argument's type. Ramda defines the empty\n * value of Array (`[]`), Object (`{}`), String (`''`),\n * TypedArray (`Uint8Array []`, `Float32Array []`, etc), and Arguments. Other\n * types are supported if they define `.empty`,\n * `.prototype.empty` or implement the\n * [FantasyLand Monoid spec](https://github.com/fantasyland/fantasy-land#monoid).\n *\n * Dispatches to the `empty` method of the first argument, if present.\n *\n * @func\n * @memberOf R\n * @since v0.3.0\n * @category Function\n * @sig a -> a\n * @param {*} x\n * @return {*}\n * @example\n *\n * R.empty(Just(42)); //=> Nothing()\n * R.empty([1, 2, 3]); //=> []\n * R.empty('unicorns'); //=> ''\n * R.empty({x: 1, y: 2}); //=> {}\n * R.empty(Uint8Array.from('123')); //=> Uint8Array []\n */\n\nvar empty =\n/*#__PURE__*/\n_curry1(function empty(x) {\n return x != null && typeof x['fantasy-land/empty'] === 'function' ? x['fantasy-land/empty']() : x != null && x.constructor != null && typeof x.constructor['fantasy-land/empty'] === 'function' ? x.constructor['fantasy-land/empty']() : x != null && typeof x.empty === 'function' ? x.empty() : x != null && x.constructor != null && typeof x.constructor.empty === 'function' ? x.constructor.empty() : _isArray(x) ? [] : _isString(x) ? '' : _isObject(x) ? {} : _isArguments(x) ? function () {\n return arguments;\n }() : _isTypedArray(x) ? x.constructor.from('') : void 0 // else\n ;\n});\n\n/**\n * Returns `true` if the given value is its type's empty value; `false`\n * otherwise.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Logic\n * @sig a -> Boolean\n * @param {*} x\n * @return {Boolean}\n * @see R.empty\n * @example\n *\n * R.isEmpty([1, 2, 3]); //=> false\n * R.isEmpty([]); //=> true\n * R.isEmpty(''); //=> true\n * R.isEmpty(null); //=> false\n * R.isEmpty({}); //=> true\n * R.isEmpty({length: 0}); //=> false\n * R.isEmpty(Uint8Array.from('')); //=> true\n */\n\nvar isEmpty =\n/*#__PURE__*/\n_curry1(function isEmpty(x) {\n return x != null && equals(x, empty(x));\n});\n\nconst styles = \"ol{padding:0;margin:0;list-style:none}[role=grid i]{position:relative;z-index:0;display:grid;margin:auto;grid-template-areas:\\\". column-headers\\\" \\\"row-headers calendar\\\";grid-template-columns:min-content auto;inline-size:max(100%,500px);min-inline-size:880px}.row-headers{display:grid;grid-area:row-headers;grid-template-rows:repeat(24,1fr);margin-inline-end:2px}.row-headers>[role=rowheader i]{display:flex;align-items:flex-end;justify-content:flex-end}.row-headers>[role=rowheader i]>time{font:var(--vvd-typography-base-condensed);font-size:small;line-height:1;text-transform:uppercase;white-space:nowrap}.calendar-row{display:contents}.calendar-grid-presentation{display:grid;overflow:hidden;border-radius:8px;background:var(--vvd-color-surface-2dp);counter-reset:listing;filter:var(--vvd-shadow-surface-2dp);gap:1px;grid-area:calendar;grid-auto-flow:column;grid-template:repeat(24,1fr)/repeat(7,1fr)}.hours{display:contents}.hours>[role=listitem i]{position:relative;grid-column:1/8;grid-row:var(--row);min-block-size:calc(1px*(48 + 4*clamp(-1,var(--vvd-size-density, 0),2)));pointer-events:none}.hours>[role=listitem i]:not(:first-child):after{position:absolute;border-block-end:var(--vvd-color-neutral-100) 1px solid;content:\\\"\\\";inline-size:100%;margin-block-start:-1px}.hours>[role=listitem i]:nth-child(24n+1){--row: 1}.hours>[role=listitem i]:nth-child(24n+2){--row: 2}.hours>[role=listitem i]:nth-child(24n+3){--row: 3}.hours>[role=listitem i]:nth-child(24n+4){--row: 4}.hours>[role=listitem i]:nth-child(24n+5){--row: 5}.hours>[role=listitem i]:nth-child(24n+6){--row: 6}.hours>[role=listitem i]:nth-child(24n+7){--row: 7}.hours>[role=listitem i]:nth-child(24n+8){--row: 8}.hours>[role=listitem i]:nth-child(24n+9){--row: 9}.hours>[role=listitem i]:nth-child(24n+10){--row: 10}.hours>[role=listitem i]:nth-child(24n+11){--row: 11}.hours>[role=listitem i]:nth-child(24n+12){--row: 12}.hours>[role=listitem i]:nth-child(24n+13){--row: 13}.hours>[role=listitem i]:nth-child(24n+14){--row: 14}.hours>[role=listitem i]:nth-child(24n+15){--row: 15}.hours>[role=listitem i]:nth-child(24n+16){--row: 16}.hours>[role=listitem i]:nth-child(24n+17){--row: 17}.hours>[role=listitem i]:nth-child(24n+18){--row: 18}.hours>[role=listitem i]:nth-child(24n+19){--row: 19}.hours>[role=listitem i]:nth-child(24n+20){--row: 20}.hours>[role=listitem i]:nth-child(24n+21){--row: 21}.hours>[role=listitem i]:nth-child(24n+22){--row: 22}.hours>[role=listitem i]:nth-child(24n+23){--row: 23}.hours>[role=listitem i]:nth-child(24n+24){--row: 24}[role=gridcell i]{display:grid;gap:1px;grid-auto-flow:column}[role=gridcell i],[role=columnheader i],[role=columnheader i] [role=button i]{position:relative}[role=gridcell i]:before,[role=columnheader i]:before,[role=columnheader i] [role=button i]:before{position:absolute;z-index:-1;background-color:var(--vvd-color-information-400);content:\\\"\\\";inset:0}[role=gridcell i]:focus,[role=columnheader i]:focus,[role=columnheader i] [role=button i]:focus{outline:none}[role=gridcell i]:not(:focus-visible):before,[role=columnheader i]:not(:focus-visible):before,[role=columnheader i] [role=button i]:not(:focus-visible):before{display:none}.columns{display:contents}.columns>[role=gridcell i]{position:relative;grid-column:var(--column);grid-row:1/25}.columns>[role=gridcell i]:nth-child(1){--column: 1}.columns>[role=gridcell i]:nth-child(2){--column: 2}.columns>[role=gridcell i]:nth-child(3){--column: 3}.columns>[role=gridcell i]:nth-child(4){--column: 4}.columns>[role=gridcell i]:nth-child(5){--column: 5}.columns>[role=gridcell i]:nth-child(6){--column: 6}.columns>[role=gridcell i]:nth-child(7){--column: 7}.columns>[role=gridcell i]:not(:first-child):after{position:absolute;block-size:100%;border-inline-end:var(--vvd-color-neutral-100) 1px solid;content:\\\"\\\";margin-inline-start:-1px}.column-headers{display:grid;grid-area:column-headers;grid-template-columns:repeat(7,1fr)}.column-headers [role=columnheader i] h2{display:grid;align-items:baseline;margin:0;font:var(--vvd-typography-heading-4);grid-template-columns:1fr auto 1fr}.column-headers [role=columnheader i] h2>em{font:inherit;inline-size:min-content;inset-inline-start:0}.column-headers [role=columnheader i] h2>small{font:var(--vvd-typography-base-condensed);text-transform:uppercase}\";\n\nconst ARROW_UP = \"ArrowUp\";\nconst ARROW_RIGHT = \"ArrowRight\";\nconst ARROW_DOWN = \"ArrowDown\";\nconst ARROW_LEFT = \"ArrowLeft\";\nfunction isCellOrHeader(el) {\n return el instanceof HTMLElement && (el.matches('[role=\"gridcell\"i]') || el.matches('[role=\"columnheader\"i]'));\n}\nconst getCellOrHeader = (f) => f.matches('[role=\"columnheader\"i]') ? '[role=\"gridcell\"i]' : '[role=\"columnheader\"i]';\nfunction getNextFocusableGridElement(key, activeElement) {\n if (activeElement.parentNode instanceof HTMLElement) {\n switch (key) {\n case ARROW_RIGHT:\n return activeElement.nextElementSibling || activeElement.parentNode.firstElementChild;\n case ARROW_LEFT:\n return activeElement.previousElementSibling || activeElement.parentNode.lastElementChild;\n case ARROW_UP:\n case ARROW_DOWN: {\n const { children } = activeElement.parentNode;\n const i = Array.from(children).indexOf(activeElement);\n return this.shadowRoot.querySelector(\n `${getCellOrHeader(activeElement)}:nth-child(${i + 1})`\n );\n }\n }\n }\n}\nfunction getHeaderDescendantGridCell(key, activeElement) {\n if (key !== ARROW_DOWN) {\n return;\n }\n const header = activeElement.closest('[role=\"columnheader\"i]');\n const columnHeaders = this.shadowRoot.querySelectorAll(\n '[role=\"columnheader\"i]'\n );\n const i = Array.from(columnHeaders).indexOf(header);\n return this.shadowRoot.querySelector(\n `[role=\"gridcell\"i]:nth-child(${i + 1})`\n );\n}\n\nfunction getDay(el) {\n const cellOrHeader = el.closest('[role=\"gridcell\"i], [role=\"columnheader\"i]');\n if (cellOrHeader) {\n const { parentElement } = cellOrHeader;\n if (parentElement) {\n return parentElement.children && Array.from(parentElement.children).indexOf(cellOrHeader);\n }\n }\n}\nfunction getHour(e, el, hours) {\n const rowHeaderOrCell = el.closest(\n '[role=\"rowheader\"], [role=\"gridcell\"i]'\n );\n if (rowHeaderOrCell) {\n const DOMRect = rowHeaderOrCell.getBoundingClientRect();\n const offsetY = e.clientY - DOMRect.y;\n const hourHeight = DOMRect.height / hours;\n const hour = offsetY / hourHeight;\n return Math.round((hour + Number.EPSILON) * 100) / 100;\n }\n}\nconst getEventContext = function(e) {\n if (!(e instanceof KeyboardEvent || e instanceof MouseEvent)) {\n throw new Error(\n \"Invalid event. Event must be instance of KeyboardEvent or MouseEvent\"\n );\n }\n const [el] = e.composedPath();\n if (!(el && el instanceof HTMLElement && this.shadowRoot.contains(el))) {\n throw new Error(\n \"Invalid event. Event must contain a target object which is a direct descendant of calendar\"\n );\n }\n const day = getDay(el);\n let hour;\n if (e instanceof MouseEvent) {\n hour = getHour(e, el, this._hours);\n }\n const context = {\n ...day != void 0 && { day },\n ...hour != void 0 && { hour }\n };\n return not(isEmpty(context)) ? context : null;\n};\n\nvar __defProp = Object.defineProperty;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = void 0 ;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (decorator(target, key, result) ) || result;\n if (result)\n __defProp(target, key, result);\n return result;\n};\nclass Calendar extends FoundationElement {\n constructor() {\n super(...arguments);\n this.hour12 = false;\n /**\n * @internal\n */\n this._hours = 24;\n /**\n * @internal\n */\n this._days = 7;\n /**\n * @internal\n */\n this.hoursAsDatetime = Array.from({ length: this._hours - 1 }).fill(new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0))).map((d, i) => new Date(d.setHours(++i)));\n /**\n * @param dateArr - array of dates. requires at least 1 date to be set within the array\n * @returns array of incremental dates from the first date in the array\n * @internal\n */\n this._generateDaysArr = (dateArr) => {\n if (dateArr.length == this._days) {\n return dateArr;\n }\n const lastDate = new Date(dateArr[dateArr.length - 1]);\n lastDate.setDate(lastDate.getDate() + 1);\n return this._generateDaysArr([...dateArr, lastDate]);\n };\n /**\n * Fire an event\n *\n * @param calendarEvent - event name\n * @returns boolean - return true\n */\n this.getEventContext = getEventContext;\n }\n get #activeCalendarEvent() {\n const { activeElement } = document;\n return activeElement instanceof CalendarEvent ? activeElement : null;\n }\n getCalendarEventContainingCell(calendarEvent) {\n const slotName = calendarEvent.getAttribute(\"slot\");\n const gridCell = this.shadowRoot.querySelector(\n `slot[name=\"${slotName}\"i]`\n );\n return gridCell.parentElement;\n }\n arrowKeysInteractions(key) {\n const { activeElement } = this.shadowRoot;\n let focusNext;\n if (isCellOrHeader(activeElement)) {\n focusNext = getNextFocusableGridElement.call(this, key, activeElement);\n } else if (this.#activeCalendarEvent) {\n focusNext = this.getCalendarEventContainingCell(\n this.#activeCalendarEvent\n );\n } else if (activeElement?.matches('em[role=\"button\"i]')) {\n focusNext = getHeaderDescendantGridCell.call(\n this,\n key,\n activeElement\n );\n } else {\n focusNext = this.shadowRoot.querySelector(\n '[role=\"columnheader\"i]'\n );\n }\n this.activateElement(focusNext);\n }\n activateElement(el) {\n const onBlur = ({ target }) => target.setAttribute(\"tabindex\", \"-1\");\n el?.addEventListener(\"blur\", onBlur, { once: true });\n el?.setAttribute(\"tabindex\", \"0\");\n el?.focus();\n }\n onKeydown({ key }) {\n const isArrow = [ARROW_UP, ARROW_RIGHT, ARROW_DOWN, ARROW_LEFT].some(\n (predefinedKey) => predefinedKey == key\n );\n if (isArrow) {\n this.arrowKeysInteractions(key);\n }\n return !isArrow;\n }\n}\n__decorateClass([\n attr\n], Calendar.prototype, \"datetime\");\n__decorateClass([\n attr({ attribute: \"start-day\" })\n], Calendar.prototype, \"startDay\");\n__decorateClass([\n attr\n], Calendar.prototype, \"locales\");\n__decorateClass([\n attr({ mode: \"boolean\" })\n], Calendar.prototype, \"hour12\");\n\nfunction getValidDateString(date) {\n const twoDigit = (num) => `0${num}`.slice(-2);\n return `${date.getFullYear()}-${twoDigit(date.getMonth() + 1)}-${twoDigit(\n date.getDate()\n )}`;\n}\nconst weekdaysMap = /* @__PURE__ */ new Map([\n [\"sunday\", 0],\n [\"monday\", 1]\n]);\nfunction getFirstDateOfTheWeek(date = /* @__PURE__ */ new Date(), startDay) {\n date = new Date(date);\n let num = weekdaysMap.get(startDay);\n num ??= 1;\n const day = date.getDate() - (date.getDay() + 7 - num) % 7;\n return new Date(date.setDate(day));\n}\n\nconst HoursTemplate = () => {\n return html`
\n\t\t${repeat(\n (x) => x.hoursAsDatetime,\n html`\n\t\t\t\t new Intl.DateTimeFormat(c.parent.locales, {\n hour: \"numeric\",\n minute: \"numeric\",\n hour12: false\n }).format(x)}\"\n\t\t\t\t>\n\t\t\t\t\t${(x, c) => new Intl.DateTimeFormat(c.parent.locales, {\n hour: \"numeric\",\n hour12: c.parent.hour12\n }).format(x)}\n\t\t\t\t\n\t\t\t`\n )}\n\t
`;\n};\nconst DaysTemplate = () => {\n return html`
\n\t\t${repeat(\n (x) => x._generateDaysArr([getFirstDateOfTheWeek(x.datetime, x.startDay)]),\n html`
\n\t\t\t\t\n\t\t\t
`\n )}\n\t
`;\n};\nconst ColumnTemplate = html`\n\t
\n\t\t c.index}\">\n\t
\n`;\nconst CalendarTemplate = () => html`\n\t
x.onKeydown(c.event)}>\n\t\t${DaysTemplate}\n\t\t
\n\t\t\t${HoursTemplate}\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t${repeat(\n (x) => Array.from({ length: x.hoursAsDatetime.length + 1 }),\n html`
`\n)}\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t${repeat((x) => Array.from(Array(x._days)), ColumnTemplate, {\n positioning: true\n})}\n\t\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t
\n`;\n\nconst calendarDefinition = Calendar.compose(\n {\n baseName: \"calendar\",\n template: CalendarTemplate,\n styles,\n shadowOptions: {\n delegatesFocus: true\n }\n }\n);\nconst calendarRegistries = [calendarDefinition()];\nconst registerCalendar = registerFactory(calendarRegistries);\n\nexport { calendarRegistries as a, calendarDefinition as c, registerCalendar as r };\n"],"names":["_isArray","Array","isArray","val","length","Object","prototype","toString","call","_isArguments","arguments","x","hasEnumBug","propertyIsEnumerable","nonEnumerableProps","hasArgsEnumBug","contains","list","item","idx","keys","_","obj","prop","nIdx","ks","checkArgsLength","type","undefined","slice","not","a","_arrayFromIterator","iter","next","done","push","value","_includesWith","pred","len","_objectIs$1","is","b","_uniqContentEquals","aIterator","bIterator","stackA","stackB","eq","_a","_b","_equals","aItem","f","match","typeA","equals","constructor","String","valueOf","name","message","source","global","ignoreCase","multiline","sticky","unicode","size","entries","concat","values","keysA","extendedStackA","extendedStackB","key","empty","_isString","_isObject","_isTypedArray","from","isEmpty","ARROW_UP","ARROW_RIGHT","ARROW_DOWN","ARROW_LEFT","getNextFocusableGridElement","activeElement","parentNode","HTMLElement","nextElementSibling","firstElementChild","previousElementSibling","lastElementChild","children","i","indexOf","this","shadowRoot","querySelector","matches","getHeaderDescendantGridCell","header","closest","columnHeaders","querySelectorAll","getEventContext","e","KeyboardEvent","MouseEvent","Error","el","composedPath","day","cellOrHeader","parentElement","getDay","hour","hours","rowHeaderOrCell","DOMRect","getBoundingClientRect","clientY","y","height","Math","round","Number","EPSILON","getHour","_hours","context","__defProp","defineProperty","__decorateClass","decorators","target","kind","decorator","result","Calendar","F","super","hour12","_days","hoursAsDatetime","fill","Date","setHours","map","d","_generateDaysArr","dateArr","lastDate","setDate","getDate","document","C","getCalendarEventContainingCell","calendarEvent","slotName","getAttribute","arrowKeysInteractions","focusNext","activateElement","addEventListener","setAttribute","once","focus","onKeydown","isArrow","some","predefinedKey","attribute","mode","weekdaysMap","Map","getFirstDateOfTheWeek","date","startDay","num","get","HoursTemplate","h","r","c","Intl","DateTimeFormat","parent","locales","minute","format","DaysTemplate","datetime","twoDigit","getFullYear","getMonth","getValidDateString","weekday","month","ColumnTemplate","index","calendarRegistries","compose","baseName","template","event","positioning","styles","shadowOptions","delegatesFocus","calendarDefinition","registerCalendar"],"sourceRoot":""}