@xy-planning-network/trees 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/trees.es.js CHANGED
@@ -1244,7 +1244,7 @@ var RenderStrategy;
1244
1244
  RenderStrategy2[RenderStrategy2["Unmount"] = 0] = "Unmount";
1245
1245
  RenderStrategy2[RenderStrategy2["Hidden"] = 1] = "Hidden";
1246
1246
  })(RenderStrategy || (RenderStrategy = {}));
1247
- function render$7(_ref) {
1247
+ function render$8(_ref) {
1248
1248
  var _ref$visible = _ref.visible, visible = _ref$visible === void 0 ? true : _ref$visible, _ref$features = _ref.features, features = _ref$features === void 0 ? Features.None : _ref$features, main2 = _objectWithoutPropertiesLoose(_ref, ["visible", "features"]);
1249
1249
  if (visible)
1250
1250
  return _render(main2);
@@ -1370,7 +1370,7 @@ var ForcePortalRoot = /* @__PURE__ */ defineComponent({
1370
1370
  provide(ForcePortalRootContext, props.force);
1371
1371
  return function() {
1372
1372
  var passThroughProps = _objectWithoutPropertiesLoose(props, ["force"]);
1373
- return render$7({
1373
+ return render$8({
1374
1374
  props: passThroughProps,
1375
1375
  slot: {},
1376
1376
  slots,
@@ -1430,7 +1430,7 @@ var Portal = /* @__PURE__ */ defineComponent({
1430
1430
  };
1431
1431
  return h(Teleport, {
1432
1432
  to: myTarget.value
1433
- }, render$7({
1433
+ }, render$8({
1434
1434
  props: _extends({}, props, propsWeControl),
1435
1435
  slot: {},
1436
1436
  attrs,
@@ -1463,7 +1463,7 @@ var PortalGroup = /* @__PURE__ */ defineComponent({
1463
1463
  provide(PortalGroupContext, api);
1464
1464
  return function() {
1465
1465
  var passThroughProps = _objectWithoutPropertiesLoose(props, ["target"]);
1466
- return render$7({
1466
+ return render$8({
1467
1467
  props: passThroughProps,
1468
1468
  slot: {},
1469
1469
  attrs,
@@ -1551,6 +1551,25 @@ var FocusableMode;
1551
1551
  FocusableMode2[FocusableMode2["Strict"] = 0] = "Strict";
1552
1552
  FocusableMode2[FocusableMode2["Loose"] = 1] = "Loose";
1553
1553
  })(FocusableMode || (FocusableMode = {}));
1554
+ function isFocusableElement(element, mode) {
1555
+ var _match;
1556
+ if (mode === void 0) {
1557
+ mode = FocusableMode.Strict;
1558
+ }
1559
+ if (element === document.body)
1560
+ return false;
1561
+ return match(mode, (_match = {}, _match[FocusableMode.Strict] = function() {
1562
+ return element.matches(focusableSelector);
1563
+ }, _match[FocusableMode.Loose] = function() {
1564
+ var next = element;
1565
+ while (next !== null) {
1566
+ if (next.matches(focusableSelector))
1567
+ return true;
1568
+ next = next.parentElement;
1569
+ }
1570
+ return false;
1571
+ }, _match));
1572
+ }
1554
1573
  function focusElement(element) {
1555
1574
  element == null ? void 0 : element.focus({
1556
1575
  preventScroll: true
@@ -1895,7 +1914,7 @@ var Dialog = /* @__PURE__ */ defineComponent({
1895
1914
  return h(ForcePortalRoot, {
1896
1915
  force: false
1897
1916
  }, function() {
1898
- return render$7({
1917
+ return render$8({
1899
1918
  props: _extends({}, passThroughProps, propsWeControl),
1900
1919
  slot,
1901
1920
  attrs: _this.$attrs,
@@ -2068,7 +2087,7 @@ var DialogOverlay = /* @__PURE__ */ defineComponent({
2068
2087
  onClick: this.handleClick
2069
2088
  };
2070
2089
  var passThroughProps = this.$props;
2071
- return render$7({
2090
+ return render$8({
2072
2091
  props: _extends({}, passThroughProps, propsWeControl),
2073
2092
  slot: {
2074
2093
  open: api.dialogState.value === DialogStates.Open
@@ -2107,7 +2126,7 @@ var DialogTitle = /* @__PURE__ */ defineComponent({
2107
2126
  id: this.id
2108
2127
  };
2109
2128
  var passThroughProps = this.$props;
2110
- return render$7({
2129
+ return render$8({
2111
2130
  props: _extends({}, passThroughProps, propsWeControl),
2112
2131
  slot: {
2113
2132
  open: api.dialogState.value === DialogStates.Open
@@ -2235,7 +2254,7 @@ var Disclosure = /* @__PURE__ */ defineComponent({
2235
2254
  open: disclosureState.value === DisclosureStates.Open,
2236
2255
  close: api.close
2237
2256
  };
2238
- return render$7({
2257
+ return render$8({
2239
2258
  props: passThroughProps,
2240
2259
  slot,
2241
2260
  slots,
@@ -2278,7 +2297,7 @@ var DisclosureButton = /* @__PURE__ */ defineComponent({
2278
2297
  onKeydown: this.handleKeyDown,
2279
2298
  onKeyup: this.handleKeyUp
2280
2299
  };
2281
- return render$7({
2300
+ return render$8({
2282
2301
  props: _extends({}, this.$props, propsWeControl),
2283
2302
  slot,
2284
2303
  attrs: this.$attrs,
@@ -2379,7 +2398,7 @@ var DisclosurePanel = /* @__PURE__ */ defineComponent({
2379
2398
  id: this.id,
2380
2399
  ref: "el"
2381
2400
  };
2382
- return render$7({
2401
+ return render$8({
2383
2402
  props: _extends({}, this.$props, propsWeControl),
2384
2403
  slot,
2385
2404
  attrs: this.$attrs,
@@ -2623,7 +2642,7 @@ var Menu = /* @__PURE__ */ defineComponent({
2623
2642
  var slot = {
2624
2643
  open: menuState.value === MenuStates.Open
2625
2644
  };
2626
- return render$7({
2645
+ return render$8({
2627
2646
  props,
2628
2647
  slot,
2629
2648
  slots,
@@ -2662,7 +2681,7 @@ var MenuButton = /* @__PURE__ */ defineComponent({
2662
2681
  onKeyup: this.handleKeyUp,
2663
2682
  onClick: this.handleClick
2664
2683
  };
2665
- return render$7({
2684
+ return render$8({
2666
2685
  props: _extends({}, this.$props, propsWeControl),
2667
2686
  slot,
2668
2687
  attrs: this.$attrs,
@@ -2782,7 +2801,7 @@ var MenuItems = /* @__PURE__ */ defineComponent({
2782
2801
  ref: "el"
2783
2802
  };
2784
2803
  var passThroughProps = this.$props;
2785
- return render$7({
2804
+ return render$8({
2786
2805
  props: _extends({}, passThroughProps, propsWeControl),
2787
2806
  slot,
2788
2807
  attrs: this.$attrs,
@@ -3001,7 +3020,7 @@ var MenuItem = /* @__PURE__ */ defineComponent({
3001
3020
  onPointerleave: handleLeave,
3002
3021
  onMouseleave: handleLeave
3003
3022
  };
3004
- return render$7({
3023
+ return render$8({
3005
3024
  props: _extends({}, props, propsWeControl),
3006
3025
  slot,
3007
3026
  attrs,
@@ -3011,6 +3030,458 @@ var MenuItem = /* @__PURE__ */ defineComponent({
3011
3030
  };
3012
3031
  }
3013
3032
  });
3033
+ var PopoverStates;
3034
+ (function(PopoverStates2) {
3035
+ PopoverStates2[PopoverStates2["Open"] = 0] = "Open";
3036
+ PopoverStates2[PopoverStates2["Closed"] = 1] = "Closed";
3037
+ })(PopoverStates || (PopoverStates = {}));
3038
+ var PopoverContext = /* @__PURE__ */ Symbol("PopoverContext");
3039
+ function usePopoverContext(component) {
3040
+ var context = inject(PopoverContext, null);
3041
+ if (context === null) {
3042
+ var err = new Error("<" + component + " /> is missing a parent <" + Popover.name + " /> component.");
3043
+ if (Error.captureStackTrace)
3044
+ Error.captureStackTrace(err, usePopoverContext);
3045
+ throw err;
3046
+ }
3047
+ return context;
3048
+ }
3049
+ var PopoverGroupContext = /* @__PURE__ */ Symbol("PopoverGroupContext");
3050
+ function usePopoverGroupContext() {
3051
+ return inject(PopoverGroupContext, null);
3052
+ }
3053
+ var PopoverPanelContext = /* @__PURE__ */ Symbol("PopoverPanelContext");
3054
+ function usePopoverPanelContext() {
3055
+ return inject(PopoverPanelContext, null);
3056
+ }
3057
+ var Popover = /* @__PURE__ */ defineComponent({
3058
+ name: "Popover",
3059
+ props: {
3060
+ as: {
3061
+ type: [Object, String],
3062
+ "default": "div"
3063
+ }
3064
+ },
3065
+ setup: function setup14(props, _ref) {
3066
+ var slots = _ref.slots, attrs = _ref.attrs;
3067
+ var buttonId = "headlessui-popover-button-" + useId();
3068
+ var panelId = "headlessui-popover-panel-" + useId();
3069
+ var popoverState = ref(PopoverStates.Closed);
3070
+ var button = ref(null);
3071
+ var panel = ref(null);
3072
+ var api = {
3073
+ popoverState,
3074
+ buttonId,
3075
+ panelId,
3076
+ panel,
3077
+ button,
3078
+ togglePopover: function togglePopover() {
3079
+ var _match;
3080
+ popoverState.value = match(popoverState.value, (_match = {}, _match[PopoverStates.Open] = PopoverStates.Closed, _match[PopoverStates.Closed] = PopoverStates.Open, _match));
3081
+ },
3082
+ closePopover: function closePopover() {
3083
+ if (popoverState.value === PopoverStates.Closed)
3084
+ return;
3085
+ popoverState.value = PopoverStates.Closed;
3086
+ },
3087
+ close: function close2(focusableElement) {
3088
+ api.closePopover();
3089
+ var restoreElement = function() {
3090
+ if (!focusableElement)
3091
+ return dom(api.button);
3092
+ if (focusableElement instanceof HTMLElement)
3093
+ return focusableElement;
3094
+ if (focusableElement.value instanceof HTMLElement)
3095
+ return dom(focusableElement);
3096
+ return dom(api.button);
3097
+ }();
3098
+ restoreElement == null ? void 0 : restoreElement.focus();
3099
+ }
3100
+ };
3101
+ provide(PopoverContext, api);
3102
+ useOpenClosedProvider(computed(function() {
3103
+ var _match2;
3104
+ return match(popoverState.value, (_match2 = {}, _match2[PopoverStates.Open] = State.Open, _match2[PopoverStates.Closed] = State.Closed, _match2));
3105
+ }));
3106
+ var registerBag = {
3107
+ buttonId,
3108
+ panelId,
3109
+ close: function close2() {
3110
+ api.closePopover();
3111
+ }
3112
+ };
3113
+ var groupContext = usePopoverGroupContext();
3114
+ var registerPopover = groupContext == null ? void 0 : groupContext.registerPopover;
3115
+ function isFocusWithinPopoverGroup() {
3116
+ var _groupContext$isFocus, _dom, _dom2;
3117
+ return (_groupContext$isFocus = groupContext == null ? void 0 : groupContext.isFocusWithinPopoverGroup()) != null ? _groupContext$isFocus : ((_dom = dom(button)) == null ? void 0 : _dom.contains(document.activeElement)) || ((_dom2 = dom(panel)) == null ? void 0 : _dom2.contains(document.activeElement));
3118
+ }
3119
+ watchEffect(function() {
3120
+ return registerPopover == null ? void 0 : registerPopover(registerBag);
3121
+ });
3122
+ useWindowEvent("focus", function() {
3123
+ if (popoverState.value !== PopoverStates.Open)
3124
+ return;
3125
+ if (isFocusWithinPopoverGroup())
3126
+ return;
3127
+ if (!button)
3128
+ return;
3129
+ if (!panel)
3130
+ return;
3131
+ api.closePopover();
3132
+ }, true);
3133
+ useWindowEvent("mousedown", function(event) {
3134
+ var _dom3, _dom4;
3135
+ var target = event.target;
3136
+ if (popoverState.value !== PopoverStates.Open)
3137
+ return;
3138
+ if ((_dom3 = dom(button)) == null ? void 0 : _dom3.contains(target))
3139
+ return;
3140
+ if ((_dom4 = dom(panel)) == null ? void 0 : _dom4.contains(target))
3141
+ return;
3142
+ api.closePopover();
3143
+ if (!isFocusableElement(target, FocusableMode.Loose)) {
3144
+ var _dom5;
3145
+ event.preventDefault();
3146
+ (_dom5 = dom(button)) == null ? void 0 : _dom5.focus();
3147
+ }
3148
+ });
3149
+ return function() {
3150
+ var slot = {
3151
+ open: popoverState.value === PopoverStates.Open,
3152
+ close: api.close
3153
+ };
3154
+ return render$8({
3155
+ props,
3156
+ slot,
3157
+ slots,
3158
+ attrs,
3159
+ name: "Popover"
3160
+ });
3161
+ };
3162
+ }
3163
+ });
3164
+ var PopoverButton = /* @__PURE__ */ defineComponent({
3165
+ name: "PopoverButton",
3166
+ props: {
3167
+ as: {
3168
+ type: [Object, String],
3169
+ "default": "button"
3170
+ },
3171
+ disabled: {
3172
+ type: [Boolean],
3173
+ "default": false
3174
+ }
3175
+ },
3176
+ render: function render$18() {
3177
+ var api = usePopoverContext("PopoverButton");
3178
+ var slot = {
3179
+ open: api.popoverState.value === PopoverStates.Open
3180
+ };
3181
+ var propsWeControl = this.isWithinPanel ? {
3182
+ ref: "el",
3183
+ type: this.type,
3184
+ onKeydown: this.handleKeyDown,
3185
+ onClick: this.handleClick
3186
+ } : {
3187
+ ref: "el",
3188
+ id: api.buttonId,
3189
+ type: this.type,
3190
+ "aria-expanded": this.$props.disabled ? void 0 : api.popoverState.value === PopoverStates.Open,
3191
+ "aria-controls": dom(api.panel) ? api.panelId : void 0,
3192
+ disabled: this.$props.disabled ? true : void 0,
3193
+ onKeydown: this.handleKeyDown,
3194
+ onKeyup: this.handleKeyUp,
3195
+ onClick: this.handleClick
3196
+ };
3197
+ return render$8({
3198
+ props: _extends({}, this.$props, propsWeControl),
3199
+ slot,
3200
+ attrs: this.$attrs,
3201
+ slots: this.$slots,
3202
+ name: "PopoverButton"
3203
+ });
3204
+ },
3205
+ setup: function setup15(props, _ref2) {
3206
+ var attrs = _ref2.attrs;
3207
+ var api = usePopoverContext("PopoverButton");
3208
+ var groupContext = usePopoverGroupContext();
3209
+ var closeOthers = groupContext == null ? void 0 : groupContext.closeOthers;
3210
+ var panelContext = usePopoverPanelContext();
3211
+ var isWithinPanel = panelContext === null ? false : panelContext === api.panelId;
3212
+ var activeElementRef = ref(null);
3213
+ var previousActiveElementRef = ref(typeof window === "undefined" ? null : document.activeElement);
3214
+ useWindowEvent("focus", function() {
3215
+ previousActiveElementRef.value = activeElementRef.value;
3216
+ activeElementRef.value = document.activeElement;
3217
+ }, true);
3218
+ var elementRef = ref(null);
3219
+ if (!isWithinPanel) {
3220
+ watchEffect(function() {
3221
+ api.button.value = elementRef.value;
3222
+ });
3223
+ }
3224
+ return {
3225
+ isWithinPanel,
3226
+ el: elementRef,
3227
+ type: useResolveButtonType(computed(function() {
3228
+ return {
3229
+ as: props.as,
3230
+ type: attrs.type
3231
+ };
3232
+ }), elementRef),
3233
+ handleKeyDown: function handleKeyDown(event) {
3234
+ var _dom6, _dom7;
3235
+ if (isWithinPanel) {
3236
+ if (api.popoverState.value === PopoverStates.Closed)
3237
+ return;
3238
+ switch (event.key) {
3239
+ case Keys.Space:
3240
+ case Keys.Enter:
3241
+ event.preventDefault();
3242
+ event.stopPropagation();
3243
+ api.closePopover();
3244
+ (_dom6 = dom(api.button)) == null ? void 0 : _dom6.focus();
3245
+ break;
3246
+ }
3247
+ } else {
3248
+ switch (event.key) {
3249
+ case Keys.Space:
3250
+ case Keys.Enter:
3251
+ event.preventDefault();
3252
+ event.stopPropagation();
3253
+ if (api.popoverState.value === PopoverStates.Closed)
3254
+ closeOthers == null ? void 0 : closeOthers(api.buttonId);
3255
+ api.togglePopover();
3256
+ break;
3257
+ case Keys.Escape:
3258
+ if (api.popoverState.value !== PopoverStates.Open)
3259
+ return closeOthers == null ? void 0 : closeOthers(api.buttonId);
3260
+ if (!dom(api.button))
3261
+ return;
3262
+ if (!((_dom7 = dom(api.button)) == null ? void 0 : _dom7.contains(document.activeElement)))
3263
+ return;
3264
+ event.preventDefault();
3265
+ event.stopPropagation();
3266
+ api.closePopover();
3267
+ break;
3268
+ case Keys.Tab:
3269
+ if (api.popoverState.value !== PopoverStates.Open)
3270
+ return;
3271
+ if (!api.panel)
3272
+ return;
3273
+ if (!api.button)
3274
+ return;
3275
+ if (event.shiftKey) {
3276
+ var _dom8, _dom9;
3277
+ if (!previousActiveElementRef.value)
3278
+ return;
3279
+ if ((_dom8 = dom(api.button)) == null ? void 0 : _dom8.contains(previousActiveElementRef.value))
3280
+ return;
3281
+ if ((_dom9 = dom(api.panel)) == null ? void 0 : _dom9.contains(previousActiveElementRef.value))
3282
+ return;
3283
+ var focusableElements = getFocusableElements();
3284
+ var previousIdx = focusableElements.indexOf(previousActiveElementRef.value);
3285
+ var buttonIdx = focusableElements.indexOf(dom(api.button));
3286
+ if (buttonIdx > previousIdx)
3287
+ return;
3288
+ event.preventDefault();
3289
+ event.stopPropagation();
3290
+ focusIn(dom(api.panel), Focus$1.Last);
3291
+ } else {
3292
+ event.preventDefault();
3293
+ event.stopPropagation();
3294
+ focusIn(dom(api.panel), Focus$1.First);
3295
+ }
3296
+ break;
3297
+ }
3298
+ }
3299
+ },
3300
+ handleKeyUp: function handleKeyUp(event) {
3301
+ var _dom10, _dom11;
3302
+ if (isWithinPanel)
3303
+ return;
3304
+ if (event.key === Keys.Space) {
3305
+ event.preventDefault();
3306
+ }
3307
+ if (api.popoverState.value !== PopoverStates.Open)
3308
+ return;
3309
+ if (!api.panel)
3310
+ return;
3311
+ if (!api.button)
3312
+ return;
3313
+ switch (event.key) {
3314
+ case Keys.Tab:
3315
+ if (!previousActiveElementRef.value)
3316
+ return;
3317
+ if ((_dom10 = dom(api.button)) == null ? void 0 : _dom10.contains(previousActiveElementRef.value))
3318
+ return;
3319
+ if ((_dom11 = dom(api.panel)) == null ? void 0 : _dom11.contains(previousActiveElementRef.value))
3320
+ return;
3321
+ var focusableElements = getFocusableElements();
3322
+ var previousIdx = focusableElements.indexOf(previousActiveElementRef.value);
3323
+ var buttonIdx = focusableElements.indexOf(dom(api.button));
3324
+ if (buttonIdx > previousIdx)
3325
+ return;
3326
+ event.preventDefault();
3327
+ event.stopPropagation();
3328
+ focusIn(dom(api.panel), Focus$1.Last);
3329
+ break;
3330
+ }
3331
+ },
3332
+ handleClick: function handleClick() {
3333
+ if (props.disabled)
3334
+ return;
3335
+ if (isWithinPanel) {
3336
+ var _dom12;
3337
+ api.closePopover();
3338
+ (_dom12 = dom(api.button)) == null ? void 0 : _dom12.focus();
3339
+ } else {
3340
+ var _dom13;
3341
+ if (api.popoverState.value === PopoverStates.Closed)
3342
+ closeOthers == null ? void 0 : closeOthers(api.buttonId);
3343
+ (_dom13 = dom(api.button)) == null ? void 0 : _dom13.focus();
3344
+ api.togglePopover();
3345
+ }
3346
+ }
3347
+ };
3348
+ }
3349
+ });
3350
+ var PopoverPanel = /* @__PURE__ */ defineComponent({
3351
+ name: "PopoverPanel",
3352
+ props: {
3353
+ as: {
3354
+ type: [Object, String],
3355
+ "default": "div"
3356
+ },
3357
+ "static": {
3358
+ type: Boolean,
3359
+ "default": false
3360
+ },
3361
+ unmount: {
3362
+ type: Boolean,
3363
+ "default": true
3364
+ },
3365
+ focus: {
3366
+ type: Boolean,
3367
+ "default": false
3368
+ }
3369
+ },
3370
+ render: function render$19() {
3371
+ var api = usePopoverContext("PopoverPanel");
3372
+ var slot = {
3373
+ open: api.popoverState.value === PopoverStates.Open,
3374
+ close: api.close
3375
+ };
3376
+ var propsWeControl = {
3377
+ ref: "el",
3378
+ id: this.id,
3379
+ onKeydown: this.handleKeyDown
3380
+ };
3381
+ return render$8({
3382
+ props: _extends({}, this.$props, propsWeControl),
3383
+ slot,
3384
+ attrs: this.$attrs,
3385
+ slots: this.$slots,
3386
+ features: Features.RenderStrategy | Features.Static,
3387
+ visible: this.visible,
3388
+ name: "PopoverPanel"
3389
+ });
3390
+ },
3391
+ setup: function setup16(props) {
3392
+ var focus = props.focus;
3393
+ var api = usePopoverContext("PopoverPanel");
3394
+ provide(PopoverPanelContext, api.panelId);
3395
+ onUnmounted(function() {
3396
+ api.panel.value = null;
3397
+ });
3398
+ watchEffect(function() {
3399
+ var _dom14;
3400
+ if (!focus)
3401
+ return;
3402
+ if (api.popoverState.value !== PopoverStates.Open)
3403
+ return;
3404
+ if (!api.panel)
3405
+ return;
3406
+ var activeElement = document.activeElement;
3407
+ if ((_dom14 = dom(api.panel)) == null ? void 0 : _dom14.contains(activeElement))
3408
+ return;
3409
+ focusIn(dom(api.panel), Focus$1.First);
3410
+ });
3411
+ useWindowEvent("keydown", function(event) {
3412
+ var _dom15;
3413
+ if (api.popoverState.value !== PopoverStates.Open)
3414
+ return;
3415
+ if (!dom(api.panel))
3416
+ return;
3417
+ if (event.key !== Keys.Tab)
3418
+ return;
3419
+ if (!document.activeElement)
3420
+ return;
3421
+ if (!((_dom15 = dom(api.panel)) == null ? void 0 : _dom15.contains(document.activeElement)))
3422
+ return;
3423
+ event.preventDefault();
3424
+ var result = focusIn(dom(api.panel), event.shiftKey ? Focus$1.Previous : Focus$1.Next);
3425
+ if (result === FocusResult.Underflow) {
3426
+ var _dom16;
3427
+ return (_dom16 = dom(api.button)) == null ? void 0 : _dom16.focus();
3428
+ } else if (result === FocusResult.Overflow) {
3429
+ if (!dom(api.button))
3430
+ return;
3431
+ var elements = getFocusableElements();
3432
+ var buttonIdx = elements.indexOf(dom(api.button));
3433
+ var nextElements = elements.splice(buttonIdx + 1).filter(function(element) {
3434
+ var _dom17;
3435
+ return !((_dom17 = dom(api.panel)) == null ? void 0 : _dom17.contains(element));
3436
+ });
3437
+ if (focusIn(nextElements, Focus$1.First) === FocusResult.Error) {
3438
+ focusIn(document.body, Focus$1.First);
3439
+ }
3440
+ }
3441
+ });
3442
+ useWindowEvent("focus", function() {
3443
+ var _dom18;
3444
+ if (!focus)
3445
+ return;
3446
+ if (api.popoverState.value !== PopoverStates.Open)
3447
+ return;
3448
+ if (!dom(api.panel))
3449
+ return;
3450
+ if ((_dom18 = dom(api.panel)) == null ? void 0 : _dom18.contains(document.activeElement))
3451
+ return;
3452
+ api.closePopover();
3453
+ }, true);
3454
+ var usesOpenClosedState = useOpenClosed();
3455
+ var visible = computed(function() {
3456
+ if (usesOpenClosedState !== null) {
3457
+ return usesOpenClosedState.value === State.Open;
3458
+ }
3459
+ return api.popoverState.value === PopoverStates.Open;
3460
+ });
3461
+ return {
3462
+ id: api.panelId,
3463
+ el: api.panel,
3464
+ handleKeyDown: function handleKeyDown(event) {
3465
+ var _dom19, _dom20;
3466
+ switch (event.key) {
3467
+ case Keys.Escape:
3468
+ if (api.popoverState.value !== PopoverStates.Open)
3469
+ return;
3470
+ if (!dom(api.panel))
3471
+ return;
3472
+ if (!((_dom19 = dom(api.panel)) == null ? void 0 : _dom19.contains(document.activeElement)))
3473
+ return;
3474
+ event.preventDefault();
3475
+ event.stopPropagation();
3476
+ api.closePopover();
3477
+ (_dom20 = dom(api.button)) == null ? void 0 : _dom20.focus();
3478
+ break;
3479
+ }
3480
+ },
3481
+ visible
3482
+ };
3483
+ }
3484
+ });
3014
3485
  var GroupContext = /* @__PURE__ */ Symbol("GroupContext");
3015
3486
  var Switch = /* @__PURE__ */ defineComponent({
3016
3487
  name: "Switch",
@@ -3029,7 +3500,7 @@ var Switch = /* @__PURE__ */ defineComponent({
3029
3500
  "default": false
3030
3501
  }
3031
3502
  },
3032
- render: function render$18() {
3503
+ render: function render$110() {
3033
3504
  var slot = {
3034
3505
  checked: this.$props.modelValue
3035
3506
  };
@@ -3046,7 +3517,7 @@ var Switch = /* @__PURE__ */ defineComponent({
3046
3517
  onKeyup: this.handleKeyUp,
3047
3518
  onKeypress: this.handleKeyPress
3048
3519
  };
3049
- return render$7({
3520
+ return render$8({
3050
3521
  props: _extends({}, this.$props, propsWeControl),
3051
3522
  slot,
3052
3523
  attrs: this.$attrs,
@@ -3054,7 +3525,7 @@ var Switch = /* @__PURE__ */ defineComponent({
3054
3525
  name: "Switch"
3055
3526
  });
3056
3527
  },
3057
- setup: function setup14(props, _ref2) {
3528
+ setup: function setup17(props, _ref2) {
3058
3529
  var emit = _ref2.emit, attrs = _ref2.attrs;
3059
3530
  var api = inject(GroupContext, null);
3060
3531
  var id2 = "headlessui-switch-" + useId();
@@ -3373,7 +3844,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
3373
3844
  return true;
3374
3845
  }
3375
3846
  },
3376
- render: function render$19() {
3847
+ render: function render$111() {
3377
3848
  var _this = this;
3378
3849
  if (this.renderAsRoot) {
3379
3850
  return h(TransitionRoot, _extends({}, this.$props, {
@@ -3396,7 +3867,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
3396
3867
  ref: "el"
3397
3868
  };
3398
3869
  var passthroughProps = rest;
3399
- return render$7({
3870
+ return render$8({
3400
3871
  props: _extends({}, passthroughProps, propsWeControl),
3401
3872
  slot: {},
3402
3873
  slots: this.$slots,
@@ -3406,7 +3877,7 @@ var TransitionChild = /* @__PURE__ */ defineComponent({
3406
3877
  name: "TransitionChild"
3407
3878
  });
3408
3879
  },
3409
- setup: function setup15(props, _ref4) {
3880
+ setup: function setup18(props, _ref4) {
3410
3881
  var emit = _ref4.emit;
3411
3882
  if (!hasTransitionContext() && hasOpenClosed()) {
3412
3883
  return {
@@ -3581,13 +4052,13 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
3581
4052
  return true;
3582
4053
  }
3583
4054
  },
3584
- render: function render$110() {
4055
+ render: function render$112() {
3585
4056
  var _this2 = this;
3586
4057
  var _this$$props2 = this.$props, unmount = _this$$props2.unmount, passThroughProps = _objectWithoutPropertiesLoose(_this$$props2, ["show", "appear", "unmount"]);
3587
4058
  var sharedProps = {
3588
4059
  unmount
3589
4060
  };
3590
- return render$7({
4061
+ return render$8({
3591
4062
  props: _extends({}, sharedProps, {
3592
4063
  as: "template"
3593
4064
  }),
@@ -3616,7 +4087,7 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
3616
4087
  name: "Transition"
3617
4088
  });
3618
4089
  },
3619
- setup: function setup16(props) {
4090
+ setup: function setup19(props) {
3620
4091
  var usesOpenClosedState = useOpenClosed();
3621
4092
  var show = computed(function() {
3622
4093
  if (props.show === null && usesOpenClosedState !== null) {
@@ -3661,7 +4132,7 @@ var TransitionRoot = /* @__PURE__ */ defineComponent({
3661
4132
  };
3662
4133
  }
3663
4134
  });
3664
- function render$6(_ctx, _cache) {
4135
+ function render$7(_ctx, _cache) {
3665
4136
  return openBlock(), createBlock("svg", {
3666
4137
  xmlns: "http://www.w3.org/2000/svg",
3667
4138
  viewBox: "0 0 20 20",
@@ -3675,7 +4146,7 @@ function render$6(_ctx, _cache) {
3675
4146
  })
3676
4147
  ]);
3677
4148
  }
3678
- function render$5(_ctx, _cache) {
4149
+ function render$6(_ctx, _cache) {
3679
4150
  return openBlock(), createBlock("svg", {
3680
4151
  xmlns: "http://www.w3.org/2000/svg",
3681
4152
  viewBox: "0 0 20 20",
@@ -3685,7 +4156,7 @@ function render$5(_ctx, _cache) {
3685
4156
  createVNode("path", { d: "M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" })
3686
4157
  ]);
3687
4158
  }
3688
- function render$4(_ctx, _cache) {
4159
+ function render$5(_ctx, _cache) {
3689
4160
  return openBlock(), createBlock("svg", {
3690
4161
  xmlns: "http://www.w3.org/2000/svg",
3691
4162
  viewBox: "0 0 20 20",
@@ -3699,10 +4170,10 @@ function render$4(_ctx, _cache) {
3699
4170
  })
3700
4171
  ]);
3701
4172
  }
3702
- const _hoisted_1$o = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Open options", -1);
3703
- const _hoisted_2$j = { class: "py-1" };
4173
+ const _hoisted_1$r = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Open options", -1);
4174
+ const _hoisted_2$k = { class: "py-1" };
3704
4175
  const _hoisted_3$g = ["textContent", "onClick"];
3705
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
4176
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
3706
4177
  props: {
3707
4178
  currentUser: null,
3708
4179
  items: null,
@@ -3743,8 +4214,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3743
4214
  disabled: !hasActionItems.value
3744
4215
  }, {
3745
4216
  default: withCtx(() => [
3746
- _hoisted_1$o,
3747
- createVNode(unref(render$5), {
4217
+ _hoisted_1$r,
4218
+ createVNode(unref(render$6), {
3748
4219
  class: "w-5 h-5",
3749
4220
  "aria-hidden": "true"
3750
4221
  })
@@ -3762,7 +4233,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3762
4233
  default: withCtx(() => [
3763
4234
  createVNode(unref(MenuItems), { class: "z-10 mx-3 origin-top-right absolute right-7 top-0 w-48 mt-1 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-200 focus:outline-none" }, {
3764
4235
  default: withCtx(() => [
3765
- createElementVNode("div", _hoisted_2$j, [
4236
+ createElementVNode("div", _hoisted_2$k, [
3766
4237
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item, idx) => {
3767
4238
  return openBlock(), createElementBlock(Fragment, { key: idx }, [
3768
4239
  show(item) ? (openBlock(), createBlock(unref(MenuItem), {
@@ -3797,10 +4268,10 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
3797
4268
  };
3798
4269
  }
3799
4270
  });
3800
- const _hoisted_1$n = { class: "px-4 py-5 sm:p-6 text-center" };
3801
- const _hoisted_2$i = ["textContent"];
4271
+ const _hoisted_1$q = { class: "px-4 py-5 sm:p-6 text-center" };
4272
+ const _hoisted_2$j = ["textContent"];
3802
4273
  const _hoisted_3$f = ["textContent"];
3803
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
4274
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
3804
4275
  props: {
3805
4276
  cards: null
3806
4277
  },
@@ -3814,12 +4285,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
3814
4285
  class: "bg-white overflow-hidden shadow rounded-lg",
3815
4286
  key: idx
3816
4287
  }, [
3817
- createElementVNode("div", _hoisted_1$n, [
4288
+ createElementVNode("div", _hoisted_1$q, [
3818
4289
  createElementVNode("dl", null, [
3819
4290
  createElementVNode("dd", {
3820
4291
  class: "mt-1 text-3xl leading-9 font-semibold text-xy-blue",
3821
4292
  textContent: toDisplayString(card.primary)
3822
- }, null, 8, _hoisted_2$i),
4293
+ }, null, 8, _hoisted_2$j),
3823
4294
  createElementVNode("dt", {
3824
4295
  class: "text-sm leading-5 font-medium text-gray-700 truncate",
3825
4296
  textContent: toDisplayString(card.secondary)
@@ -3832,8 +4303,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
3832
4303
  };
3833
4304
  }
3834
4305
  });
3835
- const _hoisted_1$m = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
3836
- const _hoisted_2$h = /* @__PURE__ */ createElementVNode("span", {
4306
+ const _hoisted_1$p = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
4307
+ const _hoisted_2$i = /* @__PURE__ */ createElementVNode("span", {
3837
4308
  class: "hidden sm:inline-block sm:align-middle sm:h-screen",
3838
4309
  "aria-hidden": "true"
3839
4310
  }, "\u200B", -1);
@@ -3841,7 +4312,7 @@ const _hoisted_3$e = { class: "inline-block align-bottom bg-white rounded-lg px-
3841
4312
  const _hoisted_4$b = { class: "mt-3 text-center sm:mt-5" };
3842
4313
  const _hoisted_5$9 = { class: "mt-2" };
3843
4314
  const _hoisted_6$9 = { class: "mt-5 sm:mt-6" };
3844
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
4315
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
3845
4316
  props: {
3846
4317
  modelValue: { type: Boolean },
3847
4318
  title: { default: "" }
@@ -3865,7 +4336,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
3865
4336
  open: __props.modelValue
3866
4337
  }, {
3867
4338
  default: withCtx(() => [
3868
- createElementVNode("div", _hoisted_1$m, [
4339
+ createElementVNode("div", _hoisted_1$p, [
3869
4340
  createVNode(unref(TransitionChild), {
3870
4341
  as: "template",
3871
4342
  enter: "ease-out duration-300",
@@ -3880,7 +4351,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
3880
4351
  ]),
3881
4352
  _: 1
3882
4353
  }),
3883
- _hoisted_2$h,
4354
+ _hoisted_2$i,
3884
4355
  createVNode(unref(TransitionChild), {
3885
4356
  as: "template",
3886
4357
  enter: "ease-out duration-300",
@@ -6018,7 +6489,7 @@ if (typeof window !== "undefined") {
6018
6489
  window.flatpickr = flatpickr;
6019
6490
  }
6020
6491
  var flatpickr_min = "";
6021
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
6492
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6022
6493
  props: {
6023
6494
  label: { default: "" },
6024
6495
  tag: { default: "label" }
@@ -6036,7 +6507,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6036
6507
  };
6037
6508
  }
6038
6509
  });
6039
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
6510
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
6040
6511
  props: {
6041
6512
  tag: { default: "div" },
6042
6513
  text: { default: "" }
@@ -6054,8 +6525,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6054
6525
  };
6055
6526
  }
6056
6527
  });
6057
- const _hoisted_1$l = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
6058
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
6528
+ const _hoisted_1$o = ["aria-labelledby", "aria-describedby", "id", "placeholder", "type", "value"];
6529
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
6059
6530
  props: {
6060
6531
  type: null,
6061
6532
  help: { default: "" },
@@ -6086,7 +6557,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6086
6557
  });
6087
6558
  return (_ctx, _cache) => {
6088
6559
  return openBlock(), createElementBlock(Fragment, null, [
6089
- createVNode(_sfc_main$o, {
6560
+ createVNode(_sfc_main$r, {
6090
6561
  class: "block",
6091
6562
  id: `${unref(uuid)}-label`,
6092
6563
  for: unref(uuid),
@@ -6112,8 +6583,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6112
6583
  type: __props.type,
6113
6584
  value: __props.modelValue,
6114
6585
  onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
6115
- }, _ctx.$attrs), null, 16, _hoisted_1$l),
6116
- createVNode(_sfc_main$n, {
6586
+ }, _ctx.$attrs), null, 16, _hoisted_1$o),
6587
+ createVNode(_sfc_main$q, {
6117
6588
  id: `${unref(uuid)}-help`,
6118
6589
  text: __props.help
6119
6590
  }, null, 8, ["id", "text"])
@@ -6121,7 +6592,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6121
6592
  };
6122
6593
  }
6123
6594
  });
6124
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
6595
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
6125
6596
  props: {
6126
6597
  modelValue: null,
6127
6598
  startDate: { default: 0 },
@@ -6158,7 +6629,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6158
6629
  });
6159
6630
  });
6160
6631
  return (_ctx, _cache) => {
6161
- return openBlock(), createBlock(_sfc_main$m, {
6632
+ return openBlock(), createBlock(_sfc_main$p, {
6162
6633
  type: "text",
6163
6634
  placeholder: "mm-dd-yyyy range",
6164
6635
  id: unref(uuid),
@@ -6168,15 +6639,15 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6168
6639
  };
6169
6640
  }
6170
6641
  });
6171
- const _hoisted_1$k = ["aria-labelledby", "aria-describedby", "id", "value"];
6172
- const _hoisted_2$g = {
6642
+ const _hoisted_1$n = ["aria-labelledby", "aria-describedby", "id", "value"];
6643
+ const _hoisted_2$h = {
6173
6644
  key: 0,
6174
6645
  value: "",
6175
6646
  disabled: "",
6176
6647
  selected: ""
6177
6648
  };
6178
6649
  const _hoisted_3$d = ["value", "textContent"];
6179
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
6650
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
6180
6651
  props: {
6181
6652
  design: { default: "standard" },
6182
6653
  label: { default: "" },
@@ -6198,7 +6669,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6198
6669
  });
6199
6670
  return (_ctx, _cache) => {
6200
6671
  return openBlock(), createElementBlock(Fragment, null, [
6201
- createVNode(_sfc_main$o, {
6672
+ createVNode(_sfc_main$r, {
6202
6673
  id: `${unref(uuid)}-label`,
6203
6674
  for: unref(uuid),
6204
6675
  label: __props.label
@@ -6214,7 +6685,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6214
6685
  emit("update:modelValue", $event.target.value);
6215
6686
  }
6216
6687
  })), [
6217
- __props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$g, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
6688
+ __props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_2$h, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
6218
6689
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
6219
6690
  return openBlock(), createElementBlock("option", {
6220
6691
  value: option.value,
@@ -6222,8 +6693,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6222
6693
  key: option.value
6223
6694
  }, null, 8, _hoisted_3$d);
6224
6695
  }), 128))
6225
- ], 16, _hoisted_1$k),
6226
- createVNode(_sfc_main$n, {
6696
+ ], 16, _hoisted_1$n),
6697
+ createVNode(_sfc_main$q, {
6227
6698
  id: `${unref(uuid)}-help`,
6228
6699
  text: __props.help
6229
6700
  }, null, 8, ["id", "text"])
@@ -6231,11 +6702,11 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6231
6702
  };
6232
6703
  }
6233
6704
  });
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" };
6705
+ const _hoisted_1$m = { class: "md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100" };
6706
+ const _hoisted_2$g = { class: "flex-1 min-w-0" };
6236
6707
  const _hoisted_3$c = { class: "text-lg leading-6 font-semibold text-gray-900" };
6237
6708
  const _hoisted_4$a = { class: "mt-4 flex md:mt-0 md:ml-4" };
6238
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
6709
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
6239
6710
  props: {
6240
6711
  dateRange: null,
6241
6712
  sortDir: null,
@@ -6257,12 +6728,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6257
6728
  emits("date-range-changed", dateRange2);
6258
6729
  };
6259
6730
  return (_ctx, _cache) => {
6260
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
6261
- createElementVNode("div", _hoisted_2$f, [
6731
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
6732
+ createElementVNode("div", _hoisted_2$g, [
6262
6733
  createElementVNode("h1", _hoisted_3$c, toDisplayString(__props.title), 1)
6263
6734
  ]),
6264
6735
  createElementVNode("div", _hoisted_4$a, [
6265
- createVNode(_sfc_main$k, {
6736
+ createVNode(_sfc_main$n, {
6266
6737
  modelValue: sortDir.value,
6267
6738
  "onUpdate:modelValue": [
6268
6739
  _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
@@ -6270,7 +6741,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6270
6741
  ],
6271
6742
  options: sortOptions
6272
6743
  }, null, 8, ["modelValue"]),
6273
- createVNode(_sfc_main$l, {
6744
+ createVNode(_sfc_main$o, {
6274
6745
  modelValue: dateRange.value,
6275
6746
  "onUpdate:modelValue": [
6276
6747
  _cache[1] || (_cache[1] = ($event) => dateRange.value = $event),
@@ -6283,8 +6754,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6283
6754
  };
6284
6755
  }
6285
6756
  });
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" };
6757
+ const _hoisted_1$l = { class: "px-4 flex items-center justify-between sm:px-0" };
6758
+ const _hoisted_2$f = { class: "w-0 flex-1 flex" };
6288
6759
  const _hoisted_3$b = /* @__PURE__ */ createElementVNode("svg", {
6289
6760
  class: "mr-3 h-5 w-5",
6290
6761
  fill: "currentColor",
@@ -6320,7 +6791,7 @@ const _hoisted_11$5 = [
6320
6791
  _hoisted_9$8,
6321
6792
  _hoisted_10$8
6322
6793
  ];
6323
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
6794
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
6324
6795
  props: {
6325
6796
  modelValue: null
6326
6797
  },
@@ -6356,8 +6827,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6356
6827
  return shortcuts;
6357
6828
  });
6358
6829
  return (_ctx, _cache) => {
6359
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
6360
- createElementVNode("div", _hoisted_2$e, [
6830
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
6831
+ createElementVNode("div", _hoisted_2$f, [
6361
6832
  createElementVNode("a", {
6362
6833
  href: "#",
6363
6834
  class: normalizeClass([
@@ -6395,11 +6866,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6395
6866
  };
6396
6867
  }
6397
6868
  });
6398
- const _hoisted_1$h = {
6869
+ const _hoisted_1$k = {
6399
6870
  key: 0,
6400
6871
  class: "shadow overflow-hidden sm:rounded-md border"
6401
6872
  };
6402
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
6873
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
6403
6874
  props: {
6404
6875
  refreshTrigger: { default: 0 },
6405
6876
  reloadTrigger: { default: 0 },
@@ -6454,14 +6925,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6454
6925
  loadAndRender(true);
6455
6926
  return (_ctx, _cache) => {
6456
6927
  return openBlock(), createElementBlock("div", null, [
6457
- createVNode(_sfc_main$j, {
6928
+ createVNode(_sfc_main$m, {
6458
6929
  "date-range": dateRange.value,
6459
6930
  "sort-dir": sortDir.value,
6460
6931
  title: __props.title,
6461
6932
  onSortDirChanged: _cache[0] || (_cache[0] = ($event) => sortDir.value = $event),
6462
6933
  onDateRangeChanged: _cache[1] || (_cache[1] = ($event) => dateRange.value = $event)
6463
6934
  }, null, 8, ["date-range", "sort-dir", "title"]),
6464
- hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
6935
+ hasContent.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
6465
6936
  createElementVNode("ul", null, [
6466
6937
  (openBlock(true), createElementBlock(Fragment, null, renderList(items.value, (item, idx) => {
6467
6938
  return openBlock(), createElementBlock("li", {
@@ -6473,7 +6944,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6473
6944
  }), 128))
6474
6945
  ])
6475
6946
  ])) : renderSlot(_ctx.$slots, "empty", { key: 1 }),
6476
- hasContent.value ? (openBlock(), createBlock(_sfc_main$i, {
6947
+ hasContent.value ? (openBlock(), createBlock(_sfc_main$l, {
6477
6948
  key: 2,
6478
6949
  modelValue: pagination.value,
6479
6950
  "onUpdate:modelValue": [
@@ -6485,8 +6956,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6485
6956
  };
6486
6957
  }
6487
6958
  });
6488
- const _hoisted_1$g = ["href"];
6489
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
6959
+ const _hoisted_1$j = ["href"];
6960
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
6490
6961
  props: {
6491
6962
  propsData: null,
6492
6963
  attribute: null
@@ -6496,13 +6967,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
6496
6967
  return openBlock(), createElementBlock("a", {
6497
6968
  href: __props.propsData[__props.attribute]
6498
6969
  }, [
6499
- createVNode(unref(render$4), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
6500
- ], 8, _hoisted_1$g);
6970
+ createVNode(unref(render$5), { class: "h-6 w-6 group-hover:text-gray-500 transition" })
6971
+ ], 8, _hoisted_1$j);
6501
6972
  };
6502
6973
  }
6503
6974
  });
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" };
6975
+ const _hoisted_1$i = { class: "fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-40" };
6976
+ const _hoisted_2$e = { class: "rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden" };
6506
6977
  const _hoisted_3$a = { class: "p-4" };
6507
6978
  const _hoisted_4$8 = { class: "flex items-center" };
6508
6979
  const _hoisted_5$7 = { class: "w-0 flex-1 flex justify-between" };
@@ -6523,7 +6994,7 @@ const _hoisted_9$7 = /* @__PURE__ */ createElementVNode("svg", {
6523
6994
  const _hoisted_10$7 = [
6524
6995
  _hoisted_9$7
6525
6996
  ];
6526
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
6997
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
6527
6998
  setup(__props) {
6528
6999
  const flashes = ref([]);
6529
7000
  const flashTypeBorderClass = {
@@ -6578,7 +7049,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6578
7049
  }
6579
7050
  });
6580
7051
  return (_ctx, _cache) => {
6581
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
7052
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
6582
7053
  createVNode(TransitionGroup, {
6583
7054
  tag: "div",
6584
7055
  class: "max-w-sm w-full",
@@ -6595,7 +7066,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6595
7066
  key: flash.message,
6596
7067
  class: normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform", [{ "mt-2": idx > 0 }, getFlashClass(flash)]])
6597
7068
  }, [
6598
- createElementVNode("div", _hoisted_2$d, [
7069
+ createElementVNode("div", _hoisted_2$e, [
6599
7070
  createElementVNode("div", _hoisted_3$a, [
6600
7071
  createElementVNode("div", _hoisted_4$8, [
6601
7072
  createElementVNode("div", _hoisted_5$7, [
@@ -6622,6 +7093,22 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
6622
7093
  };
6623
7094
  }
6624
7095
  });
7096
+ function render$4(_ctx, _cache) {
7097
+ return openBlock(), createBlock("svg", {
7098
+ xmlns: "http://www.w3.org/2000/svg",
7099
+ fill: "none",
7100
+ viewBox: "0 0 24 24",
7101
+ stroke: "currentColor",
7102
+ "aria-hidden": "true"
7103
+ }, [
7104
+ createVNode("path", {
7105
+ "stroke-linecap": "round",
7106
+ "stroke-linejoin": "round",
7107
+ "stroke-width": "2",
7108
+ d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
7109
+ })
7110
+ ]);
7111
+ }
6625
7112
  function render$3(_ctx, _cache) {
6626
7113
  return openBlock(), createBlock("svg", {
6627
7114
  xmlns: "http://www.w3.org/2000/svg",
@@ -6654,7 +7141,7 @@ function render$2(_ctx, _cache) {
6654
7141
  })
6655
7142
  ]);
6656
7143
  }
6657
- function render$111(_ctx, _cache) {
7144
+ function render$113(_ctx, _cache) {
6658
7145
  return openBlock(), createBlock("svg", {
6659
7146
  xmlns: "http://www.w3.org/2000/svg",
6660
7147
  fill: "none",
@@ -6686,8 +7173,8 @@ function render(_ctx, _cache) {
6686
7173
  })
6687
7174
  ]);
6688
7175
  }
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", {
7176
+ const _hoisted_1$h = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" };
7177
+ const _hoisted_2$d = /* @__PURE__ */ createElementVNode("span", {
6691
7178
  class: "hidden sm:inline-block sm:align-middle sm:h-screen",
6692
7179
  "aria-hidden": "true"
6693
7180
  }, "\u200B", -1);
@@ -6702,7 +7189,7 @@ const _hoisted_9$6 = {
6702
7189
  class: "bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"
6703
7190
  };
6704
7191
  const _hoisted_10$6 = ["textContent", "disabled"];
6705
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
7192
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
6706
7193
  props: {
6707
7194
  destructive: { type: Boolean, default: false },
6708
7195
  disabled: { type: Boolean, default: false },
@@ -6732,7 +7219,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6732
7219
  open: __props.modelValue
6733
7220
  }, {
6734
7221
  default: withCtx(() => [
6735
- createElementVNode("div", _hoisted_1$e, [
7222
+ createElementVNode("div", _hoisted_1$h, [
6736
7223
  createVNode(unref(TransitionChild), {
6737
7224
  as: "template",
6738
7225
  enter: "ease-out duration-300",
@@ -6747,7 +7234,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6747
7234
  ]),
6748
7235
  _: 1
6749
7236
  }),
6750
- _hoisted_2$c,
7237
+ _hoisted_2$d,
6751
7238
  createVNode(unref(TransitionChild), {
6752
7239
  as: "template",
6753
7240
  enter: "ease-out duration-300",
@@ -6814,11 +7301,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
6814
7301
  };
6815
7302
  }
6816
7303
  });
6817
- const _hoisted_1$d = {
7304
+ const _hoisted_1$g = {
6818
7305
  key: 0,
6819
7306
  class: "fixed top-0 left-0 flex items-center justify-center w-full h-full cursor-not-allowed z-50 bg-gray-50 bg-opacity-50"
6820
7307
  };
6821
- const _hoisted_2$b = /* @__PURE__ */ createElementVNode("div", { class: "flex justify-center" }, [
7308
+ const _hoisted_2$c = /* @__PURE__ */ createElementVNode("div", { class: "flex justify-center" }, [
6822
7309
  /* @__PURE__ */ createElementVNode("div", { class: "animate-spin-gear" }, [
6823
7310
  /* @__PURE__ */ createElementVNode("svg", {
6824
7311
  width: "129px",
@@ -6896,7 +7383,7 @@ const _hoisted_2$b = /* @__PURE__ */ createElementVNode("div", { class: "flex ju
6896
7383
  ])
6897
7384
  ])
6898
7385
  ], -1);
6899
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
7386
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
6900
7387
  setup(__props) {
6901
7388
  const idx = ref(0);
6902
7389
  const loading = ref(false);
@@ -6938,9 +7425,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
6938
7425
  });
6939
7426
  });
6940
7427
  return (_ctx, _cache) => {
6941
- return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
7428
+ return loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
6942
7429
  createElementVNode("div", null, [
6943
- _hoisted_2$b,
7430
+ _hoisted_2$c,
6944
7431
  withDirectives(createElementVNode("div", null, [
6945
7432
  createVNode(Transition, {
6946
7433
  appear: "",
@@ -6968,8 +7455,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
6968
7455
  };
6969
7456
  }
6970
7457
  });
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" };
7458
+ const _hoisted_1$f = { class: "h-screen flex overflow-hidden bg-gray-100" };
7459
+ const _hoisted_2$b = { class: "relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white" };
6973
7460
  const _hoisted_3$8 = { class: "absolute top-0 right-0 -mr-12 pt-2" };
6974
7461
  const _hoisted_4$6 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only" }, "Close sidebar", -1);
6975
7462
  const _hoisted_5$5 = { class: "flex-shrink-0 flex justify-center px-4" };
@@ -7000,7 +7487,7 @@ const _hoisted_26 = /* @__PURE__ */ createElementVNode("span", { class: "sr-only
7000
7487
  const _hoisted_27 = ["href"];
7001
7488
  const _hoisted_28 = { class: "flex-1 relative overflow-y-auto focus:outline-none" };
7002
7489
  const _hoisted_29 = { class: "mx-auto" };
7003
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
7490
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
7004
7491
  props: {
7005
7492
  activeURL: { default: "" },
7006
7493
  iconURL: null,
@@ -7015,7 +7502,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7015
7502
  };
7016
7503
  return (_ctx, _cache) => {
7017
7504
  return openBlock(), createElementBlock(Fragment, null, [
7018
- createElementVNode("div", _hoisted_1$c, [
7505
+ createElementVNode("div", _hoisted_1$f, [
7019
7506
  createVNode(unref(TransitionRoot), {
7020
7507
  as: "template",
7021
7508
  show: sidebarOpen.value
@@ -7053,7 +7540,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7053
7540
  "leave-to": "-translate-x-full"
7054
7541
  }, {
7055
7542
  default: withCtx(() => [
7056
- createElementVNode("div", _hoisted_2$a, [
7543
+ createElementVNode("div", _hoisted_2$b, [
7057
7544
  createVNode(unref(TransitionChild), {
7058
7545
  as: "template",
7059
7546
  enter: "ease-in-out duration-300",
@@ -7186,7 +7673,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7186
7673
  createVNode(unref(MenuButton), { class: "max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-500 hover:text-gray-200 focus:outline-none focus:ring focus:text-white" }, {
7187
7674
  default: withCtx(() => [
7188
7675
  _hoisted_26,
7189
- createVNode(unref(render$6), {
7676
+ createVNode(unref(render$7), {
7190
7677
  class: "h-8 w-8",
7191
7678
  fill: "currentColor"
7192
7679
  })
@@ -7240,14 +7727,124 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7240
7727
  ])
7241
7728
  ])
7242
7729
  ]),
7243
- createVNode(_sfc_main$f),
7244
- createVNode(_sfc_main$d)
7730
+ createVNode(_sfc_main$i),
7731
+ createVNode(_sfc_main$g)
7245
7732
  ], 64);
7246
7733
  };
7247
7734
  }
7248
7735
  });
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" };
7736
+ const _hoisted_1$e = { class: "flex" };
7737
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
7738
+ props: {
7739
+ position: { default: "top-center" }
7740
+ },
7741
+ setup(__props) {
7742
+ const props = __props;
7743
+ const positionClasses = computed(() => {
7744
+ let wrapperClasses = "";
7745
+ let contentClasses = "";
7746
+ switch (props.position) {
7747
+ case "top-left":
7748
+ wrapperClasses = "top-0 left-0 -translate-y-full -translate-x-full justify-end";
7749
+ break;
7750
+ case "top-center":
7751
+ wrapperClasses = "top-0 -translate-y-full -translate-x-full left-1/2 justify-end";
7752
+ contentClasses = "translate-x-1/2";
7753
+ break;
7754
+ case "top-right":
7755
+ wrapperClasses = "top-0 -translate-y-full right-0 justify-end";
7756
+ contentClasses = "translate-x-full";
7757
+ break;
7758
+ case "bottom-left":
7759
+ wrapperClasses = "top-full left-0 -translate-x-full justify-end";
7760
+ break;
7761
+ case "bottom-center":
7762
+ wrapperClasses = "top-full -translate-x-full left-1/2 justify-end";
7763
+ contentClasses = "translate-x-1/2";
7764
+ break;
7765
+ case "bottom-right":
7766
+ wrapperClasses = "top-full right-0 justify-end";
7767
+ contentClasses = "translate-x-full";
7768
+ break;
7769
+ case "left":
7770
+ wrapperClasses = "top-1/2 left-0 -translate-y-1/2 -translate-x-full justify-end";
7771
+ break;
7772
+ case "right":
7773
+ wrapperClasses = "top-1/2 -translate-y-1/2 right-0 justify-end";
7774
+ contentClasses = "translate-x-full";
7775
+ break;
7776
+ }
7777
+ return {
7778
+ wrapper: wrapperClasses,
7779
+ content: contentClasses
7780
+ };
7781
+ });
7782
+ return (_ctx, _cache) => {
7783
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
7784
+ createVNode(unref(Popover), { class: "relative leading-none" }, {
7785
+ default: withCtx(({ open, close: close2 }) => [
7786
+ createVNode(unref(PopoverButton), null, {
7787
+ default: withCtx(() => [
7788
+ renderSlot(_ctx.$slots, "button", {
7789
+ open,
7790
+ close: close2
7791
+ })
7792
+ ]),
7793
+ _: 2
7794
+ }, 1024),
7795
+ createVNode(Transition, {
7796
+ "enter-active-class": "transition-opacity transition-faster ease-out-quad",
7797
+ "leave-active-class": "transition-opacity transition-faster ease-in-quad",
7798
+ "enter-from-class": "opacity-0",
7799
+ "enter-to-class": "opacity-100",
7800
+ "leave-from-class": "opacity-100",
7801
+ "leave-to-class": "opacity-0"
7802
+ }, {
7803
+ default: withCtx(() => [
7804
+ createVNode(unref(PopoverPanel), null, {
7805
+ default: withCtx(() => [
7806
+ createElementVNode("div", {
7807
+ class: normalizeClass(["absolute z-10 transform w-screen flex", unref(positionClasses).wrapper])
7808
+ }, [
7809
+ createElementVNode("div", {
7810
+ class: normalizeClass(unref(positionClasses).content)
7811
+ }, [
7812
+ renderSlot(_ctx.$slots, "default", {
7813
+ open,
7814
+ close: close2
7815
+ })
7816
+ ], 2)
7817
+ ], 2)
7818
+ ]),
7819
+ _: 2
7820
+ }, 1024)
7821
+ ]),
7822
+ _: 2
7823
+ }, 1024)
7824
+ ]),
7825
+ _: 3
7826
+ })
7827
+ ]);
7828
+ };
7829
+ }
7830
+ });
7831
+ var _export_sfc = (sfc, props) => {
7832
+ const target = sfc.__vccOpts || sfc;
7833
+ for (const [key, val] of props) {
7834
+ target[key] = val;
7835
+ }
7836
+ return target;
7837
+ };
7838
+ const _sfc_main$d = {};
7839
+ const _hoisted_1$d = { class: "max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md" };
7840
+ function _sfc_render(_ctx, _cache) {
7841
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
7842
+ renderSlot(_ctx.$slots, "default")
7843
+ ]);
7844
+ }
7845
+ var PopoverContent = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render]]);
7846
+ const _hoisted_1$c = { class: "absolute inset-0 overflow-hidden" };
7847
+ const _hoisted_2$a = { class: "fixed inset-y-0 right-0 pl-10 max-w-full flex" };
7251
7848
  const _hoisted_3$7 = { class: "w-screen max-w-md" };
7252
7849
  const _hoisted_4$5 = { class: "h-full flex flex-col bg-white shadow-xl overflow-y-scroll" };
7253
7850
  const _hoisted_5$4 = { class: "py-6 px-4 bg-blue-700 sm:px-6" };
@@ -7257,7 +7854,7 @@ const _hoisted_8$4 = /* @__PURE__ */ createElementVNode("span", { class: "sr-onl
7257
7854
  const _hoisted_9$4 = { class: "mt-1" };
7258
7855
  const _hoisted_10$4 = ["textContent"];
7259
7856
  const _hoisted_11$3 = { class: "relative flex-1 py-6 px-4 sm:px-6" };
7260
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
7857
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
7261
7858
  props: {
7262
7859
  header: null,
7263
7860
  description: null,
@@ -7286,9 +7883,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7286
7883
  open: __props.modelValue
7287
7884
  }, {
7288
7885
  default: withCtx(() => [
7289
- createElementVNode("div", _hoisted_1$b, [
7886
+ createElementVNode("div", _hoisted_1$c, [
7290
7887
  createVNode(unref(DialogOverlay), { class: "absolute inset-0" }),
7291
- createElementVNode("div", _hoisted_2$9, [
7888
+ createElementVNode("div", _hoisted_2$a, [
7292
7889
  createVNode(unref(TransitionChild), {
7293
7890
  as: "template",
7294
7891
  enter: "transform transition ease-in-out duration-500 sm:duration-700",
@@ -7348,6 +7945,34 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7348
7945
  };
7349
7946
  }
7350
7947
  });
7948
+ const _hoisted_1$b = { class: "relative" };
7949
+ const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "p-4 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" }, null, -1);
7950
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
7951
+ props: {
7952
+ position: { default: "top-center" }
7953
+ },
7954
+ setup(__props) {
7955
+ return (_ctx, _cache) => {
7956
+ return openBlock(), createBlock(_sfc_main$e, { position: __props.position }, {
7957
+ button: withCtx(() => [
7958
+ createElementVNode("div", _hoisted_1$b, [
7959
+ _hoisted_2$9,
7960
+ createVNode(unref(render$4), { class: "w-4 h-4" })
7961
+ ])
7962
+ ]),
7963
+ default: withCtx(() => [
7964
+ createVNode(PopoverContent, { class: "text-xs leading-tight font-medium" }, {
7965
+ default: withCtx(() => [
7966
+ renderSlot(_ctx.$slots, "default")
7967
+ ]),
7968
+ _: 3
7969
+ })
7970
+ ]),
7971
+ _: 3
7972
+ }, 8, ["position"]);
7973
+ };
7974
+ }
7975
+ });
7351
7976
  const _hoisted_1$a = { class: "min-h-screen bg-gray-100" };
7352
7977
  const _hoisted_2$8 = { class: "mx-auto px-4 sm:px-6 lg:px-8" };
7353
7978
  const _hoisted_3$6 = { class: "flex justify-between h-16" };
@@ -7428,7 +8053,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7428
8053
  createVNode(unref(MenuButton), { class: "bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500" }, {
7429
8054
  default: withCtx(() => [
7430
8055
  _hoisted_10$3,
7431
- createVNode(unref(render$111), { class: "text-gray-500 h-8 w-8 rounded-full" })
8056
+ createVNode(unref(render$113), { class: "text-gray-500 h-8 w-8 rounded-full" })
7432
8057
  ]),
7433
8058
  _: 1
7434
8059
  })
@@ -7507,7 +8132,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7507
8132
  createElementVNode("div", _hoisted_16$1, [
7508
8133
  createElementVNode("div", _hoisted_17$1, [
7509
8134
  createElementVNode("div", _hoisted_18$1, [
7510
- createVNode(unref(render$111), { class: "text-gray-500 h-10 w-10 rounded-full" })
8135
+ createVNode(unref(render$113), { class: "text-gray-500 h-10 w-10 rounded-full" })
7511
8136
  ]),
7512
8137
  createElementVNode("div", _hoisted_19$1, [
7513
8138
  __props.currentUser.name ? (openBlock(), createElementBlock("div", {
@@ -7546,8 +8171,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
7546
8171
  ])
7547
8172
  ])
7548
8173
  ]),
7549
- createVNode(_sfc_main$f),
7550
- createVNode(_sfc_main$d)
8174
+ createVNode(_sfc_main$i),
8175
+ createVNode(_sfc_main$g)
7551
8176
  ], 64);
7552
8177
  };
7553
8178
  }
@@ -7907,7 +8532,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7907
8532
  ])
7908
8533
  ])) : createCommentVNode("", true),
7909
8534
  __props.tableData.dateSearch ? (openBlock(), createElementBlock("div", _hoisted_6, [
7910
- createVNode(_sfc_main$l, {
8535
+ createVNode(_sfc_main$o, {
7911
8536
  modelValue: dateRange.value,
7912
8537
  "onUpdate:modelValue": [
7913
8538
  _cache[2] || (_cache[2] = ($event) => dateRange.value = $event),
@@ -7972,7 +8597,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
7972
8597
  ])
7973
8598
  ])
7974
8599
  ]),
7975
- unref(hasContent) ? (openBlock(), createBlock(_sfc_main$i, {
8600
+ unref(hasContent) ? (openBlock(), createBlock(_sfc_main$l, {
7976
8601
  key: 0,
7977
8602
  modelValue: pagination.value,
7978
8603
  "onUpdate:modelValue": [
@@ -8119,7 +8744,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
8119
8744
  emits("update:modelValue", $event.target.checked);
8120
8745
  }
8121
8746
  })), null, 16, _hoisted_2$3),
8122
- createVNode(_sfc_main$o, {
8747
+ createVNode(_sfc_main$r, {
8123
8748
  class: "ml-2",
8124
8749
  id: `${unref(uuid)}-label`,
8125
8750
  for: unref(uuid),
@@ -8147,7 +8772,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8147
8772
  const model = ref(props.modelValue);
8148
8773
  return (_ctx, _cache) => {
8149
8774
  return openBlock(), createElementBlock("fieldset", null, [
8150
- createVNode(_sfc_main$o, {
8775
+ createVNode(_sfc_main$r, {
8151
8776
  class: "block mb-0",
8152
8777
  label: __props.legend,
8153
8778
  tag: "legend"
@@ -8171,7 +8796,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
8171
8796
  })), null, 16, _hoisted_2$2), [
8172
8797
  [vModelCheckbox, model.value]
8173
8798
  ]),
8174
- createVNode(_sfc_main$o, {
8799
+ createVNode(_sfc_main$r, {
8175
8800
  class: "ml-2",
8176
8801
  for: `${unref(uuid)}-${index}`,
8177
8802
  label: option.label,
@@ -8201,7 +8826,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8201
8826
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8202
8827
  return (_ctx, _cache) => {
8203
8828
  return openBlock(), createElementBlock("fieldset", _hoisted_1$2, [
8204
- createVNode(_sfc_main$o, {
8829
+ createVNode(_sfc_main$r, {
8205
8830
  class: "block",
8206
8831
  label: __props.legend,
8207
8832
  tag: "legend"
@@ -8227,7 +8852,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
8227
8852
  emits("update:modelValue", $event.target.value);
8228
8853
  }
8229
8854
  })), null, 16, _hoisted_3$1),
8230
- createVNode(_sfc_main$o, {
8855
+ createVNode(_sfc_main$r, {
8231
8856
  class: "ml-2",
8232
8857
  label: option.label,
8233
8858
  tag: "span"
@@ -8254,7 +8879,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8254
8879
  const uuid = attrs.id || Uniques.CreateIdAttribute();
8255
8880
  return (_ctx, _cache) => {
8256
8881
  return openBlock(), createElementBlock(Fragment, null, [
8257
- createVNode(_sfc_main$o, {
8882
+ createVNode(_sfc_main$r, {
8258
8883
  class: "block",
8259
8884
  id: `${unref(uuid)}-label`,
8260
8885
  for: unref(uuid),
@@ -8278,7 +8903,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8278
8903
  value: __props.modelValue,
8279
8904
  onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
8280
8905
  }, _ctx.$attrs), null, 16, _hoisted_1$1),
8281
- createVNode(_sfc_main$n, {
8906
+ createVNode(_sfc_main$q, {
8282
8907
  id: `${unref(uuid)}-help`,
8283
8908
  text: __props.help
8284
8909
  }, null, 8, ["id", "text"])
@@ -8309,7 +8934,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8309
8934
  };
8310
8935
  return (_ctx, _cache) => {
8311
8936
  return openBlock(), createElementBlock("fieldset", null, [
8312
- createVNode(_sfc_main$o, {
8937
+ createVNode(_sfc_main$r, {
8313
8938
  class: "block",
8314
8939
  label: __props.legend,
8315
8940
  tag: "legend"
@@ -8328,7 +8953,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8328
8953
  }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8329
8954
  onChange
8330
8955
  })), null, 16, _hoisted_2),
8331
- createVNode(_sfc_main$o, {
8956
+ createVNode(_sfc_main$r, {
8332
8957
  class: "ml-2",
8333
8958
  label: "Yes",
8334
8959
  tag: "span"
@@ -8348,7 +8973,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8348
8973
  }, __spreadProps(__spreadValues({}, _ctx.$attrs), {
8349
8974
  onChange
8350
8975
  })), null, 16, _hoisted_4),
8351
- createVNode(_sfc_main$o, {
8976
+ createVNode(_sfc_main$r, {
8352
8977
  class: "ml-2",
8353
8978
  label: "No",
8354
8979
  tag: "span"
@@ -8361,32 +8986,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8361
8986
  var components = /* @__PURE__ */ Object.freeze({
8362
8987
  __proto__: null,
8363
8988
  [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,
8989
+ ActionsDropdown: _sfc_main$u,
8990
+ Cards: _sfc_main$t,
8991
+ ContentModal: _sfc_main$s,
8992
+ DateFilter: _sfc_main$m,
8993
+ DetailList: _sfc_main$k,
8994
+ DownloadCell: _sfc_main$j,
8995
+ Flash: _sfc_main$i,
8996
+ Modal: _sfc_main$h,
8997
+ SidebarLayout: _sfc_main$f,
8998
+ Slideover: _sfc_main$c,
8374
8999
  StackedLayout: _sfc_main$a,
8375
- Paginator: _sfc_main$i,
8376
- Spinner: _sfc_main$d,
9000
+ Popover: _sfc_main$e,
9001
+ PopoverContent,
9002
+ PopoverPosition: _sfc_main$e,
9003
+ Paginator: _sfc_main$l,
9004
+ Spinner: _sfc_main$g,
8377
9005
  StaticTable: _sfc_main$9,
8378
9006
  Steps: _sfc_main$8,
8379
9007
  Table: _sfc_main$7,
8380
9008
  Tabs: _sfc_main$6,
8381
9009
  Toggle: _sfc_main$5,
8382
- BaseInput: _sfc_main$m,
9010
+ Tooltip: _sfc_main$b,
9011
+ BaseInput: _sfc_main$p,
8383
9012
  Checkbox: _sfc_main$4,
8384
- DateRangePicker: _sfc_main$l,
8385
- InputHelp: _sfc_main$n,
8386
- InputLabel: _sfc_main$o,
9013
+ DateRangePicker: _sfc_main$o,
9014
+ InputHelp: _sfc_main$q,
9015
+ InputLabel: _sfc_main$r,
8387
9016
  MultiCheckboxes: _sfc_main$3,
8388
9017
  Radio: _sfc_main$2,
8389
- Select: _sfc_main$k,
9018
+ Select: _sfc_main$n,
8390
9019
  TextArea: _sfc_main$1,
8391
9020
  YesOrNoRadio: _sfc_main
8392
9021
  });
@@ -8395,4 +9024,4 @@ const install = function installTrees(app) {
8395
9024
  app.component(componentName, component);
8396
9025
  });
8397
9026
  };
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 };
9027
+ export { _sfc_main$u as ActionsDropdown, BaseAPI, _sfc_main$p as BaseInput, _sfc_main$t as Cards, _sfc_main$4 as Checkbox, _sfc_main$s as ContentModal, _sfc_main$m as DateFilter, _sfc_main$o as DateRangePicker, _sfc_main$k as DetailList, _sfc_main$j as DownloadCell, _sfc_main$i as Flash, _sfc_main$q as InputHelp, _sfc_main$r as InputLabel, _sfc_main$h as Modal, _sfc_main$3 as MultiCheckboxes, _sfc_main$l as Paginator, _sfc_main$e as Popover, PopoverContent, _sfc_main$e as PopoverPosition, _sfc_main$2 as Radio, _sfc_main$n as Select, _sfc_main$f as SidebarLayout, _sfc_main$c as Slideover, _sfc_main$g as Spinner, _sfc_main$a as StackedLayout, _sfc_main$9 as StaticTable, _sfc_main$8 as Steps, _sfc_main$7 as Table, _sfc_main$6 as Tabs, _sfc_main$1 as TextArea, _sfc_main$5 as Toggle, _sfc_main$b as Tooltip, _sfc_main as YesOrNoRadio, install as default };