@oneclick.dev/cms-kit 0.0.50 → 0.0.51

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/cms-kit.js CHANGED
@@ -51065,6 +51065,8 @@ const _sfc_main$4N = /* @__PURE__ */ defineComponent({
51065
51065
  defaultOpen: { type: Boolean },
51066
51066
  resetSearchTermOnBlur: { type: Boolean },
51067
51067
  resetSearchTermOnSelect: { type: Boolean },
51068
+ openOnFocus: { type: Boolean },
51069
+ openOnClick: { type: Boolean },
51068
51070
  ignoreFilter: { type: Boolean },
51069
51071
  modelValue: {},
51070
51072
  defaultValue: {},
@@ -51381,7 +51383,7 @@ function reactiveOmit(obj, ...keys) {
51381
51383
  }
51382
51384
  const isClient$3 = typeof window !== "undefined" && typeof document !== "undefined";
51383
51385
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
51384
- const isDef$3 = (val) => typeof val !== "undefined";
51386
+ const isDef$2 = (val) => typeof val !== "undefined";
51385
51387
  const toString$1 = Object.prototype.toString;
51386
51388
  const isObject$3 = (val) => toString$1.call(val) === "[object Object]";
51387
51389
  function pxValue(px2) {
@@ -51735,7 +51737,7 @@ function useVModel$2(props, key, emit, options = {}) {
51735
51737
  }
51736
51738
  event = event || `update:${key.toString()}`;
51737
51739
  const cloneFn = (val) => !clone ? val : typeof clone === "function" ? clone(val) : cloneFnJSON$1(val);
51738
- const getValue = () => isDef$3(props[key]) ? cloneFn(props[key]) : defaultValue;
51740
+ const getValue = () => isDef$2(props[key]) ? cloneFn(props[key]) : defaultValue;
51739
51741
  const triggerEmit = (value) => {
51740
51742
  if (shouldEmit) {
51741
51743
  if (shouldEmit(value))
@@ -51786,8 +51788,10 @@ const _sfc_main$4G = /* @__PURE__ */ defineComponent({
51786
51788
  bodyLock: { type: Boolean },
51787
51789
  side: {},
51788
51790
  sideOffset: { default: 4 },
51791
+ sideFlip: { type: Boolean },
51789
51792
  align: { default: "center" },
51790
51793
  alignOffset: {},
51794
+ alignFlip: { type: Boolean },
51791
51795
  avoidCollisions: { type: Boolean },
51792
51796
  collisionBoundary: {},
51793
51797
  collisionPadding: {},
@@ -52671,7 +52675,9 @@ const _sfc_main$4i = /* @__PURE__ */ defineComponent({
52671
52675
  props: {
52672
52676
  forceMount: { type: Boolean },
52673
52677
  loop: { type: Boolean },
52678
+ sideFlip: { type: Boolean },
52674
52679
  alignOffset: {},
52680
+ alignFlip: { type: Boolean },
52675
52681
  avoidCollisions: { type: Boolean },
52676
52682
  collisionBoundary: {},
52677
52683
  collisionPadding: {},
@@ -52929,7 +52935,9 @@ const _sfc_main$49 = /* @__PURE__ */ defineComponent({
52929
52935
  forceMount: { type: Boolean },
52930
52936
  loop: { type: Boolean },
52931
52937
  sideOffset: {},
52938
+ sideFlip: { type: Boolean },
52932
52939
  alignOffset: {},
52940
+ alignFlip: { type: Boolean },
52933
52941
  avoidCollisions: { type: Boolean },
52934
52942
  collisionBoundary: {},
52935
52943
  collisionPadding: {},
@@ -54203,8 +54211,10 @@ const _sfc_main$3W = /* @__PURE__ */ defineComponent({
54203
54211
  loop: { type: Boolean },
54204
54212
  side: {},
54205
54213
  sideOffset: { default: 4 },
54214
+ sideFlip: { type: Boolean },
54206
54215
  align: {},
54207
54216
  alignOffset: {},
54217
+ alignFlip: { type: Boolean },
54208
54218
  avoidCollisions: { type: Boolean },
54209
54219
  collisionBoundary: {},
54210
54220
  collisionPadding: {},
@@ -54451,7 +54461,9 @@ const _sfc_main$3N = /* @__PURE__ */ defineComponent({
54451
54461
  forceMount: { type: Boolean },
54452
54462
  loop: { type: Boolean },
54453
54463
  sideOffset: {},
54464
+ sideFlip: { type: Boolean },
54454
54465
  alignOffset: {},
54466
+ alignFlip: { type: Boolean },
54455
54467
  avoidCollisions: { type: Boolean },
54456
54468
  collisionBoundary: {},
54457
54469
  collisionPadding: {},
@@ -58235,8 +58247,8 @@ function parseNode(node, existingNode, parentNode) {
58235
58247
  x: 0,
58236
58248
  y: 0
58237
58249
  },
58238
- data: isDef$2(node.data) ? node.data : {},
58239
- events: markRaw(isDef$2(node.events) ? node.events : {})
58250
+ data: isDef(node.data) ? node.data : {},
58251
+ events: markRaw(isDef(node.events) ? node.events : {})
58240
58252
  };
58241
58253
  return Object.assign(existingNode ?? initialState, node, { id: node.id.toString(), parentNode });
58242
58254
  }
@@ -58252,8 +58264,8 @@ function parseEdge(edge, existingEdge, defaultEdgeOptions) {
58252
58264
  updatable: edge.updatable ?? (defaultEdgeOptions == null ? void 0 : defaultEdgeOptions.updatable),
58253
58265
  selectable: edge.selectable ?? (defaultEdgeOptions == null ? void 0 : defaultEdgeOptions.selectable),
58254
58266
  focusable: edge.focusable ?? (defaultEdgeOptions == null ? void 0 : defaultEdgeOptions.focusable),
58255
- data: isDef$2(edge.data) ? edge.data : {},
58256
- events: markRaw(isDef$2(edge.events) ? edge.events : {}),
58267
+ data: isDef(edge.data) ? edge.data : {},
58268
+ events: markRaw(isDef(edge.events) ? edge.events : {}),
58257
58269
  label: edge.label ?? "",
58258
58270
  interactionWidth: edge.interactionWidth ?? (defaultEdgeOptions == null ? void 0 : defaultEdgeOptions.interactionWidth),
58259
58271
  ...defaultEdgeOptions ?? {}
@@ -59220,7 +59232,7 @@ function handleNodeClick(node, multiSelectionActive, addSelectedNodes, removeSel
59220
59232
  });
59221
59233
  }
59222
59234
  }
59223
- function isDef$2(val) {
59235
+ function isDef(val) {
59224
59236
  const unrefVal = unref(val);
59225
59237
  return typeof unrefVal !== "undefined";
59226
59238
  }
@@ -60386,7 +60398,7 @@ function useWatchProps(models, props, store2) {
60386
60398
  watch$1(
60387
60399
  () => props.maxZoom,
60388
60400
  () => {
60389
- if (props.maxZoom && isDef$2(props.maxZoom)) {
60401
+ if (props.maxZoom && isDef(props.maxZoom)) {
60390
60402
  store2.setMaxZoom(props.maxZoom);
60391
60403
  }
60392
60404
  },
@@ -60401,7 +60413,7 @@ function useWatchProps(models, props, store2) {
60401
60413
  watch$1(
60402
60414
  () => props.minZoom,
60403
60415
  () => {
60404
- if (props.minZoom && isDef$2(props.minZoom)) {
60416
+ if (props.minZoom && isDef(props.minZoom)) {
60405
60417
  store2.setMinZoom(props.minZoom);
60406
60418
  }
60407
60419
  },
@@ -60414,7 +60426,7 @@ function useWatchProps(models, props, store2) {
60414
60426
  watch$1(
60415
60427
  () => props.translateExtent,
60416
60428
  () => {
60417
- if (props.translateExtent && isDef$2(props.translateExtent)) {
60429
+ if (props.translateExtent && isDef(props.translateExtent)) {
60418
60430
  store2.setTranslateExtent(props.translateExtent);
60419
60431
  }
60420
60432
  },
@@ -60429,7 +60441,7 @@ function useWatchProps(models, props, store2) {
60429
60441
  watch$1(
60430
60442
  () => props.nodeExtent,
60431
60443
  () => {
60432
- if (props.nodeExtent && isDef$2(props.nodeExtent)) {
60444
+ if (props.nodeExtent && isDef(props.nodeExtent)) {
60433
60445
  store2.setNodeExtent(props.nodeExtent);
60434
60446
  }
60435
60447
  },
@@ -60444,7 +60456,7 @@ function useWatchProps(models, props, store2) {
60444
60456
  watch$1(
60445
60457
  () => props.applyDefault,
60446
60458
  () => {
60447
- if (isDef$2(props.applyDefault)) {
60459
+ if (isDef(props.applyDefault)) {
60448
60460
  store2.applyDefault.value = props.applyDefault;
60449
60461
  }
60450
60462
  },
@@ -60468,7 +60480,7 @@ function useWatchProps(models, props, store2) {
60468
60480
  watch$1(
60469
60481
  () => props.autoConnect,
60470
60482
  () => {
60471
- if (isDef$2(props.autoConnect)) {
60483
+ if (isDef(props.autoConnect)) {
60472
60484
  store2.autoConnect.value = props.autoConnect;
60473
60485
  }
60474
60486
  },
@@ -60513,7 +60525,7 @@ function useWatchProps(models, props, store2) {
60513
60525
  watch$1(
60514
60526
  propValue,
60515
60527
  (nextValue) => {
60516
- if (isDef$2(nextValue)) {
60528
+ if (isDef(nextValue)) {
60517
60529
  storeRef.value = nextValue;
60518
60530
  }
60519
60531
  },
@@ -61004,7 +61016,7 @@ function useActions(state, nodeLookup, edgeLookup) {
61004
61016
  function createEdgeRemovalChanges(nodes2) {
61005
61017
  const connectedEdges = getConnectedEdges$1(nodes2);
61006
61018
  for (const edge of connectedEdges) {
61007
- if (isDef$2(edge.deletable) ? edge.deletable : true) {
61019
+ if (isDef(edge.deletable) ? edge.deletable : true) {
61008
61020
  edgeChanges.push(createEdgeRemoveChange(edge.id, edge.source, edge.target, edge.sourceHandle, edge.targetHandle));
61009
61021
  }
61010
61022
  }
@@ -61033,7 +61045,7 @@ function useActions(state, nodeLookup, edgeLookup) {
61033
61045
  if (!currNode) {
61034
61046
  continue;
61035
61047
  }
61036
- if (isDef$2(currNode.deletable) && !currNode.deletable) {
61048
+ if (isDef(currNode.deletable) && !currNode.deletable) {
61037
61049
  continue;
61038
61050
  }
61039
61051
  nodeChanges.push(createNodeRemoveChange(currNode.id));
@@ -61060,7 +61072,7 @@ function useActions(state, nodeLookup, edgeLookup) {
61060
61072
  if (!currEdge) {
61061
61073
  continue;
61062
61074
  }
61063
- if (isDef$2(currEdge.deletable) && !currEdge.deletable) {
61075
+ if (isDef(currEdge.deletable) && !currEdge.deletable) {
61064
61076
  continue;
61065
61077
  }
61066
61078
  changes.push(
@@ -61227,7 +61239,7 @@ function useActions(state, nodeLookup, edgeLookup) {
61227
61239
  "dimensions",
61228
61240
  "hooks"
61229
61241
  ];
61230
- if (isDef$2(opts.defaultEdgeOptions)) {
61242
+ if (isDef(opts.defaultEdgeOptions)) {
61231
61243
  state.defaultEdgeOptions = opts.defaultEdgeOptions;
61232
61244
  }
61233
61245
  const elements = opts.modelValue || opts.nodes || opts.edges ? [] : void 0;
@@ -61244,20 +61256,20 @@ function useActions(state, nodeLookup, edgeLookup) {
61244
61256
  setElements(elements);
61245
61257
  }
61246
61258
  const setSkippedOptions = () => {
61247
- if (isDef$2(opts.maxZoom)) {
61259
+ if (isDef(opts.maxZoom)) {
61248
61260
  setMaxZoom(opts.maxZoom);
61249
61261
  }
61250
- if (isDef$2(opts.minZoom)) {
61262
+ if (isDef(opts.minZoom)) {
61251
61263
  setMinZoom(opts.minZoom);
61252
61264
  }
61253
- if (isDef$2(opts.translateExtent)) {
61265
+ if (isDef(opts.translateExtent)) {
61254
61266
  setTranslateExtent(opts.translateExtent);
61255
61267
  }
61256
61268
  };
61257
61269
  for (const o of Object.keys(opts)) {
61258
61270
  const key = o;
61259
61271
  const option = opts[key];
61260
- if (![...storeOptionsToSkip, ...exclude].includes(key) && isDef$2(option)) {
61272
+ if (![...storeOptionsToSkip, ...exclude].includes(key) && isDef(option)) {
61261
61273
  state[key] = option;
61262
61274
  }
61263
61275
  }
@@ -61477,7 +61489,7 @@ const _sfc_main$f$1 = /* @__PURE__ */ defineComponent({
61477
61489
  if (typeof __props.connectable === "function") {
61478
61490
  return __props.connectable(node, connectedEdges.value);
61479
61491
  }
61480
- return isDef$2(__props.connectable) ? __props.connectable : nodesConnectable.value;
61492
+ return isDef(__props.connectable) ? __props.connectable : nodesConnectable.value;
61481
61493
  });
61482
61494
  onMounted$1(() => {
61483
61495
  var _a2;
@@ -68898,7 +68910,7 @@ const _sfc_main$3E = {
68898
68910
  toolbarPosition: __props.data.toolbarPosition
68899
68911
  }, {
68900
68912
  default: withCtx(() => [
68901
- _cache2[0] || (_cache2[0] = createTextVNode(" START ")),
68913
+ _cache2[0] || (_cache2[0] = createTextVNode(" START ", -1)),
68902
68914
  createVNode(unref(_sfc_main$f$1), {
68903
68915
  type: "source",
68904
68916
  id: "success",
@@ -78536,7 +78548,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78536
78548
  createElementVNode("div", _hoisted_3$t, [
78537
78549
  createVNode(_component_Label, { class: "block text-sm font-medium text-muted-foreground mb-2" }, {
78538
78550
  default: withCtx(() => _cache2[7] || (_cache2[7] = [
78539
- createTextVNode("Filters")
78551
+ createTextVNode("Filters", -1)
78540
78552
  ])),
78541
78553
  _: 1,
78542
78554
  __: [7]
@@ -78600,7 +78612,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78600
78612
  title: "Remove filter"
78601
78613
  }, {
78602
78614
  default: withCtx(() => _cache2[8] || (_cache2[8] = [
78603
- createTextVNode("✕")
78615
+ createTextVNode("✕", -1)
78604
78616
  ])),
78605
78617
  _: 2,
78606
78618
  __: [8]
@@ -78612,7 +78624,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78612
78624
  onClick: addFilter
78613
78625
  }, {
78614
78626
  default: withCtx(() => _cache2[9] || (_cache2[9] = [
78615
- createTextVNode("+ Add Filter")
78627
+ createTextVNode("+ Add Filter", -1)
78616
78628
  ])),
78617
78629
  _: 1,
78618
78630
  __: [9]
@@ -78622,7 +78634,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78622
78634
  createElementVNode("div", null, [
78623
78635
  createVNode(_component_Label, { class: "block text-sm font-medium text-muted-foreground mb-2" }, {
78624
78636
  default: withCtx(() => _cache2[10] || (_cache2[10] = [
78625
- createTextVNode("Sort")
78637
+ createTextVNode("Sort", -1)
78626
78638
  ])),
78627
78639
  _: 1,
78628
78640
  __: [10]
@@ -78656,14 +78668,14 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78656
78668
  default: withCtx(() => [
78657
78669
  createVNode(_component_SelectItem, { value: "asc" }, {
78658
78670
  default: withCtx(() => _cache2[11] || (_cache2[11] = [
78659
- createTextVNode("ASC")
78671
+ createTextVNode("ASC", -1)
78660
78672
  ])),
78661
78673
  _: 1,
78662
78674
  __: [11]
78663
78675
  }),
78664
78676
  createVNode(_component_SelectItem, { value: "desc" }, {
78665
78677
  default: withCtx(() => _cache2[12] || (_cache2[12] = [
78666
- createTextVNode("DESC")
78678
+ createTextVNode("DESC", -1)
78667
78679
  ])),
78668
78680
  _: 1,
78669
78681
  __: [12]
@@ -78683,7 +78695,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78683
78695
  title: "Remove sort"
78684
78696
  }, {
78685
78697
  default: withCtx(() => _cache2[13] || (_cache2[13] = [
78686
- createTextVNode("✕")
78698
+ createTextVNode("✕", -1)
78687
78699
  ])),
78688
78700
  _: 2,
78689
78701
  __: [13]
@@ -78695,7 +78707,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78695
78707
  onClick: addSort
78696
78708
  }, {
78697
78709
  default: withCtx(() => _cache2[14] || (_cache2[14] = [
78698
- createTextVNode("+ Add Sort")
78710
+ createTextVNode("+ Add Sort", -1)
78699
78711
  ])),
78700
78712
  _: 1,
78701
78713
  __: [14]
@@ -78733,7 +78745,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78733
78745
  createElementVNode("div", null, [
78734
78746
  createVNode(_component_Label, { for: "limit" }, {
78735
78747
  default: withCtx(() => _cache2[17] || (_cache2[17] = [
78736
- createTextVNode("Limit")
78748
+ createTextVNode("Limit", -1)
78737
78749
  ])),
78738
78750
  _: 1,
78739
78751
  __: [17]
@@ -78747,7 +78759,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78747
78759
  createElementVNode("div", null, [
78748
78760
  createVNode(_component_Label, { for: "offset" }, {
78749
78761
  default: withCtx(() => _cache2[18] || (_cache2[18] = [
78750
- createTextVNode("Offset")
78762
+ createTextVNode("Offset", -1)
78751
78763
  ])),
78752
78764
  _: 1,
78753
78765
  __: [18]
@@ -78761,7 +78773,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78761
78773
  createElementVNode("div", null, [
78762
78774
  createVNode(_component_Label, { for: "startAt" }, {
78763
78775
  default: withCtx(() => _cache2[19] || (_cache2[19] = [
78764
- createTextVNode("StartAt")
78776
+ createTextVNode("StartAt", -1)
78765
78777
  ])),
78766
78778
  _: 1,
78767
78779
  __: [19]
@@ -78775,7 +78787,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
78775
78787
  createElementVNode("div", null, [
78776
78788
  createVNode(_component_Label, { for: "endAt" }, {
78777
78789
  default: withCtx(() => _cache2[20] || (_cache2[20] = [
78778
- createTextVNode("EndAt")
78790
+ createTextVNode("EndAt", -1)
78779
78791
  ])),
78780
78792
  _: 1,
78781
78793
  __: [20]
@@ -79042,112 +79054,112 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
79042
79054
  default: withCtx(() => [
79043
79055
  createVNode(_component_SelectLabel, null, {
79044
79056
  default: withCtx(() => _cache2[1] || (_cache2[1] = [
79045
- createTextVNode("Reasoning models")
79057
+ createTextVNode("Reasoning models", -1)
79046
79058
  ])),
79047
79059
  _: 1,
79048
79060
  __: [1]
79049
79061
  }),
79050
79062
  createVNode(_component_SelectItem, { value: "o4-mini" }, {
79051
79063
  default: withCtx(() => _cache2[2] || (_cache2[2] = [
79052
- createTextVNode(" o4-mini ")
79064
+ createTextVNode(" o4-mini ", -1)
79053
79065
  ])),
79054
79066
  _: 1,
79055
79067
  __: [2]
79056
79068
  }),
79057
79069
  createVNode(_component_SelectItem, { value: "o3" }, {
79058
79070
  default: withCtx(() => _cache2[3] || (_cache2[3] = [
79059
- createTextVNode(" o3 ")
79071
+ createTextVNode(" o3 ", -1)
79060
79072
  ])),
79061
79073
  _: 1,
79062
79074
  __: [3]
79063
79075
  }),
79064
79076
  createVNode(_component_SelectItem, { value: "o3-pro" }, {
79065
79077
  default: withCtx(() => _cache2[4] || (_cache2[4] = [
79066
- createTextVNode(" o3-pro ")
79078
+ createTextVNode(" o3-pro ", -1)
79067
79079
  ])),
79068
79080
  _: 1,
79069
79081
  __: [4]
79070
79082
  }),
79071
79083
  createVNode(_component_SelectItem, { value: "o3-mini" }, {
79072
79084
  default: withCtx(() => _cache2[5] || (_cache2[5] = [
79073
- createTextVNode(" o3-mini ")
79085
+ createTextVNode(" o3-mini ", -1)
79074
79086
  ])),
79075
79087
  _: 1,
79076
79088
  __: [5]
79077
79089
  }),
79078
79090
  createVNode(_component_SelectItem, { value: "o1" }, {
79079
79091
  default: withCtx(() => _cache2[6] || (_cache2[6] = [
79080
- createTextVNode(" o1 ")
79092
+ createTextVNode(" o1 ", -1)
79081
79093
  ])),
79082
79094
  _: 1,
79083
79095
  __: [6]
79084
79096
  }),
79085
79097
  createVNode(_component_SelectItem, { value: "o1-pro" }, {
79086
79098
  default: withCtx(() => _cache2[7] || (_cache2[7] = [
79087
- createTextVNode(" o1-pro ")
79099
+ createTextVNode(" o1-pro ", -1)
79088
79100
  ])),
79089
79101
  _: 1,
79090
79102
  __: [7]
79091
79103
  }),
79092
79104
  createVNode(_component_SelectLabel, null, {
79093
79105
  default: withCtx(() => _cache2[8] || (_cache2[8] = [
79094
- createTextVNode("Flagship chat models")
79106
+ createTextVNode("Flagship chat models", -1)
79095
79107
  ])),
79096
79108
  _: 1,
79097
79109
  __: [8]
79098
79110
  }),
79099
79111
  createVNode(_component_SelectItem, { value: "gpt-4.1" }, {
79100
79112
  default: withCtx(() => _cache2[9] || (_cache2[9] = [
79101
- createTextVNode(" GPT-4.1 ")
79113
+ createTextVNode(" GPT-4.1 ", -1)
79102
79114
  ])),
79103
79115
  _: 1,
79104
79116
  __: [9]
79105
79117
  }),
79106
79118
  createVNode(_component_SelectItem, { value: "gpt-4o" }, {
79107
79119
  default: withCtx(() => _cache2[10] || (_cache2[10] = [
79108
- createTextVNode(" GPT-4o ")
79120
+ createTextVNode(" GPT-4o ", -1)
79109
79121
  ])),
79110
79122
  _: 1,
79111
79123
  __: [10]
79112
79124
  }),
79113
79125
  createVNode(_component_SelectLabel, null, {
79114
79126
  default: withCtx(() => _cache2[11] || (_cache2[11] = [
79115
- createTextVNode("Cost-optimized models")
79127
+ createTextVNode("Cost-optimized models", -1)
79116
79128
  ])),
79117
79129
  _: 1,
79118
79130
  __: [11]
79119
79131
  }),
79120
79132
  createVNode(_component_SelectItem, { value: "o4-mini" }, {
79121
79133
  default: withCtx(() => _cache2[12] || (_cache2[12] = [
79122
- createTextVNode(" o4-mini ")
79134
+ createTextVNode(" o4-mini ", -1)
79123
79135
  ])),
79124
79136
  _: 1,
79125
79137
  __: [12]
79126
79138
  }),
79127
79139
  createVNode(_component_SelectItem, { value: "gpt-4.1-mini" }, {
79128
79140
  default: withCtx(() => _cache2[13] || (_cache2[13] = [
79129
- createTextVNode(" GPT-4.1 mini ")
79141
+ createTextVNode(" GPT-4.1 mini ", -1)
79130
79142
  ])),
79131
79143
  _: 1,
79132
79144
  __: [13]
79133
79145
  }),
79134
79146
  createVNode(_component_SelectItem, { value: "gpt-4.1-nano" }, {
79135
79147
  default: withCtx(() => _cache2[14] || (_cache2[14] = [
79136
- createTextVNode(" GPT-4.1 nano ")
79148
+ createTextVNode(" GPT-4.1 nano ", -1)
79137
79149
  ])),
79138
79150
  _: 1,
79139
79151
  __: [14]
79140
79152
  }),
79141
79153
  createVNode(_component_SelectItem, { value: "o3-mini" }, {
79142
79154
  default: withCtx(() => _cache2[15] || (_cache2[15] = [
79143
- createTextVNode(" o3-mini ")
79155
+ createTextVNode(" o3-mini ", -1)
79144
79156
  ])),
79145
79157
  _: 1,
79146
79158
  __: [15]
79147
79159
  }),
79148
79160
  createVNode(_component_SelectItem, { value: "gpt-4o-mini" }, {
79149
79161
  default: withCtx(() => _cache2[16] || (_cache2[16] = [
79150
- createTextVNode(" GPT-4o mini ")
79162
+ createTextVNode(" GPT-4o mini ", -1)
79151
79163
  ])),
79152
79164
  _: 1,
79153
79165
  __: [16]
@@ -79795,7 +79807,7 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
79795
79807
  ]),
79796
79808
  createVNode(_component_Button, { onClick: addNewUpdateAction }, {
79797
79809
  default: withCtx(() => _cache2[1] || (_cache2[1] = [
79798
- createTextVNode("Update another variable")
79810
+ createTextVNode("Update another variable", -1)
79799
79811
  ])),
79800
79812
  _: 1,
79801
79813
  __: [1]
@@ -80003,7 +80015,7 @@ const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
80003
80015
  createElementVNode("div", _hoisted_3$m, [
80004
80016
  createVNode(_component_Label, { class: "text-sm font-semibold mb-2" }, {
80005
80017
  default: withCtx(() => _cache2[1] || (_cache2[1] = [
80006
- createTextVNode("Module")
80018
+ createTextVNode("Module", -1)
80007
80019
  ])),
80008
80020
  _: 1,
80009
80021
  __: [1]
@@ -80047,7 +80059,7 @@ const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
80047
80059
  createElementVNode("div", _hoisted_4$e, [
80048
80060
  createVNode(_component_Label, { class: "text-sm font-semibold mb-2" }, {
80049
80061
  default: withCtx(() => _cache2[2] || (_cache2[2] = [
80050
- createTextVNode("Data")
80062
+ createTextVNode("Data", -1)
80051
80063
  ])),
80052
80064
  _: 1,
80053
80065
  __: [2]
@@ -80086,7 +80098,7 @@ const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
80086
80098
  }, {
80087
80099
  default: withCtx(() => [
80088
80100
  createVNode(unref(Plus), { class: "size-4" }),
80089
- _cache2[3] || (_cache2[3] = createTextVNode(" Add Key-Value Pair "))
80101
+ _cache2[3] || (_cache2[3] = createTextVNode(" Add Key-Value Pair ", -1))
80090
80102
  ]),
80091
80103
  _: 1,
80092
80104
  __: [3]
@@ -80182,35 +80194,35 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
80182
80194
  default: withCtx(() => [
80183
80195
  createVNode(_component_SelectItem, { value: "GET" }, {
80184
80196
  default: withCtx(() => _cache2[7] || (_cache2[7] = [
80185
- createTextVNode("GET")
80197
+ createTextVNode("GET", -1)
80186
80198
  ])),
80187
80199
  _: 1,
80188
80200
  __: [7]
80189
80201
  }),
80190
80202
  createVNode(_component_SelectItem, { value: "POST" }, {
80191
80203
  default: withCtx(() => _cache2[8] || (_cache2[8] = [
80192
- createTextVNode("POST")
80204
+ createTextVNode("POST", -1)
80193
80205
  ])),
80194
80206
  _: 1,
80195
80207
  __: [8]
80196
80208
  }),
80197
80209
  createVNode(_component_SelectItem, { value: "PUT" }, {
80198
80210
  default: withCtx(() => _cache2[9] || (_cache2[9] = [
80199
- createTextVNode("PUT")
80211
+ createTextVNode("PUT", -1)
80200
80212
  ])),
80201
80213
  _: 1,
80202
80214
  __: [9]
80203
80215
  }),
80204
80216
  createVNode(_component_SelectItem, { value: "PATCH" }, {
80205
80217
  default: withCtx(() => _cache2[10] || (_cache2[10] = [
80206
- createTextVNode("PATCH")
80218
+ createTextVNode("PATCH", -1)
80207
80219
  ])),
80208
80220
  _: 1,
80209
80221
  __: [10]
80210
80222
  }),
80211
80223
  createVNode(_component_SelectItem, { value: "DELETE" }, {
80212
80224
  default: withCtx(() => _cache2[11] || (_cache2[11] = [
80213
- createTextVNode("DELETE")
80225
+ createTextVNode("DELETE", -1)
80214
80226
  ])),
80215
80227
  _: 1,
80216
80228
  __: [11]
@@ -80228,7 +80240,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
80228
80240
  createElementVNode("div", _hoisted_4$d, [
80229
80241
  createVNode(_component_Label, { class: "text-sm font-semibold mb-2" }, {
80230
80242
  default: withCtx(() => _cache2[13] || (_cache2[13] = [
80231
- createTextVNode("URL parameters")
80243
+ createTextVNode("URL parameters", -1)
80232
80244
  ])),
80233
80245
  _: 1,
80234
80246
  __: [13]
@@ -80267,7 +80279,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
80267
80279
  }, {
80268
80280
  default: withCtx(() => [
80269
80281
  createVNode(unref(Plus), { class: "size-4" }),
80270
- _cache2[14] || (_cache2[14] = createTextVNode(" Add Key-Value Pair "))
80282
+ _cache2[14] || (_cache2[14] = createTextVNode(" Add Key-Value Pair ", -1))
80271
80283
  ]),
80272
80284
  _: 1,
80273
80285
  __: [14]
@@ -80277,7 +80289,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
80277
80289
  createElementVNode("div", _hoisted_7$8, [
80278
80290
  createVNode(_component_Label, { class: "text-sm font-semibold mb-2" }, {
80279
80291
  default: withCtx(() => _cache2[15] || (_cache2[15] = [
80280
- createTextVNode("Headers")
80292
+ createTextVNode("Headers", -1)
80281
80293
  ])),
80282
80294
  _: 1,
80283
80295
  __: [15]
@@ -80316,7 +80328,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
80316
80328
  }, {
80317
80329
  default: withCtx(() => [
80318
80330
  createVNode(unref(Plus), { class: "size-4" }),
80319
- _cache2[16] || (_cache2[16] = createTextVNode(" Add Key-Value Pair "))
80331
+ _cache2[16] || (_cache2[16] = createTextVNode(" Add Key-Value Pair ", -1))
80320
80332
  ]),
80321
80333
  _: 1,
80322
80334
  __: [16]
@@ -80326,7 +80338,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
80326
80338
  ["POST", "PUT", "PATCH"].includes(node.value.data.method) ? (openBlock(), createElementBlock("div", _hoisted_10$2, [
80327
80339
  createVNode(_component_Label, { class: "text-sm font-semibold mb-2" }, {
80328
80340
  default: withCtx(() => _cache2[17] || (_cache2[17] = [
80329
- createTextVNode("Body")
80341
+ createTextVNode("Body", -1)
80330
80342
  ])),
80331
80343
  _: 1,
80332
80344
  __: [17]
@@ -80365,7 +80377,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
80365
80377
  }, {
80366
80378
  default: withCtx(() => [
80367
80379
  createVNode(unref(Plus), { class: "size-4" }),
80368
- _cache2[18] || (_cache2[18] = createTextVNode(" Add Key-Value Pair "))
80380
+ _cache2[18] || (_cache2[18] = createTextVNode(" Add Key-Value Pair ", -1))
80369
80381
  ]),
80370
80382
  _: 1,
80371
80383
  __: [18]
@@ -80375,7 +80387,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
80375
80387
  createElementVNode("div", _hoisted_13$1, [
80376
80388
  createVNode(_component_Label, { class: "text-sm font-semibold mb-2" }, {
80377
80389
  default: withCtx(() => _cache2[19] || (_cache2[19] = [
80378
- createTextVNode("Cookies")
80390
+ createTextVNode("Cookies", -1)
80379
80391
  ])),
80380
80392
  _: 1,
80381
80393
  __: [19]
@@ -80414,7 +80426,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
80414
80426
  }, {
80415
80427
  default: withCtx(() => [
80416
80428
  createVNode(unref(Plus), { class: "size-4" }),
80417
- _cache2[20] || (_cache2[20] = createTextVNode(" Add Key-Value Pair "))
80429
+ _cache2[20] || (_cache2[20] = createTextVNode(" Add Key-Value Pair ", -1))
80418
80430
  ]),
80419
80431
  _: 1,
80420
80432
  __: [20]
@@ -80663,7 +80675,7 @@ const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
80663
80675
  onClick: _cache2[12] || (_cache2[12] = ($event) => emit("remove"))
80664
80676
  }, {
80665
80677
  default: withCtx(() => _cache2[15] || (_cache2[15] = [
80666
- createTextVNode("Delete node")
80678
+ createTextVNode("Delete node", -1)
80667
80679
  ])),
80668
80680
  _: 1,
80669
80681
  __: [15]
@@ -81093,14 +81105,14 @@ const _sfc_main$2U = /* @__PURE__ */ defineComponent({
81093
81105
  onClick: cancel
81094
81106
  }, {
81095
81107
  default: withCtx(() => _cache2[0] || (_cache2[0] = [
81096
- createTextVNode("Cancel")
81108
+ createTextVNode("Cancel", -1)
81097
81109
  ])),
81098
81110
  _: 1,
81099
81111
  __: [0]
81100
81112
  }),
81101
81113
  createVNode(_component_Button, { onClick: saveForm }, {
81102
81114
  default: withCtx(() => _cache2[1] || (_cache2[1] = [
81103
- createTextVNode("Save")
81115
+ createTextVNode("Save", -1)
81104
81116
  ])),
81105
81117
  _: 1,
81106
81118
  __: [1]
@@ -81284,42 +81296,42 @@ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
81284
81296
  default: withCtx(() => [
81285
81297
  createVNode(_component_SelectItem, { value: "default" }, {
81286
81298
  default: withCtx(() => _cache2[3] || (_cache2[3] = [
81287
- createTextVNode("Primary")
81299
+ createTextVNode("Primary", -1)
81288
81300
  ])),
81289
81301
  _: 1,
81290
81302
  __: [3]
81291
81303
  }),
81292
81304
  createVNode(_component_SelectItem, { value: "secondary" }, {
81293
81305
  default: withCtx(() => _cache2[4] || (_cache2[4] = [
81294
- createTextVNode("Secondary")
81306
+ createTextVNode("Secondary", -1)
81295
81307
  ])),
81296
81308
  _: 1,
81297
81309
  __: [4]
81298
81310
  }),
81299
81311
  createVNode(_component_SelectItem, { value: "destructive" }, {
81300
81312
  default: withCtx(() => _cache2[5] || (_cache2[5] = [
81301
- createTextVNode("Destructive")
81313
+ createTextVNode("Destructive", -1)
81302
81314
  ])),
81303
81315
  _: 1,
81304
81316
  __: [5]
81305
81317
  }),
81306
81318
  createVNode(_component_SelectItem, { value: "outline" }, {
81307
81319
  default: withCtx(() => _cache2[6] || (_cache2[6] = [
81308
- createTextVNode("Outline")
81320
+ createTextVNode("Outline", -1)
81309
81321
  ])),
81310
81322
  _: 1,
81311
81323
  __: [6]
81312
81324
  }),
81313
81325
  createVNode(_component_SelectItem, { value: "ghost" }, {
81314
81326
  default: withCtx(() => _cache2[7] || (_cache2[7] = [
81315
- createTextVNode("Ghost")
81327
+ createTextVNode("Ghost", -1)
81316
81328
  ])),
81317
81329
  _: 1,
81318
81330
  __: [7]
81319
81331
  }),
81320
81332
  createVNode(_component_SelectItem, { value: "link" }, {
81321
81333
  default: withCtx(() => _cache2[8] || (_cache2[8] = [
81322
- createTextVNode("Link")
81334
+ createTextVNode("Link", -1)
81323
81335
  ])),
81324
81336
  _: 1,
81325
81337
  __: [8]
@@ -81503,7 +81515,7 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
81503
81515
  createElementVNode("div", _hoisted_3$i, [
81504
81516
  createVNode(_component_Label, { for: "option.id + '_label'" }, {
81505
81517
  default: withCtx(() => _cache2[4] || (_cache2[4] = [
81506
- createTextVNode("Label")
81518
+ createTextVNode("Label", -1)
81507
81519
  ])),
81508
81520
  _: 1,
81509
81521
  __: [4]
@@ -81517,7 +81529,7 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
81517
81529
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue"]),
81518
81530
  createVNode(_component_Label, { for: "option.id + '_value'" }, {
81519
81531
  default: withCtx(() => _cache2[5] || (_cache2[5] = [
81520
- createTextVNode("Value")
81532
+ createTextVNode("Value", -1)
81521
81533
  ])),
81522
81534
  _: 1,
81523
81535
  __: [5]
@@ -81535,7 +81547,7 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
81535
81547
  onClick: ($event) => removeOption(option.id)
81536
81548
  }, {
81537
81549
  default: withCtx(() => _cache2[6] || (_cache2[6] = [
81538
- createTextVNode("Remove")
81550
+ createTextVNode("Remove", -1)
81539
81551
  ])),
81540
81552
  _: 2,
81541
81553
  __: [6]
@@ -81627,14 +81639,14 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
81627
81639
  default: withCtx(() => [
81628
81640
  createVNode(_component_SelectItem, { value: "vertical" }, {
81629
81641
  default: withCtx(() => _cache2[3] || (_cache2[3] = [
81630
- createTextVNode("Vertical")
81642
+ createTextVNode("Vertical", -1)
81631
81643
  ])),
81632
81644
  _: 1,
81633
81645
  __: [3]
81634
81646
  }),
81635
81647
  createVNode(_component_SelectItem, { value: "horizontal" }, {
81636
81648
  default: withCtx(() => _cache2[4] || (_cache2[4] = [
81637
- createTextVNode("Horizontal")
81649
+ createTextVNode("Horizontal", -1)
81638
81650
  ])),
81639
81651
  _: 1,
81640
81652
  __: [4]
@@ -81676,7 +81688,7 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
81676
81688
  createElementVNode("div", _hoisted_3$h, [
81677
81689
  createVNode(_component_Label, { for: "option.id + '_label'" }, {
81678
81690
  default: withCtx(() => _cache2[6] || (_cache2[6] = [
81679
- createTextVNode("Label")
81691
+ createTextVNode("Label", -1)
81680
81692
  ])),
81681
81693
  _: 1,
81682
81694
  __: [6]
@@ -81690,7 +81702,7 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
81690
81702
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue"]),
81691
81703
  createVNode(_component_Label, { for: "option.id + '_value'" }, {
81692
81704
  default: withCtx(() => _cache2[7] || (_cache2[7] = [
81693
- createTextVNode("Value")
81705
+ createTextVNode("Value", -1)
81694
81706
  ])),
81695
81707
  _: 1,
81696
81708
  __: [7]
@@ -81708,7 +81720,7 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
81708
81720
  onClick: ($event) => removeOption(option.id)
81709
81721
  }, {
81710
81722
  default: withCtx(() => _cache2[8] || (_cache2[8] = [
81711
- createTextVNode("Remove")
81723
+ createTextVNode("Remove", -1)
81712
81724
  ])),
81713
81725
  _: 2,
81714
81726
  __: [8]
@@ -111886,7 +111898,7 @@ const _sfc_main$2v = /* @__PURE__ */ defineComponent({
111886
111898
  return openBlock(), createElementBlock("div", _hoisted_1$C, [
111887
111899
  createElementVNode("div", _hoisted_2$m, [
111888
111900
  uniqueDevices.value.length > 1 ? (openBlock(), createElementBlock("label", _hoisted_3$f, [
111889
- _cache2[1] || (_cache2[1] = createTextVNode(" Camera: ")),
111901
+ _cache2[1] || (_cache2[1] = createTextVNode(" Camera: ", -1)),
111890
111902
  withDirectives(createElementVNode("select", {
111891
111903
  "onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => selectedDeviceId.value = $event),
111892
111904
  class: "border rounded px-2 py-1 ml-2"
@@ -112452,7 +112464,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
112452
112464
  ], -1)),
112453
112465
  createVNode(_component_Button, { onClick: showIntegrationActionBuilder }, {
112454
112466
  default: withCtx(() => _cache2[0] || (_cache2[0] = [
112455
- createTextVNode("+ Integration action")
112467
+ createTextVNode("+ Integration action", -1)
112456
112468
  ])),
112457
112469
  _: 1,
112458
112470
  __: [0]
@@ -112496,14 +112508,14 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
112496
112508
  onClick: ($event) => editIntegrationActionName(action)
112497
112509
  }, {
112498
112510
  default: withCtx(() => _cache2[1] || (_cache2[1] = [
112499
- createTextVNode(" Rename Action ")
112511
+ createTextVNode(" Rename Action ", -1)
112500
112512
  ])),
112501
112513
  _: 2,
112502
112514
  __: [1]
112503
112515
  }, 1032, ["onClick"]),
112504
112516
  createVNode(_component_ContextMenuItem, { inset: "" }, {
112505
112517
  default: withCtx(() => _cache2[2] || (_cache2[2] = [
112506
- createTextVNode(" View Data ")
112518
+ createTextVNode(" View Data ", -1)
112507
112519
  ])),
112508
112520
  _: 1,
112509
112521
  __: [2]
@@ -112513,7 +112525,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
112513
112525
  onClick: ($event) => executeAction(action)
112514
112526
  }, {
112515
112527
  default: withCtx(() => _cache2[3] || (_cache2[3] = [
112516
- createTextVNode(" Execute Action ")
112528
+ createTextVNode(" Execute Action ", -1)
112517
112529
  ])),
112518
112530
  _: 2,
112519
112531
  __: [3]
@@ -112524,7 +112536,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
112524
112536
  onClick: ($event) => removeAction(action)
112525
112537
  }, {
112526
112538
  default: withCtx(() => _cache2[4] || (_cache2[4] = [
112527
- createTextVNode(" Remove Action ")
112539
+ createTextVNode(" Remove Action ", -1)
112528
112540
  ])),
112529
112541
  _: 2,
112530
112542
  __: [4]
@@ -112535,7 +112547,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
112535
112547
  "onUpdate:modelValue": ($event) => action.fireOnStart = $event
112536
112548
  }, {
112537
112549
  default: withCtx(() => _cache2[5] || (_cache2[5] = [
112538
- createTextVNode(" Fire on start ")
112550
+ createTextVNode(" Fire on start ", -1)
112539
112551
  ])),
112540
112552
  _: 2,
112541
112553
  __: [5]
@@ -112604,7 +112616,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
112604
112616
  size: "sm"
112605
112617
  }, {
112606
112618
  default: withCtx(() => _cache2[0] || (_cache2[0] = [
112607
- createTextVNode(" Add new variable ")
112619
+ createTextVNode(" Add new variable ", -1)
112608
112620
  ])),
112609
112621
  _: 1,
112610
112622
  __: [0]
@@ -112717,7 +112729,7 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
112717
112729
  onClick: addTransformer
112718
112730
  }, {
112719
112731
  default: withCtx(() => _cache2[0] || (_cache2[0] = [
112720
- createTextVNode(" Add new transformer ")
112732
+ createTextVNode(" Add new transformer ", -1)
112721
112733
  ])),
112722
112734
  _: 1,
112723
112735
  __: [0]
@@ -112974,7 +112986,7 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
112974
112986
  class: "mt-4"
112975
112987
  }, {
112976
112988
  default: withCtx(() => _cache2[2] || (_cache2[2] = [
112977
- createTextVNode("Remove Element")
112989
+ createTextVNode("Remove Element", -1)
112978
112990
  ])),
112979
112991
  _: 1,
112980
112992
  __: [2]
@@ -118802,14 +118814,14 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
118802
118814
  onClick: cancel
118803
118815
  }, {
118804
118816
  default: withCtx(() => _cache2[0] || (_cache2[0] = [
118805
- createTextVNode("Cancel")
118817
+ createTextVNode("Cancel", -1)
118806
118818
  ])),
118807
118819
  _: 1,
118808
118820
  __: [0]
118809
118821
  }),
118810
118822
  createVNode(_component_Button, { onClick: save }, {
118811
118823
  default: withCtx(() => _cache2[1] || (_cache2[1] = [
118812
- createTextVNode("Save")
118824
+ createTextVNode("Save", -1)
118813
118825
  ])),
118814
118826
  _: 1,
118815
118827
  __: [1]
@@ -122340,7 +122352,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
122340
122352
  "onUpdate:modelValue": _cache2[0] || (_cache2[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
122341
122353
  "data-slot": "input",
122342
122354
  class: normalizeClass(unref(cn$2)(
122343
- "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-background px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
122355
+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border bg-background dark:bg-input/30 px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
122344
122356
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
122345
122357
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
122346
122358
  props.class
@@ -122494,14 +122506,14 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
122494
122506
  default: withCtx(() => [
122495
122507
  createVNode(_component_SheetTitle, null, {
122496
122508
  default: withCtx(() => _cache2[5] || (_cache2[5] = [
122497
- createTextVNode("New integration action")
122509
+ createTextVNode("New integration action", -1)
122498
122510
  ])),
122499
122511
  _: 1,
122500
122512
  __: [5]
122501
122513
  }),
122502
122514
  createVNode(_component_SheetDescription, null, {
122503
122515
  default: withCtx(() => _cache2[6] || (_cache2[6] = [
122504
- createTextVNode(" Make external calls to your integrations or APIs. ")
122516
+ createTextVNode(" Make external calls to your integrations or APIs. ", -1)
122505
122517
  ])),
122506
122518
  _: 1,
122507
122519
  __: [6]
@@ -122615,14 +122627,14 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
122615
122627
  onClick: cancel
122616
122628
  }, {
122617
122629
  default: withCtx(() => _cache2[11] || (_cache2[11] = [
122618
- createTextVNode("Cancel")
122630
+ createTextVNode("Cancel", -1)
122619
122631
  ])),
122620
122632
  _: 1,
122621
122633
  __: [11]
122622
122634
  }),
122623
122635
  createVNode(_component_Button, { onClick: createIntegrationAction }, {
122624
122636
  default: withCtx(() => _cache2[12] || (_cache2[12] = [
122625
- createTextVNode("Create")
122637
+ createTextVNode("Create", -1)
122626
122638
  ])),
122627
122639
  _: 1,
122628
122640
  __: [12]
@@ -122958,7 +122970,7 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
122958
122970
  createVNode(_component_SelectTrigger, { class: "w-[100px]" }, {
122959
122971
  default: withCtx(() => [
122960
122972
  createVNode(unref(ArrowUpDown), { class: "size-4" }),
122961
- _cache2[5] || (_cache2[5] = createTextVNode(" Sort "))
122973
+ _cache2[5] || (_cache2[5] = createTextVNode(" Sort ", -1))
122962
122974
  ]),
122963
122975
  _: 1,
122964
122976
  __: [5]
@@ -122969,42 +122981,42 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
122969
122981
  default: withCtx(() => [
122970
122982
  createVNode(_component_SelectItem, { value: "name" }, {
122971
122983
  default: withCtx(() => _cache2[6] || (_cache2[6] = [
122972
- createTextVNode(" Name (A-Z) ")
122984
+ createTextVNode(" Name (A-Z) ", -1)
122973
122985
  ])),
122974
122986
  _: 1,
122975
122987
  __: [6]
122976
122988
  }),
122977
122989
  createVNode(_component_SelectItem, { value: "name-desc" }, {
122978
122990
  default: withCtx(() => _cache2[7] || (_cache2[7] = [
122979
- createTextVNode(" Name (Z-A) ")
122991
+ createTextVNode(" Name (Z-A) ", -1)
122980
122992
  ])),
122981
122993
  _: 1,
122982
122994
  __: [7]
122983
122995
  }),
122984
122996
  createVNode(_component_SelectItem, { value: "size" }, {
122985
122997
  default: withCtx(() => _cache2[8] || (_cache2[8] = [
122986
- createTextVNode(" Size (smallest first) ")
122998
+ createTextVNode(" Size (smallest first) ", -1)
122987
122999
  ])),
122988
123000
  _: 1,
122989
123001
  __: [8]
122990
123002
  }),
122991
123003
  createVNode(_component_SelectItem, { value: "size-desc" }, {
122992
123004
  default: withCtx(() => _cache2[9] || (_cache2[9] = [
122993
- createTextVNode(" Size (largest first) ")
123005
+ createTextVNode(" Size (largest first) ", -1)
122994
123006
  ])),
122995
123007
  _: 1,
122996
123008
  __: [9]
122997
123009
  }),
122998
123010
  createVNode(_component_SelectItem, { value: "date" }, {
122999
123011
  default: withCtx(() => _cache2[10] || (_cache2[10] = [
123000
- createTextVNode(" Date (oldest first) ")
123012
+ createTextVNode(" Date (oldest first) ", -1)
123001
123013
  ])),
123002
123014
  _: 1,
123003
123015
  __: [10]
123004
123016
  }),
123005
123017
  createVNode(_component_SelectItem, { value: "date-desc" }, {
123006
123018
  default: withCtx(() => _cache2[11] || (_cache2[11] = [
123007
- createTextVNode(" Date (newest first) ")
123019
+ createTextVNode(" Date (newest first) ", -1)
123008
123020
  ])),
123009
123021
  _: 1,
123010
123022
  __: [11]
@@ -123170,7 +123182,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
123170
123182
  }, {
123171
123183
  default: withCtx(() => [
123172
123184
  createVNode(unref(Image), { class: "size-4" }),
123173
- _cache2[4] || (_cache2[4] = createTextVNode(" Edit image "))
123185
+ _cache2[4] || (_cache2[4] = createTextVNode(" Edit image ", -1))
123174
123186
  ]),
123175
123187
  _: 1,
123176
123188
  __: [4]
@@ -123179,7 +123191,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
123179
123191
  createVNode(_component_ContextMenuItem, null, {
123180
123192
  default: withCtx(() => [
123181
123193
  createVNode(unref(Copy), { class: "size-4" }),
123182
- _cache2[5] || (_cache2[5] = createTextVNode(" Duplicate... "))
123194
+ _cache2[5] || (_cache2[5] = createTextVNode(" Duplicate... ", -1))
123183
123195
  ]),
123184
123196
  _: 1,
123185
123197
  __: [5]
@@ -123187,7 +123199,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
123187
123199
  createVNode(_component_ContextMenuItem, null, {
123188
123200
  default: withCtx(() => [
123189
123201
  createVNode(unref(FolderInput), { class: "size-4" }),
123190
- _cache2[6] || (_cache2[6] = createTextVNode(" Move... "))
123202
+ _cache2[6] || (_cache2[6] = createTextVNode(" Move... ", -1))
123191
123203
  ]),
123192
123204
  _: 1,
123193
123205
  __: [6]
@@ -123195,7 +123207,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
123195
123207
  createVNode(_component_ContextMenuItem, null, {
123196
123208
  default: withCtx(() => [
123197
123209
  createVNode(unref(Pencil), { class: "size-4" }),
123198
- _cache2[7] || (_cache2[7] = createTextVNode(" Rename... "))
123210
+ _cache2[7] || (_cache2[7] = createTextVNode(" Rename... ", -1))
123199
123211
  ]),
123200
123212
  _: 1,
123201
123213
  __: [7]
@@ -123203,7 +123215,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
123203
123215
  createVNode(_component_ContextMenuItem, { variant: "destructive" }, {
123204
123216
  default: withCtx(() => [
123205
123217
  createVNode(unref(Trash2), { class: "size-4" }),
123206
- _cache2[8] || (_cache2[8] = createTextVNode(" Delete "))
123218
+ _cache2[8] || (_cache2[8] = createTextVNode(" Delete ", -1))
123207
123219
  ]),
123208
123220
  _: 1,
123209
123221
  __: [8]
@@ -123240,9 +123252,13 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
123240
123252
  },
123241
123253
  maxFiles: {
123242
123254
  type: Number
123255
+ },
123256
+ initialValue: {
123257
+ type: Array,
123258
+ default: () => []
123243
123259
  }
123244
123260
  },
123245
- emits: ["submit"],
123261
+ emits: ["submit", "select-image"],
123246
123262
  setup(__props, { emit: __emit }) {
123247
123263
  const route = useRoute();
123248
123264
  const emit = __emit;
@@ -123297,6 +123313,10 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
123297
123313
  return 0;
123298
123314
  });
123299
123315
  });
123316
+ watch$1(() => dialogOpen.value, () => {
123317
+ console.log(props.initialValue);
123318
+ selectedFiles.value = props.initialValue;
123319
+ });
123300
123320
  watch$1(() => activeSourceId.value, async () => {
123301
123321
  activeSource.value = await getMediaSource(project.value, activeSourceId.value);
123302
123322
  setEffectiveBasePath();
@@ -123333,12 +123353,15 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
123333
123353
  currentPath.value = path;
123334
123354
  }
123335
123355
  const res = await getStorageContent(activeSource.value.id, currentPath.value);
123336
- folders.value = (res.folders || []).filter((folder) => {
123356
+ folders.value = (res.folders || []).map((folder) => {
123337
123357
  const folderPath = folder.path;
123338
123358
  const parentPath = currentPath.value ? currentPath.value : "";
123339
123359
  const relativePath = folderPath.startsWith(parentPath) ? folderPath.substring(parentPath.length) : folderPath;
123340
123360
  const pathParts = relativePath.split("/").filter(Boolean);
123341
- return pathParts.length === 1;
123361
+ return {
123362
+ name: pathParts[0],
123363
+ path: parentPath + pathParts[0] + "/"
123364
+ };
123342
123365
  });
123343
123366
  files.value = (res.files || []).filter((file) => {
123344
123367
  const filePath = file.name;
@@ -123475,7 +123498,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
123475
123498
  variant: "outline"
123476
123499
  }, {
123477
123500
  default: withCtx(() => _cache2[4] || (_cache2[4] = [
123478
- createTextVNode("Retry")
123501
+ createTextVNode("Retry", -1)
123479
123502
  ])),
123480
123503
  _: 1,
123481
123504
  __: [4]
@@ -123494,10 +123517,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
123494
123517
  return openBlock(), createElementBlock("div", {
123495
123518
  key: folder.path,
123496
123519
  onClick: ($event) => navigateToFolder(folder.path),
123497
- class: normalizeClass(unref(cn$2)(
123498
- "cursor-pointer border rounded-md p-2 hover:bg-muted dark:hover:bg-muted/30 transition-colors flex items-center gap-2",
123499
- selectedFiles.value
123500
- ))
123520
+ class: normalizeClass(unref(cn$2)("cursor-pointer border rounded-md p-2 hover:bg-muted dark:hover:bg-muted/30 transition-colors flex items-center gap-2", selectedFiles.value))
123501
123521
  }, [
123502
123522
  createVNode(unref(Folder), { class: "size-5 text-blue-600" }),
123503
123523
  createElementVNode("span", _hoisted_8$2, toDisplayString(folder.name), 1)
@@ -123523,13 +123543,11 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
123523
123543
  onClick: onSubmit,
123524
123544
  disabled: ((_a2 = selectedFiles.value) == null ? void 0 : _a2.length) === 0
123525
123545
  }, {
123526
- default: withCtx(() => {
123527
- var _a3, _b, _c;
123528
- return [
123529
- createTextVNode(toDisplayString(((_a3 = selectedFiles.value) == null ? void 0 : _a3.length) > 0 ? `Add ${(_b = selectedFiles.value) == null ? void 0 : _b.length} ${((_c = selectedFiles.value) == null ? void 0 : _c.length) === 1 ? "file" : "files"}` : "0 files selected"), 1)
123530
- ];
123531
- }),
123532
- _: 1
123546
+ default: withCtx(() => _cache2[5] || (_cache2[5] = [
123547
+ createTextVNode(" Save selection ", -1)
123548
+ ])),
123549
+ _: 1,
123550
+ __: [5]
123533
123551
  }, 8, ["disabled"])
123534
123552
  ];
123535
123553
  }),
@@ -123550,7 +123568,7 @@ const _hoisted_1$g = {
123550
123568
  };
123551
123569
  const _hoisted_2$5 = { class: "text-muted-foreground text-sm ml-1" };
123552
123570
  const _hoisted_3$4 = { class: "relative" };
123553
- const _hoisted_4$2 = { class: "background-grid absolute w-full grid grid-cols-6 gap-2 top-4" };
123571
+ const _hoisted_4$2 = { class: "background-grid absolute w-full grid grid-cols-6 gap-2 pointer-events-none" };
123554
123572
  const _hoisted_5$2 = ["data-index"];
123555
123573
  const _hoisted_6$2 = {
123556
123574
  key: 0,
@@ -123569,6 +123587,7 @@ const _hoisted_12$1 = ["onClick"];
123569
123587
  const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123570
123588
  __name: "MediaPickerItems",
123571
123589
  setup(__props) {
123590
+ gsap.registerPlugin(Draggable);
123572
123591
  const sources = inject$1("sources");
123573
123592
  const items = inject$1("media-items", { value: [] });
123574
123593
  const updateItems = inject$1("update-media-items", () => {
@@ -123620,6 +123639,8 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123620
123639
  let rafId = null;
123621
123640
  let lastDragEvent = null;
123622
123641
  let currentDragTarget = null;
123642
+ let startLarge = false;
123643
+ let offsetLarge = { x: 0, y: 0 };
123623
123644
  const onDragHandler = () => {
123624
123645
  if (!lastDragEvent || !currentDragTarget) return;
123625
123646
  const e = lastDragEvent;
@@ -123635,13 +123656,19 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123635
123656
  const itemRect = item.getBoundingClientRect();
123636
123657
  if (mouseX >= itemRect.left && mouseX <= itemRect.right && mouseY >= itemRect.top && mouseY <= itemRect.bottom) {
123637
123658
  const dataIndex = parseInt(item.getAttribute("data-index"), 10);
123638
- item.classList.contains("col-span-2");
123659
+ if (items.value.length > 8 && dataIndex == 7 && !showAll.value) break;
123639
123660
  if (dataIndex !== lastHoveredIndex.value && originalItemsArray.value) {
123640
123661
  lastHoveredIndex.value = dataIndex;
123662
+ const newLarge = item.classList.contains("col-span-2");
123641
123663
  let { x: x1, y: y1 } = document.querySelector('.background-grid [data-index="' + draggingItemIndex.value + '"]').getBoundingClientRect();
123642
- let { x: x2, y: y2 } = document.querySelector('.background-grid [data-index="' + dataIndex + '"]').getBoundingClientRect();
123643
- currentDragTarget.style.top = y1 - y2 + "px";
123644
- currentDragTarget.style.left = x1 - x2 + "px";
123664
+ let { x: x2, y: y2, width: w2, height: h2 } = document.querySelector('.background-grid [data-index="' + dataIndex + '"]').getBoundingClientRect();
123665
+ if (startLarge && !newLarge) {
123666
+ currentDragTarget.style.top = y1 - y2 + offsetLarge.y - h2 / 2 + "px";
123667
+ currentDragTarget.style.left = x1 - x2 + offsetLarge.x - w2 / 2 + "px";
123668
+ } else {
123669
+ currentDragTarget.style.top = y1 - y2 + "px";
123670
+ currentDragTarget.style.left = x1 - x2 + "px";
123671
+ }
123645
123672
  const newOrder = [...originalItemsArray.value];
123646
123673
  const draggedItem = newOrder[draggingItemIndex.value];
123647
123674
  newOrder.splice(draggingItemIndex.value, 1);
@@ -123654,6 +123681,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123654
123681
  }
123655
123682
  rafId = requestAnimationFrame(onDragHandler);
123656
123683
  };
123684
+ let centeringTween = null;
123657
123685
  const initDraggable = () => {
123658
123686
  draggableInstances.forEach((instance) => {
123659
123687
  if (instance && instance.kill) {
@@ -123662,17 +123690,23 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123662
123690
  });
123663
123691
  draggableInstances = [];
123664
123692
  nextTick(() => {
123665
- const elements = getDraggableElements();
123693
+ const elements = Array.from(getDraggableElements());
123666
123694
  if (!elements.length) return;
123667
123695
  try {
123668
- const instance = Draggable.create(elements, {
123696
+ const instances = Draggable.create(elements, {
123669
123697
  type: "x,y",
123670
- edgeResistance: 0.65,
123698
+ edgeResistance: 0,
123671
123699
  bounds: itemsContainer.value,
123672
- onPress: function() {
123700
+ onPress: function(e) {
123701
+ console.log("press", e);
123673
123702
  originalItemsArray.value = [...items.value];
123674
123703
  draggingItemIndex.value = parseInt(this.target.getAttribute("data-index"), 10);
123675
123704
  lastHoveredIndex.value = -1;
123705
+ startLarge = this.target.classList.contains("col-span-2");
123706
+ offsetLarge = startLarge ? {
123707
+ x: e.clientX - this.target.getBoundingClientRect().left,
123708
+ y: e.clientY - this.target.getBoundingClientRect().top
123709
+ } : { x: 0, y: 0 };
123676
123710
  this.target.classList.add("dragging");
123677
123711
  currentDragTarget = this.target;
123678
123712
  },
@@ -123696,6 +123730,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123696
123730
  lastHoveredIndex.value = -1;
123697
123731
  }
123698
123732
  });
123733
+ if (centeringTween) ;
123699
123734
  },
123700
123735
  onDrag: function(e) {
123701
123736
  lastDragEvent = e;
@@ -123704,17 +123739,21 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123704
123739
  }
123705
123740
  }
123706
123741
  });
123707
- draggableInstances.push(instance);
123742
+ instances.forEach((inst) => draggableInstances.push(inst));
123708
123743
  } catch (err) {
123709
123744
  console.error("Error initializing draggable:", err);
123710
123745
  }
123711
123746
  });
123712
123747
  };
123748
+ const expandItems = () => {
123749
+ showAll.value = true;
123750
+ initDraggable();
123751
+ };
123713
123752
  const openMedia = (e, id2) => {
123714
123753
  console.log("open media", id2);
123715
123754
  };
123716
123755
  const addMedia = (urls) => {
123717
- items.value.push(...urls);
123756
+ items.value = [...urls];
123718
123757
  updateItems(items.value);
123719
123758
  };
123720
123759
  onMounted$1(() => {
@@ -123729,9 +123768,10 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123729
123768
  });
123730
123769
  return (_ctx, _cache2) => {
123731
123770
  const _component_Checkbox = resolveComponent("Checkbox");
123771
+ const _component_Button = resolveComponent("Button");
123732
123772
  return openBlock(), createElementBlock(Fragment, null, [
123733
123773
  selectedItems.value.length ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
123734
- createVNode(_sfc_main$5a, {
123774
+ createVNode(_component_Button, {
123735
123775
  onClick: onFileSelectorCheckboxClick,
123736
123776
  variant: "ghost",
123737
123777
  size: "sm"
@@ -123757,17 +123797,17 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123757
123797
  ]),
123758
123798
  _: 1
123759
123799
  }),
123760
- createVNode(_sfc_main$5a, {
123800
+ createVNode(_component_Button, {
123761
123801
  variant: "outline",
123762
123802
  size: "sm",
123763
123803
  class: "text-red-500 hover:text-red-600",
123764
123804
  onClick: onRemoveSelectedClick
123765
123805
  }, {
123766
- default: withCtx(() => _cache2[1] || (_cache2[1] = [
123767
- createTextVNode("Remove")
123806
+ default: withCtx(() => _cache2[0] || (_cache2[0] = [
123807
+ createTextVNode("Remove", -1)
123768
123808
  ])),
123769
123809
  _: 1,
123770
- __: [1]
123810
+ __: [0]
123771
123811
  })
123772
123812
  ])) : createCommentVNode("", true),
123773
123813
  createElementVNode("div", _hoisted_3$4, [
@@ -123780,17 +123820,17 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123780
123820
  }]),
123781
123821
  "data-index": index
123782
123822
  }, [
123783
- _cache2[2] || (_cache2[2] = createElementVNode("div", { class: "w-full h-full bg-muted/80 rounded-md aspect-square" }, null, -1)),
123823
+ _cache2[1] || (_cache2[1] = createElementVNode("div", { class: "w-full h-full bg-muted/80 rounded-md aspect-square" }, null, -1)),
123784
123824
  !showAll.value && unref(items).length > 8 && index === 7 ? (openBlock(), createElementBlock("div", {
123785
123825
  key: 0,
123786
- onClick: _cache2[0] || (_cache2[0] = ($event) => showAll.value = true),
123787
- class: "absolute top-0 left-0 w-[calc(100%-8px)] h-[calc(100%-8px)] bg-black/30 rounded-md aspect-square z-10 flex items-center justify-center backdrop-blur-sm m-1 cursor-pointer"
123826
+ onClick: expandItems,
123827
+ class: "absolute top-0 left-0 w-[calc(100%-8px)] h-[calc(100%-8px)] bg-black/30 rounded-md aspect-square z-10 flex items-center justify-center backdrop-blur-sm m-1 cursor-pointer pointer-events-auto"
123788
123828
  }, " + " + toDisplayString(unref(items).length - 7), 1)) : createCommentVNode("", true)
123789
123829
  ], 10, _hoisted_5$2);
123790
123830
  }), 128)),
123791
- unref(items).length == 0 ? (openBlock(), createElementBlock("div", _hoisted_6$2, _cache2[3] || (_cache2[3] = [
123831
+ unref(items).length == 0 ? (openBlock(), createElementBlock("div", _hoisted_6$2, _cache2[2] || (_cache2[2] = [
123792
123832
  createElementVNode("div", { class: "w-full h-full bg-muted/80 rounded-md aspect-square" }, null, -1)
123793
- ]))) : (openBlock(), createElementBlock("div", _hoisted_7$2, _cache2[4] || (_cache2[4] = [
123833
+ ]))) : (openBlock(), createElementBlock("div", _hoisted_7$2, _cache2[3] || (_cache2[3] = [
123794
123834
  createElementVNode("div", { class: "w-full h-full bg-muted/80 rounded-md aspect-square" }, null, -1)
123795
123835
  ])))
123796
123836
  ]),
@@ -123809,7 +123849,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123809
123849
  return openBlock(), createElementBlock("div", {
123810
123850
  key: url || index,
123811
123851
  "data-index": index,
123812
- class: normalizeClass(["draggable-item w-full relative", { "col-start-1 col-span-2 row-start-1 row-span-2": index === 0 }])
123852
+ class: normalizeClass(["draggable-item touch-none w-full aspect-square relative cursor-grab", { "col-start-1 col-span-2 row-start-1 row-span-2": index === 0 }])
123813
123853
  }, [
123814
123854
  createElementVNode("button", {
123815
123855
  class: "relative flex justify-center items-center w-full h-full rounded-md outline outline-border group overflow-hidden focus-visible:outline-none focus-visible:ring-ring/80 focus-visible:ring-[3px] transition-all duration-200 cursor-grab active:cursor-grabbing",
@@ -123843,6 +123883,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123843
123883
  }),
123844
123884
  createVNode(_sfc_main$20, {
123845
123885
  sources: unref(sources),
123886
+ "initial-value": unref(items),
123846
123887
  onSubmit: addMedia
123847
123888
  }, {
123848
123889
  default: withCtx(() => {
@@ -123857,14 +123898,14 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
123857
123898
  ];
123858
123899
  }),
123859
123900
  _: 1
123860
- }, 8, ["sources"])
123901
+ }, 8, ["sources", "initial-value"])
123861
123902
  ], 512)
123862
123903
  ])
123863
123904
  ], 64);
123864
123905
  };
123865
123906
  }
123866
123907
  });
123867
- const MediaPickerItems = /* @__PURE__ */ _export_sfc$1(_sfc_main$1$, [["__scopeId", "data-v-7c702095"]]);
123908
+ const MediaPickerItems = /* @__PURE__ */ _export_sfc$1(_sfc_main$1$, [["__scopeId", "data-v-ece8cc15"]]);
123868
123909
  const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
123869
123910
  __name: "MediaPicker",
123870
123911
  props: {
@@ -124071,8 +124112,10 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
124071
124112
  loop: { type: Boolean },
124072
124113
  side: {},
124073
124114
  sideOffset: { default: 8 },
124115
+ sideFlip: { type: Boolean },
124074
124116
  align: { default: "start" },
124075
124117
  alignOffset: { default: -4 },
124118
+ alignFlip: { type: Boolean },
124076
124119
  avoidCollisions: { type: Boolean },
124077
124120
  collisionBoundary: {},
124078
124121
  collisionPadding: {},
@@ -124342,7 +124385,9 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
124342
124385
  forceMount: { type: Boolean },
124343
124386
  loop: { type: Boolean },
124344
124387
  sideOffset: {},
124388
+ sideFlip: { type: Boolean },
124345
124389
  alignOffset: {},
124390
+ alignFlip: { type: Boolean },
124346
124391
  avoidCollisions: { type: Boolean },
124347
124392
  collisionBoundary: {},
124348
124393
  collisionPadding: {},
@@ -124480,6 +124525,7 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
124480
124525
  formatOptions: {},
124481
124526
  locale: {},
124482
124527
  disabled: { type: Boolean },
124528
+ readonly: { type: Boolean },
124483
124529
  disableWheelChange: { type: Boolean },
124484
124530
  invertWheelChange: { type: Boolean },
124485
124531
  id: {},
@@ -124594,7 +124640,11 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
124594
124640
  return (_ctx, _cache2) => {
124595
124641
  return openBlock(), createBlock(unref(NumberFieldInput), {
124596
124642
  "data-slot": "input",
124597
- class: normalizeClass(unref(cn$2)("flex h-9 w-full rounded-md border border-input bg-transparent py-1 text-sm text-center shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", props.class))
124643
+ class: normalizeClass(unref(cn$2)(
124644
+ "flex h-9 w-full rounded-md border border-input bg-background dark:bg-input/30 py-1 text-sm text-center shadow-xs transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
124645
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
124646
+ props.class
124647
+ ))
124598
124648
  }, null, 8, ["class"]);
124599
124649
  };
124600
124650
  }
@@ -124827,8 +124877,10 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
124827
124877
  forceMount: { type: Boolean },
124828
124878
  side: {},
124829
124879
  sideOffset: { default: 4 },
124880
+ sideFlip: { type: Boolean },
124830
124881
  align: { default: "center" },
124831
124882
  alignOffset: {},
124883
+ alignFlip: { type: Boolean },
124832
124884
  avoidCollisions: { type: Boolean },
124833
124885
  collisionBoundary: {},
124834
124886
  collisionPadding: {},
@@ -125179,7 +125231,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125179
125231
  default: withCtx(() => [
125180
125232
  createVNode(_component_DialogTitle, null, {
125181
125233
  default: withCtx(() => _cache2[10] || (_cache2[10] = [
125182
- createTextVNode("Query Builder")
125234
+ createTextVNode("Query Builder", -1)
125183
125235
  ])),
125184
125236
  _: 1,
125185
125237
  __: [10]
@@ -125198,7 +125250,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125198
125250
  class: "block text-sm font-medium text-muted-foreground mb-2"
125199
125251
  }, {
125200
125252
  default: withCtx(() => _cache2[11] || (_cache2[11] = [
125201
- createTextVNode("Resource")
125253
+ createTextVNode("Resource", -1)
125202
125254
  ])),
125203
125255
  _: 1,
125204
125256
  __: [11]
@@ -125213,7 +125265,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125213
125265
  createElementVNode("div", _hoisted_4$1, [
125214
125266
  createVNode(_component_Label, { class: "block text-sm font-medium text-muted-foreground mb-2" }, {
125215
125267
  default: withCtx(() => _cache2[12] || (_cache2[12] = [
125216
- createTextVNode("Filters")
125268
+ createTextVNode("Filters", -1)
125217
125269
  ])),
125218
125270
  _: 1,
125219
125271
  __: [12]
@@ -125277,7 +125329,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125277
125329
  title: "Remove filter"
125278
125330
  }, {
125279
125331
  default: withCtx(() => _cache2[13] || (_cache2[13] = [
125280
- createTextVNode("✕")
125332
+ createTextVNode("✕", -1)
125281
125333
  ])),
125282
125334
  _: 2,
125283
125335
  __: [13]
@@ -125289,7 +125341,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125289
125341
  onClick: addFilter
125290
125342
  }, {
125291
125343
  default: withCtx(() => _cache2[14] || (_cache2[14] = [
125292
- createTextVNode("+ Add Filter")
125344
+ createTextVNode("+ Add Filter", -1)
125293
125345
  ])),
125294
125346
  _: 1,
125295
125347
  __: [14]
@@ -125299,7 +125351,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125299
125351
  createElementVNode("div", null, [
125300
125352
  createVNode(_component_Label, { class: "block text-sm font-medium text-muted-foreground mb-2" }, {
125301
125353
  default: withCtx(() => _cache2[15] || (_cache2[15] = [
125302
- createTextVNode("Sort")
125354
+ createTextVNode("Sort", -1)
125303
125355
  ])),
125304
125356
  _: 1,
125305
125357
  __: [15]
@@ -125333,14 +125385,14 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125333
125385
  default: withCtx(() => [
125334
125386
  createVNode(_component_SelectItem, { value: "asc" }, {
125335
125387
  default: withCtx(() => _cache2[16] || (_cache2[16] = [
125336
- createTextVNode("ASC")
125388
+ createTextVNode("ASC", -1)
125337
125389
  ])),
125338
125390
  _: 1,
125339
125391
  __: [16]
125340
125392
  }),
125341
125393
  createVNode(_component_SelectItem, { value: "desc" }, {
125342
125394
  default: withCtx(() => _cache2[17] || (_cache2[17] = [
125343
- createTextVNode("DESC")
125395
+ createTextVNode("DESC", -1)
125344
125396
  ])),
125345
125397
  _: 1,
125346
125398
  __: [17]
@@ -125360,7 +125412,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125360
125412
  title: "Remove sort"
125361
125413
  }, {
125362
125414
  default: withCtx(() => _cache2[18] || (_cache2[18] = [
125363
- createTextVNode("✕")
125415
+ createTextVNode("✕", -1)
125364
125416
  ])),
125365
125417
  _: 2,
125366
125418
  __: [18]
@@ -125372,7 +125424,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125372
125424
  onClick: addSort
125373
125425
  }, {
125374
125426
  default: withCtx(() => _cache2[19] || (_cache2[19] = [
125375
- createTextVNode("+ Add Sort")
125427
+ createTextVNode("+ Add Sort", -1)
125376
125428
  ])),
125377
125429
  _: 1,
125378
125430
  __: [19]
@@ -125412,7 +125464,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125412
125464
  createElementVNode("div", null, [
125413
125465
  createVNode(_component_Label, { for: "limit" }, {
125414
125466
  default: withCtx(() => _cache2[22] || (_cache2[22] = [
125415
- createTextVNode("Limit")
125467
+ createTextVNode("Limit", -1)
125416
125468
  ])),
125417
125469
  _: 1,
125418
125470
  __: [22]
@@ -125427,7 +125479,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125427
125479
  createElementVNode("div", null, [
125428
125480
  createVNode(_component_Label, { for: "offset" }, {
125429
125481
  default: withCtx(() => _cache2[23] || (_cache2[23] = [
125430
- createTextVNode("Offset")
125482
+ createTextVNode("Offset", -1)
125431
125483
  ])),
125432
125484
  _: 1,
125433
125485
  __: [23]
@@ -125442,7 +125494,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125442
125494
  createElementVNode("div", null, [
125443
125495
  createVNode(_component_Label, { for: "startAt" }, {
125444
125496
  default: withCtx(() => _cache2[24] || (_cache2[24] = [
125445
- createTextVNode("StartAt")
125497
+ createTextVNode("StartAt", -1)
125446
125498
  ])),
125447
125499
  _: 1,
125448
125500
  __: [24]
@@ -125456,7 +125508,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125456
125508
  createElementVNode("div", null, [
125457
125509
  createVNode(_component_Label, { for: "endAt" }, {
125458
125510
  default: withCtx(() => _cache2[25] || (_cache2[25] = [
125459
- createTextVNode("EndAt")
125511
+ createTextVNode("EndAt", -1)
125460
125512
  ])),
125461
125513
  _: 1,
125462
125514
  __: [25]
@@ -125470,7 +125522,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125470
125522
  ((_a2 = integration.value) == null ? void 0 : _a2.type) !== "FIREBASE" ? (openBlock(), createElementBlock("div", _hoisted_9, [
125471
125523
  createVNode(_component_Label, { for: "groupBy" }, {
125472
125524
  default: withCtx(() => _cache2[26] || (_cache2[26] = [
125473
- createTextVNode("Group By")
125525
+ createTextVNode("Group By", -1)
125474
125526
  ])),
125475
125527
  _: 1,
125476
125528
  __: [26]
@@ -125489,7 +125541,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125489
125541
  }, null, 8, ["modelValue"]),
125490
125542
  createVNode(_component_Label, { for: "distinct" }, {
125491
125543
  default: withCtx(() => _cache2[27] || (_cache2[27] = [
125492
- createTextVNode("DISTINCT")
125544
+ createTextVNode("DISTINCT", -1)
125493
125545
  ])),
125494
125546
  _: 1,
125495
125547
  __: [27]
@@ -125507,7 +125559,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125507
125559
  createElementVNode("div", _hoisted_12, [
125508
125560
  createVNode(_component_Button, { onClick: previewQuery }, {
125509
125561
  default: withCtx(() => _cache2[28] || (_cache2[28] = [
125510
- createTextVNode("Preview Query")
125562
+ createTextVNode("Preview Query", -1)
125511
125563
  ])),
125512
125564
  _: 1,
125513
125565
  __: [28]
@@ -125517,7 +125569,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125517
125569
  onClick: runQuery
125518
125570
  }, {
125519
125571
  default: withCtx(() => _cache2[29] || (_cache2[29] = [
125520
- createTextVNode("Run Query")
125572
+ createTextVNode("Run Query", -1)
125521
125573
  ])),
125522
125574
  _: 1,
125523
125575
  __: [29]
@@ -125534,7 +125586,7 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125534
125586
  }, [
125535
125587
  createVNode(_component_Button, { size: "sm" }, {
125536
125588
  default: withCtx(() => [
125537
- _cache2[30] || (_cache2[30] = createTextVNode("Create index in Firebase Console ")),
125589
+ _cache2[30] || (_cache2[30] = createTextVNode("Create index in Firebase Console ", -1)),
125538
125590
  createVNode(unref(ExternalLink), { class: "size-3.5 ml-0.5" })
125539
125591
  ]),
125540
125592
  _: 1,
@@ -125551,14 +125603,14 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
125551
125603
  onClick: closeDialog
125552
125604
  }, {
125553
125605
  default: withCtx(() => _cache2[31] || (_cache2[31] = [
125554
- createTextVNode("Close")
125606
+ createTextVNode("Close", -1)
125555
125607
  ])),
125556
125608
  _: 1,
125557
125609
  __: [31]
125558
125610
  }),
125559
125611
  createVNode(_component_Button, { onClick: saveQuery }, {
125560
125612
  default: withCtx(() => _cache2[32] || (_cache2[32] = [
125561
- createTextVNode("Save Query")
125613
+ createTextVNode("Save Query", -1)
125562
125614
  ])),
125563
125615
  _: 1,
125564
125616
  __: [32]
@@ -126088,6 +126140,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
126088
126140
  hitAreaMargins: {},
126089
126141
  tabindex: {},
126090
126142
  disabled: { type: Boolean },
126143
+ nonce: {},
126091
126144
  asChild: { type: Boolean },
126092
126145
  as: {},
126093
126146
  class: {},
@@ -126674,8 +126727,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
126674
126727
  bodyLock: { type: Boolean },
126675
126728
  side: {},
126676
126729
  sideOffset: {},
126730
+ sideFlip: { type: Boolean },
126677
126731
  align: {},
126678
126732
  alignOffset: {},
126733
+ alignFlip: { type: Boolean },
126679
126734
  avoidCollisions: { type: Boolean },
126680
126735
  collisionBoundary: {},
126681
126736
  collisionPadding: {},
@@ -127306,14 +127361,14 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
127306
127361
  default: withCtx(() => [
127307
127362
  createVNode(_sfc_main$P, null, {
127308
127363
  default: withCtx(() => _cache2[2] || (_cache2[2] = [
127309
- createTextVNode("Sidebar")
127364
+ createTextVNode("Sidebar", -1)
127310
127365
  ])),
127311
127366
  _: 1,
127312
127367
  __: [2]
127313
127368
  }),
127314
127369
  createVNode(_sfc_main$S, null, {
127315
127370
  default: withCtx(() => _cache2[3] || (_cache2[3] = [
127316
- createTextVNode("Displays the mobile sidebar.")
127371
+ createTextVNode("Displays the mobile sidebar.", -1)
127317
127372
  ])),
127318
127373
  _: 1,
127319
127374
  __: [3]
@@ -128220,6 +128275,177 @@ const __vite_glob_0_66 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
128220
128275
  __proto__: null,
128221
128276
  Toaster: _sfc_main$k
128222
128277
  }, Symbol.toStringTag, { value: "Module" }));
128278
+ const stepsOrder = [
128279
+ "setup",
128280
+ // Compute
128281
+ "read",
128282
+ // Read
128283
+ "resolveKeyframes",
128284
+ // Write/Read/Write/Read
128285
+ "preUpdate",
128286
+ // Compute
128287
+ "update",
128288
+ // Compute
128289
+ "preRender",
128290
+ // Compute
128291
+ "render",
128292
+ // Write
128293
+ "postRender"
128294
+ // Compute
128295
+ ];
128296
+ function createRenderStep(runNextFrame, stepName) {
128297
+ let thisFrame = /* @__PURE__ */ new Set();
128298
+ let nextFrame = /* @__PURE__ */ new Set();
128299
+ let isProcessing = false;
128300
+ let flushNextFrame = false;
128301
+ const toKeepAlive = /* @__PURE__ */ new WeakSet();
128302
+ let latestFrameData = {
128303
+ delta: 0,
128304
+ timestamp: 0,
128305
+ isProcessing: false
128306
+ };
128307
+ function triggerCallback(callback) {
128308
+ if (toKeepAlive.has(callback)) {
128309
+ step.schedule(callback);
128310
+ runNextFrame();
128311
+ }
128312
+ callback(latestFrameData);
128313
+ }
128314
+ const step = {
128315
+ /**
128316
+ * Schedule a process to run on the next frame.
128317
+ */
128318
+ schedule: (callback, keepAlive = false, immediate = false) => {
128319
+ const addToCurrentFrame = immediate && isProcessing;
128320
+ const queue = addToCurrentFrame ? thisFrame : nextFrame;
128321
+ if (keepAlive)
128322
+ toKeepAlive.add(callback);
128323
+ if (!queue.has(callback))
128324
+ queue.add(callback);
128325
+ return callback;
128326
+ },
128327
+ /**
128328
+ * Cancel the provided callback from running on the next frame.
128329
+ */
128330
+ cancel: (callback) => {
128331
+ nextFrame.delete(callback);
128332
+ toKeepAlive.delete(callback);
128333
+ },
128334
+ /**
128335
+ * Execute all schedule callbacks.
128336
+ */
128337
+ process: (frameData2) => {
128338
+ latestFrameData = frameData2;
128339
+ if (isProcessing) {
128340
+ flushNextFrame = true;
128341
+ return;
128342
+ }
128343
+ isProcessing = true;
128344
+ [thisFrame, nextFrame] = [nextFrame, thisFrame];
128345
+ thisFrame.forEach(triggerCallback);
128346
+ thisFrame.clear();
128347
+ isProcessing = false;
128348
+ if (flushNextFrame) {
128349
+ flushNextFrame = false;
128350
+ step.process(frameData2);
128351
+ }
128352
+ }
128353
+ };
128354
+ return step;
128355
+ }
128356
+ const MotionGlobalConfig = {};
128357
+ const maxElapsed = 40;
128358
+ function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
128359
+ let runNextFrame = false;
128360
+ let useDefaultElapsed = true;
128361
+ const state = {
128362
+ delta: 0,
128363
+ timestamp: 0,
128364
+ isProcessing: false
128365
+ };
128366
+ const flagRunNextFrame = () => runNextFrame = true;
128367
+ const steps = stepsOrder.reduce((acc, key) => {
128368
+ acc[key] = createRenderStep(flagRunNextFrame);
128369
+ return acc;
128370
+ }, {});
128371
+ const { setup, read, resolveKeyframes, preUpdate, update: update2, preRender, render: render2, postRender } = steps;
128372
+ const processBatch = () => {
128373
+ const timestamp = MotionGlobalConfig.useManualTiming ? state.timestamp : performance.now();
128374
+ runNextFrame = false;
128375
+ if (!MotionGlobalConfig.useManualTiming) {
128376
+ state.delta = useDefaultElapsed ? 1e3 / 60 : Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);
128377
+ }
128378
+ state.timestamp = timestamp;
128379
+ state.isProcessing = true;
128380
+ setup.process(state);
128381
+ read.process(state);
128382
+ resolveKeyframes.process(state);
128383
+ preUpdate.process(state);
128384
+ update2.process(state);
128385
+ preRender.process(state);
128386
+ render2.process(state);
128387
+ postRender.process(state);
128388
+ state.isProcessing = false;
128389
+ if (runNextFrame && allowKeepAlive) {
128390
+ useDefaultElapsed = false;
128391
+ scheduleNextBatch(processBatch);
128392
+ }
128393
+ };
128394
+ const wake2 = () => {
128395
+ runNextFrame = true;
128396
+ useDefaultElapsed = true;
128397
+ if (!state.isProcessing) {
128398
+ scheduleNextBatch(processBatch);
128399
+ }
128400
+ };
128401
+ const schedule2 = stepsOrder.reduce((acc, key) => {
128402
+ const step = steps[key];
128403
+ acc[key] = (process2, keepAlive = false, immediate = false) => {
128404
+ if (!runNextFrame)
128405
+ wake2();
128406
+ return step.schedule(process2, keepAlive, immediate);
128407
+ };
128408
+ return acc;
128409
+ }, {});
128410
+ const cancel = (process2) => {
128411
+ for (let i = 0; i < stepsOrder.length; i++) {
128412
+ steps[stepsOrder[i]].cancel(process2);
128413
+ }
128414
+ };
128415
+ return { schedule: schedule2, cancel, state, steps };
128416
+ }
128417
+ const noop = /* @__NO_SIDE_EFFECTS__ */ (any) => any;
128418
+ const { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps } = /* @__PURE__ */ createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop, true);
128419
+ let now;
128420
+ function clearTime() {
128421
+ now = void 0;
128422
+ }
128423
+ const time = {
128424
+ now: () => {
128425
+ if (now === void 0) {
128426
+ time.set(frameData.isProcessing || MotionGlobalConfig.useManualTiming ? frameData.timestamp : performance.now());
128427
+ }
128428
+ return now;
128429
+ },
128430
+ set: (newTime) => {
128431
+ now = newTime;
128432
+ queueMicrotask(clearTime);
128433
+ }
128434
+ };
128435
+ const secondsToMilliseconds = /* @__NO_SIDE_EFFECTS__ */ (seconds) => seconds * 1e3;
128436
+ const millisecondsToSeconds = /* @__NO_SIDE_EFFECTS__ */ (milliseconds) => milliseconds / 1e3;
128437
+ function delay(callback, timeout2) {
128438
+ const start2 = time.now();
128439
+ const checkElapsed = ({ timestamp }) => {
128440
+ const elapsed = timestamp - start2;
128441
+ if (elapsed >= timeout2) {
128442
+ cancelFrame(checkElapsed);
128443
+ callback(elapsed - timeout2);
128444
+ }
128445
+ };
128446
+ frame.setup(checkElapsed, true);
128447
+ return () => cancelFrame(checkElapsed);
128448
+ }
128223
128449
  const checkStringStartsWith = (token) => (key) => typeof key === "string" && key.startsWith(token);
128224
128450
  const isCSSVariableName = /* @__PURE__ */ checkStringStartsWith("--");
128225
128451
  const startsAsVariableToken = /* @__PURE__ */ checkStringStartsWith("var(--");
@@ -128448,147 +128674,6 @@ const [injectAnimatePresence, provideAnimatePresence] = createContext("AnimatePr
128448
128674
  function isVariantLabels(value) {
128449
128675
  return typeof value === "string" || value === false || Array.isArray(value);
128450
128676
  }
128451
- const noop = /* @__NO_SIDE_EFFECTS__ */ (any) => any;
128452
- const stepsOrder = [
128453
- "setup",
128454
- // Compute
128455
- "read",
128456
- // Read
128457
- "resolveKeyframes",
128458
- // Write/Read/Write/Read
128459
- "preUpdate",
128460
- // Compute
128461
- "update",
128462
- // Compute
128463
- "preRender",
128464
- // Compute
128465
- "render",
128466
- // Write
128467
- "postRender"
128468
- // Compute
128469
- ];
128470
- function createRenderStep(runNextFrame, stepName) {
128471
- let thisFrame = /* @__PURE__ */ new Set();
128472
- let nextFrame = /* @__PURE__ */ new Set();
128473
- let isProcessing = false;
128474
- let flushNextFrame = false;
128475
- const toKeepAlive = /* @__PURE__ */ new WeakSet();
128476
- let latestFrameData = {
128477
- delta: 0,
128478
- timestamp: 0,
128479
- isProcessing: false
128480
- };
128481
- function triggerCallback(callback) {
128482
- if (toKeepAlive.has(callback)) {
128483
- step.schedule(callback);
128484
- runNextFrame();
128485
- }
128486
- callback(latestFrameData);
128487
- }
128488
- const step = {
128489
- /**
128490
- * Schedule a process to run on the next frame.
128491
- */
128492
- schedule: (callback, keepAlive = false, immediate = false) => {
128493
- const addToCurrentFrame = immediate && isProcessing;
128494
- const queue = addToCurrentFrame ? thisFrame : nextFrame;
128495
- if (keepAlive)
128496
- toKeepAlive.add(callback);
128497
- if (!queue.has(callback))
128498
- queue.add(callback);
128499
- return callback;
128500
- },
128501
- /**
128502
- * Cancel the provided callback from running on the next frame.
128503
- */
128504
- cancel: (callback) => {
128505
- nextFrame.delete(callback);
128506
- toKeepAlive.delete(callback);
128507
- },
128508
- /**
128509
- * Execute all schedule callbacks.
128510
- */
128511
- process: (frameData2) => {
128512
- latestFrameData = frameData2;
128513
- if (isProcessing) {
128514
- flushNextFrame = true;
128515
- return;
128516
- }
128517
- isProcessing = true;
128518
- [thisFrame, nextFrame] = [nextFrame, thisFrame];
128519
- thisFrame.forEach(triggerCallback);
128520
- thisFrame.clear();
128521
- isProcessing = false;
128522
- if (flushNextFrame) {
128523
- flushNextFrame = false;
128524
- step.process(frameData2);
128525
- }
128526
- }
128527
- };
128528
- return step;
128529
- }
128530
- const MotionGlobalConfig = {};
128531
- const maxElapsed = 40;
128532
- function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
128533
- let runNextFrame = false;
128534
- let useDefaultElapsed = true;
128535
- const state = {
128536
- delta: 0,
128537
- timestamp: 0,
128538
- isProcessing: false
128539
- };
128540
- const flagRunNextFrame = () => runNextFrame = true;
128541
- const steps = stepsOrder.reduce((acc, key) => {
128542
- acc[key] = createRenderStep(flagRunNextFrame);
128543
- return acc;
128544
- }, {});
128545
- const { setup, read, resolveKeyframes, preUpdate, update: update2, preRender, render: render2, postRender } = steps;
128546
- const processBatch = () => {
128547
- const timestamp = MotionGlobalConfig.useManualTiming ? state.timestamp : performance.now();
128548
- runNextFrame = false;
128549
- if (!MotionGlobalConfig.useManualTiming) {
128550
- state.delta = useDefaultElapsed ? 1e3 / 60 : Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);
128551
- }
128552
- state.timestamp = timestamp;
128553
- state.isProcessing = true;
128554
- setup.process(state);
128555
- read.process(state);
128556
- resolveKeyframes.process(state);
128557
- preUpdate.process(state);
128558
- update2.process(state);
128559
- preRender.process(state);
128560
- render2.process(state);
128561
- postRender.process(state);
128562
- state.isProcessing = false;
128563
- if (runNextFrame && allowKeepAlive) {
128564
- useDefaultElapsed = false;
128565
- scheduleNextBatch(processBatch);
128566
- }
128567
- };
128568
- const wake2 = () => {
128569
- runNextFrame = true;
128570
- useDefaultElapsed = true;
128571
- if (!state.isProcessing) {
128572
- scheduleNextBatch(processBatch);
128573
- }
128574
- };
128575
- const schedule2 = stepsOrder.reduce((acc, key) => {
128576
- const step = steps[key];
128577
- acc[key] = (process2, keepAlive = false, immediate = false) => {
128578
- if (!runNextFrame)
128579
- wake2();
128580
- return step.schedule(process2, keepAlive, immediate);
128581
- };
128582
- return acc;
128583
- }, {});
128584
- const cancel = (process2) => {
128585
- for (let i = 0; i < stepsOrder.length; i++) {
128586
- steps[stepsOrder[i]].cancel(process2);
128587
- }
128588
- };
128589
- return { schedule: schedule2, cancel, state, steps };
128590
- }
128591
- const { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps } = /* @__PURE__ */ createRenderBatcher(typeof requestAnimationFrame !== "undefined" ? requestAnimationFrame : noop, true);
128592
128677
  const mountedStates = /* @__PURE__ */ new WeakMap();
128593
128678
  let id$1 = 0;
128594
128679
  const mountedLayoutIds = /* @__PURE__ */ new Set();
@@ -128956,8 +129041,6 @@ function convertSvgStyleToAttributes(keyframes2) {
128956
129041
  style: styleProps
128957
129042
  };
128958
129043
  }
128959
- typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
128960
- const isDef = (val) => typeof val !== "undefined";
128961
129044
  function convertBoundingBoxToBox$1({ top: top2, left, right, bottom }) {
128962
129045
  return {
128963
129046
  x: { min: left, max: right },
@@ -129058,22 +129141,6 @@ function isControllingVariants(props) {
129058
129141
  function isVariantNode(props) {
129059
129142
  return Boolean(isControllingVariants(props) || props.variants);
129060
129143
  }
129061
- let now;
129062
- function clearTime() {
129063
- now = void 0;
129064
- }
129065
- const time = {
129066
- now: () => {
129067
- if (now === void 0) {
129068
- time.set(frameData.isProcessing || MotionGlobalConfig.useManualTiming ? frameData.timestamp : performance.now());
129069
- }
129070
- return now;
129071
- },
129072
- set: (newTime) => {
129073
- now = newTime;
129074
- queueMicrotask(clearTime);
129075
- }
129076
- };
129077
129144
  const warned = /* @__PURE__ */ new Set();
129078
129145
  function warnOnce(condition, message, element) {
129079
129146
  if (condition || warned.has(message))
@@ -130954,8 +131021,6 @@ function calcGeneratorDuration(generator) {
130954
131021
  }
130955
131022
  return duration >= maxGeneratorDuration ? Infinity : duration;
130956
131023
  }
130957
- const secondsToMilliseconds = /* @__NO_SIDE_EFFECTS__ */ (seconds) => seconds * 1e3;
130958
- const millisecondsToSeconds = /* @__NO_SIDE_EFFECTS__ */ (milliseconds) => milliseconds / 1e3;
130959
131024
  function createGeneratorEasing(options, scale2 = 100, createGenerator) {
130960
131025
  const generator = createGenerator({ ...options, keyframes: [0, scale2] });
130961
131026
  const duration = Math.min(calcGeneratorDuration(generator), maxGeneratorDuration);
@@ -132984,7 +133049,7 @@ class AnimationFeature extends Feature {
132984
133049
  if (!hasChanged(prevTarget[key], this.state.target[key]))
132985
133050
  return;
132986
133051
  (_a2 = this.state.baseTarget)[key] ?? (_a2[key] = style.get(this.state.element, key));
132987
- const keyValue = this.state.target[key] === "none" && isDef(transformResetValue[key]) ? transformResetValue[key] : this.state.target[key];
133052
+ const keyValue = this.state.target[key] === "none" && isDef$2(transformResetValue[key]) ? transformResetValue[key] : this.state.target[key];
132988
133053
  factories.push(() => {
132989
133054
  var _a22;
132990
133055
  return animate(
@@ -133013,7 +133078,7 @@ class AnimationFeature extends Feature {
133013
133078
  if (!this.state.activeStates[name2] || isAnimationControls$1(this.state.options[name2]))
133014
133079
  return;
133015
133080
  const definition = this.state.options[name2];
133016
- let resolvedVariant = isDef(definition) ? resolveVariant$1(definition, variants, customValue) : void 0;
133081
+ let resolvedVariant = isDef$2(definition) ? resolveVariant$1(definition, variants, customValue) : void 0;
133017
133082
  if (this.state.visualElement.isVariantNode) {
133018
133083
  const controlVariant = resolveVariant$1(this.state.context[name2], variants, customValue);
133019
133084
  resolvedVariant = controlVariant ? Object.assign(controlVariant || {}, resolvedVariant) : variant;
@@ -133442,18 +133507,6 @@ class FlatTree {
133442
133507
  this.children.forEach(callback);
133443
133508
  }
133444
133509
  }
133445
- function delay(callback, timeout2) {
133446
- const start2 = time.now();
133447
- const checkElapsed = ({ timestamp }) => {
133448
- const elapsed = timestamp - start2;
133449
- if (elapsed >= timeout2) {
133450
- cancelFrame(checkElapsed);
133451
- callback(elapsed - timeout2);
133452
- }
133453
- };
133454
- frame.setup(checkElapsed, true);
133455
- return () => cancelFrame(checkElapsed);
133456
- }
133457
133510
  function resolveMotionValue(value) {
133458
133511
  return isMotionValue(value) ? value.get() : value;
133459
133512
  }
@@ -135986,7 +136039,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
135986
136039
  transition: {},
135987
136040
  reduceMotion: {},
135988
136041
  reducedMotion: { default: ({ reduceMotion }) => {
135989
- if (isDef(reduceMotion)) {
136042
+ if (isDef$2(reduceMotion)) {
135990
136043
  warning$1(false, "`reduceMotion` is deprecated. Use `reducedMotion` instead.");
135991
136044
  return reduceMotion;
135992
136045
  }
@@ -136011,8 +136064,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
136011
136064
  }
136012
136065
  });
136013
136066
  function getMotionElement(el) {
136014
- if ((el == null ? void 0 : el.nodeType) === 3 || (el == null ? void 0 : el.nodeType) === 8)
136067
+ if (!el)
136068
+ return void 0;
136069
+ if (el.nodeType === 3 || el.nodeType === 8) {
136015
136070
  return getMotionElement(el.nextSibling);
136071
+ }
136016
136072
  return el;
136017
136073
  }
136018
136074
  const [useLazyMotionContext, lazyMotionContextProvider] = createContext("LazyMotionContext");