@burdenoff/website-sdk 2026.1101.3 → 2026.1102.1
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/README.md +234 -14
- package/dist/avatar-live-view/index.d.mts +1 -1
- package/dist/avatar-live-view/index.d.ts +1 -1
- package/dist/avatar-live-view/index.js +71 -24
- package/dist/avatar-live-view/index.js.map +1 -1
- package/dist/avatar-live-view/index.mjs +69 -22
- package/dist/avatar-live-view/index.mjs.map +1 -1
- package/dist/{chunk-Y4V5CEWD.mjs → chunk-2LPDCXQH.mjs} +7 -4
- package/dist/chunk-2LPDCXQH.mjs.map +1 -0
- package/dist/{chunk-FFADMVIK.mjs → chunk-ETI2HQEC.mjs} +7 -5
- package/dist/chunk-ETI2HQEC.mjs.map +1 -0
- package/dist/{chunk-23H4JUL4.js → chunk-OIQHIGGU.js} +20 -3
- package/dist/chunk-OIQHIGGU.js.map +1 -0
- package/dist/{chunk-OYEUNZJY.js → chunk-PIXTBL63.js} +7 -3
- package/dist/chunk-PIXTBL63.js.map +1 -0
- package/dist/{chunk-BX2USEWF.mjs → chunk-QOHPLTGT.mjs} +19 -4
- package/dist/chunk-QOHPLTGT.mjs.map +1 -0
- package/dist/{chunk-O76QDGRM.js → chunk-R742FS5E.js} +8 -4
- package/dist/chunk-R742FS5E.js.map +1 -0
- package/dist/components/explore-cta.d.mts +7 -0
- package/dist/components/explore-cta.d.ts +7 -0
- package/dist/components/explore-cta.js +2 -2
- package/dist/components/explore-cta.mjs +1 -1
- package/dist/components/explore.js +13 -13
- package/dist/components/explore.mjs +1 -1
- package/dist/{explore-avatar-live-config-B171o1Yo.d.ts → explore-avatar-live-config-C1ILEcY8.d.ts} +16 -4
- package/dist/{explore-avatar-live-config-BGsGwbcq.d.mts → explore-avatar-live-config-D-hO90-A.d.mts} +16 -4
- package/dist/index.d.mts +107 -4
- package/dist/index.d.ts +107 -4
- package/dist/index.js +209 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +173 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-23H4JUL4.js.map +0 -1
- package/dist/chunk-BX2USEWF.mjs.map +0 -1
- package/dist/chunk-FFADMVIK.mjs.map +0 -1
- package/dist/chunk-O76QDGRM.js.map +0 -1
- package/dist/chunk-OYEUNZJY.js.map +0 -1
- package/dist/chunk-Y4V5CEWD.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkOIQHIGGU_js = require('./chunk-OIQHIGGU.js');
|
|
4
4
|
var chunk6KY2ZRVI_js = require('./chunk-6KY2ZRVI.js');
|
|
5
5
|
require('./chunk-VRWZLGR7.js');
|
|
6
6
|
var chunkQMA6U6AU_js = require('./chunk-QMA6U6AU.js');
|
|
@@ -16,13 +16,13 @@ var chunkAA33WDYS_js = require('./chunk-AA33WDYS.js');
|
|
|
16
16
|
var chunk45GCA4GG_js = require('./chunk-45GCA4GG.js');
|
|
17
17
|
var chunkW6P3YETJ_js = require('./chunk-W6P3YETJ.js');
|
|
18
18
|
var chunkT7JIPZAC_js = require('./chunk-T7JIPZAC.js');
|
|
19
|
-
var
|
|
19
|
+
var chunkR742FS5E_js = require('./chunk-R742FS5E.js');
|
|
20
20
|
var chunkO4GS3XPZ_js = require('./chunk-O4GS3XPZ.js');
|
|
21
21
|
var chunkSK5UGG6A_js = require('./chunk-SK5UGG6A.js');
|
|
22
22
|
var chunkPHXAGQNB_js = require('./chunk-PHXAGQNB.js');
|
|
23
23
|
var chunk3LFFY7AZ_js = require('./chunk-3LFFY7AZ.js');
|
|
24
24
|
var chunkGEXC4LRP_js = require('./chunk-GEXC4LRP.js');
|
|
25
|
-
var
|
|
25
|
+
var chunkPIXTBL63_js = require('./chunk-PIXTBL63.js');
|
|
26
26
|
require('./chunk-7PWL4V2R.js');
|
|
27
27
|
var chunkAHRGFXV2_js = require('./chunk-AHRGFXV2.js');
|
|
28
28
|
var chunkS54JWSJF_js = require('./chunk-S54JWSJF.js');
|
|
@@ -2320,7 +2320,7 @@ var CHROME = {
|
|
|
2320
2320
|
};
|
|
2321
2321
|
function answerStrings(locale) {
|
|
2322
2322
|
const chrome = CHROME[locale] ?? EN;
|
|
2323
|
-
const explore =
|
|
2323
|
+
const explore = chunkR742FS5E_js.exploreStrings(locale);
|
|
2324
2324
|
return {
|
|
2325
2325
|
...chrome,
|
|
2326
2326
|
answerTable: explore.answerTable,
|
|
@@ -2509,8 +2509,8 @@ var ECOSYSTEM_SITES = chunkSK5UGG6A_js.ECOSYSTEM_PRODUCTS.map((product) => ({
|
|
|
2509
2509
|
slug: product.slug,
|
|
2510
2510
|
website: product.websiteUrl
|
|
2511
2511
|
}));
|
|
2512
|
-
var ECOSYSTEM_PRODUCT_SLUGS =
|
|
2513
|
-
var ECOSYSTEM_ORIGINS =
|
|
2512
|
+
var ECOSYSTEM_PRODUCT_SLUGS = chunkR742FS5E_js.productSlugsByOrigin(ECOSYSTEM_SITES);
|
|
2513
|
+
var ECOSYSTEM_ORIGINS = chunkR742FS5E_js.inlineImageOrigins(ECOSYSTEM_SITES);
|
|
2514
2514
|
function DefaultAnswerLink({
|
|
2515
2515
|
href,
|
|
2516
2516
|
className,
|
|
@@ -2604,9 +2604,9 @@ function AnswersPage({
|
|
|
2604
2604
|
const Link = linkComponent ?? DefaultAnswerLink;
|
|
2605
2605
|
const base = normaliseSiteUrl2(siteUrl);
|
|
2606
2606
|
const searchId = react.useId();
|
|
2607
|
-
const activeLocale = react.useMemo(() =>
|
|
2607
|
+
const activeLocale = react.useMemo(() => chunkR742FS5E_js.resolveExploreLocale(locale), [locale]);
|
|
2608
2608
|
const T = react.useMemo(() => answerStrings(activeLocale), [activeLocale]);
|
|
2609
|
-
const rtl =
|
|
2609
|
+
const rtl = chunkR742FS5E_js.isRtlLocale(activeLocale);
|
|
2610
2610
|
const ordered = react.useMemo(() => sortByOrder2(answers), [answers]);
|
|
2611
2611
|
const groups = react.useMemo(
|
|
2612
2612
|
() => groupByTopic(ordered, topics),
|
|
@@ -2970,9 +2970,9 @@ function AnswerDetail({
|
|
|
2970
2970
|
const Link = linkComponent ?? DefaultAnswerLink;
|
|
2971
2971
|
const base = normaliseSiteUrl2(siteUrl);
|
|
2972
2972
|
const headingId = react.useId();
|
|
2973
|
-
const activeLocale = react.useMemo(() =>
|
|
2973
|
+
const activeLocale = react.useMemo(() => chunkR742FS5E_js.resolveExploreLocale(locale), [locale]);
|
|
2974
2974
|
const T = react.useMemo(() => answerStrings(activeLocale), [activeLocale]);
|
|
2975
|
-
const rtl =
|
|
2975
|
+
const rtl = chunkR742FS5E_js.isRtlLocale(activeLocale);
|
|
2976
2976
|
const dateLabel = react.useMemo(
|
|
2977
2977
|
() => formatAnswerDate(answer.answeredAt, activeLocale),
|
|
2978
2978
|
[answer.answeredAt, activeLocale]
|
|
@@ -3002,7 +3002,7 @@ function AnswerDetail({
|
|
|
3002
3002
|
[answer.sources]
|
|
3003
3003
|
);
|
|
3004
3004
|
const answerImageOrigins = react.useMemo(
|
|
3005
|
-
() =>
|
|
3005
|
+
() => chunkR742FS5E_js.inlineImageOrigins([
|
|
3006
3006
|
{ website: base },
|
|
3007
3007
|
...sources.map((source) => ({ website: source.url })),
|
|
3008
3008
|
...(imageOrigins ?? []).map((origin) => ({ website: origin }))
|
|
@@ -3015,7 +3015,7 @@ function AnswerDetail({
|
|
|
3015
3015
|
);
|
|
3016
3016
|
const canonical = absoluteUrl2(base, answerPath(answer.slug));
|
|
3017
3017
|
const answerText = react.useMemo(
|
|
3018
|
-
() =>
|
|
3018
|
+
() => chunkR742FS5E_js.answerSpeechText(answer.answer),
|
|
3019
3019
|
[answer.answer]
|
|
3020
3020
|
);
|
|
3021
3021
|
const structuredData = react.useMemo(
|
|
@@ -3100,7 +3100,7 @@ function AnswerDetail({
|
|
|
3100
3100
|
}
|
|
3101
3101
|
),
|
|
3102
3102
|
/* @__PURE__ */ jsxRuntime.jsx(chunk3LFFY7AZ_js.ProseStyles, {}),
|
|
3103
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3103
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkR742FS5E_js.ExploreAnswerStyles, {}),
|
|
3104
3104
|
/* @__PURE__ */ jsxRuntime.jsx("header", { className: "border-b border-border bg-muted/30", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-4xl px-4 pb-10 pt-8 sm:px-6 lg:px-8", children: [
|
|
3105
3105
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxRuntime.jsxs("ol", { className: "flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground", children: [
|
|
3106
3106
|
/* @__PURE__ */ jsxRuntime.jsxs("li", { className: "inline-flex items-center gap-1.5", children: [
|
|
@@ -3170,7 +3170,7 @@ function AnswerDetail({
|
|
|
3170
3170
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-labelledby": `${headingId}-answer`, children: [
|
|
3171
3171
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { id: `${headingId}-answer`, className: SECTION_HEADING2, children: T.answerHeading }),
|
|
3172
3172
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-answers": "body", ...ENGLISH_TEXT, dir: "ltr", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3173
|
-
|
|
3173
|
+
chunkR742FS5E_js.ExploreAnswerBody,
|
|
3174
3174
|
{
|
|
3175
3175
|
strings: T,
|
|
3176
3176
|
imageOrigins: answerImageOrigins,
|
|
@@ -3342,20 +3342,20 @@ function ExploreAvatarLive({
|
|
|
3342
3342
|
onContinueInChat,
|
|
3343
3343
|
loadView = loadAvatarLiveView
|
|
3344
3344
|
}) {
|
|
3345
|
-
const T =
|
|
3345
|
+
const T = chunkR742FS5E_js.exploreStrings(locale);
|
|
3346
3346
|
const config = chunkJXLSTVBK_js.useWebSDKConfig();
|
|
3347
|
-
const conversation = react.useContext(
|
|
3348
|
-
const base =
|
|
3347
|
+
const conversation = react.useContext(chunkR742FS5E_js.ExploreConversationContext);
|
|
3348
|
+
const base = chunkOIQHIGGU_js.avatarApiBase(config.gatewayUrl);
|
|
3349
3349
|
const headers = react.useMemo(
|
|
3350
3350
|
() => chunkJXLSTVBK_js.cfAccessHeaders(config.gatewayUrl, config.cfAccess),
|
|
3351
3351
|
[config.gatewayUrl, config.cfAccess]
|
|
3352
3352
|
);
|
|
3353
|
-
const complete =
|
|
3354
|
-
const off = !complete || base === null || conversation === null || conversation.isSharedView || !
|
|
3353
|
+
const complete = chunkOIQHIGGU_js.liveConfigComplete(live);
|
|
3354
|
+
const off = !complete || base === null || conversation === null || conversation.isSharedView || !chunkOIQHIGGU_js.isAvatarLiveLocaleReviewed(locale);
|
|
3355
3355
|
react.useEffect(() => {
|
|
3356
3356
|
if (!complete) {
|
|
3357
3357
|
console.warn(
|
|
3358
|
-
"[WebSDK] ExplorePanel: avatar.live needs site, load, turnstileSiteKey and
|
|
3358
|
+
"[WebSDK] ExplorePanel: avatar.live needs site, load and manifestVersion, and turnstileSiteKey and allowTestSiteKey of a valid shape when set; the live avatar stays off."
|
|
3359
3359
|
);
|
|
3360
3360
|
}
|
|
3361
3361
|
}, [complete]);
|
|
@@ -3638,13 +3638,13 @@ function ExplorePanel({
|
|
|
3638
3638
|
returnFocusRef,
|
|
3639
3639
|
className
|
|
3640
3640
|
}) {
|
|
3641
|
-
const resolvedLocale =
|
|
3642
|
-
const T = react.useMemo(() =>
|
|
3643
|
-
const rtl =
|
|
3644
|
-
const catalogProducts = react.useContext(
|
|
3645
|
-
const pinnedSlug =
|
|
3641
|
+
const resolvedLocale = chunkR742FS5E_js.resolveExploreLocale(locale);
|
|
3642
|
+
const T = react.useMemo(() => chunkR742FS5E_js.exploreStrings(resolvedLocale), [resolvedLocale]);
|
|
3643
|
+
const rtl = chunkR742FS5E_js.isRtlLocale(resolvedLocale);
|
|
3644
|
+
const catalogProducts = react.useContext(chunkR742FS5E_js.ExploreCatalogProductsContext);
|
|
3645
|
+
const pinnedSlug = chunkR742FS5E_js.pinnedProductSlug(scope, productSlug);
|
|
3646
3646
|
const pinnedName = react.useMemo(
|
|
3647
|
-
() => pinnedSlug === null ? null :
|
|
3647
|
+
() => pinnedSlug === null ? null : chunkR742FS5E_js.productNameFor(
|
|
3648
3648
|
catalogProducts ?? chunkSK5UGG6A_js.ECOSYSTEM_PRODUCTS,
|
|
3649
3649
|
pinnedSlug,
|
|
3650
3650
|
productName
|
|
@@ -4110,7 +4110,7 @@ function ExplorePanel({
|
|
|
4110
4110
|
view === "avatar" && "invisible"
|
|
4111
4111
|
),
|
|
4112
4112
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4113
|
-
|
|
4113
|
+
chunkR742FS5E_js.ExplorePage,
|
|
4114
4114
|
{
|
|
4115
4115
|
presentation: "panel",
|
|
4116
4116
|
active: open && view === "chat",
|
|
@@ -4157,6 +4157,170 @@ function ExplorePanel({
|
|
|
4157
4157
|
}
|
|
4158
4158
|
);
|
|
4159
4159
|
}
|
|
4160
|
+
var reportedMissingProvider = false;
|
|
4161
|
+
var mountedDocks = [];
|
|
4162
|
+
var dockListeners = /* @__PURE__ */ new Set();
|
|
4163
|
+
function activeDock() {
|
|
4164
|
+
return mountedDocks[0] ?? null;
|
|
4165
|
+
}
|
|
4166
|
+
function announceActiveDock() {
|
|
4167
|
+
for (const listener of dockListeners) listener();
|
|
4168
|
+
}
|
|
4169
|
+
var useBrowserLayoutEffect = typeof window === "undefined" ? react.useEffect : react.useLayoutEffect;
|
|
4170
|
+
var SITE_ASSISTANT_DOCK_MORE_THAN_ONE = "[WebSDK] More than one SiteAssistantDock is mounted: only the first renders, the others render nothing. Render one, in the layout every route shares.";
|
|
4171
|
+
function useIsActiveDock() {
|
|
4172
|
+
const id = react.useId();
|
|
4173
|
+
const [active, setActive] = react.useState(activeDock);
|
|
4174
|
+
useBrowserLayoutEffect(() => {
|
|
4175
|
+
const listener = () => setActive(activeDock());
|
|
4176
|
+
dockListeners.add(listener);
|
|
4177
|
+
mountedDocks.push(id);
|
|
4178
|
+
if (mountedDocks.length > 1 && chunkR742FS5E_js.isDevelopmentBuild()) {
|
|
4179
|
+
console.error(SITE_ASSISTANT_DOCK_MORE_THAN_ONE);
|
|
4180
|
+
}
|
|
4181
|
+
announceActiveDock();
|
|
4182
|
+
return () => {
|
|
4183
|
+
dockListeners.delete(listener);
|
|
4184
|
+
const at = mountedDocks.indexOf(id);
|
|
4185
|
+
if (at !== -1) mountedDocks.splice(at, 1);
|
|
4186
|
+
announceActiveDock();
|
|
4187
|
+
};
|
|
4188
|
+
}, [id]);
|
|
4189
|
+
return active === null || active === id;
|
|
4190
|
+
}
|
|
4191
|
+
var SITE_ASSISTANT_DOCK_NEEDS_PROVIDER = "[WebSDK] SiteAssistantDock must be rendered under an ExploreChatProvider (inside the router, around the routes). Without one the panel cannot share the /explore conversation, and the live avatar cannot run.";
|
|
4192
|
+
function SiteAssistantDock(props) {
|
|
4193
|
+
const start = react.useContext(chunkR742FS5E_js.ExploreConversationStartContext);
|
|
4194
|
+
const active = useIsActiveDock();
|
|
4195
|
+
if (start === null) {
|
|
4196
|
+
if (chunkR742FS5E_js.isDevelopmentBuild())
|
|
4197
|
+
throw new Error(SITE_ASSISTANT_DOCK_NEEDS_PROVIDER);
|
|
4198
|
+
return active ? /* @__PURE__ */ jsxRuntime.jsx(DockWithoutProvider, { ...props }) : null;
|
|
4199
|
+
}
|
|
4200
|
+
if (!active) return null;
|
|
4201
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Dock, { ...props, start });
|
|
4202
|
+
}
|
|
4203
|
+
function DockWithoutProvider({
|
|
4204
|
+
className,
|
|
4205
|
+
currentPath,
|
|
4206
|
+
explorePath = "/explore",
|
|
4207
|
+
label,
|
|
4208
|
+
onNavigate,
|
|
4209
|
+
bottomOffset
|
|
4210
|
+
}) {
|
|
4211
|
+
react.useEffect(() => {
|
|
4212
|
+
if (reportedMissingProvider) return;
|
|
4213
|
+
reportedMissingProvider = true;
|
|
4214
|
+
console.error(SITE_ASSISTANT_DOCK_NEEDS_PROVIDER);
|
|
4215
|
+
}, []);
|
|
4216
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4217
|
+
chunkPIXTBL63_js.ExploreCta,
|
|
4218
|
+
{
|
|
4219
|
+
variant: "floating",
|
|
4220
|
+
href: explorePath,
|
|
4221
|
+
label,
|
|
4222
|
+
currentPath,
|
|
4223
|
+
onNavigate,
|
|
4224
|
+
bottomOffset,
|
|
4225
|
+
className
|
|
4226
|
+
}
|
|
4227
|
+
);
|
|
4228
|
+
}
|
|
4229
|
+
function Dock({
|
|
4230
|
+
start,
|
|
4231
|
+
productSlug,
|
|
4232
|
+
scope,
|
|
4233
|
+
productName,
|
|
4234
|
+
examplePrompts,
|
|
4235
|
+
locale,
|
|
4236
|
+
avatar,
|
|
4237
|
+
onNavigate,
|
|
4238
|
+
bottomOffset,
|
|
4239
|
+
className,
|
|
4240
|
+
panelClassName,
|
|
4241
|
+
currentPath,
|
|
4242
|
+
explorePath = "/explore",
|
|
4243
|
+
label,
|
|
4244
|
+
id = "boff-explore-panel",
|
|
4245
|
+
zIndex
|
|
4246
|
+
}) {
|
|
4247
|
+
const observedPath = chunkPIXTBL63_js.useCurrentPath(currentPath);
|
|
4248
|
+
const path = currentPath ?? observedPath;
|
|
4249
|
+
const onExplore = path !== null && chunk5GMTBOO6_js.normalizeRoutePath(path) === chunk5GMTBOO6_js.normalizeRoutePath(explorePath);
|
|
4250
|
+
const [open, setOpen] = react.useState(false);
|
|
4251
|
+
const launcherRef = react.useRef(null);
|
|
4252
|
+
const changeOpen = react.useCallback(
|
|
4253
|
+
(next) => {
|
|
4254
|
+
if (next) start();
|
|
4255
|
+
setOpen(next);
|
|
4256
|
+
},
|
|
4257
|
+
[start]
|
|
4258
|
+
);
|
|
4259
|
+
const openPanel = react.useCallback(() => changeOpen(true), [changeOpen]);
|
|
4260
|
+
const showing = open && !onExplore;
|
|
4261
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4262
|
+
onExplore ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
4263
|
+
chunkPIXTBL63_js.ExploreCta,
|
|
4264
|
+
{
|
|
4265
|
+
ref: launcherRef,
|
|
4266
|
+
variant: "floating",
|
|
4267
|
+
href: explorePath,
|
|
4268
|
+
label,
|
|
4269
|
+
currentPath: path ?? void 0,
|
|
4270
|
+
onNavigate: openPanel,
|
|
4271
|
+
expanded: showing,
|
|
4272
|
+
controls: id,
|
|
4273
|
+
bottomOffset,
|
|
4274
|
+
className
|
|
4275
|
+
}
|
|
4276
|
+
),
|
|
4277
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4278
|
+
ExplorePanel,
|
|
4279
|
+
{
|
|
4280
|
+
id,
|
|
4281
|
+
open: showing,
|
|
4282
|
+
onOpenChange: changeOpen,
|
|
4283
|
+
productSlug,
|
|
4284
|
+
scope,
|
|
4285
|
+
productName,
|
|
4286
|
+
examplePrompts,
|
|
4287
|
+
locale,
|
|
4288
|
+
onNavigate,
|
|
4289
|
+
explorePath,
|
|
4290
|
+
avatar,
|
|
4291
|
+
bottomOffset,
|
|
4292
|
+
zIndex,
|
|
4293
|
+
returnFocusRef: launcherRef,
|
|
4294
|
+
className: panelClassName
|
|
4295
|
+
}
|
|
4296
|
+
)
|
|
4297
|
+
] });
|
|
4298
|
+
}
|
|
4299
|
+
|
|
4300
|
+
// src/components/website-avatar-live.ts
|
|
4301
|
+
var ALPHA_TEST_SITE_KEY = "1x00000000000000000000AA";
|
|
4302
|
+
function websiteAvatarLive({
|
|
4303
|
+
deployEnv,
|
|
4304
|
+
siteKey,
|
|
4305
|
+
site,
|
|
4306
|
+
manifestVersion,
|
|
4307
|
+
load,
|
|
4308
|
+
enabled
|
|
4309
|
+
}) {
|
|
4310
|
+
if (enabled === false) return void 0;
|
|
4311
|
+
const alpha = typeof deployEnv === "string" && deployEnv.trim().toLowerCase() === "alpha";
|
|
4312
|
+
const live = {
|
|
4313
|
+
site,
|
|
4314
|
+
load,
|
|
4315
|
+
manifestVersion,
|
|
4316
|
+
allowTestSiteKey: alpha
|
|
4317
|
+
};
|
|
4318
|
+
const key = typeof siteKey === "string" ? siteKey.trim() : "";
|
|
4319
|
+
if (key === "") return live;
|
|
4320
|
+
const accepted = alpha ? key === ALPHA_TEST_SITE_KEY || chunkOIQHIGGU_js.isRealTurnstileSiteKey(key) : chunkOIQHIGGU_js.isRealTurnstileSiteKey(key);
|
|
4321
|
+
if (!accepted) return void 0;
|
|
4322
|
+
return { ...live, turnstileSiteKey: key };
|
|
4323
|
+
}
|
|
4160
4324
|
|
|
4161
4325
|
Object.defineProperty(exports, "DEFAULT_COMPARISON_MAX_AGE_DAYS", {
|
|
4162
4326
|
enumerable: true,
|
|
@@ -4364,63 +4528,63 @@ Object.defineProperty(exports, "detectElectronPlatform", {
|
|
|
4364
4528
|
});
|
|
4365
4529
|
Object.defineProperty(exports, "EXPLORE_LOCALES", {
|
|
4366
4530
|
enumerable: true,
|
|
4367
|
-
get: function () { return
|
|
4531
|
+
get: function () { return chunkR742FS5E_js.EXPLORE_LOCALES; }
|
|
4368
4532
|
});
|
|
4369
4533
|
Object.defineProperty(exports, "EXPLORE_PREFILL_MAX_LENGTH", {
|
|
4370
4534
|
enumerable: true,
|
|
4371
|
-
get: function () { return
|
|
4535
|
+
get: function () { return chunkR742FS5E_js.EXPLORE_PREFILL_MAX_LENGTH; }
|
|
4372
4536
|
});
|
|
4373
4537
|
Object.defineProperty(exports, "ExploreAnswerBody", {
|
|
4374
4538
|
enumerable: true,
|
|
4375
|
-
get: function () { return
|
|
4539
|
+
get: function () { return chunkR742FS5E_js.ExploreAnswerBody; }
|
|
4376
4540
|
});
|
|
4377
4541
|
Object.defineProperty(exports, "ExploreAnswerStyles", {
|
|
4378
4542
|
enumerable: true,
|
|
4379
|
-
get: function () { return
|
|
4543
|
+
get: function () { return chunkR742FS5E_js.ExploreAnswerStyles; }
|
|
4380
4544
|
});
|
|
4381
4545
|
Object.defineProperty(exports, "ExploreChatProvider", {
|
|
4382
4546
|
enumerable: true,
|
|
4383
|
-
get: function () { return
|
|
4547
|
+
get: function () { return chunkR742FS5E_js.ExploreChatProvider; }
|
|
4384
4548
|
});
|
|
4385
4549
|
Object.defineProperty(exports, "ExplorePage", {
|
|
4386
4550
|
enumerable: true,
|
|
4387
|
-
get: function () { return
|
|
4551
|
+
get: function () { return chunkR742FS5E_js.ExplorePage; }
|
|
4388
4552
|
});
|
|
4389
4553
|
Object.defineProperty(exports, "answerPlainText", {
|
|
4390
4554
|
enumerable: true,
|
|
4391
|
-
get: function () { return
|
|
4555
|
+
get: function () { return chunkR742FS5E_js.answerPlainText; }
|
|
4392
4556
|
});
|
|
4393
4557
|
Object.defineProperty(exports, "answerSpeechText", {
|
|
4394
4558
|
enumerable: true,
|
|
4395
|
-
get: function () { return
|
|
4559
|
+
get: function () { return chunkR742FS5E_js.answerSpeechText; }
|
|
4396
4560
|
});
|
|
4397
4561
|
Object.defineProperty(exports, "exploreQuestionHref", {
|
|
4398
4562
|
enumerable: true,
|
|
4399
|
-
get: function () { return
|
|
4563
|
+
get: function () { return chunkR742FS5E_js.exploreQuestionHref; }
|
|
4400
4564
|
});
|
|
4401
4565
|
Object.defineProperty(exports, "inlineImageOrigins", {
|
|
4402
4566
|
enumerable: true,
|
|
4403
|
-
get: function () { return
|
|
4567
|
+
get: function () { return chunkR742FS5E_js.inlineImageOrigins; }
|
|
4404
4568
|
});
|
|
4405
4569
|
Object.defineProperty(exports, "isInlineImageAllowed", {
|
|
4406
4570
|
enumerable: true,
|
|
4407
|
-
get: function () { return
|
|
4571
|
+
get: function () { return chunkR742FS5E_js.isInlineImageAllowed; }
|
|
4408
4572
|
});
|
|
4409
4573
|
Object.defineProperty(exports, "isInlineVideoAllowed", {
|
|
4410
4574
|
enumerable: true,
|
|
4411
|
-
get: function () { return
|
|
4575
|
+
get: function () { return chunkR742FS5E_js.isInlineVideoAllowed; }
|
|
4412
4576
|
});
|
|
4413
4577
|
Object.defineProperty(exports, "productSlugsByOrigin", {
|
|
4414
4578
|
enumerable: true,
|
|
4415
|
-
get: function () { return
|
|
4579
|
+
get: function () { return chunkR742FS5E_js.productSlugsByOrigin; }
|
|
4416
4580
|
});
|
|
4417
4581
|
Object.defineProperty(exports, "speechLocaleOf", {
|
|
4418
4582
|
enumerable: true,
|
|
4419
|
-
get: function () { return
|
|
4583
|
+
get: function () { return chunkR742FS5E_js.speechLocaleOf; }
|
|
4420
4584
|
});
|
|
4421
4585
|
Object.defineProperty(exports, "useExploreConversation", {
|
|
4422
4586
|
enumerable: true,
|
|
4423
|
-
get: function () { return
|
|
4587
|
+
get: function () { return chunkR742FS5E_js.useExploreConversation; }
|
|
4424
4588
|
});
|
|
4425
4589
|
Object.defineProperty(exports, "DEFAULT_EXPLORE_EXAMPLE_PROMPTS", {
|
|
4426
4590
|
enumerable: true,
|
|
@@ -4500,7 +4664,7 @@ Object.defineProperty(exports, "Markdown", {
|
|
|
4500
4664
|
});
|
|
4501
4665
|
Object.defineProperty(exports, "ExploreCta", {
|
|
4502
4666
|
enumerable: true,
|
|
4503
|
-
get: function () { return
|
|
4667
|
+
get: function () { return chunkPIXTBL63_js.ExploreCta; }
|
|
4504
4668
|
});
|
|
4505
4669
|
Object.defineProperty(exports, "ContactPage", {
|
|
4506
4670
|
enumerable: true,
|
|
@@ -4682,6 +4846,7 @@ exports.ConceptsPage = ConceptsPage;
|
|
|
4682
4846
|
exports.DOMAINS_URL = DOMAINS_URL;
|
|
4683
4847
|
exports.ExplorePanel = ExplorePanel;
|
|
4684
4848
|
exports.PUBLISHED_ANSWER_FIELDS = PUBLISHED_ANSWER_FIELDS;
|
|
4849
|
+
exports.SiteAssistantDock = SiteAssistantDock;
|
|
4685
4850
|
exports.answerPath = answerPath;
|
|
4686
4851
|
exports.answerSourceHost = answerSourceHost;
|
|
4687
4852
|
exports.answerStrings = answerStrings;
|
|
@@ -4691,5 +4856,6 @@ exports.getAnswerBySlug = getAnswerBySlug;
|
|
|
4691
4856
|
exports.getConceptBySlug = getConceptBySlug;
|
|
4692
4857
|
exports.isPublishedSourceUrl = isPublishedSourceUrl;
|
|
4693
4858
|
exports.isValidUrl = isValidUrl;
|
|
4859
|
+
exports.websiteAvatarLive = websiteAvatarLive;
|
|
4694
4860
|
//# sourceMappingURL=index.js.map
|
|
4695
4861
|
//# sourceMappingURL=index.js.map
|