@pagelines/sdk 1.0.480 → 1.0.481

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,6 +1,6 @@
1
1
  var xt = Object.defineProperty;
2
2
  var o = (e, a) => xt(e, "name", { value: a, configurable: !0 });
3
- import { defineComponent as W, openBlock as m, createBlock as G, TransitionGroup as Xe, withCtx as U, renderSlot as ge, ref as X, computed as A, watch as ze, createElementBlock as f, createElementVNode as i, toDisplayString as R, createCommentVNode as S, createVNode as I, withKeys as pt, createTextVNode as ne, resolveDynamicComponent as vt, normalizeClass as $, Fragment as J, renderList as Se, unref as B, onMounted as Je, Transition as Le, withModifiers as Ae, normalizeStyle as Qe, shallowRef as kt, onUnmounted as yt, mergeProps as wt } from "vue";
3
+ import { defineComponent as W, openBlock as m, createBlock as G, TransitionGroup as Xe, withCtx as F, renderSlot as ge, ref as X, computed as A, watch as ze, createElementBlock as f, createElementVNode as i, toDisplayString as R, createCommentVNode as S, createVNode as I, withKeys as pt, createTextVNode as ne, resolveDynamicComponent as vt, normalizeClass as $, Fragment as J, renderList as Se, unref as B, onMounted as Je, Transition as Le, withModifiers as Ae, normalizeStyle as Qe, shallowRef as kt, onUnmounted as yt, mergeProps as wt } from "vue";
4
4
  import { S as oe } from "./socialPlatforms.js";
5
5
  import { b as Ct, d as zt, c as Ze, e as _e, f as et, h as Ne, p as At, g as ye, a as we, A as $t, _ as St } from "./AgentWrap.vue_vue_type_script_setup_true_lang.js";
6
6
  import { getColorSchemeOklch as Mt } from "@pagelines/core";
@@ -35,7 +35,7 @@ const tt = [
35
35
  return (a, t) => (m(), G(Xe, {
36
36
  name: e.disabled ? "" : "nlist"
37
37
  }, {
38
- default: U(() => [
38
+ default: F(() => [
39
39
  ge(a.$slots, "default")
40
40
  ]),
41
41
  _: 3
@@ -98,7 +98,7 @@ const tt = [
98
98
  i("h3", Ot, R(l.value.title), 1),
99
99
  i("div", jt, [
100
100
  I(Vt, null, {
101
- default: U(() => [
101
+ default: F(() => [
102
102
  t.value === "email" ? (m(), f("div", Bt, [
103
103
  I(Ct, {
104
104
  modelValue: a.value.email,
@@ -129,7 +129,7 @@ const tt = [
129
129
  disabled: l.value.button.disabled() || e.sdk.loading.value,
130
130
  onClick: l.value.action
131
131
  }, {
132
- default: U(() => [
132
+ default: F(() => [
133
133
  ne(R(l.value.button.label), 1)
134
134
  ]),
135
135
  _: 1
@@ -161,24 +161,24 @@ const tt = [
161
161
  nextPart: e,
162
162
  validators: a,
163
163
  classGroupId: t
164
- }), "createClassPartObject"), he = "-", Fe = [], Nt = "arbitrary..", Gt = /* @__PURE__ */ o((e) => {
165
- const a = Ut(e), {
164
+ }), "createClassPartObject"), he = "-", Ue = [], Nt = "arbitrary..", Gt = /* @__PURE__ */ o((e) => {
165
+ const a = Ft(e), {
166
166
  conflictingClassGroups: t,
167
167
  conflictingClassGroupModifiers: r
168
168
  } = e;
169
169
  return {
170
170
  getClassGroupId: /* @__PURE__ */ o((s) => {
171
171
  if (s.startsWith("[") && s.endsWith("]"))
172
- return Ft(s);
172
+ return Ut(s);
173
173
  const c = s.split(he), n = c[0] === "" && c.length > 1 ? 1 : 0;
174
174
  return ot(c, n, a);
175
175
  }, "getClassGroupId"),
176
176
  getConflictingClassGroupIds: /* @__PURE__ */ o((s, c) => {
177
177
  if (c) {
178
178
  const n = r[s], v = t[s];
179
- return n ? v ? Pt(v, n) : n : v || Fe;
179
+ return n ? v ? Pt(v, n) : n : v || Ue;
180
180
  }
181
- return t[s] || Fe;
181
+ return t[s] || Ue;
182
182
  }, "getConflictingClassGroupIds")
183
183
  };
184
184
  }, "createClassGroupUtils"), ot = /* @__PURE__ */ o((e, a, t) => {
@@ -198,10 +198,10 @@ const tt = [
198
198
  if (p.validator(c))
199
199
  return p.classGroupId;
200
200
  }
201
- }, "getGroupRecursive"), Ft = /* @__PURE__ */ o((e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
201
+ }, "getGroupRecursive"), Ut = /* @__PURE__ */ o((e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
202
202
  const a = e.slice(1, -1), t = a.indexOf(":"), r = a.slice(0, t);
203
203
  return r ? Nt + r : void 0;
204
- })(), "getGroupIdForArbitraryProperty"), Ut = /* @__PURE__ */ o((e) => {
204
+ })(), "getGroupIdForArbitraryProperty"), Ft = /* @__PURE__ */ o((e) => {
205
205
  const {
206
206
  theme: a,
207
207
  classGroups: t
@@ -278,7 +278,7 @@ const tt = [
278
278
  l in t ? t[l] = s : d(l, s);
279
279
  }
280
280
  };
281
- }, "createLruCache"), $e = "!", Ue = ":", Jt = [], We = /* @__PURE__ */ o((e, a, t, r, d) => ({
281
+ }, "createLruCache"), $e = "!", Fe = ":", Jt = [], We = /* @__PURE__ */ o((e, a, t, r, d) => ({
282
282
  modifiers: e,
283
283
  hasImportantModifier: a,
284
284
  baseClassName: t,
@@ -296,7 +296,7 @@ const tt = [
296
296
  for (let L = 0; L < p; L++) {
297
297
  const T = d[L];
298
298
  if (s === 0 && c === 0) {
299
- if (T === Ue) {
299
+ if (T === Fe) {
300
300
  l.push(d.slice(n, L)), n = L + 1;
301
301
  continue;
302
302
  }
@@ -320,7 +320,7 @@ const tt = [
320
320
  return We(l, E, y, P);
321
321
  }, "parseClassName");
322
322
  if (a) {
323
- const d = a + Ue, l = r;
323
+ const d = a + Fe, l = r;
324
324
  r = /* @__PURE__ */ o((s) => s.startsWith(d) ? l(s.slice(d.length)) : We(Jt, !1, s, void 0, !0), "parseClassName");
325
325
  }
326
326
  if (t) {
@@ -453,7 +453,7 @@ 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"), 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, {
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"), U = /* @__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"]
@@ -1048,77 +1048,77 @@ const tt = [
1048
1048
  * @see https://tailwindcss.com/docs/margin
1049
1049
  */
1050
1050
  m: [{
1051
- m: F()
1051
+ m: U()
1052
1052
  }],
1053
1053
  /**
1054
1054
  * Margin Inline
1055
1055
  * @see https://tailwindcss.com/docs/margin
1056
1056
  */
1057
1057
  mx: [{
1058
- mx: F()
1058
+ mx: U()
1059
1059
  }],
1060
1060
  /**
1061
1061
  * Margin Block
1062
1062
  * @see https://tailwindcss.com/docs/margin
1063
1063
  */
1064
1064
  my: [{
1065
- my: F()
1065
+ my: U()
1066
1066
  }],
1067
1067
  /**
1068
1068
  * Margin Inline Start
1069
1069
  * @see https://tailwindcss.com/docs/margin
1070
1070
  */
1071
1071
  ms: [{
1072
- ms: F()
1072
+ ms: U()
1073
1073
  }],
1074
1074
  /**
1075
1075
  * Margin Inline End
1076
1076
  * @see https://tailwindcss.com/docs/margin
1077
1077
  */
1078
1078
  me: [{
1079
- me: F()
1079
+ me: U()
1080
1080
  }],
1081
1081
  /**
1082
1082
  * Margin Block Start
1083
1083
  * @see https://tailwindcss.com/docs/margin
1084
1084
  */
1085
1085
  mbs: [{
1086
- mbs: F()
1086
+ mbs: U()
1087
1087
  }],
1088
1088
  /**
1089
1089
  * Margin Block End
1090
1090
  * @see https://tailwindcss.com/docs/margin
1091
1091
  */
1092
1092
  mbe: [{
1093
- mbe: F()
1093
+ mbe: U()
1094
1094
  }],
1095
1095
  /**
1096
1096
  * Margin Top
1097
1097
  * @see https://tailwindcss.com/docs/margin
1098
1098
  */
1099
1099
  mt: [{
1100
- mt: F()
1100
+ mt: U()
1101
1101
  }],
1102
1102
  /**
1103
1103
  * Margin Right
1104
1104
  * @see https://tailwindcss.com/docs/margin
1105
1105
  */
1106
1106
  mr: [{
1107
- mr: F()
1107
+ mr: U()
1108
1108
  }],
1109
1109
  /**
1110
1110
  * Margin Bottom
1111
1111
  * @see https://tailwindcss.com/docs/margin
1112
1112
  */
1113
1113
  mb: [{
1114
- mb: F()
1114
+ mb: U()
1115
1115
  }],
1116
1116
  /**
1117
1117
  * Margin Left
1118
1118
  * @see https://tailwindcss.com/docs/margin
1119
1119
  */
1120
1120
  ml: [{
1121
- ml: F()
1121
+ ml: U()
1122
1122
  }],
1123
1123
  /**
1124
1124
  * Space Between X
@@ -3409,7 +3409,7 @@ const tt = [
3409
3409
  "aria-disabled": e.disabled || void 0,
3410
3410
  class: $(s.value)
3411
3411
  }, {
3412
- default: U(() => [
3412
+ default: F(() => [
3413
3413
  e.loading ? (m(), f("div", $r, [
3414
3414
  I(_e, {
3415
3415
  class: $(d.value)
@@ -3479,7 +3479,7 @@ const tt = [
3479
3479
  href: `mailto:${e.agent.email.value}`,
3480
3480
  target: "_blank"
3481
3481
  }, {
3482
- default: U(() => [...t[2] || (t[2] = [
3482
+ default: F(() => [...t[2] || (t[2] = [
3483
3483
  ne(" Email ", -1)
3484
3484
  ])]),
3485
3485
  _: 1
@@ -3498,7 +3498,7 @@ const tt = [
3498
3498
  href: B(oe)[r.platform].getUrl(r.handle),
3499
3499
  target: "_blank"
3500
3500
  }, {
3501
- default: U(() => [
3501
+ default: F(() => [
3502
3502
  ne(R(B(oe)[r.platform].label), 1)
3503
3503
  ]),
3504
3504
  _: 2
@@ -3508,7 +3508,7 @@ const tt = [
3508
3508
  ])
3509
3509
  ]));
3510
3510
  }
3511
- }), Pr = { class: "flex flex-col items-center text-center gap-4" }, Lr = { class: "relative flex-shrink-0" }, Nr = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Gr = ["src", "alt"], Fr = { class: "absolute top-1.5 right-1.5" }, Ur = {
3511
+ }), Pr = { class: "flex flex-col items-center text-center gap-4" }, Lr = { class: "relative flex-shrink-0" }, Nr = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Gr = ["src", "alt"], Ur = { class: "absolute top-1.5 right-1.5" }, Fr = {
3512
3512
  key: 1,
3513
3513
  class: "size-4 bg-theme-400 rounded-full ring-2 ring-white"
3514
3514
  }, Wr = { class: "min-w-0" }, qr = { class: "text-3xl font-light text-white mb-2 truncate" }, Dr = { class: "text-base font-light text-white/60 line-clamp-1" }, Yr = /* @__PURE__ */ W({
@@ -3529,14 +3529,14 @@ const tt = [
3529
3529
  (...r) => B(Ne) && B(Ne)(...r))
3530
3530
  }, null, 40, Gr)
3531
3531
  ]),
3532
- i("div", Fr, [
3532
+ i("div", Ur, [
3533
3533
  e.isOnline ? (m(), f(J, { key: 0 }, [
3534
3534
  t[1] || (t[1] = i("div", {
3535
3535
  class: "size-4 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
3536
3536
  style: { "animation-duration": "3s" }
3537
3537
  }, null, -1)),
3538
3538
  t[2] || (t[2] = i("div", { class: "size-4 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
3539
- ], 64)) : (m(), f("div", Ur))
3539
+ ], 64)) : (m(), f("div", Fr))
3540
3540
  ])
3541
3541
  ]),
3542
3542
  i("div", Wr, [
@@ -3622,7 +3622,7 @@ const tt = [
3622
3622
  "leave-from-class": "opacity-100",
3623
3623
  "leave-to-class": "opacity-0"
3624
3624
  }, {
3625
- default: U(() => [
3625
+ default: F(() => [
3626
3626
  s.value ? (m(), f("div", {
3627
3627
  key: 0,
3628
3628
  class: "absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",
@@ -3639,7 +3639,7 @@ const tt = [
3639
3639
  "leave-from-class": "translate-x-0",
3640
3640
  "leave-to-class": v.value.leave
3641
3641
  }, {
3642
- default: U(() => [
3642
+ default: F(() => [
3643
3643
  s.value ? (m(), f("div", {
3644
3644
  key: 0,
3645
3645
  class: $(["absolute inset-0 z-50 flex", v.value.position]),
@@ -3671,7 +3671,7 @@ const tt = [
3671
3671
  "leave-from-class": "translate-x-0 opacity-100",
3672
3672
  "leave-to-class": B(d) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0"
3673
3673
  }, {
3674
- default: U(() => [
3674
+ default: F(() => [
3675
3675
  (m(!0), f(J, null, Se(c.value, (y, E) => (m(), f("button", {
3676
3676
  key: y.key || y.label || E,
3677
3677
  style: Qe({ transitionDelay: `${E * 40}ms` }),
@@ -3772,7 +3772,7 @@ const tt = [
3772
3772
  {
3773
3773
  key: "share",
3774
3774
  icon: { src: "i-tabler-share" },
3775
- label: "Share This Digital Agent",
3775
+ label: "Share assistant",
3776
3776
  onClick: /* @__PURE__ */ o(() => {
3777
3777
  const c = `${window.location.origin}/@${t.agent.handle.value || t.agent.agentId.value}`;
3778
3778
  navigator.clipboard.writeText(c).catch((n) => {
@@ -3783,7 +3783,7 @@ const tt = [
3783
3783
  {
3784
3784
  key: "profile",
3785
3785
  icon: { src: "i-tabler-user" },
3786
- label: "Visit Full Profile",
3786
+ label: "View profile",
3787
3787
  onClick: /* @__PURE__ */ o(() => {
3788
3788
  window.open(`/@${t.agent.handle.value || t.agent.agentId.value}`, "_blank");
3789
3789
  }, "onClick")
@@ -3791,7 +3791,7 @@ const tt = [
3791
3791
  {
3792
3792
  key: "create",
3793
3793
  icon: { src: "i-tabler-sparkles" },
3794
- label: "Create Your Own",
3794
+ label: "Create your own",
3795
3795
  onClick: /* @__PURE__ */ o(() => {
3796
3796
  window.open("/auth", "_blank");
3797
3797
  }, "onClick")
@@ -3892,7 +3892,7 @@ const tt = [
3892
3892
  try {
3893
3893
  y(), E(e.theme), e.chatOnly && r.value && r.value.setMode("chat");
3894
3894
  } catch (C) {
3895
- const x = C instanceof Error ? C.message : "Failed to initialize digital agent";
3895
+ const x = C instanceof Error ? C.message : "Couldn't initialize your assistant";
3896
3896
  s.value = x, t("error", x);
3897
3897
  }
3898
3898
  }), yt(() => {
@@ -4013,7 +4013,7 @@ const tt = [
4013
4013
  "data-test": "voice-button",
4014
4014
  onClick: x[4] || (x[4] = (z) => r.value?.setMode("talk"))
4015
4015
  }, {
4016
- default: U(() => [
4016
+ default: F(() => [
4017
4017
  ne(R(q.value), 1)
4018
4018
  ]),
4019
4019
  _: 1
@@ -4091,7 +4091,7 @@ const tt = [
4091
4091
  x[14] || (x[14] = i("h3", { class: "text-lg font-medium" }, " Agent Error ", -1)),
4092
4092
  i("p", So, R(s.value), 1)
4093
4093
  ])
4094
- ])) : (m(), f("div", Mo, " There was an error loading the digital agent. Please try again later. ")),
4094
+ ])) : (m(), f("div", Mo, " Couldn't load your assistant. Please try again later. ")),
4095
4095
  e.chatOnly ? S("", !0) : (m(), G(ao, {
4096
4096
  key: 4,
4097
4097
  modelValue: d.value,
@@ -4128,7 +4128,7 @@ const tt = [
4128
4128
  setup(e, { emit: a }) {
4129
4129
  const t = e, r = a;
4130
4130
  return (d, l) => (m(), G(St, wt(t, { class: "agent-provider size-full relative" }), {
4131
- default: U((s) => [
4131
+ default: F((s) => [
4132
4132
  I(Vo, {
4133
4133
  sdk: s.sdk,
4134
4134
  agent: s.agent,