@dcodegroup-au/dsg-vue 0.0.14 → 0.0.15

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,5 +1,5 @@
1
1
  import { defineComponent as z1, computed as F, h as T3, createBlock as b1, openBlock as y, resolveDynamicComponent as Ze, useTemplateRef as Se, createElementBlock as B, normalizeClass as h1, unref as p, createCommentVNode as E, renderSlot as s1, createVNode as $1, toDisplayString as Z1, mergeModels as He, useModel as P3, withModifiers as we, createElementVNode as C1, withDirectives as K2, vModelDynamic as g5, pushScopeId as T4, popScopeId as P4, nextTick as p2, normalizeProps as e2, guardReactiveProps as C2, resolveComponent as h3, mergeProps as t2, withCtx as f1, withScopeId as z4, withKeys as I0, normalizeStyle as c2, Fragment as M1, watch as u2, getCurrentScope as v5, onScopeDispose as _5, toValue as f2, toRef as Ie, readonly as B4, ref as G, customRef as Z4, shallowRef as p5, createTextVNode as Z2, reactive as De, watchEffect as w5, vModelText as D4, createSlots as s2, renderList as D1, useSlots as he, getCurrentInstance as $4, onMounted as l2, onUnmounted as $e, isRef as i9, Teleport as A4, Transition as Ae, render as a9, useAttrs as R4, onBeforeUpdate as E4, vShow as L0 } from "vue";
2
- import { i as N4, g as Y4, C as f5 } from "./_commonjsHelpers-CgdWM-5-.js";
2
+ import { i as N4, C as f5, g as Y4 } from "./_commonjsHelpers-CgdWM-5-.js";
3
3
  const F4 = `<svg stroke="currentColor" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
4
4
  <path d="M15.5 11.5H14.5L13 14.5L11 8.5L9.5 11.5H8.5M11.9932 5.13581C9.9938 2.7984 6.65975 2.16964 4.15469 4.31001C1.64964 6.45038 1.29697 10.029 3.2642 12.5604C4.75009 14.4724 8.97129 18.311 10.948 20.0749C11.3114 20.3991 11.4931 20.5613 11.7058 20.6251C11.8905 20.6805 12.0958 20.6805 12.2805 20.6251C12.4932 20.5613 12.6749 20.3991 13.0383 20.0749C15.015 18.311 19.2362 14.4724 20.7221 12.5604C22.6893 10.029 22.3797 6.42787 19.8316 4.31001C17.2835 2.19216 13.9925 2.7984 11.9932 5.13581Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
5
  </svg>
@@ -10825,19 +10825,105 @@ z1({
10825
10825
  }
10826
10826
  }
10827
10827
  });
10828
- const cW = tE, nE = oE;
10828
+ const cW = tE, nE = oE, rE = ["label"], sE = {
10829
+ class: "dsg-tooltip--content",
10830
+ slot: "dsg-tooltip--content"
10831
+ }, lE = {
10832
+ key: 0,
10833
+ class: "dsg-tooltip--text"
10834
+ }, iE = /* @__PURE__ */ z1({
10835
+ __name: "DsgTooltip",
10836
+ props: {
10837
+ label: { default: "" },
10838
+ supportingText: { default: "" },
10839
+ position: { default: "top" },
10840
+ triggers: { default: () => ["click", "hover", "focus", "touch"] },
10841
+ autoHide: { type: Boolean, default: !0 },
10842
+ preventsDefault: { type: Boolean, default: !1 },
10843
+ showTriggers: { default: () => ["hover", "focus", "touch"] },
10844
+ hideTriggers: { default: () => ["hover", "focus", "touch"] },
10845
+ popperTriggers: { default: () => ["hover", "focus", "touch"] },
10846
+ distance: { default: 10 },
10847
+ skidding: { default: 0 },
10848
+ arrowPadding: { default: 10 },
10849
+ theme: { default: "dark" },
10850
+ boundary: { default: () => {
10851
+ } },
10852
+ container: { default: () => {
10853
+ } },
10854
+ strategy: { default: "absolute" }
10855
+ },
10856
+ emits: ["on-hover", "on-focus", "on-touch", "on-click"],
10857
+ setup(e, { emit: t }) {
10858
+ const n = "tooltip-" + e.theme, o = Se("tooltipTrigger"), r = t, s = (c) => {
10859
+ e.preventsDefault && c.preventDefault(), r("on-hover", o.value);
10860
+ }, l = (c) => {
10861
+ e.preventsDefault && c.preventDefault(), r("on-focus", o.value);
10862
+ }, i = (c) => {
10863
+ e.preventsDefault && c.preventDefault(), r("on-touch", o.value);
10864
+ }, a = (c) => {
10865
+ e.preventsDefault && c.preventDefault(), r("on-click", o.value);
10866
+ };
10867
+ return (c, d) => (y(), b1(p(nE), {
10868
+ class: "dsg-tooltip",
10869
+ placement: c.position,
10870
+ triggers: c.triggers,
10871
+ "auto-hide": c.autoHide,
10872
+ theme: n,
10873
+ skidding: c.skidding,
10874
+ distance: c.distance,
10875
+ "arrow-padding": c.arrowPadding,
10876
+ boundary: c.boundary,
10877
+ container: c.container,
10878
+ strategy: c.strategy
10879
+ }, {
10880
+ popper: f1(() => [
10881
+ C1("div", sE, [
10882
+ s1(c.$slots, "dsg-tooltip--title", {}, () => [
10883
+ C1("h3", {
10884
+ class: h1(["dsg-tooltip--title", { "dsg-tooltip--title-has-subtext": c.supportingText }])
10885
+ }, Z1(c.label), 3)
10886
+ ]),
10887
+ s1(c.$slots, "dsg-tooltip--text", {}, () => [
10888
+ c.supportingText ? (y(), B("p", lE, Z1(c.supportingText), 1)) : E("", !0)
10889
+ ])
10890
+ ])
10891
+ ]),
10892
+ default: f1(() => [
10893
+ C1("span", {
10894
+ class: "dsg-tooltip-trigger relative",
10895
+ label: c.label,
10896
+ onMouseover: s,
10897
+ onFocus: l,
10898
+ onTouchstart: i,
10899
+ onClick: a,
10900
+ ref: "tooltipTrigger"
10901
+ }, [
10902
+ s1(c.$slots, "dsg-tooltip--trigger", {}, () => [
10903
+ $1(v2, {
10904
+ icon: "help-circle",
10905
+ size: "xs",
10906
+ color: p(f5).gray[400]
10907
+ }, null, 8, ["color"])
10908
+ ])
10909
+ ], 40, rE)
10910
+ ]),
10911
+ _: 3
10912
+ }, 8, ["placement", "triggers", "auto-hide", "skidding", "distance", "arrow-padding", "boundary", "container", "strategy"]));
10913
+ }
10914
+ });
10829
10915
  function P5(e) {
10830
10916
  return v5() ? (_5(e), !0) : !1;
10831
10917
  }
10832
10918
  const z5 = typeof window < "u" && typeof document < "u";
10833
10919
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10834
- const rE = Object.prototype.toString, sE = (e) => rE.call(e) === "[object Object]", R2 = () => {
10835
- }, x3 = /* @__PURE__ */ lE();
10836
- function lE() {
10920
+ const aE = Object.prototype.toString, uE = (e) => aE.call(e) === "[object Object]", R2 = () => {
10921
+ }, x3 = /* @__PURE__ */ dE();
10922
+ function dE() {
10837
10923
  var e, t;
10838
10924
  return z5 && ((e = window?.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window?.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
10839
10925
  }
10840
- function iE(e, t) {
10926
+ function CE(e, t) {
10841
10927
  function n(...o) {
10842
10928
  return new Promise((r, s) => {
10843
10929
  Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(r).catch(s);
@@ -10845,7 +10931,7 @@ function iE(e, t) {
10845
10931
  }
10846
10932
  return n;
10847
10933
  }
10848
- function aE(e, t = {}) {
10934
+ function cE(e, t = {}) {
10849
10935
  let n, o, r = R2;
10850
10936
  const s = (a) => {
10851
10937
  clearTimeout(a), r(), r = R2;
@@ -10865,19 +10951,19 @@ function aE(e, t = {}) {
10865
10951
  function o3(e) {
10866
10952
  return Array.isArray(e) ? e : [e];
10867
10953
  }
10868
- function uE(...e) {
10954
+ function gE(...e) {
10869
10955
  if (e.length !== 1)
10870
10956
  return Ie(...e);
10871
10957
  const t = e[0];
10872
10958
  return typeof t == "function" ? B4(Z4(() => ({ get: t, set: R2 }))) : G(t);
10873
10959
  }
10874
10960
  function gW(e, t = 200, n = {}) {
10875
- return iE(
10876
- aE(t, n),
10961
+ return CE(
10962
+ cE(t, n),
10877
10963
  e
10878
10964
  );
10879
10965
  }
10880
- function dE(e, t, n) {
10966
+ function vE(e, t, n) {
10881
10967
  return u2(
10882
10968
  e,
10883
10969
  t,
@@ -10899,7 +10985,7 @@ function ye(...e) {
10899
10985
  }, o = (i, a, c, d) => (i.addEventListener(a, c, d), () => i.removeEventListener(a, c, d)), r = F(() => {
10900
10986
  const i = o3(f2(e[0])).filter((a) => a != null);
10901
10987
  return i.every((a) => typeof a != "string") ? i : void 0;
10902
- }), s = dE(
10988
+ }), s = vE(
10903
10989
  () => {
10904
10990
  var i, a;
10905
10991
  return [
@@ -10913,7 +10999,7 @@ function ye(...e) {
10913
10999
  ([i, a, c, d]) => {
10914
11000
  if (n(), !i?.length || !a?.length || !c?.length)
10915
11001
  return;
10916
- const C = sE(d) ? { ...d } : d;
11002
+ const C = uE(d) ? { ...d } : d;
10917
11003
  t.push(
10918
11004
  ...i.flatMap(
10919
11005
  (g) => a.flatMap(
@@ -10994,7 +11080,7 @@ function O9(e, t, n = {}) {
10994
11080
  }
10995
11081
  } : M;
10996
11082
  }
10997
- const CE = {
11083
+ const _E = {
10998
11084
  mounted(e, t) {
10999
11085
  const n = !t.modifiers.bubble;
11000
11086
  if (typeof t.value == "function")
@@ -11020,15 +11106,15 @@ function Z5(e) {
11020
11106
  return !n || n.tagName === "BODY" ? !1 : Z5(n);
11021
11107
  }
11022
11108
  }
11023
- function cE(e) {
11109
+ function pE(e) {
11024
11110
  const t = e || window.event, n = t.target;
11025
11111
  return Z5(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
11026
11112
  }
11027
11113
  const r3 = /* @__PURE__ */ new WeakMap();
11028
- function gE(e, t = !1) {
11114
+ function wE(e, t = !1) {
11029
11115
  const n = p5(t);
11030
11116
  let o = null, r = "";
11031
- u2(uE(e), (i) => {
11117
+ u2(gE(e), (i) => {
11032
11118
  const a = n3(f2(i));
11033
11119
  if (a) {
11034
11120
  const c = a;
@@ -11046,7 +11132,7 @@ function gE(e, t = !1) {
11046
11132
  i,
11047
11133
  "touchmove",
11048
11134
  (a) => {
11049
- cE(a);
11135
+ pE(a);
11050
11136
  },
11051
11137
  { passive: !1 }
11052
11138
  )), i.style.overflow = "hidden", n.value = !0);
@@ -11063,20 +11149,20 @@ function gE(e, t = !1) {
11063
11149
  }
11064
11150
  });
11065
11151
  }
11066
- function vE() {
11152
+ function fE() {
11067
11153
  let e = !1;
11068
11154
  const t = p5(!1);
11069
11155
  return (n, o) => {
11070
11156
  if (t.value = o.value, e)
11071
11157
  return;
11072
11158
  e = !0;
11073
- const r = gE(n, o.value);
11159
+ const r = wE(n, o.value);
11074
11160
  u2(t, (s) => r.value = s);
11075
11161
  };
11076
11162
  }
11077
- vE();
11163
+ fE();
11078
11164
  var s3, L9;
11079
- function _E() {
11165
+ function hE() {
11080
11166
  if (L9) return s3;
11081
11167
  L9 = 1;
11082
11168
  var e = {
@@ -11283,7 +11369,7 @@ function D5() {
11283
11369
  return Ne.clone = e, Ne;
11284
11370
  }
11285
11371
  var Ye = {}, I9;
11286
- function pE() {
11372
+ function mE() {
11287
11373
  if (I9) return Ye;
11288
11374
  I9 = 1, Object.defineProperty(Ye, "__esModule", { value: !0 }), Ye.matches = void 0;
11289
11375
  function e(o, r, s) {
@@ -11299,10 +11385,10 @@ function pE() {
11299
11385
  return Ye.matches = n, Ye;
11300
11386
  }
11301
11387
  var U9;
11302
- function wE() {
11388
+ function bE() {
11303
11389
  if (U9) return Ee;
11304
11390
  U9 = 1, Object.defineProperty(Ee, "__esModule", { value: !0 }), Ee.addMatchingCardsToResults = void 0;
11305
- var e = D5(), t = pE();
11391
+ var e = D5(), t = mE();
11306
11392
  function n(o, r, s) {
11307
11393
  var l, i;
11308
11394
  for (l = 0; l < r.patterns.length; l++) {
@@ -11317,7 +11403,7 @@ function wE() {
11317
11403
  return Ee.addMatchingCardsToResults = n, Ee;
11318
11404
  }
11319
11405
  var Fe = {}, V9;
11320
- function fE() {
11406
+ function ME() {
11321
11407
  if (V9) return Fe;
11322
11408
  V9 = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.isValidInputType = void 0;
11323
11409
  function e(t) {
@@ -11326,7 +11412,7 @@ function fE() {
11326
11412
  return Fe.isValidInputType = e, Fe;
11327
11413
  }
11328
11414
  var qe = {}, T9;
11329
- function hE() {
11415
+ function kE() {
11330
11416
  if (T9) return qe;
11331
11417
  T9 = 1, Object.defineProperty(qe, "__esModule", { value: !0 }), qe.findBestMatch = void 0;
11332
11418
  function e(n) {
@@ -11354,7 +11440,7 @@ function $5() {
11354
11440
  }
11355
11441
  return m;
11356
11442
  }, e.apply(this, arguments);
11357
- }, t = _E(), n = wE(), o = fE(), r = hE(), s = D5(), l = {}, i = {
11443
+ }, t = hE(), n = bE(), o = ME(), r = kE(), s = D5(), l = {}, i = {
11358
11444
  VISA: "visa",
11359
11445
  MASTERCARD: "mastercard",
11360
11446
  AMERICAN_EXPRESS: "american-express",
@@ -11433,7 +11519,7 @@ function $5() {
11433
11519
  }, h.types = i, We = h, We;
11434
11520
  }
11435
11521
  var Qe = {}, z9;
11436
- function mE() {
11522
+ function yE() {
11437
11523
  if (z9) return Qe;
11438
11524
  z9 = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.cardholderName = void 0;
11439
11525
  var e = /^[\d\s-]*$/, t = 255;
@@ -11446,7 +11532,7 @@ function mE() {
11446
11532
  return Qe.cardholderName = o, Qe;
11447
11533
  }
11448
11534
  var Ge = {}, l3, B9;
11449
- function bE() {
11535
+ function jE() {
11450
11536
  if (B9) return l3;
11451
11537
  B9 = 1;
11452
11538
  function e(t) {
@@ -11457,10 +11543,10 @@ function bE() {
11457
11543
  return l3 = e, l3;
11458
11544
  }
11459
11545
  var Z9;
11460
- function ME() {
11546
+ function xE() {
11461
11547
  if (Z9) return Ge;
11462
11548
  Z9 = 1, Object.defineProperty(Ge, "__esModule", { value: !0 }), Ge.cardNumber = void 0;
11463
- var e = bE(), t = $5();
11549
+ var e = jE(), t = $5();
11464
11550
  function n(r, s, l) {
11465
11551
  return {
11466
11552
  card: r,
@@ -11534,16 +11620,16 @@ function A3() {
11534
11620
  return Ke.expirationYear = n, Ke;
11535
11621
  }
11536
11622
  var Je = {}, $9;
11537
- function kE() {
11623
+ function SE() {
11538
11624
  return $9 || ($9 = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.isArray = void 0, Je.isArray = Array.isArray || function(e) {
11539
11625
  return Object.prototype.toString.call(e) === "[object Array]";
11540
11626
  }), Je;
11541
11627
  }
11542
11628
  var A9;
11543
- function yE() {
11629
+ function OE() {
11544
11630
  if (A9) return Xe;
11545
11631
  A9 = 1, Object.defineProperty(Xe, "__esModule", { value: !0 }), Xe.parseDate = void 0;
11546
- var e = A3(), t = kE();
11632
+ var e = A3(), t = SE();
11547
11633
  function n(r) {
11548
11634
  var s = Number(r[0]), l;
11549
11635
  return s === 0 ? 2 : s > 1 || s === 1 && Number(r[1]) > 2 ? 1 : s === 1 ? (l = r.substr(1), (0, e.expirationYear)(l).isPotentiallyValid ? 1 : 2) : r.length === 5 ? 1 : r.length > 5 ? 2 : 1;
@@ -11591,7 +11677,7 @@ function A5() {
11591
11677
  return e0.expirationMonth = t, e0;
11592
11678
  }
11593
11679
  var E9;
11594
- function jE() {
11680
+ function LE() {
11595
11681
  if (E9) return de;
11596
11682
  E9 = 1;
11597
11683
  var e = de && de.__assign || function() {
@@ -11604,7 +11690,7 @@ function jE() {
11604
11690
  }, e.apply(this, arguments);
11605
11691
  };
11606
11692
  Object.defineProperty(de, "__esModule", { value: !0 }), de.expirationDate = void 0;
11607
- var t = yE(), n = A5(), o = A3();
11693
+ var t = OE(), n = A5(), o = A3();
11608
11694
  function r(l, i, a, c) {
11609
11695
  return {
11610
11696
  isValid: l,
@@ -11639,7 +11725,7 @@ function jE() {
11639
11725
  return de.expirationDate = s, de;
11640
11726
  }
11641
11727
  var t0 = {}, N9;
11642
- function xE() {
11728
+ function HE() {
11643
11729
  if (N9) return t0;
11644
11730
  N9 = 1, Object.defineProperty(t0, "__esModule", { value: !0 }), t0.cvv = void 0;
11645
11731
  var e = 3;
@@ -11663,7 +11749,7 @@ function xE() {
11663
11749
  return t0.cvv = r, t0;
11664
11750
  }
11665
11751
  var o0 = {}, Y9;
11666
- function SE() {
11752
+ function IE() {
11667
11753
  if (Y9) return o0;
11668
11754
  Y9 = 1, Object.defineProperty(o0, "__esModule", { value: !0 }), o0.postalCode = void 0;
11669
11755
  var e = 3, t = new RegExp(/^[a-z0-9]+$/i);
@@ -11678,7 +11764,7 @@ function SE() {
11678
11764
  return o0.postalCode = o, o0;
11679
11765
  }
11680
11766
  var A2, F9;
11681
- function OE() {
11767
+ function UE() {
11682
11768
  if (F9) return A2;
11683
11769
  F9 = 1;
11684
11770
  var e = A2 && A2.__createBinding || (Object.create ? function(g, h, m, M) {
@@ -11698,7 +11784,7 @@ function OE() {
11698
11784
  var h = {};
11699
11785
  if (g != null) for (var m in g) m !== "default" && Object.prototype.hasOwnProperty.call(g, m) && e(h, g, m);
11700
11786
  return t(h, g), h;
11701
- }, o = n($5()), r = mE(), s = ME(), l = jE(), i = A5(), a = A3(), c = xE(), d = SE(), C = {
11787
+ }, o = n($5()), r = yE(), s = xE(), l = LE(), i = A5(), a = A3(), c = HE(), d = IE(), C = {
11702
11788
  creditCardType: o,
11703
11789
  cardholderName: r.cardholderName,
11704
11790
  number: s.cardNumber,
@@ -11710,8 +11796,8 @@ function OE() {
11710
11796
  };
11711
11797
  return A2 = C, A2;
11712
11798
  }
11713
- var LE = OE();
11714
- const HE = /* @__PURE__ */ Y4(LE), IE = ["for"], UE = /* @__PURE__ */ z1({
11799
+ var VE = UE();
11800
+ const TE = /* @__PURE__ */ Y4(VE), PE = ["for"], zE = /* @__PURE__ */ z1({
11715
11801
  __name: "DsgLabel",
11716
11802
  props: {
11717
11803
  label: { default: "" },
@@ -11732,93 +11818,7 @@ const HE = /* @__PURE__ */ Y4(LE), IE = ["for"], UE = /* @__PURE__ */ z1({
11732
11818
  s1(n.$slots, "dsg-label-text", {}, () => [
11733
11819
  Z2(Z1(n.label), 1)
11734
11820
  ])
11735
- ], 10, IE));
11736
- }
11737
- }), VE = ["label"], TE = {
11738
- class: "dsg-tooltip--content",
11739
- slot: "dsg-tooltip--content"
11740
- }, PE = {
11741
- key: 0,
11742
- class: "dsg-tooltip--text"
11743
- }, zE = /* @__PURE__ */ z1({
11744
- __name: "DsgTooltip",
11745
- props: {
11746
- label: { default: "" },
11747
- supportingText: { default: "" },
11748
- position: { default: "top" },
11749
- triggers: { default: () => ["click", "hover", "focus", "touch"] },
11750
- autoHide: { type: Boolean, default: !0 },
11751
- preventsDefault: { type: Boolean, default: !1 },
11752
- showTriggers: { default: () => ["hover", "focus", "touch"] },
11753
- hideTriggers: { default: () => ["hover", "focus", "touch"] },
11754
- popperTriggers: { default: () => ["hover", "focus", "touch"] },
11755
- distance: { default: 10 },
11756
- skidding: { default: 0 },
11757
- arrowPadding: { default: 10 },
11758
- theme: { default: "dark" },
11759
- boundary: { default: () => {
11760
- } },
11761
- container: { default: () => {
11762
- } },
11763
- strategy: { default: "absolute" }
11764
- },
11765
- emits: ["on-hover", "on-focus", "on-touch", "on-click"],
11766
- setup(e, { emit: t }) {
11767
- const n = "tooltip-" + e.theme, o = Se("tooltipTrigger"), r = t, s = (c) => {
11768
- e.preventsDefault && c.preventDefault(), r("on-hover", o.value);
11769
- }, l = (c) => {
11770
- e.preventsDefault && c.preventDefault(), r("on-focus", o.value);
11771
- }, i = (c) => {
11772
- e.preventsDefault && c.preventDefault(), r("on-touch", o.value);
11773
- }, a = (c) => {
11774
- e.preventsDefault && c.preventDefault(), r("on-click", o.value);
11775
- };
11776
- return (c, d) => (y(), b1(p(nE), {
11777
- class: "dsg-tooltip",
11778
- placement: c.position,
11779
- triggers: c.triggers,
11780
- "auto-hide": c.autoHide,
11781
- theme: n,
11782
- skidding: c.skidding,
11783
- distance: c.distance,
11784
- "arrow-padding": c.arrowPadding,
11785
- boundary: c.boundary,
11786
- container: c.container,
11787
- strategy: c.strategy
11788
- }, {
11789
- popper: f1(() => [
11790
- C1("div", TE, [
11791
- s1(c.$slots, "dsg-tooltip--title", {}, () => [
11792
- C1("h3", {
11793
- class: h1(["dsg-tooltip--title", { "dsg-tooltip--title-has-subtext": c.supportingText }])
11794
- }, Z1(c.label), 3)
11795
- ]),
11796
- s1(c.$slots, "dsg-tooltip--text", {}, () => [
11797
- c.supportingText ? (y(), B("p", PE, Z1(c.supportingText), 1)) : E("", !0)
11798
- ])
11799
- ])
11800
- ]),
11801
- default: f1(() => [
11802
- C1("span", {
11803
- class: "dsg-tooltip-trigger relative",
11804
- label: c.label,
11805
- onMouseover: s,
11806
- onFocus: l,
11807
- onTouchstart: i,
11808
- onClick: a,
11809
- ref: "tooltipTrigger"
11810
- }, [
11811
- s1(c.$slots, "dsg-tooltip--trigger", {}, () => [
11812
- $1(v2, {
11813
- icon: "help-circle",
11814
- size: "xs",
11815
- color: p(f5).gray[400]
11816
- }, null, 8, ["color"])
11817
- ])
11818
- ], 40, VE)
11819
- ]),
11820
- _: 3
11821
- }, 8, ["placement", "triggers", "auto-hide", "skidding", "distance", "arrow-padding", "boundary", "container", "strategy"]));
11821
+ ], 10, PE));
11822
11822
  }
11823
11823
  }), BE = {
11824
11824
  key: 0,
@@ -11919,7 +11919,7 @@ const HE = /* @__PURE__ */ Y4(LE), IE = ["for"], UE = /* @__PURE__ */ z1({
11919
11919
  if (e.type === "email")
11920
11920
  S.value = V.value;
11921
11921
  else if (e.theme === "credit-card") {
11922
- const v = X.value, b = HE.number(C.value), T = b.card?.type;
11922
+ const v = X.value, b = TE.number(C.value), T = b.card?.type;
11923
11923
  X.value = T ?? !1, v !== T && (R.value++, b.isValid && d("on-card-detected", X.value)), S.value = b.isValid ? [] : ["Please enter a valid credit card number."];
11924
11924
  } else if (e.theme === "website") {
11925
11925
  const v = e.websiteHttps ? "https://" + C.value : "http://" + C.value;
@@ -11948,7 +11948,7 @@ const HE = /* @__PURE__ */ Y4(LE), IE = ["for"], UE = /* @__PURE__ */ z1({
11948
11948
  }), (v, b) => (y(), B("div", {
11949
11949
  class: h1(p(r))
11950
11950
  }, [
11951
- v.label ? (y(), b1(UE, {
11951
+ v.label ? (y(), b1(zE, {
11952
11952
  key: 0,
11953
11953
  classes: "dsg-input--label block",
11954
11954
  label: v.label,
@@ -12032,7 +12032,7 @@ const HE = /* @__PURE__ */ Y4(LE), IE = ["for"], UE = /* @__PURE__ */ z1({
12032
12032
  [D4, C.value]
12033
12033
  ]) : E("", !0),
12034
12034
  (v.hasTooltip || v.toolTip) && v.type !== "textarea" ? (y(), B("span", AE, [
12035
- $1(zE, {
12035
+ $1(iE, {
12036
12036
  label: v.toolTip,
12037
12037
  theme: v.tooltipTheme,
12038
12038
  container: p(l),
@@ -12082,7 +12082,7 @@ const HE = /* @__PURE__ */ Y4(LE), IE = ["for"], UE = /* @__PURE__ */ z1({
12082
12082
  }, Z1(T), 1))), 128))
12083
12083
  ])) : E("", !0)
12084
12084
  ], 2)), [
12085
- [p(CE), () => c(!1)]
12085
+ [p(_E), () => c(!1)]
12086
12086
  ]),
12087
12087
  v.hasCopyButton ? (y(), B("button", {
12088
12088
  key: 1,
@@ -20336,15 +20336,15 @@ export {
20336
20336
  u9 as D,
20337
20337
  v2 as _,
20338
20338
  uW as a,
20339
- dW as b,
20339
+ iE as b,
20340
20340
  CW as c,
20341
- JA as d,
20342
- vW as e,
20343
- _W as f,
20344
- UE as g,
20341
+ dW as d,
20342
+ JA as e,
20343
+ vW as f,
20344
+ _W as g,
20345
20345
  zE as h,
20346
20346
  cW as k,
20347
20347
  ZR as t,
20348
20348
  gW as u,
20349
- CE as v
20349
+ _E as v
20350
20350
  };