@getflip/swirl-components-react 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/{file-manager.entry.07628dad.js → file-manager.entry.d9f3d27a.js} +1 -1
  2. package/dist/{flip-action-list-item.entry.a330605c.js → flip-action-list-item.entry.1c128d88.js} +1 -1
  3. package/dist/{flip-action-list-section.entry.19091d98.js → flip-action-list-section.entry.334da9b3.js} +1 -1
  4. package/dist/{flip-action-list.entry.319f0192.js → flip-action-list.entry.4c21bf13.js} +1 -1
  5. package/dist/{flip-app-layout_5.entry.ac01996d.js → flip-app-layout_5.entry.347244e3.js} +16 -16
  6. package/dist/{flip-autocomplete.entry.21deedf2.js → flip-autocomplete.entry.cb35664c.js} +1 -1
  7. package/dist/{flip-avatar-group.entry.c2cc9526.js → flip-avatar-group.entry.0d05ee77.js} +1 -1
  8. package/dist/{flip-avatar.entry.7034b888.js → flip-avatar.entry.cda211fb.js} +1 -1
  9. package/dist/{flip-badge.entry.bc935c62.js → flip-badge.entry.dba6f4d0.js} +1 -1
  10. package/dist/{flip-banner.entry.d257835c.js → flip-banner.entry.6e98f9bb.js} +1 -1
  11. package/dist/{flip-button-group.entry.8ce7a3d4.js → flip-button-group.entry.5efab101.js} +1 -1
  12. package/dist/{flip-button.entry.eb07eb8a.js → flip-button.entry.7c41cd24.js} +12 -6
  13. package/dist/{flip-checkbox.entry.43a3832e.js → flip-checkbox.entry.3c5f9edd.js} +10 -7
  14. package/dist/{flip-chip.entry.a479c5b0.js → flip-chip.entry.c5182889.js} +1 -1
  15. package/dist/flip-console-layout.entry.68f44b8d.js +22 -0
  16. package/dist/{flip-date-input.entry.b98d662b.js → flip-date-input.entry.7bb78ec2.js} +6 -4
  17. package/dist/{flip-date-picker_2.entry.c2143459.js → flip-date-picker_2.entry.d02d7d18.js} +105 -103
  18. package/dist/{flip-description-list-item.entry.f1db6930.js → flip-description-list-item.entry.32818cd7.js} +1 -1
  19. package/dist/{flip-description-list.entry.0e214ec2.js → flip-description-list.entry.0024df2f.js} +1 -1
  20. package/dist/{flip-dialog.entry.24f62804.js → flip-dialog.entry.437ef265.js} +1 -1
  21. package/dist/{flip-file-uploader.entry.91b6ca52.js → flip-file-uploader.entry.ea3c7ead.js} +1 -1
  22. package/dist/{flip-file-viewer_7.entry.47a4ee0d.js → flip-file-viewer_7.entry.77ae38e2.js} +2 -2
  23. package/dist/flip-form-control.entry.9a1837a0.js +65 -0
  24. package/dist/{flip-form-group.entry.89c2a7a6.js → flip-form-group.entry.47e4c08c.js} +1 -1
  25. package/dist/flip-heading_2.entry.cb81a796.js +29 -0
  26. package/dist/{flip-icon-add-photo.entry.b5415432.js → flip-icon-add-photo.entry.a8a8d445.js} +1 -1
  27. package/dist/{flip-icon-add_4.entry.b525e436.js → flip-icon-add_4.entry.a1e5683b.js} +1 -1
  28. package/dist/{flip-icon-admin-panel-settings.entry.e416caa2.js → flip-icon-admin-panel-settings.entry.ee4119fe.js} +1 -1
  29. package/dist/{flip-icon-arrow-back.entry.3b24c3c4.js → flip-icon-arrow-back.entry.bba591b0.js} +1 -1
  30. package/dist/{flip-icon-arrow-forward.entry.c3577622.js → flip-icon-arrow-forward.entry.40958632.js} +1 -1
  31. package/dist/{flip-icon-arrow-left_3.entry.0e8c6ffd.js → flip-icon-arrow-left_3.entry.525685ca.js} +1 -1
  32. package/dist/{flip-icon-arrow-right-small.entry.36a480f8.js → flip-icon-arrow-right-small.entry.76263ee0.js} +1 -1
  33. package/dist/{flip-icon-attachment.entry.d44215f9.js → flip-icon-attachment.entry.04d1b5c8.js} +1 -1
  34. package/dist/{flip-icon-cancel_4.entry.90ff0e73.js → flip-icon-cancel_4.entry.a2265e64.js} +1 -1
  35. package/dist/{flip-icon-chat-bubble.entry.b8022c94.js → flip-icon-chat-bubble.entry.22d525da.js} +1 -1
  36. package/dist/{flip-icon-check-circle.entry.b59a0f63.js → flip-icon-check-circle.entry.182067b5.js} +1 -1
  37. package/dist/{flip-icon-check-small_3.entry.fd9f691c.js → flip-icon-check-small_3.entry.8a94f7b3.js} +10 -12
  38. package/dist/{flip-icon-check-strong.entry.cab3e061.js → flip-icon-check-strong.entry.6cb41e4f.js} +1 -1
  39. package/dist/{flip-icon-check.entry.f6231fc3.js → flip-icon-check.entry.a195ea64.js} +1 -1
  40. package/dist/{flip-icon-chevron-left.entry.cd972c85.js → flip-icon-chevron-left.entry.198a6c6e.js} +1 -1
  41. package/dist/{flip-icon-chevron-right.entry.b96a1ead.js → flip-icon-chevron-right.entry.1e2690e6.js} +1 -1
  42. package/dist/{flip-icon-close-small.entry.292f402f.js → flip-icon-close-small.entry.0f507ec2.js} +1 -1
  43. package/dist/{flip-icon-close.entry.a52651ec.js → flip-icon-close.entry.a1c2309c.js} +1 -1
  44. package/dist/{flip-icon-cloud-upload.entry.8c3de009.js → flip-icon-cloud-upload.entry.5327701c.js} +1 -1
  45. package/dist/{flip-icon-comment.entry.68e5198c.js → flip-icon-comment.entry.373b8991.js} +1 -1
  46. package/dist/{flip-icon-copy.entry.ea55301c.js → flip-icon-copy.entry.aec8a13e.js} +1 -1
  47. package/dist/{flip-icon-date-range.entry.78991d34.js → flip-icon-date-range.entry.fea1cf38.js} +1 -1
  48. package/dist/{flip-icon-delete.entry.addf184d.js → flip-icon-delete.entry.b7419f79.js} +1 -1
  49. package/dist/{flip-icon-description.entry.7688a64f.js → flip-icon-description.entry.8d67775f.js} +1 -1
  50. package/dist/{flip-icon-edit.entry.5df4b598.js → flip-icon-edit.entry.0eab03a3.js} +1 -1
  51. package/dist/{flip-icon-emoji-mood.entry.7772f2da.js → flip-icon-emoji-mood.entry.30a3429b.js} +1 -1
  52. package/dist/{flip-icon-emoji-satisfied.entry.3f11571c.js → flip-icon-emoji-satisfied.entry.63a2ae47.js} +1 -1
  53. package/dist/{flip-icon-error_3.entry.6d22b7a2.js → flip-icon-error_3.entry.45a74e75.js} +1 -1
  54. package/dist/{flip-icon-expand-more.entry.2ffa6f0c.js → flip-icon-expand-more.entry.73658fc0.js} +1 -1
  55. package/dist/{flip-icon-file.entry.517a75cc.js → flip-icon-file.entry.f65b6a2f.js} +1 -1
  56. package/dist/{flip-icon-folder-shared.entry.661494c2.js → flip-icon-folder-shared.entry.23738b25.js} +1 -1
  57. package/dist/{flip-icon-group-assign.entry.8131eb64.js → flip-icon-group-assign.entry.636e9998.js} +1 -1
  58. package/dist/{flip-icon-groups-custom.entry.f0086123.js → flip-icon-groups-custom.entry.f5c66a69.js} +1 -1
  59. package/dist/{flip-icon-groups.entry.2e076144.js → flip-icon-groups.entry.8e68cafb.js} +1 -1
  60. package/dist/flip-icon-help.entry.444d15a1.js +15 -0
  61. package/dist/{flip-icon-image.entry.d0482319.js → flip-icon-image.entry.316a344d.js} +1 -1
  62. package/dist/{flip-icon-info.entry.d16cf109.js → flip-icon-info.entry.af65e307.js} +1 -1
  63. package/dist/{flip-icon-inventory.entry.a209dd1e.js → flip-icon-inventory.entry.fbad218e.js} +1 -1
  64. package/dist/{flip-icon-like.entry.631333f8.js → flip-icon-like.entry.7d3db5ae.js} +1 -1
  65. package/dist/{flip-icon-link.entry.b67ce56a.js → flip-icon-link.entry.677e149f.js} +1 -1
  66. package/dist/{flip-icon-lock.entry.13f8fa54.js → flip-icon-lock.entry.11be61be.js} +1 -1
  67. package/dist/{flip-icon-logout.entry.79b91644.js → flip-icon-logout.entry.159c37fa.js} +1 -1
  68. package/dist/{flip-icon-mail.entry.62265dc6.js → flip-icon-mail.entry.d467f931.js} +1 -1
  69. package/dist/{flip-icon-manage-accounts.entry.e821e9df.js → flip-icon-manage-accounts.entry.75c892ba.js} +1 -1
  70. package/dist/{flip-icon-mention.entry.09ac190a.js → flip-icon-mention.entry.dcb88d21.js} +1 -1
  71. package/dist/{flip-icon-message.entry.06934900.js → flip-icon-message.entry.fa72a55b.js} +1 -1
  72. package/dist/{flip-icon-more-horizontal.entry.d1d97d3d.js → flip-icon-more-horizontal.entry.23928cc6.js} +1 -1
  73. package/dist/{flip-icon-more-vertikal.entry.d40ca8b0.js → flip-icon-more-vertikal.entry.f6fe806b.js} +1 -1
  74. package/dist/{flip-icon-notifications-active.entry.c38ee4bb.js → flip-icon-notifications-active.entry.7fb87055.js} +1 -1
  75. package/dist/{flip-icon-notifications-off.entry.02743a47.js → flip-icon-notifications-off.entry.06a2a9b1.js} +1 -1
  76. package/dist/{flip-icon-notifications.entry.4f873bc3.js → flip-icon-notifications.entry.6f36160e.js} +1 -1
  77. package/dist/{flip-icon-open-in-new.entry.cb673e42.js → flip-icon-open-in-new.entry.2b7f8934.js} +1 -1
  78. package/dist/{flip-icon-people-alt.entry.648a37d3.js → flip-icon-people-alt.entry.26e02431.js} +1 -1
  79. package/dist/{flip-icon-person-off.entry.3bc3e587.js → flip-icon-person-off.entry.ed8898eb.js} +1 -1
  80. package/dist/{flip-icon-person.entry.b269287a.js → flip-icon-person.entry.72939e0b.js} +1 -1
  81. package/dist/{flip-icon-phone.entry.89c67938.js → flip-icon-phone.entry.becf1ab9.js} +1 -1
  82. package/dist/{flip-icon-poll.entry.51bd2d6b.js → flip-icon-poll.entry.df7fe3c0.js} +1 -1
  83. package/dist/{flip-icon-print.entry.fcdc08c4.js → flip-icon-print.entry.54999b03.js} +1 -1
  84. package/dist/{flip-icon-recieved.entry.e52d5907.js → flip-icon-recieved.entry.8bc7429e.js} +1 -1
  85. package/dist/{flip-icon-search-strong.entry.f9f740dc.js → flip-icon-search-strong.entry.92a12b0d.js} +1 -1
  86. package/dist/{flip-icon-search.entry.530eb22a.js → flip-icon-search.entry.100c714d.js} +1 -1
  87. package/dist/{flip-icon-send.entry.1a1f6a9f.js → flip-icon-send.entry.13f0dd9b.js} +1 -1
  88. package/dist/{flip-icon-settings.entry.05357f2b.js → flip-icon-settings.entry.c7007498.js} +1 -1
  89. package/dist/{flip-icon-time-filled.entry.7dfefe00.js → flip-icon-time-filled.entry.942f7527.js} +1 -1
  90. package/dist/{flip-icon-time-outlined.entry.b309035e.js → flip-icon-time-outlined.entry.c526b8b2.js} +1 -1
  91. package/dist/{flip-icon-user-assign.entry.b595047d.js → flip-icon-user-assign.entry.a202c672.js} +1 -1
  92. package/dist/{flip-icon-video-camera.entry.08411542.js → flip-icon-video-camera.entry.d50960b4.js} +1 -1
  93. package/dist/{flip-icon-warning.entry.5d5e3ce9.js → flip-icon-warning.entry.3c7f17b0.js} +1 -1
  94. package/dist/{flip-lightbox.entry.d7a5b33f.js → flip-lightbox.entry.d0818fdd.js} +1 -1
  95. package/dist/{flip-link.entry.5415c5a4.js → flip-link.entry.e104fd62.js} +1 -1
  96. package/dist/{flip-list.entry.5ffbd0ef.js → flip-list.entry.62924a6e.js} +1 -1
  97. package/dist/{flip-modal.entry.8f99c357.js → flip-modal.entry.8ee1afb7.js} +1 -1
  98. package/dist/{flip-option-list-section.entry.1c46b667.js → flip-option-list-section.entry.90e3540e.js} +1 -1
  99. package/dist/{flip-pagination.entry.44ba4122.js → flip-pagination.entry.9f1e2b11.js} +1 -1
  100. package/dist/{flip-pdf-reader.entry.4fba8eda.js → flip-pdf-reader.entry.585cacc2.js} +2 -2
  101. package/dist/flip-popover.entry.4358f1ca.js +115 -0
  102. package/dist/{flip-progress-indicator.entry.98300d84.js → flip-progress-indicator.entry.bac7c479.js} +1 -1
  103. package/dist/{flip-radio-group.entry.3a737bc9.js → flip-radio-group.entry.fc16ef00.js} +1 -1
  104. package/dist/{flip-radio.entry.45be80ff.js → flip-radio.entry.c5d1ab8e.js} +8 -5
  105. package/dist/{flip-resource-list-file-item.entry.380c5dbe.js → flip-resource-list-file-item.entry.2e01187c.js} +1 -1
  106. package/dist/{flip-search.entry.6805dae6.js → flip-search.entry.8501c4b3.js} +1 -1
  107. package/dist/flip-select.entry.9e6fe095.js +48 -0
  108. package/dist/{flip-stack.entry.c7c6570a.js → flip-stack.entry.a8ee7905.js} +2 -2
  109. package/dist/{flip-switch.entry.d92b7292.js → flip-switch.entry.9983e3b6.js} +1 -1
  110. package/dist/{flip-tab.entry.e7a1ab1a.js → flip-tab.entry.9d13ff74.js} +1 -1
  111. package/dist/{flip-tabs.entry.16f909d5.js → flip-tabs.entry.1353be6c.js} +1 -1
  112. package/dist/{flip-tag.entry.8622ab43.js → flip-tag.entry.0846fe2b.js} +1 -1
  113. package/dist/{flip-text-input.entry.326d7e72.js → flip-text-input.entry.a6d65510.js} +10 -8
  114. package/dist/{flip-theme-provider.entry.bb6a10e3.js → flip-theme-provider.entry.5d46f8fb.js} +1 -1
  115. package/dist/{flip-thumbnail.entry.7e078ff9.js → flip-thumbnail.entry.11498fad.js} +1 -1
  116. package/dist/{flip-toast-provider.entry.442c1fb8.js → flip-toast-provider.entry.edb50e5e.js} +5 -3
  117. package/dist/{flip-toast.entry.696f6bd2.js → flip-toast.entry.6d97c755.js} +1 -1
  118. package/dist/{flip-tooltip.entry.0c1774a4.js → flip-tooltip.entry.b695fc31.js} +2 -2
  119. package/dist/{flip-video-thumbnail.entry.b6b896d0.js → flip-video-thumbnail.entry.058d8c16.js} +1 -1
  120. package/dist/{flip-visually-hidden.entry.58a19f2e.js → flip-visually-hidden.entry.0197105f.js} +1 -1
  121. package/dist/index.7e0e9911.js +1368 -0
  122. package/dist/stencil-generated/index.d.ts +3 -0
  123. package/dist/swirl-components-react.js +125 -122
  124. package/dist/swirl-components-react.umd.cjs +39 -36
  125. package/package.json +2 -2
  126. package/dist/flip-form-control.entry.82737412.js +0 -58
  127. package/dist/flip-heading.entry.00139b62.js +0 -18
  128. package/dist/flip-popover.entry.0f8879c7.js +0 -99
  129. package/dist/flip-text.entry.a01cf4bc.js +0 -18
  130. package/dist/index.b66ff9f0.js +0 -1365
@@ -1,27 +1,27 @@
1
- import { r as le, c as we, h as x, H as be, F as te } from "./index.b66ff9f0.js";
1
+ import { r as le, c as we, h as x, H as be, F as te } from "./index.7e0e9911.js";
2
2
  import { c as de, a as Ce, g as ke } from "./_commonjsHelpers-44457d8d.ba94af77.js";
3
3
  import "react";
4
4
  import "react-dom";
5
- var _e = de(function(D, $) {
6
- (function(N, W) {
5
+ var _e = de(function(D, b) {
6
+ (function(F, W) {
7
7
  D.exports = W();
8
8
  })(Ce, function() {
9
9
  return function() {
10
- var N = { d: function(r, e) {
10
+ var F = { d: function(r, e) {
11
11
  for (var t in e)
12
- N.o(e, t) && !N.o(r, t) && Object.defineProperty(r, t, { enumerable: !0, get: e[t] });
12
+ F.o(e, t) && !F.o(r, t) && Object.defineProperty(r, t, { enumerable: !0, get: e[t] });
13
13
  }, o: function(r, e) {
14
14
  return Object.prototype.hasOwnProperty.call(r, e);
15
15
  } }, W = {};
16
- N.d(W, { default: function() {
17
- return F;
16
+ F.d(W, { default: function() {
17
+ return H;
18
18
  } });
19
19
  var l = { days: "days", months: "months", years: "years", day: "day", month: "month", year: "year", eventChangeViewDate: "changeViewDate", eventChangeCurrentView: "changeCurrentView", eventChangeFocusDate: "changeFocusDate", eventChangeSelectedDate: "changeSelectedDate", eventChangeTime: "changeTime", eventChangeLastSelectedDate: "changeLastSelectedDate", actionSelectDate: "selectDate", actionUnselectDate: "unselectDate", cssClassWeekend: "-weekend-" }, ie = { classes: "", inline: !1, locale: { days: ["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435", "\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A", "\u0412\u0442\u043E\u0440\u043D\u0438\u043A", "\u0421\u0440\u0435\u0434\u0430", "\u0427\u0435\u0442\u0432\u0435\u0440\u0433", "\u041F\u044F\u0442\u043D\u0438\u0446\u0430", "\u0421\u0443\u0431\u0431\u043E\u0442\u0430"], daysShort: ["\u0412\u043E\u0441", "\u041F\u043E\u043D", "\u0412\u0442\u043E", "\u0421\u0440\u0435", "\u0427\u0435\u0442", "\u041F\u044F\u0442", "\u0421\u0443\u0431"], daysMin: ["\u0412\u0441", "\u041F\u043D", "\u0412\u0442", "\u0421\u0440", "\u0427\u0442", "\u041F\u0442", "\u0421\u0431"], months: ["\u042F\u043D\u0432\u0430\u0440\u044C", "\u0424\u0435\u0432\u0440\u0430\u043B\u044C", "\u041C\u0430\u0440\u0442", "\u0410\u043F\u0440\u0435\u043B\u044C", "\u041C\u0430\u0439", "\u0418\u044E\u043D\u044C", "\u0418\u044E\u043B\u044C", "\u0410\u0432\u0433\u0443\u0441\u0442", "\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C", "\u041E\u043A\u0442\u044F\u0431\u0440\u044C", "\u041D\u043E\u044F\u0431\u0440\u044C", "\u0414\u0435\u043A\u0430\u0431\u0440\u044C"], monthsShort: ["\u042F\u043D\u0432", "\u0424\u0435\u0432", "\u041C\u0430\u0440", "\u0410\u043F\u0440", "\u041C\u0430\u0439", "\u0418\u044E\u043D", "\u0418\u044E\u043B", "\u0410\u0432\u0433", "\u0421\u0435\u043D", "\u041E\u043A\u0442", "\u041D\u043E\u044F", "\u0414\u0435\u043A"], today: "\u0421\u0435\u0433\u043E\u0434\u043D\u044F", clear: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C", dateFormat: "dd.MM.yyyy", timeFormat: "HH:mm", firstDay: 1 }, startDate: new Date(), firstDay: "", weekends: [6, 0], dateFormat: "", altField: "", altFieldDateFormat: "T", toggleSelected: !0, keyboardNav: !0, selectedDates: !1, container: "", isMobile: !1, visible: !1, position: "bottom left", offset: 12, view: l.days, minView: l.days, showOtherMonths: !0, selectOtherMonths: !0, moveToOtherMonthsOnSelect: !0, showOtherYears: !0, selectOtherYears: !0, moveToOtherYearsOnSelect: !0, minDate: "", maxDate: "", disableNavWhenOutOfRange: !0, multipleDates: !1, multipleDatesSeparator: ", ", range: !1, dynamicRange: !0, buttons: !1, monthsField: "monthsShort", showEvent: "focus", autoClose: !1, prevHtml: '<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>', nextHtml: '<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>', navTitles: { days: "MMMM, <i>yyyy</i>", months: "yyyy", years: "yyyy1 - yyyy2" }, timepicker: !1, onlyTimepicker: !1, dateTimeSeparator: " ", timeFormat: "", minHours: 0, maxHours: 24, minMinutes: 0, maxMinutes: 59, hoursStep: 1, minutesStep: 1, onSelect: !1, onChangeViewDate: !1, onChangeView: !1, onRenderCell: !1, onShow: !1, onHide: !1, onClickDayName: !1 };
20
20
  function f(r) {
21
21
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : document;
22
22
  return typeof r == "string" ? e.querySelector(r) : r;
23
23
  }
24
- function C() {
24
+ function k() {
25
25
  let { tagName: r = "div", className: e = "", innerHtml: t = "", id: i = "", attrs: a = {} } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = document.createElement(r);
26
26
  return e && n.classList.add(...e.split(" ")), i && (n.id = i), t && (n.innerHTML = t), a && G(n, a), n;
27
27
  }
@@ -40,7 +40,7 @@ var _e = de(function(D, $) {
40
40
  function I(r) {
41
41
  return r < 10 ? "0" + r : r;
42
42
  }
43
- function H(r) {
43
+ function O(r) {
44
44
  let e = 10 * Math.floor(r.getFullYear() / 10);
45
45
  return [e, e + 9];
46
46
  }
@@ -77,7 +77,7 @@ var _e = de(function(D, $) {
77
77
  function ce(r) {
78
78
  return r.setHours(0, 0, 0, 0), r;
79
79
  }
80
- function b(r, e, t) {
80
+ function C(r, e, t) {
81
81
  r.length ? r.forEach((i) => {
82
82
  i.addEventListener(e, t);
83
83
  }) : r.addEventListener(e, t);
@@ -100,7 +100,7 @@ var _e = de(function(D, $) {
100
100
  r[n] = s;
101
101
  }), r;
102
102
  }
103
- function _(r) {
103
+ function M(r) {
104
104
  let e = r;
105
105
  return r instanceof Date || (e = new Date(r)), isNaN(e.getTime()) && (console.log('Unable to convert value "'.concat(r, '" to Date object')), e = !1), e;
106
106
  }
@@ -108,28 +108,28 @@ var _e = de(function(D, $) {
108
108
  let e = "\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";
109
109
  return new RegExp("(^|>|" + e + ")(" + r + ")($|<|" + e + ")", "g");
110
110
  }
111
- function O(r, e, t) {
111
+ function L(r, e, t) {
112
112
  return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
113
113
  }
114
114
  class ue {
115
115
  constructor() {
116
116
  let { type: e, date: t, dp: i, opts: a, body: n } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
117
- O(this, "focus", () => {
117
+ L(this, "focus", () => {
118
118
  this.$cell.classList.add("-focus-"), this.focused = !0;
119
- }), O(this, "removeFocus", () => {
119
+ }), L(this, "removeFocus", () => {
120
120
  this.$cell.classList.remove("-focus-"), this.focused = !1;
121
- }), O(this, "select", () => {
121
+ }), L(this, "select", () => {
122
122
  this.$cell.classList.add("-selected-"), this.selected = !0;
123
- }), O(this, "removeSelect", () => {
123
+ }), L(this, "removeSelect", () => {
124
124
  this.$cell.classList.remove("-selected-", "-range-from-", "-range-to-"), this.selected = !1;
125
- }), O(this, "onChangeSelectedDate", () => {
125
+ }), L(this, "onChangeSelectedDate", () => {
126
126
  this.isDisabled || (this._handleSelectedStatus(), this.opts.range && this._handleRangeStatus());
127
- }), O(this, "onChangeFocusDate", (s) => {
127
+ }), L(this, "onChangeFocusDate", (s) => {
128
128
  if (!s)
129
129
  return void (this.focused && this.removeFocus());
130
130
  let o = y(s, this.date, this.type);
131
131
  o ? this.focus() : !o && this.focused && this.removeFocus(), this.opts.range && this._handleRangeStatus();
132
- }), O(this, "render", () => (this.$cell.innerHTML = this._getHtml(), this.$cell.adpCell = this, this.$cell)), this.type = e, this.singleType = this.type.slice(0, -1), this.date = t, this.dp = i, this.opts = a, this.body = n, this.customData = !1, this.init();
132
+ }), L(this, "render", () => (this.$cell.innerHTML = this._getHtml(), this.$cell.adpCell = this, this.$cell)), this.type = e, this.singleType = this.type.slice(0, -1), this.date = t, this.dp = i, this.opts = a, this.body = n, this.customData = !1, this.init();
133
133
  }
134
134
  init() {
135
135
  let { range: e, onRenderCell: t } = this.opts;
@@ -144,7 +144,7 @@ var _e = de(function(D, $) {
144
144
  _createElement() {
145
145
  var e;
146
146
  let { year: t, month: i, date: a } = v(this.date), n = ((e = this.customData) === null || e === void 0 ? void 0 : e.attrs) || {};
147
- this.$cell = C({ className: this._getClassName(), attrs: { "data-year": t, "data-month": i, "data-date": a, ...n } });
147
+ this.$cell = k({ className: this._getClassName(), attrs: { "data-year": t, "data-month": i, "data-date": a, ...n } });
148
148
  }
149
149
  _getClassName() {
150
150
  var e, t;
@@ -204,7 +204,7 @@ var _e = de(function(D, $) {
204
204
  return this.dp.isOtherDecade(this.date);
205
205
  }
206
206
  }
207
- function k(r, e, t) {
207
+ function _(r, e, t) {
208
208
  return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
209
209
  }
210
210
  let pe = { [l.days]: '<div class="air-datepicker-body--day-names"></div>' + '<div class="air-datepicker-body--cells -'.concat(l.days, '-"></div>'), [l.months]: '<div class="air-datepicker-body--cells -'.concat(l.months, '-"></div>'), [l.years]: '<div class="air-datepicker-body--cells -'.concat(l.years, '-"></div>') };
@@ -212,7 +212,7 @@ var _e = de(function(D, $) {
212
212
  class ae {
213
213
  constructor(e) {
214
214
  let { dp: t, type: i, opts: a } = e;
215
- k(this, "handleClick", (n) => {
215
+ _(this, "handleClick", (n) => {
216
216
  let s = n.target.closest(K).adpCell;
217
217
  if (s.isDisabled)
218
218
  return;
@@ -220,24 +220,24 @@ var _e = de(function(D, $) {
220
220
  return void this.dp.down();
221
221
  let o = this.dp._checkIfDateIsSelected(s.date, s.type);
222
222
  o ? this.dp._handleAlreadySelectedDates(o, s.date) : this.dp.selectDate(s.date);
223
- }), k(this, "handleDayNameClick", (n) => {
223
+ }), _(this, "handleDayNameClick", (n) => {
224
224
  let s = n.target.getAttribute("data-day-index");
225
225
  this.opts.onClickDayName({ dayIndex: Number(s), datepicker: this.dp });
226
- }), k(this, "onChangeCurrentView", (n) => {
226
+ }), _(this, "onChangeCurrentView", (n) => {
227
227
  n !== this.type ? this.hide() : (this.show(), this.render());
228
- }), k(this, "onMouseOverCell", (n) => {
228
+ }), _(this, "onMouseOverCell", (n) => {
229
229
  let s = z(n.target, K);
230
230
  this.dp.setFocusDate(!!s && s.adpCell.date);
231
- }), k(this, "onMouseOutCell", () => {
231
+ }), _(this, "onMouseOutCell", () => {
232
232
  this.dp.setFocusDate(!1);
233
- }), k(this, "onClickBody", (n) => {
233
+ }), _(this, "onClickBody", (n) => {
234
234
  let { onClickDayName: s } = this.opts, o = n.target;
235
235
  o.closest(K) && this.handleClick(n), s && o.closest(".air-datepicker-body--day-name") && this.handleDayNameClick(n);
236
- }), k(this, "onMouseDown", (n) => {
236
+ }), _(this, "onMouseDown", (n) => {
237
237
  this.pressed = !0;
238
238
  let s = z(n.target, K), o = s && s.adpCell;
239
239
  y(o.date, this.dp.rangeDateFrom) && (this.rangeFromFocused = !0), y(o.date, this.dp.rangeDateTo) && (this.rangeToFocused = !0);
240
- }), k(this, "onMouseMove", (n) => {
240
+ }), _(this, "onMouseMove", (n) => {
241
241
  if (!this.pressed || !this.dp.isMinViewReached)
242
242
  return;
243
243
  n.preventDefault();
@@ -255,12 +255,12 @@ var _e = de(function(D, $) {
255
255
  u.setHours(p), u.setMinutes(g), this.dp.rangeDateTo = u, this.dp.replaceDate(d, u);
256
256
  }
257
257
  }
258
- }), k(this, "onMouseUp", () => {
258
+ }), _(this, "onMouseUp", () => {
259
259
  this.pressed = !1, this.rangeFromFocused = !1, this.rangeToFocused = !1;
260
- }), k(this, "onChangeViewDate", (n, s) => {
260
+ }), _(this, "onChangeViewDate", (n, s) => {
261
261
  if (!this.isVisible)
262
262
  return;
263
- let o = H(n), h = H(s);
263
+ let o = O(n), h = O(s);
264
264
  switch (this.dp.currentView) {
265
265
  case l.days:
266
266
  if (y(n, s, l.months))
@@ -275,7 +275,7 @@ var _e = de(function(D, $) {
275
275
  return;
276
276
  }
277
277
  this.render();
278
- }), k(this, "render", () => {
278
+ }), _(this, "render", () => {
279
279
  this.destroyCells(), this._generateCells(), this.cells.forEach((n) => {
280
280
  this.$cells.appendChild(n.render());
281
281
  });
@@ -286,13 +286,13 @@ var _e = de(function(D, $) {
286
286
  }
287
287
  _bindEvents() {
288
288
  let { range: e, dynamicRange: t } = this.opts;
289
- b(this.$el, "mouseover", this.onMouseOverCell), b(this.$el, "mouseout", this.onMouseOutCell), b(this.$el, "click", this.onClickBody), e && t && (b(this.$el, "mousedown", this.onMouseDown), b(this.$el, "mousemove", this.onMouseMove), b(window.document, "mouseup", this.onMouseUp));
289
+ C(this.$el, "mouseover", this.onMouseOverCell), C(this.$el, "mouseout", this.onMouseOutCell), C(this.$el, "click", this.onClickBody), e && t && (C(this.$el, "mousedown", this.onMouseDown), C(this.$el, "mousemove", this.onMouseMove), C(window.document, "mouseup", this.onMouseUp));
290
290
  }
291
291
  _bindDatepickerEvents() {
292
292
  this.dp.on(l.eventChangeViewDate, this.onChangeViewDate), this.dp.on(l.eventChangeCurrentView, this.onChangeCurrentView);
293
293
  }
294
294
  _buildBaseHtml() {
295
- this.$el = C({ className: "air-datepicker-body -".concat(this.type, "-"), innerHtml: pe[this.type] }), this.$names = f(".air-datepicker-body--day-names", this.$el), this.$cells = f(".air-datepicker-body--cells", this.$el);
295
+ this.$el = k({ className: "air-datepicker-body -".concat(this.type, "-"), innerHtml: pe[this.type] }), this.$names = f(".air-datepicker-body--day-names", this.$el), this.$cells = f(".air-datepicker-body--cells", this.$el);
296
296
  }
297
297
  _getDayNamesHtml() {
298
298
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.dp.locale.firstDay, t = "", i = this.dp.isWeekend, { onClickDayName: a } = this.opts, n = e, s = 0;
@@ -308,10 +308,10 @@ var _e = de(function(D, $) {
308
308
  let c = function(B, U) {
309
309
  let { year: Y, month: j, date: q } = v(B);
310
310
  return new Date(Y, j, q - U);
311
- }(s, h), u = i + h + d, p = c.getDate(), { year: g, month: w } = v(c), M = 0;
312
- for (; M < u; ) {
313
- let B = new Date(g, w, p + M);
314
- this._generateCell(B), M++;
311
+ }(s, h), u = i + h + d, p = c.getDate(), { year: g, month: w } = v(c), $ = 0;
312
+ for (; $ < u; ) {
313
+ let B = new Date(g, w, p + $);
314
+ this._generateCell(B), $++;
315
315
  }
316
316
  }
317
317
  _generateCell(e) {
@@ -327,7 +327,7 @@ var _e = de(function(D, $) {
327
327
  this.cells.push(this._generateCell(new Date(e, t))), t++;
328
328
  }
329
329
  _generateYearCells() {
330
- let e = H(this.dp.viewDate), t = e[0] - 1, i = e[1] + 1, a = t;
330
+ let e = O(this.dp.viewDate), t = e[0] - 1, i = e[1] + 1, a = t;
331
331
  for (; a <= i; )
332
332
  this.cells.push(this._generateCell(new Date(a, 0))), a++;
333
333
  }
@@ -359,30 +359,30 @@ var _e = de(function(D, $) {
359
359
  this.destroyCells(), this.dp.off(l.eventChangeViewDate, this.onChangeViewDate), this.dp.off(l.eventChangeCurrentView, this.onChangeCurrentView);
360
360
  }
361
361
  }
362
- function L(r, e, t) {
362
+ function E(r, e, t) {
363
363
  return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
364
364
  }
365
365
  class me {
366
366
  constructor(e) {
367
367
  let { dp: t, opts: i } = e;
368
- L(this, "onClickNav", (a) => {
368
+ E(this, "onClickNav", (a) => {
369
369
  let n = z(a.target, ".air-datepicker-nav--action");
370
370
  if (!n)
371
371
  return;
372
372
  let s = n.dataset.action;
373
373
  this.dp[s]();
374
- }), L(this, "onChangeViewDate", () => {
374
+ }), E(this, "onChangeViewDate", () => {
375
375
  this.render(), this._resetNavStatus(), this.handleNavStatus();
376
- }), L(this, "onChangeCurrentView", () => {
376
+ }), E(this, "onChangeCurrentView", () => {
377
377
  this.render(), this._resetNavStatus(), this.handleNavStatus();
378
- }), L(this, "onClickNavTitle", () => {
378
+ }), E(this, "onClickNavTitle", () => {
379
379
  this.dp.isFinalView || this.dp.up();
380
- }), L(this, "update", () => {
380
+ }), E(this, "update", () => {
381
381
  let { prevHtml: a, nextHtml: n } = this.opts;
382
382
  this.$prev.innerHTML = a, this.$next.innerHTML = n, this._resetNavStatus(), this.render(), this.handleNavStatus();
383
- }), L(this, "renderDelay", () => {
383
+ }), E(this, "renderDelay", () => {
384
384
  setTimeout(this.render);
385
- }), L(this, "render", () => {
385
+ }), E(this, "render", () => {
386
386
  this.$title.innerHTML = this._getTitle(), function(a, n) {
387
387
  for (let s in n)
388
388
  n[s] ? a.classList.add(s) : a.classList.remove(s);
@@ -405,7 +405,7 @@ var _e = de(function(D, $) {
405
405
  this.dp.off(l.eventChangeViewDate, this.onChangeViewDate), this.dp.off(l.eventChangeCurrentView, this.onChangeCurrentView), this.isNavIsFunction && (this.dp.off(l.eventChangeSelectedDate, this.renderDelay), this.dp.opts.timepicker && this.dp.off(l.eventChangeTime, this.render));
406
406
  }
407
407
  _createElement() {
408
- this.$el = C({ tagName: "nav", className: "air-datepicker-nav" });
408
+ this.$el = k({ tagName: "nav", className: "air-datepicker-nav" });
409
409
  }
410
410
  _getTitle() {
411
411
  let { dp: e, opts: t } = this, i = t.navTitles[e.currentView];
@@ -424,7 +424,7 @@ var _e = de(function(D, $) {
424
424
  t && s.year >= a && this._disableNav("prev"), i && o.year <= a && this._disableNav("next");
425
425
  break;
426
426
  case l.years: {
427
- let h = H(this.dp.viewDate);
427
+ let h = O(this.dp.viewDate);
428
428
  t && s.year >= h[0] && this._disableNav("prev"), i && o.year <= h[1] && this._disableNav("next");
429
429
  break;
430
430
  }
@@ -461,7 +461,7 @@ var _e = de(function(D, $) {
461
461
  this.createElement(), this.render();
462
462
  }
463
463
  createElement() {
464
- this.$el = C({ className: "air-datepicker-buttons" });
464
+ this.$el = k({ className: "air-datepicker-buttons" });
465
465
  }
466
466
  destroy() {
467
467
  this.$el.parentNode.removeChild(this.$el);
@@ -485,34 +485,34 @@ var _e = de(function(D, $) {
485
485
  }
486
486
  createButton(e) {
487
487
  let { content: t, className: i, tagName: a = "button", attrs: n = {} } = e, s = typeof t == "function" ? t(this.dp) : t;
488
- return C({ tagName: a, innerHtml: "<span tabindex='-1'>".concat(s, "</span>"), className: S("air-datepicker-button", i), attrs: n });
488
+ return k({ tagName: a, innerHtml: "<span tabindex='-1'>".concat(s, "</span>"), className: S("air-datepicker-button", i), attrs: n });
489
489
  }
490
490
  render() {
491
491
  this.generateButtons();
492
492
  }
493
493
  }
494
- function E(r, e, t) {
494
+ function A(r, e, t) {
495
495
  return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
496
496
  }
497
497
  class ve {
498
498
  constructor() {
499
499
  let { opts: e, dp: t } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
500
- E(this, "toggleTimepickerIsActive", (a) => {
500
+ A(this, "toggleTimepickerIsActive", (a) => {
501
501
  this.dp.timepickerIsActive = a;
502
- }), E(this, "onChangeSelectedDate", (a) => {
502
+ }), A(this, "onChangeSelectedDate", (a) => {
503
503
  let { date: n, updateTime: s = !1 } = a;
504
504
  n && (this.setMinMaxTime(n), this.setCurrentTime(!!s && n), this.addTimeToDate(n));
505
- }), E(this, "onChangeLastSelectedDate", (a) => {
505
+ }), A(this, "onChangeLastSelectedDate", (a) => {
506
506
  a && (this.setTime(a), this.render());
507
- }), E(this, "onChangeInputRange", (a) => {
507
+ }), A(this, "onChangeInputRange", (a) => {
508
508
  let n = a.target;
509
509
  this[n.getAttribute("name")] = n.value, this.updateText(), this.dp.trigger(l.eventChangeTime, { hours: this.hours, minutes: this.minutes });
510
- }), E(this, "onMouseEnterLeave", (a) => {
510
+ }), A(this, "onMouseEnterLeave", (a) => {
511
511
  let n = a.target.getAttribute("name"), s = this.$minutesText;
512
512
  n === "hours" && (s = this.$hoursText), s.classList.toggle("-focus-");
513
- }), E(this, "onFocus", () => {
513
+ }), A(this, "onFocus", () => {
514
514
  this.toggleTimepickerIsActive(!0);
515
- }), E(this, "onBlur", () => {
515
+ }), A(this, "onBlur", () => {
516
516
  this.toggleTimepickerIsActive(!1);
517
517
  }), this.opts = e, this.dp = t;
518
518
  let { timeFormat: i } = this.dp.locale;
@@ -526,10 +526,10 @@ var _e = de(function(D, $) {
526
526
  }
527
527
  bindDOMEvents() {
528
528
  let e = "input";
529
- navigator.userAgent.match(/trident/gi) && (e = "change"), b(this.$ranges, e, this.onChangeInputRange), b(this.$ranges, "mouseenter", this.onMouseEnterLeave), b(this.$ranges, "mouseleave", this.onMouseEnterLeave), b(this.$ranges, "focus", this.onFocus), b(this.$ranges, "mousedown", this.onFocus), b(this.$ranges, "blur", this.onBlur);
529
+ navigator.userAgent.match(/trident/gi) && (e = "change"), C(this.$ranges, e, this.onChangeInputRange), C(this.$ranges, "mouseenter", this.onMouseEnterLeave), C(this.$ranges, "mouseleave", this.onMouseEnterLeave), C(this.$ranges, "focus", this.onFocus), C(this.$ranges, "mousedown", this.onFocus), C(this.$ranges, "blur", this.onBlur);
530
530
  }
531
531
  createElement() {
532
- this.$el = C({ className: S("air-datepicker-time", { "-am-pm-": this.dp.ampm }) });
532
+ this.$el = k({ className: S("air-datepicker-time", { "-am-pm-": this.dp.ampm }) });
533
533
  }
534
534
  destroy() {
535
535
  this.dp.off(l.eventChangeSelectedDate, this.onChangeSelectedDate), this.dp.off(l.eventChangeLastSelectedDate, this.onChangeLastSelectedDate), this.$el.parentNode.removeChild(this.$el);
@@ -602,20 +602,20 @@ var _e = de(function(D, $) {
602
602
  this.updateSliders(), this.updateText();
603
603
  }
604
604
  }
605
- function A(r, e, t) {
605
+ function N(r, e, t) {
606
606
  return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
607
607
  }
608
608
  class ye {
609
609
  constructor(e) {
610
610
  let { dp: t, opts: i } = e;
611
- A(this, "pressedKeys", /* @__PURE__ */ new Set()), A(this, "hotKeys", /* @__PURE__ */ new Map([[[["Control", "ArrowRight"], ["Control", "ArrowUp"]], (a) => a.month++], [[["Control", "ArrowLeft"], ["Control", "ArrowDown"]], (a) => a.month--], [[["Shift", "ArrowRight"], ["Shift", "ArrowUp"]], (a) => a.year++], [[["Shift", "ArrowLeft"], ["Shift", "ArrowDown"]], (a) => a.year--], [[["Alt", "ArrowRight"], ["Alt", "ArrowUp"]], (a) => a.year += 10], [[["Alt", "ArrowLeft"], ["Alt", "ArrowDown"]], (a) => a.year -= 10], [["Control", "Shift", "ArrowUp"], (a, n) => n.up()]])), A(this, "handleHotKey", (a) => {
611
+ N(this, "pressedKeys", /* @__PURE__ */ new Set()), N(this, "hotKeys", /* @__PURE__ */ new Map([[[["Control", "ArrowRight"], ["Control", "ArrowUp"]], (a) => a.month++], [[["Control", "ArrowLeft"], ["Control", "ArrowDown"]], (a) => a.month--], [[["Shift", "ArrowRight"], ["Shift", "ArrowUp"]], (a) => a.year++], [[["Shift", "ArrowLeft"], ["Shift", "ArrowDown"]], (a) => a.year--], [[["Alt", "ArrowRight"], ["Alt", "ArrowUp"]], (a) => a.year += 10], [[["Alt", "ArrowLeft"], ["Alt", "ArrowDown"]], (a) => a.year -= 10], [["Control", "Shift", "ArrowUp"], (a, n) => n.up()]])), N(this, "handleHotKey", (a) => {
612
612
  let n = this.hotKeys.get(a), s = v(this.getInitialFocusDate());
613
613
  n(s, this.dp);
614
614
  let { year: o, month: h, date: d } = s, c = se(new Date(o, h));
615
615
  c < d && (d = c);
616
616
  let u = this.dp.getClampedDate(new Date(o, h, d));
617
617
  this.dp.setFocusDate(u, { viewDateTransition: !0 });
618
- }), A(this, "isHotKeyPressed", () => {
618
+ }), N(this, "isHotKeyPressed", () => {
619
619
  let a = !1, n = this.pressedKeys.size, s = (o) => this.pressedKeys.has(o);
620
620
  for (let [o] of this.hotKeys) {
621
621
  if (a)
@@ -631,7 +631,7 @@ var _e = de(function(D, $) {
631
631
  }
632
632
  }
633
633
  return a;
634
- }), A(this, "isArrow", (a) => a >= 37 && a <= 40), A(this, "onKeyDown", (a) => {
634
+ }), N(this, "isArrow", (a) => a >= 37 && a <= 40), N(this, "onKeyDown", (a) => {
635
635
  let { key: n, which: s } = a, { dp: o, dp: { focusDate: h }, opts: d } = this;
636
636
  this.registerKey(n);
637
637
  let c = this.isHotKeyPressed();
@@ -648,7 +648,7 @@ var _e = de(function(D, $) {
648
648
  }
649
649
  }
650
650
  n === "Escape" && this.dp.hide();
651
- }), A(this, "onKeyUp", (a) => {
651
+ }), N(this, "onKeyUp", (a) => {
652
652
  this.removeKey(a.key);
653
653
  }), this.dp = t, this.opts = i, this.init();
654
654
  }
@@ -720,7 +720,7 @@ var _e = de(function(D, $) {
720
720
  return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
721
721
  }
722
722
  let ee = "", J = "", V = "", re = !1;
723
- class F {
723
+ class H {
724
724
  constructor(e, t) {
725
725
  var i = this;
726
726
  if (m(this, "viewIndexes", [l.days, l.months, l.years]), m(this, "next", () => {
@@ -753,7 +753,7 @@ var _e = de(function(D, $) {
753
753
  let o = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
754
754
  if (typeof (s = s || i.opts.position) == "function")
755
755
  return void (i.customHide = s({ $datepicker: i.$datepicker, $target: i.$el, $pointer: i.$pointer, isViewChange: o, done: i._finishHide }));
756
- let h, d, { isMobile: c } = i.opts, u = i.$el.getBoundingClientRect(), p = i.$el.getBoundingClientRect(), g = i.$datepicker.offsetParent, w = i.$el.offsetParent, M = i.$datepicker.getBoundingClientRect(), B = s.split(" "), U = window.scrollY, Y = window.scrollX, j = i.opts.offset, q = B[0], fe = B[1];
756
+ let h, d, { isMobile: c } = i.opts, u = i.$el.getBoundingClientRect(), p = i.$el.getBoundingClientRect(), g = i.$datepicker.offsetParent, w = i.$el.offsetParent, $ = i.$datepicker.getBoundingClientRect(), B = s.split(" "), U = window.scrollY, Y = window.scrollX, j = i.opts.offset, q = B[0], fe = B[1];
757
757
  if (c)
758
758
  i.$datepicker.style.cssText = "left: 50%; top: 50%";
759
759
  else {
@@ -763,7 +763,7 @@ var _e = de(function(D, $) {
763
763
  }
764
764
  switch (q) {
765
765
  case "top":
766
- h = p.top - M.height - j;
766
+ h = p.top - $.height - j;
767
767
  break;
768
768
  case "right":
769
769
  d = p.left + p.width + j;
@@ -772,23 +772,23 @@ var _e = de(function(D, $) {
772
772
  h = p.top + p.height + j;
773
773
  break;
774
774
  case "left":
775
- d = p.left - M.width - j;
775
+ d = p.left - $.width - j;
776
776
  }
777
777
  switch (fe) {
778
778
  case "top":
779
779
  h = p.top;
780
780
  break;
781
781
  case "right":
782
- d = p.left + p.width - M.width;
782
+ d = p.left + p.width - $.width;
783
783
  break;
784
784
  case "bottom":
785
- h = p.top + p.height - M.height;
785
+ h = p.top + p.height - $.height;
786
786
  break;
787
787
  case "left":
788
788
  d = p.left;
789
789
  break;
790
790
  case "center":
791
- /left|right/.test(q) ? h = p.top + p.height / 2 - M.height / 2 : d = p.left + p.width / 2 - M.width / 2;
791
+ /left|right/.test(q) ? h = p.top + p.height / 2 - $.height / 2 : d = p.left + p.width / 2 - $.width / 2;
792
792
  }
793
793
  i.$datepicker.style.cssText = "left: ".concat(d + Y, "px; top: ").concat(h + U, "px");
794
794
  }
@@ -814,7 +814,7 @@ var _e = de(function(D, $) {
814
814
  }), m(this, "_cancelScheduledCall", () => {
815
815
  this.$datepicker.removeEventListener("transitionend", this._onTransitionEnd);
816
816
  }), m(this, "setViewDate", (s) => {
817
- if (!((s = _(s)) instanceof Date) || y(s, this.viewDate))
817
+ if (!((s = M(s)) instanceof Date) || y(s, this.viewDate))
818
818
  return;
819
819
  let o = this.viewDate;
820
820
  this.viewDate = s;
@@ -826,7 +826,7 @@ var _e = de(function(D, $) {
826
826
  this.trigger(l.eventChangeViewDate, s, o);
827
827
  }), m(this, "setFocusDate", function(s) {
828
828
  let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
829
- (!s || (s = _(s)) instanceof Date) && (i.focusDate = s, i.opts.range && s && i._handleRangeOnFocus(), i.trigger(l.eventChangeFocusDate, s, o));
829
+ (!s || (s = M(s)) instanceof Date) && (i.focusDate = s, i.opts.range && s && i._handleRangeOnFocus(), i.trigger(l.eventChangeFocusDate, s, o));
830
830
  }), m(this, "setCurrentView", (s) => {
831
831
  if (this.viewIndexes.includes(s)) {
832
832
  if (this.currentView = s, this.elIsInput && this.visible && this.setPosition(void 0, !0), this.trigger(l.eventChangeCurrentView, s), !this.views[s]) {
@@ -852,7 +852,7 @@ var _e = de(function(D, $) {
852
852
  let { year: o } = v(s);
853
853
  return o !== this.parsedViewDate.year;
854
854
  }), m(this, "isOtherDecade", (s) => {
855
- let { year: o } = v(s), [h, d] = H(this.viewDate);
855
+ let { year: o } = v(s), [h, d] = O(this.viewDate);
856
856
  return o < h || o > d;
857
857
  }), m(this, "_onChangeSelectedDate", (s) => {
858
858
  let { silent: o } = s;
@@ -887,17 +887,17 @@ var _e = de(function(D, $) {
887
887
  return h && T(s, h) ? d = h : o && P(s, o) && (d = o), d;
888
888
  }), this.$el = f(e), !this.$el)
889
889
  return;
890
- this.$datepicker = C({ className: "air-datepicker" }), this.opts = Z({}, ie, t), this.$customContainer = !!this.opts.container && f(this.opts.container), this.$altField = f(this.opts.altField || !1), ee || (ee = f("body"));
890
+ this.$datepicker = k({ className: "air-datepicker" }), this.opts = Z({}, ie, t), this.$customContainer = !!this.opts.container && f(this.opts.container), this.$altField = f(this.opts.altField || !1), ee || (ee = f("body"));
891
891
  let { view: a, startDate: n } = this.opts;
892
- n || (this.opts.startDate = new Date()), this.$el.nodeName === "INPUT" && (this.elIsInput = !0), this.inited = !1, this.visible = !1, this.viewDate = _(this.opts.startDate), this.focusDate = !1, this.initialReadonly = this.$el.getAttribute("readonly"), this.customHide = !1, this.currentView = a, this.selectedDates = [], this.views = {}, this.keys = [], this.rangeDateFrom = "", this.rangeDateTo = "", this.timepickerIsActive = !1, this.treatAsInline = this.opts.inline || !this.elIsInput, this.init();
892
+ n || (this.opts.startDate = new Date()), this.$el.nodeName === "INPUT" && (this.elIsInput = !0), this.inited = !1, this.visible = !1, this.viewDate = M(this.opts.startDate), this.focusDate = !1, this.initialReadonly = this.$el.getAttribute("readonly"), this.customHide = !1, this.currentView = a, this.selectedDates = [], this.views = {}, this.keys = [], this.rangeDateFrom = "", this.rangeDateTo = "", this.timepickerIsActive = !1, this.treatAsInline = this.opts.inline || !this.elIsInput, this.init();
893
893
  }
894
894
  init() {
895
895
  let { opts: e, treatAsInline: t, opts: { inline: i, isMobile: a, selectedDates: n, keyboardNav: s, onlyTimepicker: o } } = this;
896
896
  var h;
897
- re || i || !this.elIsInput || (re = !0, J = C({ className: h = F.defaultContainerId, id: h }), ee.appendChild(J)), !a || V || t || this._createMobileOverlay(), this._handleLocale(), this._bindSubEvents(), this._createMinMaxDates(), this._limitViewDateByMaxMinDates(), this.elIsInput && (i || this._bindEvents(), s && !o && (this.keyboardNav = new ye({ dp: this, opts: e }))), n && this.selectDate(n, { silent: !0 }), this.opts.visible && !t && this.show(), a && !t && this.$el.setAttribute("readonly", !0), t && this._createComponents();
897
+ re || i || !this.elIsInput || (re = !0, J = k({ className: h = H.defaultContainerId, id: h }), ee.appendChild(J)), !a || V || t || this._createMobileOverlay(), this._handleLocale(), this._bindSubEvents(), this._createMinMaxDates(), this._limitViewDateByMaxMinDates(), this.elIsInput && (i || this._bindEvents(), s && !o && (this.keyboardNav = new ye({ dp: this, opts: e }))), n && this.selectDate(n, { silent: !0 }), this.opts.visible && !t && this.show(), a && !t && this.$el.setAttribute("readonly", !0), t && this._createComponents();
898
898
  }
899
899
  _createMobileOverlay() {
900
- V = C({ className: "air-datepicker-overlay" }), J.appendChild(V);
900
+ V = k({ className: "air-datepicker-overlay" }), J.appendChild(V);
901
901
  }
902
902
  _createComponents() {
903
903
  let { opts: e, treatAsInline: t, opts: { inline: i, buttons: a, timepicker: n, position: s, classes: o, onlyTimepicker: h, isMobile: d } } = this;
@@ -916,13 +916,13 @@ var _e = de(function(D, $) {
916
916
  }
917
917
  _createMinMaxDates() {
918
918
  let { minDate: e, maxDate: t } = this.opts;
919
- this.minDate = !!e && _(e), this.maxDate = !!t && _(t);
919
+ this.minDate = !!e && M(e), this.maxDate = !!t && M(t);
920
920
  }
921
921
  _addTimepicker() {
922
- this.$timepicker = C({ className: "air-datepicker--time" }), this.$datepicker.appendChild(this.$timepicker), this.timepicker = new ve({ dp: this, opts: this.opts }), this.$timepicker.appendChild(this.timepicker.$el);
922
+ this.$timepicker = k({ className: "air-datepicker--time" }), this.$datepicker.appendChild(this.$timepicker), this.timepicker = new ve({ dp: this, opts: this.opts }), this.$timepicker.appendChild(this.timepicker.$el);
923
923
  }
924
924
  _addButtons() {
925
- this.$buttons = C({ className: "air-datepicker--buttons" }), this.$datepicker.appendChild(this.$buttons), this.buttons = new ge({ dp: this, opts: this.opts }), this.$buttons.appendChild(this.buttons.$el);
925
+ this.$buttons = k({ className: "air-datepicker--buttons" }), this.$datepicker.appendChild(this.$buttons), this.buttons = new ge({ dp: this, opts: this.opts }), this.$buttons.appendChild(this.buttons.$el);
926
926
  }
927
927
  _bindSubEvents() {
928
928
  this.on(l.eventChangeSelectedDate, this._onChangeSelectedDate), this.on(l.eventChangeFocusDate, this._onChangeFocusedDate), this.on(l.eventChangeTime, this._onChangeTime);
@@ -958,9 +958,9 @@ var _e = de(function(D, $) {
958
958
  }
959
959
  formatDate() {
960
960
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.viewDate, t = arguments.length > 1 ? arguments[1] : void 0;
961
- if (e = _(e), !(e instanceof Date))
961
+ if (e = M(e), !(e instanceof Date))
962
962
  return;
963
- let i = t, a = this.locale, n = v(e), s = H(e), o = F.replacer, h = "am";
963
+ let i = t, a = this.locale, n = v(e), s = O(e), o = H.replacer, h = "am";
964
964
  this.opts.timepicker && this.timepicker && (h = this.timepicker.getDayPeriod(e).dayPeriod);
965
965
  let d = { T: e.getTime(), m: n.minutes, mm: n.fullMinutes, h: n.hours12, hh: n.fullHours12, H: n.hours, HH: n.fullHours, aa: h, AA: h.toUpperCase(), E: a.daysShort[n.day], EEEE: a.days[n.day], d: n.date, dd: n.fullDate, M: n.month + 1, MM: n.fullMonth, MMM: a.monthsShort[n.month], MMMM: a.months[n.month], yy: n.year.toString().slice(-2), yyyy: n.year, yyyy1: s[0], yyyy2: s[1] };
966
966
  for (let [c, u] of Object.entries(d))
@@ -981,7 +981,7 @@ var _e = de(function(D, $) {
981
981
  }), new Promise((w) => {
982
982
  setTimeout(w);
983
983
  });
984
- if ((e = _(e)) instanceof Date) {
984
+ if ((e = M(e)) instanceof Date) {
985
985
  if (a === l.days && e.getMonth() !== n.month && h && (t = new Date(e.getFullYear(), e.getMonth(), 1)), a === l.years && e.getFullYear() !== n.year && d && (t = new Date(e.getFullYear(), 0, 1)), t && this.setViewDate(t), c && !u) {
986
986
  if (g === c)
987
987
  return;
@@ -1006,7 +1006,7 @@ var _e = de(function(D, $) {
1006
1006
  }
1007
1007
  unselectDate(e) {
1008
1008
  let t = this.selectedDates, i = this;
1009
- if ((e = _(e)) instanceof Date)
1009
+ if ((e = M(e)) instanceof Date)
1010
1010
  return t.some((a, n) => {
1011
1011
  if (y(a, e))
1012
1012
  return t.splice(n, 1), i.selectedDates.length ? i._updateLastSelectedDate(i.selectedDates[i.selectedDates.length - 1]) : (i.rangeDateFrom = "", i.rangeDateTo = "", i._updateLastSelectedDate(!1)), this.trigger(l.eventChangeSelectedDate, { action: l.actionUnselectDate, date: e }), !0;
@@ -1041,7 +1041,7 @@ var _e = de(function(D, $) {
1041
1041
  i ? a ? this.unselectDate(t) : this.selectedDates.length !== 2 && this.selectDate(t) : a && this.unselectDate(t), a || this._updateLastSelectedDate(e);
1042
1042
  }
1043
1043
  _handleUpDownActions(e, t) {
1044
- if (!((e = _(e || this.focusDate || this.viewDate)) instanceof Date))
1044
+ if (!((e = M(e || this.focusDate || this.viewDate)) instanceof Date))
1045
1045
  return;
1046
1046
  let i = t === "up" ? this.viewIndex + 1 : this.viewIndex - 1;
1047
1047
  i > 2 && (i = 2), i < 0 && (i = 0), this.setViewDate(new Date(e.getFullYear(), e.getMonth(), 1)), this.setCurrentView(this.viewIndexes[i]);
@@ -1051,7 +1051,7 @@ var _e = de(function(D, $) {
1051
1051
  }
1052
1052
  getCell(e) {
1053
1053
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : l.day;
1054
- if (!((e = _(e)) instanceof Date))
1054
+ if (!((e = M(e)) instanceof Date))
1055
1055
  return;
1056
1056
  let { year: i, month: a, date: n } = v(e), s = '[data-year="'.concat(i, '"]'), o = '[data-month="'.concat(a, '"]'), h = '[data-date="'.concat(n, '"]'), d = { [l.day]: "".concat(s).concat(o).concat(h), [l.month]: "".concat(s).concat(o), [l.year]: "".concat(s) };
1057
1057
  return this.views[this.currentView].$el.querySelector(d[t]);
@@ -1072,7 +1072,7 @@ var _e = de(function(D, $) {
1072
1072
  return this.currentView.slice(0, -1);
1073
1073
  }
1074
1074
  get curDecade() {
1075
- return H(this.viewDate);
1075
+ return O(this.viewDate);
1076
1076
  }
1077
1077
  get viewIndex() {
1078
1078
  return this.viewIndexes.indexOf(this.currentView);
@@ -1096,14 +1096,14 @@ var _e = de(function(D, $) {
1096
1096
  }
1097
1097
  }
1098
1098
  var oe;
1099
- return m(F, "defaults", ie), m(F, "version", "3.3.0"), m(F, "defaultContainerId", "air-datepicker-global-container"), oe = F.prototype, Object.assign(oe, De), W.default;
1099
+ return m(H, "defaults", ie), m(H, "version", "3.3.0"), m(H, "defaultContainerId", "air-datepicker-global-container"), oe = H.prototype, Object.assign(oe, De), W.default;
1100
1100
  }();
1101
1101
  });
1102
- }), Me = de(function(D, $) {
1103
- Object.defineProperty($, "__esModule", {
1102
+ }), Me = de(function(D, b) {
1103
+ Object.defineProperty(b, "__esModule", {
1104
1104
  value: !0
1105
- }), $.default = void 0;
1106
- var N = {
1105
+ }), b.default = void 0;
1106
+ var F = {
1107
1107
  days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
1108
1108
  daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
1109
1109
  daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
@@ -1115,12 +1115,12 @@ var _e = de(function(D, $) {
1115
1115
  timeFormat: "hh:mm aa",
1116
1116
  firstDay: 0
1117
1117
  };
1118
- $.default = N;
1118
+ b.default = F;
1119
1119
  });
1120
1120
  const $e = /* @__PURE__ */ ke(Me), Se = ':host{display:block}:host *{box-sizing:border-box}.date-picker{padding:var(--s-space-8) var(--s-space-16);background-color:var(--s-surface-overlay-default);font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm);letter-spacing:var(--s-letter-spacing-tighter)}@media (min-width: 768px){.date-picker{max-width:17.5rem}}.air-datepicker--pointer{display:none}.air-datepicker-nav{display:flex;margin-bottom:var(--s-space-8);align-items:center}.air-datepicker-nav--action{position:relative;display:inline-flex;width:2.5rem;height:2.5rem;justify-content:center;align-items:center;border-radius:50%;color:var(--s-icon-highlight);cursor:pointer;order:2}.air-datepicker-nav--action:hover{background-color:var(--s-surface-overlay-hovered)}.air-datepicker-nav--title{padding:var(--s-space-8);flex-grow:1;border-radius:var(--s-border-radius-s);font-size:var(--s-font-size-base);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);text-align:left;cursor:pointer;order:0}.air-datepicker-nav--title i{font-style:normal}.air-datepicker-body--day-names{display:flex;margin-bottom:var(--s-space-8);justify-content:space-between;align-items:center}.air-datepicker-body--day-name{display:inline-flex;flex-basis:calc(100 / 7 * 1%);justify-content:center;align-items:center;color:var(--s-text-subdued);aspect-ratio:1}.air-datepicker-body--cells{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:space-between}.air-datepicker-body--cells.-months-{gap:var(--s-space-2)}.air-datepicker-cell{position:relative;display:inline-flex;flex-basis:calc(100 / 7 * 1%);justify-content:center;align-items:center;font-weight:var(--s-font-weight-medium);cursor:pointer;aspect-ratio:1}.air-datepicker-cell:not(.-month-):not(.-year-):not(.-in-range-):hover:before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-overlay-hovered);content:"";inset:0}.air-datepicker-cell.-month-,.air-datepicker-cell.-year-{height:2.5rem;flex-basis:calc(100 / 3 * 1% - var(--s-space-2) * 2);border-radius:var(--s-border-radius-s);aspect-ratio:auto}.air-datepicker-cell.-month-.-in-range-:before,.air-datepicker-cell.-year-.-in-range-:before{border-radius:var(--s-border-radius-s)}.air-datepicker-cell.-month-:hover:not(.-in-range-):not(.-selected-),.air-datepicker-cell.-year-:hover:not(.-in-range-):not(.-selected-){background-color:var(--s-surface-overlay-hovered)}.air-datepicker-cell.-other-month-{color:var(--s-text-subdued)}.air-datepicker-cell.-current-:not(.-month-):not(.-year-):after{position:absolute;z-index:-1;border:var(--s-border-width-default) solid var(--s-border-highlight);border-radius:50%;content:"";inset:0}.air-datepicker-cell.-selected-{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-selected-.-year-,.air-datepicker-cell.-selected-.-month-{background-color:var(--s-surface-highlight-default)}.air-datepicker-cell.-selected-:not(.-month-):not(.-year-):not(.-in-range-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-disabled-{color:var(--s-text-subdued);cursor:default}.air-datepicker-cell.-disabled-:hover{background-color:transparent}.air-datepicker-cell.-in-range-:before{position:absolute;z-index:-1;top:0.0625rem;right:0;bottom:0.0625rem;left:0;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):hover{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-range-from-:not(.-month-):not(.-year-):not(.-range-to-):after{position:absolute;z-index:-1;top:0.0625rem;right:0;bottom:0.0625rem;left:50%;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):hover{color:var(--s-text-on-surface-highlight)}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):before{position:absolute;z-index:-1;border-radius:50%;background-color:var(--s-surface-highlight-default);content:"";inset:0}.air-datepicker-cell.-range-to-:not(.-month-):not(.-year-):not(.-range-from-):after{position:absolute;z-index:-1;top:0.0625rem;right:50%;bottom:0.0625rem;left:0;border-radius:0;background-color:var(--s-surface-highlight-default);content:"";opacity:0.2}.-hidden-{display:none}', Te = class {
1121
1121
  constructor(D) {
1122
- le(this, D), this.valueChange = we(this, "valueChange", 3), this.locale = $e, this.onClick = ($) => {
1123
- $.stopPropagation(), $.preventDefault();
1122
+ le(this, D), this.valueChange = we(this, "valueChange", 3), this.locale = $e, this.onClick = (b) => {
1123
+ b.stopPropagation(), b.preventDefault();
1124
1124
  };
1125
1125
  }
1126
1126
  watchProps() {
@@ -1135,7 +1135,9 @@ const $e = /* @__PURE__ */ ke(Me), Se = ':host{display:block}:host *{box-sizing:
1135
1135
  }
1136
1136
  init() {
1137
1137
  var D;
1138
- (D = this.picker) === null || D === void 0 || D.destroy(), this.picker = new _e(this.containerEl, {
1138
+ (D = this.picker) === null || D === void 0 || D.destroy();
1139
+ let b;
1140
+ this.value === void 0 ? b = void 0 : Array.isArray(this.value) ? b = this.value : b = [this.value], this.picker = new _e(this.containerEl, {
1139
1141
  classes: "date-picker",
1140
1142
  inline: !0,
1141
1143
  locale: this.locale,
@@ -1143,12 +1145,12 @@ const $e = /* @__PURE__ */ ke(Me), Se = ':host{display:block}:host *{box-sizing:
1143
1145
  minDate: this.minDate,
1144
1146
  minView: "days",
1145
1147
  nextHtml: "<flip-icon-chevron-right></flip-icon-chevron-right>",
1146
- onSelect: ({ date: $ }) => {
1147
- this.valueChange.emit($);
1148
+ onSelect: ({ date: F }) => {
1149
+ this.valueChange.emit(F);
1148
1150
  },
1149
1151
  prevHtml: "<flip-icon-chevron-left></flip-icon-chevron-left>",
1150
1152
  range: this.range,
1151
- selectedDates: this.value === void 0 ? void 0 : Array.isArray(this.value) ? this.value : [this.value],
1153
+ selectedDates: b,
1152
1154
  startDate: this.startDate,
1153
1155
  toggleSelected: !this.range,
1154
1156
  view: "days"