@xy-planning-network/trees 0.4.0 → 0.4.3

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 (31) hide show
  1. package/dist/trees.es.js +1282 -399
  2. package/dist/trees.umd.js +6 -6
  3. package/package.json +1 -1
  4. package/src/lib-components/forms/BaseInput.vue +2 -0
  5. package/src/lib-components/forms/Checkbox.vue +17 -10
  6. package/src/lib-components/forms/FieldsetLegend.vue +14 -0
  7. package/src/lib-components/forms/InputHelp.vue +1 -1
  8. package/src/lib-components/forms/InputLabel.vue +6 -1
  9. package/src/lib-components/forms/MultiCheckboxes.vue +93 -31
  10. package/src/lib-components/forms/Radio.vue +81 -34
  11. package/src/lib-components/forms/Select.vue +2 -2
  12. package/src/lib-components/forms/TextArea.vue +2 -0
  13. package/src/lib-components/forms/Toggle.vue +2 -0
  14. package/src/lib-components/forms/YesOrNoRadio.vue +69 -40
  15. package/src/lib-components/navigation/Paginator.vue +15 -19
  16. package/src/lib-components/overlays/Popover/Popover.vue +229 -0
  17. package/src/lib-components/overlays/Popover/PopoverContent.vue +8 -0
  18. package/src/lib-components/overlays/Tooltip.vue +34 -0
  19. package/types/helpers/Debounce.d.ts +1 -0
  20. package/types/helpers/Slots.d.ts +2 -0
  21. package/types/helpers/Throttle.d.ts +1 -0
  22. package/types/lib-components/forms/Checkbox.vue.d.ts +8 -0
  23. package/types/lib-components/forms/FieldsetLegend.vue.d.ts +2 -0
  24. package/types/lib-components/forms/InputLabel.vue.d.ts +8 -0
  25. package/types/lib-components/forms/MultiCheckboxes.vue.d.ts +32 -7
  26. package/types/lib-components/forms/Radio.vue.d.ts +26 -13
  27. package/types/lib-components/forms/YesOrNoRadio.vue.d.ts +8 -0
  28. package/types/lib-components/index.d.ts +11 -1
  29. package/types/lib-components/overlays/Popover/Popover.vue.d.ts +23 -0
  30. package/types/lib-components/overlays/Popover/PopoverContent.vue.d.ts +2 -0
  31. package/types/lib-components/overlays/Tooltip.vue.d.ts +23 -0
package/dist/trees.es.js CHANGED
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { cloneVNode, h, inject, provide, watchEffect, defineComponent, ref, onUnmounted, Teleport, reactive, onUpdated, computed, onMounted, nextTick, watch, openBlock, createBlock, createVNode, unref, withCtx, Transition, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, renderSlot, resolveDynamicComponent, normalizeProps, mergeProps, createTextVNode, useAttrs, withModifiers, TransitionGroup, withDirectives, vShow, getCurrentInstance, vModelText, resolveComponent, vModelCheckbox } from "vue";
20
+ import { cloneVNode, h, inject, provide, watchEffect, defineComponent, ref, onUnmounted, Teleport, reactive, onUpdated, computed, onMounted, nextTick, watch, openBlock, createBlock, createVNode, unref, withCtx, Transition, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, toDisplayString, createCommentVNode, renderSlot, resolveDynamicComponent, mergeProps, createTextVNode, normalizeProps, useAttrs, withModifiers, TransitionGroup, withDirectives, vShow, normalizeStyle, getCurrentInstance, vModelText, resolveComponent, Comment as Comment$1, Text, useSlots } from "vue";
21
21
  var axios$2 = { exports: {} };
22
22
  var bind$2 = function bind(fn, thisArg) {
23
23
  return function wrap() {
@@ -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" };
3704
- const _hoisted_3$g = ["textContent", "onClick"];
3705
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
4173
+ const _hoisted_1$q = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Open options", -1);
4174
+ const _hoisted_2$k = { class: "py-1" };
4175
+ const _hoisted_3$j = ["textContent", "onClick"];
4176
+ const _sfc_main$v = /* @__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$q,
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), {
@@ -3778,7 +4249,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3778
4249
  ]),
3779
4250
  textContent: toDisplayString(item.label),
3780
4251
  onClick: ($event) => emitEvent(item.event)
3781
- }, null, 10, _hoisted_3$g)
4252
+ }, null, 10, _hoisted_3$j)
3782
4253
  ]),
3783
4254
  _: 2
3784
4255
  }, 1024)) : createCommentVNode("", true)
@@ -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"];
3802
- const _hoisted_3$f = ["textContent"];
3803
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
4271
+ const _hoisted_1$p = { class: "px-4 py-5 sm:p-6 text-center" };
4272
+ const _hoisted_2$j = ["textContent"];
4273
+ const _hoisted_3$i = ["textContent"];
4274
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
3804
4275
  props: {
3805
4276
  cards: null
3806
4277
  },
@@ -3814,16 +4285,16 @@ 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$p, [
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)
3826
- }, null, 8, _hoisted_3$f)
4297
+ }, null, 8, _hoisted_3$i)
3827
4298
  ])
3828
4299
  ])
3829
4300
  ]);
@@ -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$o = { 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
- 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
- const _hoisted_4$b = { class: "mt-3 text-center sm:mt-5" };
3842
- const _hoisted_5$9 = { class: "mt-2" };
3843
- const _hoisted_6$9 = { class: "mt-5 sm:mt-6" };
3844
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
4311
+ const _hoisted_3$h = { 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" };
4312
+ const _hoisted_4$e = { class: "mt-3 text-center sm:mt-5" };
4313
+ const _hoisted_5$c = { class: "mt-2" };
4314
+ const _hoisted_6$c = { class: "mt-5 sm:mt-6" };
4315
+ const _sfc_main$t = /* @__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$o, [
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",
@@ -3891,20 +4362,20 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
3891
4362
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
3892
4363
  }, {
3893
4364
  default: withCtx(() => [
3894
- createElementVNode("div", _hoisted_3$e, [
4365
+ createElementVNode("div", _hoisted_3$h, [
3895
4366
  createElementVNode("div", null, [
3896
4367
  renderSlot(_ctx.$slots, "icon"),
3897
- createElementVNode("div", _hoisted_4$b, [
4368
+ createElementVNode("div", _hoisted_4$e, [
3898
4369
  createVNode(unref(DialogTitle), {
3899
4370
  as: "h3",
3900
4371
  textContent: toDisplayString(__props.title)
3901
4372
  }, null, 8, ["textContent"]),
3902
- createElementVNode("div", _hoisted_5$9, [
4373
+ createElementVNode("div", _hoisted_5$c, [
3903
4374
  renderSlot(_ctx.$slots, "default")
3904
4375
  ])
3905
4376
  ])
3906
4377
  ]),
3907
- createElementVNode("div", _hoisted_6$9, [
4378
+ createElementVNode("div", _hoisted_6$c, [
3908
4379
  createElementVNode("button", {
3909
4380
  type: "button",
3910
4381
  class: "inline-flex justify-center w-full xy-btn",
@@ -6018,25 +6489,30 @@ 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$s = /* @__PURE__ */ defineComponent({
6022
6493
  props: {
6494
+ disabled: { type: Boolean, default: false },
6023
6495
  label: { default: "" },
6024
6496
  tag: { default: "label" }
6025
6497
  },
6026
6498
  setup(__props) {
6027
6499
  return (_ctx, _cache) => {
6028
- return __props.label ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), normalizeProps(mergeProps({ key: 0 }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
6029
- class: "block my-1 text-sm font-semibold leading-snug text-gray-900"
6030
- }))), {
6500
+ return __props.label ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), mergeProps({
6501
+ key: 0,
6502
+ class: {
6503
+ "block my-1 text-sm font-semibold leading-snug text-gray-900": true,
6504
+ "opacity-75": __props.disabled
6505
+ }
6506
+ }, __spreadValues({}, _ctx.$attrs)), {
6031
6507
  default: withCtx(() => [
6032
6508
  createTextVNode(toDisplayString(__props.label), 1)
6033
6509
  ]),
6034
6510
  _: 1
6035
- }, 16)) : createCommentVNode("", true);
6511
+ }, 16, ["class"])) : createCommentVNode("", true);
6036
6512
  };
6037
6513
  }
6038
6514
  });
6039
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
6515
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6040
6516
  props: {
6041
6517
  tag: { default: "div" },
6042
6518
  text: { default: "" }
@@ -6044,7 +6520,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6044
6520
  setup(__props) {
6045
6521
  return (_ctx, _cache) => {
6046
6522
  return __props.text ? (openBlock(), createBlock(resolveDynamicComponent(__props.tag), normalizeProps(mergeProps({ key: 0 }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
6047
- class: "mt-2 text-sm leading-snug font-semibold text-gray-700"
6523
+ class: "mt-1 text-sm leading-snug font-normal text-gray-700"
6048
6524
  }))), {
6049
6525
  default: withCtx(() => [
6050
6526
  createTextVNode(toDisplayString(__props.text), 1)
@@ -6054,8 +6530,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6054
6530
  };
6055
6531
  }
6056
6532
  });
6057
- const _hoisted_1$l = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
6058
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
6533
+ const _hoisted_1$n = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
6534
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
6059
6535
  props: {
6060
6536
  type: null,
6061
6537
  help: { default: "" },
@@ -6086,7 +6562,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6086
6562
  });
6087
6563
  return (_ctx, _cache) => {
6088
6564
  return openBlock(), createElementBlock(Fragment, null, [
6089
- createVNode(_sfc_main$o, {
6565
+ createVNode(_sfc_main$s, {
6090
6566
  class: "block",
6091
6567
  id: `${unref(uuid)}-label`,
6092
6568
  for: unref(uuid),
@@ -6104,7 +6580,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6104
6580
  "focus:border-blue-500",
6105
6581
  "border-gray-600",
6106
6582
  "rounded-md",
6107
- "w-full"
6583
+ "w-full",
6584
+ "disabled:opacity-70",
6585
+ "disabled:cursor-not-allowed"
6108
6586
  ] : []
6109
6587
  ],
6110
6588
  id: unref(uuid),
@@ -6112,8 +6590,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6112
6590
  type: __props.type,
6113
6591
  value: __props.modelValue,
6114
6592
  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, {
6593
+ }, _ctx.$attrs), null, 16, _hoisted_1$n),
6594
+ createVNode(_sfc_main$r, {
6117
6595
  id: `${unref(uuid)}-help`,
6118
6596
  text: __props.help
6119
6597
  }, null, 8, ["id", "text"])
@@ -6121,7 +6599,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6121
6599
  };
6122
6600
  }
6123
6601
  });
6124
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
6602
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
6125
6603
  props: {
6126
6604
  modelValue: null,
6127
6605
  startDate: { default: 0 },
@@ -6158,7 +6636,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6158
6636
  });
6159
6637
  });
6160
6638
  return (_ctx, _cache) => {
6161
- return openBlock(), createBlock(_sfc_main$m, {
6639
+ return openBlock(), createBlock(_sfc_main$q, {
6162
6640
  type: "text",
6163
6641
  placeholder: "mm-dd-yyyy range",
6164
6642
  id: unref(uuid),
@@ -6168,15 +6646,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6168
6646
  };
6169
6647
  }
6170
6648
  });
6171
- const _hoisted_1$k = ["aria-labelledby", "aria-describedby", "id", "value"];
6172
- const _hoisted_2$g = {
6649
+ const _hoisted_1$m = ["aria-labelledby", "aria-describedby", "id", "value"];
6650
+ const _hoisted_2$h = {
6173
6651
  key: 0,
6174
6652
  value: "",
6175
6653
  disabled: "",
6176
6654
  selected: ""
6177
6655
  };
6178
- const _hoisted_3$d = ["value", "textContent"];
6179
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
6656
+ const _hoisted_3$g = ["value", "textContent"];
6657
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6180
6658
  props: {
6181
6659
  design: { default: "standard" },
6182
6660
  label: { default: "" },
@@ -6192,13 +6670,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6192
6670
  const uuid = attrs.id || Uniques.CreateIdAttribute();
6193
6671
  const classes = computed(() => {
6194
6672
  return {
6195
- 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",
6196
- 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"
6673
+ 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 disabled:opacity-70 disabled:cursor-not-allowed",
6674
+ 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 disabled:opacity-70 disabled:cursor-not-allowed"
6197
6675
  }[props.design];
6198
6676
  });
6199
6677
  return (_ctx, _cache) => {
6200
6678
  return openBlock(), createElementBlock(Fragment, null, [
6201
- createVNode(_sfc_main$o, {
6679
+ createVNode(_sfc_main$s, {
6202
6680
  id: `${unref(uuid)}-label`,
6203
6681
  for: unref(uuid),
6204
6682
  label: __props.label
@@ -6214,16 +6692,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6214
6692
  emit("update:modelValue", $event.target.value);
6215
6693
  }
6216
6694
  })), [
6217
- __props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$g, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
6695
+ __props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$h, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
6218
6696
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
6219
6697
  return openBlock(), createElementBlock("option", {
6220
6698
  value: option.value,
6221
6699
  textContent: toDisplayString(option.label),
6222
6700
  key: option.value
6223
- }, null, 8, _hoisted_3$d);
6701
+ }, null, 8, _hoisted_3$g);
6224
6702
  }), 128))
6225
- ], 16, _hoisted_1$k),
6226
- createVNode(_sfc_main$n, {
6703
+ ], 16, _hoisted_1$m),
6704
+ createVNode(_sfc_main$r, {
6227
6705
  id: `${unref(uuid)}-help`,
6228
6706
  text: __props.help
6229
6707
  }, null, 8, ["id", "text"])
@@ -6231,11 +6709,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6231
6709
  };
6232
6710
  }
6233
6711
  });
6234
- const _hoisted_1$j = { class: "md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100" };
6235
- const _hoisted_2$f = { class: "flex-1 min-w-0" };
6236
- const _hoisted_3$c = { class: "text-lg leading-6 font-semibold text-gray-900" };
6237
- const _hoisted_4$a = { class: "mt-4 flex md:mt-0 md:ml-4" };
6238
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
6712
+ const _hoisted_1$l = { class: "md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100" };
6713
+ const _hoisted_2$g = { class: "flex-1 min-w-0" };
6714
+ const _hoisted_3$f = { class: "text-lg leading-6 font-semibold text-gray-900" };
6715
+ const _hoisted_4$d = { class: "mt-4 flex md:mt-0 md:ml-4" };
6716
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6239
6717
  props: {
6240
6718
  dateRange: null,
6241
6719
  sortDir: null,
@@ -6257,12 +6735,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6257
6735
  emits("date-range-changed", dateRange2);
6258
6736
  };
6259
6737
  return (_ctx, _cache) => {
6260
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
6261
- createElementVNode("div", _hoisted_2$f, [
6262
- createElementVNode("h1", _hoisted_3$c, toDisplayString(__props.title), 1)
6738
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
6739
+ createElementVNode("div", _hoisted_2$g, [
6740
+ createElementVNode("h1", _hoisted_3$f, toDisplayString(__props.title), 1)
6263
6741
  ]),
6264
- createElementVNode("div", _hoisted_4$a, [
6265
- createVNode(_sfc_main$k, {
6742
+ createElementVNode("div", _hoisted_4$d, [
6743
+ createVNode(_sfc_main$o, {
6266
6744
  modelValue: sortDir.value,
6267
6745
  "onUpdate:modelValue": [
6268
6746
  _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
@@ -6270,7 +6748,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6270
6748
  ],
6271
6749
  options: sortOptions
6272
6750
  }, null, 8, ["modelValue"]),
6273
- createVNode(_sfc_main$l, {
6751
+ createVNode(_sfc_main$p, {
6274
6752
  modelValue: dateRange.value,
6275
6753
  "onUpdate:modelValue": [
6276
6754
  _cache[1] || (_cache[1] = ($event) => dateRange.value = $event),
@@ -6283,9 +6761,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6283
6761
  };
6284
6762
  }
6285
6763
  });
6286
- const _hoisted_1$i = { class: "px-4 flex items-center justify-between sm:px-0" };
6287
- const _hoisted_2$e = { class: "w-0 flex-1 flex" };
6288
- const _hoisted_3$b = /* @__PURE__ */ createElementVNode("svg", {
6764
+ const _hoisted_1$k = { class: "px-4 flex items-center justify-between sm:px-0" };
6765
+ const _hoisted_2$f = { class: "w-0 flex-1 flex" };
6766
+ const _hoisted_3$e = /* @__PURE__ */ createElementVNode("svg", {
6289
6767
  class: "mr-3 h-5 w-5",
6290
6768
  fill: "currentColor",
6291
6769
  viewBox: "0 0 20 20"
@@ -6296,12 +6774,12 @@ const _hoisted_3$b = /* @__PURE__ */ createElementVNode("svg", {
6296
6774
  "clip-rule": "evenodd"
6297
6775
  })
6298
6776
  ], -1);
6299
- const _hoisted_4$9 = /* @__PURE__ */ createTextVNode(" Previous ");
6300
- const _hoisted_5$8 = [
6301
- _hoisted_3$b,
6302
- _hoisted_4$9
6777
+ const _hoisted_4$c = /* @__PURE__ */ createTextVNode(" Previous ");
6778
+ const _hoisted_5$b = [
6779
+ _hoisted_3$e,
6780
+ _hoisted_4$c
6303
6781
  ];
6304
- const _hoisted_6$8 = { class: "hidden md:flex" };
6782
+ const _hoisted_6$b = { class: "hidden md:flex" };
6305
6783
  const _hoisted_7$8 = ["textContent", "onClick"];
6306
6784
  const _hoisted_8$8 = { class: "w-0 flex-1 flex justify-end" };
6307
6785
  const _hoisted_9$8 = /* @__PURE__ */ createTextVNode(" Next ");
@@ -6320,60 +6798,57 @@ const _hoisted_11$5 = [
6320
6798
  _hoisted_9$8,
6321
6799
  _hoisted_10$8
6322
6800
  ];
6323
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
6801
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6324
6802
  props: {
6325
6803
  modelValue: null
6326
6804
  },
6327
6805
  emits: ["update:modelValue"],
6328
6806
  setup(__props, { emit }) {
6329
6807
  const props = __props;
6330
- const pagination = ref(props.modelValue);
6331
- const updateModelValue2 = () => {
6332
- emit("update:modelValue", pagination.value);
6333
- };
6334
6808
  const changePage = (page) => {
6335
- pagination.value.page = page;
6336
- updateModelValue2();
6809
+ emit("update:modelValue", __spreadProps(__spreadValues({}, props.modelValue), {
6810
+ page
6811
+ }));
6337
6812
  };
6338
6813
  const pageShortcuts = computed(() => {
6339
6814
  const shortcuts = [];
6340
- if (pagination.value.totalPages <= 4) {
6341
- for (let i = 0; i < pagination.value.totalPages; i++) {
6815
+ if (props.modelValue.totalPages <= 4) {
6816
+ for (let i = 0; i < props.modelValue.totalPages; i++) {
6342
6817
  shortcuts.push(i + 1);
6343
6818
  }
6344
6819
  return shortcuts;
6345
6820
  }
6346
- const pagesLeft = pagination.value.totalPages - pagination.value.page;
6821
+ const pagesLeft = props.modelValue.totalPages - props.modelValue.page;
6347
6822
  if (pagesLeft >= 3) {
6348
6823
  for (let i = 0; i < 4; i++) {
6349
- shortcuts.push(pagination.value.page + i);
6824
+ shortcuts.push(props.modelValue.page + i);
6350
6825
  }
6351
6826
  return shortcuts;
6352
6827
  }
6353
6828
  for (let i = 0; i < 4; i++) {
6354
- shortcuts.unshift(pagination.value.totalPages - i);
6829
+ shortcuts.unshift(props.modelValue.totalPages - i);
6355
6830
  }
6356
6831
  return shortcuts;
6357
6832
  });
6358
6833
  return (_ctx, _cache) => {
6359
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
6360
- createElementVNode("div", _hoisted_2$e, [
6834
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
6835
+ createElementVNode("div", _hoisted_2$f, [
6361
6836
  createElementVNode("a", {
6362
6837
  href: "#",
6363
6838
  class: normalizeClass([
6364
6839
  "-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",
6365
- pagination.value.page == 1 ? "text-gray-500 cursor-not-allowed pointer-events-none" : "text-gray-700 hover:text-gray-900 hover:border-gray-300"
6840
+ __props.modelValue.page == 1 ? "text-gray-500 cursor-not-allowed pointer-events-none" : "text-gray-700 hover:text-gray-900 hover:border-gray-300"
6366
6841
  ]),
6367
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => changePage(pagination.value.page - 1), ["prevent"]))
6368
- }, _hoisted_5$8, 2)
6842
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => changePage(__props.modelValue.page - 1), ["prevent"]))
6843
+ }, _hoisted_5$b, 2)
6369
6844
  ]),
6370
- createElementVNode("div", _hoisted_6$8, [
6845
+ createElementVNode("div", _hoisted_6$b, [
6371
6846
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(pageShortcuts), (i) => {
6372
6847
  return openBlock(), createElementBlock("a", {
6373
6848
  href: "#",
6374
6849
  class: normalizeClass([
6375
6850
  "-mt-px border-t-2 pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium",
6376
- pagination.value.page === i ? "border-blue-500 text-blue-600 focus:outline-none focus:text-blue-800 focus:border-blue-700" : "border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400"
6851
+ __props.modelValue.page === i ? "border-blue-500 text-blue-600 focus:outline-none focus:text-blue-800 focus:border-blue-700" : "border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400"
6377
6852
  ]),
6378
6853
  key: i,
6379
6854
  textContent: toDisplayString(i),
@@ -6386,20 +6861,20 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6386
6861
  href: "#",
6387
6862
  class: normalizeClass([
6388
6863
  "-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",
6389
- pagination.value.page >= pagination.value.totalPages ? "text-gray-500 cursor-not-allowed pointer-events-none" : "text-gray-700 hover:text-gray-900 hover:border-gray-300"
6864
+ __props.modelValue.page >= __props.modelValue.totalPages ? "text-gray-500 cursor-not-allowed pointer-events-none" : "text-gray-700 hover:text-gray-900 hover:border-gray-300"
6390
6865
  ]),
6391
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => changePage(pagination.value.page + 1), ["prevent"]))
6866
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => changePage(__props.modelValue.page + 1), ["prevent"]))
6392
6867
  }, _hoisted_11$5, 2)
6393
6868
  ])
6394
6869
  ]);
6395
6870
  };
6396
6871
  }
6397
6872
  });
6398
- const _hoisted_1$h = {
6873
+ const _hoisted_1$j = {
6399
6874
  key: 0,
6400
6875
  class: "shadow overflow-hidden sm:rounded-md border"
6401
6876
  };
6402
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
6877
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6403
6878
  props: {
6404
6879
  refreshTrigger: { default: 0 },
6405
6880
  reloadTrigger: { default: 0 },
@@ -6454,14 +6929,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6454
6929
  loadAndRender(true);
6455
6930
  return (_ctx, _cache) => {
6456
6931
  return openBlock(), createElementBlock("div", null, [
6457
- createVNode(_sfc_main$j, {
6932
+ createVNode(_sfc_main$n, {
6458
6933
  "date-range": dateRange.value,
6459
6934
  "sort-dir": sortDir.value,
6460
6935
  title: __props.title,
6461
6936
  onSortDirChanged: _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
6462
6937
  onDateRangeChanged: _cache[1] || (_cache[1] = ($event) => dateRange.value = $event)
6463
6938
  }, null, 8, ["date-range", "sort-dir", "title"]),
6464
- hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
6939
+ hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
6465
6940
  createElementVNode("ul", null, [
6466
6941
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, idx) => {
6467
6942
  return openBlock(), createElementBlock("li", {
@@ -6473,7 +6948,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6473
6948
  }), 128))
6474
6949
  ])
6475
6950
  ])) : renderSlot(_ctx.$slots, "empty", { key: 1 }),
6476
- hasContent.value ? (openBlock(), createBlock(_sfc_main$i, {
6951
+ hasContent.value ? (openBlock(), createBlock(_sfc_main$m, {
6477
6952
  key: 2,
6478
6953
  modelValue: pagination.value,
6479
6954
  "onUpdate:modelValue": [
@@ -6485,8 +6960,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6485
6960
  };
6486
6961
  }
6487
6962
  });
6488
- const _hoisted_1$g = ["href"];
6489
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
6963
+ const _hoisted_1$i = ["href"];
6964
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6490
6965
  props: {
6491
6966
  propsData: null,
6492
6967
  attribute: null
@@ -6496,17 +6971,17 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
6496
6971
  return openBlock(), createElementBlock("a", {
6497
6972
  href: __props.propsData[__props.attribute]
6498
6973
  }, [
6499
- createVNode(unref(render$4), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
6500
- ], 8, _hoisted_1$g);
6974
+ createVNode(unref(render$5), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
6975
+ ], 8, _hoisted_1$i);
6501
6976
  };
6502
6977
  }
6503
6978
  });
6504
- const _hoisted_1$f = { class: "fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-40" };
6505
- const _hoisted_2$d = { class: "rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden" };
6506
- const _hoisted_3$a = { class: "p-4" };
6507
- const _hoisted_4$8 = { class: "flex items-center" };
6508
- const _hoisted_5$7 = { class: "w-0 flex-1 flex justify-between" };
6509
- const _hoisted_6$7 = ["innerHTML"];
6979
+ const _hoisted_1$h = { class: "fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-40" };
6980
+ const _hoisted_2$e = { class: "rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden" };
6981
+ const _hoisted_3$d = { class: "p-4" };
6982
+ const _hoisted_4$b = { class: "flex items-center" };
6983
+ const _hoisted_5$a = { class: "w-0 flex-1 flex justify-between" };
6984
+ const _hoisted_6$a = ["innerHTML"];
6510
6985
  const _hoisted_7$7 = { class: "ml-4 flex-shrink-0 flex" };
6511
6986
  const _hoisted_8$7 = ["onClick"];
6512
6987
  const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
@@ -6523,7 +6998,7 @@ const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
6523
6998
  const _hoisted_10$7 = [
6524
6999
  _hoisted_9$7
6525
7000
  ];
6526
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
7001
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6527
7002
  setup(__props) {
6528
7003
  const flashes = ref([]);
6529
7004
  const flashTypeBorderClass = {
@@ -6578,7 +7053,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6578
7053
  }
6579
7054
  });
6580
7055
  return (_ctx, _cache) => {
6581
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
7056
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
6582
7057
  createVNode(TransitionGroup, {
6583
7058
  tag: "div",
6584
7059
  class: "max-w-sm w-full",
@@ -6595,14 +7070,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6595
7070
  key: flash.message,
6596
7071
  class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform", [{ "mt-2": idx > 0 }, getFlashClass(flash)]])
6597
7072
  }, [
6598
- createElementVNode("div", _hoisted_2$d, [
6599
- createElementVNode("div", _hoisted_3$a, [
6600
- createElementVNode("div", _hoisted_4$8, [
6601
- createElementVNode("div", _hoisted_5$7, [
7073
+ createElementVNode("div", _hoisted_2$e, [
7074
+ createElementVNode("div", _hoisted_3$d, [
7075
+ createElementVNode("div", _hoisted_4$b, [
7076
+ createElementVNode("div", _hoisted_5$a, [
6602
7077
  createElementVNode("p", {
6603
7078
  class: "w-0 flex-1 text-sm leading-5 font-medium text-gray-900",
6604
7079
  innerHTML: flash.message
6605
- }, null, 8, _hoisted_6$7)
7080
+ }, null, 8, _hoisted_6$a)
6606
7081
  ]),
6607
7082
  createElementVNode("div", _hoisted_7$7, [
6608
7083
  createElementVNode("button", {
@@ -6622,6 +7097,22 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6622
7097
  };
6623
7098
  }
6624
7099
  });
7100
+ function render$4(_ctx, _cache) {
7101
+ return openBlock(), createBlock("svg", {
7102
+ xmlns: "http://www.w3.org/2000/svg",
7103
+ fill: "none",
7104
+ viewBox: "0 0 24 24",
7105
+ stroke: "currentColor",
7106
+ "aria-hidden": "true"
7107
+ }, [
7108
+ createVNode("path", {
7109
+ "stroke-linecap": "round",
7110
+ "stroke-linejoin": "round",
7111
+ "stroke-width": "2",
7112
+ d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
7113
+ })
7114
+ ]);
7115
+ }
6625
7116
  function render$3(_ctx, _cache) {
6626
7117
  return openBlock(), createBlock("svg", {
6627
7118
  xmlns: "http://www.w3.org/2000/svg",
@@ -6654,7 +7145,7 @@ function render$2(_ctx, _cache) {
6654
7145
  })
6655
7146
  ]);
6656
7147
  }
6657
- function render$111(_ctx, _cache) {
7148
+ function render$113(_ctx, _cache) {
6658
7149
  return openBlock(), createBlock("svg", {
6659
7150
  xmlns: "http://www.w3.org/2000/svg",
6660
7151
  fill: "none",
@@ -6686,15 +7177,15 @@ function render(_ctx, _cache) {
6686
7177
  })
6687
7178
  ]);
6688
7179
  }
6689
- const _hoisted_1$e = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
6690
- const _hoisted_2$c = /* @__PURE__ */ createElementVNode("span", {
7180
+ const _hoisted_1$g = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
7181
+ const _hoisted_2$d = /* @__PURE__ */ createElementVNode("span", {
6691
7182
  class: "hidden sm:inline-block sm:align-middle sm:h-screen",
6692
7183
  "aria-hidden": "true"
6693
7184
  }, "\u200B", -1);
6694
- 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" };
6695
- const _hoisted_4$7 = { class: "block absolute top-0 right-0 pt-4 pr-4" };
6696
- const _hoisted_5$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close", -1);
6697
- const _hoisted_6$6 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
7185
+ const _hoisted_3$c = { 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" };
7186
+ const _hoisted_4$a = { class: "block absolute top-0 right-0 pt-4 pr-4" };
7187
+ const _hoisted_5$9 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close", -1);
7188
+ const _hoisted_6$9 = { class: "bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4" };
6698
7189
  const _hoisted_7$6 = { class: "mt-3 sm:mt-0 sm:text-left" };
6699
7190
  const _hoisted_8$6 = { class: "mt-2" };
6700
7191
  const _hoisted_9$6 = {
@@ -6702,7 +7193,7 @@ const _hoisted_9$6 = {
6702
7193
  class: "bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
6703
7194
  };
6704
7195
  const _hoisted_10$6 = ["textContent", "disabled"];
6705
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
7196
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6706
7197
  props: {
6707
7198
  destructive: { type: Boolean, default: false },
6708
7199
  disabled: { type: Boolean, default: false },
@@ -6732,7 +7223,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6732
7223
  open: __props.modelValue
6733
7224
  }, {
6734
7225
  default: withCtx(() => [
6735
- createElementVNode("div", _hoisted_1$e, [
7226
+ createElementVNode("div", _hoisted_1$g, [
6736
7227
  createVNode(unref(TransitionChild), {
6737
7228
  as: "template",
6738
7229
  enter: "ease-out duration-300",
@@ -6747,7 +7238,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6747
7238
  ]),
6748
7239
  _: 1
6749
7240
  }),
6750
- _hoisted_2$c,
7241
+ _hoisted_2$d,
6751
7242
  createVNode(unref(TransitionChild), {
6752
7243
  as: "template",
6753
7244
  enter: "ease-out duration-300",
@@ -6758,21 +7249,21 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6758
7249
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
6759
7250
  }, {
6760
7251
  default: withCtx(() => [
6761
- createElementVNode("div", _hoisted_3$9, [
6762
- createElementVNode("div", _hoisted_4$7, [
7252
+ createElementVNode("div", _hoisted_3$c, [
7253
+ createElementVNode("div", _hoisted_4$a, [
6763
7254
  createElementVNode("button", {
6764
7255
  type: "button",
6765
7256
  class: "bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",
6766
7257
  onClick: _cache[0] || (_cache[0] = ($event) => updateModelValue2(false))
6767
7258
  }, [
6768
- _hoisted_5$6,
7259
+ _hoisted_5$9,
6769
7260
  createVNode(unref(render), {
6770
7261
  class: "h-6 w-6",
6771
7262
  "aria-hidden": "true"
6772
7263
  })
6773
7264
  ])
6774
7265
  ]),
6775
- createElementVNode("div", _hoisted_6$6, [
7266
+ createElementVNode("div", _hoisted_6$9, [
6776
7267
  createElementVNode("div", _hoisted_7$6, [
6777
7268
  createVNode(unref(DialogTitle), {
6778
7269
  as: "h3",
@@ -6814,11 +7305,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6814
7305
  };
6815
7306
  }
6816
7307
  });
6817
- const _hoisted_1$d = {
7308
+ const _hoisted_1$f = {
6818
7309
  key: 0,
6819
7310
  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"
6820
7311
  };
6821
- const _hoisted_2$b = /* @__PURE__ */ createElementVNode("div", { class: "flex justify-center" }, [
7312
+ const _hoisted_2$c = /* @__PURE__ */ createElementVNode("div", { class: "flex justify-center" }, [
6822
7313
  /* @__PURE__ */ createElementVNode("div", { class: "animate-spin-gear" }, [
6823
7314
  /* @__PURE__ */ createElementVNode("svg", {
6824
7315
  width: "129px",
@@ -6896,7 +7387,7 @@ const _hoisted_2$b = /* @__PURE__ */ createElementVNode("div", { class: "flex ju
6896
7387
  ])
6897
7388
  ])
6898
7389
  ], -1);
6899
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
7390
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6900
7391
  setup(__props) {
6901
7392
  const idx = ref(0);
6902
7393
  const loading = ref(false);
@@ -6938,9 +7429,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
6938
7429
  });
6939
7430
  });
6940
7431
  return (_ctx, _cache) => {
6941
- return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
7432
+ return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
6942
7433
  createElementVNode("div", null, [
6943
- _hoisted_2$b,
7434
+ _hoisted_2$c,
6944
7435
  withDirectives(createElementVNode("div", null, [
6945
7436
  createVNode(Transition, {
6946
7437
  appear: "",
@@ -6968,12 +7459,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
6968
7459
  };
6969
7460
  }
6970
7461
  });
6971
- const _hoisted_1$c = { class: "h-screen flex overflow-hidden bg-gray-100" };
6972
- const _hoisted_2$a = { class: "relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white" };
6973
- const _hoisted_3$8 = { class: "absolute top-0 right-0 -mr-12 pt-2" };
6974
- const _hoisted_4$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close sidebar", -1);
6975
- const _hoisted_5$5 = { class: "flex-shrink-0 flex justify-center px-4" };
6976
- const _hoisted_6$5 = ["src"];
7462
+ const _hoisted_1$e = { class: "h-screen flex overflow-hidden bg-gray-100" };
7463
+ const _hoisted_2$b = { class: "relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white" };
7464
+ const _hoisted_3$b = { class: "absolute top-0 right-0 -mr-12 pt-2" };
7465
+ const _hoisted_4$9 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close sidebar", -1);
7466
+ const _hoisted_5$8 = { class: "flex-shrink-0 flex justify-center px-4" };
7467
+ const _hoisted_6$8 = ["src"];
6977
7468
  const _hoisted_7$5 = { class: "mt-5 flex-1 h-0 overflow-y-auto" };
6978
7469
  const _hoisted_8$5 = { class: "px-2 space-y-1" };
6979
7470
  const _hoisted_9$5 = ["href", "target"];
@@ -7000,7 +7491,7 @@ const _hoisted_26 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only
7000
7491
  const _hoisted_27 = ["href"];
7001
7492
  const _hoisted_28 = { class: "flex-1 relative overflow-y-auto focus:outline-none" };
7002
7493
  const _hoisted_29 = { class: "mx-auto" };
7003
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
7494
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
7004
7495
  props: {
7005
7496
  activeURL: { default: "" },
7006
7497
  iconURL: null,
@@ -7015,7 +7506,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7015
7506
  };
7016
7507
  return (_ctx, _cache) => {
7017
7508
  return openBlock(), createElementBlock(Fragment, null, [
7018
- createElementVNode("div", _hoisted_1$c, [
7509
+ createElementVNode("div", _hoisted_1$e, [
7019
7510
  createVNode(unref(TransitionRoot), {
7020
7511
  as: "template",
7021
7512
  show: sidebarOpen.value
@@ -7053,7 +7544,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7053
7544
  "leave-to": "-translate-x-full"
7054
7545
  }, {
7055
7546
  default: withCtx(() => [
7056
- createElementVNode("div", _hoisted_2$a, [
7547
+ createElementVNode("div", _hoisted_2$b, [
7057
7548
  createVNode(unref(TransitionChild), {
7058
7549
  as: "template",
7059
7550
  enter: "ease-in-out duration-300",
@@ -7064,12 +7555,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7064
7555
  "leave-to": "opacity-0"
7065
7556
  }, {
7066
7557
  default: withCtx(() => [
7067
- createElementVNode("div", _hoisted_3$8, [
7558
+ createElementVNode("div", _hoisted_3$b, [
7068
7559
  createElementVNode("button", {
7069
7560
  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",
7070
7561
  onClick: _cache[0] || (_cache[0] = ($event) => sidebarOpen.value = false)
7071
7562
  }, [
7072
- _hoisted_4$6,
7563
+ _hoisted_4$9,
7073
7564
  createVNode(unref(render), {
7074
7565
  class: "h-6 w-6 text-white",
7075
7566
  "aria-hidden": "true"
@@ -7079,12 +7570,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7079
7570
  ]),
7080
7571
  _: 1
7081
7572
  }),
7082
- createElementVNode("div", _hoisted_5$5, [
7573
+ createElementVNode("div", _hoisted_5$8, [
7083
7574
  createElementVNode("img", {
7084
7575
  class: "w-auto h-12",
7085
7576
  src: __props.iconURL,
7086
7577
  alt: "Logo"
7087
- }, null, 8, _hoisted_6$5)
7578
+ }, null, 8, _hoisted_6$8)
7088
7579
  ]),
7089
7580
  createElementVNode("div", _hoisted_7$5, [
7090
7581
  createElementVNode("nav", _hoisted_8$5, [
@@ -7186,7 +7677,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7186
7677
  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" }, {
7187
7678
  default: withCtx(() => [
7188
7679
  _hoisted_26,
7189
- createVNode(unref(render$6), {
7680
+ createVNode(unref(render$7), {
7190
7681
  class: "h-8 w-8",
7191
7682
  fill: "currentColor"
7192
7683
  })
@@ -7240,24 +7731,238 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7240
7731
  ])
7241
7732
  ])
7242
7733
  ]),
7243
- createVNode(_sfc_main$f),
7244
- createVNode(_sfc_main$d)
7734
+ createVNode(_sfc_main$j),
7735
+ createVNode(_sfc_main$h)
7245
7736
  ], 64);
7246
7737
  };
7247
7738
  }
7248
7739
  });
7249
- const _hoisted_1$b = { class: "absolute inset-0 overflow-hidden" };
7250
- const _hoisted_2$9 = { class: "fixed inset-y-0 right-0 pl-10 max-w-full flex" };
7251
- const _hoisted_3$7 = { class: "w-screen max-w-md" };
7252
- const _hoisted_4$5 = { class: "h-full flex flex-col bg-white shadow-xl overflow-y-scroll" };
7253
- const _hoisted_5$4 = { class: "py-6 px-4 bg-blue-700 sm:px-6" };
7254
- const _hoisted_6$4 = { class: "flex items-center justify-between" };
7740
+ function throttle(func, timeout = 100) {
7741
+ let inThrottle;
7742
+ return (...args) => {
7743
+ if (!inThrottle) {
7744
+ func.apply(args);
7745
+ inThrottle = true;
7746
+ setTimeout(() => inThrottle = false, timeout);
7747
+ }
7748
+ };
7749
+ }
7750
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7751
+ props: {
7752
+ as: { default: "div" },
7753
+ position: { default: "auto" }
7754
+ },
7755
+ setup(__props) {
7756
+ const props = __props;
7757
+ const getViewportDimensions = () => {
7758
+ return {
7759
+ vw: document.documentElement.clientWidth,
7760
+ vh: document.documentElement.clientHeight
7761
+ };
7762
+ };
7763
+ const trigger = ref();
7764
+ const wrapper = ref();
7765
+ const viewport = ref(getViewportDimensions());
7766
+ const classes = computed(() => {
7767
+ const classes2 = {
7768
+ wrapper: "",
7769
+ content: ""
7770
+ };
7771
+ if (props.position === "none") {
7772
+ return classes2;
7773
+ }
7774
+ classes2.wrapper = "h-0 flex w-screen";
7775
+ classes2.content = "absolute";
7776
+ if (props.position !== "auto") {
7777
+ classes2.wrapper += ` ${staticPosition.value.wrapper}`;
7778
+ classes2.content += ` ${staticPosition.value.content}`;
7779
+ }
7780
+ return classes2;
7781
+ });
7782
+ const staticPosition = computed(() => {
7783
+ let wrapperClasses = "";
7784
+ let contentClasses = "";
7785
+ switch (props.position) {
7786
+ case "top-left":
7787
+ wrapperClasses = "top-0 right-0 -translate-y-full justify-end";
7788
+ contentClasses = "bottom-full";
7789
+ break;
7790
+ case "top-center":
7791
+ wrapperClasses = "top-0 -translate-y-full -translate-x-full left-1/2 justify-end";
7792
+ contentClasses = "bottom-full translate-x-1/2";
7793
+ break;
7794
+ case "top-right":
7795
+ wrapperClasses = "top-0 -translate-y-full left-0 -translate-x-full justify-end";
7796
+ contentClasses = "bottom-full translate-x-full";
7797
+ break;
7798
+ case "bottom-left":
7799
+ wrapperClasses = "top-full right-0 justify-end";
7800
+ contentClasses = "top-full";
7801
+ break;
7802
+ case "bottom-center":
7803
+ wrapperClasses = "top-full -translate-x-full left-1/2 justify-end";
7804
+ contentClasses = "top-full translate-x-1/2";
7805
+ break;
7806
+ case "bottom-right":
7807
+ wrapperClasses = "top-full left-0 -translate-x-full justify-end";
7808
+ contentClasses = "top-full translate-x-full";
7809
+ break;
7810
+ case "left":
7811
+ wrapperClasses = "top-1/2 left-0 -translate-y-1/2 -translate-x-full justify-end";
7812
+ contentClasses = "-translate-y-1/2";
7813
+ break;
7814
+ case "right":
7815
+ wrapperClasses = "top-1/2 -translate-y-1/2 right-0 justify-end";
7816
+ contentClasses = "translate-x-full -translate-y-1/2";
7817
+ break;
7818
+ }
7819
+ return {
7820
+ wrapper: wrapperClasses,
7821
+ content: contentClasses
7822
+ };
7823
+ });
7824
+ const autoPosition = computed(() => {
7825
+ var _a, _b;
7826
+ if (!((_a = wrapper == null ? void 0 : wrapper.value) == null ? void 0 : _a.el) || !((_b = trigger == null ? void 0 : trigger.value) == null ? void 0 : _b.el)) {
7827
+ return {};
7828
+ }
7829
+ const { vw, vh } = viewport.value;
7830
+ const offset = 10;
7831
+ const anchorRect = trigger.value.el.getBoundingClientRect();
7832
+ const contentRect = wrapper.value.el.firstChild.getBoundingClientRect();
7833
+ const distToBottom = vh - anchorRect.bottom;
7834
+ const positionAbove = anchorRect.top > distToBottom;
7835
+ const distToRight = vw - anchorRect.left;
7836
+ const flowLeft = anchorRect.left > distToRight;
7837
+ let xPos = 0;
7838
+ if (flowLeft) {
7839
+ if (contentRect.width > anchorRect.right) {
7840
+ xPos = anchorRect.right - contentRect.width + (contentRect.width - anchorRect.right);
7841
+ } else {
7842
+ xPos = anchorRect.right - contentRect.width;
7843
+ }
7844
+ if (vw > contentRect.width + offset) {
7845
+ xPos = xPos + offset;
7846
+ }
7847
+ } else {
7848
+ if (contentRect.width > distToRight) {
7849
+ xPos = anchorRect.left - (contentRect.width - distToRight);
7850
+ } else {
7851
+ xPos = anchorRect.left;
7852
+ }
7853
+ if (vw > contentRect.width + offset) {
7854
+ xPos = xPos - offset;
7855
+ }
7856
+ }
7857
+ return {
7858
+ wrapper: {
7859
+ top: positionAbove ? "auto" : `100%`,
7860
+ bottom: positionAbove ? "100%" : `auto`,
7861
+ transform: `translate(${anchorRect.left * -1}px, 0)`,
7862
+ width: `${vw}px`
7863
+ },
7864
+ content: {
7865
+ top: positionAbove ? "auto" : `100%`,
7866
+ bottom: positionAbove ? "100%" : `auto`,
7867
+ transform: `translate(${xPos}px, 0)`
7868
+ }
7869
+ };
7870
+ });
7871
+ if (props.position === "auto") {
7872
+ const throttledSetPositions = throttle(() => {
7873
+ viewport.value = getViewportDimensions();
7874
+ });
7875
+ onMounted(() => {
7876
+ window.addEventListener("resize", throttledSetPositions);
7877
+ window.addEventListener("scroll", throttledSetPositions);
7878
+ });
7879
+ onUnmounted(() => {
7880
+ window.removeEventListener("resize", throttledSetPositions);
7881
+ window.removeEventListener("scroll", throttledSetPositions);
7882
+ });
7883
+ }
7884
+ return (_ctx, _cache) => {
7885
+ return openBlock(), createBlock(unref(Popover), {
7886
+ class: "relative flex",
7887
+ as: __props.as
7888
+ }, {
7889
+ default: withCtx(({ open, close: close2 }) => [
7890
+ createVNode(unref(PopoverButton), {
7891
+ ref_key: "trigger",
7892
+ ref: trigger
7893
+ }, {
7894
+ default: withCtx(() => [
7895
+ renderSlot(_ctx.$slots, "button", {
7896
+ open,
7897
+ close: close2
7898
+ })
7899
+ ]),
7900
+ _: 2
7901
+ }, 1536),
7902
+ createVNode(Transition, {
7903
+ "enter-active-class": "transition-opacity transition-faster ease-out-quad",
7904
+ "leave-active-class": "transition-opacity transition-fastest ease-in-quad",
7905
+ "enter-from-class": "opacity-0",
7906
+ "enter-to-class": "opacity-100",
7907
+ "leave-from-class": "opacity-100",
7908
+ "leave-to-class": "opacity-0"
7909
+ }, {
7910
+ default: withCtx(() => [
7911
+ createVNode(unref(PopoverPanel), {
7912
+ ref_key: "wrapper",
7913
+ ref: wrapper,
7914
+ class: normalizeClass(["absolute z-10", unref(classes).wrapper]),
7915
+ style: normalizeStyle(__props.position === "auto" ? unref(autoPosition).wrapper : {})
7916
+ }, {
7917
+ default: withCtx(() => [
7918
+ createElementVNode("div", {
7919
+ class: normalizeClass(unref(classes).content),
7920
+ style: normalizeStyle(__props.position === "auto" ? unref(autoPosition).content : {})
7921
+ }, [
7922
+ renderSlot(_ctx.$slots, "default", {
7923
+ open,
7924
+ close: close2
7925
+ })
7926
+ ], 6)
7927
+ ]),
7928
+ _: 2
7929
+ }, 1032, ["class", "style"])
7930
+ ]),
7931
+ _: 2
7932
+ }, 1024)
7933
+ ]),
7934
+ _: 3
7935
+ }, 8, ["as"]);
7936
+ };
7937
+ }
7938
+ });
7939
+ var _export_sfc = (sfc, props) => {
7940
+ const target = sfc.__vccOpts || sfc;
7941
+ for (const [key, val] of props) {
7942
+ target[key] = val;
7943
+ }
7944
+ return target;
7945
+ };
7946
+ const _sfc_main$e = {};
7947
+ const _hoisted_1$d = { class: "w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md" };
7948
+ function _sfc_render(_ctx, _cache) {
7949
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
7950
+ renderSlot(_ctx.$slots, "default")
7951
+ ]);
7952
+ }
7953
+ var PopoverContent = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render]]);
7954
+ const _hoisted_1$c = { class: "absolute inset-0 overflow-hidden" };
7955
+ const _hoisted_2$a = { class: "fixed inset-y-0 right-0 pl-10 max-w-full flex" };
7956
+ const _hoisted_3$a = { class: "w-screen max-w-md" };
7957
+ const _hoisted_4$8 = { class: "h-full flex flex-col bg-white shadow-xl overflow-y-scroll" };
7958
+ const _hoisted_5$7 = { class: "py-6 px-4 bg-blue-700 sm:px-6" };
7959
+ const _hoisted_6$7 = { class: "flex items-center justify-between" };
7255
7960
  const _hoisted_7$4 = { class: "ml-3 h-7 flex items-center" };
7256
7961
  const _hoisted_8$4 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close panel", -1);
7257
7962
  const _hoisted_9$4 = { class: "mt-1" };
7258
7963
  const _hoisted_10$4 = ["textContent"];
7259
7964
  const _hoisted_11$3 = { class: "relative flex-1 py-6 px-4 sm:px-6" };
7260
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
7965
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
7261
7966
  props: {
7262
7967
  header: null,
7263
7968
  description: null,
@@ -7286,9 +7991,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7286
7991
  open: __props.modelValue
7287
7992
  }, {
7288
7993
  default: withCtx(() => [
7289
- createElementVNode("div", _hoisted_1$b, [
7994
+ createElementVNode("div", _hoisted_1$c, [
7290
7995
  createVNode(unref(DialogOverlay), { class: "absolute inset-0" }),
7291
- createElementVNode("div", _hoisted_2$9, [
7996
+ createElementVNode("div", _hoisted_2$a, [
7292
7997
  createVNode(unref(TransitionChild), {
7293
7998
  as: "template",
7294
7999
  enter: "transform transition ease-in-out duration-500 sm:duration-700",
@@ -7299,10 +8004,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7299
8004
  "leave-to": "translate-x-full"
7300
8005
  }, {
7301
8006
  default: withCtx(() => [
7302
- createElementVNode("div", _hoisted_3$7, [
7303
- createElementVNode("div", _hoisted_4$5, [
7304
- createElementVNode("div", _hoisted_5$4, [
7305
- createElementVNode("div", _hoisted_6$4, [
8007
+ createElementVNode("div", _hoisted_3$a, [
8008
+ createElementVNode("div", _hoisted_4$8, [
8009
+ createElementVNode("div", _hoisted_5$7, [
8010
+ createElementVNode("div", _hoisted_6$7, [
7306
8011
  createVNode(unref(DialogTitle), {
7307
8012
  as: "h3",
7308
8013
  class: "text-white",
@@ -7348,12 +8053,42 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7348
8053
  };
7349
8054
  }
7350
8055
  });
8056
+ const _hoisted_1$b = { class: "leading-none w-4 h-4" };
8057
+ const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" }, null, -1);
8058
+ const _hoisted_3$9 = { class: "w-full max-w-xs bg-white rounded-md px-3 py-2 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium" };
8059
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
8060
+ props: {
8061
+ as: { default: "span" },
8062
+ position: { default: "auto" }
8063
+ },
8064
+ setup(__props) {
8065
+ return (_ctx, _cache) => {
8066
+ return openBlock(), createBlock(_sfc_main$f, {
8067
+ position: __props.position,
8068
+ as: __props.as
8069
+ }, {
8070
+ button: withCtx(() => [
8071
+ createElementVNode("div", _hoisted_1$b, [
8072
+ createVNode(unref(render$4)),
8073
+ _hoisted_2$9
8074
+ ])
8075
+ ]),
8076
+ default: withCtx(() => [
8077
+ createElementVNode("div", _hoisted_3$9, [
8078
+ renderSlot(_ctx.$slots, "default")
8079
+ ])
8080
+ ]),
8081
+ _: 3
8082
+ }, 8, ["position", "as"]);
8083
+ };
8084
+ }
8085
+ });
7351
8086
  const _hoisted_1$a = { class: "min-h-screen bg-gray-100" };
7352
8087
  const _hoisted_2$8 = { class: "mx-auto px-4 sm:px-6 lg:px-8" };
7353
- const _hoisted_3$6 = { class: "flex justify-between h-16" };
7354
- const _hoisted_4$4 = { class: "flex" };
7355
- const _hoisted_5$3 = { class: "flex-shrink-0 flex items-center" };
7356
- const _hoisted_6$3 = ["src"];
8088
+ const _hoisted_3$8 = { class: "flex justify-between h-16" };
8089
+ const _hoisted_4$7 = { class: "flex" };
8090
+ const _hoisted_5$6 = { class: "flex-shrink-0 flex items-center" };
8091
+ const _hoisted_6$6 = ["src"];
7357
8092
  const _hoisted_7$3 = { class: "hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8" };
7358
8093
  const _hoisted_8$3 = ["href", "aria-current"];
7359
8094
  const _hoisted_9$3 = { class: "hidden sm:ml-6 sm:flex sm:items-center" };
@@ -7373,7 +8108,7 @@ const _hoisted_22$1 = { class: "mt-3 space-y-1" };
7373
8108
  const _hoisted_23$1 = ["href"];
7374
8109
  const _hoisted_24$1 = { class: "mx-auto sm:px-6 lg:px-8" };
7375
8110
  const _hoisted_25 = { class: "px-4 py-8 sm:px-0" };
7376
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
8111
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7377
8112
  props: {
7378
8113
  activeURL: { default: "" },
7379
8114
  currentUser: null,
@@ -7395,14 +8130,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7395
8130
  }, {
7396
8131
  default: withCtx(({ open }) => [
7397
8132
  createElementVNode("div", _hoisted_2$8, [
7398
- createElementVNode("div", _hoisted_3$6, [
7399
- createElementVNode("div", _hoisted_4$4, [
7400
- createElementVNode("div", _hoisted_5$3, [
8133
+ createElementVNode("div", _hoisted_3$8, [
8134
+ createElementVNode("div", _hoisted_4$7, [
8135
+ createElementVNode("div", _hoisted_5$6, [
7401
8136
  createElementVNode("img", {
7402
8137
  class: "block h-8 w-auto",
7403
8138
  src: __props.iconURL,
7404
8139
  alt: "XY Trees"
7405
- }, null, 8, _hoisted_6$3)
8140
+ }, null, 8, _hoisted_6$6)
7406
8141
  ]),
7407
8142
  createElementVNode("div", _hoisted_7$3, [
7408
8143
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.navigation, (item) => {
@@ -7428,7 +8163,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7428
8163
  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" }, {
7429
8164
  default: withCtx(() => [
7430
8165
  _hoisted_10$3,
7431
- createVNode(unref(render$111), { class: "text-gray-500 h-8 w-8 rounded-full" })
8166
+ createVNode(unref(render$113), { class: "text-gray-500 h-8 w-8 rounded-full" })
7432
8167
  ]),
7433
8168
  _: 1
7434
8169
  })
@@ -7507,7 +8242,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7507
8242
  createElementVNode("div", _hoisted_16$1, [
7508
8243
  createElementVNode("div", _hoisted_17$1, [
7509
8244
  createElementVNode("div", _hoisted_18$1, [
7510
- createVNode(unref(render$111), { class: "text-gray-500 h-10 w-10 rounded-full" })
8245
+ createVNode(unref(render$113), { class: "text-gray-500 h-10 w-10 rounded-full" })
7511
8246
  ]),
7512
8247
  createElementVNode("div", _hoisted_19$1, [
7513
8248
  __props.currentUser.name ? (openBlock(), createElementBlock("div", {
@@ -7546,23 +8281,23 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7546
8281
  ])
7547
8282
  ])
7548
8283
  ]),
7549
- createVNode(_sfc_main$f),
7550
- createVNode(_sfc_main$d)
8284
+ createVNode(_sfc_main$j),
8285
+ createVNode(_sfc_main$h)
7551
8286
  ], 64);
7552
8287
  };
7553
8288
  }
7554
8289
  });
7555
8290
  const _hoisted_1$9 = { class: "flex flex-col" };
7556
8291
  const _hoisted_2$7 = { class: "-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8" };
7557
- const _hoisted_3$5 = { class: "inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8" };
7558
- const _hoisted_4$3 = { class: "overflow-hidden border-b border-gray-200 shadow sm:rounded-lg" };
7559
- const _hoisted_5$2 = { class: "min-w-full divide-y divide-gray-200" };
7560
- const _hoisted_6$2 = ["textContent"];
8292
+ const _hoisted_3$7 = { class: "inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8" };
8293
+ const _hoisted_4$6 = { class: "overflow-hidden border-b border-gray-200 shadow sm:rounded-lg" };
8294
+ const _hoisted_5$5 = { class: "min-w-full divide-y divide-gray-200" };
8295
+ const _hoisted_6$5 = ["textContent"];
7561
8296
  const _hoisted_7$2 = { class: "bg-white divide-y divide-gray-200" };
7562
8297
  const _hoisted_8$2 = ["textContent"];
7563
8298
  const _hoisted_9$2 = { key: 0 };
7564
8299
  const _hoisted_10$2 = ["colspan"];
7565
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
8300
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7566
8301
  props: {
7567
8302
  tableData: null
7568
8303
  },
@@ -7580,9 +8315,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7580
8315
  return (_ctx, _cache) => {
7581
8316
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
7582
8317
  createElementVNode("div", _hoisted_2$7, [
7583
- createElementVNode("div", _hoisted_3$5, [
7584
- createElementVNode("div", _hoisted_4$3, [
7585
- createElementVNode("table", _hoisted_5$2, [
8318
+ createElementVNode("div", _hoisted_3$7, [
8319
+ createElementVNode("div", _hoisted_4$6, [
8320
+ createElementVNode("table", _hoisted_5$5, [
7586
8321
  createElementVNode("thead", null, [
7587
8322
  createElementVNode("tr", null, [
7588
8323
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tableData.columns, (col, idx) => {
@@ -7590,7 +8325,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7590
8325
  class: "px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-900 uppercase bg-gray-50 leading-4",
7591
8326
  key: idx,
7592
8327
  textContent: toDisplayString(col.display)
7593
- }, null, 8, _hoisted_6$2);
8328
+ }, null, 8, _hoisted_6$5);
7594
8329
  }), 128))
7595
8330
  ])
7596
8331
  ]),
@@ -7634,21 +8369,21 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7634
8369
  });
7635
8370
  const _hoisted_1$8 = { class: "flex items-center justify-center space-x-8" };
7636
8371
  const _hoisted_2$6 = { class: "font-medium" };
7637
- const _hoisted_3$4 = { class: "flex items-center space-x-5" };
7638
- const _hoisted_4$2 = {
8372
+ const _hoisted_3$6 = { class: "flex items-center space-x-5" };
8373
+ const _hoisted_4$5 = {
7639
8374
  key: 0,
7640
8375
  class: "block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"
7641
8376
  };
7642
- const _hoisted_5$1 = {
8377
+ const _hoisted_5$4 = {
7643
8378
  key: 1,
7644
8379
  class: "relative flex items-center justify-center"
7645
8380
  };
7646
- const _hoisted_6$1 = /* @__PURE__ */ createElementVNode("span", { class: "absolute w-5 h-5 p-px flex" }, [
8381
+ const _hoisted_6$4 = /* @__PURE__ */ createElementVNode("span", { class: "absolute w-5 h-5 p-px flex" }, [
7647
8382
  /* @__PURE__ */ createElementVNode("span", { class: "w-full h-full rounded-full bg-green-100" })
7648
8383
  ], -1);
7649
8384
  const _hoisted_7$1 = /* @__PURE__ */ createElementVNode("span", { class: "relative block w-2.5 h-2.5 bg-xy-green rounded-full" }, null, -1);
7650
8385
  const _hoisted_8$1 = [
7651
- _hoisted_6$1,
8386
+ _hoisted_6$4,
7652
8387
  _hoisted_7$1
7653
8388
  ];
7654
8389
  const _hoisted_9$1 = {
@@ -7667,7 +8402,7 @@ const _hoisted_11$1 = {
7667
8402
  const _hoisted_12$1 = ["textContent"];
7668
8403
  const _hoisted_13$1 = { class: "ml-3 inline-flex rounded-md shadow-sm" };
7669
8404
  const _hoisted_14$1 = ["textContent"];
7670
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
8405
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
7671
8406
  props: {
7672
8407
  hideActions: { type: Boolean, default: false },
7673
8408
  hidePrevious: { type: Boolean, default: false },
@@ -7688,10 +8423,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7688
8423
  return openBlock(), createElementBlock("div", null, [
7689
8424
  createElementVNode("nav", _hoisted_1$8, [
7690
8425
  createElementVNode("p", _hoisted_2$6, "Step " + toDisplayString(__props.step) + " of " + toDisplayString(__props.total), 1),
7691
- createElementVNode("ul", _hoisted_3$4, [
8426
+ createElementVNode("ul", _hoisted_3$6, [
7692
8427
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.total, (index) => {
7693
8428
  return openBlock(), createElementBlock("li", { key: index }, [
7694
- __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))
8429
+ __props.step > index ? (openBlock(), createElementBlock("span", _hoisted_4$5)) : __props.step === index ? (openBlock(), createElementBlock("div", _hoisted_5$4, _hoisted_8$1)) : (openBlock(), createElementBlock("span", _hoisted_9$1))
7695
8430
  ]);
7696
8431
  }), 128))
7697
8432
  ])
@@ -7723,12 +8458,12 @@ const _hoisted_2$5 = {
7723
8458
  key: 0,
7724
8459
  class: "w-full max-w-lg lg:max-w-xs"
7725
8460
  };
7726
- const _hoisted_3$3 = /* @__PURE__ */ createElementVNode("label", {
8461
+ const _hoisted_3$5 = /* @__PURE__ */ createElementVNode("label", {
7727
8462
  for: "search",
7728
8463
  class: "sr-only"
7729
8464
  }, "Search", -1);
7730
- const _hoisted_4$1 = { class: "relative" };
7731
- const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none" }, [
8465
+ const _hoisted_4$4 = { class: "relative" };
8466
+ const _hoisted_5$3 = /* @__PURE__ */ createElementVNode("div", { class: "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none" }, [
7732
8467
  /* @__PURE__ */ createElementVNode("svg", {
7733
8468
  class: "w-5 h-5 text-gray-400",
7734
8469
  fill: "currentColor",
@@ -7741,7 +8476,7 @@ const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "absolute
7741
8476
  })
7742
8477
  ])
7743
8478
  ], -1);
7744
- const _hoisted_6 = {
8479
+ const _hoisted_6$3 = {
7745
8480
  key: 1,
7746
8481
  class: "w-full max-w-lg lg:max-w-xs"
7747
8482
  };
@@ -7801,7 +8536,7 @@ const _hoisted_21 = ["onClick"];
7801
8536
  const _hoisted_22 = ["textContent"];
7802
8537
  const _hoisted_23 = { key: 0 };
7803
8538
  const _hoisted_24 = ["colspan"];
7804
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
8539
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
7805
8540
  props: {
7806
8541
  clickable: { type: Boolean, default: false },
7807
8542
  loader: { type: Boolean, default: true },
@@ -7887,9 +8622,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7887
8622
  return openBlock(), createElementBlock("div", null, [
7888
8623
  createElementVNode("div", _hoisted_1$7, [
7889
8624
  __props.tableData.search ? (openBlock(), createElementBlock("div", _hoisted_2$5, [
7890
- _hoisted_3$3,
7891
- createElementVNode("div", _hoisted_4$1, [
7892
- _hoisted_5,
8625
+ _hoisted_3$5,
8626
+ createElementVNode("div", _hoisted_4$4, [
8627
+ _hoisted_5$3,
7893
8628
  withDirectives(createElementVNode("input", {
7894
8629
  class: "pl-10",
7895
8630
  type: "search",
@@ -7906,8 +8641,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7906
8641
  ])
7907
8642
  ])
7908
8643
  ])) : createCommentVNode("", true),
7909
- __props.tableData.dateSearch ? (openBlock(), createElementBlock("div", _hoisted_6, [
7910
- createVNode(_sfc_main$l, {
8644
+ __props.tableData.dateSearch ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
8645
+ createVNode(_sfc_main$p, {
7911
8646
  modelValue: dateRange.value,
7912
8647
  "onUpdate:modelValue": [
7913
8648
  _cache[2] || (_cache[2] = ($event) => dateRange.value = $event),
@@ -7972,7 +8707,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7972
8707
  ])
7973
8708
  ])
7974
8709
  ]),
7975
- unref(hasContent) ? (openBlock(), createBlock(_sfc_main$i, {
8710
+ unref(hasContent) ? (openBlock(), createBlock(_sfc_main$m, {
7976
8711
  key: 0,
7977
8712
  modelValue: pagination.value,
7978
8713
  "onUpdate:modelValue": [
@@ -7989,8 +8724,8 @@ const _hoisted_1$6 = /* @__PURE__ */ createElementVNode("label", {
7989
8724
  class: "sr-only"
7990
8725
  }, "Select a tab", -1);
7991
8726
  const _hoisted_2$4 = { class: "hidden sm:block" };
7992
- const _hoisted_3$2 = ["textContent", "onClick"];
7993
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8727
+ const _hoisted_3$4 = ["textContent", "onClick"];
8728
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7994
8729
  props: {
7995
8730
  modelValue: null,
7996
8731
  pillDesign: { type: Boolean, default: false },
@@ -8054,7 +8789,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8054
8789
  key: idx,
8055
8790
  textContent: toDisplayString(tab.label),
8056
8791
  onClick: withModifiers(($event) => updateModelValue2(tab.value), ["prevent"])
8057
- }, null, 10, _hoisted_3$2);
8792
+ }, null, 10, _hoisted_3$4);
8058
8793
  }), 128))
8059
8794
  ], 2)
8060
8795
  ], 2)
@@ -8064,7 +8799,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8064
8799
  }
8065
8800
  });
8066
8801
  const _hoisted_1$5 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Use", -1);
8067
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8802
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
8068
8803
  props: {
8069
8804
  modelValue: { type: Boolean, default: false }
8070
8805
  },
@@ -8094,11 +8829,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8094
8829
  };
8095
8830
  }
8096
8831
  });
8097
- const _hoisted_1$4 = { class: "inline-flex items-center" };
8098
- const _hoisted_2$3 = ["aria-labelledby", "checked", "id"];
8099
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8832
+ const _hoisted_1$4 = { class: "relative flex items-start" };
8833
+ const _hoisted_2$3 = { class: "flex items-center h-5" };
8834
+ const _hoisted_3$3 = ["id", "aria-labelledby", "aria-describedby", "checked"];
8835
+ const _hoisted_4$3 = { class: "ml-3" };
8836
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8100
8837
  props: {
8101
8838
  label: { default: "" },
8839
+ help: { default: "" },
8102
8840
  modelValue: { type: Boolean }
8103
8841
  },
8104
8842
  emits: ["update:modelValue"],
@@ -8106,138 +8844,257 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8106
8844
  const attrs = useAttrs();
8107
8845
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8108
8846
  return (_ctx, _cache) => {
8109
- return openBlock(), createElementBlock("div", null, [
8110
- createElementVNode("label", _hoisted_1$4, [
8847
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [
8848
+ createElementVNode("div", _hoisted_2$3, [
8111
8849
  createElementVNode("input", mergeProps({
8850
+ id: unref(uuid),
8112
8851
  "aria-labelledby": __props.label ? `${unref(uuid)}-label` : void 0,
8852
+ "aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0,
8113
8853
  checked: __props.modelValue,
8114
8854
  class: "focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
8115
- id: unref(uuid),
8116
8855
  type: "checkbox"
8117
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8856
+ }, __spreadValues({
8118
8857
  onChange: ($event) => {
8119
8858
  emits("update:modelValue", $event.target.checked);
8120
8859
  }
8121
- })), null, 16, _hoisted_2$3),
8122
- createVNode(_sfc_main$o, {
8123
- class: "ml-2",
8860
+ }, _ctx.$attrs)), null, 16, _hoisted_3$3)
8861
+ ]),
8862
+ createElementVNode("div", _hoisted_4$3, [
8863
+ createVNode(_sfc_main$s, {
8864
+ class: "mt-auto",
8865
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
8124
8866
  id: `${unref(uuid)}-label`,
8125
8867
  for: unref(uuid),
8126
- label: __props.label,
8127
- tag: "span"
8128
- }, null, 8, ["id", "for", "label"])
8868
+ label: __props.label
8869
+ }, null, 8, ["disabled", "id", "for", "label"]),
8870
+ createVNode(_sfc_main$r, {
8871
+ class: "-mt-1",
8872
+ id: `${unref(uuid)}-help`,
8873
+ text: __props.help
8874
+ }, null, 8, ["id", "text"])
8129
8875
  ])
8130
8876
  ]);
8131
8877
  };
8132
8878
  }
8133
8879
  });
8134
- const _hoisted_1$3 = { class: "inline-flex items-center" };
8135
- const _hoisted_2$2 = ["id", "value"];
8880
+ function hasSlotContent(slot, slotProps = {}) {
8881
+ if (!slot)
8882
+ return false;
8883
+ return slot(slotProps).some((vnode) => {
8884
+ if (vnode.type === Comment$1)
8885
+ return false;
8886
+ if (Array.isArray(vnode.children) && !vnode.children.length)
8887
+ return false;
8888
+ return vnode.type !== Text || typeof vnode.children === "string" && vnode.children.trim() !== "";
8889
+ });
8890
+ }
8891
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8892
+ setup(__props) {
8893
+ return (_ctx, _cache) => {
8894
+ return unref(hasSlotContent)(_ctx.$slots.default) ? (openBlock(), createElementBlock("legend", normalizeProps(mergeProps({ key: 0 }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8895
+ class: "text-base font-medium leading-tight text-gray-900"
8896
+ }))), [
8897
+ renderSlot(_ctx.$slots, "default")
8898
+ ], 16)) : createCommentVNode("", true);
8899
+ };
8900
+ }
8901
+ });
8902
+ const _hoisted_1$3 = ["aria-labelledby", "aria-describedby"];
8903
+ const _hoisted_2$2 = { class: "space-y-0.5" };
8904
+ const _hoisted_3$2 = { key: 0 };
8905
+ const _hoisted_4$2 = { class: "flex items-center h-5" };
8906
+ const _hoisted_5$2 = ["id", "aria-labelledby", "aria-describedby", "checked", "disabled"];
8907
+ const _hoisted_6$2 = { class: "ml-3" };
8136
8908
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8137
8909
  props: {
8138
8910
  options: null,
8911
+ help: { default: "" },
8139
8912
  legend: { default: "" },
8140
- modelValue: null
8913
+ modelValue: null,
8914
+ columns: { default: void 0 }
8141
8915
  },
8142
8916
  emits: ["update:modelValue"],
8143
- setup(__props, { emit: emits }) {
8917
+ setup(__props, { emit }) {
8144
8918
  const props = __props;
8145
8919
  const attrs = useAttrs();
8920
+ const slots = useSlots();
8146
8921
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8147
- const model = ref(props.modelValue);
8922
+ const hasLegend = computed(() => {
8923
+ return props.legend !== "" || slots.legend !== void 0;
8924
+ });
8925
+ const onChange = (checked, val) => {
8926
+ let updateModelValue2 = [...props.modelValue];
8927
+ if (checked) {
8928
+ updateModelValue2.push(val);
8929
+ } else {
8930
+ updateModelValue2.splice(updateModelValue2.indexOf(val), 1);
8931
+ }
8932
+ emit("update:modelValue", updateModelValue2);
8933
+ };
8148
8934
  return (_ctx, _cache) => {
8149
- return openBlock(), createElementBlock("fieldset", null, [
8150
- createVNode(_sfc_main$o, {
8151
- class: "block mb-0",
8152
- label: __props.legend,
8153
- tag: "legend"
8154
- }, null, 8, ["label"]),
8155
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
8156
- return openBlock(), createElementBlock("div", {
8157
- class: "mt-4",
8158
- key: option.value
8159
- }, [
8160
- createElementVNode("label", _hoisted_1$3, [
8161
- withDirectives(createElementVNode("input", mergeProps({
8162
- type: "checkbox",
8163
- class: "focus:ring-blue-500 h-4 w-4 text-xy-blue border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
8164
- id: `${unref(uuid)}-${index}`,
8165
- value: option.value,
8166
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
8167
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8168
- onChange: () => {
8169
- emits("update:modelValue", model.value);
8170
- }
8171
- })), null, 16, _hoisted_2$2), [
8172
- [vModelCheckbox, model.value]
8935
+ return openBlock(), createElementBlock("fieldset", {
8936
+ class: "space-y-5",
8937
+ "aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
8938
+ "aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
8939
+ }, [
8940
+ createElementVNode("div", _hoisted_2$2, [
8941
+ createVNode(_sfc_main$4, {
8942
+ id: `${unref(uuid)}-legend`
8943
+ }, {
8944
+ default: withCtx(() => [
8945
+ __props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$2, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
8946
+ _ctx.$slots.legend ? renderSlot(_ctx.$slots, "legend", { key: 1 }) : createCommentVNode("", true)
8947
+ ]),
8948
+ _: 3
8949
+ }, 8, ["id"]),
8950
+ createVNode(_sfc_main$r, {
8951
+ tag: "p",
8952
+ text: __props.help,
8953
+ id: `${unref(uuid)}-help`
8954
+ }, null, 8, ["text", "id"])
8955
+ ]),
8956
+ createElementVNode("div", {
8957
+ class: normalizeClass(["grid gap-4", {
8958
+ "sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
8959
+ "sm:grid-cols-2": __props.columns === 2,
8960
+ "sm:grid-cols-3": __props.columns === 3,
8961
+ "sm:grid-cols-4": __props.columns === 4
8962
+ }])
8963
+ }, [
8964
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
8965
+ return openBlock(), createElementBlock("div", {
8966
+ key: option.value,
8967
+ class: "flex items-start"
8968
+ }, [
8969
+ createElementVNode("div", _hoisted_4$2, [
8970
+ createElementVNode("input", mergeProps({
8971
+ id: unref(uuid),
8972
+ "aria-labelledby": `${unref(uuid)}-${index}-label`,
8973
+ "aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
8974
+ checked: __props.modelValue.includes(option.value),
8975
+ disabled: option.disabled === true ? true : void 0,
8976
+ class: "focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",
8977
+ type: "checkbox"
8978
+ }, __spreadValues({
8979
+ onChange: ($event) => {
8980
+ onChange($event.target.checked, option.value);
8981
+ }
8982
+ }, _ctx.$attrs)), null, 16, _hoisted_5$2)
8173
8983
  ]),
8174
- createVNode(_sfc_main$o, {
8175
- class: "ml-2",
8176
- for: `${unref(uuid)}-${index}`,
8177
- label: option.label,
8178
- tag: "span"
8179
- }, null, 8, ["for", "label"])
8180
- ])
8181
- ]);
8182
- }), 128))
8183
- ]);
8984
+ createElementVNode("div", _hoisted_6$2, [
8985
+ createVNode(_sfc_main$s, {
8986
+ class: "mt-auto",
8987
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
8988
+ id: `${unref(uuid)}-${index}-label`,
8989
+ for: unref(uuid),
8990
+ label: option.label
8991
+ }, null, 8, ["disabled", "id", "for", "label"]),
8992
+ createVNode(_sfc_main$r, {
8993
+ class: "-mt-1",
8994
+ id: `${unref(uuid)}-${index}-help`,
8995
+ text: option.help
8996
+ }, null, 8, ["id", "text"])
8997
+ ])
8998
+ ]);
8999
+ }), 128))
9000
+ ], 2)
9001
+ ], 8, _hoisted_1$3);
8184
9002
  };
8185
9003
  }
8186
9004
  });
8187
- const _hoisted_1$2 = { class: "mt-1 space-y-2" };
8188
- const _hoisted_2$1 = ["for"];
8189
- const _hoisted_3$1 = ["checked", "id", "name", "value"];
9005
+ const _hoisted_1$2 = ["aria-labelledby", "aria-describedby"];
9006
+ const _hoisted_2$1 = { class: "space-y-0.5" };
9007
+ const _hoisted_3$1 = { key: 0 };
9008
+ const _hoisted_4$1 = { class: "flex items-center h-5" };
9009
+ const _hoisted_5$1 = ["aria-describedby", "aria-labelledby", "checked", "disabled", "id", "name", "value"];
9010
+ const _hoisted_6$1 = { class: "ml-3" };
8190
9011
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8191
9012
  props: {
8192
9013
  options: null,
9014
+ help: { default: "" },
8193
9015
  legend: { default: "" },
8194
- modelValue: { default: "" },
8195
- vertical: { type: Boolean, default: true }
9016
+ modelValue: { default: void 0 },
9017
+ columns: { default: void 0 }
8196
9018
  },
8197
9019
  emits: ["update:modelValue"],
8198
9020
  setup(__props, { emit: emits }) {
8199
9021
  const props = __props;
8200
9022
  const attrs = useAttrs();
9023
+ const slots = useSlots();
8201
9024
  const uuid = attrs.id || Uniques.CreateIdAttribute();
9025
+ const hasLegend = computed(() => {
9026
+ return props.legend !== "" || slots.legend !== void 0;
9027
+ });
8202
9028
  return (_ctx, _cache) => {
8203
- return openBlock(), createElementBlock("fieldset", _hoisted_1$2, [
8204
- createVNode(_sfc_main$o, {
8205
- class: "block",
8206
- label: __props.legend,
8207
- tag: "legend"
8208
- }, null, 8, ["label"]),
8209
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
8210
- return openBlock(), createBlock(resolveDynamicComponent(props.vertical ? "div" : "span"), {
8211
- key: option.value
9029
+ return openBlock(), createElementBlock("fieldset", {
9030
+ class: "space-y-5",
9031
+ "aria-labelledby": unref(hasLegend) ? `${unref(uuid)}-legend` : void 0,
9032
+ "aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
9033
+ }, [
9034
+ createElementVNode("div", _hoisted_2$1, [
9035
+ createVNode(_sfc_main$4, {
9036
+ id: `${unref(uuid)}-legend`
8212
9037
  }, {
8213
9038
  default: withCtx(() => [
8214
- createElementVNode("label", {
8215
- class: normalizeClass(["inline-flex items-center", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
8216
- for: `${unref(uuid)}-${index}`
8217
- }, [
9039
+ __props.legend ? (openBlock(), createElementBlock("div", _hoisted_3$1, toDisplayString(__props.legend), 1)) : createCommentVNode("", true),
9040
+ _ctx.$slots.legend ? renderSlot(_ctx.$slots, "legend", { key: 1 }) : createCommentVNode("", true)
9041
+ ]),
9042
+ _: 3
9043
+ }, 8, ["id"]),
9044
+ createVNode(_sfc_main$r, {
9045
+ tag: "p",
9046
+ text: __props.help,
9047
+ id: `${unref(uuid)}-help`
9048
+ }, null, 8, ["text", "id"])
9049
+ ]),
9050
+ createElementVNode("div", {
9051
+ class: normalizeClass(["grid gap-4", {
9052
+ "sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0": __props.columns !== void 0,
9053
+ "sm:grid-cols-2": __props.columns === 2,
9054
+ "sm:grid-cols-3": __props.columns === 3,
9055
+ "sm:grid-cols-4": __props.columns === 4
9056
+ }])
9057
+ }, [
9058
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
9059
+ return openBlock(), createElementBlock("div", {
9060
+ key: option.value,
9061
+ class: "flex items-start"
9062
+ }, [
9063
+ createElementVNode("div", _hoisted_4$1, [
8218
9064
  createElementVNode("input", mergeProps({
9065
+ "aria-describedby": (option == null ? void 0 : option.help) && option.help ? `${unref(uuid)}-${index}-help` : void 0,
9066
+ "aria-labelledby": `${unref(uuid)}-${index}-label`,
8219
9067
  checked: __props.modelValue === option.value,
8220
- class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue",
9068
+ class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
9069
+ disabled: option.disabled === true ? true : void 0,
8221
9070
  id: `${unref(uuid)}-${index}`,
8222
9071
  name: unref(uuid),
8223
9072
  type: "radio",
8224
9073
  value: option.value
8225
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8226
- onChange: ($event) => {
8227
- emits("update:modelValue", $event.target.value);
9074
+ }, __spreadValues({
9075
+ onChange: () => {
9076
+ emits("update:modelValue", option.value);
8228
9077
  }
8229
- })), null, 16, _hoisted_3$1),
8230
- createVNode(_sfc_main$o, {
8231
- class: "ml-2",
8232
- label: option.label,
8233
- tag: "span"
8234
- }, null, 8, ["label"])
8235
- ], 10, _hoisted_2$1)
8236
- ]),
8237
- _: 2
8238
- }, 1024);
8239
- }), 128))
8240
- ]);
9078
+ }, _ctx.$attrs)), null, 16, _hoisted_5$1)
9079
+ ]),
9080
+ createElementVNode("div", _hoisted_6$1, [
9081
+ createVNode(_sfc_main$s, {
9082
+ class: "mt-auto",
9083
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false || option.disabled === true,
9084
+ id: `${unref(uuid)}-${index}-label`,
9085
+ for: unref(uuid),
9086
+ label: option.label
9087
+ }, null, 8, ["disabled", "id", "for", "label"]),
9088
+ createVNode(_sfc_main$r, {
9089
+ class: "-mt-1",
9090
+ id: `${unref(uuid)}-${index}-help`,
9091
+ text: option.help
9092
+ }, null, 8, ["id", "text"])
9093
+ ])
9094
+ ]);
9095
+ }), 128))
9096
+ ], 2)
9097
+ ], 8, _hoisted_1$2);
8241
9098
  };
8242
9099
  }
8243
9100
  });
@@ -8254,7 +9111,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8254
9111
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8255
9112
  return (_ctx, _cache) => {
8256
9113
  return openBlock(), createElementBlock(Fragment, null, [
8257
- createVNode(_sfc_main$o, {
9114
+ createVNode(_sfc_main$s, {
8258
9115
  class: "block",
8259
9116
  id: `${unref(uuid)}-label`,
8260
9117
  for: unref(uuid),
@@ -8272,13 +9129,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8272
9129
  "focus:border-blue-500",
8273
9130
  "border-gray-600",
8274
9131
  "rounded-md",
8275
- "w-full"
9132
+ "w-full",
9133
+ "disabled:opacity-70",
9134
+ "disabled:cursor-not-allowed"
8276
9135
  ],
8277
9136
  id: unref(uuid),
8278
9137
  value: __props.modelValue,
8279
9138
  onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
8280
9139
  }, _ctx.$attrs), null, 16, _hoisted_1$1),
8281
- createVNode(_sfc_main$n, {
9140
+ createVNode(_sfc_main$r, {
8282
9141
  id: `${unref(uuid)}-help`,
8283
9142
  text: __props.help
8284
9143
  }, null, 8, ["id", "text"])
@@ -8286,13 +9145,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8286
9145
  };
8287
9146
  }
8288
9147
  });
8289
- const _hoisted_1 = ["for"];
8290
- const _hoisted_2 = ["id", "name", "checked"];
9148
+ const _hoisted_1 = ["aria-labelledby", "aria-describedby"];
9149
+ const _hoisted_2 = { class: "space-y-0.5" };
8291
9150
  const _hoisted_3 = ["for"];
8292
9151
  const _hoisted_4 = ["id", "name", "checked"];
9152
+ const _hoisted_5 = ["for"];
9153
+ const _hoisted_6 = ["id", "name", "checked"];
8293
9154
  const _sfc_main = /* @__PURE__ */ defineComponent({
8294
9155
  props: {
8295
9156
  modelValue: { type: Boolean, default: void 0 },
9157
+ help: { default: "" },
8296
9158
  legend: { default: "" },
8297
9159
  name: { default: "" }
8298
9160
  },
@@ -8308,85 +9170,106 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8308
9170
  emits("update:modelValue", e.target.value === "true");
8309
9171
  };
8310
9172
  return (_ctx, _cache) => {
8311
- return openBlock(), createElementBlock("fieldset", null, [
8312
- createVNode(_sfc_main$o, {
8313
- class: "block",
8314
- label: __props.legend,
8315
- tag: "legend"
8316
- }, null, 8, ["label"]),
8317
- createElementVNode("label", {
8318
- class: normalizeClass(["inline-flex items-center", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
8319
- for: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-true`
8320
- }, [
8321
- createElementVNode("input", mergeProps({
8322
- type: "radio",
8323
- class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue",
8324
- id: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-true`,
8325
- name: unref(hasNameAttr) ? __props.name : unref(uuid),
8326
- value: true,
8327
- checked: __props.modelValue === true
8328
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8329
- onChange
8330
- })), null, 16, _hoisted_2),
8331
- createVNode(_sfc_main$o, {
8332
- class: "ml-2",
8333
- label: "Yes",
8334
- tag: "span"
8335
- })
8336
- ], 10, _hoisted_1),
8337
- createElementVNode("label", {
8338
- class: normalizeClass(["inline-flex items-center ml-6", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
8339
- for: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-false`
8340
- }, [
8341
- createElementVNode("input", mergeProps({
8342
- type: "radio",
8343
- class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue",
8344
- id: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-false`,
8345
- name: unref(hasNameAttr) ? __props.name : unref(uuid),
8346
- value: false,
8347
- checked: __props.modelValue === false
8348
- }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8349
- onChange
8350
- })), null, 16, _hoisted_4),
8351
- createVNode(_sfc_main$o, {
8352
- class: "ml-2",
8353
- label: "No",
8354
- tag: "span"
8355
- })
8356
- ], 10, _hoisted_3)
8357
- ]);
9173
+ const _component_InputHelp = resolveComponent("InputHelp");
9174
+ return openBlock(), createElementBlock("fieldset", {
9175
+ class: "space-y-3",
9176
+ "aria-labelledby": __props.legend ? `${unref(uuid)}-legend` : void 0,
9177
+ "aria-describedby": __props.help ? `${unref(uuid)}-help` : void 0
9178
+ }, [
9179
+ createElementVNode("div", _hoisted_2, [
9180
+ createVNode(_sfc_main$s, {
9181
+ class: "block my-auto",
9182
+ label: __props.legend,
9183
+ tag: "legend"
9184
+ }, null, 8, ["label"]),
9185
+ createVNode(_component_InputHelp, {
9186
+ tag: "p",
9187
+ text: __props.help,
9188
+ id: `${unref(uuid)}-help`
9189
+ }, null, 8, ["text", "id"])
9190
+ ]),
9191
+ createElementVNode("div", null, [
9192
+ createElementVNode("label", {
9193
+ class: normalizeClass(["inline-flex items-center", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
9194
+ for: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-true`
9195
+ }, [
9196
+ createElementVNode("input", mergeProps({
9197
+ type: "radio",
9198
+ class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
9199
+ id: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-true`,
9200
+ name: unref(hasNameAttr) ? __props.name : unref(uuid),
9201
+ value: true,
9202
+ checked: __props.modelValue === true
9203
+ }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
9204
+ onChange
9205
+ })), null, 16, _hoisted_4),
9206
+ createVNode(_sfc_main$s, {
9207
+ class: "ml-2",
9208
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
9209
+ label: "Yes",
9210
+ tag: "span"
9211
+ }, null, 8, ["disabled"])
9212
+ ], 10, _hoisted_3),
9213
+ createElementVNode("label", {
9214
+ class: normalizeClass(["inline-flex items-center ml-6", { "cursor-not-allowed": _ctx.$attrs.disabled }]),
9215
+ for: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-false`
9216
+ }, [
9217
+ createElementVNode("input", mergeProps({
9218
+ type: "radio",
9219
+ class: "w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",
9220
+ id: `${unref(hasNameAttr) ? __props.name : unref(uuid)}-false`,
9221
+ name: unref(hasNameAttr) ? __props.name : unref(uuid),
9222
+ value: false,
9223
+ checked: __props.modelValue === false
9224
+ }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
9225
+ onChange
9226
+ })), null, 16, _hoisted_6),
9227
+ createVNode(_sfc_main$s, {
9228
+ class: "ml-2",
9229
+ disabled: _ctx.$attrs.hasOwnProperty("disabled") && _ctx.$attrs.disabled !== false,
9230
+ label: "No",
9231
+ tag: "span"
9232
+ }, null, 8, ["disabled"])
9233
+ ], 10, _hoisted_5)
9234
+ ])
9235
+ ], 8, _hoisted_1);
8358
9236
  };
8359
9237
  }
8360
9238
  });
8361
9239
  var components = /* @__PURE__ */ Object.freeze({
8362
9240
  __proto__: null,
8363
9241
  [Symbol.toStringTag]: "Module",
8364
- ActionsDropdown: _sfc_main$r,
8365
- Cards: _sfc_main$q,
8366
- ContentModal: _sfc_main$p,
8367
- DateFilter: _sfc_main$j,
8368
- DetailList: _sfc_main$h,
8369
- DownloadCell: _sfc_main$g,
8370
- Flash: _sfc_main$f,
8371
- Modal: _sfc_main$e,
8372
- SidebarLayout: _sfc_main$c,
8373
- Slideover: _sfc_main$b,
8374
- StackedLayout: _sfc_main$a,
8375
- Paginator: _sfc_main$i,
8376
- Spinner: _sfc_main$d,
8377
- StaticTable: _sfc_main$9,
8378
- Steps: _sfc_main$8,
8379
- Table: _sfc_main$7,
8380
- Tabs: _sfc_main$6,
8381
- Toggle: _sfc_main$5,
8382
- BaseInput: _sfc_main$m,
8383
- Checkbox: _sfc_main$4,
8384
- DateRangePicker: _sfc_main$l,
8385
- InputHelp: _sfc_main$n,
8386
- InputLabel: _sfc_main$o,
9242
+ ActionsDropdown: _sfc_main$v,
9243
+ Cards: _sfc_main$u,
9244
+ ContentModal: _sfc_main$t,
9245
+ DateFilter: _sfc_main$n,
9246
+ DetailList: _sfc_main$l,
9247
+ DownloadCell: _sfc_main$k,
9248
+ Flash: _sfc_main$j,
9249
+ Modal: _sfc_main$i,
9250
+ SidebarLayout: _sfc_main$g,
9251
+ Slideover: _sfc_main$d,
9252
+ StackedLayout: _sfc_main$b,
9253
+ Popover: _sfc_main$f,
9254
+ PopoverContent,
9255
+ PopoverPosition: _sfc_main$f,
9256
+ Paginator: _sfc_main$m,
9257
+ Spinner: _sfc_main$h,
9258
+ StaticTable: _sfc_main$a,
9259
+ Steps: _sfc_main$9,
9260
+ Table: _sfc_main$8,
9261
+ Tabs: _sfc_main$7,
9262
+ Toggle: _sfc_main$6,
9263
+ Tooltip: _sfc_main$c,
9264
+ BaseInput: _sfc_main$q,
9265
+ Checkbox: _sfc_main$5,
9266
+ DateRangePicker: _sfc_main$p,
9267
+ InputHelp: _sfc_main$r,
9268
+ InputLabel: _sfc_main$s,
9269
+ FieldsetLegend: _sfc_main$4,
8387
9270
  MultiCheckboxes: _sfc_main$3,
8388
9271
  Radio: _sfc_main$2,
8389
- Select: _sfc_main$k,
9272
+ Select: _sfc_main$o,
8390
9273
  TextArea: _sfc_main$1,
8391
9274
  YesOrNoRadio: _sfc_main
8392
9275
  });
@@ -8395,4 +9278,4 @@ const install = function installTrees(app) {
8395
9278
  app.component(componentName, component);
8396
9279
  });
8397
9280
  };
8398
- export { _sfc_main$r as ActionsDropdown, BaseAPI, _sfc_main$m as BaseInput, _sfc_main$q as Cards, _sfc_main$4 as Checkbox, _sfc_main$p as ContentModal, _sfc_main$j as DateFilter, _sfc_main$l as DateRangePicker, _sfc_main$h as DetailList, _sfc_main$g as DownloadCell, _sfc_main$f as Flash, _sfc_main$n as InputHelp, _sfc_main$o as InputLabel, _sfc_main$e as Modal, _sfc_main$3 as MultiCheckboxes, _sfc_main$i as Paginator, _sfc_main$2 as Radio, _sfc_main$k as Select, _sfc_main$c as SidebarLayout, _sfc_main$b as Slideover, _sfc_main$d 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 as YesOrNoRadio, install as default };
9281
+ export { _sfc_main$v as ActionsDropdown, BaseAPI, _sfc_main$q as BaseInput, _sfc_main$u as Cards, _sfc_main$5 as Checkbox, _sfc_main$t as ContentModal, _sfc_main$n as DateFilter, _sfc_main$p as DateRangePicker, _sfc_main$l as DetailList, _sfc_main$k as DownloadCell, _sfc_main$4 as FieldsetLegend, _sfc_main$j as Flash, _sfc_main$r as InputHelp, _sfc_main$s as InputLabel, _sfc_main$i as Modal, _sfc_main$3 as MultiCheckboxes, _sfc_main$m as Paginator, _sfc_main$f as Popover, PopoverContent, _sfc_main$f as PopoverPosition, _sfc_main$2 as Radio, _sfc_main$o as Select, _sfc_main$g as SidebarLayout, _sfc_main$d as Slideover, _sfc_main$h 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$c as Tooltip, _sfc_main as YesOrNoRadio, install as default };