little-dizzy 2.3.0 → 2.5.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.
@@ -1,10 +1,10 @@
1
- import { createElementBlock as l, openBlock as a, normalizeClass as y, renderSlot as u, createCommentVNode as m, createElementVNode as o, toDisplayString as w, normalizeStyle as M, ref as k, createBlock as $, Teleport as S, createVNode as L, TransitionGroup as I, withCtx as E, Fragment as T, renderList as V, createTextVNode as j, createStaticVNode as O } from "vue";
2
- const g = (e, t) => {
3
- const s = e.__vccOpts || e;
4
- for (const [i, d] of t)
5
- s[i] = d;
6
- return s;
7
- }, A = ["disabled"], N = {
1
+ import { createElementBlock as a, openBlock as s, normalizeClass as $, renderSlot as z, createCommentVNode as g, createElementVNode as o, toDisplayString as T, normalizeStyle as x, ref as I, createBlock as X, Teleport as K, createVNode as J, TransitionGroup as Q, withCtx as Z, Fragment as _, renderList as B, computed as A, onMounted as F, onUnmounted as ee, watch as Y, createStaticVNode as R, createTextVNode as U } from "vue";
2
+ const C = (e, t) => {
3
+ const n = e.__vccOpts || e;
4
+ for (const [r, d] of t)
5
+ n[r] = d;
6
+ return n;
7
+ }, te = ["disabled"], se = {
8
8
  __name: "Button",
9
9
  props: {
10
10
  // 按钮类型
@@ -32,29 +32,29 @@ const g = (e, t) => {
32
32
  },
33
33
  emits: ["click"],
34
34
  setup(e, { emit: t }) {
35
- return (s, i) => (a(), l("button", {
36
- class: y(["btn", [
35
+ return (n, r) => (s(), a("button", {
36
+ class: $(["btn", [
37
37
  `btn-${e.type}`,
38
38
  `btn-${e.size}`,
39
39
  { "btn-block": e.block },
40
40
  { "btn-disabled": e.disabled }
41
41
  ]]),
42
42
  disabled: e.disabled,
43
- onClick: i[0] || (i[0] = (d) => s.$emit("click", d))
43
+ onClick: r[0] || (r[0] = (d) => n.$emit("click", d))
44
44
  }, [
45
- u(s.$slots, "default", {}, void 0, !0)
46
- ], 10, A));
45
+ z(n.$slots, "default", {}, void 0, !0)
46
+ ], 10, te));
47
47
  }
48
- }, H = /* @__PURE__ */ g(N, [["__scopeId", "data-v-75f082b2"]]), F = {
48
+ }, ae = /* @__PURE__ */ C(se, [["__scopeId", "data-v-75f082b2"]]), ne = {
49
49
  key: 0,
50
50
  class: "card-header"
51
- }, Y = {
51
+ }, oe = {
52
52
  key: 0,
53
53
  class: "card-header-title"
54
- }, D = { class: "card-body" }, G = {
54
+ }, le = { class: "card-body" }, re = {
55
55
  key: 1,
56
56
  class: "card-footer"
57
- }, R = {
57
+ }, ie = {
58
58
  __name: "Card",
59
59
  props: {
60
60
  // 卡片标题
@@ -69,31 +69,31 @@ const g = (e, t) => {
69
69
  }
70
70
  },
71
71
  setup(e) {
72
- return (t, s) => (a(), l("div", {
73
- class: y(["card", { "card-shadow": e.shadow }])
72
+ return (t, n) => (s(), a("div", {
73
+ class: $(["card", { "card-shadow": e.shadow }])
74
74
  }, [
75
- t.$slots.header || e.title ? (a(), l("div", F, [
76
- e.title ? (a(), l("h3", Y, w(e.title), 1)) : m("", !0),
77
- u(t.$slots, "header", {}, void 0, !0)
78
- ])) : m("", !0),
79
- o("div", D, [
80
- u(t.$slots, "default", {}, void 0, !0)
75
+ t.$slots.header || e.title ? (s(), a("div", ne, [
76
+ e.title ? (s(), a("h3", oe, T(e.title), 1)) : g("", !0),
77
+ z(t.$slots, "header", {}, void 0, !0)
78
+ ])) : g("", !0),
79
+ o("div", le, [
80
+ z(t.$slots, "default", {}, void 0, !0)
81
81
  ]),
82
- t.$slots.footer ? (a(), l("div", G, [
83
- u(t.$slots, "footer", {}, void 0, !0)
84
- ])) : m("", !0)
82
+ t.$slots.footer ? (s(), a("div", re, [
83
+ z(t.$slots, "footer", {}, void 0, !0)
84
+ ])) : g("", !0)
85
85
  ], 2));
86
86
  }
87
- }, U = /* @__PURE__ */ g(R, [["__scopeId", "data-v-2d83e63a"]]), W = { class: "modal-dialog" }, q = { class: "modal-header" }, P = {
87
+ }, ce = /* @__PURE__ */ C(ie, [["__scopeId", "data-v-1e2b2467"]]), de = { class: "modal-dialog" }, ue = { class: "modal-header" }, pe = {
88
88
  key: 0,
89
89
  class: "modal-header-title"
90
- }, X = { class: "modal-body" }, J = {
90
+ }, me = { class: "modal-body" }, ge = {
91
91
  key: 0,
92
92
  class: "modal-footer"
93
- }, K = {
93
+ }, ve = {
94
94
  key: 1,
95
95
  class: "modal-footer"
96
- }, Q = {
96
+ }, he = {
97
97
  __name: "Modal",
98
98
  props: {
99
99
  // 是否显示模态框
@@ -118,54 +118,54 @@ const g = (e, t) => {
118
118
  },
119
119
  emits: ["close", "cancel", "confirm"],
120
120
  setup(e, { emit: t }) {
121
- const s = t, i = () => {
122
- s("close");
121
+ const n = t, r = () => {
122
+ n("close");
123
123
  }, d = () => {
124
- s("cancel");
125
- }, f = () => {
126
- s("confirm");
124
+ n("cancel");
125
+ }, c = () => {
126
+ n("confirm");
127
127
  };
128
- return (c, h) => e.visible ? (a(), l("div", {
128
+ return (l, v) => e.visible ? (s(), a("div", {
129
129
  key: 0,
130
- class: y(["modal", { "modal-show": e.visible }])
130
+ class: $(["modal", { "modal-show": e.visible }])
131
131
  }, [
132
- o("div", W, [
132
+ o("div", de, [
133
133
  o("div", {
134
134
  class: "modal-content",
135
- style: M({ width: e.width })
135
+ style: x({ width: e.width })
136
136
  }, [
137
- o("div", q, [
138
- e.title ? (a(), l("h3", P, w(e.title), 1)) : m("", !0),
137
+ o("div", ue, [
138
+ e.title ? (s(), a("h3", pe, T(e.title), 1)) : g("", !0),
139
139
  o("button", {
140
140
  class: "modal-header-close",
141
- onClick: i
141
+ onClick: r
142
142
  }, "×")
143
143
  ]),
144
- o("div", X, [
145
- u(c.$slots, "default", {}, void 0, !0)
144
+ o("div", me, [
145
+ z(l.$slots, "default", {}, void 0, !0)
146
146
  ]),
147
- c.$slots.footer ? (a(), l("div", J, [
148
- u(c.$slots, "footer", {}, void 0, !0)
149
- ])) : e.showFooter ? (a(), l("div", K, [
147
+ l.$slots.footer ? (s(), a("div", ge, [
148
+ z(l.$slots, "footer", {}, void 0, !0)
149
+ ])) : e.showFooter ? (s(), a("div", ve, [
150
150
  o("button", {
151
151
  class: "btn btn-secondary",
152
152
  onClick: d
153
153
  }, "取消"),
154
154
  o("button", {
155
155
  class: "btn btn-primary",
156
- onClick: f
156
+ onClick: c
157
157
  }, "确定")
158
- ])) : m("", !0)
158
+ ])) : g("", !0)
159
159
  ], 4)
160
160
  ])
161
- ], 2)) : m("", !0);
161
+ ], 2)) : g("", !0);
162
162
  }
163
- }, Z = /* @__PURE__ */ g(Q, [["__scopeId", "data-v-39af2dcd"]]), ee = ["innerHTML"], te = { class: "text-sm font-medium" }, se = ["onClick"], oe = /* @__PURE__ */ Object.assign({
163
+ }, fe = /* @__PURE__ */ C(he, [["__scopeId", "data-v-39af2dcd"]]), ye = ["innerHTML"], be = { class: "text-sm font-medium" }, ke = ["onClick"], we = /* @__PURE__ */ Object.assign({
164
164
  name: "Message"
165
165
  }, {
166
166
  __name: "Message",
167
167
  setup(e, { expose: t }) {
168
- const s = k([]), i = {
168
+ const n = I([]), r = {
169
169
  success: "bg-emerald-500/95 text-white",
170
170
  warning: "bg-amber-500/95 text-white",
171
171
  error: "bg-rose-500/95 text-white",
@@ -185,54 +185,54 @@ const g = (e, t) => {
185
185
  <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
186
186
  </svg>`
187
187
  };
188
- let f = 0;
189
- const c = (r) => {
190
- const n = ++f, p = {
191
- id: n,
192
- type: r.type || "info",
193
- content: r.content || "",
194
- duration: r.duration ?? 3e3,
195
- closable: r.closable ?? !1
188
+ let c = 0;
189
+ const l = (p) => {
190
+ const i = ++c, u = {
191
+ id: i,
192
+ type: p.type || "info",
193
+ content: p.content || "",
194
+ duration: p.duration ?? 3e3,
195
+ closable: p.closable ?? !1
196
196
  };
197
- return s.value.push(p), p.duration > 0 && setTimeout(() => {
198
- h(n);
199
- }, p.duration), n;
200
- }, h = (r) => {
201
- const n = s.value.findIndex((p) => p.id === r);
202
- n > -1 && s.value.splice(n, 1);
197
+ return n.value.push(u), u.duration > 0 && setTimeout(() => {
198
+ v(i);
199
+ }, u.duration), i;
200
+ }, v = (p) => {
201
+ const i = n.value.findIndex((u) => u.id === p);
202
+ i > -1 && n.value.splice(i, 1);
203
203
  };
204
204
  return t({
205
- addMessage: c,
206
- removeMessage: h,
205
+ addMessage: l,
206
+ removeMessage: v,
207
207
  clearAll: () => {
208
- s.value = [];
208
+ n.value = [];
209
209
  },
210
210
  // Shorthand methods
211
- success: (r, n = {}) => c({ ...n, type: "success", content: r }),
212
- warning: (r, n = {}) => c({ ...n, type: "warning", content: r }),
213
- error: (r, n = {}) => c({ ...n, type: "error", content: r }),
214
- info: (r, n = {}) => c({ ...n, type: "info", content: r })
215
- }), (r, n) => (a(), $(S, { to: "body" }, [
216
- L(I, {
211
+ success: (p, i = {}) => l({ ...i, type: "success", content: p }),
212
+ warning: (p, i = {}) => l({ ...i, type: "warning", content: p }),
213
+ error: (p, i = {}) => l({ ...i, type: "error", content: p }),
214
+ info: (p, i = {}) => l({ ...i, type: "info", content: p })
215
+ }), (p, i) => (s(), X(K, { to: "body" }, [
216
+ J(Q, {
217
217
  name: "message",
218
218
  tag: "div",
219
219
  class: "fixed top-4 left-1/2 -translate-x-1/2 z-[9999] flex flex-col items-center gap-3 pointer-events-none"
220
220
  }, {
221
- default: E(() => [
222
- (a(!0), l(T, null, V(s.value, (p) => (a(), l("div", {
223
- key: p.id,
224
- class: y(["pointer-events-auto flex items-center gap-3 px-5 py-3 rounded-lg shadow-lg backdrop-blur-sm transition-all duration-300", i[p.type]])
221
+ default: Z(() => [
222
+ (s(!0), a(_, null, B(n.value, (u) => (s(), a("div", {
223
+ key: u.id,
224
+ class: $(["pointer-events-auto flex items-center gap-3 px-5 py-3 rounded-lg shadow-lg backdrop-blur-sm transition-all duration-300", r[u.type]])
225
225
  }, [
226
226
  o("span", {
227
227
  class: "flex-shrink-0",
228
- innerHTML: d[p.type]
229
- }, null, 8, ee),
230
- o("span", te, w(p.content), 1),
231
- p.closable ? (a(), l("button", {
228
+ innerHTML: d[u.type]
229
+ }, null, 8, ye),
230
+ o("span", be, T(u.content), 1),
231
+ u.closable ? (s(), a("button", {
232
232
  key: 0,
233
- onClick: (Me) => h(p.id),
233
+ onClick: (V) => v(u.id),
234
234
  class: "flex-shrink-0 ml-2 p-1 rounded-full hover:bg-black/10 transition-colors"
235
- }, [...n[0] || (n[0] = [
235
+ }, [...i[0] || (i[0] = [
236
236
  o("svg", {
237
237
  class: "w-4 h-4",
238
238
  viewBox: "0 0 24 24",
@@ -242,20 +242,407 @@ const g = (e, t) => {
242
242
  }, [
243
243
  o("path", { d: "M18 6L6 18M6 6l12 12" })
244
244
  ], -1)
245
- ])], 8, se)) : m("", !0)
245
+ ])], 8, ke)) : g("", !0)
246
246
  ], 2))), 128))
247
247
  ]),
248
248
  _: 1
249
249
  })
250
250
  ]));
251
251
  }
252
- }), ne = /* @__PURE__ */ g(oe, [["__scopeId", "data-v-d727fd6c"]]);
253
- k([]);
254
- let ae = 0;
255
- const re = (e) => {
256
- const t = ++ae, s = e.type || "info", i = e.content || "", d = e.duration ?? 3e3, f = e.closable ?? !1, c = document.createElement("div");
257
- c.className = `ld-message ld-message--${s}`, c.setAttribute("data-id", t);
258
- let b = `${{
252
+ }), xe = /* @__PURE__ */ C(we, [["__scopeId", "data-v-d727fd6c"]]), _e = ["src", "alt"], $e = {
253
+ key: 1,
254
+ class: "slide-title"
255
+ }, ze = {
256
+ key: 0,
257
+ class: "carousel-indicators"
258
+ }, Be = ["onClick"], Ce = {
259
+ viewBox: "0 0 24 24",
260
+ width: "24",
261
+ height: "24"
262
+ }, Se = ["d"], Me = {
263
+ viewBox: "0 0 24 24",
264
+ width: "24",
265
+ height: "24"
266
+ }, Le = ["d"], Ie = /* @__PURE__ */ Object.assign({
267
+ name: "Carousel"
268
+ }, {
269
+ __name: "Carousel",
270
+ props: {
271
+ items: {
272
+ type: Array,
273
+ default: () => []
274
+ },
275
+ height: {
276
+ type: String,
277
+ default: "300px"
278
+ },
279
+ direction: {
280
+ type: String,
281
+ default: "horizontal",
282
+ validator: (e) => ["horizontal", "vertical"].includes(e)
283
+ },
284
+ autoplay: {
285
+ type: Boolean,
286
+ default: !0
287
+ },
288
+ interval: {
289
+ type: Number,
290
+ default: 3e3
291
+ },
292
+ showIndicators: {
293
+ type: Boolean,
294
+ default: !0
295
+ },
296
+ showArrows: {
297
+ type: Boolean,
298
+ default: !0
299
+ }
300
+ },
301
+ emits: ["change"],
302
+ setup(e, { expose: t, emit: n }) {
303
+ const r = e, d = n, c = I(0);
304
+ let l = null;
305
+ const v = A(() => {
306
+ const y = c.value * 100;
307
+ return r.direction === "vertical" ? { transform: `translateY(-${y}%)` } : { transform: `translateX(-${y}%)` };
308
+ }), f = () => {
309
+ c.value = (c.value + 1) % r.items.length, d("change", c.value);
310
+ }, p = () => {
311
+ c.value = (c.value - 1 + r.items.length) % r.items.length, d("change", c.value);
312
+ }, i = (y) => {
313
+ c.value = y, d("change", c.value);
314
+ }, u = () => {
315
+ r.autoplay && r.items.length > 1 && (l = setInterval(f, r.interval));
316
+ }, V = () => {
317
+ l && (clearInterval(l), l = null);
318
+ };
319
+ return F(() => {
320
+ u();
321
+ }), ee(() => {
322
+ V();
323
+ }), t({
324
+ next: f,
325
+ prev: p,
326
+ goTo: i,
327
+ currentIndex: c
328
+ }), (y, k) => (s(), a("div", {
329
+ class: $(["ld-carousel", { "ld-carousel--vertical": e.direction === "vertical" }]),
330
+ style: x({ height: e.height })
331
+ }, [
332
+ o("div", {
333
+ class: "carousel-container",
334
+ style: x(v.value)
335
+ }, [
336
+ (s(!0), a(_, null, B(e.items, (S, M) => (s(), a("div", {
337
+ key: M,
338
+ class: $(["carousel-slide", { active: M === c.value }])
339
+ }, [
340
+ z(y.$slots, "item", {
341
+ item: S,
342
+ index: M
343
+ }, () => [
344
+ S.image ? (s(), a("img", {
345
+ key: 0,
346
+ src: S.image,
347
+ alt: S.title || ""
348
+ }, null, 8, _e)) : g("", !0),
349
+ S.title ? (s(), a("div", $e, T(S.title), 1)) : g("", !0)
350
+ ], !0)
351
+ ], 2))), 128))
352
+ ], 4),
353
+ e.showIndicators ? (s(), a("div", ze, [
354
+ (s(!0), a(_, null, B(e.items, (S, M) => (s(), a("span", {
355
+ key: M,
356
+ class: $(["indicator", { active: M === c.value }]),
357
+ onClick: (O) => i(M)
358
+ }, null, 10, Be))), 128))
359
+ ])) : g("", !0),
360
+ e.showArrows ? (s(), a(_, { key: 1 }, [
361
+ o("button", {
362
+ class: "carousel-arrow prev",
363
+ onClick: p
364
+ }, [
365
+ (s(), a("svg", Ce, [
366
+ o("path", {
367
+ fill: "currentColor",
368
+ d: e.direction === "vertical" ? "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z" : "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
369
+ }, null, 8, Se)
370
+ ]))
371
+ ]),
372
+ o("button", {
373
+ class: "carousel-arrow next",
374
+ onClick: f
375
+ }, [
376
+ (s(), a("svg", Me, [
377
+ o("path", {
378
+ fill: "currentColor",
379
+ d: e.direction === "vertical" ? "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z" : "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
380
+ }, null, 8, Le)
381
+ ]))
382
+ ])
383
+ ], 64)) : g("", !0)
384
+ ], 6));
385
+ }
386
+ }), Te = /* @__PURE__ */ C(Ie, [["__scopeId", "data-v-42bf1623"]]), Ae = {
387
+ key: 1,
388
+ class: "dots"
389
+ }, Ve = {
390
+ key: 4,
391
+ class: "bars"
392
+ }, Ee = {
393
+ key: 5,
394
+ class: "loading-text"
395
+ }, Oe = /* @__PURE__ */ Object.assign({
396
+ name: "Loading"
397
+ }, {
398
+ __name: "Loading",
399
+ props: {
400
+ type: {
401
+ type: String,
402
+ default: "spinner",
403
+ validator: (e) => ["spinner", "dots", "ring", "pulse", "bars"].includes(e)
404
+ },
405
+ size: {
406
+ type: String,
407
+ default: "40px"
408
+ },
409
+ color: {
410
+ type: String,
411
+ default: "var(--ld-color-primary, #6366f1)"
412
+ },
413
+ text: {
414
+ type: String,
415
+ default: ""
416
+ },
417
+ fullscreen: {
418
+ type: Boolean,
419
+ default: !1
420
+ }
421
+ },
422
+ setup(e) {
423
+ const t = e, n = A(() => ({
424
+ width: t.size,
425
+ height: t.size,
426
+ "--spinner-color": t.color
427
+ })), r = A(() => ({
428
+ width: t.size,
429
+ height: t.size,
430
+ "--ring-color": t.color
431
+ }));
432
+ return (d, c) => (s(), a("div", {
433
+ class: $(["ld-loading", [`ld-loading--${e.type}`, { "ld-loading--fullscreen": e.fullscreen }]])
434
+ }, [
435
+ e.type === "spinner" ? (s(), a("div", {
436
+ key: 0,
437
+ class: "spinner",
438
+ style: x(n.value)
439
+ }, [
440
+ (s(), a(_, null, B(12, (l) => o("div", {
441
+ key: l,
442
+ class: "spinner-blade"
443
+ })), 64))
444
+ ], 4)) : e.type === "dots" ? (s(), a("div", Ae, [
445
+ (s(), a(_, null, B(3, (l) => o("span", {
446
+ key: l,
447
+ class: "dot",
448
+ style: x({ background: e.color })
449
+ }, null, 4)), 64))
450
+ ])) : e.type === "ring" ? (s(), a("div", {
451
+ key: 2,
452
+ class: "ring",
453
+ style: x(r.value)
454
+ }, [...c[0] || (c[0] = [
455
+ o("div", { class: "ring-inner" }, null, -1)
456
+ ])], 4)) : e.type === "pulse" ? (s(), a("div", {
457
+ key: 3,
458
+ class: "pulse",
459
+ style: x({ background: e.color, width: e.size, height: e.size })
460
+ }, null, 4)) : e.type === "bars" ? (s(), a("div", Ve, [
461
+ (s(), a(_, null, B(5, (l) => o("span", {
462
+ key: l,
463
+ class: "bar",
464
+ style: x({ background: e.color })
465
+ }, null, 4)), 64))
466
+ ])) : g("", !0),
467
+ e.text ? (s(), a("div", Ee, T(e.text), 1)) : g("", !0)
468
+ ], 2));
469
+ }
470
+ }), je = /* @__PURE__ */ C(Oe, [["__scopeId", "data-v-5052ea89"]]), De = {
471
+ key: 0,
472
+ class: "ld-table-loading"
473
+ }, He = {
474
+ key: 0,
475
+ class: "loading-text"
476
+ }, Pe = { class: "ld-table" }, Ne = ["onClick"], Fe = { class: "th-content" }, Ye = { key: 0 }, Re = ["colspan"], Ue = ["onClick"], qe = /* @__PURE__ */ Object.assign({
477
+ name: "ldTable"
478
+ }, {
479
+ __name: "Table",
480
+ props: {
481
+ columns: {
482
+ type: Array,
483
+ required: !0
484
+ },
485
+ data: {
486
+ type: Array,
487
+ default: () => []
488
+ },
489
+ bordered: {
490
+ type: Boolean,
491
+ default: !1
492
+ },
493
+ striped: {
494
+ type: Boolean,
495
+ default: !1
496
+ },
497
+ loading: {
498
+ type: Boolean,
499
+ default: !1
500
+ },
501
+ loadingText: {
502
+ type: String,
503
+ default: ""
504
+ },
505
+ // API 相关
506
+ api: {
507
+ type: Function,
508
+ default: null
509
+ },
510
+ autoLoad: {
511
+ type: Boolean,
512
+ default: !0
513
+ },
514
+ loadParams: {
515
+ type: Object,
516
+ default: () => ({})
517
+ }
518
+ },
519
+ emits: ["row-click", "load-success", "load-error"],
520
+ setup(e, { expose: t, emit: n }) {
521
+ const r = e, d = n, c = I(!1), l = I([]), v = A(() => typeof r.api == "function"), f = A(() => r.loading || c.value), p = A(() => v.value ? l.value : r.data), i = async (h = {}) => {
522
+ if (v.value) {
523
+ c.value = !0;
524
+ try {
525
+ const b = { ...r.loadParams, ...h }, m = await r.api(b);
526
+ return l.value = Array.isArray(m) ? m : m?.data || m?.list || [], d("load-success", l.value), l.value;
527
+ } catch (b) {
528
+ throw console.error("[ld-table] Load error:", b), d("load-error", b), b;
529
+ } finally {
530
+ c.value = !1;
531
+ }
532
+ }
533
+ }, u = (h = {}) => i(h), V = () => {
534
+ l.value = [];
535
+ };
536
+ Y(() => r.loadParams, (h) => {
537
+ v.value && r.autoLoad && i();
538
+ }, { deep: !0 }), F(() => {
539
+ v.value && r.autoLoad && i();
540
+ });
541
+ const y = I(""), k = I(""), S = (h) => {
542
+ y.value === h ? (k.value = k.value === "asc" ? "desc" : k.value === "desc" ? "" : "asc", k.value || (y.value = "")) : (y.value = h, k.value = "asc");
543
+ }, M = (h) => y.value !== h ? "" : k.value === "asc" ? "sort-asc" : k.value === "desc" ? "sort-desc" : "", O = A(() => {
544
+ const h = p.value;
545
+ return !y.value || !k.value ? h : [...h].sort((b, m) => {
546
+ const L = b[y.value], w = m[y.value];
547
+ if (typeof L == "number" && typeof w == "number")
548
+ return k.value === "asc" ? L - w : w - L;
549
+ const H = String(L || ""), P = String(w || "");
550
+ return k.value === "asc" ? H.localeCompare(P) : P.localeCompare(H);
551
+ });
552
+ });
553
+ return t({
554
+ load: i,
555
+ reload: u,
556
+ clear: V,
557
+ getData: () => l.value
558
+ }), (h, b) => (s(), a("div", {
559
+ class: $(["ld-table-wrapper", { "ld-table--bordered": e.bordered, "ld-table--striped": e.striped }])
560
+ }, [
561
+ f.value ? (s(), a("div", De, [
562
+ b[0] || (b[0] = o("div", { class: "loading-spinner" }, [
563
+ o("svg", {
564
+ class: "circular",
565
+ viewBox: "0 0 50 50"
566
+ }, [
567
+ o("circle", {
568
+ class: "path",
569
+ cx: "25",
570
+ cy: "25",
571
+ r: "20",
572
+ fill: "none"
573
+ })
574
+ ])
575
+ ], -1)),
576
+ e.loadingText ? (s(), a("span", He, T(e.loadingText), 1)) : g("", !0)
577
+ ])) : g("", !0),
578
+ o("table", Pe, [
579
+ o("thead", null, [
580
+ o("tr", null, [
581
+ (s(!0), a(_, null, B(e.columns, (m) => (s(), a("th", {
582
+ key: m.key,
583
+ style: x({ width: m.width, textAlign: m.align || "left" }),
584
+ onClick: (L) => m.sortable && S(m.key)
585
+ }, [
586
+ o("div", Fe, [
587
+ o("span", null, T(m.title), 1),
588
+ m.sortable ? (s(), a("span", {
589
+ key: 0,
590
+ class: $(["sort-icon", M(m.key)])
591
+ }, [...b[1] || (b[1] = [
592
+ o("svg", {
593
+ viewBox: "0 0 24 24",
594
+ width: "14",
595
+ height: "14"
596
+ }, [
597
+ o("path", {
598
+ fill: "currentColor",
599
+ d: "M7 10l5-5 5 5H7zm0 4l5 5 5-5H7z"
600
+ })
601
+ ], -1)
602
+ ])], 2)) : g("", !0)
603
+ ])
604
+ ], 12, Ne))), 128))
605
+ ])
606
+ ]),
607
+ o("tbody", null, [
608
+ !O.value.length && !f.value ? (s(), a("tr", Ye, [
609
+ o("td", {
610
+ colspan: e.columns.length,
611
+ class: "empty-cell"
612
+ }, [
613
+ z(h.$slots, "empty", {}, () => [
614
+ b[2] || (b[2] = R('<div class="empty-content" data-v-567f3024><svg viewBox="0 0 64 41" width="64" height="41" data-v-567f3024><g transform="translate(0 1)" fill="none" fill-rule="evenodd" data-v-567f3024><ellipse fill="var(--ld-color-bg-secondary, #f5f5f5)" cx="32" cy="33" rx="32" ry="7" data-v-567f3024></ellipse><g fill-rule="nonzero" stroke="var(--ld-color-border, #d9d9d9)" data-v-567f3024><path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" data-v-567f3024></path><path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="var(--ld-color-bg, #fafafa)" data-v-567f3024></path></g></g></svg><span data-v-567f3024>暂无数据</span></div>', 1))
615
+ ], !0)
616
+ ], 8, Re)
617
+ ])) : g("", !0),
618
+ (s(!0), a(_, null, B(O.value, (m, L) => (s(), a("tr", {
619
+ key: L,
620
+ onClick: (w) => h.$emit("row-click", m, L)
621
+ }, [
622
+ (s(!0), a(_, null, B(e.columns, (w) => (s(), a("td", {
623
+ key: w.key,
624
+ style: x({ textAlign: w.align || "left" })
625
+ }, [
626
+ z(h.$slots, w.key, {
627
+ row: m,
628
+ index: L,
629
+ value: m[w.key]
630
+ }, () => [
631
+ U(T(m[w.key]), 1)
632
+ ], !0)
633
+ ], 4))), 128))
634
+ ], 8, Ue))), 128))
635
+ ])
636
+ ])
637
+ ], 2));
638
+ }
639
+ }), Ge = /* @__PURE__ */ C(qe, [["__scopeId", "data-v-567f3024"]]);
640
+ I([]);
641
+ let We = 0;
642
+ const Xe = (e) => {
643
+ const t = ++We, n = e.type || "info", r = e.content || "", d = e.duration ?? 3e3, c = e.closable ?? !1, l = document.createElement("div");
644
+ l.className = `ld-message ld-message--${n}`, l.setAttribute("data-id", t);
645
+ let f = `${{
259
646
  success: `<svg class="ld-message-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
260
647
  <path d="M20 6L9 17l-5-5" stroke-linecap="round" stroke-linejoin="round"/>
261
648
  </svg>`,
@@ -269,13 +656,13 @@ const re = (e) => {
269
656
  info: `<svg class="ld-message-icon" viewBox="0 0 24 24" fill="currentColor">
270
657
  <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/>
271
658
  </svg>`
272
- }[s]}<span class="ld-message-content">${i}</span>`;
273
- return f && (b += `<button class="ld-message-close" onclick="window.__ldMessageClose(${t})">
659
+ }[n]}<span class="ld-message-content">${r}</span>`;
660
+ return c && (f += `<button class="ld-message-close" onclick="window.__ldMessageClose(${t})">
274
661
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
275
662
  <path d="M18 6L6 18M6 6l12 12"/>
276
663
  </svg>
277
- </button>`), c.innerHTML = b, { id: t, element: c, duration: d };
278
- }, le = () => {
664
+ </button>`), l.innerHTML = f, { id: t, element: l, duration: d };
665
+ }, Ke = () => {
279
666
  let e = document.getElementById("ld-message-root");
280
667
  if (!e) {
281
668
  e = document.createElement("div"), e.id = "ld-message-root", document.body.appendChild(e);
@@ -344,98 +731,132 @@ const re = (e) => {
344
731
  `, document.head.appendChild(t);
345
732
  }
346
733
  return e;
347
- }, _ = (e) => {
734
+ }, j = (e) => {
348
735
  const t = document.getElementById("ld-message-root");
349
736
  if (!t) return;
350
- const s = t.querySelector(`[data-id="${e}"]`);
351
- s && (s.classList.add("ld-message--closing"), setTimeout(() => {
352
- s.remove();
737
+ const n = t.querySelector(`[data-id="${e}"]`);
738
+ n && (n.classList.add("ld-message--closing"), setTimeout(() => {
739
+ n.remove();
353
740
  }, 200));
354
741
  };
355
- typeof window < "u" && (window.__ldMessageClose = _);
356
- const v = (e) => {
357
- const t = le(), { id: s, element: i, duration: d } = re(e);
358
- return t.appendChild(i), d > 0 && setTimeout(() => {
359
- _(s);
360
- }, d), s;
361
- }, Se = {
362
- success: (e, t = {}) => v({ ...t, type: "success", content: e }),
363
- warning: (e, t = {}) => v({ ...t, type: "warning", content: e }),
364
- error: (e, t = {}) => v({ ...t, type: "error", content: e }),
365
- info: (e, t = {}) => v({ ...t, type: "info", content: e }),
366
- close: _,
742
+ typeof window < "u" && (window.__ldMessageClose = j);
743
+ const E = (e) => {
744
+ const t = Ke(), { id: n, element: r, duration: d } = Xe(e);
745
+ return t.appendChild(r), d > 0 && setTimeout(() => {
746
+ j(n);
747
+ }, d), n;
748
+ }, N = {
749
+ success: (e, t = {}) => E({ ...t, type: "success", content: e }),
750
+ warning: (e, t = {}) => E({ ...t, type: "warning", content: e }),
751
+ error: (e, t = {}) => E({ ...t, type: "error", content: e }),
752
+ info: (e, t = {}) => E({ ...t, type: "info", content: e }),
753
+ close: j,
367
754
  closeAll: () => {
368
755
  const e = document.getElementById("ld-message-root");
369
756
  e && (e.innerHTML = "");
370
757
  }
371
- }, ie = { class: "lzbutton-wrapper" }, ce = { class: "button" }, de = /* @__PURE__ */ Object.assign({
758
+ }, Je = { class: "lzbutton-wrapper" }, Qe = { class: "button" }, Ze = /* @__PURE__ */ Object.assign({
372
759
  name: "Lzbutton"
373
760
  }, {
374
761
  __name: "lzbutton",
375
762
  setup(e) {
376
- return (t, s) => (a(), l("div", ie, [
377
- o("button", ce, [
378
- s[1] || (s[1] = o("svg", {
763
+ return (t, n) => (s(), a("div", Je, [
764
+ o("button", Qe, [
765
+ n[1] || (n[1] = o("svg", {
379
766
  xmlns: "http://www.w3.org/2000/svg",
380
767
  viewBox: "0 0 36 24"
381
768
  }, [
382
769
  o("path", { d: "m18 0 8 12 10-8-4 20H4L0 4l10 8 8-12z" })
383
770
  ], -1)),
384
- u(t.$slots, "default", {}, () => [
385
- s[0] || (s[0] = j("Unlock Pro", -1))
771
+ z(t.$slots, "default", {}, () => [
772
+ n[0] || (n[0] = U("Unlock Pro", -1))
386
773
  ], !0)
387
774
  ])
388
775
  ]));
389
776
  }
390
- }), pe = /* @__PURE__ */ g(de, [["__scopeId", "data-v-7124b716"]]), ue = { class: "Lztext-wrapper" }, me = /* @__PURE__ */ Object.assign({
777
+ }), et = /* @__PURE__ */ C(Ze, [["__scopeId", "data-v-7124b716"]]), tt = { class: "Lztext-wrapper" }, st = { class: "loader-wrapper" }, at = /* @__PURE__ */ Object.assign({
391
778
  name: "Lztext"
392
779
  }, {
393
780
  __name: "Lztext",
781
+ props: {
782
+ /**
783
+ * 显示的文字内容
784
+ */
785
+ text: {
786
+ type: String,
787
+ default: "Generating"
788
+ }
789
+ },
394
790
  setup(e) {
395
- return (t, s) => (a(), l("div", ue, [...s[0] || (s[0] = [
396
- O('<div class="loader-wrapper" data-v-f22456dd><span class="loader-letter" data-v-f22456dd>G</span><span class="loader-letter" data-v-f22456dd>e</span><span class="loader-letter" data-v-f22456dd>n</span><span class="loader-letter" data-v-f22456dd>e</span><span class="loader-letter" data-v-f22456dd>r</span><span class="loader-letter" data-v-f22456dd>a</span><span class="loader-letter" data-v-f22456dd>t</span><span class="loader-letter" data-v-f22456dd>i</span><span class="loader-letter" data-v-f22456dd>n</span><span class="loader-letter" data-v-f22456dd>g</span><div class="loader" data-v-f22456dd></div></div>', 1)
397
- ])]));
791
+ const t = e, n = A(() => t.text.split(""));
792
+ return (r, d) => (s(), a("div", tt, [
793
+ o("div", st, [
794
+ (s(!0), a(_, null, B(n.value, (c, l) => (s(), a("span", {
795
+ key: l,
796
+ class: "loader-letter",
797
+ style: x({ animationDelay: `${0.1 + l * 0.105}s` })
798
+ }, T(c === " " ? " " : c), 5))), 128)),
799
+ d[0] || (d[0] = o("div", { class: "loader" }, null, -1))
800
+ ])
801
+ ]));
398
802
  }
399
- }), ge = /* @__PURE__ */ g(me, [["__scopeId", "data-v-f22456dd"]]), fe = { class: "lztheme-wrapper" }, he = /* @__PURE__ */ Object.assign({
803
+ }), nt = /* @__PURE__ */ C(at, [["__scopeId", "data-v-2cca50b0"]]), ot = { class: "lztheme-wrapper" }, lt = { class: "theme__toggle-wrap" }, rt = ["checked"], it = /* @__PURE__ */ Object.assign({
400
804
  name: "Lztheme"
401
805
  }, {
402
806
  __name: "lztheme",
403
- setup(e) {
404
- return (t, s) => (a(), l("div", fe, [...s[0] || (s[0] = [
807
+ props: {
808
+ // 是否为暗色主题
809
+ modelValue: {
810
+ type: Boolean,
811
+ default: !1
812
+ }
813
+ },
814
+ emits: ["update:modelValue", "change"],
815
+ setup(e, { expose: t, emit: n }) {
816
+ let r = 0;
817
+ const d = `lztheme-toggle-${++r}-${Date.now()}`, c = e, l = n, v = I(null), f = I(c.modelValue);
818
+ Y(() => c.modelValue, (i) => {
819
+ f.value = i;
820
+ });
821
+ const p = (i) => {
822
+ const u = i.target.checked;
823
+ f.value = u, l("update:modelValue", u), l("change", u);
824
+ };
825
+ return t({
826
+ toggle: () => {
827
+ v.value && v.value.click();
828
+ },
829
+ setDark: (i) => {
830
+ f.value = i, l("update:modelValue", i), l("change", i);
831
+ }
832
+ }), (i, u) => (s(), a("div", ot, [
405
833
  o("label", {
406
- for: "theme",
834
+ for: d,
407
835
  class: "theme"
408
836
  }, [
409
- o("span", { class: "theme__toggle-wrap" }, [
837
+ o("span", lt, [
410
838
  o("input", {
411
- id: "theme",
839
+ id: d,
840
+ ref_key: "toggleRef",
841
+ ref: v,
412
842
  class: "theme__toggle",
413
843
  type: "checkbox",
414
844
  role: "switch",
415
845
  name: "theme",
416
- value: "dark"
417
- }),
418
- o("span", { class: "theme__fill" }),
419
- o("span", { class: "theme__icon" }, [
420
- o("span", { class: "theme__icon-part" }),
421
- o("span", { class: "theme__icon-part" }),
422
- o("span", { class: "theme__icon-part" }),
423
- o("span", { class: "theme__icon-part" }),
424
- o("span", { class: "theme__icon-part" }),
425
- o("span", { class: "theme__icon-part" }),
426
- o("span", { class: "theme__icon-part" }),
427
- o("span", { class: "theme__icon-part" }),
428
- o("span", { class: "theme__icon-part" })
429
- ])
846
+ value: "dark",
847
+ checked: f.value,
848
+ onChange: p
849
+ }, null, 40, rt),
850
+ u[0] || (u[0] = R('<span class="theme__icon" data-v-e887d581><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span><span class="theme__icon-part" data-v-e887d581></span></span>', 1))
430
851
  ])
431
- ], -1)
432
- ])]));
852
+ ])
853
+ ]));
433
854
  }
434
- }), ve = /* @__PURE__ */ g(he, [["__scopeId", "data-v-0b85d094"]]), ye = {
435
- Lzbutton: pe,
436
- Lztext: ge,
437
- Lztheme: ve
438
- }, be = {
855
+ }), ct = /* @__PURE__ */ C(it, [["__scopeId", "data-v-e887d581"]]), dt = {
856
+ Lzbutton: et,
857
+ Lztext: nt,
858
+ Lztheme: ct
859
+ }, ut = {
439
860
  name: "Button",
440
861
  type: "vue",
441
862
  label: "Button 按钮",
@@ -449,7 +870,7 @@ const v = (e) => {
449
870
  <script setup>
450
871
  import { Button } from 'little-dizzy'
451
872
  <\/script>`
452
- }, we = {
873
+ }, pt = {
453
874
  name: "Card",
454
875
  type: "vue",
455
876
  label: "Card 卡片",
@@ -469,7 +890,7 @@ import { Button } from 'little-dizzy'
469
890
  <script setup>
470
891
  import { Card, Button } from 'little-dizzy'
471
892
  <\/script>`
472
- }, _e = {
893
+ }, mt = {
473
894
  name: "Modal",
474
895
  type: "vue",
475
896
  label: "Modal 模态框",
@@ -494,7 +915,7 @@ import { Modal, Button } from 'little-dizzy'
494
915
 
495
916
  const visible = ref(false)
496
917
  <\/script>`
497
- }, xe = {
918
+ }, gt = {
498
919
  name: "Message",
499
920
  type: "vue",
500
921
  label: "Message 消息提示",
@@ -534,14 +955,93 @@ const showInfo = () => {
534
955
  flex-wrap: wrap;
535
956
  }
536
957
  </style>`
537
- }, ke = [
538
- be,
539
- we,
540
- _e,
541
- xe
542
- ], x = /* @__PURE__ */ new Map();
543
- function B(e) {
544
- return !e || !e.name ? (console.warn("[LittleDizzy] Snippet must have a name property"), !1) : (x.set(e.name, {
958
+ }, vt = {
959
+ name: "Carousel",
960
+ type: "vue",
961
+ label: "Carousel 轮播图",
962
+ code: `<template>
963
+ <Carousel :items="items" height="300px" />
964
+ </template>
965
+
966
+ <script setup>
967
+ import { Carousel } from 'little-dizzy'
968
+
969
+ const items = [
970
+ { image: 'https://picsum.photos/800/300?random=1', title: '图片 1' },
971
+ { image: 'https://picsum.photos/800/300?random=2', title: '图片 2' },
972
+ { image: 'https://picsum.photos/800/300?random=3', title: '图片 3' }
973
+ ]
974
+ <\/script>`
975
+ }, ht = {
976
+ name: "Loading",
977
+ type: "vue",
978
+ label: "Loading 加载",
979
+ code: `<template>
980
+ <Loading type="spinner" />
981
+ <Loading type="dots" />
982
+ <Loading type="ring" />
983
+ <Loading type="pulse" />
984
+ <Loading type="bars" />
985
+ </template>
986
+
987
+ <script setup>
988
+ import { Loading } from 'little-dizzy'
989
+ <\/script>`
990
+ }, ft = {
991
+ name: "Table",
992
+ type: "vue",
993
+ label: "Table 表格",
994
+ code: `<template>
995
+ <Table :columns="columns" :data="data" bordered striped />
996
+ </template>
997
+
998
+ <script setup>
999
+ import { Table } from 'little-dizzy'
1000
+
1001
+ const columns = [
1002
+ { key: 'name', title: '姓名', width: '120px' },
1003
+ { key: 'age', title: '年龄', width: '80px' },
1004
+ { key: 'address', title: '地址' }
1005
+ ]
1006
+
1007
+ const data = [
1008
+ { name: '张三', age: 28, address: '北京市朝阳区' },
1009
+ { name: '李四', age: 32, address: '上海市浦东新区' },
1010
+ { name: '王五', age: 25, address: '广州市天河区' }
1011
+ ]
1012
+ <\/script>`
1013
+ }, yt = {
1014
+ name: "Backtop",
1015
+ type: "vue",
1016
+ label: "Backtop 回到顶部",
1017
+ code: `<template>
1018
+ <!-- 基础用法 -->
1019
+ <Backtop />
1020
+
1021
+ <!-- 指定滚动容器 -->
1022
+ <Backtop target=".my-container" :visibility-height="100" />
1023
+
1024
+ <!-- 自定义内容 -->
1025
+ <Backtop>
1026
+ <span style="font-size: 12px;">UP</span>
1027
+ </Backtop>
1028
+ </template>
1029
+
1030
+ <script setup>
1031
+ import { Backtop } from 'little-dizzy'
1032
+ <\/script>`
1033
+ }, bt = [
1034
+ ut,
1035
+ pt,
1036
+ mt,
1037
+ gt,
1038
+ vt,
1039
+ ht,
1040
+ ft,
1041
+ yt
1042
+ ], D = /* @__PURE__ */ new Map();
1043
+ function q(e) {
1044
+ return !e || !e.name ? (console.warn("[LittleDizzy] Snippet must have a name property"), !1) : (D.set(e.name, {
545
1045
  name: e.name,
546
1046
  type: e.type || "html",
547
1047
  label: e.label || e.name,
@@ -550,51 +1050,57 @@ function B(e) {
550
1050
  ...e
551
1051
  }), !0);
552
1052
  }
553
- function z(e) {
1053
+ function G(e) {
554
1054
  if (!Array.isArray(e))
555
1055
  return console.warn("[LittleDizzy] registerSnippets expects an array"), 0;
556
1056
  let t = 0;
557
- return e.forEach((s) => {
558
- B(s) && t++;
1057
+ return e.forEach((n) => {
1058
+ q(n) && t++;
559
1059
  }), t;
560
1060
  }
561
- function Be() {
1061
+ function kt() {
562
1062
  const e = {};
563
- return x.forEach((t, s) => {
564
- e[s] = t;
1063
+ return D.forEach((t, n) => {
1064
+ e[n] = t;
565
1065
  }), e;
566
1066
  }
567
- function ze(e) {
568
- return x.get(e);
1067
+ function wt(e) {
1068
+ return D.get(e);
569
1069
  }
570
- z(ke);
571
- const C = {
572
- Button: H,
573
- Card: U,
574
- Modal: Z,
575
- Message: ne,
576
- ...ye
577
- }, Ce = (e, t = {}) => {
578
- Object.entries(C).forEach(([s, i]) => {
579
- e.component(t.prefix ? `${t.prefix}${s}` : s, i);
580
- });
581
- }, Le = Be, Ie = B, Ee = z, Te = ze, Ve = {
582
- install: Ce,
583
- ...C
1070
+ G(bt);
1071
+ const W = {
1072
+ Button: ae,
1073
+ Card: ce,
1074
+ Modal: fe,
1075
+ Message: xe,
1076
+ Carousel: Te,
1077
+ Loading: je,
1078
+ Table: Ge,
1079
+ ...dt
1080
+ }, xt = (e, t = {}) => {
1081
+ Object.entries(W).forEach(([n, r]) => {
1082
+ e.component(t.prefix ? `${t.prefix}${n}` : n, r);
1083
+ }), e.config.globalProperties.$message = N, e.provide("message", N);
1084
+ }, $t = kt, zt = q, Bt = G, Ct = wt, St = {
1085
+ install: xt,
1086
+ ...W
584
1087
  };
585
1088
  export {
586
- H as Button,
587
- U as Card,
588
- pe as Lzbutton,
589
- ge as Lztext,
590
- ve as Lztheme,
591
- ne as Message,
592
- Z as Modal,
593
- ye as customComponents,
594
- Ve as default,
595
- Te as getSnippet,
596
- Se as message,
597
- Ie as registerSnippet,
598
- Ee as registerSnippets,
599
- Le as snippets
1089
+ ae as Button,
1090
+ ce as Card,
1091
+ Te as Carousel,
1092
+ je as Loading,
1093
+ et as Lzbutton,
1094
+ nt as Lztext,
1095
+ ct as Lztheme,
1096
+ xe as Message,
1097
+ fe as Modal,
1098
+ Ge as Table,
1099
+ dt as customComponents,
1100
+ St as default,
1101
+ Ct as getSnippet,
1102
+ N as message,
1103
+ zt as registerSnippet,
1104
+ Bt as registerSnippets,
1105
+ $t as snippets
600
1106
  };