@bagelink/vue 0.0.815 → 0.0.819

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.
@@ -11,12 +11,20 @@ declare const __VLS_component: import('vue').DefineComponent<{
11
11
  label?: string;
12
12
  id?: string;
13
13
  open?: boolean;
14
+ iconType?: "expand_more" | "plus_minus";
15
+ iconPosition?: "start" | "end";
16
+ flat?: boolean;
17
+ iconClass?: string;
14
18
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
19
  "update:open": (...args: any[]) => void;
16
20
  }, string, import('vue').PublicProps, Readonly<{
17
21
  label?: string;
18
22
  id?: string;
19
23
  open?: boolean;
24
+ iconType?: "expand_more" | "plus_minus";
25
+ iconPosition?: "start" | "end";
26
+ flat?: boolean;
27
+ iconClass?: string;
20
28
  }> & Readonly<{
21
29
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
22
30
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/AccordionItem.vue"],"names":[],"mappings":"AA6MA,iBAAS,cAAc;;sBAqEG,GAAG;yBACC,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAtJZ,MAAM;SACT,MAAM;WACJ,OAAO;;;;YAFN,MAAM;SACT,MAAM;WACJ,OAAO;;;kFA2Jb,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"AccordionItem.vue.d.ts","sourceRoot":"","sources":["../../src/components/AccordionItem.vue"],"names":[],"mappings":"AAuPA,iBAAS,cAAc;;sBAoFG,GAAG;yBACC,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAlLZ,MAAM;SACT,MAAM;WACJ,OAAO;eACH,aAAa,GAAG,YAAY;mBACxB,OAAO,GAAG,KAAK;WACvB,OAAO;gBACF,MAAM;;;;YANV,MAAM;SACT,MAAM;WACJ,OAAO;eACH,aAAa,GAAG,YAAY;mBACxB,OAAO,GAAG,KAAK;WACvB,OAAO;gBACF,MAAM;;;kFAmLjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Carousel.vue"],"names":[],"mappings":"AAoYA,iBAAS,IAAI,SAMZ;AAED,iBAAS,IAAI,SAKZ;AA0CD,iBAAS,cAAc;;yBAqFM,GAAG;;;;YACN,GAAG;;;;YACH,GAAG;;;;;WAUf,OAAO,IAA6B;EAEjD;AAuCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA4BnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Carousel.vue.d.ts","sourceRoot":"","sources":["../../src/components/Carousel.vue"],"names":[],"mappings":"AAqcA,iBAAS,IAAI,SAMZ;AAED,iBAAS,IAAI,SAKZ;AA0CD,iBAAS,cAAc;;yBAqFM,GAAG;;;;YACN,GAAG;;;;YACH,GAAG;;;;;WAUf,OAAO,IAA6B;EAEjD;AAsCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA4BnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,9 @@
1
1
  import { MaterialIcons, ThemeType } from '..';
2
+ interface BtnProp {
3
+ icon: MaterialIcons;
4
+ onClick: () => void;
5
+ value: string;
6
+ }
2
7
  declare function __VLS_template(): {
3
8
  slots: {
4
9
  default?(_: {}): any;
@@ -10,7 +15,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
15
  declare const __VLS_component: import('vue').DefineComponent<{
11
16
  disabled?: boolean;
12
17
  icon?: MaterialIcons;
13
- iconEnd?: MaterialIcons;
18
+ iconEnd: MaterialIcons;
14
19
  color?: ThemeType;
15
20
  theme?: ThemeType;
16
21
  flat?: boolean;
@@ -19,12 +24,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
19
24
  loading?: boolean;
20
25
  value?: string;
21
26
  round?: boolean;
22
- btnStart?: boolean;
23
- btnEnd?: boolean;
27
+ btn: BtnProp;
28
+ btnEnd: BtnProp;
24
29
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
25
30
  disabled?: boolean;
26
31
  icon?: MaterialIcons;
27
- iconEnd?: MaterialIcons;
32
+ iconEnd: MaterialIcons;
28
33
  color?: ThemeType;
29
34
  theme?: ThemeType;
30
35
  flat?: boolean;
@@ -33,16 +38,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
33
38
  loading?: boolean;
34
39
  value?: string;
35
40
  round?: boolean;
36
- btnStart?: boolean;
37
- btnEnd?: boolean;
38
- }> & Readonly<{}>, {
39
- disabled: boolean;
40
- border: boolean;
41
- outline: boolean;
42
- round: boolean;
43
- loading: boolean;
44
- btnStart: boolean;
45
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
41
+ btn: BtnProp;
42
+ btnEnd: BtnProp;
43
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
46
44
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
47
45
  export default _default;
48
46
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"Pill.vue.d.ts","sourceRoot":"","sources":["../../src/components/Pill.vue"],"names":[],"mappings":"AAuLA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AA+F7D,iBAAS,cAAc;;yBA8GO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAhOR,OAAO;WACX,aAAa;cACV,aAAa;YACf,SAAS;YACT,SAAS;WACV,OAAO;aACL,OAAO;cACN,OAAO;cACP,OAAO;YACT,MAAM;YACN,OAAO;eACJ,OAAO;aACT,OAAO;;eAZL,OAAO;WACX,aAAa;cACV,aAAa;YACf,SAAS;YACT,SAAS;WACV,OAAO;aACL,OAAO;cACN,OAAO;cACP,OAAO;YACT,MAAM;YACN,OAAO;eACJ,OAAO;aACT,OAAO;;cAZL,OAAO;YAMT,OAAO;aACN,OAAO;WAGT,OAAO;aAFL,OAAO;cAGN,OAAO;6EA4NlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Pill.vue.d.ts","sourceRoot":"","sources":["../../src/components/Pill.vue"],"names":[],"mappings":"AAiLA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAM7D,UAAU,OAAO;IAChB,IAAI,EAAE,aAAa,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACb;AAsED,iBAAS,cAAc;;yBA8GO,GAAG;;;WASnB,OAAO,IAA6B;EAEjD;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eA1MT,OAAO;WACX,aAAa;aACX,aAAa;YACd,SAAS;YACT,SAAS;WACV,OAAO;aACL,OAAO;cACN,OAAO;cACP,OAAO;YACT,MAAM;YACN,OAAO;SACV,OAAO;YACJ,OAAO;;eAZJ,OAAO;WACX,aAAa;aACX,aAAa;YACd,SAAS;YACT,SAAS;WACV,OAAO;aACL,OAAO;cACN,OAAO;cACP,OAAO;YACT,MAAM;YACN,OAAO;SACV,OAAO;YACJ,OAAO;iGAoMd,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CA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A;CACD,CAAC"}
package/dist/index.cjs CHANGED
@@ -54,16 +54,19 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
54
54
  };
55
55
  }
56
56
  });
57
- const _hoisted_1$M = { class: "accordion-item" };
58
- const _hoisted_2$w = ["aria-expanded", "aria-controls"];
59
- const _hoisted_3$m = { class: "accordion-label" };
60
- const _hoisted_4$g = ["id", "aria-hidden"];
57
+ const _hoisted_1$M = ["aria-expanded", "aria-controls"];
58
+ const _hoisted_2$w = { class: "accordion-label" };
59
+ const _hoisted_3$m = ["id", "aria-hidden"];
61
60
  const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
62
61
  __name: "AccordionItem",
63
62
  props: {
64
63
  label: {},
65
64
  id: {},
66
- open: { type: Boolean }
65
+ open: { type: Boolean },
66
+ iconType: {},
67
+ iconPosition: {},
68
+ flat: { type: Boolean },
69
+ iconClass: {}
67
70
  },
68
71
  emits: ["update:open"],
69
72
  setup(__props, { emit: __emit }) {
@@ -82,6 +85,10 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
82
85
  });
83
86
  const accordionState = vue.inject("accordionState");
84
87
  const id = props2.id || Math.random().toString(36).slice(7);
88
+ const computedIcon = vue.computed(() => {
89
+ return props2.iconType === "plus_minus" ? isOpen.value ? "remove" : "add" : "expand_more";
90
+ });
91
+ const iconPosition = vue.computed(() => props2.iconPosition || "end");
85
92
  if (accordionState) {
86
93
  vue.watch(
87
94
  () => accordionState.openItem,
@@ -102,22 +109,31 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
102
109
  }
103
110
  }
104
111
  return (_ctx, _cache) => {
105
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
112
+ return vue.openBlock(), vue.createElementBlock("div", {
113
+ class: vue.normalizeClass(["accordion-item txt-start", [{ flat: _ctx.flat }]])
114
+ }, [
106
115
  vue.createElementVNode("button", {
107
116
  "aria-expanded": vue.unref(isOpen) ? "true" : "false",
108
117
  class: "accordion-head",
109
118
  "aria-controls": `accordion-body-${vue.unref(id)}`,
110
119
  onClick: _cache[0] || (_cache[0] = ($event) => toggle())
111
120
  }, [
121
+ iconPosition.value === "start" ? (vue.openBlock(), vue.createElementBlock("span", {
122
+ key: 0,
123
+ class: vue.normalizeClass(["accordion-icon", [_ctx.iconClass, { open: vue.unref(isOpen) && _ctx.iconType === "expand_more" }]])
124
+ }, [
125
+ vue.createVNode(vue.unref(_sfc_main$c), { icon: computedIcon.value }, null, 8, ["icon"])
126
+ ], 2)) : vue.createCommentVNode("", true),
112
127
  vue.renderSlot(_ctx.$slots, "head", {}, () => [
113
- vue.createElementVNode("span", _hoisted_3$m, vue.toDisplayString(_ctx.label), 1)
128
+ vue.createElementVNode("span", _hoisted_2$w, vue.toDisplayString(_ctx.label), 1)
114
129
  ], true),
115
- vue.createElementVNode("div", {
116
- class: vue.normalizeClass(["accordion-icon", { open: vue.unref(isOpen) }])
130
+ iconPosition.value === "end" ? (vue.openBlock(), vue.createElementBlock("span", {
131
+ key: 1,
132
+ class: vue.normalizeClass(["accordion-icon", [_ctx.iconClass, { open: vue.unref(isOpen) && _ctx.iconType === "expand_more" }]])
117
133
  }, [
118
- vue.createVNode(vue.unref(_sfc_main$c), { icon: "expand_more" })
119
- ], 2)
120
- ], 8, _hoisted_2$w),
134
+ vue.createVNode(vue.unref(_sfc_main$c), { icon: computedIcon.value }, null, 8, ["icon"])
135
+ ], 2)) : vue.createCommentVNode("", true)
136
+ ], 8, _hoisted_1$M),
121
137
  vue.createVNode(vue.Transition, { name: "expand" }, {
122
138
  default: vue.withCtx(() => [
123
139
  vue.unref(isOpen) ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -127,11 +143,11 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
127
143
  "aria-hidden": vue.unref(isOpen) ? "false" : "true"
128
144
  }, [
129
145
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
130
- ], 8, _hoisted_4$g)) : vue.createCommentVNode("", true)
146
+ ], 8, _hoisted_3$m)) : vue.createCommentVNode("", true)
131
147
  ]),
132
148
  _: 3
133
149
  })
134
- ]);
150
+ ], 2);
135
151
  };
136
152
  }
137
153
  });
@@ -142,7 +158,7 @@ const _export_sfc = (sfc, props2) => {
142
158
  }
143
159
  return target;
144
160
  };
145
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-c1663af0"]]);
161
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-9d8335fa"]]);
146
162
  const _hoisted_1$L = { class: "relative" };
147
163
  const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
148
164
  __name: "AddressSearch",
@@ -596,28 +612,48 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
596
612
  const height = Array.from(slidChildren).map((el) => el.clientHeight).reduce((a2, b2) => a2 + b2, 0);
597
613
  yHeight.value = `${height}px`;
598
614
  }
615
+ function scrollEase(target, duration = 500) {
616
+ if (!bglSlider.value) return;
617
+ const start2 = bglSlider.value.scrollLeft;
618
+ const change = target - start2;
619
+ const startTime = performance.now();
620
+ function animateScroll(currentTime) {
621
+ if (!bglSlider.value) return;
622
+ const timeElapsed = currentTime - startTime;
623
+ const progress = Math.min(timeElapsed / duration, 1);
624
+ bglSlider.value.scrollLeft = start2 + change * easeInOutQuad(progress);
625
+ if (progress < 1) {
626
+ requestAnimationFrame(animateScroll);
627
+ }
628
+ }
629
+ function easeInOutQuad(t) {
630
+ return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
631
+ }
632
+ requestAnimationFrame(animateScroll);
633
+ }
599
634
  function goToSlide(index2) {
600
635
  if (!bglSlider.value || index2 < 0 || index2 > bglSlider.value.children.length - 1) return;
601
- const slider = bglSlider.value;
602
636
  const isRTL = getComputedStyle(bglSlider.value).direction === "rtl";
603
- const scrollX = slider.offsetWidth * index2 * (isRTL ? -1 : 1);
604
- slider.scrollTo({ left: scrollX, behavior: "smooth" });
637
+ const scrollX = bglSlider.value.offsetWidth * index2 * (isRTL ? -1 : 1);
638
+ const screenWidth = window.innerWidth;
639
+ let duration = 700;
640
+ if (screenWidth < 600) {
641
+ duration = 400;
642
+ } else if (screenWidth < 991) {
643
+ duration = 500;
644
+ }
645
+ scrollEase(scrollX, duration);
605
646
  activeSlideIndex.value = index2;
606
647
  evalHeight();
607
648
  }
608
649
  vue.watch(() => props2.index, goToSlide);
609
650
  vue.watch(
610
651
  () => activeSlideIndex.value,
611
- (index2) => {
612
- emit2("update:index", index2);
652
+ () => {
653
+ if (props2.index === activeSlideIndex.value) return;
654
+ emit2("update:index", activeSlideIndex.value);
613
655
  }
614
656
  );
615
- function scrollEnd() {
616
- const slider = bglSlider.value;
617
- if (!slider || props2.items !== 1) return;
618
- const nextSlide = Math.round(slider.scrollLeft / slider.offsetWidth);
619
- goToSlide(nextSlide);
620
- }
621
657
  function stopDragging(e) {
622
658
  isPressed.value = false;
623
659
  const slider = bglSlider.value;
@@ -690,7 +726,6 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
690
726
  [`slides-${__props.items}`]: true,
691
727
  allowScroll: __props.allowScroll
692
728
  }, "bgl-slider"]),
693
- onScrollend: scrollEnd,
694
729
  onMousedown: startDragging
695
730
  }, [
696
731
  vue.unref(isDragging) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F)) : vue.createCommentVNode("", true),
@@ -714,7 +749,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
714
749
  };
715
750
  }
716
751
  });
717
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-1f9c6644"]]);
752
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-619a1cb2"]]);
718
753
  function _isPlaceholder(a2) {
719
754
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
720
755
  }
@@ -18656,6 +18691,12 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
18656
18691
  if (!props2.files && [file_bindkeys.value].flat().length > 0) {
18657
18692
  const ids = [file_bindkeys.value].flat().filter(Boolean);
18658
18693
  if (!(ids == null ? void 0 : ids.length)) return;
18694
+ if (bindKey2 === "url") {
18695
+ ids.forEach((url) => {
18696
+ storageFiles.value.push({ url });
18697
+ });
18698
+ return;
18699
+ }
18659
18700
  if (props2.multiple) {
18660
18701
  ids.forEach((id) => {
18661
18702
  void bagel.get(`/files/${id}`).then((file) => {
@@ -18914,7 +18955,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
18914
18955
  };
18915
18956
  }
18916
18957
  });
18917
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-2641a9a6"]]);
18958
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-1db5afa3"]]);
18918
18959
  const _hoisted_1$v = ["title"];
18919
18960
  const _hoisted_2$k = { key: 0 };
18920
18961
  const _hoisted_3$g = ["value", "placeholder"];
@@ -53492,24 +53533,24 @@ const _hoisted_8$2 = {
53492
53533
  const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
53493
53534
  __name: "Pill",
53494
53535
  props: {
53495
- disabled: { type: Boolean, default: false },
53536
+ disabled: { type: Boolean },
53496
53537
  icon: {},
53497
53538
  iconEnd: {},
53498
53539
  color: {},
53499
53540
  theme: {},
53500
53541
  flat: { type: Boolean },
53501
- border: { type: Boolean, default: false },
53502
- outline: { type: Boolean, default: false },
53503
- loading: { type: Boolean, default: false },
53542
+ border: { type: Boolean },
53543
+ outline: { type: Boolean },
53544
+ loading: { type: Boolean },
53504
53545
  value: {},
53505
- round: { type: Boolean, default: false },
53506
- btnStart: { type: Boolean, default: true },
53507
- btnEnd: { type: Boolean }
53546
+ round: { type: Boolean },
53547
+ btn: {},
53548
+ btnEnd: {}
53508
53549
  },
53509
53550
  setup(__props) {
53510
53551
  vue.useCssVars((_ctx) => ({
53511
- "6c8d2280": computedBackgroundColor.value,
53512
- "65372d4a": cumputedTextColor.value
53552
+ "4779ddec": computedBackgroundColor.value,
53553
+ "04aaf136": cumputedTextColor.value
53513
53554
  }));
53514
53555
  const props2 = __props;
53515
53556
  const slots = vue.useSlots();
@@ -53568,12 +53609,11 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
53568
53609
  }, [
53569
53610
  vue.createElementVNode("div", _hoisted_2$2, [
53570
53611
  _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$2)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$2, [
53571
- _ctx.btnStart ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, [
53572
- vue.createVNode(vue.unref(Btn), {
53612
+ _ctx.btn ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$2, [
53613
+ vue.createVNode(vue.unref(Btn), vue.mergeProps({
53573
53614
  class: "bgl_pill-btn",
53574
- thin: "",
53575
- icon: "close"
53576
- })
53615
+ thin: ""
53616
+ }, _ctx.btn), null, 16)
53577
53617
  ])) : vue.createCommentVNode("", true)
53578
53618
  ])),
53579
53619
  _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
@@ -53584,17 +53624,16 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
53584
53624
  !vue.unref(slots).default && _ctx.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
53585
53625
  vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)
53586
53626
  ], 64)) : vue.createCommentVNode("", true),
53587
- props2.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
53627
+ _ctx.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$c), {
53588
53628
  key: 4,
53589
- icon: props2.iconEnd
53629
+ icon: _ctx.iconEnd
53590
53630
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
53591
53631
  _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$2)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$2, [
53592
- props2.btnEnd ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$2, [
53593
- vue.createVNode(vue.unref(Btn), {
53632
+ _ctx.btnEnd ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$2, [
53633
+ vue.createVNode(vue.unref(Btn), vue.mergeProps({
53594
53634
  class: "bgl_pill-btn",
53595
- thin: "",
53596
- icon: "close"
53597
- })
53635
+ thin: ""
53636
+ }, _ctx.btnEnd), null, 16)
53598
53637
  ])) : vue.createCommentVNode("", true)
53599
53638
  ]))
53600
53639
  ])
@@ -53602,7 +53641,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
53602
53641
  };
53603
53642
  }
53604
53643
  });
53605
- const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-d250e8a7"]]);
53644
+ const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-8c7388de"]]);
53606
53645
  const _sfc_main$5 = {};
53607
53646
  function _sfc_render$1(_ctx, _cache) {
53608
53647
  const _component_router_view = vue.resolveComponent("router-view");