@instockng/storefront-ui 1.0.108 → 1.0.110

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.
Files changed (91) hide show
  1. package/dist/components/ProductAssistantChips.d.ts +9 -8
  2. package/dist/components/ProductAssistantChips.d.ts.map +1 -1
  3. package/dist/index100.mjs +4 -53
  4. package/dist/index101.mjs +178 -5
  5. package/dist/index102.mjs +53 -5
  6. package/dist/index103.mjs +68 -178
  7. package/dist/index104.mjs +2 -53
  8. package/dist/index105.mjs +6 -69
  9. package/dist/index106.mjs +1134 -2
  10. package/dist/index107.mjs +19 -5
  11. package/dist/index108.mjs +40 -1119
  12. package/dist/index109.mjs +27 -14
  13. package/dist/index110.mjs +2 -55
  14. package/dist/index111.mjs +37 -33
  15. package/dist/index112.mjs +43 -2
  16. package/dist/index117.mjs +2 -2
  17. package/dist/index118.mjs +2 -2
  18. package/dist/index153.mjs +1 -1
  19. package/dist/index154.mjs +1 -1
  20. package/dist/index155.mjs +5 -5
  21. package/dist/index157.mjs +2 -2
  22. package/dist/index159.mjs +2 -2
  23. package/dist/index161.mjs +1 -1
  24. package/dist/index163.mjs +4 -4
  25. package/dist/index164.mjs +3 -3
  26. package/dist/index175.mjs +2 -2
  27. package/dist/index188.mjs +2 -2
  28. package/dist/index189.mjs +5 -5
  29. package/dist/index192.mjs +1 -1
  30. package/dist/index195.mjs +1 -1
  31. package/dist/index198.mjs +1 -1
  32. package/dist/index199.mjs +1 -1
  33. package/dist/index203.mjs +1 -1
  34. package/dist/index205.mjs +1 -1
  35. package/dist/index209.mjs +1 -1
  36. package/dist/index22.mjs +5 -5
  37. package/dist/index224.mjs +1 -1
  38. package/dist/index225.mjs +3 -3
  39. package/dist/index23.mjs +16 -15
  40. package/dist/index230.mjs +1 -1
  41. package/dist/index232.mjs +1 -1
  42. package/dist/index233.mjs +3 -3
  43. package/dist/index234.mjs +3 -3
  44. package/dist/index249.mjs +2 -2
  45. package/dist/index250.mjs +2 -244
  46. package/dist/index251.mjs +2 -2
  47. package/dist/index252.mjs +2 -33
  48. package/dist/index253.mjs +2 -65
  49. package/dist/index254.mjs +2 -25
  50. package/dist/index256.mjs +2 -2
  51. package/dist/index257.mjs +244 -2
  52. package/dist/index258.mjs +2 -2
  53. package/dist/index259.mjs +33 -2
  54. package/dist/index260.mjs +65 -2
  55. package/dist/index261.mjs +25 -2
  56. package/dist/index264.mjs +2 -2
  57. package/dist/index273.mjs +1 -1
  58. package/dist/index279.mjs +2 -2
  59. package/dist/index280.mjs +2 -2
  60. package/dist/index281.mjs +2 -2
  61. package/dist/index282.mjs +2 -91
  62. package/dist/index283.mjs +91 -2
  63. package/dist/index48.mjs +2 -2
  64. package/dist/index50.mjs +1 -1
  65. package/dist/index58.mjs +1 -1
  66. package/dist/index63.mjs +17 -17
  67. package/dist/index64.mjs +2 -2
  68. package/dist/index80.mjs +20 -21
  69. package/dist/index81.mjs +24 -2
  70. package/dist/index82.mjs +7 -7
  71. package/dist/index83.mjs +2 -23
  72. package/dist/index86.mjs +1 -1
  73. package/dist/index87.mjs +231 -33
  74. package/dist/index88.mjs +5 -42
  75. package/dist/index89.mjs +127 -228
  76. package/dist/index90.mjs +66 -4
  77. package/dist/index91.mjs +77 -124
  78. package/dist/index92.mjs +26 -65
  79. package/dist/index93.mjs +6 -84
  80. package/dist/index94.mjs +72 -26
  81. package/dist/index95.mjs +3 -8
  82. package/dist/index96.mjs +2 -75
  83. package/dist/index97.mjs +82 -3
  84. package/dist/index98.mjs +54 -2
  85. package/dist/index99.mjs +5 -82
  86. package/dist/styles.css +1 -1
  87. package/package.json +2 -2
  88. package/src/components/AssistantDrawer.stories.tsx +20 -41
  89. package/src/components/AssistantDrawer.tsx +5 -5
  90. package/src/components/ProductAssistantChips.stories.tsx +11 -6
  91. package/src/components/ProductAssistantChips.tsx +14 -9
package/dist/index109.mjs CHANGED
@@ -1,23 +1,36 @@
1
1
  'use client';
2
- import { __exports as e } from "./index149.mjs";
3
- import "./index107.mjs";
4
- import u from "react";
5
- import { __exports as n } from "./index112.mjs";
6
- var o;
7
- function d() {
8
- return o ? e : (o = 1, function(t) {
9
- Object.defineProperty(t, "__esModule", {
2
+ import { __module as u } from "./index152.mjs";
3
+ import d from "react/jsx-runtime";
4
+ import "react";
5
+ import { __require as c } from "./index82.mjs";
6
+ var n;
7
+ function y() {
8
+ return n ? u.exports : (n = 1, function(a, e) {
9
+ Object.defineProperty(e, "__esModule", {
10
10
  value: !0
11
- }), Object.defineProperty(t, "RouterContext", {
11
+ }), Object.defineProperty(e, "default", {
12
12
  enumerable: !0,
13
13
  get: function() {
14
- return r;
14
+ return l;
15
15
  }
16
16
  });
17
- const r = (/* @__PURE__ */ n._(u)).default.createContext(null);
18
- process.env.NODE_ENV !== "production" && (r.displayName = "RouterContext");
19
- }(e), e);
17
+ const f = d, o = c();
18
+ function l(t) {
19
+ function r(i) {
20
+ return /* @__PURE__ */ (0, f.jsx)(t, {
21
+ router: (0, o.useRouter)(),
22
+ ...i
23
+ });
24
+ }
25
+ if (r.getInitialProps = t.getInitialProps, r.origGetInitialProps = t.origGetInitialProps, process.env.NODE_ENV !== "production") {
26
+ const i = t.displayName || t.name || "Unknown";
27
+ r.displayName = "withRouter(" + i + ")";
28
+ }
29
+ return r;
30
+ }
31
+ (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
32
+ }(u, u.exports), u.exports);
20
33
  }
21
34
  export {
22
- d as __require
35
+ y as __require
23
36
  };
package/dist/index110.mjs CHANGED
@@ -1,58 +1,5 @@
1
1
  'use client';
2
- import { __exports as o } from "./index150.mjs";
3
- import { __require as p } from "./index151.mjs";
4
- var u;
5
- function m() {
6
- return u ? o : (u = 1, function(i) {
7
- Object.defineProperty(i, "__esModule", {
8
- value: !0
9
- });
10
- function f(e, r) {
11
- for (var t in r) Object.defineProperty(e, t, {
12
- enumerable: !0,
13
- get: r[t]
14
- });
15
- }
16
- f(i, {
17
- /**
18
- * Checks whether the given value is a NextError.
19
- * This can be used to print a more detailed error message with properties like `code` & `digest`.
20
- */
21
- default: function() {
22
- return s;
23
- },
24
- getProperError: function() {
25
- return a;
26
- }
27
- });
28
- const c = p();
29
- function s(e) {
30
- return typeof e == "object" && e !== null && "name" in e && "message" in e;
31
- }
32
- function d(e) {
33
- const r = /* @__PURE__ */ new WeakSet();
34
- return JSON.stringify(e, (t, n) => {
35
- if (typeof n == "object" && n !== null) {
36
- if (r.has(n))
37
- return "[Circular]";
38
- r.add(n);
39
- }
40
- return n;
41
- });
42
- }
43
- function a(e) {
44
- if (s(e))
45
- return e;
46
- if (process.env.NODE_ENV === "development") {
47
- if (typeof e > "u")
48
- return new Error("An undefined error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined");
49
- if (e === null)
50
- return new Error("A null error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined");
51
- }
52
- return new Error((0, c.isPlainObject)(e) ? d(e) : e + "");
53
- }
54
- }(o), o);
55
- }
2
+ var e = {};
56
3
  export {
57
- m as __require
4
+ e as __exports
58
5
  };
package/dist/index111.mjs CHANGED
@@ -1,36 +1,40 @@
1
1
  'use client';
2
- import { __module as u } from "./index152.mjs";
3
- import d from "react/jsx-runtime";
4
- import "react";
5
- import { __require as c } from "./index82.mjs";
6
- var n;
7
- function y() {
8
- return n ? u.exports : (n = 1, function(a, e) {
9
- Object.defineProperty(e, "__esModule", {
10
- value: !0
11
- }), Object.defineProperty(e, "default", {
12
- enumerable: !0,
13
- get: function() {
14
- return l;
15
- }
16
- });
17
- const f = d, o = c();
18
- function l(t) {
19
- function r(i) {
20
- return /* @__PURE__ */ (0, f.jsx)(t, {
21
- router: (0, o.useRouter)(),
22
- ...i
23
- });
24
- }
25
- if (r.getInitialProps = t.getInitialProps, r.origGetInitialProps = t.origGetInitialProps, process.env.NODE_ENV !== "production") {
26
- const i = t.displayName || t.name || "Unknown";
27
- r.displayName = "withRouter(" + i + ")";
28
- }
29
- return r;
30
- }
31
- (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
32
- }(u, u.exports), u.exports);
33
- }
2
+ var s = (i, t, e = {}) => {
3
+ let r = `${i}=${t}`;
4
+ if (i.startsWith("__Secure-") && !e.secure)
5
+ throw new Error("__Secure- Cookie must have Secure attributes");
6
+ if (i.startsWith("__Host-")) {
7
+ if (!e.secure)
8
+ throw new Error("__Host- Cookie must have Secure attributes");
9
+ if (e.path !== "/")
10
+ throw new Error('__Host- Cookie must have Path attributes with "/"');
11
+ if (e.domain)
12
+ throw new Error("__Host- Cookie must not have Domain attributes");
13
+ }
14
+ for (const a of ["domain", "path"])
15
+ if (e[a] && /[;\r\n]/.test(e[a]))
16
+ throw new Error(`${a} must not contain ";", "\\r", or "\\n"`);
17
+ if (e && typeof e.maxAge == "number" && e.maxAge >= 0) {
18
+ if (e.maxAge > 3456e4)
19
+ throw new Error(
20
+ "Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration."
21
+ );
22
+ r += `; Max-Age=${e.maxAge | 0}`;
23
+ }
24
+ if (e.domain && e.prefix !== "host" && (r += `; Domain=${e.domain}`), e.path && (r += `; Path=${e.path}`), e.expires) {
25
+ if (e.expires.getTime() - Date.now() > 3456e7)
26
+ throw new Error(
27
+ "Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future."
28
+ );
29
+ r += `; Expires=${e.expires.toUTCString()}`;
30
+ }
31
+ if (e.httpOnly && (r += "; HttpOnly"), e.secure && (r += "; Secure"), e.sameSite && (r += `; SameSite=${e.sameSite.charAt(0).toUpperCase() + e.sameSite.slice(1)}`), e.priority && (r += `; Priority=${e.priority.charAt(0).toUpperCase() + e.priority.slice(1)}`), e.partitioned) {
32
+ if (!e.secure)
33
+ throw new Error("Partitioned Cookie must have Secure attributes");
34
+ r += "; Partitioned";
35
+ }
36
+ return r;
37
+ }, o = (i, t, e) => (t = encodeURIComponent(t), s(i, t, e));
34
38
  export {
35
- y as __require
39
+ o as serialize
36
40
  };
package/dist/index112.mjs CHANGED
@@ -1,5 +1,46 @@
1
1
  'use client';
2
- var e = {};
2
+ var s = (e, r) => (e = e.replace(/\/+$/, ""), e = e + "/", r = r.replace(/^\/+/, ""), e + r), p = (e, r) => {
3
+ for (const [n, t] of Object.entries(r)) {
4
+ const c = new RegExp("/:" + n + "(?:{[^/]+})?\\??");
5
+ e = e.replace(c, t ? `/${t}` : "");
6
+ }
7
+ return e;
8
+ }, f = (e) => {
9
+ const r = new URLSearchParams();
10
+ for (const [n, t] of Object.entries(e))
11
+ if (t !== void 0)
12
+ if (Array.isArray(t))
13
+ for (const c of t)
14
+ r.append(n, c);
15
+ else
16
+ r.set(n, t);
17
+ return r;
18
+ }, i = (e, r) => {
19
+ switch (r) {
20
+ case "ws":
21
+ return e.replace(/^http/, "ws");
22
+ case "http":
23
+ return e.replace(/^ws/, "http");
24
+ }
25
+ }, l = (e) => /^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e) ? e.replace(/\/index(?=\?|$)/, "/") : e.replace(/\/index(?=\?|$)/, "");
26
+ function a(e) {
27
+ return typeof e == "object" && e !== null && !Array.isArray(e);
28
+ }
29
+ function o(e, r) {
30
+ if (!a(e) && !a(r))
31
+ return r;
32
+ const n = { ...e };
33
+ for (const t in r) {
34
+ const c = r[t];
35
+ a(n[t]) && a(c) ? n[t] = o(n[t], c) : n[t] = c;
36
+ }
37
+ return n;
38
+ }
3
39
  export {
4
- e as __exports
40
+ f as buildSearchParams,
41
+ o as deepMerge,
42
+ s as mergePath,
43
+ l as removeIndexString,
44
+ p as replaceUrlParam,
45
+ i as replaceUrlProtocol
5
46
  };
package/dist/index117.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use client';
2
2
  import { __module as m } from "./index168.mjs";
3
- import "./index107.mjs";
3
+ import "./index105.mjs";
4
4
  import { __require as j } from "./index169.mjs";
5
5
  import { __require as V } from "./index170.mjs";
6
6
  import { __require as k } from "./index171.mjs";
7
7
  import { __require as G } from "./index172.mjs";
8
8
  import { __require as W } from "./index173.mjs";
9
- import { __exports as X } from "./index112.mjs";
9
+ import { __exports as X } from "./index110.mjs";
10
10
  var M;
11
11
  function ee() {
12
12
  return M ? m.exports : (M = 1, function(N, c) {
package/dist/index118.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { __module as L } from "./index174.mjs";
3
- import "./index107.mjs";
3
+ import "./index105.mjs";
4
4
  import { __require as K } from "./index115.mjs";
5
5
  import F from "react/jsx-runtime";
6
6
  import J from "react-dom";
@@ -8,7 +8,7 @@ import N from "react";
8
8
  import { __require as B } from "./index175.mjs";
9
9
  import { __require as D } from "./index176.mjs";
10
10
  import { __require as G } from "./index171.mjs";
11
- import { __exports as Q } from "./index112.mjs";
11
+ import { __exports as Q } from "./index110.mjs";
12
12
  var w;
13
13
  function ie() {
14
14
  return w ? L.exports : (w = 1, function(x, o) {
package/dist/index153.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import f from "./index89.mjs";
2
+ import f from "./index87.mjs";
3
3
  import d from "./index224.mjs";
4
4
  function l(e) {
5
5
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
package/dist/index154.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import n from "./index89.mjs";
2
+ import n from "./index87.mjs";
3
3
  class a {
4
4
  constructor() {
5
5
  this.handlers = [];
package/dist/index155.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import r from "./index225.mjs";
3
- import p from "./index97.mjs";
4
- import l from "./index93.mjs";
5
- import m from "./index95.mjs";
6
- import a from "./index103.mjs";
7
- import o from "./index104.mjs";
3
+ import p from "./index95.mjs";
4
+ import l from "./index91.mjs";
5
+ import m from "./index93.mjs";
6
+ import a from "./index101.mjs";
7
+ import o from "./index102.mjs";
8
8
  function d(e) {
9
9
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
10
10
  throw new m(null, e);
package/dist/index157.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { VERSION as w } from "./index98.mjs";
3
- import s from "./index100.mjs";
2
+ import { VERSION as w } from "./index96.mjs";
3
+ import s from "./index98.mjs";
4
4
  const l = {};
5
5
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
6
6
  l[n] = function(o) {
package/dist/index159.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import s from "./index89.mjs";
3
- import f from "./index99.mjs";
2
+ import s from "./index87.mjs";
3
+ import f from "./index97.mjs";
4
4
  import r from "./index160.mjs";
5
5
  function d(o, i) {
6
6
  return f(o, new r.classes.URLSearchParams(), {
package/dist/index161.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import n from "./index89.mjs";
2
+ import n from "./index87.mjs";
3
3
  const a = n.toObjectSet([
4
4
  "age",
5
5
  "authorization",
package/dist/index163.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use client';
2
- import H from "./index89.mjs";
2
+ import H from "./index87.mjs";
3
3
  import D from "./index230.mjs";
4
4
  import L from "./index158.mjs";
5
- import n from "./index100.mjs";
6
- import y from "./index95.mjs";
5
+ import n from "./index98.mjs";
6
+ import y from "./index93.mjs";
7
7
  import O from "./index231.mjs";
8
8
  import U from "./index160.mjs";
9
- import q from "./index103.mjs";
9
+ import q from "./index101.mjs";
10
10
  import { progressEventReducer as A } from "./index232.mjs";
11
11
  import v from "./index233.mjs";
12
12
  const N = typeof XMLHttpRequest < "u", Q = N && function(s) {
package/dist/index164.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import K from "./index160.mjs";
3
- import t from "./index89.mjs";
4
- import b from "./index100.mjs";
3
+ import t from "./index87.mjs";
4
+ import b from "./index98.mjs";
5
5
  import ee from "./index234.mjs";
6
6
  import { trackStream as z } from "./index235.mjs";
7
- import te from "./index103.mjs";
7
+ import te from "./index101.mjs";
8
8
  import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./index232.mjs";
9
9
  import se from "./index233.mjs";
10
10
  import re from "./index230.mjs";
package/dist/index175.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
  import { __exports as e } from "./index244.mjs";
3
- import "./index107.mjs";
3
+ import "./index105.mjs";
4
4
  import n from "react";
5
- import { __exports as o } from "./index112.mjs";
5
+ import { __exports as o } from "./index110.mjs";
6
6
  var a;
7
7
  function c() {
8
8
  return a ? e : (a = 1, function(t) {
package/dist/index188.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { __exports as n } from "./index249.mjs";
3
- import { __require as d } from "./index250.mjs";
2
+ import { __exports as n } from "./index256.mjs";
3
+ import { __require as d } from "./index257.mjs";
4
4
  var o;
5
5
  function p() {
6
6
  return o ? n : (o = 1, function(i) {
package/dist/index189.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { __exports as A } from "./index251.mjs";
3
- import { __require as T } from "./index250.mjs";
2
+ import { __exports as A } from "./index258.mjs";
3
+ import { __require as T } from "./index257.mjs";
4
4
  import { __require as L } from "./index192.mjs";
5
- import { __require as N } from "./index252.mjs";
5
+ import { __require as N } from "./index259.mjs";
6
6
  import { __require as U } from "./index184.mjs";
7
- import { __require as j } from "./index253.mjs";
8
- import { __require as v } from "./index254.mjs";
7
+ import { __require as j } from "./index260.mjs";
8
+ import { __require as v } from "./index261.mjs";
9
9
  var S;
10
10
  function W() {
11
11
  return S ? A : (S = 1, function(R) {
package/dist/index192.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index255.mjs";
2
+ import { __exports as r } from "./index250.mjs";
3
3
  var n;
4
4
  function i() {
5
5
  return n ? r : (n = 1, function(t) {
package/dist/index195.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index256.mjs";
2
+ import { __exports as r } from "./index249.mjs";
3
3
  var u;
4
4
  function D() {
5
5
  return u ? r : (u = 1, function(t) {
package/dist/index198.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as t } from "./index257.mjs";
2
+ import { __module as t } from "./index251.mjs";
3
3
  import { __require as _ } from "./index116.mjs";
4
4
  import { __require as d } from "./index130.mjs";
5
5
  var u;
package/dist/index199.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as t } from "./index258.mjs";
2
+ import { __exports as t } from "./index252.mjs";
3
3
  import { __require as _ } from "./index203.mjs";
4
4
  import { __require as c } from "./index205.mjs";
5
5
  var u;
package/dist/index203.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index259.mjs";
2
+ import { __exports as r } from "./index254.mjs";
3
3
  import { __require as o } from "./index130.mjs";
4
4
  var i;
5
5
  function _() {
package/dist/index205.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index260.mjs";
2
+ import { __exports as e } from "./index253.mjs";
3
3
  import { __require as f } from "./index130.mjs";
4
4
  var n;
5
5
  function p() {
package/dist/index209.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as t } from "./index261.mjs";
2
+ import { __exports as t } from "./index255.mjs";
3
3
  import { __require as a } from "./index205.mjs";
4
4
  var n;
5
5
  function h() {
package/dist/index22.mjs CHANGED
@@ -45,12 +45,12 @@ function me({
45
45
  } catch {
46
46
  h("An error occurred");
47
47
  }
48
- }, []), v = b(), B = V(
48
+ }, []), v = b(null), B = V(
49
49
  async (e) => {
50
50
  var o;
51
51
  if (!e.trim()) return;
52
52
  h(null);
53
- const a = { role: "user", content: e }, s = M.current.map((t) => ({
53
+ const a = { role: "user", content: e }, s = M.current.slice(-20).map((t) => ({
54
54
  role: t.role,
55
55
  content: t.content
56
56
  }));
@@ -164,10 +164,10 @@ function me({
164
164
  "absolute bg-white flex flex-col transition-transform duration-300 ease-out",
165
165
  // Mobile: bottom sheet
166
166
  "inset-x-0 bottom-0 top-[10vh] rounded-t-2xl",
167
- // Desktop: right side drawer
168
- "sm:inset-y-0 sm:right-0 sm:left-auto sm:w-[420px] sm:max-w-full sm:rounded-t-none sm:rounded-l-2xl",
167
+ // Desktop: left side drawer
168
+ "sm:inset-y-0 sm:left-0 sm:right-auto sm:w-[420px] sm:max-w-full sm:rounded-t-none sm:rounded-r-2xl",
169
169
  // Animation
170
- L ? "translate-y-0 sm:translate-x-0" : "translate-y-full sm:translate-y-0 sm:translate-x-full",
170
+ L ? "translate-y-0 sm:translate-x-0" : "translate-y-full sm:translate-y-0 sm:-translate-x-full",
171
171
  X
172
172
  ),
173
173
  children: [
package/dist/index224.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import p from "./index99.mjs";
2
+ import p from "./index97.mjs";
3
3
  function i(n) {
4
4
  const t = {
5
5
  "!": "%21",
package/dist/index225.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import i from "./index89.mjs";
3
- import m from "./index93.mjs";
4
- import s from "./index103.mjs";
2
+ import i from "./index87.mjs";
3
+ import m from "./index91.mjs";
4
+ import s from "./index101.mjs";
5
5
  function h(f, t) {
6
6
  const o = this || m, r = t || o, n = s.from(r.headers);
7
7
  let a = r.data;
package/dist/index23.mjs CHANGED
@@ -1,38 +1,39 @@
1
1
  'use client';
2
2
  import { jsxs as e, jsx as t } from "react/jsx-runtime";
3
- import { Sparkles as i } from "lucide-react";
4
- import { cn as r } from "./index30.mjs";
5
- function u({
6
- faqs: o = [],
7
- onAsk: s,
8
- className: n
3
+ import { Sparkles as m } from "lucide-react";
4
+ import { cn as s } from "./index30.mjs";
5
+ import { useAssistant as u } from "./index4.mjs";
6
+ function x({
7
+ product: r,
8
+ className: i
9
9
  }) {
10
- return o.length === 0 ? null : /* @__PURE__ */ e("div", { className: r("space-y-2", n), children: [
10
+ const { ask: o } = u(), n = r.faqs || [], a = r.slug;
11
+ return n.length === 0 ? null : /* @__PURE__ */ e("div", { className: s("space-y-2", i), children: [
11
12
  /* @__PURE__ */ e("div", { className: "flex items-center gap-1.5 text-sm font-medium text-gray-700", children: [
12
- /* @__PURE__ */ t(i, { className: "h-4 w-4 text-orange-500" }),
13
+ /* @__PURE__ */ t(m, { className: "h-4 w-4 text-orange-500" }),
13
14
  "Ask AI"
14
15
  ] }),
15
16
  /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: [
16
- o.map((l, a) => /* @__PURE__ */ t(
17
+ n.slice(0, 3).map((l, c) => /* @__PURE__ */ t(
17
18
  "button",
18
19
  {
19
20
  type: "button",
20
- onClick: () => s(l.question),
21
- className: r(
21
+ onClick: () => o(l.question, a),
22
+ className: s(
22
23
  "rounded-full border border-gray-200 bg-blue-50/60 px-3 py-1.5 text-sm text-gray-700",
23
24
  "hover:bg-blue-100 hover:border-blue-200 transition-colors",
24
25
  "active:scale-95"
25
26
  ),
26
27
  children: l.question
27
28
  },
28
- a
29
+ c
29
30
  )),
30
31
  /* @__PURE__ */ t(
31
32
  "button",
32
33
  {
33
34
  type: "button",
34
- onClick: () => s(""),
35
- className: r(
35
+ onClick: () => o("", a),
36
+ className: s(
36
37
  "rounded-full border border-gray-300 bg-gray-800 px-3 py-1.5 text-sm text-white font-medium",
37
38
  "hover:bg-gray-700 transition-colors",
38
39
  "active:scale-95"
@@ -44,5 +45,5 @@ function u({
44
45
  ] });
45
46
  }
46
47
  export {
47
- u as ProductAssistantChips
48
+ x as ProductAssistantChips
48
49
  };
package/dist/index230.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import a from "./index100.mjs";
2
+ import a from "./index98.mjs";
3
3
  function E(i, f, t) {
4
4
  const u = t.config.validateStatus;
5
5
  !t.status || !u || u(t.status) ? i(t) : f(new a(
package/dist/index232.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import i from "./index270.mjs";
3
3
  import m from "./index271.mjs";
4
- import f from "./index89.mjs";
4
+ import f from "./index87.mjs";
5
5
  const h = (t, o, a = 3) => {
6
6
  let r = 0;
7
7
  const c = i(50, 250);
package/dist/index233.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
  import n from "./index160.mjs";
3
- import m from "./index89.mjs";
3
+ import m from "./index87.mjs";
4
4
  import c from "./index272.mjs";
5
5
  import h from "./index273.mjs";
6
6
  import w from "./index156.mjs";
7
- import b from "./index92.mjs";
8
- import C from "./index103.mjs";
7
+ import b from "./index90.mjs";
8
+ import C from "./index101.mjs";
9
9
  import g from "./index153.mjs";
10
10
  const E = (a) => {
11
11
  const e = b({}, a);
package/dist/index234.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import a from "./index95.mjs";
3
- import s from "./index100.mjs";
4
- import m from "./index89.mjs";
2
+ import a from "./index93.mjs";
3
+ import s from "./index98.mjs";
4
+ import m from "./index87.mjs";
5
5
  const h = (e, t) => {
6
6
  const { length: l } = e = e ? e.filter(Boolean) : [];
7
7
  if (t || l) {
package/dist/index249.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var a = {};
2
+ var e = {};
3
3
  export {
4
- a as __exports
4
+ e as __exports
5
5
  };