@xy-planning-network/trees 0.4.0-rc-6 → 0.4.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 (82) hide show
  1. package/README.md +236 -53
  2. package/dist/trees.es.js +910 -274
  3. package/dist/trees.umd.js +6 -6
  4. package/package.json +9 -6
  5. package/src/lib-components/forms/BaseInput.vue +83 -0
  6. package/src/lib-components/forms/Checkbox.vue +46 -0
  7. package/src/lib-components/forms/DateRangePicker.vue +65 -0
  8. package/src/lib-components/forms/InputHelp.vue +24 -0
  9. package/src/lib-components/forms/InputLabel.vue +23 -0
  10. package/src/lib-components/forms/MultiCheckboxes.vue +55 -0
  11. package/src/lib-components/forms/Radio.vue +58 -0
  12. package/src/lib-components/forms/Select.vue +65 -0
  13. package/src/lib-components/forms/TextArea.vue +50 -0
  14. package/src/lib-components/forms/Toggle.vue +25 -0
  15. package/src/lib-components/forms/YesOrNoRadio.vue +70 -0
  16. package/src/lib-components/layout/DateFilter.vue +54 -0
  17. package/src/lib-components/layout/SidebarLayout.vue +239 -0
  18. package/src/lib-components/layout/StackedLayout.vue +172 -0
  19. package/src/lib-components/lists/Cards.vue +33 -0
  20. package/src/lib-components/lists/DetailList.vue +114 -0
  21. package/src/lib-components/lists/DownloadCell.vue +12 -0
  22. package/src/lib-components/lists/StaticTable.vue +83 -0
  23. package/src/lib-components/lists/Table.vue +291 -0
  24. package/src/lib-components/navigation/ActionsDropdown.vue +78 -0
  25. package/src/lib-components/navigation/Paginator.vue +115 -0
  26. package/src/lib-components/navigation/Steps.vue +83 -0
  27. package/src/lib-components/navigation/Tabs.vue +92 -0
  28. package/src/lib-components/overlays/ContentModal.vue +95 -0
  29. package/src/lib-components/overlays/Flash.vue +131 -0
  30. package/src/lib-components/overlays/Modal.vue +133 -0
  31. package/src/lib-components/overlays/Popover/Popover.vue +109 -0
  32. package/src/lib-components/overlays/Popover/PopoverContent.vue +8 -0
  33. package/src/lib-components/overlays/Slideover.vue +87 -0
  34. package/src/lib-components/overlays/Spinner.vue +149 -0
  35. package/src/lib-components/overlays/Tooltip.vue +31 -0
  36. package/{dist → types}/api/base.d.ts +0 -0
  37. package/types/components.d.ts +12 -0
  38. package/types/composables/date.d.ts +4 -0
  39. package/types/composables/nav.d.ts +13 -0
  40. package/types/composables/overlay.d.ts +4 -0
  41. package/types/composables/table.d.ts +32 -0
  42. package/types/composables/user.d.ts +6 -0
  43. package/{dist → types}/entry.d.ts +0 -0
  44. package/types/global.d.ts +13 -0
  45. package/{dist → types}/helpers/Uniques.d.ts +0 -0
  46. package/{dist → types}/lib-components/forms/BaseInput.vue.d.ts +0 -0
  47. package/{dist → types}/lib-components/forms/Checkbox.vue.d.ts +0 -0
  48. package/{dist → types}/lib-components/forms/DateRangePicker.vue.d.ts +0 -0
  49. package/{dist → types}/lib-components/forms/InputHelp.vue.d.ts +0 -0
  50. package/{dist → types}/lib-components/forms/InputLabel.vue.d.ts +0 -0
  51. package/{dist → types}/lib-components/forms/MultiCheckboxes.vue.d.ts +0 -0
  52. package/{dist → types}/lib-components/forms/Radio.vue.d.ts +0 -0
  53. package/{dist → types}/lib-components/forms/Select.vue.d.ts +2 -2
  54. package/{dist → types}/lib-components/forms/TextArea.vue.d.ts +0 -0
  55. package/{dist → types}/lib-components/forms/Toggle.vue.d.ts +0 -0
  56. package/{dist → types}/lib-components/forms/YesOrNoRadio.vue.d.ts +0 -0
  57. package/{dist → types}/lib-components/index.d.ts +9 -9
  58. package/{dist → types}/lib-components/layout/DateFilter.vue.d.ts +1 -4
  59. package/{dist → types}/lib-components/layout/SidebarLayout.vue.d.ts +1 -1
  60. package/{dist → types}/lib-components/layout/StackedLayout.vue.d.ts +2 -2
  61. package/{dist → types}/lib-components/lists/Cards.vue.d.ts +0 -0
  62. package/{dist → types}/lib-components/lists/DetailList.vue.d.ts +0 -0
  63. package/{dist → types}/lib-components/lists/DownloadCell.vue.d.ts +0 -0
  64. package/{dist → types}/lib-components/lists/StaticTable.vue.d.ts +1 -1
  65. package/{dist → types}/lib-components/lists/Table.vue.d.ts +1 -1
  66. package/{dist → types}/lib-components/navigation/ActionsDropdown.vue.d.ts +2 -2
  67. package/{dist → types}/lib-components/navigation/Paginator.vue.d.ts +1 -6
  68. package/{dist → types}/lib-components/navigation/Steps.vue.d.ts +0 -0
  69. package/{dist → types}/lib-components/navigation/Tabs.vue.d.ts +0 -0
  70. package/{dist → types}/lib-components/overlays/ContentModal.vue.d.ts +0 -0
  71. package/{dist/lib-components/overlays/Spinner.vue.d.ts → types/lib-components/overlays/Flash.vue.d.ts} +0 -0
  72. package/{dist → types}/lib-components/overlays/Modal.vue.d.ts +0 -0
  73. package/types/lib-components/overlays/Popover/Popover.vue.d.ts +15 -0
  74. package/types/lib-components/overlays/Popover/PopoverContent.vue.d.ts +2 -0
  75. package/{dist → types}/lib-components/overlays/Slideover.vue.d.ts +0 -0
  76. package/{dist/lib-components/overlays/Flash.vue.d.ts → types/lib-components/overlays/Spinner.vue.d.ts} +0 -4
  77. package/types/lib-components/overlays/Tooltip.vue.d.ts +16 -0
  78. package/dist/types/components.d.ts +0 -6
  79. package/dist/types/global.d.ts +0 -10
  80. package/dist/types/nav.d.ts +0 -8
  81. package/dist/types/table.d.ts +0 -36
  82. package/dist/types/users.d.ts +0 -10
package/dist/trees.es.js CHANGED
@@ -1244,7 +1244,7 @@ var RenderStrategy;
1244
1244
  RenderStrategy2[RenderStrategy2["Unmount"] = 0] = "Unmount";
1245
1245
  RenderStrategy2[RenderStrategy2["Hidden"] = 1] = "Hidden";
1246
1246
  })(RenderStrategy || (RenderStrategy = {}));
1247
- function render$7(_ref) {
1247
+ function render$8(_ref) {
1248
1248
  var _ref$visible = _ref.visible, visible = _ref$visible === void 0 ? true : _ref$visible, _ref$features = _ref.features, features = _ref$features === void 0 ? Features.None : _ref$features, main2 = _objectWithoutPropertiesLoose(_ref, ["visible", "features"]);
1249
1249
  if (visible)
1250
1250
  return _render(main2);
@@ -1370,7 +1370,7 @@ var ForcePortalRoot = /* @__PURE__ */ defineComponent({
1370
1370
  provide(ForcePortalRootContext, props.force);
1371
1371
  return function() {
1372
1372
  var passThroughProps = _objectWithoutPropertiesLoose(props, ["force"]);
1373
- return render$7({
1373
+ return render$8({
1374
1374
  props: passThroughProps,
1375
1375
  slot: {},
1376
1376
  slots,
@@ -1430,7 +1430,7 @@ var Portal = /* @__PURE__ */ defineComponent({
1430
1430
  };
1431
1431
  return h(Teleport, {
1432
1432
  to: myTarget.value
1433
- }, render$7({
1433
+ }, render$8({
1434
1434
  props: _extends({}, props, propsWeControl),
1435
1435
  slot: {},
1436
1436
  attrs,
@@ -1463,7 +1463,7 @@ var PortalGroup = /* @__PURE__ */ defineComponent({
1463
1463
  provide(PortalGroupContext, api);
1464
1464
  return function() {
1465
1465
  var passThroughProps = _objectWithoutPropertiesLoose(props, ["target"]);
1466
- return render$7({
1466
+ return render$8({
1467
1467
  props: passThroughProps,
1468
1468
  slot: {},
1469
1469
  attrs,
@@ -1551,6 +1551,25 @@ var FocusableMode;
1551
1551
  FocusableMode2[FocusableMode2["Strict"] = 0] = "Strict";
1552
1552
  FocusableMode2[FocusableMode2["Loose"] = 1] = "Loose";
1553
1553
  })(FocusableMode || (FocusableMode = {}));
1554
+ function isFocusableElement(element, mode) {
1555
+ var _match;
1556
+ if (mode === void 0) {
1557
+ mode = FocusableMode.Strict;
1558
+ }
1559
+ if (element === document.body)
1560
+ return false;
1561
+ return match(mode, (_match = {}, _match[FocusableMode.Strict] = function() {
1562
+ return element.matches(focusableSelector);
1563
+ }, _match[FocusableMode.Loose] = function() {
1564
+ var next = element;
1565
+ while (next !== null) {
1566
+ if (next.matches(focusableSelector))
1567
+ return true;
1568
+ next = next.parentElement;
1569
+ }
1570
+ return false;
1571
+ }, _match));
1572
+ }
1554
1573
  function focusElement(element) {
1555
1574
  element == null ? void 0 : element.focus({
1556
1575
  preventScroll: true
@@ -1895,7 +1914,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
1895
1914
  return h(ForcePortalRoot, {
1896
1915
  force: false
1897
1916
  }, function() {
1898
- return render$7({
1917
+ return render$8({
1899
1918
  props: _extends({}, passThroughProps, propsWeControl),
1900
1919
  slot,
1901
1920
  attrs: _this.$attrs,
@@ -2068,7 +2087,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
2068
2087
  onClick: this.handleClick
2069
2088
  };
2070
2089
  var passThroughProps = this.$props;
2071
- return render$7({
2090
+ return render$8({
2072
2091
  props: _extends({}, passThroughProps, propsWeControl),
2073
2092
  slot: {
2074
2093
  open: api.dialogState.value === DialogStates.Open
@@ -2107,7 +2126,7 @@ var DialogTitle = /* @__PURE__ */ defineComponent({
2107
2126
  id: this.id
2108
2127
  };
2109
2128
  var passThroughProps = this.$props;
2110
- return render$7({
2129
+ return render$8({
2111
2130
  props: _extends({}, passThroughProps, propsWeControl),
2112
2131
  slot: {
2113
2132
  open: api.dialogState.value === DialogStates.Open
@@ -2235,7 +2254,7 @@ var Disclosure = /* @__PURE__ */ defineComponent({
2235
2254
  open: disclosureState.value === DisclosureStates.Open,
2236
2255
  close: api.close
2237
2256
  };
2238
- return render$7({
2257
+ return render$8({
2239
2258
  props: passThroughProps,
2240
2259
  slot,
2241
2260
  slots,
@@ -2278,7 +2297,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
2278
2297
  onKeydown: this.handleKeyDown,
2279
2298
  onKeyup: this.handleKeyUp
2280
2299
  };
2281
- return render$7({
2300
+ return render$8({
2282
2301
  props: _extends({}, this.$props, propsWeControl),
2283
2302
  slot,
2284
2303
  attrs: this.$attrs,
@@ -2379,7 +2398,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
2379
2398
  id: this.id,
2380
2399
  ref: "el"
2381
2400
  };
2382
- return render$7({
2401
+ return render$8({
2383
2402
  props: _extends({}, this.$props, propsWeControl),
2384
2403
  slot,
2385
2404
  attrs: this.$attrs,
@@ -2623,7 +2642,7 @@ var Menu = /* @__PURE__ */ defineComponent({
2623
2642
  var slot = {
2624
2643
  open: menuState.value === MenuStates.Open
2625
2644
  };
2626
- return render$7({
2645
+ return render$8({
2627
2646
  props,
2628
2647
  slot,
2629
2648
  slots,
@@ -2662,7 +2681,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
2662
2681
  onKeyup: this.handleKeyUp,
2663
2682
  onClick: this.handleClick
2664
2683
  };
2665
- return render$7({
2684
+ return render$8({
2666
2685
  props: _extends({}, this.$props, propsWeControl),
2667
2686
  slot,
2668
2687
  attrs: this.$attrs,
@@ -2782,7 +2801,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
2782
2801
  ref: "el"
2783
2802
  };
2784
2803
  var passThroughProps = this.$props;
2785
- return render$7({
2804
+ return render$8({
2786
2805
  props: _extends({}, passThroughProps, propsWeControl),
2787
2806
  slot,
2788
2807
  attrs: this.$attrs,
@@ -3001,7 +3020,7 @@ var MenuItem = /* @__PURE__ */ defineComponent({
3001
3020
  onPointerleave: handleLeave,
3002
3021
  onMouseleave: handleLeave
3003
3022
  };
3004
- return render$7({
3023
+ return render$8({
3005
3024
  props: _extends({}, props, propsWeControl),
3006
3025
  slot,
3007
3026
  attrs,
@@ -3011,6 +3030,458 @@ var MenuItem = /* @__PURE__ */ defineComponent({
3011
3030
  };
3012
3031
  }
3013
3032
  });
3033
+ var PopoverStates;
3034
+ (function(PopoverStates2) {
3035
+ PopoverStates2[PopoverStates2["Open"] = 0] = "Open";
3036
+ PopoverStates2[PopoverStates2["Closed"] = 1] = "Closed";
3037
+ })(PopoverStates || (PopoverStates = {}));
3038
+ var PopoverContext = /* @__PURE__ */ Symbol("PopoverContext");
3039
+ function usePopoverContext(component) {
3040
+ var context = inject(PopoverContext, null);
3041
+ if (context === null) {
3042
+ var err = new Error("<" + component + " /> is missing a parent <" + Popover.name + " /> component.");
3043
+ if (Error.captureStackTrace)
3044
+ Error.captureStackTrace(err, usePopoverContext);
3045
+ throw err;
3046
+ }
3047
+ return context;
3048
+ }
3049
+ var PopoverGroupContext = /* @__PURE__ */ Symbol("PopoverGroupContext");
3050
+ function usePopoverGroupContext() {
3051
+ return inject(PopoverGroupContext, null);
3052
+ }
3053
+ var PopoverPanelContext = /* @__PURE__ */ Symbol("PopoverPanelContext");
3054
+ function usePopoverPanelContext() {
3055
+ return inject(PopoverPanelContext, null);
3056
+ }
3057
+ var Popover = /* @__PURE__ */ defineComponent({
3058
+ name: "Popover",
3059
+ props: {
3060
+ as: {
3061
+ type: [Object, String],
3062
+ "default": "div"
3063
+ }
3064
+ },
3065
+ setup: function setup14(props, _ref) {
3066
+ var slots = _ref.slots, attrs = _ref.attrs;
3067
+ var buttonId = "headlessui-popover-button-" + useId();
3068
+ var panelId = "headlessui-popover-panel-" + useId();
3069
+ var popoverState = ref(PopoverStates.Closed);
3070
+ var button = ref(null);
3071
+ var panel = ref(null);
3072
+ var api = {
3073
+ popoverState,
3074
+ buttonId,
3075
+ panelId,
3076
+ panel,
3077
+ button,
3078
+ togglePopover: function togglePopover() {
3079
+ var _match;
3080
+ popoverState.value = match(popoverState.value, (_match = {}, _match[PopoverStates.Open] = PopoverStates.Closed, _match[PopoverStates.Closed] = PopoverStates.Open, _match));
3081
+ },
3082
+ closePopover: function closePopover() {
3083
+ if (popoverState.value === PopoverStates.Closed)
3084
+ return;
3085
+ popoverState.value = PopoverStates.Closed;
3086
+ },
3087
+ close: function close2(focusableElement) {
3088
+ api.closePopover();
3089
+ var restoreElement = function() {
3090
+ if (!focusableElement)
3091
+ return dom(api.button);
3092
+ if (focusableElement instanceof HTMLElement)
3093
+ return focusableElement;
3094
+ if (focusableElement.value instanceof HTMLElement)
3095
+ return dom(focusableElement);
3096
+ return dom(api.button);
3097
+ }();
3098
+ restoreElement == null ? void 0 : restoreElement.focus();
3099
+ }
3100
+ };
3101
+ provide(PopoverContext, api);
3102
+ useOpenClosedProvider(computed(function() {
3103
+ var _match2;
3104
+ return match(popoverState.value, (_match2 = {}, _match2[PopoverStates.Open] = State.Open, _match2[PopoverStates.Closed] = State.Closed, _match2));
3105
+ }));
3106
+ var registerBag = {
3107
+ buttonId,
3108
+ panelId,
3109
+ close: function close2() {
3110
+ api.closePopover();
3111
+ }
3112
+ };
3113
+ var groupContext = usePopoverGroupContext();
3114
+ var registerPopover = groupContext == null ? void 0 : groupContext.registerPopover;
3115
+ function isFocusWithinPopoverGroup() {
3116
+ var _groupContext$isFocus, _dom, _dom2;
3117
+ return (_groupContext$isFocus = groupContext == null ? void 0 : groupContext.isFocusWithinPopoverGroup()) != null ? _groupContext$isFocus : ((_dom = dom(button)) == null ? void 0 : _dom.contains(document.activeElement)) || ((_dom2 = dom(panel)) == null ? void 0 : _dom2.contains(document.activeElement));
3118
+ }
3119
+ watchEffect(function() {
3120
+ return registerPopover == null ? void 0 : registerPopover(registerBag);
3121
+ });
3122
+ useWindowEvent("focus", function() {
3123
+ if (popoverState.value !== PopoverStates.Open)
3124
+ return;
3125
+ if (isFocusWithinPopoverGroup())
3126
+ return;
3127
+ if (!button)
3128
+ return;
3129
+ if (!panel)
3130
+ return;
3131
+ api.closePopover();
3132
+ }, true);
3133
+ useWindowEvent("mousedown", function(event) {
3134
+ var _dom3, _dom4;
3135
+ var target = event.target;
3136
+ if (popoverState.value !== PopoverStates.Open)
3137
+ return;
3138
+ if ((_dom3 = dom(button)) == null ? void 0 : _dom3.contains(target))
3139
+ return;
3140
+ if ((_dom4 = dom(panel)) == null ? void 0 : _dom4.contains(target))
3141
+ return;
3142
+ api.closePopover();
3143
+ if (!isFocusableElement(target, FocusableMode.Loose)) {
3144
+ var _dom5;
3145
+ event.preventDefault();
3146
+ (_dom5 = dom(button)) == null ? void 0 : _dom5.focus();
3147
+ }
3148
+ });
3149
+ return function() {
3150
+ var slot = {
3151
+ open: popoverState.value === PopoverStates.Open,
3152
+ close: api.close
3153
+ };
3154
+ return render$8({
3155
+ props,
3156
+ slot,
3157
+ slots,
3158
+ attrs,
3159
+ name: "Popover"
3160
+ });
3161
+ };
3162
+ }
3163
+ });
3164
+ var PopoverButton = /* @__PURE__ */ defineComponent({
3165
+ name: "PopoverButton",
3166
+ props: {
3167
+ as: {
3168
+ type: [Object, String],
3169
+ "default": "button"
3170
+ },
3171
+ disabled: {
3172
+ type: [Boolean],
3173
+ "default": false
3174
+ }
3175
+ },
3176
+ render: function render$18() {
3177
+ var api = usePopoverContext("PopoverButton");
3178
+ var slot = {
3179
+ open: api.popoverState.value === PopoverStates.Open
3180
+ };
3181
+ var propsWeControl = this.isWithinPanel ? {
3182
+ ref: "el",
3183
+ type: this.type,
3184
+ onKeydown: this.handleKeyDown,
3185
+ onClick: this.handleClick
3186
+ } : {
3187
+ ref: "el",
3188
+ id: api.buttonId,
3189
+ type: this.type,
3190
+ "aria-expanded": this.$props.disabled ? void 0 : api.popoverState.value === PopoverStates.Open,
3191
+ "aria-controls": dom(api.panel) ? api.panelId : void 0,
3192
+ disabled: this.$props.disabled ? true : void 0,
3193
+ onKeydown: this.handleKeyDown,
3194
+ onKeyup: this.handleKeyUp,
3195
+ onClick: this.handleClick
3196
+ };
3197
+ return render$8({
3198
+ props: _extends({}, this.$props, propsWeControl),
3199
+ slot,
3200
+ attrs: this.$attrs,
3201
+ slots: this.$slots,
3202
+ name: "PopoverButton"
3203
+ });
3204
+ },
3205
+ setup: function setup15(props, _ref2) {
3206
+ var attrs = _ref2.attrs;
3207
+ var api = usePopoverContext("PopoverButton");
3208
+ var groupContext = usePopoverGroupContext();
3209
+ var closeOthers = groupContext == null ? void 0 : groupContext.closeOthers;
3210
+ var panelContext = usePopoverPanelContext();
3211
+ var isWithinPanel = panelContext === null ? false : panelContext === api.panelId;
3212
+ var activeElementRef = ref(null);
3213
+ var previousActiveElementRef = ref(typeof window === "undefined" ? null : document.activeElement);
3214
+ useWindowEvent("focus", function() {
3215
+ previousActiveElementRef.value = activeElementRef.value;
3216
+ activeElementRef.value = document.activeElement;
3217
+ }, true);
3218
+ var elementRef = ref(null);
3219
+ if (!isWithinPanel) {
3220
+ watchEffect(function() {
3221
+ api.button.value = elementRef.value;
3222
+ });
3223
+ }
3224
+ return {
3225
+ isWithinPanel,
3226
+ el: elementRef,
3227
+ type: useResolveButtonType(computed(function() {
3228
+ return {
3229
+ as: props.as,
3230
+ type: attrs.type
3231
+ };
3232
+ }), elementRef),
3233
+ handleKeyDown: function handleKeyDown(event) {
3234
+ var _dom6, _dom7;
3235
+ if (isWithinPanel) {
3236
+ if (api.popoverState.value === PopoverStates.Closed)
3237
+ return;
3238
+ switch (event.key) {
3239
+ case Keys.Space:
3240
+ case Keys.Enter:
3241
+ event.preventDefault();
3242
+ event.stopPropagation();
3243
+ api.closePopover();
3244
+ (_dom6 = dom(api.button)) == null ? void 0 : _dom6.focus();
3245
+ break;
3246
+ }
3247
+ } else {
3248
+ switch (event.key) {
3249
+ case Keys.Space:
3250
+ case Keys.Enter:
3251
+ event.preventDefault();
3252
+ event.stopPropagation();
3253
+ if (api.popoverState.value === PopoverStates.Closed)
3254
+ closeOthers == null ? void 0 : closeOthers(api.buttonId);
3255
+ api.togglePopover();
3256
+ break;
3257
+ case Keys.Escape:
3258
+ if (api.popoverState.value !== PopoverStates.Open)
3259
+ return closeOthers == null ? void 0 : closeOthers(api.buttonId);
3260
+ if (!dom(api.button))
3261
+ return;
3262
+ if (!((_dom7 = dom(api.button)) == null ? void 0 : _dom7.contains(document.activeElement)))
3263
+ return;
3264
+ event.preventDefault();
3265
+ event.stopPropagation();
3266
+ api.closePopover();
3267
+ break;
3268
+ case Keys.Tab:
3269
+ if (api.popoverState.value !== PopoverStates.Open)
3270
+ return;
3271
+ if (!api.panel)
3272
+ return;
3273
+ if (!api.button)
3274
+ return;
3275
+ if (event.shiftKey) {
3276
+ var _dom8, _dom9;
3277
+ if (!previousActiveElementRef.value)
3278
+ return;
3279
+ if ((_dom8 = dom(api.button)) == null ? void 0 : _dom8.contains(previousActiveElementRef.value))
3280
+ return;
3281
+ if ((_dom9 = dom(api.panel)) == null ? void 0 : _dom9.contains(previousActiveElementRef.value))
3282
+ return;
3283
+ var focusableElements = getFocusableElements();
3284
+ var previousIdx = focusableElements.indexOf(previousActiveElementRef.value);
3285
+ var buttonIdx = focusableElements.indexOf(dom(api.button));
3286
+ if (buttonIdx > previousIdx)
3287
+ return;
3288
+ event.preventDefault();
3289
+ event.stopPropagation();
3290
+ focusIn(dom(api.panel), Focus$1.Last);
3291
+ } else {
3292
+ event.preventDefault();
3293
+ event.stopPropagation();
3294
+ focusIn(dom(api.panel), Focus$1.First);
3295
+ }
3296
+ break;
3297
+ }
3298
+ }
3299
+ },
3300
+ handleKeyUp: function handleKeyUp(event) {
3301
+ var _dom10, _dom11;
3302
+ if (isWithinPanel)
3303
+ return;
3304
+ if (event.key === Keys.Space) {
3305
+ event.preventDefault();
3306
+ }
3307
+ if (api.popoverState.value !== PopoverStates.Open)
3308
+ return;
3309
+ if (!api.panel)
3310
+ return;
3311
+ if (!api.button)
3312
+ return;
3313
+ switch (event.key) {
3314
+ case Keys.Tab:
3315
+ if (!previousActiveElementRef.value)
3316
+ return;
3317
+ if ((_dom10 = dom(api.button)) == null ? void 0 : _dom10.contains(previousActiveElementRef.value))
3318
+ return;
3319
+ if ((_dom11 = dom(api.panel)) == null ? void 0 : _dom11.contains(previousActiveElementRef.value))
3320
+ return;
3321
+ var focusableElements = getFocusableElements();
3322
+ var previousIdx = focusableElements.indexOf(previousActiveElementRef.value);
3323
+ var buttonIdx = focusableElements.indexOf(dom(api.button));
3324
+ if (buttonIdx > previousIdx)
3325
+ return;
3326
+ event.preventDefault();
3327
+ event.stopPropagation();
3328
+ focusIn(dom(api.panel), Focus$1.Last);
3329
+ break;
3330
+ }
3331
+ },
3332
+ handleClick: function handleClick() {
3333
+ if (props.disabled)
3334
+ return;
3335
+ if (isWithinPanel) {
3336
+ var _dom12;
3337
+ api.closePopover();
3338
+ (_dom12 = dom(api.button)) == null ? void 0 : _dom12.focus();
3339
+ } else {
3340
+ var _dom13;
3341
+ if (api.popoverState.value === PopoverStates.Closed)
3342
+ closeOthers == null ? void 0 : closeOthers(api.buttonId);
3343
+ (_dom13 = dom(api.button)) == null ? void 0 : _dom13.focus();
3344
+ api.togglePopover();
3345
+ }
3346
+ }
3347
+ };
3348
+ }
3349
+ });
3350
+ var PopoverPanel = /* @__PURE__ */ defineComponent({
3351
+ name: "PopoverPanel",
3352
+ props: {
3353
+ as: {
3354
+ type: [Object, String],
3355
+ "default": "div"
3356
+ },
3357
+ "static": {
3358
+ type: Boolean,
3359
+ "default": false
3360
+ },
3361
+ unmount: {
3362
+ type: Boolean,
3363
+ "default": true
3364
+ },
3365
+ focus: {
3366
+ type: Boolean,
3367
+ "default": false
3368
+ }
3369
+ },
3370
+ render: function render$19() {
3371
+ var api = usePopoverContext("PopoverPanel");
3372
+ var slot = {
3373
+ open: api.popoverState.value === PopoverStates.Open,
3374
+ close: api.close
3375
+ };
3376
+ var propsWeControl = {
3377
+ ref: "el",
3378
+ id: this.id,
3379
+ onKeydown: this.handleKeyDown
3380
+ };
3381
+ return render$8({
3382
+ props: _extends({}, this.$props, propsWeControl),
3383
+ slot,
3384
+ attrs: this.$attrs,
3385
+ slots: this.$slots,
3386
+ features: Features.RenderStrategy | Features.Static,
3387
+ visible: this.visible,
3388
+ name: "PopoverPanel"
3389
+ });
3390
+ },
3391
+ setup: function setup16(props) {
3392
+ var focus = props.focus;
3393
+ var api = usePopoverContext("PopoverPanel");
3394
+ provide(PopoverPanelContext, api.panelId);
3395
+ onUnmounted(function() {
3396
+ api.panel.value = null;
3397
+ });
3398
+ watchEffect(function() {
3399
+ var _dom14;
3400
+ if (!focus)
3401
+ return;
3402
+ if (api.popoverState.value !== PopoverStates.Open)
3403
+ return;
3404
+ if (!api.panel)
3405
+ return;
3406
+ var activeElement = document.activeElement;
3407
+ if ((_dom14 = dom(api.panel)) == null ? void 0 : _dom14.contains(activeElement))
3408
+ return;
3409
+ focusIn(dom(api.panel), Focus$1.First);
3410
+ });
3411
+ useWindowEvent("keydown", function(event) {
3412
+ var _dom15;
3413
+ if (api.popoverState.value !== PopoverStates.Open)
3414
+ return;
3415
+ if (!dom(api.panel))
3416
+ return;
3417
+ if (event.key !== Keys.Tab)
3418
+ return;
3419
+ if (!document.activeElement)
3420
+ return;
3421
+ if (!((_dom15 = dom(api.panel)) == null ? void 0 : _dom15.contains(document.activeElement)))
3422
+ return;
3423
+ event.preventDefault();
3424
+ var result = focusIn(dom(api.panel), event.shiftKey ? Focus$1.Previous : Focus$1.Next);
3425
+ if (result === FocusResult.Underflow) {
3426
+ var _dom16;
3427
+ return (_dom16 = dom(api.button)) == null ? void 0 : _dom16.focus();
3428
+ } else if (result === FocusResult.Overflow) {
3429
+ if (!dom(api.button))
3430
+ return;
3431
+ var elements = getFocusableElements();
3432
+ var buttonIdx = elements.indexOf(dom(api.button));
3433
+ var nextElements = elements.splice(buttonIdx + 1).filter(function(element) {
3434
+ var _dom17;
3435
+ return !((_dom17 = dom(api.panel)) == null ? void 0 : _dom17.contains(element));
3436
+ });
3437
+ if (focusIn(nextElements, Focus$1.First) === FocusResult.Error) {
3438
+ focusIn(document.body, Focus$1.First);
3439
+ }
3440
+ }
3441
+ });
3442
+ useWindowEvent("focus", function() {
3443
+ var _dom18;
3444
+ if (!focus)
3445
+ return;
3446
+ if (api.popoverState.value !== PopoverStates.Open)
3447
+ return;
3448
+ if (!dom(api.panel))
3449
+ return;
3450
+ if ((_dom18 = dom(api.panel)) == null ? void 0 : _dom18.contains(document.activeElement))
3451
+ return;
3452
+ api.closePopover();
3453
+ }, true);
3454
+ var usesOpenClosedState = useOpenClosed();
3455
+ var visible = computed(function() {
3456
+ if (usesOpenClosedState !== null) {
3457
+ return usesOpenClosedState.value === State.Open;
3458
+ }
3459
+ return api.popoverState.value === PopoverStates.Open;
3460
+ });
3461
+ return {
3462
+ id: api.panelId,
3463
+ el: api.panel,
3464
+ handleKeyDown: function handleKeyDown(event) {
3465
+ var _dom19, _dom20;
3466
+ switch (event.key) {
3467
+ case Keys.Escape:
3468
+ if (api.popoverState.value !== PopoverStates.Open)
3469
+ return;
3470
+ if (!dom(api.panel))
3471
+ return;
3472
+ if (!((_dom19 = dom(api.panel)) == null ? void 0 : _dom19.contains(document.activeElement)))
3473
+ return;
3474
+ event.preventDefault();
3475
+ event.stopPropagation();
3476
+ api.closePopover();
3477
+ (_dom20 = dom(api.button)) == null ? void 0 : _dom20.focus();
3478
+ break;
3479
+ }
3480
+ },
3481
+ visible
3482
+ };
3483
+ }
3484
+ });
3014
3485
  var GroupContext = /* @__PURE__ */ Symbol("GroupContext");
3015
3486
  var Switch = /* @__PURE__ */ defineComponent({
3016
3487
  name: "Switch",
@@ -3029,7 +3500,7 @@ var Switch = /* @__PURE__ */ defineComponent({
3029
3500
  "default": false
3030
3501
  }
3031
3502
  },
3032
- render: function render$18() {
3503
+ render: function render$110() {
3033
3504
  var slot = {
3034
3505
  checked: this.$props.modelValue
3035
3506
  };
@@ -3046,7 +3517,7 @@ var Switch = /* @__PURE__ */ defineComponent({
3046
3517
  onKeyup: this.handleKeyUp,
3047
3518
  onKeypress: this.handleKeyPress
3048
3519
  };
3049
- return render$7({
3520
+ return render$8({
3050
3521
  props: _extends({}, this.$props, propsWeControl),
3051
3522
  slot,
3052
3523
  attrs: this.$attrs,
@@ -3054,7 +3525,7 @@ var Switch = /* @__PURE__ */ defineComponent({
3054
3525
  name: "Switch"
3055
3526
  });
3056
3527
  },
3057
- setup: function setup14(props, _ref2) {
3528
+ setup: function setup17(props, _ref2) {
3058
3529
  var emit = _ref2.emit, attrs = _ref2.attrs;
3059
3530
  var api = inject(GroupContext, null);
3060
3531
  var id2 = "headlessui-switch-" + useId();
@@ -3373,7 +3844,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
3373
3844
  return true;
3374
3845
  }
3375
3846
  },
3376
- render: function render$19() {
3847
+ render: function render$111() {
3377
3848
  var _this = this;
3378
3849
  if (this.renderAsRoot) {
3379
3850
  return h(TransitionRoot, _extends({}, this.$props, {
@@ -3396,7 +3867,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
3396
3867
  ref: "el"
3397
3868
  };
3398
3869
  var passthroughProps = rest;
3399
- return render$7({
3870
+ return render$8({
3400
3871
  props: _extends({}, passthroughProps, propsWeControl),
3401
3872
  slot: {},
3402
3873
  slots: this.$slots,
@@ -3406,7 +3877,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
3406
3877
  name: "TransitionChild"
3407
3878
  });
3408
3879
  },
3409
- setup: function setup15(props, _ref4) {
3880
+ setup: function setup18(props, _ref4) {
3410
3881
  var emit = _ref4.emit;
3411
3882
  if (!hasTransitionContext() && hasOpenClosed()) {
3412
3883
  return {
@@ -3581,13 +4052,13 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
3581
4052
  return true;
3582
4053
  }
3583
4054
  },
3584
- render: function render$110() {
4055
+ render: function render$112() {
3585
4056
  var _this2 = this;
3586
4057
  var _this$$props2 = this.$props, unmount = _this$$props2.unmount, passThroughProps = _objectWithoutPropertiesLoose(_this$$props2, ["show", "appear", "unmount"]);
3587
4058
  var sharedProps = {
3588
4059
  unmount
3589
4060
  };
3590
- return render$7({
4061
+ return render$8({
3591
4062
  props: _extends({}, sharedProps, {
3592
4063
  as: "template"
3593
4064
  }),
@@ -3616,7 +4087,7 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
3616
4087
  name: "Transition"
3617
4088
  });
3618
4089
  },
3619
- setup: function setup16(props) {
4090
+ setup: function setup19(props) {
3620
4091
  var usesOpenClosedState = useOpenClosed();
3621
4092
  var show = computed(function() {
3622
4093
  if (props.show === null && usesOpenClosedState !== null) {
@@ -3661,7 +4132,7 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
3661
4132
  };
3662
4133
  }
3663
4134
  });
3664
- function render$6(_ctx, _cache) {
4135
+ function render$7(_ctx, _cache) {
3665
4136
  return openBlock(), createBlock("svg", {
3666
4137
  xmlns: "http://www.w3.org/2000/svg",
3667
4138
  viewBox: "0 0 20 20",
@@ -3675,7 +4146,7 @@ function render$6(_ctx, _cache) {
3675
4146
  })
3676
4147
  ]);
3677
4148
  }
3678
- function render$5(_ctx, _cache) {
4149
+ function render$6(_ctx, _cache) {
3679
4150
  return openBlock(), createBlock("svg", {
3680
4151
  xmlns: "http://www.w3.org/2000/svg",
3681
4152
  viewBox: "0 0 20 20",
@@ -3685,7 +4156,7 @@ function render$5(_ctx, _cache) {
3685
4156
  createVNode("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
3686
4157
  ]);
3687
4158
  }
3688
- function render$4(_ctx, _cache) {
4159
+ function render$5(_ctx, _cache) {
3689
4160
  return openBlock(), createBlock("svg", {
3690
4161
  xmlns: "http://www.w3.org/2000/svg",
3691
4162
  viewBox: "0 0 20 20",
@@ -3699,10 +4170,10 @@ function render$4(_ctx, _cache) {
3699
4170
  })
3700
4171
  ]);
3701
4172
  }
3702
- const _hoisted_1$o = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Open options", -1);
3703
- const _hoisted_2$j = { class: "py-1" };
4173
+ const _hoisted_1$r = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Open options", -1);
4174
+ const _hoisted_2$k = { class: "py-1" };
3704
4175
  const _hoisted_3$g = ["textContent", "onClick"];
3705
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
4176
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
3706
4177
  props: {
3707
4178
  currentUser: null,
3708
4179
  items: null,
@@ -3743,8 +4214,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3743
4214
  disabled: !hasActionItems.value
3744
4215
  }, {
3745
4216
  default: withCtx(() => [
3746
- _hoisted_1$o,
3747
- createVNode(unref(render$5), {
4217
+ _hoisted_1$r,
4218
+ createVNode(unref(render$6), {
3748
4219
  class: "w-5 h-5",
3749
4220
  "aria-hidden": "true"
3750
4221
  })
@@ -3762,7 +4233,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3762
4233
  default: withCtx(() => [
3763
4234
  createVNode(unref(MenuItems), { class: "z-10 mx-3 origin-top-right absolute right-7 top-0 w-48 mt-1 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-200 focus:outline-none" }, {
3764
4235
  default: withCtx(() => [
3765
- createElementVNode("div", _hoisted_2$j, [
4236
+ createElementVNode("div", _hoisted_2$k, [
3766
4237
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, idx) => {
3767
4238
  return openBlock(), createElementBlock(Fragment, { key: idx }, [
3768
4239
  show(item) ? (openBlock(), createBlock(unref(MenuItem), {
@@ -3797,10 +4268,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3797
4268
  };
3798
4269
  }
3799
4270
  });
3800
- const _hoisted_1$n = { class: "px-4 py-5 sm:p-6 text-center" };
3801
- const _hoisted_2$i = ["textContent"];
4271
+ const _hoisted_1$q = { class: "px-4 py-5 sm:p-6 text-center" };
4272
+ const _hoisted_2$j = ["textContent"];
3802
4273
  const _hoisted_3$f = ["textContent"];
3803
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
4274
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3804
4275
  props: {
3805
4276
  cards: null
3806
4277
  },
@@ -3814,12 +4285,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
3814
4285
  class: "bg-white overflow-hidden shadow rounded-lg",
3815
4286
  key: idx
3816
4287
  }, [
3817
- createElementVNode("div", _hoisted_1$n, [
4288
+ createElementVNode("div", _hoisted_1$q, [
3818
4289
  createElementVNode("dl", null, [
3819
4290
  createElementVNode("dd", {
3820
4291
  class: "mt-1 text-3xl leading-9 font-semibold text-xy-blue",
3821
4292
  textContent: toDisplayString(card.primary)
3822
- }, null, 8, _hoisted_2$i),
4293
+ }, null, 8, _hoisted_2$j),
3823
4294
  createElementVNode("dt", {
3824
4295
  class: "text-sm leading-5 font-medium text-gray-700 truncate",
3825
4296
  textContent: toDisplayString(card.secondary)
@@ -3832,16 +4303,16 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
3832
4303
  };
3833
4304
  }
3834
4305
  });
3835
- const _hoisted_1$m = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
3836
- const _hoisted_2$h = /* @__PURE__ */ createElementVNode("span", {
4306
+ const _hoisted_1$p = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
4307
+ const _hoisted_2$i = /* @__PURE__ */ createElementVNode("span", {
3837
4308
  class: "hidden sm:inline-block sm:align-middle sm:h-screen",
3838
4309
  "aria-hidden": "true"
3839
4310
  }, "\u200B", -1);
3840
4311
  const _hoisted_3$e = { class: "inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6" };
3841
4312
  const _hoisted_4$b = { class: "mt-3 text-center sm:mt-5" };
3842
- const _hoisted_5$a = { class: "mt-2" };
3843
- const _hoisted_6$a = { class: "mt-5 sm:mt-6" };
3844
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
4313
+ const _hoisted_5$9 = { class: "mt-2" };
4314
+ const _hoisted_6$9 = { class: "mt-5 sm:mt-6" };
4315
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
3845
4316
  props: {
3846
4317
  modelValue: { type: Boolean },
3847
4318
  title: { default: "" }
@@ -3865,7 +4336,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
3865
4336
  open: __props.modelValue
3866
4337
  }, {
3867
4338
  default: withCtx(() => [
3868
- createElementVNode("div", _hoisted_1$m, [
4339
+ createElementVNode("div", _hoisted_1$p, [
3869
4340
  createVNode(unref(TransitionChild), {
3870
4341
  as: "template",
3871
4342
  enter: "ease-out duration-300",
@@ -3880,7 +4351,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
3880
4351
  ]),
3881
4352
  _: 1
3882
4353
  }),
3883
- _hoisted_2$h,
4354
+ _hoisted_2$i,
3884
4355
  createVNode(unref(TransitionChild), {
3885
4356
  as: "template",
3886
4357
  enter: "ease-out duration-300",
@@ -3899,12 +4370,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
3899
4370
  as: "h3",
3900
4371
  textContent: toDisplayString(__props.title)
3901
4372
  }, null, 8, ["textContent"]),
3902
- createElementVNode("div", _hoisted_5$a, [
4373
+ createElementVNode("div", _hoisted_5$9, [
3903
4374
  renderSlot(_ctx.$slots, "default")
3904
4375
  ])
3905
4376
  ])
3906
4377
  ]),
3907
- createElementVNode("div", _hoisted_6$a, [
4378
+ createElementVNode("div", _hoisted_6$9, [
3908
4379
  createElementVNode("button", {
3909
4380
  type: "button",
3910
4381
  class: "inline-flex justify-center w-full xy-btn",
@@ -6018,7 +6489,7 @@ if (typeof window !== "undefined") {
6018
6489
  window.flatpickr = flatpickr;
6019
6490
  }
6020
6491
  var flatpickr_min = "";
6021
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
6492
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6022
6493
  props: {
6023
6494
  label: { default: "" },
6024
6495
  tag: { default: "label" }
@@ -6036,7 +6507,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6036
6507
  };
6037
6508
  }
6038
6509
  });
6039
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
6510
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
6040
6511
  props: {
6041
6512
  tag: { default: "div" },
6042
6513
  text: { default: "" }
@@ -6054,8 +6525,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6054
6525
  };
6055
6526
  }
6056
6527
  });
6057
- const _hoisted_1$l = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
6058
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
6528
+ const _hoisted_1$o = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
6529
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
6059
6530
  props: {
6060
6531
  type: null,
6061
6532
  help: { default: "" },
@@ -6086,7 +6557,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6086
6557
  });
6087
6558
  return (_ctx, _cache) => {
6088
6559
  return openBlock(), createElementBlock(Fragment, null, [
6089
- createVNode(_sfc_main$o, {
6560
+ createVNode(_sfc_main$r, {
6090
6561
  class: "block",
6091
6562
  id: `${unref(uuid)}-label`,
6092
6563
  for: unref(uuid),
@@ -6112,8 +6583,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6112
6583
  type: __props.type,
6113
6584
  value: __props.modelValue,
6114
6585
  onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
6115
- }, _ctx.$attrs), null, 16, _hoisted_1$l),
6116
- createVNode(_sfc_main$n, {
6586
+ }, _ctx.$attrs), null, 16, _hoisted_1$o),
6587
+ createVNode(_sfc_main$q, {
6117
6588
  id: `${unref(uuid)}-help`,
6118
6589
  text: __props.help
6119
6590
  }, null, 8, ["id", "text"])
@@ -6121,7 +6592,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6121
6592
  };
6122
6593
  }
6123
6594
  });
6124
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
6595
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6125
6596
  props: {
6126
6597
  modelValue: null,
6127
6598
  startDate: { default: 0 },
@@ -6158,7 +6629,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6158
6629
  });
6159
6630
  });
6160
6631
  return (_ctx, _cache) => {
6161
- return openBlock(), createBlock(_sfc_main$m, {
6632
+ return openBlock(), createBlock(_sfc_main$p, {
6162
6633
  type: "text",
6163
6634
  placeholder: "mm-dd-yyyy range",
6164
6635
  id: unref(uuid),
@@ -6168,17 +6639,74 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6168
6639
  };
6169
6640
  }
6170
6641
  });
6171
- const _hoisted_1$k = { class: "md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100" };
6642
+ const _hoisted_1$n = ["aria-labelledby", "aria-describedby", "id", "value"];
6643
+ const _hoisted_2$h = {
6644
+ key: 0,
6645
+ value: "",
6646
+ disabled: "",
6647
+ selected: ""
6648
+ };
6649
+ const _hoisted_3$d = ["value", "textContent"];
6650
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6651
+ props: {
6652
+ design: { default: "standard" },
6653
+ label: { default: "" },
6654
+ help: { default: "" },
6655
+ placeholder: { default: "Select an option" },
6656
+ options: null,
6657
+ modelValue: null
6658
+ },
6659
+ emits: ["update:modelValue"],
6660
+ setup(__props, { emit }) {
6661
+ const props = __props;
6662
+ const attrs = useAttrs();
6663
+ const uuid = attrs.id || Uniques.CreateIdAttribute();
6664
+ const classes = computed(() => {
6665
+ return {
6666
+ standard: "mt-1 block w-full border border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
6667
+ compressed: "appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-600 text-gray-900 focus:outline-none focus:ring-blue-500 focus:border-blue-500 focus:z-10 sm:text-sm"
6668
+ }[props.design];
6669
+ });
6670
+ return (_ctx, _cache) => {
6671
+ return openBlock(), createElementBlock(Fragment, null, [
6672
+ createVNode(_sfc_main$r, {
6673
+ id: `${unref(uuid)}-label`,
6674
+ for: unref(uuid),
6675
+ label: __props.label
6676
+ }, null, 8, ["id", "for", "label"]),
6677
+ createElementVNode("select", mergeProps({
6678
+ "aria-labelledby": __props.label ? `${unref(uuid)}-label` : void 0,
6679
+ "aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0,
6680
+ class: unref(classes),
6681
+ id: unref(uuid),
6682
+ value: __props.modelValue
6683
+ }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
6684
+ onChange: ($event) => {
6685
+ emit("update:modelValue", $event.target.value);
6686
+ }
6687
+ })), [
6688
+ __props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$h, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
6689
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
6690
+ return openBlock(), createElementBlock("option", {
6691
+ value: option.value,
6692
+ textContent: toDisplayString(option.label),
6693
+ key: option.value
6694
+ }, null, 8, _hoisted_3$d);
6695
+ }), 128))
6696
+ ], 16, _hoisted_1$n),
6697
+ createVNode(_sfc_main$q, {
6698
+ id: `${unref(uuid)}-help`,
6699
+ text: __props.help
6700
+ }, null, 8, ["id", "text"])
6701
+ ], 64);
6702
+ };
6703
+ }
6704
+ });
6705
+ const _hoisted_1$m = { class: "md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100" };
6172
6706
  const _hoisted_2$g = { class: "flex-1 min-w-0" };
6173
- const _hoisted_3$d = { class: "text-lg leading-6 font-semibold text-gray-900" };
6707
+ const _hoisted_3$c = { class: "text-lg leading-6 font-semibold text-gray-900" };
6174
6708
  const _hoisted_4$a = { class: "mt-4 flex md:mt-0 md:ml-4" };
6175
- const _hoisted_5$9 = /* @__PURE__ */ createElementVNode("option", { value: "DESC" }, "Newest-Oldest", -1);
6176
- const _hoisted_6$9 = /* @__PURE__ */ createElementVNode("option", { value: "ASC" }, "Oldest-Newest", -1);
6177
- const _hoisted_7$9 = [
6178
- _hoisted_5$9,
6179
- _hoisted_6$9
6180
- ];
6181
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
6709
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6182
6710
  props: {
6183
6711
  dateRange: null,
6184
6712
  sortDir: null,
@@ -6188,25 +6716,37 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6188
6716
  setup(__props, { emit: emits }) {
6189
6717
  const props = __props;
6190
6718
  const dateRange = ref(props.dateRange);
6191
- const sortDirChanged = (sortDir) => {
6192
- emits("sort-dir-changed", sortDir);
6719
+ const sortDir = ref(props.sortDir);
6720
+ const sortOptions = [
6721
+ { label: "Newest-Oldest", value: "DESC" },
6722
+ { label: "Oldest-Newest", value: "ASC" }
6723
+ ];
6724
+ const sortDirChanged = (sortDir2) => {
6725
+ emits("sort-dir-changed", sortDir2);
6193
6726
  };
6194
6727
  const dateRangeChanged = (dateRange2) => {
6195
6728
  emits("date-range-changed", dateRange2);
6196
6729
  };
6197
6730
  return (_ctx, _cache) => {
6198
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
6731
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
6199
6732
  createElementVNode("div", _hoisted_2$g, [
6200
- createElementVNode("h1", _hoisted_3$d, toDisplayString(__props.title), 1)
6733
+ createElementVNode("h1", _hoisted_3$c, toDisplayString(__props.title), 1)
6201
6734
  ]),
6202
6735
  createElementVNode("div", _hoisted_4$a, [
6203
- createElementVNode("select", {
6204
- onChange: _cache[0] || (_cache[0] = ($event) => sortDirChanged($event.target.value)),
6205
- class: "block w-full border border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm"
6206
- }, _hoisted_7$9, 32),
6207
- createVNode(_sfc_main$l, {
6736
+ createVNode(_sfc_main$n, {
6737
+ modelValue: sortDir.value,
6738
+ "onUpdate:modelValue": [
6739
+ _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
6740
+ sortDirChanged
6741
+ ],
6742
+ options: sortOptions
6743
+ }, null, 8, ["modelValue"]),
6744
+ createVNode(_sfc_main$o, {
6208
6745
  modelValue: dateRange.value,
6209
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => dateRangeChanged($event)),
6746
+ "onUpdate:modelValue": [
6747
+ _cache[1] || (_cache[1] = ($event) => dateRange.value = $event),
6748
+ dateRangeChanged
6749
+ ],
6210
6750
  class: "ml-3"
6211
6751
  }, null, 8, ["modelValue"])
6212
6752
  ])
@@ -6214,9 +6754,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6214
6754
  };
6215
6755
  }
6216
6756
  });
6217
- const _hoisted_1$j = { class: "px-4 flex items-center justify-between sm:px-0" };
6757
+ const _hoisted_1$l = { class: "px-4 flex items-center justify-between sm:px-0" };
6218
6758
  const _hoisted_2$f = { class: "w-0 flex-1 flex" };
6219
- const _hoisted_3$c = /* @__PURE__ */ createElementVNode("svg", {
6759
+ const _hoisted_3$b = /* @__PURE__ */ createElementVNode("svg", {
6220
6760
  class: "mr-3 h-5 w-5",
6221
6761
  fill: "currentColor",
6222
6762
  viewBox: "0 0 20 20"
@@ -6229,7 +6769,7 @@ const _hoisted_3$c = /* @__PURE__ */ createElementVNode("svg", {
6229
6769
  ], -1);
6230
6770
  const _hoisted_4$9 = /* @__PURE__ */ createTextVNode(" Previous ");
6231
6771
  const _hoisted_5$8 = [
6232
- _hoisted_3$c,
6772
+ _hoisted_3$b,
6233
6773
  _hoisted_4$9
6234
6774
  ];
6235
6775
  const _hoisted_6$8 = { class: "hidden md:flex" };
@@ -6251,7 +6791,7 @@ const _hoisted_11$5 = [
6251
6791
  _hoisted_9$8,
6252
6792
  _hoisted_10$8
6253
6793
  ];
6254
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
6794
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6255
6795
  props: {
6256
6796
  modelValue: null
6257
6797
  },
@@ -6287,7 +6827,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6287
6827
  return shortcuts;
6288
6828
  });
6289
6829
  return (_ctx, _cache) => {
6290
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
6830
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
6291
6831
  createElementVNode("div", _hoisted_2$f, [
6292
6832
  createElementVNode("a", {
6293
6833
  href: "#",
@@ -6326,11 +6866,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6326
6866
  };
6327
6867
  }
6328
6868
  });
6329
- const _hoisted_1$i = {
6869
+ const _hoisted_1$k = {
6330
6870
  key: 0,
6331
6871
  class: "shadow overflow-hidden sm:rounded-md border"
6332
6872
  };
6333
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
6873
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6334
6874
  props: {
6335
6875
  refreshTrigger: { default: 0 },
6336
6876
  reloadTrigger: { default: 0 },
@@ -6385,14 +6925,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6385
6925
  loadAndRender(true);
6386
6926
  return (_ctx, _cache) => {
6387
6927
  return openBlock(), createElementBlock("div", null, [
6388
- createVNode(_sfc_main$k, {
6928
+ createVNode(_sfc_main$m, {
6389
6929
  "date-range": dateRange.value,
6390
6930
  "sort-dir": sortDir.value,
6391
6931
  title: __props.title,
6392
6932
  onSortDirChanged: _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
6393
6933
  onDateRangeChanged: _cache[1] || (_cache[1] = ($event) => dateRange.value = $event)
6394
6934
  }, null, 8, ["date-range", "sort-dir", "title"]),
6395
- hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
6935
+ hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
6396
6936
  createElementVNode("ul", null, [
6397
6937
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, idx) => {
6398
6938
  return openBlock(), createElementBlock("li", {
@@ -6404,7 +6944,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6404
6944
  }), 128))
6405
6945
  ])
6406
6946
  ])) : renderSlot(_ctx.$slots, "empty", { key: 1 }),
6407
- hasContent.value ? (openBlock(), createBlock(_sfc_main$j, {
6947
+ hasContent.value ? (openBlock(), createBlock(_sfc_main$l, {
6408
6948
  key: 2,
6409
6949
  modelValue: pagination.value,
6410
6950
  "onUpdate:modelValue": [
@@ -6416,8 +6956,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6416
6956
  };
6417
6957
  }
6418
6958
  });
6419
- const _hoisted_1$h = ["href"];
6420
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
6959
+ const _hoisted_1$j = ["href"];
6960
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6421
6961
  props: {
6422
6962
  propsData: null,
6423
6963
  attribute: null
@@ -6427,14 +6967,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6427
6967
  return openBlock(), createElementBlock("a", {
6428
6968
  href: __props.propsData[__props.attribute]
6429
6969
  }, [
6430
- createVNode(unref(render$4), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
6431
- ], 8, _hoisted_1$h);
6970
+ createVNode(unref(render$5), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
6971
+ ], 8, _hoisted_1$j);
6432
6972
  };
6433
6973
  }
6434
6974
  });
6435
- const _hoisted_1$g = { class: "fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-40" };
6975
+ const _hoisted_1$i = { class: "fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-40" };
6436
6976
  const _hoisted_2$e = { class: "rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden" };
6437
- const _hoisted_3$b = { class: "p-4" };
6977
+ const _hoisted_3$a = { class: "p-4" };
6438
6978
  const _hoisted_4$8 = { class: "flex items-center" };
6439
6979
  const _hoisted_5$7 = { class: "w-0 flex-1 flex justify-between" };
6440
6980
  const _hoisted_6$7 = ["innerHTML"];
@@ -6454,7 +6994,7 @@ const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
6454
6994
  const _hoisted_10$7 = [
6455
6995
  _hoisted_9$7
6456
6996
  ];
6457
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
6997
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6458
6998
  setup(__props) {
6459
6999
  const flashes = ref([]);
6460
7000
  const flashTypeBorderClass = {
@@ -6509,7 +7049,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
6509
7049
  }
6510
7050
  });
6511
7051
  return (_ctx, _cache) => {
6512
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
7052
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
6513
7053
  createVNode(TransitionGroup, {
6514
7054
  tag: "div",
6515
7055
  class: "max-w-sm w-full",
@@ -6527,7 +7067,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
6527
7067
  class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform", [{ "mt-2": idx > 0 }, getFlashClass(flash)]])
6528
7068
  }, [
6529
7069
  createElementVNode("div", _hoisted_2$e, [
6530
- createElementVNode("div", _hoisted_3$b, [
7070
+ createElementVNode("div", _hoisted_3$a, [
6531
7071
  createElementVNode("div", _hoisted_4$8, [
6532
7072
  createElementVNode("div", _hoisted_5$7, [
6533
7073
  createElementVNode("p", {
@@ -6553,6 +7093,22 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
6553
7093
  };
6554
7094
  }
6555
7095
  });
7096
+ function render$4(_ctx, _cache) {
7097
+ return openBlock(), createBlock("svg", {
7098
+ xmlns: "http://www.w3.org/2000/svg",
7099
+ fill: "none",
7100
+ viewBox: "0 0 24 24",
7101
+ stroke: "currentColor",
7102
+ "aria-hidden": "true"
7103
+ }, [
7104
+ createVNode("path", {
7105
+ "stroke-linecap": "round",
7106
+ "stroke-linejoin": "round",
7107
+ "stroke-width": "2",
7108
+ d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
7109
+ })
7110
+ ]);
7111
+ }
6556
7112
  function render$3(_ctx, _cache) {
6557
7113
  return openBlock(), createBlock("svg", {
6558
7114
  xmlns: "http://www.w3.org/2000/svg",
@@ -6585,7 +7141,7 @@ function render$2(_ctx, _cache) {
6585
7141
  })
6586
7142
  ]);
6587
7143
  }
6588
- function render$111(_ctx, _cache) {
7144
+ function render$113(_ctx, _cache) {
6589
7145
  return openBlock(), createBlock("svg", {
6590
7146
  xmlns: "http://www.w3.org/2000/svg",
6591
7147
  fill: "none",
@@ -6617,12 +7173,12 @@ function render(_ctx, _cache) {
6617
7173
  })
6618
7174
  ]);
6619
7175
  }
6620
- const _hoisted_1$f = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
7176
+ const _hoisted_1$h = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
6621
7177
  const _hoisted_2$d = /* @__PURE__ */ createElementVNode("span", {
6622
7178
  class: "hidden sm:inline-block sm:align-middle sm:h-screen",
6623
7179
  "aria-hidden": "true"
6624
7180
  }, "\u200B", -1);
6625
- const _hoisted_3$a = { class: "inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl w-full" };
7181
+ const _hoisted_3$9 = { class: "inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl w-full" };
6626
7182
  const _hoisted_4$7 = { class: "block absolute top-0 right-0 pt-4 pr-4" };
6627
7183
  const _hoisted_5$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close", -1);
6628
7184
  const _hoisted_6$6 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
@@ -6633,7 +7189,7 @@ const _hoisted_9$6 = {
6633
7189
  class: "bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
6634
7190
  };
6635
7191
  const _hoisted_10$6 = ["textContent", "disabled"];
6636
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
7192
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6637
7193
  props: {
6638
7194
  destructive: { type: Boolean, default: false },
6639
7195
  disabled: { type: Boolean, default: false },
@@ -6663,7 +7219,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6663
7219
  open: __props.modelValue
6664
7220
  }, {
6665
7221
  default: withCtx(() => [
6666
- createElementVNode("div", _hoisted_1$f, [
7222
+ createElementVNode("div", _hoisted_1$h, [
6667
7223
  createVNode(unref(TransitionChild), {
6668
7224
  as: "template",
6669
7225
  enter: "ease-out duration-300",
@@ -6689,7 +7245,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6689
7245
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
6690
7246
  }, {
6691
7247
  default: withCtx(() => [
6692
- createElementVNode("div", _hoisted_3$a, [
7248
+ createElementVNode("div", _hoisted_3$9, [
6693
7249
  createElementVNode("div", _hoisted_4$7, [
6694
7250
  createElementVNode("button", {
6695
7251
  type: "button",
@@ -6745,7 +7301,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6745
7301
  };
6746
7302
  }
6747
7303
  });
6748
- const _hoisted_1$e = {
7304
+ const _hoisted_1$g = {
6749
7305
  key: 0,
6750
7306
  class: "fixed top-0 left-0 flex items-center justify-center w-full h-full cursor-not-allowed z-50 bg-gray-50 bg-opacity-50"
6751
7307
  };
@@ -6827,7 +7383,7 @@ const _hoisted_2$c = /* @__PURE__ */ createElementVNode("div", { class: "flex ju
6827
7383
  ])
6828
7384
  ])
6829
7385
  ], -1);
6830
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
7386
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
6831
7387
  setup(__props) {
6832
7388
  const idx = ref(0);
6833
7389
  const loading = ref(false);
@@ -6869,7 +7425,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6869
7425
  });
6870
7426
  });
6871
7427
  return (_ctx, _cache) => {
6872
- return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$e, [
7428
+ return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
6873
7429
  createElementVNode("div", null, [
6874
7430
  _hoisted_2$c,
6875
7431
  withDirectives(createElementVNode("div", null, [
@@ -6899,9 +7455,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6899
7455
  };
6900
7456
  }
6901
7457
  });
6902
- const _hoisted_1$d = { class: "h-screen flex overflow-hidden bg-gray-100" };
7458
+ const _hoisted_1$f = { class: "h-screen flex overflow-hidden bg-gray-100" };
6903
7459
  const _hoisted_2$b = { class: "relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white" };
6904
- const _hoisted_3$9 = { class: "absolute top-0 right-0 -mr-12 pt-2" };
7460
+ const _hoisted_3$8 = { class: "absolute top-0 right-0 -mr-12 pt-2" };
6905
7461
  const _hoisted_4$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close sidebar", -1);
6906
7462
  const _hoisted_5$5 = { class: "flex-shrink-0 flex justify-center px-4" };
6907
7463
  const _hoisted_6$5 = ["src"];
@@ -6931,7 +7487,7 @@ const _hoisted_26 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only
6931
7487
  const _hoisted_27 = ["href"];
6932
7488
  const _hoisted_28 = { class: "flex-1 relative overflow-y-auto focus:outline-none" };
6933
7489
  const _hoisted_29 = { class: "mx-auto" };
6934
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
7490
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6935
7491
  props: {
6936
7492
  activeURL: { default: "" },
6937
7493
  iconURL: null,
@@ -6946,7 +7502,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
6946
7502
  };
6947
7503
  return (_ctx, _cache) => {
6948
7504
  return openBlock(), createElementBlock(Fragment, null, [
6949
- createElementVNode("div", _hoisted_1$d, [
7505
+ createElementVNode("div", _hoisted_1$f, [
6950
7506
  createVNode(unref(TransitionRoot), {
6951
7507
  as: "template",
6952
7508
  show: sidebarOpen.value
@@ -6995,7 +7551,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
6995
7551
  "leave-to": "opacity-0"
6996
7552
  }, {
6997
7553
  default: withCtx(() => [
6998
- createElementVNode("div", _hoisted_3$9, [
7554
+ createElementVNode("div", _hoisted_3$8, [
6999
7555
  createElementVNode("button", {
7000
7556
  class: "ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",
7001
7557
  onClick: _cache[0] || (_cache[0] = ($event) => sidebarOpen.value = false)
@@ -7117,7 +7673,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
7117
7673
  createVNode(unref(MenuButton), { class: "max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-500 hover:text-gray-200 focus:outline-none focus:ring focus:text-white" }, {
7118
7674
  default: withCtx(() => [
7119
7675
  _hoisted_26,
7120
- createVNode(unref(render$6), {
7676
+ createVNode(unref(render$7), {
7121
7677
  class: "h-8 w-8",
7122
7678
  fill: "currentColor"
7123
7679
  })
@@ -7171,15 +7727,125 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
7171
7727
  ])
7172
7728
  ])
7173
7729
  ]),
7174
- createVNode(_sfc_main$g),
7175
- createVNode(_sfc_main$e)
7730
+ createVNode(_sfc_main$i),
7731
+ createVNode(_sfc_main$g)
7176
7732
  ], 64);
7177
7733
  };
7178
7734
  }
7179
7735
  });
7736
+ const _hoisted_1$e = { class: "flex" };
7737
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
7738
+ props: {
7739
+ position: { default: "top-center" }
7740
+ },
7741
+ setup(__props) {
7742
+ const props = __props;
7743
+ const positionClasses = computed(() => {
7744
+ let wrapperClasses = "";
7745
+ let contentClasses = "";
7746
+ switch (props.position) {
7747
+ case "top-left":
7748
+ wrapperClasses = "top-0 left-0 -translate-y-full -translate-x-full justify-end";
7749
+ break;
7750
+ case "top-center":
7751
+ wrapperClasses = "top-0 -translate-y-full -translate-x-full left-1/2 justify-end";
7752
+ contentClasses = "translate-x-1/2";
7753
+ break;
7754
+ case "top-right":
7755
+ wrapperClasses = "top-0 -translate-y-full right-0 justify-end";
7756
+ contentClasses = "translate-x-full";
7757
+ break;
7758
+ case "bottom-left":
7759
+ wrapperClasses = "top-full left-0 -translate-x-full justify-end";
7760
+ break;
7761
+ case "bottom-center":
7762
+ wrapperClasses = "top-full -translate-x-full left-1/2 justify-end";
7763
+ contentClasses = "translate-x-1/2";
7764
+ break;
7765
+ case "bottom-right":
7766
+ wrapperClasses = "top-full right-0 justify-end";
7767
+ contentClasses = "translate-x-full";
7768
+ break;
7769
+ case "left":
7770
+ wrapperClasses = "top-1/2 left-0 -translate-y-1/2 -translate-x-full justify-end";
7771
+ break;
7772
+ case "right":
7773
+ wrapperClasses = "top-1/2 -translate-y-1/2 right-0 justify-end";
7774
+ contentClasses = "translate-x-full";
7775
+ break;
7776
+ }
7777
+ return {
7778
+ wrapper: wrapperClasses,
7779
+ content: contentClasses
7780
+ };
7781
+ });
7782
+ return (_ctx, _cache) => {
7783
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
7784
+ createVNode(unref(Popover), { class: "relative leading-none" }, {
7785
+ default: withCtx(({ open, close: close2 }) => [
7786
+ createVNode(unref(PopoverButton), null, {
7787
+ default: withCtx(() => [
7788
+ renderSlot(_ctx.$slots, "button", {
7789
+ open,
7790
+ close: close2
7791
+ })
7792
+ ]),
7793
+ _: 2
7794
+ }, 1024),
7795
+ createVNode(Transition, {
7796
+ "enter-active-class": "transition-opacity transition-faster ease-out-quad",
7797
+ "leave-active-class": "transition-opacity transition-faster ease-in-quad",
7798
+ "enter-from-class": "opacity-0",
7799
+ "enter-to-class": "opacity-100",
7800
+ "leave-from-class": "opacity-100",
7801
+ "leave-to-class": "opacity-0"
7802
+ }, {
7803
+ default: withCtx(() => [
7804
+ createVNode(unref(PopoverPanel), null, {
7805
+ default: withCtx(() => [
7806
+ createElementVNode("div", {
7807
+ class: normalizeClass(["absolute z-10 transform w-screen flex", unref(positionClasses).wrapper])
7808
+ }, [
7809
+ createElementVNode("div", {
7810
+ class: normalizeClass(unref(positionClasses).content)
7811
+ }, [
7812
+ renderSlot(_ctx.$slots, "default", {
7813
+ open,
7814
+ close: close2
7815
+ })
7816
+ ], 2)
7817
+ ], 2)
7818
+ ]),
7819
+ _: 2
7820
+ }, 1024)
7821
+ ]),
7822
+ _: 2
7823
+ }, 1024)
7824
+ ]),
7825
+ _: 3
7826
+ })
7827
+ ]);
7828
+ };
7829
+ }
7830
+ });
7831
+ var _export_sfc = (sfc, props) => {
7832
+ const target = sfc.__vccOpts || sfc;
7833
+ for (const [key, val] of props) {
7834
+ target[key] = val;
7835
+ }
7836
+ return target;
7837
+ };
7838
+ const _sfc_main$d = {};
7839
+ const _hoisted_1$d = { class: "max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md" };
7840
+ function _sfc_render(_ctx, _cache) {
7841
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
7842
+ renderSlot(_ctx.$slots, "default")
7843
+ ]);
7844
+ }
7845
+ var PopoverContent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render]]);
7180
7846
  const _hoisted_1$c = { class: "absolute inset-0 overflow-hidden" };
7181
7847
  const _hoisted_2$a = { class: "fixed inset-y-0 right-0 pl-10 max-w-full flex" };
7182
- const _hoisted_3$8 = { class: "w-screen max-w-md" };
7848
+ const _hoisted_3$7 = { class: "w-screen max-w-md" };
7183
7849
  const _hoisted_4$5 = { class: "h-full flex flex-col bg-white shadow-xl overflow-y-scroll" };
7184
7850
  const _hoisted_5$4 = { class: "py-6 px-4 bg-blue-700 sm:px-6" };
7185
7851
  const _hoisted_6$4 = { class: "flex items-center justify-between" };
@@ -7230,7 +7896,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7230
7896
  "leave-to": "translate-x-full"
7231
7897
  }, {
7232
7898
  default: withCtx(() => [
7233
- createElementVNode("div", _hoisted_3$8, [
7899
+ createElementVNode("div", _hoisted_3$7, [
7234
7900
  createElementVNode("div", _hoisted_4$5, [
7235
7901
  createElementVNode("div", _hoisted_5$4, [
7236
7902
  createElementVNode("div", _hoisted_6$4, [
@@ -7279,9 +7945,37 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7279
7945
  };
7280
7946
  }
7281
7947
  });
7282
- const _hoisted_1$b = { class: "min-h-screen bg-gray-100" };
7283
- const _hoisted_2$9 = { class: "mx-auto px-4 sm:px-6 lg:px-8" };
7284
- const _hoisted_3$7 = { class: "flex justify-between h-16" };
7948
+ const _hoisted_1$b = { class: "relative" };
7949
+ const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "p-4 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" }, null, -1);
7950
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7951
+ props: {
7952
+ position: { default: "top-center" }
7953
+ },
7954
+ setup(__props) {
7955
+ return (_ctx, _cache) => {
7956
+ return openBlock(), createBlock(_sfc_main$e, { position: __props.position }, {
7957
+ button: withCtx(() => [
7958
+ createElementVNode("div", _hoisted_1$b, [
7959
+ _hoisted_2$9,
7960
+ createVNode(unref(render$4), { class: "w-4 h-4" })
7961
+ ])
7962
+ ]),
7963
+ default: withCtx(() => [
7964
+ createVNode(PopoverContent, { class: "text-xs leading-tight font-medium" }, {
7965
+ default: withCtx(() => [
7966
+ renderSlot(_ctx.$slots, "default")
7967
+ ]),
7968
+ _: 3
7969
+ })
7970
+ ]),
7971
+ _: 3
7972
+ }, 8, ["position"]);
7973
+ };
7974
+ }
7975
+ });
7976
+ const _hoisted_1$a = { class: "min-h-screen bg-gray-100" };
7977
+ const _hoisted_2$8 = { class: "mx-auto px-4 sm:px-6 lg:px-8" };
7978
+ const _hoisted_3$6 = { class: "flex justify-between h-16" };
7285
7979
  const _hoisted_4$4 = { class: "flex" };
7286
7980
  const _hoisted_5$3 = { class: "flex-shrink-0 flex items-center" };
7287
7981
  const _hoisted_6$3 = ["src"];
@@ -7304,7 +7998,7 @@ const _hoisted_22$1 = { class: "mt-3 space-y-1" };
7304
7998
  const _hoisted_23$1 = ["href"];
7305
7999
  const _hoisted_24$1 = { class: "mx-auto sm:px-6 lg:px-8" };
7306
8000
  const _hoisted_25 = { class: "px-4 py-8 sm:px-0" };
7307
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
8001
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7308
8002
  props: {
7309
8003
  activeURL: { default: "" },
7310
8004
  currentUser: null,
@@ -7319,14 +8013,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7319
8013
  };
7320
8014
  return (_ctx, _cache) => {
7321
8015
  return openBlock(), createElementBlock(Fragment, null, [
7322
- createElementVNode("div", _hoisted_1$b, [
8016
+ createElementVNode("div", _hoisted_1$a, [
7323
8017
  createVNode(unref(Disclosure), {
7324
8018
  as: "nav",
7325
8019
  class: "bg-white shadow-sm"
7326
8020
  }, {
7327
8021
  default: withCtx(({ open }) => [
7328
- createElementVNode("div", _hoisted_2$9, [
7329
- createElementVNode("div", _hoisted_3$7, [
8022
+ createElementVNode("div", _hoisted_2$8, [
8023
+ createElementVNode("div", _hoisted_3$6, [
7330
8024
  createElementVNode("div", _hoisted_4$4, [
7331
8025
  createElementVNode("div", _hoisted_5$3, [
7332
8026
  createElementVNode("img", {
@@ -7359,7 +8053,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7359
8053
  createVNode(unref(MenuButton), { class: "bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" }, {
7360
8054
  default: withCtx(() => [
7361
8055
  _hoisted_10$3,
7362
- createVNode(unref(render$111), { class: "text-gray-500 h-8 w-8 rounded-full" })
8056
+ createVNode(unref(render$113), { class: "text-gray-500 h-8 w-8 rounded-full" })
7363
8057
  ]),
7364
8058
  _: 1
7365
8059
  })
@@ -7438,13 +8132,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7438
8132
  createElementVNode("div", _hoisted_16$1, [
7439
8133
  createElementVNode("div", _hoisted_17$1, [
7440
8134
  createElementVNode("div", _hoisted_18$1, [
7441
- createVNode(unref(render$111), { class: "text-gray-500 h-10 w-10 rounded-full" })
8135
+ createVNode(unref(render$113), { class: "text-gray-500 h-10 w-10 rounded-full" })
7442
8136
  ]),
7443
8137
  createElementVNode("div", _hoisted_19$1, [
7444
- createElementVNode("div", {
8138
+ __props.currentUser.name ? (openBlock(), createElementBlock("div", {
8139
+ key: 0,
7445
8140
  class: "text-base font-medium text-gray-800",
7446
8141
  textContent: toDisplayString(__props.currentUser.name)
7447
- }, null, 8, _hoisted_20$1),
8142
+ }, null, 8, _hoisted_20$1)) : createCommentVNode("", true),
7448
8143
  createElementVNode("div", {
7449
8144
  class: "text-sm font-medium text-gray-500",
7450
8145
  textContent: toDisplayString(__props.currentUser.email)
@@ -7476,15 +8171,15 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7476
8171
  ])
7477
8172
  ])
7478
8173
  ]),
7479
- createVNode(_sfc_main$g),
7480
- createVNode(_sfc_main$e)
8174
+ createVNode(_sfc_main$i),
8175
+ createVNode(_sfc_main$g)
7481
8176
  ], 64);
7482
8177
  };
7483
8178
  }
7484
8179
  });
7485
- const _hoisted_1$a = { class: "flex flex-col" };
7486
- const _hoisted_2$8 = { class: "-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" };
7487
- const _hoisted_3$6 = { class: "inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8" };
8180
+ const _hoisted_1$9 = { class: "flex flex-col" };
8181
+ const _hoisted_2$7 = { class: "-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" };
8182
+ const _hoisted_3$5 = { class: "inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8" };
7488
8183
  const _hoisted_4$3 = { class: "overflow-hidden border-b border-gray-200 shadow sm:rounded-lg" };
7489
8184
  const _hoisted_5$2 = { class: "min-w-full divide-y divide-gray-200" };
7490
8185
  const _hoisted_6$2 = ["textContent"];
@@ -7492,7 +8187,7 @@ const _hoisted_7$2 = { class: "bg-white divide-y divide-gray-200" };
7492
8187
  const _hoisted_8$2 = ["textContent"];
7493
8188
  const _hoisted_9$2 = { key: 0 };
7494
8189
  const _hoisted_10$2 = ["colspan"];
7495
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
8190
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7496
8191
  props: {
7497
8192
  tableData: null
7498
8193
  },
@@ -7508,9 +8203,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7508
8203
  return "";
7509
8204
  };
7510
8205
  return (_ctx, _cache) => {
7511
- return openBlock(), createElementBlock("div", _hoisted_1$a, [
7512
- createElementVNode("div", _hoisted_2$8, [
7513
- createElementVNode("div", _hoisted_3$6, [
8206
+ return openBlock(), createElementBlock("div", _hoisted_1$9, [
8207
+ createElementVNode("div", _hoisted_2$7, [
8208
+ createElementVNode("div", _hoisted_3$5, [
7514
8209
  createElementVNode("div", _hoisted_4$3, [
7515
8210
  createElementVNode("table", _hoisted_5$2, [
7516
8211
  createElementVNode("thead", null, [
@@ -7562,9 +8257,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7562
8257
  };
7563
8258
  }
7564
8259
  });
7565
- const _hoisted_1$9 = { class: "flex items-center justify-center space-x-8" };
7566
- const _hoisted_2$7 = { class: "font-medium" };
7567
- const _hoisted_3$5 = { class: "flex items-center space-x-5" };
8260
+ const _hoisted_1$8 = { class: "flex items-center justify-center space-x-8" };
8261
+ const _hoisted_2$6 = { class: "font-medium" };
8262
+ const _hoisted_3$4 = { class: "flex items-center space-x-5" };
7568
8263
  const _hoisted_4$2 = {
7569
8264
  key: 0,
7570
8265
  class: "block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"
@@ -7597,7 +8292,7 @@ const _hoisted_11$1 = {
7597
8292
  const _hoisted_12$1 = ["textContent"];
7598
8293
  const _hoisted_13$1 = { class: "ml-3 inline-flex rounded-md shadow-sm" };
7599
8294
  const _hoisted_14$1 = ["textContent"];
7600
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8295
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7601
8296
  props: {
7602
8297
  hideActions: { type: Boolean, default: false },
7603
8298
  hidePrevious: { type: Boolean, default: false },
@@ -7616,9 +8311,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7616
8311
  };
7617
8312
  return (_ctx, _cache) => {
7618
8313
  return openBlock(), createElementBlock("div", null, [
7619
- createElementVNode("nav", _hoisted_1$9, [
7620
- createElementVNode("p", _hoisted_2$7, "Step " + toDisplayString(__props.step) + " of " + toDisplayString(__props.total), 1),
7621
- createElementVNode("ul", _hoisted_3$5, [
8314
+ createElementVNode("nav", _hoisted_1$8, [
8315
+ createElementVNode("p", _hoisted_2$6, "Step " + toDisplayString(__props.step) + " of " + toDisplayString(__props.total), 1),
8316
+ createElementVNode("ul", _hoisted_3$4, [
7622
8317
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.total, (index) => {
7623
8318
  return openBlock(), createElementBlock("li", { key: index }, [
7624
8319
  __props.step > index ? (openBlock(), createElementBlock("span", _hoisted_4$2)) : __props.step === index ? (openBlock(), createElementBlock("div", _hoisted_5$1, _hoisted_8$1)) : (openBlock(), createElementBlock("span", _hoisted_9$1))
@@ -7648,12 +8343,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7648
8343
  };
7649
8344
  }
7650
8345
  });
7651
- const _hoisted_1$8 = { class: "flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between" };
7652
- const _hoisted_2$6 = {
8346
+ const _hoisted_1$7 = { class: "flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between" };
8347
+ const _hoisted_2$5 = {
7653
8348
  key: 0,
7654
8349
  class: "w-full max-w-lg lg:max-w-xs"
7655
8350
  };
7656
- const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("label", {
8351
+ const _hoisted_3$3 = /* @__PURE__ */ createElementVNode("label", {
7657
8352
  for: "search",
7658
8353
  class: "sr-only"
7659
8354
  }, "Search", -1);
@@ -7731,7 +8426,7 @@ const _hoisted_21 = ["onClick"];
7731
8426
  const _hoisted_22 = ["textContent"];
7732
8427
  const _hoisted_23 = { key: 0 };
7733
8428
  const _hoisted_24 = ["colspan"];
7734
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8429
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7735
8430
  props: {
7736
8431
  clickable: { type: Boolean, default: false },
7737
8432
  loader: { type: Boolean, default: true },
@@ -7815,9 +8510,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7815
8510
  loadAndRender();
7816
8511
  return (_ctx, _cache) => {
7817
8512
  return openBlock(), createElementBlock("div", null, [
7818
- createElementVNode("div", _hoisted_1$8, [
7819
- __props.tableData.search ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
7820
- _hoisted_3$4,
8513
+ createElementVNode("div", _hoisted_1$7, [
8514
+ __props.tableData.search ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
8515
+ _hoisted_3$3,
7821
8516
  createElementVNode("div", _hoisted_4$1, [
7822
8517
  _hoisted_5,
7823
8518
  withDirectives(createElementVNode("input", {
@@ -7837,7 +8532,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7837
8532
  ])
7838
8533
  ])) : createCommentVNode("", true),
7839
8534
  __props.tableData.dateSearch ? (openBlock(), createElementBlock("div", _hoisted_6, [
7840
- createVNode(_sfc_main$l, {
8535
+ createVNode(_sfc_main$o, {
7841
8536
  modelValue: dateRange.value,
7842
8537
  "onUpdate:modelValue": [
7843
8538
  _cache[2] || (_cache[2] = ($event) => dateRange.value = $event),
@@ -7902,7 +8597,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7902
8597
  ])
7903
8598
  ])
7904
8599
  ]),
7905
- unref(hasContent) ? (openBlock(), createBlock(_sfc_main$j, {
8600
+ unref(hasContent) ? (openBlock(), createBlock(_sfc_main$l, {
7906
8601
  key: 0,
7907
8602
  modelValue: pagination.value,
7908
8603
  "onUpdate:modelValue": [
@@ -7914,13 +8609,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7914
8609
  };
7915
8610
  }
7916
8611
  });
7917
- const _hoisted_1$7 = /* @__PURE__ */ createElementVNode("label", {
8612
+ const _hoisted_1$6 = /* @__PURE__ */ createElementVNode("label", {
7918
8613
  for: "tabs",
7919
8614
  class: "sr-only"
7920
8615
  }, "Select a tab", -1);
7921
- const _hoisted_2$5 = { class: "hidden sm:block" };
7922
- const _hoisted_3$3 = ["textContent", "onClick"];
7923
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
8616
+ const _hoisted_2$4 = { class: "hidden sm:block" };
8617
+ const _hoisted_3$2 = ["textContent", "onClick"];
8618
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
7924
8619
  props: {
7925
8620
  modelValue: null,
7926
8621
  pillDesign: { type: Boolean, default: false },
@@ -7962,7 +8657,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7962
8657
  createElementVNode("div", {
7963
8658
  class: normalizeClass(["sm:hidden", { "mb-4": __props.pillDesign }])
7964
8659
  }, [
7965
- _hoisted_1$7,
8660
+ _hoisted_1$6,
7966
8661
  createVNode(_component_Select, {
7967
8662
  name: "tabs",
7968
8663
  modelValue: __props.modelValue,
@@ -7970,7 +8665,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7970
8665
  options: __props.tabs
7971
8666
  }, null, 8, ["modelValue", "options"])
7972
8667
  ], 2),
7973
- createElementVNode("div", _hoisted_2$5, [
8668
+ createElementVNode("div", _hoisted_2$4, [
7974
8669
  createElementVNode("div", {
7975
8670
  class: normalizeClass({ "border-b border-gray-200": unref(notPillDesign) })
7976
8671
  }, [
@@ -7984,7 +8679,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7984
8679
  key: idx,
7985
8680
  textContent: toDisplayString(tab.label),
7986
8681
  onClick: withModifiers(($event) => updateModelValue2(tab.value), ["prevent"])
7987
- }, null, 10, _hoisted_3$3);
8682
+ }, null, 10, _hoisted_3$2);
7988
8683
  }), 128))
7989
8684
  ], 2)
7990
8685
  ], 2)
@@ -7993,8 +8688,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7993
8688
  };
7994
8689
  }
7995
8690
  });
7996
- const _hoisted_1$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Use", -1);
7997
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8691
+ const _hoisted_1$5 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Use", -1);
8692
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
7998
8693
  props: {
7999
8694
  modelValue: { type: Boolean, default: false }
8000
8695
  },
@@ -8010,7 +8705,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8010
8705
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("update:modelValue", $event))
8011
8706
  }, {
8012
8707
  default: withCtx(() => [
8013
- _hoisted_1$6,
8708
+ _hoisted_1$5,
8014
8709
  createElementVNode("span", {
8015
8710
  "aria-hidden": "true",
8016
8711
  class: normalizeClass([
@@ -8024,9 +8719,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8024
8719
  };
8025
8720
  }
8026
8721
  });
8027
- const _hoisted_1$5 = { class: "inline-flex items-center" };
8028
- const _hoisted_2$4 = ["aria-labelledby", "checked", "id"];
8029
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8722
+ const _hoisted_1$4 = { class: "inline-flex items-center" };
8723
+ const _hoisted_2$3 = ["aria-labelledby", "checked", "id"];
8724
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8030
8725
  props: {
8031
8726
  label: { default: "" },
8032
8727
  modelValue: { type: Boolean }
@@ -8037,7 +8732,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8037
8732
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8038
8733
  return (_ctx, _cache) => {
8039
8734
  return openBlock(), createElementBlock("div", null, [
8040
- createElementVNode("label", _hoisted_1$5, [
8735
+ createElementVNode("label", _hoisted_1$4, [
8041
8736
  createElementVNode("input", mergeProps({
8042
8737
  "aria-labelledby": __props.label ? `${unref(uuid)}-label` : void 0,
8043
8738
  checked: __props.modelValue,
@@ -8048,8 +8743,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8048
8743
  onChange: ($event) => {
8049
8744
  emits("update:modelValue", $event.target.checked);
8050
8745
  }
8051
- })), null, 16, _hoisted_2$4),
8052
- createVNode(_sfc_main$o, {
8746
+ })), null, 16, _hoisted_2$3),
8747
+ createVNode(_sfc_main$r, {
8053
8748
  class: "ml-2",
8054
8749
  id: `${unref(uuid)}-label`,
8055
8750
  for: unref(uuid),
@@ -8061,9 +8756,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8061
8756
  };
8062
8757
  }
8063
8758
  });
8064
- const _hoisted_1$4 = { class: "inline-flex items-center" };
8065
- const _hoisted_2$3 = ["id", "value"];
8066
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8759
+ const _hoisted_1$3 = { class: "inline-flex items-center" };
8760
+ const _hoisted_2$2 = ["id", "value"];
8761
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8067
8762
  props: {
8068
8763
  options: null,
8069
8764
  legend: { default: "" },
@@ -8077,7 +8772,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8077
8772
  const model = ref(props.modelValue);
8078
8773
  return (_ctx, _cache) => {
8079
8774
  return openBlock(), createElementBlock("fieldset", null, [
8080
- createVNode(_sfc_main$o, {
8775
+ createVNode(_sfc_main$r, {
8081
8776
  class: "block mb-0",
8082
8777
  label: __props.legend,
8083
8778
  tag: "legend"
@@ -8087,7 +8782,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8087
8782
  class: "mt-4",
8088
8783
  key: option.value
8089
8784
  }, [
8090
- createElementVNode("label", _hoisted_1$4, [
8785
+ createElementVNode("label", _hoisted_1$3, [
8091
8786
  withDirectives(createElementVNode("input", mergeProps({
8092
8787
  type: "checkbox",
8093
8788
  class: "focus:ring-blue-500 h-4 w-4 text-xy-blue border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
@@ -8098,10 +8793,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8098
8793
  onChange: () => {
8099
8794
  emits("update:modelValue", model.value);
8100
8795
  }
8101
- })), null, 16, _hoisted_2$3), [
8796
+ })), null, 16, _hoisted_2$2), [
8102
8797
  [vModelCheckbox, model.value]
8103
8798
  ]),
8104
- createVNode(_sfc_main$o, {
8799
+ createVNode(_sfc_main$r, {
8105
8800
  class: "ml-2",
8106
8801
  for: `${unref(uuid)}-${index}`,
8107
8802
  label: option.label,
@@ -8114,10 +8809,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8114
8809
  };
8115
8810
  }
8116
8811
  });
8117
- const _hoisted_1$3 = { class: "mt-1 space-y-2" };
8118
- const _hoisted_2$2 = ["for"];
8119
- const _hoisted_3$2 = ["checked", "id", "name", "value"];
8120
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8812
+ const _hoisted_1$2 = { class: "mt-1 space-y-2" };
8813
+ const _hoisted_2$1 = ["for"];
8814
+ const _hoisted_3$1 = ["checked", "id", "name", "value"];
8815
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8121
8816
  props: {
8122
8817
  options: null,
8123
8818
  legend: { default: "" },
@@ -8130,8 +8825,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8130
8825
  const attrs = useAttrs();
8131
8826
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8132
8827
  return (_ctx, _cache) => {
8133
- return openBlock(), createElementBlock("fieldset", _hoisted_1$3, [
8134
- createVNode(_sfc_main$o, {
8828
+ return openBlock(), createElementBlock("fieldset", _hoisted_1$2, [
8829
+ createVNode(_sfc_main$r, {
8135
8830
  class: "block",
8136
8831
  label: __props.legend,
8137
8832
  tag: "legend"
@@ -8156,13 +8851,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8156
8851
  onChange: ($event) => {
8157
8852
  emits("update:modelValue", $event.target.value);
8158
8853
  }
8159
- })), null, 16, _hoisted_3$2),
8160
- createVNode(_sfc_main$o, {
8854
+ })), null, 16, _hoisted_3$1),
8855
+ createVNode(_sfc_main$r, {
8161
8856
  class: "ml-2",
8162
8857
  label: option.label,
8163
8858
  tag: "span"
8164
8859
  }, null, 8, ["label"])
8165
- ], 10, _hoisted_2$2)
8860
+ ], 10, _hoisted_2$1)
8166
8861
  ]),
8167
8862
  _: 2
8168
8863
  }, 1024);
@@ -8171,69 +8866,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8171
8866
  };
8172
8867
  }
8173
8868
  });
8174
- const _hoisted_1$2 = ["aria-labelledby", "aria-describedby", "id", "value"];
8175
- const _hoisted_2$1 = {
8176
- key: 0,
8177
- value: "",
8178
- disabled: "",
8179
- selected: ""
8180
- };
8181
- const _hoisted_3$1 = ["value", "textContent"];
8182
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8183
- props: {
8184
- design: { default: "standard" },
8185
- label: { default: "" },
8186
- help: { default: "" },
8187
- placeholder: { default: "Select an option" },
8188
- options: null,
8189
- modelValue: null
8190
- },
8191
- emits: ["update:modelValue"],
8192
- setup(__props, { emit }) {
8193
- const props = __props;
8194
- const attrs = useAttrs();
8195
- const uuid = attrs.id || Uniques.CreateIdAttribute();
8196
- const classes = computed(() => {
8197
- return {
8198
- standard: "mt-1 block w-full border border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm",
8199
- compressed: "appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-600 text-gray-900 focus:outline-none focus:ring-blue-500 focus:border-blue-500 focus:z-10 sm:text-sm"
8200
- }[props.design];
8201
- });
8202
- return (_ctx, _cache) => {
8203
- return openBlock(), createElementBlock(Fragment, null, [
8204
- createVNode(_sfc_main$o, {
8205
- id: `${unref(uuid)}-label`,
8206
- for: unref(uuid),
8207
- label: __props.label
8208
- }, null, 8, ["id", "for", "label"]),
8209
- createElementVNode("select", mergeProps({
8210
- "aria-labelledby": __props.label ? `${unref(uuid)}-label` : void 0,
8211
- "aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0,
8212
- class: unref(classes),
8213
- id: unref(uuid),
8214
- value: __props.modelValue
8215
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8216
- onChange: ($event) => {
8217
- emit("update:modelValue", $event.target.value);
8218
- }
8219
- })), [
8220
- __props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$1, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
8221
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
8222
- return openBlock(), createElementBlock("option", {
8223
- value: option.value,
8224
- textContent: toDisplayString(option.label),
8225
- key: option.value
8226
- }, null, 8, _hoisted_3$1);
8227
- }), 128))
8228
- ], 16, _hoisted_1$2),
8229
- createVNode(_sfc_main$n, {
8230
- id: `${unref(uuid)}-help`,
8231
- text: __props.help
8232
- }, null, 8, ["id", "text"])
8233
- ], 64);
8234
- };
8235
- }
8236
- });
8237
8869
  const _hoisted_1$1 = ["aria-labelledby", "aria-describedby", "id", "value"];
8238
8870
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8239
8871
  props: {
@@ -8247,7 +8879,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8247
8879
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8248
8880
  return (_ctx, _cache) => {
8249
8881
  return openBlock(), createElementBlock(Fragment, null, [
8250
- createVNode(_sfc_main$o, {
8882
+ createVNode(_sfc_main$r, {
8251
8883
  class: "block",
8252
8884
  id: `${unref(uuid)}-label`,
8253
8885
  for: unref(uuid),
@@ -8271,7 +8903,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8271
8903
  value: __props.modelValue,
8272
8904
  onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
8273
8905
  }, _ctx.$attrs), null, 16, _hoisted_1$1),
8274
- createVNode(_sfc_main$n, {
8906
+ createVNode(_sfc_main$q, {
8275
8907
  id: `${unref(uuid)}-help`,
8276
8908
  text: __props.help
8277
8909
  }, null, 8, ["id", "text"])
@@ -8302,7 +8934,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8302
8934
  };
8303
8935
  return (_ctx, _cache) => {
8304
8936
  return openBlock(), createElementBlock("fieldset", null, [
8305
- createVNode(_sfc_main$o, {
8937
+ createVNode(_sfc_main$r, {
8306
8938
  class: "block",
8307
8939
  label: __props.legend,
8308
8940
  tag: "legend"
@@ -8321,7 +8953,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8321
8953
  }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8322
8954
  onChange
8323
8955
  })), null, 16, _hoisted_2),
8324
- createVNode(_sfc_main$o, {
8956
+ createVNode(_sfc_main$r, {
8325
8957
  class: "ml-2",
8326
8958
  label: "Yes",
8327
8959
  tag: "span"
@@ -8341,7 +8973,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8341
8973
  }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8342
8974
  onChange
8343
8975
  })), null, 16, _hoisted_4),
8344
- createVNode(_sfc_main$o, {
8976
+ createVNode(_sfc_main$r, {
8345
8977
  class: "ml-2",
8346
8978
  label: "No",
8347
8979
  tag: "span"
@@ -8354,32 +8986,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8354
8986
  var components = /* @__PURE__ */ Object.freeze({
8355
8987
  __proto__: null,
8356
8988
  [Symbol.toStringTag]: "Module",
8357
- ActionsDropdown: _sfc_main$r,
8358
- Cards: _sfc_main$q,
8359
- ContentModal: _sfc_main$p,
8360
- DateFilter: _sfc_main$k,
8361
- DetailList: _sfc_main$i,
8362
- DownloadCell: _sfc_main$h,
8363
- Flash: _sfc_main$g,
8364
- Modal: _sfc_main$f,
8365
- SidebarLayout: _sfc_main$d,
8989
+ ActionsDropdown: _sfc_main$u,
8990
+ Cards: _sfc_main$t,
8991
+ ContentModal: _sfc_main$s,
8992
+ DateFilter: _sfc_main$m,
8993
+ DetailList: _sfc_main$k,
8994
+ DownloadCell: _sfc_main$j,
8995
+ Flash: _sfc_main$i,
8996
+ Modal: _sfc_main$h,
8997
+ SidebarLayout: _sfc_main$f,
8366
8998
  Slideover: _sfc_main$c,
8367
- StackedLayout: _sfc_main$b,
8368
- Paginator: _sfc_main$j,
8369
- Spinner: _sfc_main$e,
8370
- StaticTable: _sfc_main$a,
8371
- Steps: _sfc_main$9,
8372
- Table: _sfc_main$8,
8373
- Tabs: _sfc_main$7,
8374
- Toggle: _sfc_main$6,
8375
- BaseInput: _sfc_main$m,
8376
- Checkbox: _sfc_main$5,
8377
- DateRangePicker: _sfc_main$l,
8378
- InputHelp: _sfc_main$n,
8379
- InputLabel: _sfc_main$o,
8380
- MultiCheckboxes: _sfc_main$4,
8381
- Radio: _sfc_main$3,
8382
- Select: _sfc_main$2,
8999
+ StackedLayout: _sfc_main$a,
9000
+ Popover: _sfc_main$e,
9001
+ PopoverContent,
9002
+ PopoverPosition: _sfc_main$e,
9003
+ Paginator: _sfc_main$l,
9004
+ Spinner: _sfc_main$g,
9005
+ StaticTable: _sfc_main$9,
9006
+ Steps: _sfc_main$8,
9007
+ Table: _sfc_main$7,
9008
+ Tabs: _sfc_main$6,
9009
+ Toggle: _sfc_main$5,
9010
+ Tooltip: _sfc_main$b,
9011
+ BaseInput: _sfc_main$p,
9012
+ Checkbox: _sfc_main$4,
9013
+ DateRangePicker: _sfc_main$o,
9014
+ InputHelp: _sfc_main$q,
9015
+ InputLabel: _sfc_main$r,
9016
+ MultiCheckboxes: _sfc_main$3,
9017
+ Radio: _sfc_main$2,
9018
+ Select: _sfc_main$n,
8383
9019
  TextArea: _sfc_main$1,
8384
9020
  YesOrNoRadio: _sfc_main
8385
9021
  });
@@ -8388,4 +9024,4 @@ const install = function installTrees(app) {
8388
9024
  app.component(componentName, component);
8389
9025
  });
8390
9026
  };
8391
- export { _sfc_main$r as ActionsDropdown, BaseAPI, _sfc_main$m as BaseInput, _sfc_main$q as Cards, _sfc_main$5 as Checkbox, _sfc_main$p as ContentModal, _sfc_main$k as DateFilter, _sfc_main$l as DateRangePicker, _sfc_main$i as DetailList, _sfc_main$h as DownloadCell, _sfc_main$g as Flash, _sfc_main$n as InputHelp, _sfc_main$o as InputLabel, _sfc_main$f as Modal, _sfc_main$4 as MultiCheckboxes, _sfc_main$j as Paginator, _sfc_main$3 as Radio, _sfc_main$2 as Select, _sfc_main$d as SidebarLayout, _sfc_main$c as Slideover, _sfc_main$e as Spinner, _sfc_main$b as StackedLayout, _sfc_main$a as StaticTable, _sfc_main$9 as Steps, _sfc_main$8 as Table, _sfc_main$7 as Tabs, _sfc_main$1 as TextArea, _sfc_main$6 as Toggle, _sfc_main as YesOrNoRadio, install as default };
9027
+ export { _sfc_main$u as ActionsDropdown, BaseAPI, _sfc_main$p as BaseInput, _sfc_main$t as Cards, _sfc_main$4 as Checkbox, _sfc_main$s as ContentModal, _sfc_main$m as DateFilter, _sfc_main$o as DateRangePicker, _sfc_main$k as DetailList, _sfc_main$j as DownloadCell, _sfc_main$i as Flash, _sfc_main$q as InputHelp, _sfc_main$r as InputLabel, _sfc_main$h as Modal, _sfc_main$3 as MultiCheckboxes, _sfc_main$l as Paginator, _sfc_main$e as Popover, PopoverContent, _sfc_main$e as PopoverPosition, _sfc_main$2 as Radio, _sfc_main$n as Select, _sfc_main$f as SidebarLayout, _sfc_main$c as Slideover, _sfc_main$g as Spinner, _sfc_main$a as StackedLayout, _sfc_main$9 as StaticTable, _sfc_main$8 as Steps, _sfc_main$7 as Table, _sfc_main$6 as Tabs, _sfc_main$1 as TextArea, _sfc_main$5 as Toggle, _sfc_main$b as Tooltip, _sfc_main as YesOrNoRadio, install as default };