@pagelines/sdk 1.0.475 → 1.0.476

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.
@@ -41,10 +41,10 @@ const tt = [
41
41
  _: 3
42
42
  }, 8, ["name"]));
43
43
  }
44
- }), It = ["data-test-mode"], Tt = { class: "w-full max-w-xs space-y-12" }, Ot = {
44
+ }), It = ["data-test-mode"], Tt = { class: "w-full max-w-xs space-y-12" }, Et = {
45
45
  key: 0,
46
46
  class: "text-xs text-theme-400 text-center"
47
- }, Et = { class: "text-base font-light text-white text-center" }, jt = { class: "space-y-6 relative" }, Bt = {
47
+ }, Ot = { class: "text-base font-light text-white text-center" }, jt = { class: "space-y-6 relative" }, Bt = {
48
48
  key: "email-field",
49
49
  class: "w-full"
50
50
  }, Rt = {
@@ -94,8 +94,8 @@ const tt = [
94
94
  class: "flex flex-col items-center justify-center h-full p-6"
95
95
  }, [
96
96
  i("div", Tt, [
97
- e.sdk.error.value ? (m(), f("p", Ot, R(e.sdk.error.value), 1)) : S("", !0),
98
- i("h3", Et, R(l.value.title), 1),
97
+ e.sdk.error.value ? (m(), f("p", Et, R(e.sdk.error.value), 1)) : S("", !0),
98
+ i("h3", Ot, R(l.value.title), 1),
99
99
  i("div", jt, [
100
100
  I(Vt, null, {
101
101
  default: U(() => [
@@ -308,16 +308,16 @@ const tt = [
308
308
  T === "[" ? s++ : T === "]" ? s-- : T === "(" ? c++ : T === ")" && c--;
309
309
  }
310
310
  const w = l.length === 0 ? d : d.slice(n);
311
- let y = w, O = !1;
312
- w.endsWith($e) ? (y = w.slice(0, -1), O = !0) : (
311
+ let y = w, E = !1;
312
+ w.endsWith($e) ? (y = w.slice(0, -1), E = !0) : (
313
313
  /**
314
314
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
315
315
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
316
316
  */
317
- w.startsWith($e) && (y = w.slice(1), O = !0)
317
+ w.startsWith($e) && (y = w.slice(1), E = !0)
318
318
  );
319
319
  const P = v && v > n ? v - n : void 0;
320
- return We(l, O, y, P);
320
+ return We(l, E, y, P);
321
321
  }, "parseClassName");
322
322
  if (a) {
323
323
  const d = a + Ue, l = r;
@@ -361,7 +361,7 @@ const tt = [
361
361
  const p = c[v], {
362
362
  isExternal: w,
363
363
  modifiers: y,
364
- hasImportantModifier: O,
364
+ hasImportantModifier: E,
365
365
  baseClassName: P,
366
366
  maybePostfixModifierPosition: L
367
367
  } = t(p);
@@ -381,7 +381,7 @@ const tt = [
381
381
  }
382
382
  T = !1;
383
383
  }
384
- const te = y.length === 0 ? "" : y.length === 1 ? y[0] : l(y).join(":"), C = O ? te + $e : te, x = C + q;
384
+ const te = y.length === 0 ? "" : y.length === 1 ? y[0] : l(y).join(":"), C = E ? te + $e : te, x = C + q;
385
385
  if (s.indexOf(x) > -1)
386
386
  continue;
387
387
  s.push(x);
@@ -433,7 +433,7 @@ const tt = [
433
433
  const r = lt.exec(e);
434
434
  return r ? r[1] ? a(r[1]) : t : !1;
435
435
  }, "getIsArbitraryVariable"), dt = /* @__PURE__ */ o((e) => e === "position" || e === "percentage", "isLabelPosition"), ct = /* @__PURE__ */ o((e) => e === "image" || e === "url", "isLabelImage"), ut = /* @__PURE__ */ o((e) => e === "length" || e === "size" || e === "bg-size", "isLabelSize"), bt = /* @__PURE__ */ o((e) => e === "length", "isLabelLength"), Cr = /* @__PURE__ */ o((e) => e === "number", "isLabelNumber"), mt = /* @__PURE__ */ o((e) => e === "family-name", "isLabelFamilyName"), gt = /* @__PURE__ */ o((e) => e === "number" || e === "weight", "isLabelWeight"), ht = /* @__PURE__ */ o((e) => e === "shadow", "isLabelShadow"), zr = /* @__PURE__ */ o(() => {
436
- const e = M("color"), a = M("font"), t = M("text"), r = M("font-weight"), d = M("tracking"), l = M("leading"), s = M("breakpoint"), c = M("container"), n = M("spacing"), v = M("radius"), p = M("shadow"), w = M("inset-shadow"), y = M("text-shadow"), O = M("drop-shadow"), P = M("blur"), L = M("perspective"), T = M("aspect"), q = M("ease"), te = M("animate"), C = /* @__PURE__ */ o(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), x = /* @__PURE__ */ o(() => [
436
+ const e = M("color"), a = M("font"), t = M("text"), r = M("font-weight"), d = M("tracking"), l = M("leading"), s = M("breakpoint"), c = M("container"), n = M("spacing"), v = M("radius"), p = M("shadow"), w = M("inset-shadow"), y = M("text-shadow"), E = M("drop-shadow"), P = M("blur"), L = M("perspective"), T = M("aspect"), q = M("ease"), te = M("animate"), C = /* @__PURE__ */ o(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), x = /* @__PURE__ */ o(() => [
437
437
  "center",
438
438
  "top",
439
439
  "bottom",
@@ -453,13 +453,13 @@ const tt = [
453
453
  "left-bottom"
454
454
  ], "scalePosition"), z = /* @__PURE__ */ o(() => [...x(), b, u], "scalePositionWithArbitrary"), D = /* @__PURE__ */ o(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), ae = /* @__PURE__ */ o(() => ["auto", "contain", "none"], "scaleOverscroll"), g = /* @__PURE__ */ o(() => [b, u, n], "scaleUnambiguousSpacing"), N = /* @__PURE__ */ o(() => [H, "full", "auto", ...g()], "scaleInset"), Ie = /* @__PURE__ */ o(() => [K, "none", "subgrid", b, u], "scaleGridTemplateColsRows"), Te = /* @__PURE__ */ o(() => ["auto", {
455
455
  span: ["full", K, b, u]
456
- }, K, b, u], "scaleGridColRowStartAndEnd"), le = /* @__PURE__ */ o(() => [K, "auto", b, u], "scaleGridColRowStartOrEnd"), Oe = /* @__PURE__ */ o(() => ["auto", "min", "max", "fr", b, u], "scaleGridAutoColsRows"), fe = /* @__PURE__ */ o(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), re = /* @__PURE__ */ o(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), F = /* @__PURE__ */ o(() => ["auto", ...g()], "scaleMargin"), Z = /* @__PURE__ */ o(() => [H, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], "scaleSizing"), xe = /* @__PURE__ */ o(() => [H, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...g()], "scaleSizingInline"), pe = /* @__PURE__ */ o(() => [H, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...g()], "scaleSizingBlock"), h = /* @__PURE__ */ o(() => [e, b, u], "scaleColor"), Ee = /* @__PURE__ */ o(() => [...x(), Ye, De, {
456
+ }, K, b, u], "scaleGridColRowStartAndEnd"), le = /* @__PURE__ */ o(() => [K, "auto", b, u], "scaleGridColRowStartOrEnd"), Ee = /* @__PURE__ */ o(() => ["auto", "min", "max", "fr", b, u], "scaleGridAutoColsRows"), fe = /* @__PURE__ */ o(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), re = /* @__PURE__ */ o(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), F = /* @__PURE__ */ o(() => ["auto", ...g()], "scaleMargin"), Z = /* @__PURE__ */ o(() => [H, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], "scaleSizing"), xe = /* @__PURE__ */ o(() => [H, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...g()], "scaleSizingInline"), pe = /* @__PURE__ */ o(() => [H, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...g()], "scaleSizingBlock"), h = /* @__PURE__ */ o(() => [e, b, u], "scaleColor"), Oe = /* @__PURE__ */ o(() => [...x(), Ye, De, {
457
457
  position: [b, u]
458
458
  }], "scaleBgPosition"), je = /* @__PURE__ */ o(() => ["no-repeat", {
459
459
  repeat: ["", "x", "y", "space", "round"]
460
460
  }], "scaleBgRepeat"), Be = /* @__PURE__ */ o(() => ["auto", "cover", "contain", kr, hr, {
461
461
  size: [b, u]
462
- }], "scaleBgSize"), ve = /* @__PURE__ */ o(() => [Ce, se, _], "scaleGradientStopPosition"), E = /* @__PURE__ */ o(() => [
462
+ }], "scaleBgSize"), ve = /* @__PURE__ */ o(() => [Ce, se, _], "scaleGradientStopPosition"), O = /* @__PURE__ */ o(() => [
463
463
  // Deprecated since Tailwind CSS v4.0.0
464
464
  "",
465
465
  "none",
@@ -868,14 +868,14 @@ const tt = [
868
868
  * @see https://tailwindcss.com/docs/grid-auto-columns
869
869
  */
870
870
  "auto-cols": [{
871
- "auto-cols": Oe()
871
+ "auto-cols": Ee()
872
872
  }],
873
873
  /**
874
874
  * Grid Auto Rows
875
875
  * @see https://tailwindcss.com/docs/grid-auto-rows
876
876
  */
877
877
  "auto-rows": [{
878
- "auto-rows": Oe()
878
+ "auto-rows": Ee()
879
879
  }],
880
880
  /**
881
881
  * Gap
@@ -1529,7 +1529,7 @@ const tt = [
1529
1529
  * @see https://tailwindcss.com/docs/background-position
1530
1530
  */
1531
1531
  "bg-position": [{
1532
- bg: Ee()
1532
+ bg: Oe()
1533
1533
  }],
1534
1534
  /**
1535
1535
  * Background Repeat
@@ -1615,105 +1615,105 @@ const tt = [
1615
1615
  * @see https://tailwindcss.com/docs/border-radius
1616
1616
  */
1617
1617
  rounded: [{
1618
- rounded: E()
1618
+ rounded: O()
1619
1619
  }],
1620
1620
  /**
1621
1621
  * Border Radius Start
1622
1622
  * @see https://tailwindcss.com/docs/border-radius
1623
1623
  */
1624
1624
  "rounded-s": [{
1625
- "rounded-s": E()
1625
+ "rounded-s": O()
1626
1626
  }],
1627
1627
  /**
1628
1628
  * Border Radius End
1629
1629
  * @see https://tailwindcss.com/docs/border-radius
1630
1630
  */
1631
1631
  "rounded-e": [{
1632
- "rounded-e": E()
1632
+ "rounded-e": O()
1633
1633
  }],
1634
1634
  /**
1635
1635
  * Border Radius Top
1636
1636
  * @see https://tailwindcss.com/docs/border-radius
1637
1637
  */
1638
1638
  "rounded-t": [{
1639
- "rounded-t": E()
1639
+ "rounded-t": O()
1640
1640
  }],
1641
1641
  /**
1642
1642
  * Border Radius Right
1643
1643
  * @see https://tailwindcss.com/docs/border-radius
1644
1644
  */
1645
1645
  "rounded-r": [{
1646
- "rounded-r": E()
1646
+ "rounded-r": O()
1647
1647
  }],
1648
1648
  /**
1649
1649
  * Border Radius Bottom
1650
1650
  * @see https://tailwindcss.com/docs/border-radius
1651
1651
  */
1652
1652
  "rounded-b": [{
1653
- "rounded-b": E()
1653
+ "rounded-b": O()
1654
1654
  }],
1655
1655
  /**
1656
1656
  * Border Radius Left
1657
1657
  * @see https://tailwindcss.com/docs/border-radius
1658
1658
  */
1659
1659
  "rounded-l": [{
1660
- "rounded-l": E()
1660
+ "rounded-l": O()
1661
1661
  }],
1662
1662
  /**
1663
1663
  * Border Radius Start Start
1664
1664
  * @see https://tailwindcss.com/docs/border-radius
1665
1665
  */
1666
1666
  "rounded-ss": [{
1667
- "rounded-ss": E()
1667
+ "rounded-ss": O()
1668
1668
  }],
1669
1669
  /**
1670
1670
  * Border Radius Start End
1671
1671
  * @see https://tailwindcss.com/docs/border-radius
1672
1672
  */
1673
1673
  "rounded-se": [{
1674
- "rounded-se": E()
1674
+ "rounded-se": O()
1675
1675
  }],
1676
1676
  /**
1677
1677
  * Border Radius End End
1678
1678
  * @see https://tailwindcss.com/docs/border-radius
1679
1679
  */
1680
1680
  "rounded-ee": [{
1681
- "rounded-ee": E()
1681
+ "rounded-ee": O()
1682
1682
  }],
1683
1683
  /**
1684
1684
  * Border Radius End Start
1685
1685
  * @see https://tailwindcss.com/docs/border-radius
1686
1686
  */
1687
1687
  "rounded-es": [{
1688
- "rounded-es": E()
1688
+ "rounded-es": O()
1689
1689
  }],
1690
1690
  /**
1691
1691
  * Border Radius Top Left
1692
1692
  * @see https://tailwindcss.com/docs/border-radius
1693
1693
  */
1694
1694
  "rounded-tl": [{
1695
- "rounded-tl": E()
1695
+ "rounded-tl": O()
1696
1696
  }],
1697
1697
  /**
1698
1698
  * Border Radius Top Right
1699
1699
  * @see https://tailwindcss.com/docs/border-radius
1700
1700
  */
1701
1701
  "rounded-tr": [{
1702
- "rounded-tr": E()
1702
+ "rounded-tr": O()
1703
1703
  }],
1704
1704
  /**
1705
1705
  * Border Radius Bottom Right
1706
1706
  * @see https://tailwindcss.com/docs/border-radius
1707
1707
  */
1708
1708
  "rounded-br": [{
1709
- "rounded-br": E()
1709
+ "rounded-br": O()
1710
1710
  }],
1711
1711
  /**
1712
1712
  * Border Radius Bottom Left
1713
1713
  * @see https://tailwindcss.com/docs/border-radius
1714
1714
  */
1715
1715
  "rounded-bl": [{
1716
- "rounded-bl": E()
1716
+ "rounded-bl": O()
1717
1717
  }],
1718
1718
  /**
1719
1719
  * Border Width
@@ -2234,7 +2234,7 @@ const tt = [
2234
2234
  * @see https://tailwindcss.com/docs/mask-position
2235
2235
  */
2236
2236
  "mask-position": [{
2237
- mask: Ee()
2237
+ mask: Oe()
2238
2238
  }],
2239
2239
  /**
2240
2240
  * Mask Repeat
@@ -2310,7 +2310,7 @@ const tt = [
2310
2310
  // Deprecated since Tailwind CSS v4.0.0
2311
2311
  "",
2312
2312
  "none",
2313
- O,
2313
+ E,
2314
2314
  me,
2315
2315
  be
2316
2316
  ]
@@ -3389,7 +3389,7 @@ const tt = [
3389
3389
  lg: "rounded-lg",
3390
3390
  "2xl": "rounded-2xl",
3391
3391
  full: "rounded-full"
3392
- }, y = l.value, O = e.disabled ? "opacity-50 cursor-not-allowed pointer-events-none" : "", P = [
3392
+ }, y = l.value, E = e.disabled ? "opacity-50 cursor-not-allowed pointer-events-none" : "", P = [
3393
3393
  n,
3394
3394
  v[e.size],
3395
3395
  p,
@@ -3397,7 +3397,7 @@ const tt = [
3397
3397
  y.base,
3398
3398
  `border ${y.border}`,
3399
3399
  e.disabled ? "" : y.hover,
3400
- O
3400
+ E
3401
3401
  ].filter(Boolean).join(" ");
3402
3402
  return Ar(P, e.class);
3403
3403
  }), c = A(() => ({
@@ -3438,7 +3438,7 @@ const tt = [
3438
3438
  }, Ir = ["innerHTML"], Tr = {
3439
3439
  key: 1,
3440
3440
  class: "bg-white/5 backdrop-blur-sm rounded-2xl p-4 border border-white/10"
3441
- }, Or = { class: "text-sm text-white/70 leading-relaxed" }, Er = {
3441
+ }, Er = { class: "text-sm text-white/70 leading-relaxed" }, Or = {
3442
3442
  key: 2,
3443
3443
  class: "space-y-3"
3444
3444
  }, jr = {
@@ -3466,9 +3466,9 @@ const tt = [
3466
3466
  ])) : S("", !0),
3467
3467
  e.agent.entityType.value === "company" ? (m(), f("div", Tr, [
3468
3468
  t[1] || (t[1] = i("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Company Info ", -1)),
3469
- i("p", Or, " This is a company agent representing " + R(e.agent.name.value) + ". ", 1)
3469
+ i("p", Er, " This is a company agent representing " + R(e.agent.name.value) + ". ", 1)
3470
3470
  ])) : S("", !0),
3471
- e.agent.email.value ? (m(), f("div", Er, [
3471
+ e.agent.email.value ? (m(), f("div", Or, [
3472
3472
  t[3] || (t[3] = i("h3", { class: "text-sm font-medium text-white/90" }, " Contact ", -1)),
3473
3473
  I(Ke, {
3474
3474
  design: "ghost",
@@ -3672,9 +3672,9 @@ const tt = [
3672
3672
  "leave-to-class": B(d) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0"
3673
3673
  }, {
3674
3674
  default: U(() => [
3675
- (m(!0), f(J, null, Se(c.value, (y, O) => (m(), f("button", {
3676
- key: y.key || y.label || O,
3677
- style: Qe({ transitionDelay: `${O * 40}ms` }),
3675
+ (m(!0), f(J, null, Se(c.value, (y, E) => (m(), f("button", {
3676
+ key: y.key || y.label || E,
3677
+ style: Qe({ transitionDelay: `${E * 40}ms` }),
3678
3678
  class: $(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group", [
3679
3679
  y.isActive ? "bg-primary-500/20 border border-primary-500/40" : "hover:bg-white/10",
3680
3680
  y.isDisabled && "opacity-50 cursor-not-allowed"
@@ -3775,7 +3775,9 @@ const tt = [
3775
3775
  label: "Share This Digital Agent",
3776
3776
  onClick: /* @__PURE__ */ o(() => {
3777
3777
  const c = `${window.location.origin}/@${t.agent.handle.value || t.agent.agentId.value}`;
3778
- navigator.clipboard.writeText(c);
3778
+ navigator.clipboard.writeText(c).catch((n) => {
3779
+ console.error("ElAgentSidebar: clipboard.writeText rejected", n);
3780
+ });
3779
3781
  }, "onClick")
3780
3782
  },
3781
3783
  {
@@ -3878,7 +3880,7 @@ const tt = [
3878
3880
  }
3879
3881
  }
3880
3882
  o(y, "createChatController");
3881
- function O(C) {
3883
+ function E(C) {
3882
3884
  if (!c.value)
3883
3885
  return;
3884
3886
  const x = Mt(C);
@@ -3886,9 +3888,9 @@ const tt = [
3886
3888
  c.value.style.setProperty(`--primary-${z}`, D);
3887
3889
  });
3888
3890
  }
3889
- o(O, "applyTheme"), Je(() => {
3891
+ o(E, "applyTheme"), Je(() => {
3890
3892
  try {
3891
- y(), O(e.theme), e.chatOnly && r.value && r.value.setMode("chat");
3893
+ y(), E(e.theme), e.chatOnly && r.value && r.value.setMode("chat");
3892
3894
  } catch (C) {
3893
3895
  const x = C instanceof Error ? C.message : "Failed to initialize digital agent";
3894
3896
  s.value = x, t("error", x);
@@ -3896,7 +3898,7 @@ const tt = [
3896
3898
  }), yt(() => {
3897
3899
  r.value && r.value.destroy();
3898
3900
  }), ze(() => e.theme, (C) => {
3899
- O(C);
3901
+ E(C);
3900
3902
  }), ze(() => e.sdk.activeUser.value, (C, x) => {
3901
3903
  x && !C && r.value && r.value.setMode("self");
3902
3904
  });