fluekit 1.2.0 → 1.4.0

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/index.js CHANGED
@@ -1,31 +1,31 @@
1
- import { Comment, Fragment, Text, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, h, inject, mergeProps, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useSlots, warn, withCtx } from "vue";
2
- function isUndefined(o) {
3
- return o === void 0;
1
+ import { Comment, Fragment, Text, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, defineComponent, h, inject, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onUnmounted, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useSlots, warn, watch, withCtx } from "vue";
2
+ function isUndefined(e) {
3
+ return e === void 0;
4
4
  }
5
5
  var PURE_NUMBER_REGEX = /^[+-]?(?:\d+\.?\d*|\.\d+)$/, NUMBER_PX_REGEX = /^[+-]?(?:\d+\.?\d*|\.\d+)px$/;
6
- function isPureNumber(o) {
7
- return PURE_NUMBER_REGEX.test(o);
6
+ function isPureNumber(e) {
7
+ return PURE_NUMBER_REGEX.test(e);
8
8
  }
9
- function isNumberPx(o) {
10
- return NUMBER_PX_REGEX.test(o);
9
+ function isNumberPx(e) {
10
+ return NUMBER_PX_REGEX.test(e);
11
11
  }
12
- function isDefined(o) {
13
- return o != null;
12
+ function isDefined(e) {
13
+ return e != null;
14
14
  }
15
- function isPlainObject(o) {
16
- return Object.prototype.toLocaleString.call(o) == "[object Object]";
15
+ function isPlainObject(e) {
16
+ return Object.prototype.toLocaleString.call(e) == "[object Object]";
17
17
  }
18
- function isHtmlTag(o) {
19
- return typeof o.type == "string";
18
+ function isHtmlTag(e) {
19
+ return typeof e.type == "string";
20
20
  }
21
21
  var DEFAULT_VW = 750, canTransform = !0;
22
- function setTransform(o) {
23
- canTransform = o;
22
+ function setTransform(e) {
23
+ canTransform = e;
24
24
  }
25
- function setDefaultVW(o) {
26
- if (!isPureNumber(`${o}`)) throw Error("defaultVW must be a number");
27
- if (o <= 0) throw Error("defaultVW must be greater than 0");
28
- DEFAULT_VW = o;
25
+ function setDefaultVW(e) {
26
+ if (!isPureNumber(`${e}`)) throw Error("defaultVW must be a number");
27
+ if (e <= 0) throw Error("defaultVW must be greater than 0");
28
+ DEFAULT_VW = e;
29
29
  }
30
30
  var EXCLUDED_VALUES = [
31
31
  "0px",
@@ -37,18 +37,18 @@ var EXCLUDED_VALUES = [
37
37
  "-0%",
38
38
  "-0px",
39
39
  "+0px"
40
- ], nonTransform = (o) => o.endsWith("vw") || o.endsWith("%") || EXCLUDED_VALUES.includes(o);
41
- function px2vw(o, F = DEFAULT_VW) {
42
- if (!canTransform) return isPureNumber(`${o}`) ? `${o}px` : o;
43
- if (!(o === void 0 || o == null || typeof o == "number" && !Number.isFinite(o))) {
44
- if (o === 0) return "0";
45
- if (typeof o == "string") {
46
- if (o = o.trim(), o == "") return;
47
- if (nonTransform(o)) return o;
48
- let F = o;
49
- if (isNumberPx(o) && (o = o.slice(0, -2)), !isPureNumber(o)) return F;
40
+ ], nonTransform = (e) => e.endsWith("vw") || e.endsWith("%") || EXCLUDED_VALUES.includes(e);
41
+ function px2vw(e, S = DEFAULT_VW) {
42
+ if (!canTransform) return isPureNumber(`${e}`) ? `${e}px` : e;
43
+ if (!(e === void 0 || e == null || typeof e == "number" && !Number.isFinite(e))) {
44
+ if (e === 0) return "0";
45
+ if (typeof e == "string") {
46
+ if (e = e.trim(), e == "") return;
47
+ if (nonTransform(e)) return e;
48
+ let S = e;
49
+ if (isNumberPx(e) && (e = e.slice(0, -2)), !isPureNumber(e)) return S;
50
50
  }
51
- return o = Number(o), F /= 100, `${Math.round(o / F * 1e5) / 1e5}vw`;
51
+ return e = Number(e), S /= 100, `${Math.round(e / S * 1e5) / 1e5}vw`;
52
52
  }
53
53
  }
54
54
  const Alignment = {
@@ -62,10 +62,10 @@ const Alignment = {
62
62
  bottomCenter: "bottomCenter",
63
63
  bottomRight: "bottomRight"
64
64
  };
65
- function alignmentToFlex(o, F = "row") {
66
- let I = o, L = "flex-start", R = "flex-start";
67
- I.toLowerCase().includes("left") || I.toLowerCase().includes("right");
68
- let z = {
65
+ function alignmentToFlex(e, S = "row") {
66
+ let C = e, w = "flex-start", T = "flex-start";
67
+ C.toLowerCase().includes("left") || C.toLowerCase().includes("right");
68
+ let E = {
69
69
  topLeft: {
70
70
  x: "flex-start",
71
71
  y: "flex-start"
@@ -102,17 +102,17 @@ function alignmentToFlex(o, F = "row") {
102
102
  x: "flex-end",
103
103
  y: "flex-end"
104
104
  }
105
- }[I] || {
105
+ }[C] || {
106
106
  x: "flex-start",
107
107
  y: "flex-start"
108
108
  };
109
- return F === "row" ? (L = z.x, R = z.y) : (L = z.y, R = z.x), {
110
- justifyContent: L,
111
- alignItems: R
109
+ return S === "row" ? (w = E.x, T = E.y) : (w = E.y, T = E.x), {
110
+ justifyContent: w,
111
+ alignItems: T
112
112
  };
113
113
  }
114
114
  const alignmentToStyle = alignmentToFlex;
115
- function alignmentToCssPosition(o) {
115
+ function alignmentToCssPosition(e) {
116
116
  return {
117
117
  topLeft: "left top",
118
118
  topCenter: "center top",
@@ -123,12 +123,12 @@ function alignmentToCssPosition(o) {
123
123
  bottomLeft: "left bottom",
124
124
  bottomCenter: "center bottom",
125
125
  bottomRight: "right bottom"
126
- }[o] || "center";
126
+ }[e] || "center";
127
127
  }
128
- function alignmentToOrigin(o) {
129
- return alignmentToCssPosition(o);
128
+ function alignmentToOrigin(e) {
129
+ return alignmentToCssPosition(e);
130
130
  }
131
- function alignmentToGrid(o) {
131
+ function alignmentToGrid(e) {
132
132
  return {
133
133
  topLeft: {
134
134
  justifyItems: "start",
@@ -166,7 +166,7 @@ function alignmentToGrid(o) {
166
166
  justifyItems: "end",
167
167
  alignItems: "end"
168
168
  }
169
- }[o] || {
169
+ }[e] || {
170
170
  justifyItems: "start",
171
171
  alignItems: "start"
172
172
  };
@@ -179,168 +179,168 @@ var Align_default = /* @__PURE__ */ defineComponent({
179
179
  widthFactor: {},
180
180
  heightFactor: {}
181
181
  },
182
- setup(o) {
183
- let F = o, I = computed(() => {
184
- let o = {
182
+ setup(e) {
183
+ let S = e, C = computed(() => {
184
+ let e = {
185
185
  display: "flex",
186
186
  position: "relative"
187
187
  };
188
- return Object.assign(o, alignmentToStyle(F.alignment)), F.widthFactor ? o.width = `calc(100% * ${F.widthFactor})` : o.width = "100%", F.heightFactor ? o.height = `calc(100% * ${F.heightFactor})` : o.height = "100%", o;
189
- }), L = computed(() => ({ flexShrink: 0 }));
190
- return (o, F) => (openBlock(), createElementBlock("div", {
188
+ return Object.assign(e, alignmentToStyle(S.alignment)), S.widthFactor ? e.width = `calc(100% * ${S.widthFactor})` : e.width = "100%", S.heightFactor ? e.height = `calc(100% * ${S.heightFactor})` : e.height = "100%", e;
189
+ }), w = computed(() => ({ flexShrink: 0 }));
190
+ return (e, S) => (openBlock(), createElementBlock("div", {
191
191
  class: "flutter-align",
192
- style: normalizeStyle(I.value)
192
+ style: normalizeStyle(C.value)
193
193
  }, [createElementVNode("div", {
194
194
  class: "flutter-align-child",
195
- style: normalizeStyle(L.value)
196
- }, [renderSlot(o.$slots, "default")], 4)], 4));
195
+ style: normalizeStyle(w.value)
196
+ }, [renderSlot(e.$slots, "default")], 4)], 4));
197
197
  }
198
- }), BOX_CONSTRAINTS_SYMBOL = Symbol("boxConstraints"), toVal = (o) => o === Infinity ? void 0 : o;
199
- function BoxConstraints(o = {}) {
200
- let F = Math.max(0, o.minWidth ?? 0), I = Math.max(0, o.minHeight ?? 0), L = Math.max(F, o.maxWidth ?? Infinity), R = Math.max(I, o.maxHeight ?? Infinity);
198
+ }), BOX_CONSTRAINTS_SYMBOL = Symbol("boxConstraints"), toVal = (e) => e === Infinity ? void 0 : e;
199
+ function BoxConstraints(e = {}) {
200
+ let S = Math.max(0, e.minWidth ?? 0), C = Math.max(0, e.minHeight ?? 0), w = Math.max(S, e.maxWidth ?? Infinity), T = Math.max(C, e.maxHeight ?? Infinity);
201
201
  return {
202
- minWidth: toVal(F),
203
- maxWidth: toVal(L),
204
- minHeight: toVal(I),
205
- maxHeight: toVal(R),
202
+ minWidth: toVal(S),
203
+ maxWidth: toVal(w),
204
+ minHeight: toVal(C),
205
+ maxHeight: toVal(T),
206
206
  [BOX_CONSTRAINTS_SYMBOL]: !0
207
207
  };
208
208
  }
209
- BoxConstraints.tight = (o) => BoxConstraints({
210
- minWidth: o.width,
211
- maxWidth: o.width,
212
- minHeight: o.height,
213
- maxHeight: o.height
214
- }), BoxConstraints.loose = (o) => BoxConstraints({
209
+ BoxConstraints.tight = (e) => BoxConstraints({
210
+ minWidth: e.width,
211
+ maxWidth: e.width,
212
+ minHeight: e.height,
213
+ maxHeight: e.height
214
+ }), BoxConstraints.loose = (e) => BoxConstraints({
215
215
  minWidth: 0,
216
- maxWidth: o.width,
216
+ maxWidth: e.width,
217
217
  minHeight: 0,
218
- maxHeight: o.height
219
- }), BoxConstraints.expand = ({ width: o, height: F } = {}) => BoxConstraints({
220
- minWidth: o ?? Infinity,
221
- maxWidth: o ?? Infinity,
222
- minHeight: F ?? Infinity,
223
- maxHeight: F ?? Infinity
218
+ maxHeight: e.height
219
+ }), BoxConstraints.expand = ({ width: e, height: S } = {}) => BoxConstraints({
220
+ minWidth: e ?? Infinity,
221
+ maxWidth: e ?? Infinity,
222
+ minHeight: S ?? Infinity,
223
+ maxHeight: S ?? Infinity
224
224
  });
225
- function isBoxConstraints(o) {
226
- return isPlainObject(o) ? BOX_CONSTRAINTS_SYMBOL in o : !1;
225
+ function isBoxConstraints(e) {
226
+ return isPlainObject(e) ? BOX_CONSTRAINTS_SYMBOL in e : !1;
227
227
  }
228
- function boxConstraintsToStyle(o) {
229
- let F = o ?? {};
228
+ function boxConstraintsToStyle(e) {
229
+ let S = e ?? {};
230
230
  return {
231
- minWidth: px2vw(F.minWidth),
232
- maxWidth: px2vw(F.maxWidth),
233
- minHeight: px2vw(F.minHeight),
234
- maxHeight: px2vw(F.maxHeight)
231
+ minWidth: px2vw(S.minWidth),
232
+ maxWidth: px2vw(S.maxWidth),
233
+ minHeight: px2vw(S.minHeight),
234
+ maxHeight: px2vw(S.maxHeight)
235
235
  };
236
236
  }
237
237
  var BORDER_SIDE_SYMBOL = Symbol("borderSide"), BORDERS_SYMBOL = Symbol("borders");
238
- function BorderSide(o) {
238
+ function BorderSide(e) {
239
239
  return {
240
- width: o.width ? o.width : 1,
241
- color: o.color || "#000",
242
- style: o.style || "solid",
240
+ width: e.width ? e.width : 1,
241
+ color: e.color || "#000",
242
+ style: e.style || "solid",
243
243
  [BORDER_SIDE_SYMBOL]: !0
244
244
  };
245
245
  }
246
246
  const Border = BorderSide;
247
- Border.all = ({ color: o, width: F, style: I } = {}) => {
248
- let L = Border({
249
- color: o,
250
- width: F,
251
- style: I
247
+ Border.all = ({ color: e, width: S, style: C } = {}) => {
248
+ let w = Border({
249
+ color: e,
250
+ width: S,
251
+ style: C
252
252
  });
253
253
  return {
254
- top: L,
255
- bottom: L,
256
- left: L,
257
- right: L,
254
+ top: w,
255
+ bottom: w,
256
+ left: w,
257
+ right: w,
258
258
  [BORDERS_SYMBOL]: !0
259
259
  };
260
260
  };
261
- function isBorderSide(o) {
262
- return isPlainObject(o) ? BORDER_SIDE_SYMBOL in o : !1;
263
- }
264
- function isBorders(o) {
265
- return isPlainObject(o) ? BORDERS_SYMBOL in o : !1;
266
- }
267
- function borderSideToString(o) {
268
- if (!o) return;
269
- let F = [], { width: I, color: L, style: R } = o;
270
- return I && F.push(I > 1 ? px2vw(I) : I + "px"), L && F.push(L), R && F.push(R), `${F.join(" ")}`;
271
- }
272
- function borderSideToStyle(o) {
273
- if (!o) return {};
274
- let F = borderSideToString(o);
275
- return F ? { border: F } : {};
276
- }
277
- function borderToStyle(o) {
278
- if (o) return {
279
- borderLeft: borderSideToString(o.left),
280
- borderTop: borderSideToString(o.top),
281
- borderRight: borderSideToString(o.right),
282
- borderBottom: borderSideToString(o.bottom)
261
+ function isBorderSide(e) {
262
+ return isPlainObject(e) ? BORDER_SIDE_SYMBOL in e : !1;
263
+ }
264
+ function isBorders(e) {
265
+ return isPlainObject(e) ? BORDERS_SYMBOL in e : !1;
266
+ }
267
+ function borderSideToString(e) {
268
+ if (!e) return;
269
+ let S = [], { width: C, color: w, style: T } = e;
270
+ return C && S.push(C > 1 ? px2vw(C) : C + "px"), w && S.push(w), T && S.push(T), `${S.join(" ")}`;
271
+ }
272
+ function borderSideToStyle(e) {
273
+ if (!e) return {};
274
+ let S = borderSideToString(e);
275
+ return S ? { border: S } : {};
276
+ }
277
+ function borderToStyle(e) {
278
+ if (e) return {
279
+ borderLeft: borderSideToString(e.left),
280
+ borderTop: borderSideToString(e.top),
281
+ borderRight: borderSideToString(e.right),
282
+ borderBottom: borderSideToString(e.bottom)
283
283
  };
284
284
  }
285
285
  var BORDER_RADIUS_SYMBOL = Symbol("borderRadius");
286
- function BorderRadius(o) {
287
- let { topLeft: F, topRight: I, bottomLeft: L, bottomRight: R } = o;
286
+ function BorderRadius(e) {
287
+ let { topLeft: S, topRight: C, bottomLeft: w, bottomRight: T } = e;
288
288
  return {
289
- topLeft: F || 0,
290
- topRight: I || 0,
291
- bottomLeft: L || 0,
292
- bottomRight: R || 0,
289
+ topLeft: S || 0,
290
+ topRight: C || 0,
291
+ bottomLeft: w || 0,
292
+ bottomRight: T || 0,
293
293
  [BORDER_RADIUS_SYMBOL]: !0
294
294
  };
295
295
  }
296
- BorderRadius.all = (o) => ({
297
- topLeft: o,
298
- topRight: o,
299
- bottomLeft: o,
300
- bottomRight: o,
296
+ BorderRadius.all = (e) => ({
297
+ topLeft: e,
298
+ topRight: e,
299
+ bottomLeft: e,
300
+ bottomRight: e,
301
301
  [BORDER_RADIUS_SYMBOL]: !0
302
- }), BorderRadius.circular = (o) => BorderRadius.all(o), BorderRadius.only = ({ topLeft: o, topRight: F, bottomLeft: I, bottomRight: L }) => BorderRadius({
303
- topLeft: o,
304
- topRight: F,
305
- bottomLeft: I,
306
- bottomRight: L
302
+ }), BorderRadius.circular = (e) => BorderRadius.all(e), BorderRadius.only = ({ topLeft: e, topRight: S, bottomLeft: C, bottomRight: w }) => BorderRadius({
303
+ topLeft: e,
304
+ topRight: S,
305
+ bottomLeft: C,
306
+ bottomRight: w
307
307
  }), BorderRadius.zero = BorderRadius({});
308
- function isBorderRadius(o) {
309
- return typeof o == "object" && !!o && BORDER_RADIUS_SYMBOL in o;
308
+ function isBorderRadius(e) {
309
+ return typeof e == "object" && !!e && BORDER_RADIUS_SYMBOL in e;
310
310
  }
311
- function borderRadiusToStyle(o) {
312
- if (!o) return {};
313
- let { topLeft: F, topRight: I, bottomLeft: L, bottomRight: R } = o, z = {};
314
- return L && (z.borderBottomLeftRadius = px2vw(L)), R && (z.borderBottomRightRadius = px2vw(R)), F && (z.borderTopLeftRadius = px2vw(F)), I && (z.borderTopRightRadius = px2vw(I)), z;
311
+ function borderRadiusToStyle(e) {
312
+ if (!e) return {};
313
+ let { topLeft: S, topRight: C, bottomLeft: w, bottomRight: T } = e, E = {};
314
+ return w && (E.borderBottomLeftRadius = px2vw(w)), T && (E.borderBottomRightRadius = px2vw(T)), S && (E.borderTopLeftRadius = px2vw(S)), C && (E.borderTopRightRadius = px2vw(C)), E;
315
315
  }
316
- let BlurStyle = /* @__PURE__ */ function(o) {
317
- return o.normal = "normal", o.solid = "solid", o.outer = "outer", o.inner = "inner", o;
316
+ let BlurStyle = /* @__PURE__ */ function(e) {
317
+ return e.normal = "normal", e.solid = "solid", e.outer = "outer", e.inner = "inner", e;
318
318
  }({});
319
319
  var BOX_SHADOW_SYMBOL = Symbol("boxShadow");
320
- function BoxShadow(o = {}) {
320
+ function BoxShadow(e = {}) {
321
321
  return {
322
- color: o.color || "rgba(0, 0, 0, 0.2)",
323
- offset: o.offset || {
322
+ color: e.color || "rgba(0, 0, 0, 0.2)",
323
+ offset: e.offset || {
324
324
  x: 0,
325
325
  y: 0
326
326
  },
327
- blurRadius: o.blurRadius || 0,
328
- spreadRadius: o.spreadRadius || 0,
329
- blurStyle: o.blurStyle || BlurStyle.normal,
327
+ blurRadius: e.blurRadius || 0,
328
+ spreadRadius: e.spreadRadius || 0,
329
+ blurStyle: e.blurStyle || BlurStyle.normal,
330
330
  [BOX_SHADOW_SYMBOL]: !0
331
331
  };
332
332
  }
333
- function isBoxShadow(o) {
334
- return isPlainObject(o) ? BOX_SHADOW_SYMBOL in o : !1;
333
+ function isBoxShadow(e) {
334
+ return isPlainObject(e) ? BOX_SHADOW_SYMBOL in e : !1;
335
335
  }
336
- function boxShadowToCSS(o) {
337
- return `${px2vw(o.offset?.x || 0)} ${px2vw(o.offset?.y || 0)} ${px2vw(o.blurRadius || 0)} ${px2vw(o.spreadRadius || 0)} ${o.color || "rgba(0,0,0,0.2)"} ${o.blurStyle === BlurStyle.inner ? "inset" : ""}`.trim();
336
+ function boxShadowToCSS(e) {
337
+ return `${px2vw(e.offset?.x || 0)} ${px2vw(e.offset?.y || 0)} ${px2vw(e.blurRadius || 0)} ${px2vw(e.spreadRadius || 0)} ${e.color || "rgba(0,0,0,0.2)"} ${e.blurStyle === BlurStyle.inner ? "inset" : ""}`.trim();
338
338
  }
339
- let TileMode = /* @__PURE__ */ function(o) {
340
- return o.clamp = "clamp", o.repeated = "repeated", o.mirror = "mirror", o.decal = "decal", o;
339
+ let TileMode = /* @__PURE__ */ function(e) {
340
+ return e.clamp = "clamp", e.repeated = "repeated", e.mirror = "mirror", e.decal = "decal", e;
341
341
  }({});
342
- function alignmentToCSSSide(o) {
343
- switch (o) {
342
+ function alignmentToCSSSide(e) {
343
+ switch (e) {
344
344
  case Alignment.topLeft: return "to bottom right";
345
345
  case Alignment.topCenter: return "to bottom";
346
346
  case Alignment.topRight: return "to bottom left";
@@ -352,20 +352,20 @@ function alignmentToCSSSide(o) {
352
352
  default: return "to bottom";
353
353
  }
354
354
  }
355
- function calculateLinearDirection(o, F) {
356
- return o === Alignment.topCenter && F === Alignment.bottomCenter ? "to bottom" : o === Alignment.bottomCenter && F === Alignment.topCenter ? "to top" : o === Alignment.centerLeft && F === Alignment.centerRight ? "to right" : o === Alignment.centerRight && F === Alignment.centerLeft ? "to left" : o === Alignment.topLeft && F === Alignment.bottomRight ? "to bottom right" : o === Alignment.bottomRight && F === Alignment.topLeft ? "to top left" : o === Alignment.topRight && F === Alignment.bottomLeft ? "to bottom left" : o === Alignment.bottomLeft && F === Alignment.topRight ? "to top right" : alignmentToCSSSide(o);
355
+ function calculateLinearDirection(e, S) {
356
+ return e === Alignment.topCenter && S === Alignment.bottomCenter ? "to bottom" : e === Alignment.bottomCenter && S === Alignment.topCenter ? "to top" : e === Alignment.centerLeft && S === Alignment.centerRight ? "to right" : e === Alignment.centerRight && S === Alignment.centerLeft ? "to left" : e === Alignment.topLeft && S === Alignment.bottomRight ? "to bottom right" : e === Alignment.bottomRight && S === Alignment.topLeft ? "to top left" : e === Alignment.topRight && S === Alignment.bottomLeft ? "to bottom left" : e === Alignment.bottomLeft && S === Alignment.topRight ? "to top right" : alignmentToCSSSide(e);
357
357
  }
358
- function LinearGradient(o) {
359
- let { colors: F, stops: I, begin: L = Alignment.centerLeft, end: R = Alignment.centerRight } = o;
360
- if (!F || F.length === 0) return "none";
361
- let z = calculateLinearDirection(L, R), B = "";
362
- return B = I && I.length === F.length ? F.map((o, F) => `${o} ${I[F] * 100}%`).join(", ") : F.join(", "), `linear-gradient(${z}, ${B})`;
358
+ function LinearGradient(e) {
359
+ let { colors: S, stops: C, begin: w = Alignment.centerLeft, end: T = Alignment.centerRight } = e;
360
+ if (!S || S.length === 0) return "none";
361
+ let E = calculateLinearDirection(w, T), D = "";
362
+ return D = C && C.length === S.length ? S.map((e, S) => `${e} ${C[S] * 100}%`).join(", ") : S.join(", "), `linear-gradient(${E}, ${D})`;
363
363
  }
364
- function RadialGradient(o) {
365
- let { colors: F, stops: I, center: L = Alignment.center } = o;
366
- if (!F || F.length === 0) return "none";
367
- let R = alignmentToCssPosition(L), z = "";
368
- return z = I && I.length === F.length ? F.map((o, F) => `${o} ${I[F] * 100}%`).join(", ") : F.join(", "), `radial-gradient(circle at ${R}, ${z})`;
364
+ function RadialGradient(e) {
365
+ let { colors: S, stops: C, center: w = Alignment.center } = e;
366
+ if (!S || S.length === 0) return "none";
367
+ let T = alignmentToCssPosition(w), E = "";
368
+ return E = C && C.length === S.length ? S.map((e, S) => `${e} ${C[S] * 100}%`).join(", ") : S.join(", "), `radial-gradient(circle at ${T}, ${E})`;
369
369
  }
370
370
  const BoxFit = {
371
371
  fitWidth: "fitWidth",
@@ -392,52 +392,51 @@ var ImageFitMap = {
392
392
  center: "center"
393
393
  };
394
394
  const BoxAlignment = Alignment;
395
- let BoxShape = /* @__PURE__ */ function(o) {
396
- return o.rectangle = "rectangle", o.circle = "circle", o;
395
+ let BoxShape = /* @__PURE__ */ function(e) {
396
+ return e.rectangle = "rectangle", e.circle = "circle", e;
397
397
  }({});
398
398
  var _baseUrl = "";
399
- function setBaseUrl(o) {
400
- _baseUrl = o;
401
- }
402
- function normalizeSrc(o) {
403
- if (!o) return "";
404
- if (/^(https?:|file:|blob:|data:|\/\/)/i.test(o) || /^(linear|radial|conic|repeating-linear|repeating-radial)-gradient\(/.test(o) || !_baseUrl || _baseUrl === "/") return o;
405
- let F = _baseUrl.endsWith("/") ? _baseUrl.slice(0, -1) : _baseUrl;
406
- return o.startsWith(F) ? o : `${F}/${o.startsWith("/") ? o.slice(1) : o}`;
407
- }
408
- const NetworkImage = (o) => o, AssetImage = (o) => o;
409
- function DecorationImage(o) {
410
- return o;
411
- }
412
- var BOX_DECORATION_SYMBOL = Symbol("boxDecoration"), isGradient = (o) => /^(linear|radial|conic|repeating-linear|repeating-radial)-gradient\(/.test(o);
413
- function decorationImageToStyle(o) {
414
- if (!o) return {};
415
- let F = {}, I = normalizeSrc(o.image);
416
- if (F.backgroundImage = isGradient(I) ? I : `url(${I})`, o.fit && (F.backgroundSize = ImageFitMap[o.fit] || o.fit), F.backgroundAttachment = o.attachment, F.backgroundBlendMode = o.blendMode, F.backgroundClip = o.clip, F.backgroundOrigin = o.origin, F.backgroundRepeat = o.repeat ?? "no-repeat", o.alignment) {
417
- let I = alignmentToCssPosition(o.alignment);
418
- if (I && I !== "center") F.backgroundPosition = I;
419
- else if (o.alignment !== Alignment.center) if (Object.keys(Alignment).includes(o.alignment)) F.backgroundPosition = alignmentToCssPosition(o.alignment);
399
+ function setBaseUrl(e) {
400
+ _baseUrl = e;
401
+ }
402
+ function normalizeSrc(e) {
403
+ if (!e) return "";
404
+ if (/^(https?:|file:|blob:|data:|\/\/)/i.test(e) || /^(linear|radial|conic|repeating-linear|repeating-radial)-gradient\(/.test(e) || !_baseUrl || _baseUrl === "/") return e;
405
+ let S = _baseUrl.endsWith("/") ? _baseUrl.slice(0, -1) : _baseUrl;
406
+ return e.startsWith(S) ? e : `${S}/${e.startsWith("/") ? e.slice(1) : e}`;
407
+ }
408
+ function DecorationImage(e) {
409
+ return e;
410
+ }
411
+ var BOX_DECORATION_SYMBOL = Symbol("boxDecoration"), isGradient = (e) => /^(linear|radial|conic|repeating-linear|repeating-radial)-gradient\(/.test(e);
412
+ function decorationImageToStyle(e) {
413
+ if (!e) return {};
414
+ let S = {}, C = normalizeSrc(typeof e.image == "string" ? e.image : e.image.src);
415
+ if (S.backgroundImage = isGradient(C) ? C : `url(${C})`, e.fit && (S.backgroundSize = ImageFitMap[e.fit] || e.fit), S.backgroundAttachment = e.attachment, S.backgroundBlendMode = e.blendMode, S.backgroundClip = e.clip, S.backgroundOrigin = e.origin, S.backgroundRepeat = e.repeat ?? "no-repeat", e.alignment) {
416
+ let C = alignmentToCssPosition(e.alignment);
417
+ if (C && C !== "center") S.backgroundPosition = C;
418
+ else if (e.alignment !== Alignment.center) if (Object.keys(Alignment).includes(e.alignment)) S.backgroundPosition = alignmentToCssPosition(e.alignment);
420
419
  else {
421
- let [I, L] = (o.alignment || "").split(" ");
422
- I && !cssPoisitions[I] && (I = px2vw(I)), L && !cssPoisitions[L] && (L = px2vw(L)), I && !L && (L = "center"), F.backgroundPosition = `${I} ${L}`;
420
+ let [C, w] = (e.alignment || "").split(" ");
421
+ C && !cssPoisitions[C] && (C = px2vw(C)), w && !cssPoisitions[w] && (w = px2vw(w)), C && !w && (w = "center"), S.backgroundPosition = `${C} ${w}`;
423
422
  }
424
- else F.backgroundPosition = "center";
423
+ else S.backgroundPosition = "center";
425
424
  }
426
- return F;
425
+ return S;
427
426
  }
428
- function boxDecorationToStyle(o) {
429
- if (!o) return {};
430
- let { color: F, border: I, borderRadius: L, boxShadow: R, gradient: z, image: B, overflow: V, opacity: H, shape: U } = o, W = {};
431
- return F && (W.backgroundColor = F), H !== void 0 && (W.opacity = H), V && (W.overflow = V), z && (W.backgroundImage = z), B && Object.assign(W, decorationImageToStyle(B)), I && Object.assign(W, borderToStyle(I)), U === BoxShape.circle ? W.borderRadius = "50%" : L && Object.assign(W, borderRadiusToStyle(L)), R && (W.boxShadow = (Array.isArray(R) ? R : [R]).map(boxShadowToCSS).join(", ")), W;
427
+ function boxDecorationToStyle(e) {
428
+ if (!e) return {};
429
+ let { color: S, border: C, borderRadius: w, boxShadow: T, gradient: E, image: D, overflow: O, opacity: k, shape: A } = e, j = {};
430
+ return S && (j.backgroundColor = S), k !== void 0 && (j.opacity = k), O && (j.overflow = O), E && (j.backgroundImage = E), D && Object.assign(j, decorationImageToStyle(D)), C && Object.assign(j, borderToStyle(C)), A === BoxShape.circle ? j.borderRadius = "50%" : w && Object.assign(j, borderRadiusToStyle(w)), T && (j.boxShadow = (Array.isArray(T) ? T : [T]).map(boxShadowToCSS).join(", ")), j;
432
431
  }
433
- function BoxDecoration(o) {
432
+ function BoxDecoration(e) {
434
433
  return {
435
- ...o,
434
+ ...e,
436
435
  [BOX_DECORATION_SYMBOL]: !0
437
436
  };
438
437
  }
439
- function isBoxDecoration(o) {
440
- return isPlainObject(o) ? BOX_DECORATION_SYMBOL in o : !1;
438
+ function isBoxDecoration(e) {
439
+ return isPlainObject(e) ? BOX_DECORATION_SYMBOL in e : !1;
441
440
  }
442
441
  const Clip = {
443
442
  none: "none",
@@ -446,45 +445,45 @@ const Clip = {
446
445
  antiAliasWithSaveLayer: "antiAliasWithSaveLayer"
447
446
  };
448
447
  var EDGE_INSETS_SYMBOL = Symbol("edgeInsets");
449
- function EdgeInsets(o) {
450
- let { top: F, right: I, bottom: L, left: R, horizontal: z, vertical: B } = o;
448
+ function EdgeInsets(e) {
449
+ let { top: S, right: C, bottom: w, left: T, horizontal: E, vertical: D } = e;
451
450
  return {
452
- top: F ?? B ?? 0,
453
- right: I ?? z ?? 0,
454
- bottom: L ?? B ?? 0,
455
- left: R ?? z ?? 0,
451
+ top: S ?? D ?? 0,
452
+ right: C ?? E ?? 0,
453
+ bottom: w ?? D ?? 0,
454
+ left: T ?? E ?? 0,
456
455
  [EDGE_INSETS_SYMBOL]: !0
457
456
  };
458
457
  }
459
- EdgeInsets.all = (o) => ({
460
- top: o,
461
- right: o,
462
- bottom: o,
463
- left: o,
458
+ EdgeInsets.all = (e) => ({
459
+ top: e,
460
+ right: e,
461
+ bottom: e,
462
+ left: e,
464
463
  [EDGE_INSETS_SYMBOL]: !0
465
- }), EdgeInsets.symmetric = ({ vertical: o, horizontal: F }) => EdgeInsets({
466
- vertical: o,
467
- horizontal: F
468
- }), EdgeInsets.only = ({ top: o, right: F, bottom: I, left: L }) => EdgeInsets({
469
- top: o,
470
- right: F,
471
- bottom: I,
472
- left: L
464
+ }), EdgeInsets.symmetric = ({ vertical: e, horizontal: S }) => EdgeInsets({
465
+ vertical: e,
466
+ horizontal: S
467
+ }), EdgeInsets.only = ({ top: e, right: S, bottom: C, left: w }) => EdgeInsets({
468
+ top: e,
469
+ right: S,
470
+ bottom: C,
471
+ left: w
473
472
  }), EdgeInsets.zero = EdgeInsets({});
474
- function isEdgeInsets(o) {
475
- return typeof o == "object" && !!o && EDGE_INSETS_SYMBOL in o;
473
+ function isEdgeInsets(e) {
474
+ return typeof e == "object" && !!e && EDGE_INSETS_SYMBOL in e;
476
475
  }
477
- function edgeInsetsToStyle(o, F) {
478
- if (!F) return {};
479
- let I = EdgeInsets(F);
476
+ function edgeInsetsToStyle(e, S) {
477
+ if (!S) return {};
478
+ let C = EdgeInsets(S);
480
479
  return {
481
- [`${o}Top`]: px2vw(I.top),
482
- [`${o}Right`]: px2vw(I.right),
483
- [`${o}Bottom`]: px2vw(I.bottom),
484
- [`${o}Left`]: px2vw(I.left)
480
+ [`${e}Top`]: px2vw(C.top),
481
+ [`${e}Right`]: px2vw(C.right),
482
+ [`${e}Bottom`]: px2vw(C.bottom),
483
+ [`${e}Left`]: px2vw(C.left)
485
484
  };
486
485
  }
487
- const paddingToStyle = (o) => edgeInsetsToStyle("padding", o), marginToStyle = (o) => edgeInsetsToStyle("margin", o), CrossAxisAlignment = {
486
+ const paddingToStyle = (e) => edgeInsetsToStyle("padding", e), marginToStyle = (e) => edgeInsetsToStyle("margin", e), CrossAxisAlignment = {
488
487
  start: "start",
489
488
  end: "end",
490
489
  center: "center",
@@ -515,35 +514,35 @@ const paddingToStyle = (o) => edgeInsetsToStyle("padding", o), marginToStyle = (
515
514
  expand: "expand",
516
515
  passthrough: "passthrough"
517
516
  };
518
- function Size(o) {
519
- let { width: F, height: I } = o;
517
+ function Size(e) {
518
+ let { width: S, height: C } = e;
520
519
  return {
521
- width: F,
522
- height: I
520
+ width: S,
521
+ height: C
523
522
  };
524
523
  }
525
- Size.square = (o) => Size({
526
- width: o,
527
- height: o
524
+ Size.square = (e) => Size({
525
+ width: e,
526
+ height: e
528
527
  }), Size.zero = Size({
529
528
  width: 0,
530
529
  height: 0
531
530
  }), Size.infinite = Size({
532
531
  width: Infinity,
533
532
  height: Infinity
534
- }), Size.fromHeight = (o) => Size({
533
+ }), Size.fromHeight = (e) => Size({
535
534
  width: Infinity,
536
- height: o
537
- }), Size.fromWidth = (o) => Size({
538
- width: o,
535
+ height: e
536
+ }), Size.fromWidth = (e) => Size({
537
+ width: e,
539
538
  height: Infinity
540
539
  });
541
- function sizeToStyle(o) {
542
- if (!o) return;
543
- let { width: F, height: I } = o;
540
+ function sizeToStyle(e) {
541
+ if (!e) return;
542
+ let { width: S, height: C } = e;
544
543
  return {
545
- width: px2vw(F),
546
- height: px2vw(I)
544
+ width: px2vw(S),
545
+ height: px2vw(C)
547
546
  };
548
547
  }
549
548
  var GESTURE_HANDLED = Symbol("gesture_handled");
@@ -556,108 +555,108 @@ const events = [
556
555
  "pan-update",
557
556
  "pan-end"
558
557
  ];
559
- function useGestures({ emit: o }) {
560
- let F = ref(0), I = ref(null), L = ref(!1), R = ref({
558
+ function useGestures({ emit: e }) {
559
+ let S = ref(0), C = ref(null), w = ref(!1), T = ref({
561
560
  x: 0,
562
561
  y: 0
563
- }), z = ref({
562
+ }), E = ref({
564
563
  x: 0,
565
564
  y: 0
566
- }), B = {
567
- onTap: () => o("tap"),
568
- onClick: (F) => o("click", F),
569
- onDoubleTap: () => o("double-tap"),
570
- onLongPress: () => o("long-press"),
571
- onPanStart: (F) => o("pan-start", F),
572
- onPanUpdate: (F) => o("pan-update", F),
573
- onPanEnd: () => o("pan-end")
574
- }, V = (o) => {
575
- if (o[GESTURE_HANDLED]) return;
576
- o[GESTURE_HANDLED] = !0;
577
- let I = Date.now();
578
- I - F.value < 300 ? (B.onDoubleTap?.(), F.value = 0) : (B.onTap?.(), B.onClick?.(o), F.value = I);
579
- }, H = (o) => {
580
- o[GESTURE_HANDLED] || (o[GESTURE_HANDLED] = !0, Y(), Z(o.clientX, o.clientY), window.addEventListener("mousemove", U), window.addEventListener("mouseup", W));
581
- }, U = (o) => {
582
- (Math.abs(o.clientX - R.value.x) > 5 || Math.abs(o.clientY - R.value.y) > 5) && X(), Q(o.clientX, o.clientY);
583
- }, W = () => {
584
- X(), $(), window.removeEventListener("mousemove", U), window.removeEventListener("mouseup", W);
585
- }, G = (o) => {
586
- if (o[GESTURE_HANDLED] || (o[GESTURE_HANDLED] = !0, o.touches.length > 1)) return;
587
- let F = o.touches[0];
588
- Y(), Z(F.clientX, F.clientY);
589
- }, K = (o) => {
590
- if (o[GESTURE_HANDLED]) return;
591
- o[GESTURE_HANDLED] = !0;
592
- let F = o.touches[0];
593
- (Math.abs(F.clientX - R.value.x) > 5 || Math.abs(F.clientY - R.value.y) > 5) && X(), Q(F.clientX, F.clientY);
594
- }, q = (o) => {
595
- o[GESTURE_HANDLED] || (o[GESTURE_HANDLED] = !0, X(), $());
596
- }, J = (o) => {
597
- o[GESTURE_HANDLED] || (o[GESTURE_HANDLED] = !0, X(), $());
598
- }, Y = () => {
599
- X(), I.value = window.setTimeout(() => {
600
- B.onLongPress?.();
565
+ }), D = {
566
+ onTap: () => e("tap"),
567
+ onClick: (S) => e("click", S),
568
+ onDoubleTap: () => e("double-tap"),
569
+ onLongPress: () => e("long-press"),
570
+ onPanStart: (S) => e("pan-start", S),
571
+ onPanUpdate: (S) => e("pan-update", S),
572
+ onPanEnd: () => e("pan-end")
573
+ }, O = (e) => {
574
+ if (e[GESTURE_HANDLED]) return;
575
+ e[GESTURE_HANDLED] = !0;
576
+ let C = Date.now();
577
+ C - S.value < 300 ? (D.onDoubleTap?.(), S.value = 0) : (D.onTap?.(), D.onClick?.(e), S.value = C);
578
+ }, k = (e) => {
579
+ e[GESTURE_HANDLED] || (e[GESTURE_HANDLED] = !0, I(), R(e.clientX, e.clientY), window.addEventListener("mousemove", A), window.addEventListener("mouseup", j));
580
+ }, A = (e) => {
581
+ (Math.abs(e.clientX - T.value.x) > 5 || Math.abs(e.clientY - T.value.y) > 5) && L(), z(e.clientX, e.clientY);
582
+ }, j = () => {
583
+ L(), B(), window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", j);
584
+ }, M = (e) => {
585
+ if (e[GESTURE_HANDLED] || (e[GESTURE_HANDLED] = !0, e.touches.length > 1)) return;
586
+ let S = e.touches[0];
587
+ I(), R(S.clientX, S.clientY);
588
+ }, N = (e) => {
589
+ if (e[GESTURE_HANDLED]) return;
590
+ e[GESTURE_HANDLED] = !0;
591
+ let S = e.touches[0];
592
+ (Math.abs(S.clientX - T.value.x) > 5 || Math.abs(S.clientY - T.value.y) > 5) && L(), z(S.clientX, S.clientY);
593
+ }, P = (e) => {
594
+ e[GESTURE_HANDLED] || (e[GESTURE_HANDLED] = !0, L(), B());
595
+ }, F = (e) => {
596
+ e[GESTURE_HANDLED] || (e[GESTURE_HANDLED] = !0, L(), B());
597
+ }, I = () => {
598
+ L(), C.value = window.setTimeout(() => {
599
+ D.onLongPress?.();
601
600
  }, 500);
602
- }, X = () => {
603
- I.value &&= (clearTimeout(I.value), null);
604
- }, Z = (o, F) => {
605
- R.value = {
606
- x: o,
607
- y: F
608
- }, z.value = {
609
- x: o,
610
- y: F
611
- }, L.value = !0, B.onPanStart?.({ globalPosition: {
612
- x: o,
613
- y: F
601
+ }, L = () => {
602
+ C.value &&= (clearTimeout(C.value), null);
603
+ }, R = (e, S) => {
604
+ T.value = {
605
+ x: e,
606
+ y: S
607
+ }, E.value = {
608
+ x: e,
609
+ y: S
610
+ }, w.value = !0, D.onPanStart?.({ globalPosition: {
611
+ x: e,
612
+ y: S
614
613
  } });
615
- }, Q = (o, F) => {
616
- if (!L.value) return;
617
- let I = o - z.value.x, R = F - z.value.y;
618
- I === 0 && R === 0 || (B.onPanUpdate?.({
614
+ }, z = (e, S) => {
615
+ if (!w.value) return;
616
+ let C = e - E.value.x, T = S - E.value.y;
617
+ C === 0 && T === 0 || (D.onPanUpdate?.({
619
618
  delta: {
620
- x: I,
621
- y: R
619
+ x: C,
620
+ y: T
622
621
  },
623
622
  globalPosition: {
624
- x: o,
625
- y: F
623
+ x: e,
624
+ y: S
626
625
  }
627
- }), z.value = {
628
- x: o,
629
- y: F
626
+ }), E.value = {
627
+ x: e,
628
+ y: S
630
629
  });
631
- }, $ = () => {
632
- L.value && (L.value = !1, B.onPanEnd?.());
630
+ }, B = () => {
631
+ w.value && (w.value = !1, D.onPanEnd?.());
633
632
  };
634
633
  return {
635
- onClick: V,
636
- onMousedown: H,
637
- onMouseup: W,
638
- onMousemove: U,
639
- onTouchstart: G,
640
- onTouchmove: K,
641
- onTouchend: q,
642
- onTouchcancel: J
634
+ onClick: O,
635
+ onMousedown: k,
636
+ onMouseup: j,
637
+ onMousemove: A,
638
+ onTouchstart: M,
639
+ onTouchmove: N,
640
+ onTouchend: P,
641
+ onTouchcancel: F
643
642
  };
644
643
  }
645
644
  var S_EVENTS = Symbol("events"), S_BEHAVIOR = Symbol("behavior");
646
645
  function useGestureStyle() {
647
- let o = inject(S_BEHAVIOR, "deferToChild"), F = {};
648
- return (o === "opaque" || o === "translucent") && (F.cursor = "pointer", F.userSelect = "none"), F;
646
+ let e = inject(S_BEHAVIOR, "deferToChild"), S = {};
647
+ return (e === "opaque" || e === "translucent") && (S.cursor = "pointer", S.userSelect = "none"), S;
649
648
  }
650
649
  function useGestureEvents() {
651
650
  return inject(S_EVENTS, void 0);
652
651
  }
653
- function provideGesture(o, F) {
654
- provide(S_EVENTS, o), provide(S_BEHAVIOR, F);
652
+ function provideGesture(e, S) {
653
+ provide(S_EVENTS, e), provide(S_BEHAVIOR, S);
655
654
  }
656
655
  function useSafeAttrs() {
657
- let o = useAttrs();
656
+ let e = useAttrs();
658
657
  return computed(() => {
659
- let { class: F, style: I, ...L } = o ?? {};
660
- return L;
658
+ let { class: S, style: C, ...w } = e ?? {};
659
+ return w;
661
660
  });
662
661
  }
663
662
  var StyleInjectionKey = Symbol("fluekit-style-provider"), Injector = defineComponent({
@@ -667,8 +666,8 @@ var StyleInjectionKey = Symbol("fluekit-style-provider"), Injector = defineCompo
667
666
  type: Object,
668
667
  default: () => ({})
669
668
  } },
670
- setup(o, { slots: F }) {
671
- return provide(StyleInjectionKey, computed(() => o.style)), () => F.default?.() || null;
669
+ setup(e, { slots: S }) {
670
+ return provide(StyleInjectionKey, computed(() => e.style)), () => S.default?.() || null;
672
671
  }
673
672
  });
674
673
  function useStyles() {
@@ -686,21 +685,21 @@ const StyleProvider = defineComponent({
686
685
  default: () => ({})
687
686
  }
688
687
  },
689
- setup(o, { slots: F }) {
688
+ setup(e, { slots: S }) {
690
689
  return () => {
691
- let I = F.default?.() ?? [];
692
- return I.length <= 0 ? null : cloneAndMergeStyles(I, o.style, o.attrs);
690
+ let C = S.default?.() ?? [];
691
+ return C.length <= 0 ? null : cloneAndMergeStyles(C, e.style, e.attrs);
693
692
  };
694
693
  }
695
694
  });
696
- function cloneAndMergeStyles(R, z, B) {
697
- return R.map((R) => R && (R.type === Fragment ? Array.isArray(R.children) ? h(Fragment, cloneAndMergeStyles(R.children, z, B)) : R : R.type === Comment || R.type === Text ? R : isHtmlTag(R) ? cloneVNode(R, { style: {
698
- ...R.props?.style || {},
699
- ...z
695
+ function cloneAndMergeStyles(T, E, D) {
696
+ return T.map((T) => T && (T.type === Fragment ? Array.isArray(T.children) ? h(Fragment, cloneAndMergeStyles(T.children, E, D)) : T : T.type === Comment || T.type === Text ? T : isHtmlTag(T) ? cloneVNode(T, { style: {
697
+ ...T.props?.style || {},
698
+ ...E
700
699
  } }) : h(Injector, {
701
- ...B,
702
- style: z
703
- }, { default: () => R })));
700
+ ...D,
701
+ style: E
702
+ }, { default: () => T })));
704
703
  }
705
704
  var AnimatedContainer_default = /* @__PURE__ */ defineComponent({
706
705
  inheritAttrs: !1,
@@ -721,54 +720,54 @@ var AnimatedContainer_default = /* @__PURE__ */ defineComponent({
721
720
  duration: { default: 300 },
722
721
  curve: { default: "linear" }
723
722
  },
724
- setup(o) {
725
- let F = useStyles(), I = useSafeAttrs(), L = useGestureEvents(), z = computed(() => F.value.pointerEvents == "none" ? I.value : {
726
- ...I.value,
727
- ...L || {}
728
- }), H = useGestureStyle(), U = o, W = computed(() => `all ${U.duration}ms ${U.curve}`), G = computed(() => {
729
- let o = {
730
- ...sizeToStyle(U),
731
- ...paddingToStyle(U.padding),
732
- ...marginToStyle(U.margin),
733
- ...boxDecorationToStyle(U.decoration),
734
- ...alignmentToStyle(U.alignment, "column"),
735
- ...boxConstraintsToStyle(U.constraints),
736
- ...H,
737
- transition: W.value
723
+ setup(e) {
724
+ let S = useStyles(), C = useSafeAttrs(), w = useGestureEvents(), E = computed(() => S.value.pointerEvents == "none" ? C.value : {
725
+ ...C.value,
726
+ ...w || {}
727
+ }), k = useGestureStyle(), A = e, j = computed(() => `all ${A.duration}ms ${A.curve}`), M = computed(() => {
728
+ let e = {
729
+ ...sizeToStyle(A),
730
+ ...paddingToStyle(A.padding),
731
+ ...marginToStyle(A.margin),
732
+ ...boxDecorationToStyle(A.decoration),
733
+ ...alignmentToStyle(A.alignment, "column"),
734
+ ...boxConstraintsToStyle(A.constraints),
735
+ ...k,
736
+ transition: j.value
738
737
  };
739
- if (U.color && !U.decoration && (o.backgroundColor = U.color), U.transform && (o.transform = U.transform, U.transformAlignment && (o.transformOrigin = alignmentToOrigin(U.transformAlignment))), U.clipBehavior !== "none") switch (U.clipBehavior) {
738
+ if (A.color && !A.decoration && (e.backgroundColor = A.color), A.transform && (e.transform = A.transform, A.transformAlignment && (e.transformOrigin = alignmentToOrigin(A.transformAlignment))), A.clipBehavior !== "none") switch (A.clipBehavior) {
740
739
  case "hardEdge":
741
- o.overflow = "hidden";
740
+ e.overflow = "hidden";
742
741
  break;
743
742
  case "antiAlias":
744
- o.overflow = "hidden";
743
+ e.overflow = "hidden";
745
744
  break;
746
745
  default: break;
747
746
  }
748
747
  return {
749
- ...o,
748
+ ...e,
750
749
  display: "flex",
751
750
  flexDirection: "column",
752
751
  flexShrink: 0,
753
752
  boxSizing: "border-box",
754
753
  position: "relative"
755
754
  };
756
- }), K = computed(() => ({
757
- ...boxDecorationToStyle(U.foregroundDecoration),
755
+ }), N = computed(() => ({
756
+ ...boxDecorationToStyle(A.foregroundDecoration),
758
757
  position: "absolute",
759
758
  top: 0,
760
759
  left: 0,
761
760
  right: 0,
762
761
  bottom: 0,
763
762
  pointerEvents: "none",
764
- transition: W.value
763
+ transition: j.value
765
764
  }));
766
- return (o, F) => (openBlock(), createElementBlock("div", mergeProps({
765
+ return (e, S) => (openBlock(), createElementBlock("div", mergeProps({
767
766
  class: "animated-container",
768
- style: G.value
769
- }, z.value), [renderSlot(o.$slots, "default"), U.foregroundDecoration ? (openBlock(), createElementBlock("div", {
767
+ style: M.value
768
+ }, E.value), [renderSlot(e.$slots, "default"), A.foregroundDecoration ? (openBlock(), createElementBlock("div", {
770
769
  key: 0,
771
- style: normalizeStyle(K.value)
770
+ style: normalizeStyle(N.value)
772
771
  }, null, 4)) : createCommentVNode("", !0)], 16));
773
772
  }
774
773
  }), AnimatedOpacity_default = defineComponent({
@@ -788,40 +787,40 @@ var AnimatedContainer_default = /* @__PURE__ */ defineComponent({
788
787
  default: "linear"
789
788
  }
790
789
  },
791
- setup(o, { slots: F }) {
792
- let I = computed(() => o.opacity === void 0 ? {} : {
793
- transition: `opacity ${o.duration}ms ${o.curve}`,
794
- opacity: o.opacity
790
+ setup(e, { slots: S }) {
791
+ let C = computed(() => e.opacity === void 0 ? {} : {
792
+ transition: `opacity ${e.duration}ms ${e.curve}`,
793
+ opacity: e.opacity
795
794
  });
796
- return () => h(StyleProvider, { style: I.value }, F);
795
+ return () => h(StyleProvider, { style: C.value }, S);
797
796
  }
798
797
  });
799
- const ButtonStyle = (o) => o;
800
- function buttonStyleToStyle(o) {
801
- if (!o) return {};
802
- let F = {};
803
- if (o.backgroundColor && (F.backgroundColor = o.backgroundColor), o.foregroundColor && (F.color = o.foregroundColor), o.padding && Object.assign(F, paddingToStyle(o.padding)), o.minimumSize) {
804
- let { width: I, height: L } = sizeToStyle(o.minimumSize) || {};
805
- I && (F.minWidth = I), L && (F.minHeight = L);
798
+ const ButtonStyle = (e) => e;
799
+ function buttonStyleToStyle(e) {
800
+ if (!e) return {};
801
+ let S = {};
802
+ if (e.backgroundColor && (S.backgroundColor = e.backgroundColor), e.foregroundColor && (S.color = e.foregroundColor), e.padding && Object.assign(S, paddingToStyle(e.padding)), e.minimumSize) {
803
+ let { width: C, height: w } = sizeToStyle(e.minimumSize) || {};
804
+ C && (S.minWidth = C), w && (S.minHeight = w);
806
805
  }
807
- if (o.maximumSize) {
808
- let { width: I, height: L } = sizeToStyle(o.maximumSize) || {};
809
- I && (F.maxWidth = I), L && (F.maxHeight = L);
806
+ if (e.maximumSize) {
807
+ let { width: C, height: w } = sizeToStyle(e.maximumSize) || {};
808
+ C && (S.maxWidth = C), w && (S.maxHeight = w);
810
809
  }
811
- if (o.fixedSize) {
812
- let { width: I, height: L } = sizeToStyle(o.fixedSize) || {};
813
- I && (F.width = I, F.minWidth = I, F.maxWidth = I), L && (F.height = L, F.minHeight = L, F.maxHeight = L);
810
+ if (e.fixedSize) {
811
+ let { width: C, height: w } = sizeToStyle(e.fixedSize) || {};
812
+ C && (S.width = C, S.minWidth = C, S.maxWidth = C), w && (S.height = w, S.minHeight = w, S.maxHeight = w);
814
813
  }
815
- return o.side && Object.assign(F, borderSideToStyle(o.side)), o.shape && Object.assign(F, borderRadiusToStyle(o.shape)), o.elevation && (F.boxShadow = `0px ${px2vw(o.elevation)} ${px2vw(o.elevation * 2)} ${o.shadowColor || "rgba(0,0,0,0.2)"}`), o.alignment && (F.display = "flex", F.flexDirection = "column", Object.assign(F, alignmentToFlex(o.alignment, "column"))), F;
814
+ return e.side && Object.assign(S, borderSideToStyle(e.side)), e.shape && Object.assign(S, borderRadiusToStyle(e.shape)), e.elevation && (S.boxShadow = `0px ${px2vw(e.elevation)} ${px2vw(e.elevation * 2)} ${e.shadowColor || "rgba(0,0,0,0.2)"}`), e.alignment && (S.display = "flex", S.flexDirection = "column", Object.assign(S, alignmentToFlex(e.alignment, "column"))), S;
816
815
  }
817
- function useChildren(L) {
818
- if (!L) return [];
819
- let R = L();
820
- return R ? R.filter((L) => !(L.type === Comment || L.type === Text && typeof L.children == "string" && !L.children.trim() || L.type === Fragment && Array.isArray(L.children) && L.children.length === 0)) : [];
816
+ function useChildren(w) {
817
+ if (!w) return [];
818
+ let T = w();
819
+ return T ? T.filter((w) => !(w.type === Comment || w.type === Text && typeof w.children == "string" && !w.children.trim() || w.type === Fragment && Array.isArray(w.children) && w.children.length === 0)) : [];
821
820
  }
822
- function useChild(o) {
823
- let F = useChildren(o);
824
- return F.length === 0 ? null : F[0];
821
+ function useChild(e) {
822
+ let S = useChildren(e);
823
+ return S.length === 0 ? null : S[0];
825
824
  }
826
825
  var GestureDetector_default = defineComponent({
827
826
  name: "GestureDetector",
@@ -831,14 +830,14 @@ var GestureDetector_default = defineComponent({
831
830
  default: "deferToChild"
832
831
  } },
833
832
  emits: events,
834
- setup(o, { slots: F, emit: R }) {
835
- let z = useGestures({ emit: R });
836
- return provideGesture(z, o.behavior), () => {
837
- let o = useChild(F.default);
838
- return o ? o.type === Text ? h("span", z, [o]) : isHtmlTag(o) ? cloneVNode(o, z) : o : null;
833
+ setup(e, { slots: S, emit: T }) {
834
+ let E = useGestures({ emit: T });
835
+ return provideGesture(E, e.behavior), () => {
836
+ let e = useChild(S.default);
837
+ return e ? e.type === Text ? h("span", E, [e]) : isHtmlTag(e) ? cloneVNode(e, E) : e : null;
839
838
  };
840
839
  }
841
- }), _hoisted_1$1 = ["disabled"], Button_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
840
+ }), _hoisted_1$3 = ["disabled"], Button_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
842
841
  inheritAttrs: !1,
843
842
  __name: "Button",
844
843
  props: {
@@ -849,34 +848,34 @@ var GestureDetector_default = defineComponent({
849
848
  style: {}
850
849
  },
851
850
  emits: ["pressed", "long-press"],
852
- setup(o, { emit: F }) {
853
- let I = o, L = F, B = useStyles(), V = useSafeAttrs(), U = useGestureEvents(), W = computed(() => B.value.pointerEvents == "none" ? V.value : {
854
- ...V.value,
855
- ...U || {}
856
- }), G = useGestureStyle(), K = computed(() => {
857
- let o = { position: "relative" };
858
- return Object.assign(o, B.value), Object.assign(o, buttonStyleToStyle(I.style)), Object.assign(o, G), o;
859
- }), J = () => {
860
- I.disabled || L("pressed");
861
- }, Y = () => {
862
- I.disabled || L("long-press");
851
+ setup(e, { emit: S }) {
852
+ let C = e, w = S, D = useStyles(), O = useSafeAttrs(), A = useGestureEvents(), j = computed(() => D.value.pointerEvents == "none" ? O.value : {
853
+ ...O.value,
854
+ ...A || {}
855
+ }), M = useGestureStyle(), N = computed(() => {
856
+ let e = { position: "relative" };
857
+ return Object.assign(e, D.value), Object.assign(e, buttonStyleToStyle(C.style)), Object.assign(e, M), e;
858
+ }), P = () => {
859
+ C.disabled || w("pressed");
860
+ }, I = () => {
861
+ C.disabled || w("long-press");
863
862
  };
864
- return (F, I) => (openBlock(), createBlock(GestureDetector_default, {
865
- onTap: J,
866
- onLongPress: Y
863
+ return (S, C) => (openBlock(), createBlock(GestureDetector_default, {
864
+ onTap: P,
865
+ onLongPress: I
867
866
  }, {
868
867
  default: withCtx(() => [createElementVNode("button", mergeProps({
869
868
  class: "fluekit-button",
870
- style: K.value,
871
- disabled: o.disabled
872
- }, W.value), [renderSlot(F.$slots, "default", {}, void 0, !0)], 16, _hoisted_1$1)]),
869
+ style: N.value,
870
+ disabled: e.disabled
871
+ }, j.value), [renderSlot(S.$slots, "default", {}, void 0, !0)], 16, _hoisted_1$3)]),
873
872
  _: 3
874
873
  }));
875
874
  }
876
- }), __plugin_vue_export_helper_default = (o, F) => {
877
- let I = o.__vccOpts || o;
878
- for (let [o, L] of F) I[o] = L;
879
- return I;
875
+ }), __plugin_vue_export_helper_default = (e, S) => {
876
+ let C = e.__vccOpts || e;
877
+ for (let [e, w] of S) C[e] = w;
878
+ return C;
880
879
  }, Button_default = /* @__PURE__ */ __plugin_vue_export_helper_default(Button_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a5efef4c"]]), Center_default = /* @__PURE__ */ defineComponent({
881
880
  inheritAttrs: !1,
882
881
  __name: "Center",
@@ -884,13 +883,13 @@ var GestureDetector_default = defineComponent({
884
883
  widthFactor: {},
885
884
  heightFactor: {}
886
885
  },
887
- setup(o) {
888
- return (F, I) => (openBlock(), createBlock(Align_default, {
886
+ setup(e) {
887
+ return (S, C) => (openBlock(), createBlock(Align_default, {
889
888
  alignment: "center",
890
- "width-factor": o.widthFactor,
891
- "height-factor": o.heightFactor
889
+ "width-factor": e.widthFactor,
890
+ "height-factor": e.heightFactor
892
891
  }, {
893
- default: withCtx(() => [renderSlot(F.$slots, "default")]),
892
+ default: withCtx(() => [renderSlot(S.$slots, "default")]),
894
893
  _: 3
895
894
  }, 8, ["width-factor", "height-factor"]));
896
895
  }
@@ -914,23 +913,23 @@ var GestureDetector_default = defineComponent({
914
913
  as: { default: "div" },
915
914
  constraints: {}
916
915
  },
917
- setup(o) {
918
- let F = o, I = useSafeAttrs(), L = computed(() => {
919
- let o = ["flex-box", `flex-box-${F.direction}`];
920
- return F.expanded && o.push("flex-expanded"), o.join(" ");
921
- }), B = computed(() => {
922
- let o = F.mainAxisAlignment, I = F.crossAxisAlignment, L = {
916
+ setup(e) {
917
+ let S = e, C = useSafeAttrs(), w = computed(() => {
918
+ let e = ["flex-box", `flex-box-${S.direction}`];
919
+ return S.expanded && e.push("flex-expanded"), e.join(" ");
920
+ }), D = computed(() => {
921
+ let e = S.mainAxisAlignment, C = S.crossAxisAlignment, w = {
923
922
  display: "flex",
924
- flexDirection: F.direction,
925
- flexWrap: F.wrap ? "wrap" : "nowrap"
923
+ flexDirection: S.direction,
924
+ flexWrap: S.wrap ? "wrap" : "nowrap"
926
925
  };
927
- return L.justifyContent = FlexBoxJustifyMap[o] || o, L.alignItems = FlexBoxAlignMap[I] || I, L.gap = px2vw(F.gap), F.expanded && (L.flex = "1", L.width = "100%", L.height = "100%"), F.constraints && Object.assign(L, boxConstraintsToStyle(F.constraints)), L;
926
+ return w.justifyContent = FlexBoxJustifyMap[e] || e, w.alignItems = FlexBoxAlignMap[C] || C, w.gap = px2vw(S.gap), S.expanded && (w.flex = "1", w.width = "100%", w.height = "100%"), S.constraints && Object.assign(w, boxConstraintsToStyle(S.constraints)), w;
928
927
  });
929
- return (F, R) => (openBlock(), createBlock(resolveDynamicComponent(o.as), mergeProps({
930
- class: L.value,
931
- style: B.value
932
- }, unref(I)), {
933
- default: withCtx(() => [renderSlot(F.$slots, "default")]),
928
+ return (S, T) => (openBlock(), createBlock(resolveDynamicComponent(e.as), mergeProps({
929
+ class: w.value,
930
+ style: D.value
931
+ }, unref(C)), {
932
+ default: withCtx(() => [renderSlot(S.$slots, "default")]),
934
933
  _: 3
935
934
  }, 16, ["class", "style"]));
936
935
  }
@@ -947,16 +946,16 @@ var GestureDetector_default = defineComponent({
947
946
  as: {},
948
947
  constraints: {}
949
948
  },
950
- setup(o) {
951
- return (F, I) => (openBlock(), createBlock(FlexBox_default, {
949
+ setup(e) {
950
+ return (S, C) => (openBlock(), createBlock(FlexBox_default, {
952
951
  direction: "column",
953
- "main-axis-alignment": o.mainAxisAlignment,
954
- "cross-axis-alignment": o.crossAxisAlignment,
955
- wrap: o.wrap,
956
- gap: o.gap,
957
- expanded: o.expanded
952
+ "main-axis-alignment": e.mainAxisAlignment,
953
+ "cross-axis-alignment": e.crossAxisAlignment,
954
+ wrap: e.wrap,
955
+ gap: e.gap,
956
+ expanded: e.expanded
958
957
  }, {
959
- default: withCtx(() => [renderSlot(F.$slots, "default")]),
958
+ default: withCtx(() => [renderSlot(S.$slots, "default")]),
960
959
  _: 3
961
960
  }, 8, [
962
961
  "main-axis-alignment",
@@ -983,39 +982,39 @@ var GestureDetector_default = defineComponent({
983
982
  transformAlignment: {},
984
983
  constraints: {}
985
984
  },
986
- setup(o) {
987
- let F = useStyles(), I = useSafeAttrs(), L = useGestureEvents(), z = computed(() => F.value.pointerEvents == "none" ? I.value : {
988
- ...I.value,
989
- ...L || {}
990
- }), H = useGestureStyle(), U = o, W = computed(() => {
991
- let o = {
992
- backgroundColor: U.decoration ? void 0 : U.color,
993
- transform: U.transform,
994
- transformOrigin: U.transformAlignment ? alignmentToOrigin(U.transformAlignment) : "center",
995
- overflow: U.clipBehavior === "none" ? void 0 : "hidden",
985
+ setup(e) {
986
+ let S = useStyles(), C = useSafeAttrs(), w = useGestureEvents(), E = computed(() => S.value.pointerEvents == "none" ? C.value : {
987
+ ...C.value,
988
+ ...w || {}
989
+ }), k = useGestureStyle(), A = e, j = computed(() => {
990
+ let e = {
991
+ backgroundColor: A.decoration ? void 0 : A.color,
992
+ transform: A.transform,
993
+ transformOrigin: A.transformAlignment ? alignmentToOrigin(A.transformAlignment) : "center",
994
+ overflow: A.clipBehavior === "none" ? void 0 : "hidden",
996
995
  position: "relative"
997
996
  };
998
- Object.assign(o, F.value), U.alignment && (Object.assign(o, {
997
+ Object.assign(e, S.value), A.alignment && (Object.assign(e, {
999
998
  display: "flex",
1000
999
  flexDirection: "column"
1001
- }), Object.assign(o, alignmentToFlex(U.alignment, "column"))), Object.assign(o, sizeToStyle(U));
1002
- let I = boxConstraintsToStyle(U.constraints);
1003
- return isDefined(U.width) && (delete I.minWidth, delete I.maxWidth), isDefined(U.height) && (delete I.minHeight, delete I.maxHeight), Object.assign(o, I), Object.assign(o, paddingToStyle(U.padding)), Object.assign(o, marginToStyle(U.margin)), Object.assign(o, boxDecorationToStyle(U.decoration)), Object.assign(o, H), U.clipBehavior === "antiAlias" && (o.borderRadius = o.borderRadius || "inherit"), o;
1004
- }), G = computed(() => {
1005
- let o = {
1000
+ }), Object.assign(e, alignmentToFlex(A.alignment, "column"))), Object.assign(e, sizeToStyle(A));
1001
+ let C = boxConstraintsToStyle(A.constraints);
1002
+ return isDefined(A.width) && (delete C.minWidth, delete C.maxWidth), isDefined(A.height) && (delete C.minHeight, delete C.maxHeight), Object.assign(e, C), Object.assign(e, paddingToStyle(A.padding)), Object.assign(e, marginToStyle(A.margin)), Object.assign(e, boxDecorationToStyle(A.decoration)), Object.assign(e, k), A.clipBehavior === "antiAlias" && (e.borderRadius = e.borderRadius || "inherit"), e;
1003
+ }), M = computed(() => {
1004
+ let e = {
1006
1005
  position: "absolute",
1007
1006
  pointerEvents: "none",
1008
1007
  zIndex: 1,
1009
1008
  inset: 0
1010
1009
  };
1011
- return Object.assign(o, boxDecorationToStyle(U.foregroundDecoration)), o;
1010
+ return Object.assign(e, boxDecorationToStyle(A.foregroundDecoration)), e;
1012
1011
  });
1013
- return (o, F) => (openBlock(), createElementBlock("div", mergeProps({
1012
+ return (e, S) => (openBlock(), createElementBlock("div", mergeProps({
1014
1013
  class: "container-box",
1015
- style: W.value
1016
- }, z.value), [renderSlot(o.$slots, "default"), U.foregroundDecoration ? (openBlock(), createElementBlock("div", {
1014
+ style: j.value
1015
+ }, E.value), [renderSlot(e.$slots, "default"), A.foregroundDecoration ? (openBlock(), createElementBlock("div", {
1017
1016
  key: 0,
1018
- style: normalizeStyle(G.value)
1017
+ style: normalizeStyle(M.value)
1019
1018
  }, null, 4)) : createCommentVNode("", !0)], 16));
1020
1019
  }
1021
1020
  }), FlexItem_default = /* @__PURE__ */ defineComponent({
@@ -1035,23 +1034,23 @@ var GestureDetector_default = defineComponent({
1035
1034
  minSize: {},
1036
1035
  maxSize: {}
1037
1036
  },
1038
- setup(o) {
1039
- let F = o, I = useSafeAttrs(), L = computed(() => {
1040
- let o = {};
1041
- if (F.expanded ? o.flex = "1 1 0%" : (F.flexible && (o.flex = "0 1 auto"), F.flex > 0 && (o.flex = `${F.flex} 1 0%`)), F.alignSelf !== "auto" && (o.alignSelf = FlexBoxAlignMap[F.alignSelf] || F.alignSelf), F.minSize) {
1042
- let I = px2vw(F.minSize);
1043
- o.minWidth = I, o.minHeight = I;
1037
+ setup(e) {
1038
+ let S = e, C = useSafeAttrs(), w = computed(() => {
1039
+ let e = {};
1040
+ if (S.expanded ? e.flex = "1 1 0%" : (S.flexible && (e.flex = "0 1 auto"), S.flex > 0 && (e.flex = `${S.flex} 1 0%`)), S.alignSelf !== "auto" && (e.alignSelf = FlexBoxAlignMap[S.alignSelf] || S.alignSelf), S.minSize) {
1041
+ let C = px2vw(S.minSize);
1042
+ e.minWidth = C, e.minHeight = C;
1044
1043
  }
1045
- if (F.maxSize) {
1046
- let I = px2vw(F.maxSize);
1047
- o.maxWidth = I, o.maxHeight = I;
1044
+ if (S.maxSize) {
1045
+ let C = px2vw(S.maxSize);
1046
+ e.maxWidth = C, e.maxHeight = C;
1048
1047
  }
1049
- return o;
1048
+ return e;
1050
1049
  });
1051
- return (o, F) => (openBlock(), createElementBlock("div", mergeProps({
1050
+ return (e, S) => (openBlock(), createElementBlock("div", mergeProps({
1052
1051
  class: "flex-item",
1053
- style: L.value
1054
- }, unref(I)), [renderSlot(o.$slots, "default")], 16));
1052
+ style: w.value
1053
+ }, unref(C)), [renderSlot(e.$slots, "default")], 16));
1055
1054
  }
1056
1055
  }), Expanded_default = /* @__PURE__ */ defineComponent({
1057
1056
  inheritAttrs: !1,
@@ -1062,15 +1061,15 @@ var GestureDetector_default = defineComponent({
1062
1061
  minSize: {},
1063
1062
  maxSize: {}
1064
1063
  },
1065
- setup(o) {
1066
- return (F, I) => (openBlock(), createBlock(FlexItem_default, {
1067
- flex: o.flex,
1064
+ setup(e) {
1065
+ return (S, C) => (openBlock(), createBlock(FlexItem_default, {
1066
+ flex: e.flex,
1068
1067
  expanded: "",
1069
- "align-self": o.alignSelf,
1070
- "min-size": o.minSize,
1071
- "max-size": o.maxSize
1068
+ "align-self": e.alignSelf,
1069
+ "min-size": e.minSize,
1070
+ "max-size": e.maxSize
1072
1071
  }, {
1073
- default: withCtx(() => [renderSlot(F.$slots, "default")]),
1072
+ default: withCtx(() => [renderSlot(S.$slots, "default")]),
1074
1073
  _: 3
1075
1074
  }, 8, [
1076
1075
  "flex",
@@ -1080,13 +1079,13 @@ var GestureDetector_default = defineComponent({
1080
1079
  ]));
1081
1080
  }
1082
1081
  });
1083
- function usePositionStyle(o, F = "absolute") {
1082
+ function usePositionStyle(e, S = "absolute") {
1084
1083
  return computed(() => {
1085
- let I = {
1086
- position: F,
1084
+ let C = {
1085
+ position: S,
1087
1086
  boxSizing: "border-box"
1088
1087
  };
1089
- return I.top = px2vw(o.top), I.bottom = px2vw(o.bottom), I.left = px2vw(o.left), I.right = px2vw(o.right), I.width = px2vw(o.width), I.height = px2vw(o.height), I.zIndex = o.zIndex, I;
1088
+ return C.top = px2vw(e.top), C.bottom = px2vw(e.bottom), C.left = px2vw(e.left), C.right = px2vw(e.right), C.width = px2vw(e.width), C.height = px2vw(e.height), C.zIndex = e.zIndex, C;
1090
1089
  });
1091
1090
  }
1092
1091
  var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
@@ -1101,12 +1100,12 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
1101
1100
  height: {},
1102
1101
  zIndex: { default: 100 }
1103
1102
  },
1104
- setup(o) {
1105
- let F = usePositionStyle(o, "fixed");
1106
- return (o, I) => (openBlock(), createElementBlock("div", {
1103
+ setup(e) {
1104
+ let S = usePositionStyle(e, "fixed");
1105
+ return (e, C) => (openBlock(), createElementBlock("div", {
1107
1106
  class: "flutter-fixed",
1108
- style: normalizeStyle(unref(F))
1109
- }, [renderSlot(o.$slots, "default", {}, void 0, !0)], 4));
1107
+ style: normalizeStyle(unref(S))
1108
+ }, [renderSlot(e.$slots, "default", {}, void 0, !0)], 4));
1110
1109
  }
1111
1110
  }), [["__scopeId", "data-v-b47757ec"]]), ScrollView_default = /* @__PURE__ */ defineComponent({
1112
1111
  inheritAttrs: !1,
@@ -1126,9 +1125,9 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
1126
1125
  "scrollStart",
1127
1126
  "scrollEnd"
1128
1127
  ],
1129
- setup(o, { expose: F, emit: I }) {
1130
- let L = o, z = I, B = ref(), U = !1, W = null, G = computed(() => {
1131
- let o = {
1128
+ setup(e, { expose: S, emit: C }) {
1129
+ let w = e, E = C, D = ref(), A = !1, j = null, M = computed(() => {
1130
+ let e = {
1132
1131
  width: "100%",
1133
1132
  height: "100%",
1134
1133
  position: "relative",
@@ -1136,39 +1135,39 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
1136
1135
  scrollbarWidth: "none",
1137
1136
  WebkitOverflowScrolling: "touch"
1138
1137
  };
1139
- return L.physics === "never" ? o.overflow = "hidden" : (L.scrollDirection === "vertical" ? (o.overflowX = "hidden", o.overflowY = "auto") : (o.overflowX = "auto", o.overflowY = "hidden"), L.physics === "clamping" ? o.overscrollBehavior = "none" : L.physics === "bouncing" && (o.overscrollBehavior = "auto")), L.clipBehavior === "none" && L.physics === "never" && (o.overflow = "visible"), o;
1140
- }), K = computed(() => {
1141
- let o = {
1142
- minWidth: L.scrollDirection === "horizontal" ? "max-content" : "100%",
1143
- minHeight: L.scrollDirection === "vertical" ? "fit-content" : "100%",
1138
+ return w.physics === "never" ? e.overflow = "hidden" : (w.scrollDirection === "vertical" ? (e.overflowX = "hidden", e.overflowY = "auto") : (e.overflowX = "auto", e.overflowY = "hidden"), w.physics === "clamping" ? e.overscrollBehavior = "none" : w.physics === "bouncing" && (e.overscrollBehavior = "auto")), w.clipBehavior === "none" && w.physics === "never" && (e.overflow = "visible"), e;
1139
+ }), N = computed(() => {
1140
+ let e = {
1141
+ minWidth: w.scrollDirection === "horizontal" ? "max-content" : "100%",
1142
+ minHeight: w.scrollDirection === "vertical" ? "fit-content" : "100%",
1144
1143
  boxSizing: "border-box",
1145
1144
  display: "flow-root"
1146
1145
  };
1147
- return L.padding && Object.assign(o, paddingToStyle(L.padding)), o;
1148
- }), q = (o) => {
1149
- let F = o.target;
1150
- U || (U = !0, z("scrollStart")), z("scroll", {
1151
- scrollTop: F.scrollTop,
1152
- scrollLeft: F.scrollLeft,
1153
- scrollHeight: F.scrollHeight,
1154
- scrollWidth: F.scrollWidth
1155
- }), W && clearTimeout(W), W = window.setTimeout(() => {
1156
- U = !1, z("scrollEnd");
1146
+ return w.padding && Object.assign(e, paddingToStyle(w.padding)), e;
1147
+ }), P = (e) => {
1148
+ let S = e.target;
1149
+ A || (A = !0, E("scrollStart")), E("scroll", {
1150
+ scrollTop: S.scrollTop,
1151
+ scrollLeft: S.scrollLeft,
1152
+ scrollHeight: S.scrollHeight,
1153
+ scrollWidth: S.scrollWidth
1154
+ }), j && clearTimeout(j), j = window.setTimeout(() => {
1155
+ A = !1, E("scrollEnd");
1157
1156
  }, 150);
1158
1157
  };
1159
- return F({
1160
- scrollRef: B,
1161
- scrollTo: (o) => {
1162
- B.value?.scrollTo(o);
1158
+ return S({
1159
+ scrollRef: D,
1160
+ scrollTo: (e) => {
1161
+ D.value?.scrollTo(e);
1163
1162
  }
1164
1163
  }), onUnmounted(() => {
1165
- W && clearTimeout(W);
1166
- }), (o, F) => (openBlock(), createElementBlock("div", {
1164
+ j && clearTimeout(j);
1165
+ }), (e, S) => (openBlock(), createElementBlock("div", {
1167
1166
  ref_key: "scrollRef",
1168
- ref: B,
1169
- style: normalizeStyle(G.value),
1170
- onScroll: q
1171
- }, [createElementVNode("div", { style: normalizeStyle(K.value) }, [renderSlot(o.$slots, "default")], 4)], 36));
1167
+ ref: D,
1168
+ style: normalizeStyle(M.value),
1169
+ onScroll: P
1170
+ }, [createElementVNode("div", { style: normalizeStyle(N.value) }, [renderSlot(e.$slots, "default")], 4)], 36));
1172
1171
  }
1173
1172
  }), GridView_default = /* @__PURE__ */ defineComponent({
1174
1173
  inheritAttrs: !1,
@@ -1188,37 +1187,37 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
1188
1187
  childAspectRatio: { default: 1 },
1189
1188
  itemCount: {}
1190
1189
  },
1191
- setup(o) {
1192
- let I = o, L = computed(() => ({
1193
- height: I.shrinkWrap ? "auto" : "100%",
1194
- width: I.shrinkWrap ? "auto" : "100%"
1195
- })), B = computed(() => {
1196
- let o = I.scrollDirection === "vertical", F = typeof I.mainAxisSpacing == "number" ? px2vw(I.mainAxisSpacing) : I.mainAxisSpacing, L = typeof I.crossAxisSpacing == "number" ? px2vw(I.crossAxisSpacing) : I.crossAxisSpacing;
1190
+ setup(e) {
1191
+ let C = e, w = computed(() => ({
1192
+ height: C.shrinkWrap ? "auto" : "100%",
1193
+ width: C.shrinkWrap ? "auto" : "100%"
1194
+ })), D = computed(() => {
1195
+ let e = C.scrollDirection === "vertical", S = typeof C.mainAxisSpacing == "number" ? px2vw(C.mainAxisSpacing) : C.mainAxisSpacing, w = typeof C.crossAxisSpacing == "number" ? px2vw(C.crossAxisSpacing) : C.crossAxisSpacing;
1197
1196
  return {
1198
1197
  display: "grid",
1199
- gridTemplateColumns: o ? `repeat(${I.crossAxisCount}, 1fr)` : "none",
1200
- gridTemplateRows: o ? "none" : `repeat(${I.crossAxisCount}, 1fr)`,
1201
- gridAutoFlow: o ? "row" : "column",
1202
- gap: o ? `${F} ${L}` : `${L} ${F}`,
1203
- minWidth: o ? "100%" : "max-content",
1204
- minHeight: o ? "max-content" : "100%"
1198
+ gridTemplateColumns: e ? `repeat(${C.crossAxisCount}, 1fr)` : "none",
1199
+ gridTemplateRows: e ? "none" : `repeat(${C.crossAxisCount}, 1fr)`,
1200
+ gridAutoFlow: e ? "row" : "column",
1201
+ gap: e ? `${S} ${w}` : `${w} ${S}`,
1202
+ minWidth: e ? "100%" : "max-content",
1203
+ minHeight: e ? "max-content" : "100%"
1205
1204
  };
1206
1205
  });
1207
- return (I, R) => (openBlock(), createBlock(ScrollView_default, {
1208
- "scroll-direction": o.scrollDirection,
1209
- padding: o.padding,
1210
- physics: o.physics,
1211
- "clip-behavior": o.clipBehavior,
1206
+ return (C, T) => (openBlock(), createBlock(ScrollView_default, {
1207
+ "scroll-direction": e.scrollDirection,
1208
+ padding: e.padding,
1209
+ physics: e.physics,
1210
+ "clip-behavior": e.clipBehavior,
1212
1211
  class: "flutter-grid-view",
1213
- style: normalizeStyle(L.value)
1212
+ style: normalizeStyle(w.value)
1214
1213
  }, {
1215
1214
  default: withCtx(() => [createElementVNode("div", {
1216
1215
  class: "grid-view-content",
1217
- style: normalizeStyle(B.value)
1218
- }, [o.itemCount ? (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(o.itemCount, (o) => renderSlot(I.$slots, "item", {
1219
- key: o - 1,
1220
- index: o - 1
1221
- })), 128)) : renderSlot(I.$slots, "default", { key: 0 })], 4)]),
1216
+ style: normalizeStyle(D.value)
1217
+ }, [e.itemCount ? (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(e.itemCount, (e) => renderSlot(C.$slots, "item", {
1218
+ key: e - 1,
1219
+ index: e - 1
1220
+ })), 128)) : renderSlot(C.$slots, "default", { key: 0 })], 4)]),
1222
1221
  _: 3
1223
1222
  }, 8, [
1224
1223
  "scroll-direction",
@@ -1241,13 +1240,107 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
1241
1240
  default: !1
1242
1241
  }
1243
1242
  },
1244
- setup(o, { slots: F }) {
1245
- return () => !o.ignoring && !o.ignoringSemantics ? F.default?.() : h(StyleProvider, {
1246
- style: { pointerEvents: o.ignoring ? "none" : void 0 },
1247
- attrs: { "aria-hidden": o.ignoringSemantics ? "true" : void 0 }
1248
- }, F);
1243
+ setup(e, { slots: S }) {
1244
+ return () => !e.ignoring && !e.ignoringSemantics ? S.default?.() : h(StyleProvider, {
1245
+ style: { pointerEvents: e.ignoring ? "none" : void 0 },
1246
+ attrs: { "aria-hidden": e.ignoringSemantics ? "true" : void 0 }
1247
+ }, S);
1248
+ }
1249
+ }), IMAGE_PROVIDER_SYMBOL = Symbol("ImageProvider");
1250
+ function isImageProvider(e) {
1251
+ return e && e[IMAGE_PROVIDER_SYMBOL] === !0;
1252
+ }
1253
+ function NetworkImage(e) {
1254
+ return {
1255
+ src: e,
1256
+ [IMAGE_PROVIDER_SYMBOL]: !0
1257
+ };
1258
+ }
1259
+ function MemoryImage(e) {
1260
+ let S = "";
1261
+ return typeof e == "string" ? S = e : e instanceof Blob ? S = URL.createObjectURL(e) : console.warn("[MemoryImage] Unsupported data type. Expected string (base64) or Blob."), {
1262
+ src: S,
1263
+ [IMAGE_PROVIDER_SYMBOL]: !0
1264
+ };
1265
+ }
1266
+ var _assetBaseUrl = "/";
1267
+ function setAssetBaseURL(e) {
1268
+ _assetBaseUrl = e;
1269
+ }
1270
+ function AssetImage(e, S = {}) {
1271
+ let C = S.package ? `${S.package}/${e}` : e;
1272
+ return /^(https?:|file:|blob:|data:|\/\/)/i.test(C) || _assetBaseUrl && (C = (_assetBaseUrl.endsWith("/") ? _assetBaseUrl : _assetBaseUrl + "/") + (C.startsWith("/") ? C.slice(1) : C)), {
1273
+ src: C,
1274
+ [IMAGE_PROVIDER_SYMBOL]: !0
1275
+ };
1276
+ }
1277
+ function createAssetImage(e) {
1278
+ return (S, C = {}) => AssetImage(S, {
1279
+ ...e,
1280
+ ...C
1281
+ });
1282
+ }
1283
+ var _hoisted_1$2 = ["src", "alt"], Image_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
1284
+ inheritAttrs: !1,
1285
+ __name: "Image",
1286
+ props: {
1287
+ image: {},
1288
+ width: {},
1289
+ height: {},
1290
+ color: {},
1291
+ colorBlendMode: {},
1292
+ fit: { default: "contain" },
1293
+ alignment: { default: "center" },
1294
+ repeat: { default: "no-repeat" },
1295
+ opacity: { default: 1 },
1296
+ filterQuality: { default: "medium" },
1297
+ alt: { default: "" }
1298
+ },
1299
+ emits: ["load", "error"],
1300
+ setup(e, { emit: S }) {
1301
+ let C = e, w = S, E = useSafeAttrs(), D = computed(() => {
1302
+ let e = {
1303
+ position: "relative",
1304
+ display: "inline-block",
1305
+ overflow: "hidden",
1306
+ lineHeight: 0
1307
+ };
1308
+ return Object.assign(e, sizeToStyle({
1309
+ width: C.width,
1310
+ height: C.height
1311
+ })), e;
1312
+ }), A = {
1313
+ fill: "fill",
1314
+ contain: "contain",
1315
+ cover: "cover",
1316
+ fitWidth: "contain",
1317
+ fitHeight: "contain",
1318
+ none: "none",
1319
+ scaleDown: "scale-down"
1320
+ }, j = computed(() => alignmentToOrigin(C.alignment)), M = computed(() => {
1321
+ let e = {
1322
+ width: "100%",
1323
+ height: "100%",
1324
+ objectFit: A[C.fit],
1325
+ objectPosition: j.value,
1326
+ opacity: C.opacity,
1327
+ imageRendering: C.filterQuality === "low" ? "pixelated" : "auto"
1328
+ };
1329
+ return C.color, e;
1330
+ }), N = (e) => w("load", e), P = (e) => w("error", e);
1331
+ return (S, w) => (openBlock(), createElementBlock("div", mergeProps({
1332
+ class: "fluekit-image-container",
1333
+ style: D.value
1334
+ }, unref(E)), [createElementVNode("img", {
1335
+ src: C.image.src,
1336
+ class: "fluekit-image",
1337
+ style: normalizeStyle(M.value),
1338
+ alt: e.alt,
1339
+ onLoad: N,
1340
+ onError: P
1341
+ }, null, 44, _hoisted_1$2)], 16));
1249
1342
  }
1250
- }), _hoisted_1 = {
1343
+ }), [["__scopeId", "data-v-9d37b792"]]), _hoisted_1$1 = {
1251
1344
  key: 0,
1252
1345
  class: "list-view-separator"
1253
1346
  }, ListView_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
@@ -1269,31 +1362,31 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
1269
1362
  },
1270
1363
  clipBehavior: { default: "hardEdge" }
1271
1364
  },
1272
- setup(o) {
1273
- let I = o, L = computed(() => ({
1274
- height: I.shrinkWrap ? "auto" : "100%",
1275
- width: I.shrinkWrap ? "auto" : "100%"
1276
- })), U = computed(() => {
1277
- let o = I.scrollDirection === "vertical";
1365
+ setup(e) {
1366
+ let C = e, w = computed(() => ({
1367
+ height: C.shrinkWrap ? "auto" : "100%",
1368
+ width: C.shrinkWrap ? "auto" : "100%"
1369
+ })), A = computed(() => {
1370
+ let e = C.scrollDirection === "vertical";
1278
1371
  return {
1279
1372
  display: "flex",
1280
- flexDirection: o ? "column" : "row",
1373
+ flexDirection: e ? "column" : "row",
1281
1374
  gap: "0px",
1282
- minWidth: o ? "100%" : "max-content"
1375
+ minWidth: e ? "100%" : "max-content"
1283
1376
  };
1284
1377
  });
1285
- return (I, R) => (openBlock(), createBlock(ScrollView_default, {
1286
- "scroll-direction": o.scrollDirection,
1287
- padding: o.padding,
1288
- physics: o.physics,
1289
- "clip-behavior": o.clipBehavior,
1290
- class: normalizeClass(["flutter-list-view", { "list-view-shrink-wrap": o.shrinkWrap }]),
1291
- style: normalizeStyle(L.value)
1378
+ return (C, T) => (openBlock(), createBlock(ScrollView_default, {
1379
+ "scroll-direction": e.scrollDirection,
1380
+ padding: e.padding,
1381
+ physics: e.physics,
1382
+ "clip-behavior": e.clipBehavior,
1383
+ class: normalizeClass(["flutter-list-view", { "list-view-shrink-wrap": e.shrinkWrap }]),
1384
+ style: normalizeStyle(w.value)
1292
1385
  }, {
1293
1386
  default: withCtx(() => [createElementVNode("div", {
1294
1387
  class: "list-view-content",
1295
- style: normalizeStyle(U.value)
1296
- }, [o.itemCount ? (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(o.itemCount, (L) => (openBlock(), createElementBlock(Fragment, { key: L - 1 }, [renderSlot(I.$slots, "item", { index: L - 1 }, void 0, !0), o.separator && L < o.itemCount ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(I.$slots, "separator", { index: L - 1 }, void 0, !0)])) : createCommentVNode("", !0)], 64))), 128)) : renderSlot(I.$slots, "default", { key: 0 }, void 0, !0)], 4)]),
1388
+ style: normalizeStyle(A.value)
1389
+ }, [e.itemCount ? (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(e.itemCount, (w) => (openBlock(), createElementBlock(Fragment, { key: w - 1 }, [renderSlot(C.$slots, "item", { index: w - 1 }, void 0, !0), e.separator && w < e.itemCount ? (openBlock(), createElementBlock("div", _hoisted_1$1, [renderSlot(C.$slots, "separator", { index: w - 1 }, void 0, !0)])) : createCommentVNode("", !0)], 64))), 128)) : renderSlot(C.$slots, "default", { key: 0 }, void 0, !0)], 4)]),
1297
1390
  _: 3
1298
1391
  }, 8, [
1299
1392
  "scroll-direction",
@@ -1311,9 +1404,9 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
1311
1404
  type: Number,
1312
1405
  default: void 0
1313
1406
  } },
1314
- setup(o, { slots: F }) {
1315
- let I = computed(() => o.opacity === void 0 ? {} : { opacity: Math.max(0, Math.min(1, o.opacity)) });
1316
- return () => h(StyleProvider, { style: I.value }, F);
1407
+ setup(e, { slots: S }) {
1408
+ let C = computed(() => e.opacity === void 0 ? {} : { opacity: Math.max(0, Math.min(1, e.opacity)) });
1409
+ return () => h(StyleProvider, { style: C.value }, S);
1317
1410
  }
1318
1411
  }), Padding_default = defineComponent({
1319
1412
  name: "Padding",
@@ -1344,10 +1437,10 @@ var Fixed_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PUR
1344
1437
  default: void 0
1345
1438
  }
1346
1439
  },
1347
- setup(o, { slots: F }) {
1440
+ setup(e, { slots: S }) {
1348
1441
  return () => {
1349
- let I = useChild(F.default);
1350
- return I ? cloneVNode(I, { style: edgeInsetsToStyle("padding", o) }) : null;
1442
+ let C = useChild(S.default);
1443
+ return C ? cloneVNode(C, { style: edgeInsetsToStyle("padding", e) }) : null;
1351
1444
  };
1352
1445
  }
1353
1446
  }), STACK_CONTEXT_KEY = "stackContext";
@@ -1366,16 +1459,16 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
1366
1459
  width: {},
1367
1460
  height: {}
1368
1461
  },
1369
- setup(o) {
1370
- let F = o, I = useStackContext();
1462
+ setup(e) {
1463
+ let S = e, C = useStackContext();
1371
1464
  onMounted(() => {
1372
- I || warn("[Positioned] Positioned widget must be a descendant of a Stack. ");
1465
+ C || warn("[Positioned] Positioned widget must be a descendant of a Stack. ");
1373
1466
  });
1374
- let L = usePositionStyle(F, "absolute");
1375
- return (o, F) => (openBlock(), createElementBlock("div", {
1467
+ let w = usePositionStyle(S, "absolute");
1468
+ return (e, S) => (openBlock(), createElementBlock("div", {
1376
1469
  class: "positioned",
1377
- style: normalizeStyle(unref(L))
1378
- }, [renderSlot(o.$slots, "default")], 4));
1470
+ style: normalizeStyle(unref(w))
1471
+ }, [renderSlot(e.$slots, "default")], 4));
1379
1472
  }
1380
1473
  }), Row_default = /* @__PURE__ */ defineComponent({
1381
1474
  inheritAttrs: !1,
@@ -1396,17 +1489,17 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
1396
1489
  as: {},
1397
1490
  constraints: {}
1398
1491
  },
1399
- setup(o) {
1400
- return (F, I) => (openBlock(), createBlock(FlexBox_default, {
1492
+ setup(e) {
1493
+ return (S, C) => (openBlock(), createBlock(FlexBox_default, {
1401
1494
  direction: "row",
1402
- "main-axis-alignment": o.mainAxisAlignment,
1403
- "cross-axis-alignment": o.crossAxisAlignment,
1404
- wrap: o.wrap,
1405
- gap: o.gap,
1406
- as: o.as,
1407
- expanded: o.expanded
1495
+ "main-axis-alignment": e.mainAxisAlignment,
1496
+ "cross-axis-alignment": e.crossAxisAlignment,
1497
+ wrap: e.wrap,
1498
+ gap: e.gap,
1499
+ as: e.as,
1500
+ expanded: e.expanded
1408
1501
  }, {
1409
- default: withCtx(() => [renderSlot(F.$slots, "default")]),
1502
+ default: withCtx(() => [renderSlot(S.$slots, "default")]),
1410
1503
  _: 3
1411
1504
  }, 8, [
1412
1505
  "main-axis-alignment",
@@ -1443,20 +1536,20 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
1443
1536
  default: !1
1444
1537
  }
1445
1538
  },
1446
- setup(o) {
1447
- let F = o, I = computed(() => {
1448
- let o = {
1539
+ setup(e) {
1540
+ let S = e, C = computed(() => {
1541
+ let e = {
1449
1542
  display: "flex",
1450
1543
  flexDirection: "column",
1451
1544
  width: "100%",
1452
1545
  height: "100%"
1453
1546
  };
1454
- return F.top && [].push("env(safe-area-inset-top)"), F.right && [].push("env(safe-area-inset-right)"), F.bottom && [].push("env(safe-area-inset-bottom)"), F.left && [].push("env(safe-area-inset-left)"), F.top && (o.paddingTop = "env(safe-area-inset-top)"), F.right && (o.paddingRight = "env(safe-area-inset-right)"), F.bottom && (o.paddingBottom = "env(safe-area-inset-bottom)"), F.left && (o.paddingLeft = "env(safe-area-inset-left)"), F.minimum, o;
1547
+ return S.top && [].push("env(safe-area-inset-top)"), S.right && [].push("env(safe-area-inset-right)"), S.bottom && [].push("env(safe-area-inset-bottom)"), S.left && [].push("env(safe-area-inset-left)"), S.top && (e.paddingTop = "env(safe-area-inset-top)"), S.right && (e.paddingRight = "env(safe-area-inset-right)"), S.bottom && (e.paddingBottom = "env(safe-area-inset-bottom)"), S.left && (e.paddingLeft = "env(safe-area-inset-left)"), S.minimum, e;
1455
1548
  });
1456
- return (o, F) => (openBlock(), createElementBlock("div", {
1549
+ return (e, S) => (openBlock(), createElementBlock("div", {
1457
1550
  class: "flutter-safe-area",
1458
- style: normalizeStyle(I.value)
1459
- }, [renderSlot(o.$slots, "default")], 4));
1551
+ style: normalizeStyle(C.value)
1552
+ }, [renderSlot(e.$slots, "default")], 4));
1460
1553
  }
1461
1554
  }), SizedBox_default = /* @__PURE__ */ defineComponent({
1462
1555
  inheritAttrs: !1,
@@ -1465,18 +1558,18 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
1465
1558
  width: {},
1466
1559
  height: {}
1467
1560
  },
1468
- setup(o) {
1469
- let F = o, I = useSafeAttrs(), L = useSlots(), z = computed(() => {
1470
- let o = {
1561
+ setup(e) {
1562
+ let S = e, C = useSafeAttrs(), w = useSlots(), E = computed(() => {
1563
+ let e = {
1471
1564
  boxSizing: "border-box",
1472
1565
  position: "relative"
1473
1566
  };
1474
- return Object.assign(o, sizeToStyle(F)), L.default && (o.display = "flex", o.flexDirection = "column", o.flexShrink = 0), o;
1567
+ return Object.assign(e, sizeToStyle(S)), w.default && (e.display = "flex", e.flexDirection = "column", e.flexShrink = 0), e;
1475
1568
  });
1476
- return (o, F) => (openBlock(), createElementBlock("div", mergeProps({
1569
+ return (e, S) => (openBlock(), createElementBlock("div", mergeProps({
1477
1570
  class: "sized-box",
1478
- style: z.value
1479
- }, unref(I)), [renderSlot(o.$slots, "default")], 16));
1571
+ style: E.value
1572
+ }, unref(C)), [renderSlot(e.$slots, "default")], 16));
1480
1573
  }
1481
1574
  }), Stack_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
1482
1575
  inheritAttrs: !1,
@@ -1487,29 +1580,29 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
1487
1580
  textDirection: { default: "ltr" },
1488
1581
  fit: { default: StackFit.loose }
1489
1582
  },
1490
- setup(o) {
1491
- let F = o, I = {
1583
+ setup(e) {
1584
+ let S = e, C = {
1492
1585
  clip: "hidden",
1493
1586
  hardEdge: "hidden",
1494
1587
  antiAlias: "hidden",
1495
1588
  none: "visible"
1496
- }, L = computed(() => {
1497
- let o = {
1589
+ }, w = computed(() => {
1590
+ let e = {
1498
1591
  position: "relative",
1499
1592
  display: "grid",
1500
1593
  gridTemplateColumns: "1fr",
1501
1594
  gridTemplateRows: "1fr",
1502
- ...alignmentToGrid(F.alignment),
1503
- overflow: I[F.clipBehavior],
1504
- direction: F.textDirection,
1595
+ ...alignmentToGrid(S.alignment),
1596
+ overflow: C[S.clipBehavior],
1597
+ direction: S.textDirection,
1505
1598
  boxSizing: "border-box"
1506
1599
  };
1507
- return F.fit === StackFit.expand && (o.width = "100%", o.height = "100%"), o;
1600
+ return S.fit === StackFit.expand && (e.width = "100%", e.height = "100%"), e;
1508
1601
  });
1509
- return provideStackContext(), (o, F) => (openBlock(), createElementBlock("div", {
1602
+ return provideStackContext(), (e, S) => (openBlock(), createElementBlock("div", {
1510
1603
  class: "flutter-stack",
1511
- style: normalizeStyle(L.value)
1512
- }, [renderSlot(o.$slots, "default", {}, void 0, !0)], 4));
1604
+ style: normalizeStyle(w.value)
1605
+ }, [renderSlot(e.$slots, "default", {}, void 0, !0)], 4));
1513
1606
  }
1514
1607
  }), [["__scopeId", "data-v-aefe47c2"]]), Sticky_default = /* @__PURE__ */ defineComponent({
1515
1608
  inheritAttrs: !1,
@@ -1523,68 +1616,68 @@ var Positioned_default = /* @__PURE__ */ defineComponent({
1523
1616
  height: {},
1524
1617
  zIndex: { default: 10 }
1525
1618
  },
1526
- setup(o) {
1527
- let F = usePositionStyle(o, "sticky");
1528
- return (o, I) => (openBlock(), createElementBlock("div", {
1619
+ setup(e) {
1620
+ let S = usePositionStyle(e, "sticky");
1621
+ return (e, C) => (openBlock(), createElementBlock("div", {
1529
1622
  class: "flutter-sticky",
1530
- style: normalizeStyle(unref(F))
1531
- }, [renderSlot(o.$slots, "default")], 4));
1623
+ style: normalizeStyle(unref(S))
1624
+ }, [renderSlot(e.$slots, "default")], 4));
1532
1625
  }
1533
1626
  });
1534
- let FontWeight = /* @__PURE__ */ function(o) {
1535
- return o.w100 = "100", o.w200 = "200", o.w300 = "300", o.w400 = "400", o.w500 = "500", o.w600 = "600", o.w700 = "700", o.w800 = "800", o.w900 = "900", o.normal = "normal", o.bold = "bold", o.bolder = "bolder", o;
1536
- }({}), FontStyle = /* @__PURE__ */ function(o) {
1537
- return o.normal = "normal", o.italic = "italic", o;
1538
- }({}), TextDecoration = /* @__PURE__ */ function(o) {
1539
- return o.none = "none", o.underline = "underline", o.overline = "overline", o.lineThrough = "line-through", o;
1540
- }({}), TextDecorationStyle = /* @__PURE__ */ function(o) {
1541
- return o.solid = "solid", o.double = "double", o.dotted = "dotted", o.dashed = "dashed", o.wavy = "wavy", o;
1542
- }({}), TextAlign = /* @__PURE__ */ function(o) {
1543
- return o.left = "left", o.right = "right", o.center = "center", o.justify = "justify", o.start = "start", o.end = "end", o;
1544
- }({}), TextOverflow = /* @__PURE__ */ function(o) {
1545
- return o.clip = "clip", o.fade = "fade", o.ellipsis = "ellipsis", o.visible = "visible", o;
1546
- }({}), TextBaseline = /* @__PURE__ */ function(o) {
1547
- return o.alphabetic = "alphabetic", o.ideographic = "ideographic", o;
1548
- }({}), TextDirection = /* @__PURE__ */ function(o) {
1549
- return o.rtl = "rtl", o.ltr = "ltr", o;
1627
+ let FontWeight = /* @__PURE__ */ function(e) {
1628
+ return e.w100 = "100", e.w200 = "200", e.w300 = "300", e.w400 = "400", e.w500 = "500", e.w600 = "600", e.w700 = "700", e.w800 = "800", e.w900 = "900", e.normal = "normal", e.bold = "bold", e.bolder = "bolder", e;
1629
+ }({}), FontStyle = /* @__PURE__ */ function(e) {
1630
+ return e.normal = "normal", e.italic = "italic", e;
1631
+ }({}), TextDecoration = /* @__PURE__ */ function(e) {
1632
+ return e.none = "none", e.underline = "underline", e.overline = "overline", e.lineThrough = "line-through", e;
1633
+ }({}), TextDecorationStyle = /* @__PURE__ */ function(e) {
1634
+ return e.solid = "solid", e.double = "double", e.dotted = "dotted", e.dashed = "dashed", e.wavy = "wavy", e;
1635
+ }({}), TextAlign = /* @__PURE__ */ function(e) {
1636
+ return e.left = "left", e.right = "right", e.center = "center", e.justify = "justify", e.start = "start", e.end = "end", e;
1637
+ }({}), TextOverflow = /* @__PURE__ */ function(e) {
1638
+ return e.clip = "clip", e.fade = "fade", e.ellipsis = "ellipsis", e.visible = "visible", e;
1639
+ }({}), TextBaseline = /* @__PURE__ */ function(e) {
1640
+ return e.alphabetic = "alphabetic", e.ideographic = "ideographic", e;
1641
+ }({}), TextDirection = /* @__PURE__ */ function(e) {
1642
+ return e.rtl = "rtl", e.ltr = "ltr", e;
1550
1643
  }({});
1551
1644
  var TEXT_STYLE_SYMBOL = Symbol("textStyle");
1552
- function buildFontFamily(o, F, I) {
1553
- let L = o;
1554
- return F && L && (L = `packages/${F}/${L}`), I && I.length > 0 ? [L, ...I].filter(Boolean).join(", ") : L;
1555
- }
1556
- function toCSSStyle(o = {}) {
1557
- let F = {};
1558
- F.margin = 0, F.padding = 0, F.border = "none", F.fontSmooth = "antialiased", F.MozOsxFontSmoothing = "grayscale", F.textRendering = "optimizeLegibility", F.wordBreak = "break-word", F.overflowWrap = "break-word", F.transition = "all 0.2s ease-in-out", o.foreground ? Object.assign(F, o.foreground) : o.color && (F.color = o.color), o.background ? Object.assign(F, o.background) : o.backgroundColor && (F.backgroundColor = o.backgroundColor), o.fontSize && (F.fontSize = typeof o.fontSize == "number" ? px2vw(o.fontSize) : o.fontSize), o.fontWeight && (F.fontWeight = o.fontWeight.toString()), o.fontStyle && (F.fontStyle = o.fontStyle);
1559
- let I = buildFontFamily(o.fontFamily, o.package, o.fontFamilyFallback);
1560
- if (I && (F.fontFamily = I), o.letterSpacing && (F.letterSpacing = px2vw(o.letterSpacing)), o.wordSpacing && (F.wordSpacing = px2vw(o.wordSpacing)), o.height && (F.lineHeight = o.height.toString()), o.decoration && (F.textDecoration = o.decoration), o.decorationColor && (F.textDecorationColor = o.decorationColor), o.decorationStyle && (F.textDecorationStyle = o.decorationStyle), o.decorationThickness && (F.textDecorationThickness = px2vw(o.decorationThickness)), o.overflow) switch (o.overflow) {
1645
+ function buildFontFamily(e, S, C) {
1646
+ let w = e;
1647
+ return S && w && (w = `packages/${S}/${w}`), C && C.length > 0 ? [w, ...C].filter(Boolean).join(", ") : w;
1648
+ }
1649
+ function toCSSStyle(e = {}) {
1650
+ let S = {};
1651
+ S.margin = 0, S.padding = 0, S.border = "none", S.fontSmooth = "antialiased", S.MozOsxFontSmoothing = "grayscale", S.textRendering = "optimizeLegibility", S.wordBreak = "break-word", S.overflowWrap = "break-word", S.transition = "all 0.2s ease-in-out", e.foreground ? Object.assign(S, e.foreground) : e.color && (S.color = e.color), e.background ? Object.assign(S, e.background) : e.backgroundColor && (S.backgroundColor = e.backgroundColor), e.fontSize && (S.fontSize = typeof e.fontSize == "number" ? px2vw(e.fontSize) : e.fontSize), e.fontWeight && (S.fontWeight = e.fontWeight.toString()), e.fontStyle && (S.fontStyle = e.fontStyle);
1652
+ let C = buildFontFamily(e.fontFamily, e.package, e.fontFamilyFallback);
1653
+ if (C && (S.fontFamily = C), e.letterSpacing && (S.letterSpacing = px2vw(e.letterSpacing)), e.wordSpacing && (S.wordSpacing = px2vw(e.wordSpacing)), e.height && (S.lineHeight = e.height.toString()), e.decoration && (S.textDecoration = e.decoration), e.decorationColor && (S.textDecorationColor = e.decorationColor), e.decorationStyle && (S.textDecorationStyle = e.decorationStyle), e.decorationThickness && (S.textDecorationThickness = px2vw(e.decorationThickness)), e.overflow) switch (e.overflow) {
1561
1654
  case TextOverflow.ellipsis:
1562
- F.overflow = "hidden", F.textOverflow = "ellipsis", F.whiteSpace = "nowrap";
1655
+ S.overflow = "hidden", S.textOverflow = "ellipsis", S.whiteSpace = "nowrap";
1563
1656
  break;
1564
1657
  case TextOverflow.clip:
1565
- F.overflow = "hidden";
1658
+ S.overflow = "hidden";
1566
1659
  break;
1567
1660
  case TextOverflow.visible:
1568
- F.overflow = "visible";
1661
+ S.overflow = "visible";
1569
1662
  break;
1570
1663
  case TextOverflow.fade:
1571
- F.overflow = "hidden", F.whiteSpace = "nowrap", F.maskImage = "linear-gradient(to right, black 80%, transparent 100%)";
1664
+ S.overflow = "hidden", S.whiteSpace = "nowrap", S.maskImage = "linear-gradient(to right, black 80%, transparent 100%)";
1572
1665
  break;
1573
1666
  }
1574
- return o.shadows && o.shadows.length > 0 && (F.textShadow = o.shadows.map((o) => {
1575
- let F = o.offsetX || 0, I = o.offsetY || 0, L = o.blurRadius || 0, R = o.color || "rgba(0,0,0,0.5)";
1576
- return `${px2vw(F)} ${px2vw(I)} ${px2vw(L)} ${R}`;
1577
- }).join(", ")), o.fontFeatures && (F.fontFeatureSettings = JSON.stringify(o.fontFeatures)), o.fontVariations && (F.fontVariationSettings = JSON.stringify(o.fontVariations)), F;
1667
+ return e.shadows && e.shadows.length > 0 && (S.textShadow = e.shadows.map((e) => {
1668
+ let S = e.offsetX || 0, C = e.offsetY || 0, w = e.blurRadius || 0, T = e.color || "rgba(0,0,0,0.5)";
1669
+ return `${px2vw(S)} ${px2vw(C)} ${px2vw(w)} ${T}`;
1670
+ }).join(", ")), e.fontFeatures && (S.fontFeatureSettings = JSON.stringify(e.fontFeatures)), e.fontVariations && (S.fontVariationSettings = JSON.stringify(e.fontVariations)), S;
1578
1671
  }
1579
- function TextStyle(o = {}, F = {}) {
1672
+ function TextStyle(e = {}, S = {}) {
1580
1673
  return {
1581
- ...F,
1582
- ...o,
1674
+ ...S,
1675
+ ...e,
1583
1676
  [TEXT_STYLE_SYMBOL]: !0
1584
1677
  };
1585
1678
  }
1586
- function isTextStyle(o) {
1587
- return isPlainObject(o) ? TEXT_STYLE_SYMBOL in o : !1;
1679
+ function isTextStyle(e) {
1680
+ return isPlainObject(e) ? TEXT_STYLE_SYMBOL in e : !1;
1588
1681
  }
1589
1682
  var Text_default = /* @__PURE__ */ defineComponent({
1590
1683
  inheritAttrs: !1,
@@ -1603,35 +1696,259 @@ var Text_default = /* @__PURE__ */ defineComponent({
1603
1696
  semanticsLabel: {},
1604
1697
  tag: { default: "span" }
1605
1698
  },
1606
- setup(o) {
1607
- let F = useStyles(), I = o, L = useGestureEvents(), B = computed(() => F.value.pointerEvents == "none" ? {} : L || {}), V = computed(() => {
1608
- let o = I.data;
1609
- return !isUndefined(o) && o != null ? o.toString() : "";
1610
- }), H = useGestureStyle(), W = computed(() => {
1611
- let o = I.style ? toCSSStyle(I.style) : {};
1612
- I.textAlign && (o.textAlign = I.textAlign), I.textDirection && (o.direction = I.textDirection), I.softWrap === !1 && (o.whiteSpace = "nowrap");
1613
- let F = I.overflow ?? I.style?.overflow;
1614
- if (F) switch (F) {
1699
+ setup(e) {
1700
+ let S = useStyles(), C = e, w = useGestureEvents(), D = computed(() => S.value.pointerEvents == "none" ? {} : w || {}), O = computed(() => {
1701
+ let e = C.data;
1702
+ return !isUndefined(e) && e != null ? e.toString() : "";
1703
+ }), k = useGestureStyle(), A = computed(() => {
1704
+ let e = C.style ? toCSSStyle(C.style) : {};
1705
+ C.textAlign && (e.textAlign = C.textAlign), C.textDirection && (e.direction = C.textDirection), C.softWrap === !1 && (e.whiteSpace = "nowrap");
1706
+ let S = C.overflow ?? C.style?.overflow;
1707
+ if (S) switch (S) {
1615
1708
  case TextOverflow.ellipsis:
1616
- o.textOverflow = "ellipsis", o.overflow = "hidden", I.softWrap === !1 && (o.whiteSpace = "nowrap");
1709
+ e.textOverflow = "ellipsis", e.overflow = "hidden", C.softWrap === !1 && (e.whiteSpace = "nowrap");
1617
1710
  break;
1618
1711
  case TextOverflow.clip:
1619
- o.overflow = "hidden", o.textOverflow = "clip";
1712
+ e.overflow = "hidden", e.textOverflow = "clip";
1620
1713
  break;
1621
1714
  case TextOverflow.visible:
1622
- o.overflow = "visible";
1715
+ e.overflow = "visible";
1623
1716
  break;
1624
1717
  case TextOverflow.fade:
1625
- o.overflow = "hidden", o.whiteSpace = "nowrap", o.maskImage = "linear-gradient(to right, black 80%, transparent 100%)", o.WebkitMaskImage = "linear-gradient(to right, black 80%, transparent 100%)";
1718
+ e.overflow = "hidden", e.whiteSpace = "nowrap", e.maskImage = "linear-gradient(to right, black 80%, transparent 100%)", e.WebkitMaskImage = "linear-gradient(to right, black 80%, transparent 100%)";
1626
1719
  break;
1627
1720
  }
1628
- return I.maxLines && I.maxLines > 0 ? (o.overflow = "hidden", o.display = "-webkit-box", o.WebkitBoxOrient = "vertical", o.WebkitLineClamp = I.maxLines.toString(), I.softWrap !== !1 && (o.whiteSpace = "normal")) : o.display ||= I.tag === "span" ? "inline-block" : "block", Object.assign(o, H), o;
1721
+ return C.maxLines && C.maxLines > 0 ? (e.overflow = "hidden", e.display = "-webkit-box", e.WebkitBoxOrient = "vertical", e.WebkitLineClamp = C.maxLines.toString(), C.softWrap !== !1 && (e.whiteSpace = "normal")) : e.display ||= C.tag === "span" ? "inline-block" : "block", Object.assign(e, k), e;
1629
1722
  });
1630
- return (F, I) => (openBlock(), createBlock(resolveDynamicComponent(o.tag), mergeProps({ style: W.value }, B.value), {
1631
- default: withCtx(() => [renderSlot(F.$slots, "default", {}, () => [createTextVNode(toDisplayString(V.value), 1)])]),
1723
+ return (S, C) => (openBlock(), createBlock(resolveDynamicComponent(e.tag), mergeProps({ style: A.value }, D.value), {
1724
+ default: withCtx(() => [renderSlot(S.$slots, "default", {}, () => [createTextVNode(toDisplayString(O.value), 1)])]),
1632
1725
  _: 3
1633
1726
  }, 16, ["style"]));
1634
1727
  }
1728
+ });
1729
+ function OutlineInputBorder(e = {}) {
1730
+ return {
1731
+ borderSide: e.borderSide ?? BorderSide({
1732
+ color: "#000000",
1733
+ width: 1
1734
+ }),
1735
+ borderRadius: e.borderRadius ?? BorderRadius.all(4),
1736
+ isOutline: !0
1737
+ };
1738
+ }
1739
+ function UnderlineInputBorder(e = {}) {
1740
+ return {
1741
+ borderSide: e.borderSide ?? BorderSide({
1742
+ color: "#000000",
1743
+ width: 1
1744
+ }),
1745
+ borderRadius: e.borderRadius ?? BorderRadius.all(0),
1746
+ isOutline: !1
1747
+ };
1748
+ }
1749
+ var _hoisted_1 = {
1750
+ key: 1,
1751
+ class: "fluekit-input-suffix"
1752
+ }, _hoisted_2 = {
1753
+ key: 1,
1754
+ class: "fluekit-input-footer"
1755
+ }, _hoisted_3 = {
1756
+ key: 1,
1757
+ class: "fluekit-input-helper-spacer"
1758
+ }, _hoisted_4 = {
1759
+ key: 2,
1760
+ class: "fluekit-input-counter"
1761
+ }, TextField_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
1762
+ inheritAttrs: !1,
1763
+ __name: "TextField",
1764
+ props: {
1765
+ modelValue: { default: "" },
1766
+ decoration: {},
1767
+ enabled: {
1768
+ type: Boolean,
1769
+ default: !0
1770
+ },
1771
+ readOnly: {
1772
+ type: Boolean,
1773
+ default: !1
1774
+ },
1775
+ obscureText: {
1776
+ type: Boolean,
1777
+ default: !1
1778
+ },
1779
+ maxLines: { default: 1 },
1780
+ minLines: {},
1781
+ keyboardType: {},
1782
+ style: {},
1783
+ cursorColor: {},
1784
+ autofocus: { type: Boolean },
1785
+ autoGrow: {
1786
+ type: Boolean,
1787
+ default: !1
1788
+ },
1789
+ maxLength: {},
1790
+ textAlign: { default: "start" },
1791
+ textInputAction: {},
1792
+ textCapitalization: {},
1793
+ autocorrect: {
1794
+ type: Boolean,
1795
+ default: !0
1796
+ }
1797
+ },
1798
+ emits: [
1799
+ "update:modelValue",
1800
+ "focus",
1801
+ "blur",
1802
+ "submit"
1803
+ ],
1804
+ setup(e, { emit: S }) {
1805
+ let C = e, w = S, A = ref(null), M = ref(!1), N = ref(null), P = ref(0), V = null, H = () => {
1806
+ let e = A.value;
1807
+ if (!e || !U.value) return;
1808
+ if (!C.autoGrow) {
1809
+ e.style.height = "", e.style.minHeight = "", e.style.maxHeight = "";
1810
+ return;
1811
+ }
1812
+ let S = window.getComputedStyle(e), w = parseFloat(S.lineHeight || "0") || parseFloat(S.fontSize || "16") * 1.2, T = (C.minLines || 1) * w;
1813
+ if (e.style.minHeight = `${Math.round(T)}px`, C.maxLines && C.maxLines > 1) {
1814
+ let S = C.maxLines * w;
1815
+ e.style.maxHeight = `${Math.round(S)}px`;
1816
+ } else e.style.maxHeight = "";
1817
+ e.style.height = "auto", e.style.height = `${Math.max(Math.round(T), e.scrollHeight)}px`;
1818
+ };
1819
+ onMounted(() => {
1820
+ N.value && (V = new ResizeObserver(() => {
1821
+ P.value = Math.round(N.value.getBoundingClientRect().width);
1822
+ }), V.observe(N.value), P.value = Math.round(N.value.getBoundingClientRect().width)), nextTick(H);
1823
+ }), onBeforeUnmount(() => {
1824
+ V &&= (V.disconnect(), null);
1825
+ });
1826
+ let U = computed(() => C.maxLines === null || C.maxLines > 1 || C.keyboardType === "multiline"), W = computed(() => {
1827
+ if (!U.value) return C.obscureText ? "password" : C.keyboardType === "number" ? "number" : "text";
1828
+ }), G = computed(() => M.value || C.modelValue !== "" && C.modelValue !== null && C.modelValue !== void 0), K = computed(() => C.decoration?.labelText && !G.value ? "" : C.decoration?.hintText || "");
1829
+ watch(() => C.modelValue, () => nextTick(H)), watch(U, (e) => e && nextTick(H)), watch(() => C.maxLines, () => nextTick(H)), watch(() => C.minLines, () => nextTick(H)), watch(() => C.autoGrow, () => nextTick(H));
1830
+ let q = computed(() => C.decoration?.errorText && C.decoration.errorBorder ? C.decoration.errorBorder : !C.enabled && C.decoration?.disabledBorder ? C.decoration.disabledBorder : M.value && C.decoration?.focusedBorder ? C.decoration.focusedBorder : C.enabled && C.decoration?.enabledBorder ? C.decoration.enabledBorder : C.decoration?.border), J = computed(() => {
1831
+ let e = {
1832
+ display: "flex",
1833
+ alignItems: U.value ? "flex-start" : "center",
1834
+ position: "relative",
1835
+ transition: "all 0.2s ease"
1836
+ }, S = q.value || UnderlineInputBorder();
1837
+ if (S.isOutline) {
1838
+ let C = S.borderSide || BorderSide({
1839
+ width: 1,
1840
+ color: "#888"
1841
+ }), w = S.borderRadius || BorderRadius.all(4);
1842
+ Object.assign(e, borderSideToStyle(C)), Object.assign(e, borderRadiusToStyle(w)), e.padding = "8px 12px";
1843
+ } else {
1844
+ let C = S.borderSide || BorderSide({
1845
+ width: 1,
1846
+ color: "#888"
1847
+ });
1848
+ e.borderBottom = `${C.width}px ${C.style || "solid"} ${C.color}`, e.borderRadius = "0", e.padding = "4px 0";
1849
+ }
1850
+ return C.decoration?.filled && (e.backgroundColor = C.decoration.fillColor || "#f0f0f0"), e;
1851
+ }), Y = computed(() => {
1852
+ let e = { ...toCSSStyle(C.style) };
1853
+ return C.cursorColor && (e.caretColor = C.cursorColor), C.textAlign && (e.textAlign = C.textAlign), e;
1854
+ }), X = computed(() => {
1855
+ let e = {
1856
+ position: "absolute",
1857
+ left: `${(q.value?.isOutline ? 12 : 0) + (P.value || 0)}px`,
1858
+ top: q.value?.isOutline ? "50%" : "0",
1859
+ transform: "translateY(-50%)",
1860
+ pointerEvents: "none",
1861
+ transition: "all 0.2s ease",
1862
+ color: "#666",
1863
+ ...toCSSStyle(C.decoration?.labelStyle)
1864
+ };
1865
+ return G.value && (e.top = "0", e.transform = "translateY(-100%) scale(0.75)", e.transformOrigin = "left bottom", M.value && (e.color = "#2196F3")), e;
1866
+ }), Z = (e) => {
1867
+ let S = e.target;
1868
+ w("update:modelValue", S.value), nextTick(H);
1869
+ }, Q = (e) => {
1870
+ M.value = !0, w("focus", e);
1871
+ }, $ = (e) => {
1872
+ M.value = !1, w("blur", e);
1873
+ };
1874
+ return (S, C) => (openBlock(), createElementBlock("div", { class: normalizeClass(["fluekit-text-field", {
1875
+ "is-focused": M.value,
1876
+ "is-disabled": !e.enabled,
1877
+ "has-error": !!e.decoration?.errorText
1878
+ }]) }, [
1879
+ e.decoration?.labelText ? (openBlock(), createElementBlock("label", {
1880
+ key: 0,
1881
+ class: normalizeClass(["fluekit-input-label", { "is-floating": G.value }]),
1882
+ style: normalizeStyle(X.value)
1883
+ }, toDisplayString(e.decoration.labelText), 7)) : createCommentVNode("", !0),
1884
+ createElementVNode("div", {
1885
+ class: "fluekit-input-container",
1886
+ style: normalizeStyle(J.value)
1887
+ }, [
1888
+ S.$slots.prefix || e.decoration?.prefixText ? (openBlock(), createElementBlock("div", {
1889
+ key: 0,
1890
+ class: "fluekit-input-prefix",
1891
+ ref_key: "prefixRef",
1892
+ ref: N
1893
+ }, [renderSlot(S.$slots, "prefix", {}, () => [createTextVNode(toDisplayString(e.decoration?.prefixText), 1)], !0)], 512)) : createCommentVNode("", !0),
1894
+ (openBlock(), createBlock(resolveDynamicComponent(U.value ? "textarea" : "input"), mergeProps({
1895
+ ref_key: "inputRef",
1896
+ ref: A,
1897
+ class: "fluekit-input-element",
1898
+ value: e.modelValue,
1899
+ disabled: !e.enabled,
1900
+ readonly: e.readOnly,
1901
+ type: W.value,
1902
+ placeholder: K.value,
1903
+ rows: e.minLines || 1,
1904
+ style: Y.value,
1905
+ maxlength: e.maxLength,
1906
+ autocapitalize: e.textCapitalization,
1907
+ enterkeyhint: e.textInputAction,
1908
+ autocorrect: e.autocorrect ? "on" : "off"
1909
+ }, S.$attrs, {
1910
+ onInput: Z,
1911
+ onFocus: Q,
1912
+ onBlur: $
1913
+ }), null, 16, [
1914
+ "value",
1915
+ "disabled",
1916
+ "readonly",
1917
+ "type",
1918
+ "placeholder",
1919
+ "rows",
1920
+ "style",
1921
+ "maxlength",
1922
+ "autocapitalize",
1923
+ "enterkeyhint",
1924
+ "autocorrect"
1925
+ ])),
1926
+ S.$slots.suffix || e.decoration?.suffixText ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(S.$slots, "suffix", {}, () => [createTextVNode(toDisplayString(e.decoration?.suffixText), 1)], !0)])) : createCommentVNode("", !0)
1927
+ ], 4),
1928
+ e.decoration?.errorText || e.decoration?.helperText || e.maxLength && e.maxLength > 0 ? (openBlock(), createElementBlock("div", _hoisted_2, [e.decoration?.errorText || e.decoration?.helperText ? (openBlock(), createElementBlock("div", {
1929
+ key: 0,
1930
+ class: normalizeClass(["fluekit-input-helper", { "is-error": !!e.decoration?.errorText }])
1931
+ }, toDisplayString(e.decoration?.errorText || e.decoration?.helperText), 3)) : (openBlock(), createElementBlock("div", _hoisted_3)), e.maxLength && e.maxLength > 0 ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(String(e.modelValue).length) + " / " + toDisplayString(e.maxLength), 1)) : createCommentVNode("", !0)])) : createCommentVNode("", !0)
1932
+ ], 2));
1933
+ }
1934
+ }), [["__scopeId", "data-v-40723984"]]), TextArea_default = /* @__PURE__ */ defineComponent({
1935
+ inheritAttrs: !1,
1936
+ __name: "TextArea",
1937
+ props: { maxLines: { default: 4 } },
1938
+ setup(e) {
1939
+ return (S, C) => (openBlock(), createBlock(TextField_default, mergeProps(S.$attrs, {
1940
+ "max-lines": e.maxLines,
1941
+ "keyboard-type": "multiline"
1942
+ }), createSlots({ _: 2 }, [S.$slots.prefix ? {
1943
+ name: "prefix",
1944
+ fn: withCtx(() => [renderSlot(S.$slots, "prefix")]),
1945
+ key: "0"
1946
+ } : void 0, S.$slots.suffix ? {
1947
+ name: "suffix",
1948
+ fn: withCtx(() => [renderSlot(S.$slots, "suffix")]),
1949
+ key: "1"
1950
+ } : void 0]), 1040, ["max-lines"]));
1951
+ }
1635
1952
  }), Transform_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
1636
1953
  inheritAttrs: !1,
1637
1954
  __name: "Transform",
@@ -1640,20 +1957,20 @@ var Text_default = /* @__PURE__ */ defineComponent({
1640
1957
  alignment: { default: "center" },
1641
1958
  origin: {}
1642
1959
  },
1643
- setup(o) {
1644
- let F = o, I = computed(() => {
1645
- let o = {
1646
- transform: F.transform,
1960
+ setup(e) {
1961
+ let S = e, C = computed(() => {
1962
+ let e = {
1963
+ transform: S.transform,
1647
1964
  display: "flex",
1648
1965
  flexDirection: "column",
1649
1966
  flexShrink: 0
1650
1967
  };
1651
- return F.origin ? o.transformOrigin = F.origin : F.alignment && (o.transformOrigin = alignmentToOrigin(F.alignment)), o;
1968
+ return S.origin ? e.transformOrigin = S.origin : S.alignment && (e.transformOrigin = alignmentToOrigin(S.alignment)), e;
1652
1969
  });
1653
- return (o, F) => (openBlock(), createElementBlock("div", {
1970
+ return (e, S) => (openBlock(), createElementBlock("div", {
1654
1971
  class: "flutter-transform",
1655
- style: normalizeStyle(I.value)
1656
- }, [renderSlot(o.$slots, "default", {}, void 0, !0)], 4));
1972
+ style: normalizeStyle(C.value)
1973
+ }, [renderSlot(e.$slots, "default", {}, void 0, !0)], 4));
1657
1974
  }
1658
1975
  }), [["__scopeId", "data-v-7e66ebaa"]]), Wrap_default = /* @__PURE__ */ defineComponent({
1659
1976
  inheritAttrs: !1,
@@ -1668,33 +1985,33 @@ var Text_default = /* @__PURE__ */ defineComponent({
1668
1985
  verticalDirection: { default: "down" },
1669
1986
  clipBehavior: { default: "none" }
1670
1987
  },
1671
- setup(o) {
1672
- let F = o, I = {
1988
+ setup(e) {
1989
+ let S = e, C = {
1673
1990
  start: "flex-start",
1674
1991
  end: "flex-end",
1675
1992
  center: "center",
1676
1993
  spaceBetween: "space-between",
1677
1994
  spaceAround: "space-around",
1678
1995
  spaceEvenly: "space-evenly"
1679
- }, L = {
1996
+ }, w = {
1680
1997
  start: "flex-start",
1681
1998
  end: "flex-end",
1682
1999
  center: "center"
1683
- }, z = computed(() => ({
2000
+ }, E = computed(() => ({
1684
2001
  display: "flex",
1685
2002
  flexWrap: "wrap",
1686
- flexDirection: F.direction === "horizontal" ? F.verticalDirection === "down" ? "row" : "row-reverse" : F.verticalDirection === "down" ? "column" : "column-reverse",
1687
- justifyContent: I[F.alignment],
1688
- alignContent: I[F.runAlignment],
1689
- alignItems: L[F.crossAxisAlignment],
1690
- gap: `${px2vw(F.runSpacing)} ${px2vw(F.spacing)}`,
1691
- overflow: F.clipBehavior === "none" ? "visible" : "hidden"
2003
+ flexDirection: S.direction === "horizontal" ? S.verticalDirection === "down" ? "row" : "row-reverse" : S.verticalDirection === "down" ? "column" : "column-reverse",
2004
+ justifyContent: C[S.alignment],
2005
+ alignContent: C[S.runAlignment],
2006
+ alignItems: w[S.crossAxisAlignment],
2007
+ gap: `${px2vw(S.runSpacing)} ${px2vw(S.spacing)}`,
2008
+ overflow: S.clipBehavior === "none" ? "visible" : "hidden"
1692
2009
  }));
1693
- return (o, F) => (openBlock(), createElementBlock("div", {
2010
+ return (e, S) => (openBlock(), createElementBlock("div", {
1694
2011
  class: "flutter-wrap",
1695
- style: normalizeStyle(z.value)
1696
- }, [renderSlot(o.$slots, "default")], 4));
2012
+ style: normalizeStyle(E.value)
2013
+ }, [renderSlot(e.$slots, "default")], 4));
1697
2014
  }
1698
2015
  });
1699
2016
  setTransform(!1);
1700
- export { Align_default as Align, Alignment, AnimatedContainer_default as AnimatedContainer, AnimatedOpacity_default as AnimatedOpacity, AssetImage, BlurStyle, Border, BorderRadius, BorderSide, BoxAlignment, BoxConstraints, BoxDecoration, BoxFit, BoxShadow, BoxShape, Button_default as Button, ButtonStyle, Center_default as Center, Clip, Column_default as Column, Container_default as Container, CrossAxisAlignment, DecorationImage, EdgeInsets, Expanded_default as Expanded, Fixed_default as Fixed, FlexBoxAlignMap, FlexBoxJustifyMap, FontStyle, FontWeight, GestureDetector_default as GestureDetector, GridView_default as GridView, IgnorePointer_default as IgnorePointer, LinearGradient, ListView_default as ListView, MainAxisAlignment, NetworkImage, Opacity_default as Opacity, Padding_default as Padding, Positioned_default as Positioned, RadialGradient, Row_default as Row, SafeArea_default as SafeArea, ScrollView_default as ScrollView, Size, SizedBox_default as SizedBox, Stack_default as Stack, StackFit, Sticky_default as Sticky, Text_default as Text, TextAlign, TextBaseline, TextDecoration, TextDecorationStyle, TextDirection, TextOverflow, TextStyle, TileMode, Transform_default as Transform, Wrap_default as Wrap, alignmentToFlex, alignmentToOrigin, alignmentToStyle, borderRadiusToStyle, borderSideToStyle, borderToStyle, boxConstraintsToStyle, boxDecorationToStyle, boxShadowToCSS, buttonStyleToStyle, decorationImageToStyle, edgeInsetsToStyle, isBorderRadius, isBorderSide, isBorders, isBoxConstraints, isBoxDecoration, isBoxShadow, isEdgeInsets, isTextStyle, marginToStyle, normalizeSrc, paddingToStyle, px2vw, setBaseUrl, setDefaultVW, setTransform, sizeToStyle, toCSSStyle as textStyleToCSSStyle, toCSSStyle };
2017
+ export { Align_default as Align, Alignment, AnimatedContainer_default as AnimatedContainer, AnimatedOpacity_default as AnimatedOpacity, AssetImage, BlurStyle, Border, BorderRadius, BorderSide, BoxAlignment, BoxConstraints, BoxDecoration, BoxFit, BoxShadow, BoxShape, Button_default as Button, ButtonStyle, Center_default as Center, Clip, Column_default as Column, Container_default as Container, DecorationImage, EdgeInsets, Expanded_default as Expanded, Fixed_default as Fixed, FontStyle, FontWeight, GestureDetector_default as GestureDetector, GridView_default as GridView, IgnorePointer_default as IgnorePointer, Image_default as Image, LinearGradient, ListView_default as ListView, MemoryImage, NetworkImage, Opacity_default as Opacity, OutlineInputBorder, Padding_default as Padding, Positioned_default as Positioned, RadialGradient, Row_default as Row, SafeArea_default as SafeArea, ScrollView_default as ScrollView, Size, SizedBox_default as SizedBox, Stack_default as Stack, Sticky_default as Sticky, Text_default as Text, TextAlign, TextArea_default as TextArea, TextBaseline, TextDecoration, TextDecorationStyle, TextDirection, TextField_default as TextField, TextOverflow, TextStyle, TileMode, Transform_default as Transform, UnderlineInputBorder, Wrap_default as Wrap, borderRadiusToStyle, borderSideToStyle, borderToStyle, boxConstraintsToStyle, boxDecorationToStyle, boxShadowToCSS, buttonStyleToStyle, createAssetImage, decorationImageToStyle, edgeInsetsToStyle, isBorderRadius, isBorderSide, isBorders, isBoxConstraints, isBoxDecoration, isBoxShadow, isEdgeInsets, isImageProvider, isTextStyle, marginToStyle, normalizeSrc, paddingToStyle, px2vw, setAssetBaseURL, setBaseUrl, setDefaultVW, setTransform, sizeToStyle, toCSSStyle as textStyleToCSSStyle, toCSSStyle };