@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.
- package/dist/components/ProductAssistantChips.d.ts +9 -8
- package/dist/components/ProductAssistantChips.d.ts.map +1 -1
- package/dist/index100.mjs +4 -53
- package/dist/index101.mjs +178 -5
- package/dist/index102.mjs +53 -5
- package/dist/index103.mjs +68 -178
- package/dist/index104.mjs +2 -53
- package/dist/index105.mjs +6 -69
- package/dist/index106.mjs +1134 -2
- package/dist/index107.mjs +19 -5
- package/dist/index108.mjs +40 -1119
- package/dist/index109.mjs +27 -14
- package/dist/index110.mjs +2 -55
- package/dist/index111.mjs +37 -33
- package/dist/index112.mjs +43 -2
- package/dist/index117.mjs +2 -2
- package/dist/index118.mjs +2 -2
- package/dist/index153.mjs +1 -1
- package/dist/index154.mjs +1 -1
- package/dist/index155.mjs +5 -5
- package/dist/index157.mjs +2 -2
- package/dist/index159.mjs +2 -2
- package/dist/index161.mjs +1 -1
- package/dist/index163.mjs +4 -4
- package/dist/index164.mjs +3 -3
- package/dist/index175.mjs +2 -2
- package/dist/index188.mjs +2 -2
- package/dist/index189.mjs +5 -5
- package/dist/index192.mjs +1 -1
- package/dist/index195.mjs +1 -1
- package/dist/index198.mjs +1 -1
- package/dist/index199.mjs +1 -1
- package/dist/index203.mjs +1 -1
- package/dist/index205.mjs +1 -1
- package/dist/index209.mjs +1 -1
- package/dist/index22.mjs +5 -5
- package/dist/index224.mjs +1 -1
- package/dist/index225.mjs +3 -3
- package/dist/index23.mjs +16 -15
- package/dist/index230.mjs +1 -1
- package/dist/index232.mjs +1 -1
- package/dist/index233.mjs +3 -3
- package/dist/index234.mjs +3 -3
- package/dist/index249.mjs +2 -2
- package/dist/index250.mjs +2 -244
- package/dist/index251.mjs +2 -2
- package/dist/index252.mjs +2 -33
- package/dist/index253.mjs +2 -65
- package/dist/index254.mjs +2 -25
- package/dist/index256.mjs +2 -2
- package/dist/index257.mjs +244 -2
- package/dist/index258.mjs +2 -2
- package/dist/index259.mjs +33 -2
- package/dist/index260.mjs +65 -2
- package/dist/index261.mjs +25 -2
- package/dist/index264.mjs +2 -2
- package/dist/index273.mjs +1 -1
- package/dist/index279.mjs +2 -2
- package/dist/index280.mjs +2 -2
- package/dist/index281.mjs +2 -2
- package/dist/index282.mjs +2 -91
- package/dist/index283.mjs +91 -2
- package/dist/index48.mjs +2 -2
- package/dist/index50.mjs +1 -1
- package/dist/index58.mjs +1 -1
- package/dist/index63.mjs +17 -17
- package/dist/index64.mjs +2 -2
- package/dist/index80.mjs +20 -21
- package/dist/index81.mjs +24 -2
- package/dist/index82.mjs +7 -7
- package/dist/index83.mjs +2 -23
- package/dist/index86.mjs +1 -1
- package/dist/index87.mjs +231 -33
- package/dist/index88.mjs +5 -42
- package/dist/index89.mjs +127 -228
- package/dist/index90.mjs +66 -4
- package/dist/index91.mjs +77 -124
- package/dist/index92.mjs +26 -65
- package/dist/index93.mjs +6 -84
- package/dist/index94.mjs +72 -26
- package/dist/index95.mjs +3 -8
- package/dist/index96.mjs +2 -75
- package/dist/index97.mjs +82 -3
- package/dist/index98.mjs +54 -2
- package/dist/index99.mjs +5 -82
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/src/components/AssistantDrawer.stories.tsx +20 -41
- package/src/components/AssistantDrawer.tsx +5 -5
- package/src/components/ProductAssistantChips.stories.tsx +11 -6
- package/src/components/ProductAssistantChips.tsx +14 -9
package/dist/index109.mjs
CHANGED
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
return
|
|
9
|
-
Object.defineProperty(
|
|
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(
|
|
11
|
+
}), Object.defineProperty(e, "default", {
|
|
12
12
|
enumerable: !0,
|
|
13
13
|
get: function() {
|
|
14
|
-
return
|
|
14
|
+
return l;
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
35
|
+
y as __require
|
|
23
36
|
};
|
package/dist/index110.mjs
CHANGED
|
@@ -1,58 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
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
|
-
|
|
4
|
+
e as __exports
|
|
58
5
|
};
|
package/dist/index111.mjs
CHANGED
|
@@ -1,36 +1,40 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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
package/dist/index154.mjs
CHANGED
package/dist/index155.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import r from "./index225.mjs";
|
|
3
|
-
import p from "./
|
|
4
|
-
import l from "./
|
|
5
|
-
import m from "./
|
|
6
|
-
import a from "./
|
|
7
|
-
import o from "./
|
|
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 "./
|
|
3
|
-
import s from "./
|
|
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
package/dist/index161.mjs
CHANGED
package/dist/index163.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import H from "./
|
|
2
|
+
import H from "./index87.mjs";
|
|
3
3
|
import D from "./index230.mjs";
|
|
4
4
|
import L from "./index158.mjs";
|
|
5
|
-
import n from "./
|
|
6
|
-
import y from "./
|
|
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 "./
|
|
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 "./
|
|
4
|
-
import b from "./
|
|
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 "./
|
|
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 "./
|
|
3
|
+
import "./index105.mjs";
|
|
4
4
|
import n from "react";
|
|
5
|
-
import { __exports as o } from "./
|
|
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 "./
|
|
3
|
-
import { __require as d } from "./
|
|
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 "./
|
|
3
|
-
import { __require as T } from "./
|
|
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 "./
|
|
5
|
+
import { __require as N } from "./index259.mjs";
|
|
6
6
|
import { __require as U } from "./index184.mjs";
|
|
7
|
-
import { __require as j } from "./
|
|
8
|
-
import { __require as v } from "./
|
|
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
package/dist/index195.mjs
CHANGED
package/dist/index198.mjs
CHANGED
package/dist/index199.mjs
CHANGED
package/dist/index203.mjs
CHANGED
package/dist/index205.mjs
CHANGED
package/dist/index209.mjs
CHANGED
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:
|
|
168
|
-
"sm:inset-y-0 sm:
|
|
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
|
|
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
package/dist/index225.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import i from "./
|
|
3
|
-
import m from "./
|
|
4
|
-
import s from "./
|
|
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
|
|
4
|
-
import { cn as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
className:
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
17
|
+
n.slice(0, 3).map((l, c) => /* @__PURE__ */ t(
|
|
17
18
|
"button",
|
|
18
19
|
{
|
|
19
20
|
type: "button",
|
|
20
|
-
onClick: () =>
|
|
21
|
-
className:
|
|
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
|
-
|
|
29
|
+
c
|
|
29
30
|
)),
|
|
30
31
|
/* @__PURE__ */ t(
|
|
31
32
|
"button",
|
|
32
33
|
{
|
|
33
34
|
type: "button",
|
|
34
|
-
onClick: () =>
|
|
35
|
-
className:
|
|
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
|
-
|
|
48
|
+
x as ProductAssistantChips
|
|
48
49
|
};
|
package/dist/index230.mjs
CHANGED
package/dist/index232.mjs
CHANGED
package/dist/index233.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import n from "./index160.mjs";
|
|
3
|
-
import m from "./
|
|
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 "./
|
|
8
|
-
import C from "./
|
|
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 "./
|
|
3
|
-
import s from "./
|
|
4
|
-
import m from "./
|
|
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