@rizom/site-rizom-ai 0.2.0-alpha.251 → 0.2.0-alpha.253
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/index.js +627 -580
- package/dist/index.js.map +27 -24
- package/package.json +1 -1
- package/src/brain.tsx +3 -29
- package/src/public-ask.tsx +38 -0
- package/src/rizom/runtime/boot/brain-chat.boot.js +0 -14
- package/src/routes.ts +12 -0
- package/src/site.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -19031,343 +19031,13 @@ function date4(params) {
|
|
|
19031
19031
|
|
|
19032
19032
|
// ../../node_modules/zod/v4/classic/external.js
|
|
19033
19033
|
config(en_default());
|
|
19034
|
-
// ../../shared/contracts/src/
|
|
19035
|
-
var
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
});
|
|
19040
|
-
// ../../shared/contracts/src/agent-action.ts
|
|
19041
|
-
var agentEventActionSchema = exports_external.object({
|
|
19042
|
-
type: exports_external.literal("event"),
|
|
19043
|
-
event: exports_external.string().min(1),
|
|
19044
|
-
fromState: exports_external.string().min(1).optional()
|
|
19045
|
-
});
|
|
19046
|
-
var agentActionRequestSchema = exports_external.object({
|
|
19047
|
-
conversationId: exports_external.string().min(1),
|
|
19048
|
-
interfaceType: exports_external.string().min(1),
|
|
19049
|
-
channelId: exports_external.string().min(1).optional(),
|
|
19050
|
-
channelName: exports_external.string().min(1),
|
|
19051
|
-
userPermissionLevel: exports_external.enum(["admin", "trusted", "public"]),
|
|
19052
|
-
isAnchor: exports_external.boolean(),
|
|
19053
|
-
action: agentEventActionSchema
|
|
19054
|
-
});
|
|
19055
|
-
// ../../shared/contracts/src/agent-response.ts
|
|
19056
|
-
var PendingConfirmationSchema = exports_external.object({
|
|
19057
|
-
id: exports_external.string(),
|
|
19058
|
-
toolCallId: exports_external.string().optional(),
|
|
19059
|
-
toolName: exports_external.string(),
|
|
19060
|
-
summary: exports_external.string(),
|
|
19061
|
-
completionSummary: exports_external.string().optional(),
|
|
19062
|
-
preview: exports_external.string().optional(),
|
|
19063
|
-
args: exports_external.unknown()
|
|
19064
|
-
});
|
|
19065
|
-
var ToolApprovalCardStateSchema = exports_external.enum([
|
|
19066
|
-
"approval-requested",
|
|
19067
|
-
"approval-responded",
|
|
19068
|
-
"output-available",
|
|
19069
|
-
"output-denied",
|
|
19070
|
-
"output-error"
|
|
19071
|
-
]);
|
|
19072
|
-
var ToolApprovalCardSchema = exports_external.object({
|
|
19073
|
-
kind: exports_external.literal("tool-approval"),
|
|
19074
|
-
id: exports_external.string(),
|
|
19075
|
-
toolCallId: exports_external.string().optional(),
|
|
19076
|
-
toolName: exports_external.string(),
|
|
19077
|
-
input: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
|
|
19078
|
-
summary: exports_external.string(),
|
|
19079
|
-
completionSummary: exports_external.string().optional(),
|
|
19080
|
-
preview: exports_external.string().optional(),
|
|
19081
|
-
state: ToolApprovalCardStateSchema,
|
|
19082
|
-
output: exports_external.unknown().optional(),
|
|
19083
|
-
error: exports_external.string().optional()
|
|
19084
|
-
});
|
|
19085
|
-
var AttachmentCardSourceSchema = exports_external.object({
|
|
19086
|
-
entityType: exports_external.string().optional(),
|
|
19087
|
-
entityId: exports_external.string().optional(),
|
|
19088
|
-
attachmentType: exports_external.string().optional()
|
|
19089
|
-
});
|
|
19090
|
-
var AttachmentCardDataSchema = exports_external.object({
|
|
19091
|
-
mediaType: exports_external.string().min(1),
|
|
19092
|
-
url: exports_external.string().min(1),
|
|
19093
|
-
downloadUrl: exports_external.string().min(1).optional(),
|
|
19094
|
-
previewUrl: exports_external.string().min(1).optional(),
|
|
19095
|
-
filename: exports_external.string().min(1).optional(),
|
|
19096
|
-
sizeBytes: exports_external.number().nonnegative().optional(),
|
|
19097
|
-
source: AttachmentCardSourceSchema.optional()
|
|
19098
|
-
});
|
|
19099
|
-
var AttachmentCardSchema = exports_external.object({
|
|
19100
|
-
kind: exports_external.literal("attachment"),
|
|
19101
|
-
id: exports_external.string(),
|
|
19102
|
-
jobId: exports_external.string().optional(),
|
|
19103
|
-
title: exports_external.string(),
|
|
19104
|
-
description: exports_external.string().optional(),
|
|
19105
|
-
attachment: AttachmentCardDataSchema
|
|
19106
|
-
});
|
|
19107
|
-
var SourceCitationSchema = exports_external.object({
|
|
19108
|
-
id: exports_external.string().min(1),
|
|
19109
|
-
title: exports_external.string().min(1).optional(),
|
|
19110
|
-
source: exports_external.string().min(1),
|
|
19111
|
-
url: exports_external.string().min(1).optional(),
|
|
19112
|
-
entityType: exports_external.string().min(1).optional(),
|
|
19113
|
-
entityId: exports_external.string().min(1).optional(),
|
|
19114
|
-
excerpt: exports_external.string().min(1).optional(),
|
|
19115
|
-
provenance: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
19116
|
-
});
|
|
19117
|
-
var SourcesCardSchema = exports_external.object({
|
|
19118
|
-
kind: exports_external.literal("sources"),
|
|
19119
|
-
id: exports_external.string().min(1),
|
|
19120
|
-
title: exports_external.string().min(1).optional(),
|
|
19121
|
-
sources: exports_external.array(SourceCitationSchema).min(1)
|
|
19122
|
-
});
|
|
19123
|
-
var PromptChatActionSchema = exports_external.object({
|
|
19124
|
-
type: exports_external.literal("prompt"),
|
|
19125
|
-
id: exports_external.string().min(1),
|
|
19126
|
-
label: exports_external.string().min(1),
|
|
19127
|
-
prompt: exports_external.string().min(1),
|
|
19128
|
-
description: exports_external.string().min(1).optional()
|
|
19129
|
-
});
|
|
19130
|
-
var EventChatActionSchema = exports_external.object({
|
|
19131
|
-
type: exports_external.literal("event"),
|
|
19132
|
-
id: exports_external.string().min(1),
|
|
19133
|
-
label: exports_external.string().min(1),
|
|
19134
|
-
event: exports_external.string().min(1),
|
|
19135
|
-
fromState: exports_external.string().min(1).optional(),
|
|
19136
|
-
description: exports_external.string().min(1).optional()
|
|
19137
|
-
});
|
|
19138
|
-
var ChatActionSchema = exports_external.discriminatedUnion("type", [
|
|
19139
|
-
PromptChatActionSchema,
|
|
19140
|
-
EventChatActionSchema
|
|
19141
|
-
]);
|
|
19142
|
-
var ActionsCardSchema = exports_external.object({
|
|
19143
|
-
kind: exports_external.literal("actions"),
|
|
19144
|
-
id: exports_external.string().min(1),
|
|
19145
|
-
title: exports_external.string().min(1).optional(),
|
|
19146
|
-
defaultOpen: exports_external.boolean().optional(),
|
|
19147
|
-
actions: exports_external.array(ChatActionSchema).min(1)
|
|
19148
|
-
});
|
|
19149
|
-
var StructuredChatCardSchema = exports_external.discriminatedUnion("kind", [
|
|
19150
|
-
ToolApprovalCardSchema,
|
|
19151
|
-
AttachmentCardSchema,
|
|
19152
|
-
SourcesCardSchema,
|
|
19153
|
-
ActionsCardSchema
|
|
19154
|
-
]);
|
|
19155
|
-
var ToolResultDataSchema = exports_external.object({
|
|
19156
|
-
toolName: exports_external.string(),
|
|
19157
|
-
args: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
|
|
19158
|
-
jobId: exports_external.string().optional(),
|
|
19159
|
-
data: exports_external.unknown().optional(),
|
|
19160
|
-
error: exports_external.object({
|
|
19161
|
-
message: exports_external.string(),
|
|
19162
|
-
code: exports_external.string().optional()
|
|
19163
|
-
}).optional()
|
|
19164
|
-
});
|
|
19165
|
-
var AgentResponseSchema = exports_external.object({
|
|
19166
|
-
text: exports_external.string(),
|
|
19167
|
-
toolResults: exports_external.array(ToolResultDataSchema).optional(),
|
|
19168
|
-
cards: exports_external.array(StructuredChatCardSchema).optional(),
|
|
19169
|
-
pendingConfirmations: exports_external.array(PendingConfirmationSchema).optional(),
|
|
19170
|
-
usage: exports_external.object({
|
|
19171
|
-
promptTokens: exports_external.number(),
|
|
19172
|
-
completionTokens: exports_external.number(),
|
|
19173
|
-
totalTokens: exports_external.number()
|
|
19174
|
-
})
|
|
19175
|
-
});
|
|
19176
|
-
// ../../shared/contracts/src/agent-context.ts
|
|
19177
|
-
var agentContextPermissionLevelSchema = exports_external.enum(["admin", "trusted", "public"]);
|
|
19178
|
-
var agentContextRequestSchema = exports_external.object({
|
|
19179
|
-
conversationId: exports_external.string().min(1),
|
|
19180
|
-
message: exports_external.string(),
|
|
19181
|
-
interfaceType: exports_external.string().min(1),
|
|
19182
|
-
channelId: exports_external.string().optional(),
|
|
19183
|
-
channelName: exports_external.string().optional(),
|
|
19184
|
-
userPermissionLevel: agentContextPermissionLevelSchema
|
|
19185
|
-
});
|
|
19186
|
-
var agentContextItemSchema = exports_external.object({
|
|
19187
|
-
id: exports_external.string().min(1),
|
|
19188
|
-
source: exports_external.string().min(1),
|
|
19189
|
-
title: exports_external.string().optional(),
|
|
19190
|
-
content: exports_external.string().min(1),
|
|
19191
|
-
provenance: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
19192
|
-
});
|
|
19193
|
-
var agentContextResponseSchema = exports_external.object({
|
|
19194
|
-
items: exports_external.array(agentContextItemSchema).default([])
|
|
19195
|
-
});
|
|
19196
|
-
// ../../shared/contracts/src/actor-ref.ts
|
|
19197
|
-
var actorRefSchema = exports_external.discriminatedUnion("kind", [
|
|
19198
|
-
exports_external.object({
|
|
19199
|
-
kind: exports_external.literal("user"),
|
|
19200
|
-
userId: exports_external.string().min(1),
|
|
19201
|
-
canonicalId: exports_external.string().min(1).optional()
|
|
19202
|
-
}),
|
|
19203
|
-
exports_external.object({
|
|
19204
|
-
kind: exports_external.literal("external"),
|
|
19205
|
-
externalActorId: exports_external.string().min(1)
|
|
19206
|
-
}),
|
|
19207
|
-
exports_external.object({
|
|
19208
|
-
kind: exports_external.literal("agent"),
|
|
19209
|
-
agentId: exports_external.string().min(1)
|
|
19210
|
-
}),
|
|
19211
|
-
exports_external.object({
|
|
19212
|
-
kind: exports_external.literal("service"),
|
|
19213
|
-
serviceId: exports_external.string().min(1)
|
|
19214
|
-
})
|
|
19215
|
-
]);
|
|
19216
|
-
// ../../shared/contracts/src/auth-principal.ts
|
|
19217
|
-
var authPrincipalResolveRequestSchema = exports_external.object({
|
|
19218
|
-
actor: actorRefSchema
|
|
19219
|
-
});
|
|
19220
|
-
var authPrincipalAttributionSchema = exports_external.object({
|
|
19221
|
-
userId: exports_external.string().min(1),
|
|
19222
|
-
personId: exports_external.string().min(1),
|
|
19223
|
-
canonicalId: exports_external.string().min(1).optional(),
|
|
19224
|
-
displayName: exports_external.string().min(1),
|
|
19225
|
-
permissionLevel: exports_external.enum(["admin", "trusted", "public"])
|
|
19226
|
-
});
|
|
19227
|
-
var authPrincipalResolveResponseSchema = exports_external.object({
|
|
19228
|
-
principal: authPrincipalAttributionSchema.nullable()
|
|
19229
|
-
});
|
|
19230
|
-
// ../../shared/contracts/src/inbound-email.ts
|
|
19231
|
-
var inboundEmailAddressSchema = exports_external.strictObject({
|
|
19232
|
-
name: exports_external.string().min(1).optional(),
|
|
19233
|
-
address: exports_external.email()
|
|
19234
|
-
});
|
|
19235
|
-
var inboundEmailSenderSchema = exports_external.strictObject({
|
|
19236
|
-
personId: exports_external.string().min(1).max(200),
|
|
19237
|
-
displayName: exports_external.string().trim().min(1).max(200),
|
|
19238
|
-
permissionLevel: exports_external.enum(["admin", "trusted", "public"])
|
|
19239
|
-
});
|
|
19240
|
-
var inboundEmailSchema = exports_external.strictObject({
|
|
19241
|
-
messageId: exports_external.string().min(1),
|
|
19242
|
-
sourceRef: exports_external.string().min(1),
|
|
19243
|
-
threadId: exports_external.string().min(1).optional(),
|
|
19244
|
-
from: inboundEmailAddressSchema,
|
|
19245
|
-
replyTo: inboundEmailAddressSchema.optional(),
|
|
19246
|
-
to: exports_external.array(inboundEmailAddressSchema),
|
|
19247
|
-
subject: exports_external.string(),
|
|
19248
|
-
receivedAt: exports_external.iso.datetime(),
|
|
19249
|
-
text: exports_external.string(),
|
|
19250
|
-
html: exports_external.string().min(1).optional(),
|
|
19251
|
-
headers: exports_external.strictObject({
|
|
19252
|
-
listUnsubscribe: exports_external.string().min(1).optional(),
|
|
19253
|
-
autoSubmitted: exports_external.string().min(1).optional(),
|
|
19254
|
-
precedence: exports_external.string().min(1).optional(),
|
|
19255
|
-
inReplyTo: exports_external.string().min(1).optional(),
|
|
19256
|
-
references: exports_external.array(exports_external.string().min(1)).optional()
|
|
19257
|
-
}),
|
|
19258
|
-
sender: inboundEmailSenderSchema.optional()
|
|
19259
|
-
});
|
|
19260
|
-
// ../../shared/contracts/src/email-source-read.ts
|
|
19261
|
-
var emailSourceReadActorSchema = exports_external.strictObject({
|
|
19262
|
-
permissionLevel: exports_external.enum(["admin", "trusted", "public"])
|
|
19263
|
-
});
|
|
19264
|
-
var abortSignalSchema = exports_external.custom((value) => typeof AbortSignal !== "undefined" && value instanceof AbortSignal);
|
|
19265
|
-
var emailSourceReadRequestSchema = exports_external.strictObject({
|
|
19266
|
-
sourceRef: exports_external.string().regex(/^imap:[a-f0-9]{64}$/),
|
|
19267
|
-
actor: emailSourceReadActorSchema,
|
|
19268
|
-
signal: abortSignalSchema.optional()
|
|
19269
|
-
});
|
|
19270
|
-
var emailSourceAddressSchema = exports_external.strictObject({
|
|
19271
|
-
name: exports_external.string().trim().min(1).max(300).optional(),
|
|
19272
|
-
address: exports_external.email().max(320)
|
|
19273
|
-
});
|
|
19274
|
-
var emailSourceMessageSchema = exports_external.strictObject({
|
|
19275
|
-
messageId: exports_external.string().trim().min(1).max(2000),
|
|
19276
|
-
from: emailSourceAddressSchema,
|
|
19277
|
-
replyTo: emailSourceAddressSchema.optional(),
|
|
19278
|
-
to: exports_external.array(emailSourceAddressSchema).max(100),
|
|
19279
|
-
subject: exports_external.string().max(1000),
|
|
19280
|
-
receivedAt: exports_external.iso.datetime(),
|
|
19281
|
-
text: exports_external.string().max(1e5),
|
|
19282
|
-
inReplyTo: exports_external.string().trim().min(1).max(2000).optional(),
|
|
19283
|
-
references: exports_external.array(exports_external.string().trim().min(1).max(2000)).max(100),
|
|
19284
|
-
truncated: exports_external.boolean()
|
|
19285
|
-
});
|
|
19286
|
-
var emailSourceReadResponseSchema = exports_external.discriminatedUnion("kind", [
|
|
19287
|
-
exports_external.strictObject({
|
|
19288
|
-
kind: exports_external.literal("available"),
|
|
19289
|
-
message: emailSourceMessageSchema
|
|
19290
|
-
}),
|
|
19291
|
-
exports_external.strictObject({ kind: exports_external.literal("unavailable") })
|
|
19292
|
-
]);
|
|
19293
|
-
// ../../shared/contracts/src/db-config.ts
|
|
19294
|
-
var dbConfigSchema = exports_external.object({
|
|
19295
|
-
url: exports_external.string(),
|
|
19296
|
-
authToken: exports_external.string().optional()
|
|
19297
|
-
});
|
|
19298
|
-
// ../../shared/contracts/src/generation-result.ts
|
|
19299
|
-
var generationResultSchema = exports_external.object({
|
|
19300
|
-
success: exports_external.boolean(),
|
|
19301
|
-
entityId: exports_external.string().optional(),
|
|
19302
|
-
error: exports_external.string().optional()
|
|
19303
|
-
});
|
|
19304
|
-
// ../../shared/utils/src/error.ts
|
|
19305
|
-
function getErrorMessage(error51, fallback) {
|
|
19306
|
-
if (error51 instanceof Error)
|
|
19307
|
-
return error51.message;
|
|
19308
|
-
return fallback ?? String(error51);
|
|
19309
|
-
}
|
|
19310
|
-
// ../../shared/contracts/src/json.ts
|
|
19311
|
-
var jsonValueSchema = exports_external.lazy(() => exports_external.union([
|
|
19312
|
-
exports_external.null(),
|
|
19313
|
-
exports_external.boolean(),
|
|
19314
|
-
exports_external.number().finite().refine((value) => !Number.isInteger(value) || Number.isSafeInteger(value), { message: "integer exceeds the JSON-safe range" }),
|
|
19315
|
-
exports_external.string(),
|
|
19316
|
-
exports_external.array(jsonValueSchema),
|
|
19317
|
-
exports_external.record(exports_external.string(), jsonValueSchema)
|
|
19318
|
-
]));
|
|
19319
|
-
var jsonObjectSchema = exports_external.record(exports_external.string(), jsonValueSchema);
|
|
19320
|
-
// ../../shared/contracts/src/message-role.ts
|
|
19321
|
-
var messageRoleSchema = exports_external.enum([
|
|
19322
|
-
"user",
|
|
19323
|
-
"assistant"
|
|
19324
|
-
]);
|
|
19325
|
-
// ../../shared/contracts/src/operation-provenance.ts
|
|
19326
|
-
var ProvenanceEntityReferenceSchema = exports_external.object({
|
|
19327
|
-
entityType: exports_external.string().min(1),
|
|
19328
|
-
entityId: exports_external.string().min(1),
|
|
19329
|
-
contentHash: exports_external.string().min(1).optional()
|
|
19330
|
-
});
|
|
19331
|
-
var OperationProvenanceSchema = exports_external.object({
|
|
19332
|
-
rootJobId: exports_external.string().min(1),
|
|
19333
|
-
causationId: exports_external.string().min(1),
|
|
19334
|
-
projectionId: exports_external.string().min(1).optional(),
|
|
19335
|
-
projectionLineage: exports_external.array(exports_external.string().min(1)),
|
|
19336
|
-
sourceEntity: ProvenanceEntityReferenceSchema.optional(),
|
|
19337
|
-
derivationDepth: exports_external.number().int().nonnegative()
|
|
19338
|
-
}).superRefine((provenance, context) => {
|
|
19339
|
-
if (provenance.derivationDepth !== provenance.projectionLineage.length) {
|
|
19340
|
-
context.addIssue({
|
|
19341
|
-
code: "custom",
|
|
19342
|
-
path: ["derivationDepth"],
|
|
19343
|
-
message: "Derivation depth must equal projection lineage length"
|
|
19344
|
-
});
|
|
19345
|
-
}
|
|
19346
|
-
const currentProjection = provenance.projectionLineage.at(-1);
|
|
19347
|
-
if (provenance.projectionId !== currentProjection) {
|
|
19348
|
-
context.addIssue({
|
|
19349
|
-
code: "custom",
|
|
19350
|
-
path: ["projectionId"],
|
|
19351
|
-
message: "Current projection must equal the final projection lineage entry"
|
|
19352
|
-
});
|
|
19353
|
-
}
|
|
19354
|
-
});
|
|
19355
|
-
// ../../shared/contracts/src/message-channels.ts
|
|
19356
|
-
var SITE_BUILDER_CHANNELS = {
|
|
19357
|
-
routesList: "site-builder:routes:list",
|
|
19358
|
-
routeRegister: "plugin:site-builder:route:register",
|
|
19359
|
-
routeUnregister: "plugin:site-builder:route:unregister",
|
|
19360
|
-
routeList: "plugin:site-builder:route:list",
|
|
19361
|
-
routeGet: "plugin:site-builder:route:get",
|
|
19362
|
-
headScriptRegister: "plugin:site-builder:head-script:register",
|
|
19363
|
-
slotRegister: "plugin:site-builder:slot:register"
|
|
19364
|
-
};
|
|
19365
|
-
// ../../shared/contracts/src/projection-wave.ts
|
|
19366
|
-
var ProjectionWaveReadySchema = exports_external.strictObject({
|
|
19367
|
-
waveId: exports_external.string().trim().min(1),
|
|
19368
|
-
sourceTypes: exports_external.array(exports_external.string().trim().min(1)),
|
|
19369
|
-
changedTargetTypes: exports_external.array(exports_external.string().trim().min(1))
|
|
19034
|
+
// ../../shared/contracts/src/ask-content.ts
|
|
19035
|
+
var askContentSchema = exports_external.object({
|
|
19036
|
+
title: exports_external.string().trim().min(1).max(500).optional(),
|
|
19037
|
+
introduction: exports_external.string().trim().min(1).max(4000).optional(),
|
|
19038
|
+
topics: exports_external.array(exports_external.string().trim().min(1).max(500)).max(20).optional()
|
|
19370
19039
|
});
|
|
19040
|
+
var askContentFrontmatterSchema = askContentSchema.omit({ introduction: true });
|
|
19371
19041
|
// ../../shared/utils/src/markdown.ts
|
|
19372
19042
|
var import_gray_matter = __toESM(require_gray_matter(), 1);
|
|
19373
19043
|
|
|
@@ -28570,34 +28240,387 @@ function assertUnfrozen(name, frozen) {
|
|
|
28570
28240
|
throw new Error("Cannot call `" + name + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.");
|
|
28571
28241
|
}
|
|
28572
28242
|
}
|
|
28573
|
-
function assertNode(node2) {
|
|
28574
|
-
if (!isPlainObject2(node2) || typeof node2.type !== "string") {
|
|
28575
|
-
throw new TypeError("Expected node, got `" + node2 + "`");
|
|
28243
|
+
function assertNode(node2) {
|
|
28244
|
+
if (!isPlainObject2(node2) || typeof node2.type !== "string") {
|
|
28245
|
+
throw new TypeError("Expected node, got `" + node2 + "`");
|
|
28246
|
+
}
|
|
28247
|
+
}
|
|
28248
|
+
function assertDone(name, asyncName, complete) {
|
|
28249
|
+
if (!complete) {
|
|
28250
|
+
throw new Error("`" + name + "` finished async. Use `" + asyncName + "` instead");
|
|
28251
|
+
}
|
|
28252
|
+
}
|
|
28253
|
+
function vfile(value) {
|
|
28254
|
+
return looksLikeAVFile(value) ? value : new VFile(value);
|
|
28255
|
+
}
|
|
28256
|
+
function looksLikeAVFile(value) {
|
|
28257
|
+
return Boolean(value && typeof value === "object" && "message" in value && "messages" in value);
|
|
28258
|
+
}
|
|
28259
|
+
function looksLikeAValue(value) {
|
|
28260
|
+
return typeof value === "string" || isUint8Array2(value);
|
|
28261
|
+
}
|
|
28262
|
+
function isUint8Array2(value) {
|
|
28263
|
+
return Boolean(value && typeof value === "object" && "byteLength" in value && "byteOffset" in value);
|
|
28264
|
+
}
|
|
28265
|
+
// ../../node_modules/remark/index.js
|
|
28266
|
+
var remark = unified().use(remarkParse).use(remarkStringify).freeze();
|
|
28267
|
+
|
|
28268
|
+
// ../../shared/utils/src/markdown.ts
|
|
28269
|
+
var remarkProcessor = remark();
|
|
28270
|
+
// ../../shared/contracts/src/entity-read.ts
|
|
28271
|
+
var entityReadBudgetSchema = exports_external.strictObject({
|
|
28272
|
+
rows: exports_external.number().int().positive(),
|
|
28273
|
+
rowBytes: exports_external.number().int().positive(),
|
|
28274
|
+
queryCharacters: exports_external.number().int().positive()
|
|
28275
|
+
});
|
|
28276
|
+
// ../../shared/contracts/src/agent-action.ts
|
|
28277
|
+
var agentEventActionSchema = exports_external.object({
|
|
28278
|
+
type: exports_external.literal("event"),
|
|
28279
|
+
event: exports_external.string().min(1),
|
|
28280
|
+
fromState: exports_external.string().min(1).optional()
|
|
28281
|
+
});
|
|
28282
|
+
var agentActionRequestSchema = exports_external.object({
|
|
28283
|
+
conversationId: exports_external.string().min(1),
|
|
28284
|
+
interfaceType: exports_external.string().min(1),
|
|
28285
|
+
channelId: exports_external.string().min(1).optional(),
|
|
28286
|
+
channelName: exports_external.string().min(1),
|
|
28287
|
+
userPermissionLevel: exports_external.enum(["admin", "trusted", "public"]),
|
|
28288
|
+
isAnchor: exports_external.boolean(),
|
|
28289
|
+
action: agentEventActionSchema
|
|
28290
|
+
});
|
|
28291
|
+
// ../../shared/contracts/src/agent-response.ts
|
|
28292
|
+
var PendingConfirmationSchema = exports_external.object({
|
|
28293
|
+
id: exports_external.string(),
|
|
28294
|
+
toolCallId: exports_external.string().optional(),
|
|
28295
|
+
toolName: exports_external.string(),
|
|
28296
|
+
summary: exports_external.string(),
|
|
28297
|
+
completionSummary: exports_external.string().optional(),
|
|
28298
|
+
preview: exports_external.string().optional(),
|
|
28299
|
+
args: exports_external.unknown()
|
|
28300
|
+
});
|
|
28301
|
+
var ToolApprovalCardStateSchema = exports_external.enum([
|
|
28302
|
+
"approval-requested",
|
|
28303
|
+
"approval-responded",
|
|
28304
|
+
"output-available",
|
|
28305
|
+
"output-denied",
|
|
28306
|
+
"output-error"
|
|
28307
|
+
]);
|
|
28308
|
+
var ToolApprovalCardSchema = exports_external.object({
|
|
28309
|
+
kind: exports_external.literal("tool-approval"),
|
|
28310
|
+
id: exports_external.string(),
|
|
28311
|
+
toolCallId: exports_external.string().optional(),
|
|
28312
|
+
toolName: exports_external.string(),
|
|
28313
|
+
input: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
|
|
28314
|
+
summary: exports_external.string(),
|
|
28315
|
+
completionSummary: exports_external.string().optional(),
|
|
28316
|
+
preview: exports_external.string().optional(),
|
|
28317
|
+
state: ToolApprovalCardStateSchema,
|
|
28318
|
+
output: exports_external.unknown().optional(),
|
|
28319
|
+
error: exports_external.string().optional()
|
|
28320
|
+
});
|
|
28321
|
+
var AttachmentCardSourceSchema = exports_external.object({
|
|
28322
|
+
entityType: exports_external.string().optional(),
|
|
28323
|
+
entityId: exports_external.string().optional(),
|
|
28324
|
+
attachmentType: exports_external.string().optional()
|
|
28325
|
+
});
|
|
28326
|
+
var AttachmentCardDataSchema = exports_external.object({
|
|
28327
|
+
mediaType: exports_external.string().min(1),
|
|
28328
|
+
url: exports_external.string().min(1),
|
|
28329
|
+
downloadUrl: exports_external.string().min(1).optional(),
|
|
28330
|
+
previewUrl: exports_external.string().min(1).optional(),
|
|
28331
|
+
filename: exports_external.string().min(1).optional(),
|
|
28332
|
+
sizeBytes: exports_external.number().nonnegative().optional(),
|
|
28333
|
+
source: AttachmentCardSourceSchema.optional()
|
|
28334
|
+
});
|
|
28335
|
+
var AttachmentCardSchema = exports_external.object({
|
|
28336
|
+
kind: exports_external.literal("attachment"),
|
|
28337
|
+
id: exports_external.string(),
|
|
28338
|
+
jobId: exports_external.string().optional(),
|
|
28339
|
+
title: exports_external.string(),
|
|
28340
|
+
description: exports_external.string().optional(),
|
|
28341
|
+
attachment: AttachmentCardDataSchema
|
|
28342
|
+
});
|
|
28343
|
+
var SourceCitationSchema = exports_external.object({
|
|
28344
|
+
id: exports_external.string().min(1),
|
|
28345
|
+
title: exports_external.string().min(1).optional(),
|
|
28346
|
+
source: exports_external.string().min(1),
|
|
28347
|
+
url: exports_external.string().min(1).optional(),
|
|
28348
|
+
entityType: exports_external.string().min(1).optional(),
|
|
28349
|
+
entityId: exports_external.string().min(1).optional(),
|
|
28350
|
+
excerpt: exports_external.string().min(1).optional(),
|
|
28351
|
+
provenance: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
28352
|
+
});
|
|
28353
|
+
var SourcesCardSchema = exports_external.object({
|
|
28354
|
+
kind: exports_external.literal("sources"),
|
|
28355
|
+
id: exports_external.string().min(1),
|
|
28356
|
+
title: exports_external.string().min(1).optional(),
|
|
28357
|
+
sources: exports_external.array(SourceCitationSchema).min(1)
|
|
28358
|
+
});
|
|
28359
|
+
var PromptChatActionSchema = exports_external.object({
|
|
28360
|
+
type: exports_external.literal("prompt"),
|
|
28361
|
+
id: exports_external.string().min(1),
|
|
28362
|
+
label: exports_external.string().min(1),
|
|
28363
|
+
prompt: exports_external.string().min(1),
|
|
28364
|
+
description: exports_external.string().min(1).optional()
|
|
28365
|
+
});
|
|
28366
|
+
var EventChatActionSchema = exports_external.object({
|
|
28367
|
+
type: exports_external.literal("event"),
|
|
28368
|
+
id: exports_external.string().min(1),
|
|
28369
|
+
label: exports_external.string().min(1),
|
|
28370
|
+
event: exports_external.string().min(1),
|
|
28371
|
+
fromState: exports_external.string().min(1).optional(),
|
|
28372
|
+
description: exports_external.string().min(1).optional()
|
|
28373
|
+
});
|
|
28374
|
+
var ChatActionSchema = exports_external.discriminatedUnion("type", [
|
|
28375
|
+
PromptChatActionSchema,
|
|
28376
|
+
EventChatActionSchema
|
|
28377
|
+
]);
|
|
28378
|
+
var ActionsCardSchema = exports_external.object({
|
|
28379
|
+
kind: exports_external.literal("actions"),
|
|
28380
|
+
id: exports_external.string().min(1),
|
|
28381
|
+
title: exports_external.string().min(1).optional(),
|
|
28382
|
+
defaultOpen: exports_external.boolean().optional(),
|
|
28383
|
+
actions: exports_external.array(ChatActionSchema).min(1)
|
|
28384
|
+
});
|
|
28385
|
+
var StructuredChatCardSchema = exports_external.discriminatedUnion("kind", [
|
|
28386
|
+
ToolApprovalCardSchema,
|
|
28387
|
+
AttachmentCardSchema,
|
|
28388
|
+
SourcesCardSchema,
|
|
28389
|
+
ActionsCardSchema
|
|
28390
|
+
]);
|
|
28391
|
+
var ToolResultDataSchema = exports_external.object({
|
|
28392
|
+
toolName: exports_external.string(),
|
|
28393
|
+
args: exports_external.record(exports_external.string(), exports_external.unknown()).optional(),
|
|
28394
|
+
jobId: exports_external.string().optional(),
|
|
28395
|
+
data: exports_external.unknown().optional(),
|
|
28396
|
+
error: exports_external.object({
|
|
28397
|
+
message: exports_external.string(),
|
|
28398
|
+
code: exports_external.string().optional()
|
|
28399
|
+
}).optional()
|
|
28400
|
+
});
|
|
28401
|
+
var AgentResponseSchema = exports_external.object({
|
|
28402
|
+
text: exports_external.string(),
|
|
28403
|
+
error: exports_external.string().optional(),
|
|
28404
|
+
toolResults: exports_external.array(ToolResultDataSchema).optional(),
|
|
28405
|
+
cards: exports_external.array(StructuredChatCardSchema).optional(),
|
|
28406
|
+
pendingConfirmations: exports_external.array(PendingConfirmationSchema).optional(),
|
|
28407
|
+
usage: exports_external.object({
|
|
28408
|
+
promptTokens: exports_external.number(),
|
|
28409
|
+
completionTokens: exports_external.number(),
|
|
28410
|
+
totalTokens: exports_external.number()
|
|
28411
|
+
})
|
|
28412
|
+
});
|
|
28413
|
+
// ../../shared/contracts/src/agent-context.ts
|
|
28414
|
+
var agentContextPermissionLevelSchema = exports_external.enum(["admin", "trusted", "public"]);
|
|
28415
|
+
var agentContextRequestSchema = exports_external.object({
|
|
28416
|
+
conversationId: exports_external.string().min(1),
|
|
28417
|
+
message: exports_external.string(),
|
|
28418
|
+
interfaceType: exports_external.string().min(1),
|
|
28419
|
+
channelId: exports_external.string().optional(),
|
|
28420
|
+
channelName: exports_external.string().optional(),
|
|
28421
|
+
userPermissionLevel: agentContextPermissionLevelSchema
|
|
28422
|
+
});
|
|
28423
|
+
var agentContextItemSchema = exports_external.object({
|
|
28424
|
+
id: exports_external.string().min(1),
|
|
28425
|
+
source: exports_external.string().min(1),
|
|
28426
|
+
title: exports_external.string().optional(),
|
|
28427
|
+
content: exports_external.string().min(1),
|
|
28428
|
+
provenance: exports_external.record(exports_external.string(), exports_external.unknown()).optional()
|
|
28429
|
+
});
|
|
28430
|
+
var agentContextResponseSchema = exports_external.object({
|
|
28431
|
+
items: exports_external.array(agentContextItemSchema).default([])
|
|
28432
|
+
});
|
|
28433
|
+
// ../../shared/contracts/src/actor-ref.ts
|
|
28434
|
+
var actorRefSchema = exports_external.discriminatedUnion("kind", [
|
|
28435
|
+
exports_external.object({
|
|
28436
|
+
kind: exports_external.literal("user"),
|
|
28437
|
+
userId: exports_external.string().min(1),
|
|
28438
|
+
canonicalId: exports_external.string().min(1).optional()
|
|
28439
|
+
}),
|
|
28440
|
+
exports_external.object({
|
|
28441
|
+
kind: exports_external.literal("external"),
|
|
28442
|
+
externalActorId: exports_external.string().min(1)
|
|
28443
|
+
}),
|
|
28444
|
+
exports_external.object({
|
|
28445
|
+
kind: exports_external.literal("agent"),
|
|
28446
|
+
agentId: exports_external.string().min(1)
|
|
28447
|
+
}),
|
|
28448
|
+
exports_external.object({
|
|
28449
|
+
kind: exports_external.literal("service"),
|
|
28450
|
+
serviceId: exports_external.string().min(1)
|
|
28451
|
+
})
|
|
28452
|
+
]);
|
|
28453
|
+
// ../../shared/contracts/src/auth-principal.ts
|
|
28454
|
+
var authPrincipalResolveRequestSchema = exports_external.object({
|
|
28455
|
+
actor: actorRefSchema
|
|
28456
|
+
});
|
|
28457
|
+
var authPrincipalAttributionSchema = exports_external.object({
|
|
28458
|
+
userId: exports_external.string().min(1),
|
|
28459
|
+
personId: exports_external.string().min(1),
|
|
28460
|
+
canonicalId: exports_external.string().min(1).optional(),
|
|
28461
|
+
displayName: exports_external.string().min(1),
|
|
28462
|
+
permissionLevel: exports_external.enum(["admin", "trusted", "public"])
|
|
28463
|
+
});
|
|
28464
|
+
var authPrincipalResolveResponseSchema = exports_external.object({
|
|
28465
|
+
principal: authPrincipalAttributionSchema.nullable()
|
|
28466
|
+
});
|
|
28467
|
+
// ../../shared/contracts/src/inbound-email.ts
|
|
28468
|
+
var inboundEmailAddressSchema = exports_external.strictObject({
|
|
28469
|
+
name: exports_external.string().min(1).optional(),
|
|
28470
|
+
address: exports_external.email()
|
|
28471
|
+
});
|
|
28472
|
+
var inboundEmailSenderSchema = exports_external.strictObject({
|
|
28473
|
+
personId: exports_external.string().min(1).max(200),
|
|
28474
|
+
displayName: exports_external.string().trim().min(1).max(200),
|
|
28475
|
+
permissionLevel: exports_external.enum(["admin", "trusted", "public"])
|
|
28476
|
+
});
|
|
28477
|
+
var inboundEmailSchema = exports_external.strictObject({
|
|
28478
|
+
messageId: exports_external.string().min(1),
|
|
28479
|
+
sourceRef: exports_external.string().min(1),
|
|
28480
|
+
threadId: exports_external.string().min(1).optional(),
|
|
28481
|
+
from: inboundEmailAddressSchema,
|
|
28482
|
+
replyTo: inboundEmailAddressSchema.optional(),
|
|
28483
|
+
to: exports_external.array(inboundEmailAddressSchema),
|
|
28484
|
+
subject: exports_external.string(),
|
|
28485
|
+
receivedAt: exports_external.iso.datetime(),
|
|
28486
|
+
text: exports_external.string(),
|
|
28487
|
+
html: exports_external.string().min(1).optional(),
|
|
28488
|
+
headers: exports_external.strictObject({
|
|
28489
|
+
listUnsubscribe: exports_external.string().min(1).optional(),
|
|
28490
|
+
autoSubmitted: exports_external.string().min(1).optional(),
|
|
28491
|
+
precedence: exports_external.string().min(1).optional(),
|
|
28492
|
+
inReplyTo: exports_external.string().min(1).optional(),
|
|
28493
|
+
references: exports_external.array(exports_external.string().min(1)).optional()
|
|
28494
|
+
}),
|
|
28495
|
+
sender: inboundEmailSenderSchema.optional()
|
|
28496
|
+
});
|
|
28497
|
+
// ../../shared/contracts/src/email-source-read.ts
|
|
28498
|
+
var emailSourceReadActorSchema = exports_external.strictObject({
|
|
28499
|
+
permissionLevel: exports_external.enum(["admin", "trusted", "public"])
|
|
28500
|
+
});
|
|
28501
|
+
var abortSignalSchema = exports_external.custom((value) => typeof AbortSignal !== "undefined" && value instanceof AbortSignal);
|
|
28502
|
+
var emailSourceReadRequestSchema = exports_external.strictObject({
|
|
28503
|
+
sourceRef: exports_external.string().regex(/^imap:[a-f0-9]{64}$/),
|
|
28504
|
+
actor: emailSourceReadActorSchema,
|
|
28505
|
+
signal: abortSignalSchema.optional()
|
|
28506
|
+
});
|
|
28507
|
+
var emailSourceAddressSchema = exports_external.strictObject({
|
|
28508
|
+
name: exports_external.string().trim().min(1).max(300).optional(),
|
|
28509
|
+
address: exports_external.email().max(320)
|
|
28510
|
+
});
|
|
28511
|
+
var emailSourceMessageSchema = exports_external.strictObject({
|
|
28512
|
+
messageId: exports_external.string().trim().min(1).max(2000),
|
|
28513
|
+
from: emailSourceAddressSchema,
|
|
28514
|
+
replyTo: emailSourceAddressSchema.optional(),
|
|
28515
|
+
to: exports_external.array(emailSourceAddressSchema).max(100),
|
|
28516
|
+
subject: exports_external.string().max(1000),
|
|
28517
|
+
receivedAt: exports_external.iso.datetime(),
|
|
28518
|
+
text: exports_external.string().max(1e5),
|
|
28519
|
+
inReplyTo: exports_external.string().trim().min(1).max(2000).optional(),
|
|
28520
|
+
references: exports_external.array(exports_external.string().trim().min(1).max(2000)).max(100),
|
|
28521
|
+
truncated: exports_external.boolean()
|
|
28522
|
+
});
|
|
28523
|
+
var emailSourceReadResponseSchema = exports_external.discriminatedUnion("kind", [
|
|
28524
|
+
exports_external.strictObject({
|
|
28525
|
+
kind: exports_external.literal("available"),
|
|
28526
|
+
message: emailSourceMessageSchema
|
|
28527
|
+
}),
|
|
28528
|
+
exports_external.strictObject({ kind: exports_external.literal("unavailable") })
|
|
28529
|
+
]);
|
|
28530
|
+
// ../../shared/contracts/src/db-config.ts
|
|
28531
|
+
var dbConfigSchema = exports_external.object({
|
|
28532
|
+
url: exports_external.string(),
|
|
28533
|
+
authToken: exports_external.string().optional()
|
|
28534
|
+
});
|
|
28535
|
+
// ../../shared/contracts/src/generation-result.ts
|
|
28536
|
+
var generationResultSchema = exports_external.object({
|
|
28537
|
+
success: exports_external.boolean(),
|
|
28538
|
+
entityId: exports_external.string().optional(),
|
|
28539
|
+
error: exports_external.string().optional()
|
|
28540
|
+
});
|
|
28541
|
+
// ../../shared/utils/src/error.ts
|
|
28542
|
+
function getErrorMessage(error51, fallback) {
|
|
28543
|
+
if (error51 instanceof Error)
|
|
28544
|
+
return error51.message;
|
|
28545
|
+
return fallback ?? String(error51);
|
|
28546
|
+
}
|
|
28547
|
+
// ../../shared/contracts/src/json.ts
|
|
28548
|
+
var jsonValueSchema = exports_external.lazy(() => exports_external.union([
|
|
28549
|
+
exports_external.null(),
|
|
28550
|
+
exports_external.boolean(),
|
|
28551
|
+
exports_external.number().finite().refine((value) => !Number.isInteger(value) || Number.isSafeInteger(value), { message: "integer exceeds the JSON-safe range" }),
|
|
28552
|
+
exports_external.string(),
|
|
28553
|
+
exports_external.array(jsonValueSchema),
|
|
28554
|
+
exports_external.record(exports_external.string(), jsonValueSchema)
|
|
28555
|
+
]));
|
|
28556
|
+
var jsonObjectSchema = exports_external.record(exports_external.string(), jsonValueSchema);
|
|
28557
|
+
// ../../shared/contracts/src/message-role.ts
|
|
28558
|
+
var messageRoleSchema = exports_external.enum([
|
|
28559
|
+
"user",
|
|
28560
|
+
"assistant"
|
|
28561
|
+
]);
|
|
28562
|
+
// ../../shared/contracts/src/operation-provenance.ts
|
|
28563
|
+
var ProvenanceEntityReferenceSchema = exports_external.object({
|
|
28564
|
+
entityType: exports_external.string().min(1),
|
|
28565
|
+
entityId: exports_external.string().min(1),
|
|
28566
|
+
contentHash: exports_external.string().min(1).optional()
|
|
28567
|
+
});
|
|
28568
|
+
var OperationProvenanceSchema = exports_external.object({
|
|
28569
|
+
rootJobId: exports_external.string().min(1),
|
|
28570
|
+
causationId: exports_external.string().min(1),
|
|
28571
|
+
projectionId: exports_external.string().min(1).optional(),
|
|
28572
|
+
projectionLineage: exports_external.array(exports_external.string().min(1)),
|
|
28573
|
+
sourceEntity: ProvenanceEntityReferenceSchema.optional(),
|
|
28574
|
+
derivationDepth: exports_external.number().int().nonnegative()
|
|
28575
|
+
}).superRefine((provenance, context) => {
|
|
28576
|
+
if (provenance.derivationDepth !== provenance.projectionLineage.length) {
|
|
28577
|
+
context.addIssue({
|
|
28578
|
+
code: "custom",
|
|
28579
|
+
path: ["derivationDepth"],
|
|
28580
|
+
message: "Derivation depth must equal projection lineage length"
|
|
28581
|
+
});
|
|
28576
28582
|
}
|
|
28577
|
-
|
|
28578
|
-
|
|
28579
|
-
|
|
28580
|
-
|
|
28583
|
+
const currentProjection = provenance.projectionLineage.at(-1);
|
|
28584
|
+
if (provenance.projectionId !== currentProjection) {
|
|
28585
|
+
context.addIssue({
|
|
28586
|
+
code: "custom",
|
|
28587
|
+
path: ["projectionId"],
|
|
28588
|
+
message: "Current projection must equal the final projection lineage entry"
|
|
28589
|
+
});
|
|
28581
28590
|
}
|
|
28582
|
-
}
|
|
28583
|
-
|
|
28584
|
-
|
|
28585
|
-
|
|
28586
|
-
|
|
28587
|
-
|
|
28588
|
-
|
|
28589
|
-
|
|
28590
|
-
|
|
28591
|
-
|
|
28592
|
-
|
|
28593
|
-
|
|
28594
|
-
|
|
28595
|
-
|
|
28596
|
-
|
|
28597
|
-
|
|
28598
|
-
|
|
28599
|
-
|
|
28600
|
-
|
|
28591
|
+
});
|
|
28592
|
+
// ../../shared/contracts/src/message-channels.ts
|
|
28593
|
+
var SITE_BUILDER_CHANNELS = {
|
|
28594
|
+
routesList: "site-builder:routes:list",
|
|
28595
|
+
routeRegister: "plugin:site-builder:route:register",
|
|
28596
|
+
routeUnregister: "plugin:site-builder:route:unregister",
|
|
28597
|
+
routeList: "plugin:site-builder:route:list",
|
|
28598
|
+
routeGet: "plugin:site-builder:route:get",
|
|
28599
|
+
headScriptRegister: "plugin:site-builder:head-script:register",
|
|
28600
|
+
slotRegister: "plugin:site-builder:slot:register"
|
|
28601
|
+
};
|
|
28602
|
+
// ../../shared/contracts/src/directory-sync-path.ts
|
|
28603
|
+
var directorySyncPathRequestSchema = exports_external.object({
|
|
28604
|
+
entityType: exports_external.string().min(1),
|
|
28605
|
+
entityId: exports_external.string(),
|
|
28606
|
+
metadata: exports_external.record(exports_external.string(), exports_external.unknown()).default({}),
|
|
28607
|
+
content: exports_external.string().default("")
|
|
28608
|
+
});
|
|
28609
|
+
var directorySyncPathResponseSchema = exports_external.object({
|
|
28610
|
+
relativePath: exports_external.string(),
|
|
28611
|
+
leaf: exports_external.object({
|
|
28612
|
+
start: exports_external.number().int().nonnegative(),
|
|
28613
|
+
end: exports_external.number().int().nonnegative()
|
|
28614
|
+
}).nullable(),
|
|
28615
|
+
owner: exports_external.object({ entityType: exports_external.string(), id: exports_external.string() }).optional(),
|
|
28616
|
+
writable: exports_external.boolean().optional()
|
|
28617
|
+
});
|
|
28618
|
+
// ../../shared/contracts/src/projection-wave.ts
|
|
28619
|
+
var ProjectionWaveReadySchema = exports_external.strictObject({
|
|
28620
|
+
waveId: exports_external.string().trim().min(1),
|
|
28621
|
+
sourceTypes: exports_external.array(exports_external.string().trim().min(1)),
|
|
28622
|
+
changedTargetTypes: exports_external.array(exports_external.string().trim().min(1))
|
|
28623
|
+
});
|
|
28601
28624
|
// ../../shared/contracts/src/style-guide.ts
|
|
28602
28625
|
var styleGuideMessagingSchema = exports_external.object({
|
|
28603
28626
|
audiences: exports_external.array(exports_external.string()).optional(),
|
|
@@ -29550,9 +29573,6 @@ var brain_chat_boot_default = `/* Enhance the existing hero box. Never send on l
|
|
|
29550
29573
|
sheet.remove();
|
|
29551
29574
|
sendRequested = false;
|
|
29552
29575
|
input.readOnly = false;
|
|
29553
|
-
body.querySelectorAll("[data-chat-topic]").forEach(function (button) {
|
|
29554
|
-
button.disabled = false;
|
|
29555
|
-
});
|
|
29556
29576
|
status.textContent =
|
|
29557
29577
|
"Public chat is unavailable here. Your draft is unchanged; no question has been sent.";
|
|
29558
29578
|
} finally {
|
|
@@ -29564,9 +29584,6 @@ var brain_chat_boot_default = `/* Enhance the existing hero box. Never send on l
|
|
|
29564
29584
|
if (input.value.trim()) {
|
|
29565
29585
|
sendRequested = true;
|
|
29566
29586
|
input.readOnly = true;
|
|
29567
|
-
body.querySelectorAll("[data-chat-topic]").forEach(function (button) {
|
|
29568
|
-
button.disabled = true;
|
|
29569
|
-
});
|
|
29570
29587
|
}
|
|
29571
29588
|
void open();
|
|
29572
29589
|
}
|
|
@@ -29583,14 +29600,6 @@ var brain_chat_boot_default = `/* Enhance the existing hero box. Never send on l
|
|
|
29583
29600
|
send.disabled = false;
|
|
29584
29601
|
send.addEventListener("click", requestSend);
|
|
29585
29602
|
}
|
|
29586
|
-
body.querySelectorAll("[data-chat-topic]").forEach(function (button) {
|
|
29587
|
-
button.disabled = false;
|
|
29588
|
-
button.addEventListener("click", function () {
|
|
29589
|
-
if (mounted) return;
|
|
29590
|
-
input.value = button.textContent || "";
|
|
29591
|
-
void open();
|
|
29592
|
-
});
|
|
29593
|
-
});
|
|
29594
29603
|
})();
|
|
29595
29604
|
`;
|
|
29596
29605
|
|
|
@@ -38647,13 +38656,6 @@ var heroSchema = exports_external.object({
|
|
|
38647
38656
|
provenance: exports_external.string(),
|
|
38648
38657
|
primaryCta: ctaSchema,
|
|
38649
38658
|
secondaryCta: ctaSchema,
|
|
38650
|
-
chat: exports_external.object({
|
|
38651
|
-
title: exports_external.string(),
|
|
38652
|
-
inputHint: exports_external.string(),
|
|
38653
|
-
notice: exports_external.string(),
|
|
38654
|
-
topicsLabel: exports_external.string(),
|
|
38655
|
-
topics: exports_external.array(exports_external.string()).min(1)
|
|
38656
|
-
}),
|
|
38657
38659
|
navigation: exports_external.array(ctaSchema).length(4)
|
|
38658
38660
|
});
|
|
38659
38661
|
var layersSchema = exports_external.object({
|
|
@@ -38831,30 +38833,13 @@ function Hero(data) {
|
|
|
38831
38833
|
children: [
|
|
38832
38834
|
/* @__PURE__ */ jsx16("div", {
|
|
38833
38835
|
className: "brain-box-static-scroll",
|
|
38834
|
-
children: /* @__PURE__ */
|
|
38836
|
+
children: /* @__PURE__ */ jsx16("div", {
|
|
38835
38837
|
className: "brain-box-welcome",
|
|
38836
|
-
children:
|
|
38837
|
-
|
|
38838
|
-
|
|
38839
|
-
|
|
38840
|
-
|
|
38841
|
-
}),
|
|
38842
|
-
/* @__PURE__ */ jsx16("p", {
|
|
38843
|
-
id: "brain-chat-notice",
|
|
38844
|
-
className: "chat-notice",
|
|
38845
|
-
children: data.chat.notice
|
|
38846
|
-
}),
|
|
38847
|
-
/* @__PURE__ */ jsx16("p", {
|
|
38848
|
-
className: "hints",
|
|
38849
|
-
"data-topics-label": data.chat.topicsLabel,
|
|
38850
|
-
children: data.chat.topics.map((topic, index2) => /* @__PURE__ */ jsx16("button", {
|
|
38851
|
-
type: "button",
|
|
38852
|
-
"data-chat-topic": true,
|
|
38853
|
-
disabled: true,
|
|
38854
|
-
children: topic
|
|
38855
|
-
}, `${index2}:${topic}`))
|
|
38856
|
-
})
|
|
38857
|
-
]
|
|
38838
|
+
children: /* @__PURE__ */ jsx16("h2", {
|
|
38839
|
+
id: "brain-chat-heading",
|
|
38840
|
+
className: "display",
|
|
38841
|
+
children: "Ask"
|
|
38842
|
+
})
|
|
38858
38843
|
})
|
|
38859
38844
|
}),
|
|
38860
38845
|
/* @__PURE__ */ jsxs9("p", {
|
|
@@ -38863,9 +38848,8 @@ function Hero(data) {
|
|
|
38863
38848
|
/* @__PURE__ */ jsx16("textarea", {
|
|
38864
38849
|
rows: 1,
|
|
38865
38850
|
disabled: true,
|
|
38866
|
-
placeholder:
|
|
38867
|
-
"aria-label":
|
|
38868
|
-
"aria-describedby": "brain-chat-notice"
|
|
38851
|
+
placeholder: "Start with a question\u2026",
|
|
38852
|
+
"aria-label": "Your question"
|
|
38869
38853
|
}),
|
|
38870
38854
|
/* @__PURE__ */ jsx16("button", {
|
|
38871
38855
|
className: "send",
|
|
@@ -41863,12 +41847,9 @@ import { jsx as jsx172 } from "react/jsx-runtime";
|
|
|
41863
41847
|
import { jsx as jsx182, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
41864
41848
|
import { jsx as jsx192, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
41865
41849
|
import { jsx as jsx202, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
41866
|
-
import { jsx as jsx21, jsxs as jsxs16, Fragment as Fragment42 } from "react/jsx-runtime";
|
|
41867
|
-
import { jsx as jsx222, jsxs as jsxs17, Fragment as Fragment52 } from "react/jsx-runtime";
|
|
41868
|
-
import { jsx as jsx23, jsxs as jsxs18, Fragment as Fragment62 } from "react/jsx-runtime";
|
|
41869
41850
|
import * as React27 from "react";
|
|
41870
41851
|
import * as React2 from "react";
|
|
41871
|
-
import { jsx as
|
|
41852
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
41872
41853
|
import * as React3 from "react";
|
|
41873
41854
|
import * as React26 from "react";
|
|
41874
41855
|
import * as React5 from "react";
|
|
@@ -41878,13 +41859,13 @@ import * as React22 from "react";
|
|
|
41878
41859
|
import * as React11 from "react";
|
|
41879
41860
|
import * as React9 from "react";
|
|
41880
41861
|
import * as React8 from "react";
|
|
41881
|
-
import { jsx as
|
|
41862
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
41882
41863
|
import * as React10 from "react";
|
|
41883
|
-
import { jsx as
|
|
41864
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
41884
41865
|
import * as React12 from "react";
|
|
41885
|
-
import { jsx as
|
|
41866
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
41886
41867
|
import * as React13 from "react";
|
|
41887
|
-
import { jsx as
|
|
41868
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
41888
41869
|
import * as React23 from "react";
|
|
41889
41870
|
import * as React14 from "react";
|
|
41890
41871
|
import * as React15 from "react";
|
|
@@ -41896,11 +41877,14 @@ import * as React17 from "react";
|
|
|
41896
41877
|
import * as React21 from "react";
|
|
41897
41878
|
import * as React20 from "react";
|
|
41898
41879
|
import * as React19 from "react";
|
|
41899
|
-
import { Fragment as
|
|
41900
|
-
import { jsx as
|
|
41901
|
-
import { jsx as
|
|
41902
|
-
import { Fragment as
|
|
41903
|
-
import { jsx as
|
|
41880
|
+
import { Fragment as Fragment72, jsx as jsx26 } from "react/jsx-runtime";
|
|
41881
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
41882
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
41883
|
+
import { Fragment as Fragment82, useSyncExternalStore } from "react";
|
|
41884
|
+
import { jsx as jsx29, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
41885
|
+
import { jsx as jsx30, jsxs as jsxs17, Fragment as Fragment92 } from "react/jsx-runtime";
|
|
41886
|
+
import { jsx as jsx31, jsxs as jsxs18, Fragment as Fragment102 } from "react/jsx-runtime";
|
|
41887
|
+
import { jsx as jsx322, jsxs as jsxs19, Fragment as Fragment112 } from "react/jsx-runtime";
|
|
41904
41888
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
41905
41889
|
import { jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
41906
41890
|
import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
@@ -42535,11 +42519,11 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
42535
42519
|
BaseContext.displayName = rootComponentName + "Context";
|
|
42536
42520
|
const index2 = defaultContexts.length;
|
|
42537
42521
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
42538
|
-
const Provider = (
|
|
42539
|
-
const { scope, children, ...context } =
|
|
42522
|
+
const Provider = (props212) => {
|
|
42523
|
+
const { scope, children, ...context } = props212;
|
|
42540
42524
|
const Context = scope?.[scopeName]?.[index2] || BaseContext;
|
|
42541
42525
|
const value = React2.useMemo(() => context, Object.values(context));
|
|
42542
|
-
return /* @__PURE__ */
|
|
42526
|
+
return /* @__PURE__ */ jsx21(Context.Provider, { value, children });
|
|
42543
42527
|
};
|
|
42544
42528
|
Provider.displayName = rootComponentName + "Provider";
|
|
42545
42529
|
function useContext22(consumerName, scope, options2 = {}) {
|
|
@@ -42714,8 +42698,8 @@ __export2(exports_dist, {
|
|
|
42714
42698
|
createSlottable: () => createSlottable
|
|
42715
42699
|
});
|
|
42716
42700
|
function createSlot(ownerName) {
|
|
42717
|
-
const Slot2 = React8.forwardRef((
|
|
42718
|
-
let { children, ...slotProps } =
|
|
42701
|
+
const Slot2 = React8.forwardRef((props212, forwardedRef) => {
|
|
42702
|
+
let { children, ...slotProps } = props212;
|
|
42719
42703
|
let slottableElement = null;
|
|
42720
42704
|
let hasSlottable = false;
|
|
42721
42705
|
const newChildren = [];
|
|
@@ -42761,7 +42745,7 @@ function createSlot(ownerName) {
|
|
|
42761
42745
|
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
42762
42746
|
var SLOTTABLE_IDENTIFIER = Symbol.for("radix.slottable");
|
|
42763
42747
|
function createSlottable(ownerName) {
|
|
42764
|
-
const Slottable2 = (
|
|
42748
|
+
const Slottable2 = (props212) => ("child" in props212) ? props212.children(props212.child) : props212.children;
|
|
42765
42749
|
Slottable2.displayName = `${ownerName}.Slottable`;
|
|
42766
42750
|
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
|
42767
42751
|
return Slottable2;
|
|
@@ -42851,13 +42835,13 @@ var NODES = [
|
|
|
42851
42835
|
];
|
|
42852
42836
|
var Primitive = NODES.reduce((primitive, node2) => {
|
|
42853
42837
|
const Slot2 = createSlot(`Primitive.${node2}`);
|
|
42854
|
-
const Node2 = React9.forwardRef((
|
|
42855
|
-
const { asChild, ...primitiveProps } =
|
|
42838
|
+
const Node2 = React9.forwardRef((props212, forwardedRef) => {
|
|
42839
|
+
const { asChild, ...primitiveProps } = props212;
|
|
42856
42840
|
const Comp = asChild ? Slot2 : node2;
|
|
42857
42841
|
if (typeof window !== "undefined") {
|
|
42858
42842
|
window[Symbol.for("radix-ui")] = true;
|
|
42859
42843
|
}
|
|
42860
|
-
return /* @__PURE__ */
|
|
42844
|
+
return /* @__PURE__ */ jsx222(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
42861
42845
|
});
|
|
42862
42846
|
Node2.displayName = `Primitive.${node2}`;
|
|
42863
42847
|
return { ...primitive, [node2]: Node2 };
|
|
@@ -42884,7 +42868,7 @@ var DismissableLayerContext = React11.createContext({
|
|
|
42884
42868
|
branches: /* @__PURE__ */ new Set,
|
|
42885
42869
|
dismissableSurfaces: /* @__PURE__ */ new Set
|
|
42886
42870
|
});
|
|
42887
|
-
var DismissableLayer = React11.forwardRef((
|
|
42871
|
+
var DismissableLayer = React11.forwardRef((props212, forwardedRef) => {
|
|
42888
42872
|
const {
|
|
42889
42873
|
disableOutsidePointerEvents = false,
|
|
42890
42874
|
deferPointerDownOutside = false,
|
|
@@ -42894,7 +42878,7 @@ var DismissableLayer = React11.forwardRef((props242, forwardedRef) => {
|
|
|
42894
42878
|
onInteractOutside,
|
|
42895
42879
|
onDismiss,
|
|
42896
42880
|
...layerProps
|
|
42897
|
-
} =
|
|
42881
|
+
} = props212;
|
|
42898
42882
|
const context = React11.useContext(DismissableLayerContext);
|
|
42899
42883
|
const [node2, setNode] = React11.useState(null);
|
|
42900
42884
|
const ownerDocument = node2?.ownerDocument ?? globalThis?.document;
|
|
@@ -42993,21 +42977,21 @@ var DismissableLayer = React11.forwardRef((props242, forwardedRef) => {
|
|
|
42993
42977
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
42994
42978
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
42995
42979
|
}, []);
|
|
42996
|
-
return /* @__PURE__ */
|
|
42980
|
+
return /* @__PURE__ */ jsx23(Primitive.div, {
|
|
42997
42981
|
...layerProps,
|
|
42998
42982
|
ref: composedRefs,
|
|
42999
42983
|
style: {
|
|
43000
42984
|
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? "auto" : "none" : undefined,
|
|
43001
|
-
...
|
|
42985
|
+
...props212.style
|
|
43002
42986
|
},
|
|
43003
|
-
onFocusCapture: composeEventHandlers(
|
|
43004
|
-
onBlurCapture: composeEventHandlers(
|
|
43005
|
-
onPointerDownCapture: composeEventHandlers(
|
|
42987
|
+
onFocusCapture: composeEventHandlers(props212.onFocusCapture, focusOutside.onFocusCapture),
|
|
42988
|
+
onBlurCapture: composeEventHandlers(props212.onBlurCapture, focusOutside.onBlurCapture),
|
|
42989
|
+
onPointerDownCapture: composeEventHandlers(props212.onPointerDownCapture, pointerDownOutside.onPointerDownCapture)
|
|
43006
42990
|
});
|
|
43007
42991
|
});
|
|
43008
42992
|
DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
|
|
43009
42993
|
var BRANCH_NAME = "DismissableLayerBranch";
|
|
43010
|
-
var DismissableLayerBranch = React11.forwardRef((
|
|
42994
|
+
var DismissableLayerBranch = React11.forwardRef((props212, forwardedRef) => {
|
|
43011
42995
|
const context = React11.useContext(DismissableLayerContext);
|
|
43012
42996
|
const ref = React11.useRef(null);
|
|
43013
42997
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
@@ -43020,7 +43004,7 @@ var DismissableLayerBranch = React11.forwardRef((props242, forwardedRef) => {
|
|
|
43020
43004
|
};
|
|
43021
43005
|
}
|
|
43022
43006
|
}, [context.branches]);
|
|
43023
|
-
return /* @__PURE__ */
|
|
43007
|
+
return /* @__PURE__ */ jsx23(Primitive.div, { ...props212, ref: composedRefs });
|
|
43024
43008
|
});
|
|
43025
43009
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
43026
43010
|
function useDismissableLayerSurface() {
|
|
@@ -43191,14 +43175,14 @@ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
|
43191
43175
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
43192
43176
|
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
43193
43177
|
var FOCUS_SCOPE_NAME = "FocusScope";
|
|
43194
|
-
var FocusScope = React12.forwardRef((
|
|
43178
|
+
var FocusScope = React12.forwardRef((props212, forwardedRef) => {
|
|
43195
43179
|
const {
|
|
43196
43180
|
loop = false,
|
|
43197
43181
|
trapped = false,
|
|
43198
43182
|
onMountAutoFocus: onMountAutoFocusProp,
|
|
43199
43183
|
onUnmountAutoFocus: onUnmountAutoFocusProp,
|
|
43200
43184
|
...scopeProps
|
|
43201
|
-
} =
|
|
43185
|
+
} = props212;
|
|
43202
43186
|
const [container, setContainer] = React12.useState(null);
|
|
43203
43187
|
const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
|
|
43204
43188
|
const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
|
|
@@ -43313,7 +43297,7 @@ var FocusScope = React12.forwardRef((props242, forwardedRef) => {
|
|
|
43313
43297
|
}
|
|
43314
43298
|
}
|
|
43315
43299
|
}, [loop, trapped, focusScope.paused]);
|
|
43316
|
-
return /* @__PURE__ */
|
|
43300
|
+
return /* @__PURE__ */ jsx24(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
43317
43301
|
});
|
|
43318
43302
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
43319
43303
|
function focusFirst(candidates, { select = false } = {}) {
|
|
@@ -43407,12 +43391,12 @@ function removeLinks(items) {
|
|
|
43407
43391
|
}
|
|
43408
43392
|
var ReactDOM2 = __toESM2(require_react_dom(), 1);
|
|
43409
43393
|
var PORTAL_NAME = "Portal";
|
|
43410
|
-
var Portal = React13.forwardRef((
|
|
43411
|
-
const { container: containerProp, ...portalProps } =
|
|
43394
|
+
var Portal = React13.forwardRef((props212, forwardedRef) => {
|
|
43395
|
+
const { container: containerProp, ...portalProps } = props212;
|
|
43412
43396
|
const [mounted, setMounted] = React13.useState(false);
|
|
43413
43397
|
useLayoutEffect22(() => setMounted(true), []);
|
|
43414
43398
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
43415
|
-
return container ? ReactDOM2.createPortal(/* @__PURE__ */
|
|
43399
|
+
return container ? ReactDOM2.createPortal(/* @__PURE__ */ jsx25(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
43416
43400
|
});
|
|
43417
43401
|
Portal.displayName = PORTAL_NAME;
|
|
43418
43402
|
function useStateMachine(initialState, machine) {
|
|
@@ -43421,8 +43405,8 @@ function useStateMachine(initialState, machine) {
|
|
|
43421
43405
|
return nextState ?? state;
|
|
43422
43406
|
}, initialState);
|
|
43423
43407
|
}
|
|
43424
|
-
var Presence = (
|
|
43425
|
-
const { present, children } =
|
|
43408
|
+
var Presence = (props212) => {
|
|
43409
|
+
const { present, children } = props212;
|
|
43426
43410
|
const presence = usePresence(present);
|
|
43427
43411
|
const child = typeof children === "function" ? children({ present: presence.isPresent }) : React23.Children.only(children);
|
|
43428
43412
|
const ref = useStableComposedRefs(presence.ref, getElementRef2(child));
|
|
@@ -43820,14 +43804,14 @@ var effectCar = createSidecarMedium();
|
|
|
43820
43804
|
var nothing = function() {
|
|
43821
43805
|
return;
|
|
43822
43806
|
};
|
|
43823
|
-
var RemoveScroll = React18.forwardRef(function(
|
|
43807
|
+
var RemoveScroll = React18.forwardRef(function(props212, parentRef) {
|
|
43824
43808
|
var ref = React18.useRef(null);
|
|
43825
43809
|
var _a3 = React18.useState({
|
|
43826
43810
|
onScrollCapture: nothing,
|
|
43827
43811
|
onWheelCapture: nothing,
|
|
43828
43812
|
onTouchMoveCapture: nothing
|
|
43829
43813
|
}), callbacks = _a3[0], setCallbacks = _a3[1];
|
|
43830
|
-
var { forwardProps, children, className, removeScrollBar, enabled, shards, sideCar, noRelative, noIsolation, inert, allowPinchZoom, as: _b } =
|
|
43814
|
+
var { forwardProps, children, className, removeScrollBar, enabled, shards, sideCar, noRelative, noIsolation, inert, allowPinchZoom, as: _b } = props212, Container = _b === undefined ? "div" : _b, gapMode = props212.gapMode, rest = __rest(props212, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
|
|
43831
43815
|
var SideCar2 = sideCar;
|
|
43832
43816
|
var containerRef = useMergeRefs([ref, parentRef]);
|
|
43833
43817
|
var containerProps = __assign(__assign({}, rest), callbacks);
|
|
@@ -44151,20 +44135,20 @@ var generateStyle = function(id) {
|
|
|
44151
44135
|
};
|
|
44152
44136
|
var idCounter = 0;
|
|
44153
44137
|
var lockStack = [];
|
|
44154
|
-
function RemoveScrollSideCar(
|
|
44138
|
+
function RemoveScrollSideCar(props212) {
|
|
44155
44139
|
var shouldPreventQueue = React21.useRef([]);
|
|
44156
44140
|
var touchStartRef = React21.useRef([0, 0]);
|
|
44157
44141
|
var activeAxis = React21.useRef();
|
|
44158
44142
|
var id = React21.useState(idCounter++)[0];
|
|
44159
44143
|
var Style2 = React21.useState(styleSingleton)[0];
|
|
44160
|
-
var lastProps = React21.useRef(
|
|
44144
|
+
var lastProps = React21.useRef(props212);
|
|
44161
44145
|
React21.useEffect(function() {
|
|
44162
|
-
lastProps.current =
|
|
44163
|
-
}, [
|
|
44146
|
+
lastProps.current = props212;
|
|
44147
|
+
}, [props212]);
|
|
44164
44148
|
React21.useEffect(function() {
|
|
44165
|
-
if (
|
|
44149
|
+
if (props212.inert) {
|
|
44166
44150
|
document.body.classList.add("block-interactivity-".concat(id));
|
|
44167
|
-
var allow_1 = __spreadArray([
|
|
44151
|
+
var allow_1 = __spreadArray([props212.lockRef.current], (props212.shards || []).map(extractRef), true).filter(Boolean);
|
|
44168
44152
|
allow_1.forEach(function(el) {
|
|
44169
44153
|
return el.classList.add("allow-interactivity-".concat(id));
|
|
44170
44154
|
});
|
|
@@ -44176,7 +44160,7 @@ function RemoveScrollSideCar(props242) {
|
|
|
44176
44160
|
};
|
|
44177
44161
|
}
|
|
44178
44162
|
return;
|
|
44179
|
-
}, [
|
|
44163
|
+
}, [props212.inert, props212.lockRef.current, props212.shards]);
|
|
44180
44164
|
var shouldCancelEvent = React21.useCallback(function(event, parent) {
|
|
44181
44165
|
if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) {
|
|
44182
44166
|
return !lastProps.current.allowPinchZoom;
|
|
@@ -44260,14 +44244,14 @@ function RemoveScrollSideCar(props242) {
|
|
|
44260
44244
|
activeAxis.current = undefined;
|
|
44261
44245
|
}, []);
|
|
44262
44246
|
var scrollWheel = React21.useCallback(function(event) {
|
|
44263
|
-
shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event,
|
|
44247
|
+
shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props212.lockRef.current));
|
|
44264
44248
|
}, []);
|
|
44265
44249
|
var scrollTouchMove = React21.useCallback(function(event) {
|
|
44266
|
-
shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event,
|
|
44250
|
+
shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props212.lockRef.current));
|
|
44267
44251
|
}, []);
|
|
44268
44252
|
React21.useEffect(function() {
|
|
44269
44253
|
lockStack.push(Style2);
|
|
44270
|
-
|
|
44254
|
+
props212.setCallbacks({
|
|
44271
44255
|
onScrollCapture: scrollWheel,
|
|
44272
44256
|
onWheelCapture: scrollWheel,
|
|
44273
44257
|
onTouchMoveCapture: scrollTouchMove
|
|
@@ -44284,8 +44268,8 @@ function RemoveScrollSideCar(props242) {
|
|
|
44284
44268
|
document.removeEventListener("touchstart", scrollTouchStart, nonPassive);
|
|
44285
44269
|
};
|
|
44286
44270
|
}, []);
|
|
44287
|
-
var { removeScrollBar, inert } =
|
|
44288
|
-
return React21.createElement(React21.Fragment, null, inert ? React21.createElement(Style2, { styles: generateStyle(id) }) : null, removeScrollBar ? React21.createElement(RemoveScrollBar, { noRelative:
|
|
44271
|
+
var { removeScrollBar, inert } = props212;
|
|
44272
|
+
return React21.createElement(React21.Fragment, null, inert ? React21.createElement(Style2, { styles: generateStyle(id) }) : null, removeScrollBar ? React21.createElement(RemoveScrollBar, { noRelative: props212.noRelative, gapMode: props212.gapMode }) : null);
|
|
44289
44273
|
}
|
|
44290
44274
|
function getOutermostShadowParent(node2) {
|
|
44291
44275
|
var shadowParent = null;
|
|
@@ -44299,8 +44283,8 @@ function getOutermostShadowParent(node2) {
|
|
|
44299
44283
|
return shadowParent;
|
|
44300
44284
|
}
|
|
44301
44285
|
var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
|
|
44302
|
-
var ReactRemoveScroll = React24.forwardRef(function(
|
|
44303
|
-
return React24.createElement(RemoveScroll, __assign({},
|
|
44286
|
+
var ReactRemoveScroll = React24.forwardRef(function(props212, ref) {
|
|
44287
|
+
return React24.createElement(RemoveScroll, __assign({}, props212, { ref, sideCar: sidecar_default }));
|
|
44304
44288
|
});
|
|
44305
44289
|
ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
44306
44290
|
var Combination_default = ReactRemoveScroll;
|
|
@@ -44426,7 +44410,7 @@ var hideOthers = function(originalTarget, parentNode, markerName) {
|
|
|
44426
44410
|
var DIALOG_NAME = "Dialog";
|
|
44427
44411
|
var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
|
|
44428
44412
|
var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
|
|
44429
|
-
var Dialog = (
|
|
44413
|
+
var Dialog = (props212) => {
|
|
44430
44414
|
const {
|
|
44431
44415
|
__scopeDialog,
|
|
44432
44416
|
children,
|
|
@@ -44434,7 +44418,7 @@ var Dialog = (props242) => {
|
|
|
44434
44418
|
defaultOpen,
|
|
44435
44419
|
onOpenChange,
|
|
44436
44420
|
modal = true
|
|
44437
|
-
} =
|
|
44421
|
+
} = props212;
|
|
44438
44422
|
const triggerRef = React26.useRef(null);
|
|
44439
44423
|
const contentRef = React26.useRef(null);
|
|
44440
44424
|
const [open, setOpen] = useControllableState({
|
|
@@ -44443,7 +44427,7 @@ var Dialog = (props242) => {
|
|
|
44443
44427
|
onChange: onOpenChange,
|
|
44444
44428
|
caller: DIALOG_NAME
|
|
44445
44429
|
});
|
|
44446
|
-
return /* @__PURE__ */
|
|
44430
|
+
return /* @__PURE__ */ jsx26(DialogProvider, {
|
|
44447
44431
|
scope: __scopeDialog,
|
|
44448
44432
|
triggerRef,
|
|
44449
44433
|
contentRef,
|
|
@@ -44459,11 +44443,11 @@ var Dialog = (props242) => {
|
|
|
44459
44443
|
};
|
|
44460
44444
|
Dialog.displayName = DIALOG_NAME;
|
|
44461
44445
|
var TRIGGER_NAME = "DialogTrigger";
|
|
44462
|
-
var DialogTrigger = React26.forwardRef((
|
|
44463
|
-
const { __scopeDialog, ...triggerProps } =
|
|
44446
|
+
var DialogTrigger = React26.forwardRef((props212, forwardedRef) => {
|
|
44447
|
+
const { __scopeDialog, ...triggerProps } = props212;
|
|
44464
44448
|
const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
|
|
44465
44449
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
44466
|
-
return /* @__PURE__ */
|
|
44450
|
+
return /* @__PURE__ */ jsx26(Primitive.button, {
|
|
44467
44451
|
type: "button",
|
|
44468
44452
|
"aria-haspopup": "dialog",
|
|
44469
44453
|
"aria-expanded": context.open,
|
|
@@ -44471,7 +44455,7 @@ var DialogTrigger = React26.forwardRef((props242, forwardedRef) => {
|
|
|
44471
44455
|
"data-state": getState(context.open),
|
|
44472
44456
|
...triggerProps,
|
|
44473
44457
|
ref: composedTriggerRef,
|
|
44474
|
-
onClick: composeEventHandlers(
|
|
44458
|
+
onClick: composeEventHandlers(props212.onClick, context.onOpenToggle)
|
|
44475
44459
|
});
|
|
44476
44460
|
});
|
|
44477
44461
|
DialogTrigger.displayName = TRIGGER_NAME;
|
|
@@ -44479,27 +44463,27 @@ var PORTAL_NAME2 = "DialogPortal";
|
|
|
44479
44463
|
var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME2, {
|
|
44480
44464
|
forceMount: undefined
|
|
44481
44465
|
});
|
|
44482
|
-
var DialogPortal = (
|
|
44483
|
-
const { __scopeDialog, forceMount, children, container } =
|
|
44466
|
+
var DialogPortal = (props212) => {
|
|
44467
|
+
const { __scopeDialog, forceMount, children, container } = props212;
|
|
44484
44468
|
const context = useDialogContext(PORTAL_NAME2, __scopeDialog);
|
|
44485
|
-
return /* @__PURE__ */
|
|
44469
|
+
return /* @__PURE__ */ jsx26(PortalProvider, { scope: __scopeDialog, forceMount, children: React26.Children.map(children, (child) => /* @__PURE__ */ jsx26(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx26(Portal, { asChild: true, container, children: child }) })) });
|
|
44486
44470
|
};
|
|
44487
44471
|
DialogPortal.displayName = PORTAL_NAME2;
|
|
44488
44472
|
var OVERLAY_NAME = "DialogOverlay";
|
|
44489
|
-
var DialogOverlay = React26.forwardRef((
|
|
44490
|
-
const portalContext = usePortalContext(OVERLAY_NAME,
|
|
44491
|
-
const { forceMount = portalContext.forceMount, ...overlayProps } =
|
|
44492
|
-
const context = useDialogContext(OVERLAY_NAME,
|
|
44493
|
-
return context.modal ? /* @__PURE__ */
|
|
44473
|
+
var DialogOverlay = React26.forwardRef((props212, forwardedRef) => {
|
|
44474
|
+
const portalContext = usePortalContext(OVERLAY_NAME, props212.__scopeDialog);
|
|
44475
|
+
const { forceMount = portalContext.forceMount, ...overlayProps } = props212;
|
|
44476
|
+
const context = useDialogContext(OVERLAY_NAME, props212.__scopeDialog);
|
|
44477
|
+
return context.modal ? /* @__PURE__ */ jsx26(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx26(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
|
|
44494
44478
|
});
|
|
44495
44479
|
DialogOverlay.displayName = OVERLAY_NAME;
|
|
44496
44480
|
var Slot2 = createSlot("DialogOverlay.RemoveScroll");
|
|
44497
|
-
var DialogOverlayImpl = React26.forwardRef((
|
|
44498
|
-
const { __scopeDialog, ...overlayProps } =
|
|
44481
|
+
var DialogOverlayImpl = React26.forwardRef((props212, forwardedRef) => {
|
|
44482
|
+
const { __scopeDialog, ...overlayProps } = props212;
|
|
44499
44483
|
const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
|
|
44500
44484
|
const registerDismissableSurface = useDismissableLayerSurface();
|
|
44501
44485
|
const composedRefs = useComposedRefs(forwardedRef, registerDismissableSurface);
|
|
44502
|
-
return /* @__PURE__ */
|
|
44486
|
+
return /* @__PURE__ */ jsx26(Combination_default, { as: Slot2, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx26(Primitive.div, {
|
|
44503
44487
|
"data-state": getState(context.open),
|
|
44504
44488
|
...overlayProps,
|
|
44505
44489
|
ref: composedRefs,
|
|
@@ -44507,15 +44491,15 @@ var DialogOverlayImpl = React26.forwardRef((props242, forwardedRef) => {
|
|
|
44507
44491
|
}) });
|
|
44508
44492
|
});
|
|
44509
44493
|
var CONTENT_NAME = "DialogContent";
|
|
44510
|
-
var DialogContent = React26.forwardRef((
|
|
44511
|
-
const portalContext = usePortalContext(CONTENT_NAME,
|
|
44512
|
-
const { forceMount = portalContext.forceMount, ...contentProps } =
|
|
44513
|
-
const context = useDialogContext(CONTENT_NAME,
|
|
44514
|
-
return /* @__PURE__ */
|
|
44494
|
+
var DialogContent = React26.forwardRef((props212, forwardedRef) => {
|
|
44495
|
+
const portalContext = usePortalContext(CONTENT_NAME, props212.__scopeDialog);
|
|
44496
|
+
const { forceMount = portalContext.forceMount, ...contentProps } = props212;
|
|
44497
|
+
const context = useDialogContext(CONTENT_NAME, props212.__scopeDialog);
|
|
44498
|
+
return /* @__PURE__ */ jsx26(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx26(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx26(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
44515
44499
|
});
|
|
44516
44500
|
DialogContent.displayName = CONTENT_NAME;
|
|
44517
|
-
var DialogContentModal = React26.forwardRef((
|
|
44518
|
-
const context = useDialogContext(CONTENT_NAME,
|
|
44501
|
+
var DialogContentModal = React26.forwardRef((props212, forwardedRef) => {
|
|
44502
|
+
const context = useDialogContext(CONTENT_NAME, props212.__scopeDialog);
|
|
44519
44503
|
const contentRef = React26.useRef(null);
|
|
44520
44504
|
const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);
|
|
44521
44505
|
React26.useEffect(() => {
|
|
@@ -44523,36 +44507,36 @@ var DialogContentModal = React26.forwardRef((props242, forwardedRef) => {
|
|
|
44523
44507
|
if (content3)
|
|
44524
44508
|
return hideOthers(content3);
|
|
44525
44509
|
}, []);
|
|
44526
|
-
return /* @__PURE__ */
|
|
44527
|
-
...
|
|
44510
|
+
return /* @__PURE__ */ jsx26(DialogContentImpl, {
|
|
44511
|
+
...props212,
|
|
44528
44512
|
ref: composedRefs,
|
|
44529
44513
|
trapFocus: context.open,
|
|
44530
44514
|
disableOutsidePointerEvents: context.open,
|
|
44531
|
-
onCloseAutoFocus: composeEventHandlers(
|
|
44515
|
+
onCloseAutoFocus: composeEventHandlers(props212.onCloseAutoFocus, (event) => {
|
|
44532
44516
|
event.preventDefault();
|
|
44533
44517
|
context.triggerRef.current?.focus();
|
|
44534
44518
|
}),
|
|
44535
|
-
onPointerDownOutside: composeEventHandlers(
|
|
44519
|
+
onPointerDownOutside: composeEventHandlers(props212.onPointerDownOutside, (event) => {
|
|
44536
44520
|
const originalEvent = event.detail.originalEvent;
|
|
44537
44521
|
const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
|
|
44538
44522
|
const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
|
|
44539
44523
|
if (isRightClick)
|
|
44540
44524
|
event.preventDefault();
|
|
44541
44525
|
}),
|
|
44542
|
-
onFocusOutside: composeEventHandlers(
|
|
44526
|
+
onFocusOutside: composeEventHandlers(props212.onFocusOutside, (event) => event.preventDefault())
|
|
44543
44527
|
});
|
|
44544
44528
|
});
|
|
44545
|
-
var DialogContentNonModal = React26.forwardRef((
|
|
44546
|
-
const context = useDialogContext(CONTENT_NAME,
|
|
44529
|
+
var DialogContentNonModal = React26.forwardRef((props212, forwardedRef) => {
|
|
44530
|
+
const context = useDialogContext(CONTENT_NAME, props212.__scopeDialog);
|
|
44547
44531
|
const hasInteractedOutsideRef = React26.useRef(false);
|
|
44548
44532
|
const hasPointerDownOutsideRef = React26.useRef(false);
|
|
44549
|
-
return /* @__PURE__ */
|
|
44550
|
-
...
|
|
44533
|
+
return /* @__PURE__ */ jsx26(DialogContentImpl, {
|
|
44534
|
+
...props212,
|
|
44551
44535
|
ref: forwardedRef,
|
|
44552
44536
|
trapFocus: false,
|
|
44553
44537
|
disableOutsidePointerEvents: false,
|
|
44554
44538
|
onCloseAutoFocus: (event) => {
|
|
44555
|
-
|
|
44539
|
+
props212.onCloseAutoFocus?.(event);
|
|
44556
44540
|
if (!event.defaultPrevented) {
|
|
44557
44541
|
if (!hasInteractedOutsideRef.current)
|
|
44558
44542
|
context.triggerRef.current?.focus();
|
|
@@ -44562,7 +44546,7 @@ var DialogContentNonModal = React26.forwardRef((props242, forwardedRef) => {
|
|
|
44562
44546
|
hasPointerDownOutsideRef.current = false;
|
|
44563
44547
|
},
|
|
44564
44548
|
onInteractOutside: (event) => {
|
|
44565
|
-
|
|
44549
|
+
props212.onInteractOutside?.(event);
|
|
44566
44550
|
if (!event.defaultPrevented) {
|
|
44567
44551
|
hasInteractedOutsideRef.current = true;
|
|
44568
44552
|
if (event.detail.originalEvent.type === "pointerdown") {
|
|
@@ -44579,17 +44563,17 @@ var DialogContentNonModal = React26.forwardRef((props242, forwardedRef) => {
|
|
|
44579
44563
|
}
|
|
44580
44564
|
});
|
|
44581
44565
|
});
|
|
44582
|
-
var DialogContentImpl = React26.forwardRef((
|
|
44583
|
-
const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } =
|
|
44566
|
+
var DialogContentImpl = React26.forwardRef((props212, forwardedRef) => {
|
|
44567
|
+
const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props212;
|
|
44584
44568
|
const context = useDialogContext(CONTENT_NAME, __scopeDialog);
|
|
44585
44569
|
useFocusGuards();
|
|
44586
|
-
return /* @__PURE__ */
|
|
44570
|
+
return /* @__PURE__ */ jsx26(Fragment72, { children: /* @__PURE__ */ jsx26(FocusScope, {
|
|
44587
44571
|
asChild: true,
|
|
44588
44572
|
loop: true,
|
|
44589
44573
|
trapped: trapFocus,
|
|
44590
44574
|
onMountAutoFocus: onOpenAutoFocus,
|
|
44591
44575
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
44592
|
-
children: /* @__PURE__ */
|
|
44576
|
+
children: /* @__PURE__ */ jsx26(DismissableLayer, {
|
|
44593
44577
|
role: "dialog",
|
|
44594
44578
|
id: context.contentId,
|
|
44595
44579
|
"aria-describedby": context.descriptionId,
|
|
@@ -44603,28 +44587,28 @@ var DialogContentImpl = React26.forwardRef((props242, forwardedRef) => {
|
|
|
44603
44587
|
}) });
|
|
44604
44588
|
});
|
|
44605
44589
|
var TITLE_NAME = "DialogTitle";
|
|
44606
|
-
var DialogTitle = React26.forwardRef((
|
|
44607
|
-
const { __scopeDialog, ...titleProps } =
|
|
44590
|
+
var DialogTitle = React26.forwardRef((props212, forwardedRef) => {
|
|
44591
|
+
const { __scopeDialog, ...titleProps } = props212;
|
|
44608
44592
|
const context = useDialogContext(TITLE_NAME, __scopeDialog);
|
|
44609
|
-
return /* @__PURE__ */
|
|
44593
|
+
return /* @__PURE__ */ jsx26(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
|
|
44610
44594
|
});
|
|
44611
44595
|
DialogTitle.displayName = TITLE_NAME;
|
|
44612
44596
|
var DESCRIPTION_NAME = "DialogDescription";
|
|
44613
|
-
var DialogDescription = React26.forwardRef((
|
|
44614
|
-
const { __scopeDialog, ...descriptionProps } =
|
|
44597
|
+
var DialogDescription = React26.forwardRef((props212, forwardedRef) => {
|
|
44598
|
+
const { __scopeDialog, ...descriptionProps } = props212;
|
|
44615
44599
|
const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
|
|
44616
|
-
return /* @__PURE__ */
|
|
44600
|
+
return /* @__PURE__ */ jsx26(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
|
|
44617
44601
|
});
|
|
44618
44602
|
DialogDescription.displayName = DESCRIPTION_NAME;
|
|
44619
44603
|
var CLOSE_NAME = "DialogClose";
|
|
44620
|
-
var DialogClose = React26.forwardRef((
|
|
44621
|
-
const { __scopeDialog, ...closeProps } =
|
|
44604
|
+
var DialogClose = React26.forwardRef((props212, forwardedRef) => {
|
|
44605
|
+
const { __scopeDialog, ...closeProps } = props212;
|
|
44622
44606
|
const context = useDialogContext(CLOSE_NAME, __scopeDialog);
|
|
44623
|
-
return /* @__PURE__ */
|
|
44607
|
+
return /* @__PURE__ */ jsx26(Primitive.button, {
|
|
44624
44608
|
type: "button",
|
|
44625
44609
|
...closeProps,
|
|
44626
44610
|
ref: forwardedRef,
|
|
44627
|
-
onClick: composeEventHandlers(
|
|
44611
|
+
onClick: composeEventHandlers(props212.onClick, () => context.onOpenChange(false))
|
|
44628
44612
|
});
|
|
44629
44613
|
});
|
|
44630
44614
|
DialogClose.displayName = CLOSE_NAME;
|
|
@@ -44636,42 +44620,42 @@ var [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT
|
|
|
44636
44620
|
createDialogScope
|
|
44637
44621
|
]);
|
|
44638
44622
|
var useDialogScope = createDialogScope();
|
|
44639
|
-
var AlertDialog = (
|
|
44640
|
-
const { __scopeAlertDialog, ...alertDialogProps } =
|
|
44623
|
+
var AlertDialog = (props212) => {
|
|
44624
|
+
const { __scopeAlertDialog, ...alertDialogProps } = props212;
|
|
44641
44625
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
44642
|
-
return /* @__PURE__ */
|
|
44626
|
+
return /* @__PURE__ */ jsx27(Dialog, { ...dialogScope, ...alertDialogProps, modal: true });
|
|
44643
44627
|
};
|
|
44644
44628
|
AlertDialog.displayName = ROOT_NAME;
|
|
44645
44629
|
var TRIGGER_NAME2 = "AlertDialogTrigger";
|
|
44646
|
-
var AlertDialogTrigger = React27.forwardRef((
|
|
44647
|
-
const { __scopeAlertDialog, ...triggerProps } =
|
|
44630
|
+
var AlertDialogTrigger = React27.forwardRef((props212, forwardedRef) => {
|
|
44631
|
+
const { __scopeAlertDialog, ...triggerProps } = props212;
|
|
44648
44632
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
44649
|
-
return /* @__PURE__ */
|
|
44633
|
+
return /* @__PURE__ */ jsx27(DialogTrigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });
|
|
44650
44634
|
});
|
|
44651
44635
|
AlertDialogTrigger.displayName = TRIGGER_NAME2;
|
|
44652
44636
|
var PORTAL_NAME3 = "AlertDialogPortal";
|
|
44653
|
-
var AlertDialogPortal = (
|
|
44654
|
-
const { __scopeAlertDialog, ...portalProps } =
|
|
44637
|
+
var AlertDialogPortal = (props212) => {
|
|
44638
|
+
const { __scopeAlertDialog, ...portalProps } = props212;
|
|
44655
44639
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
44656
|
-
return /* @__PURE__ */
|
|
44640
|
+
return /* @__PURE__ */ jsx27(DialogPortal, { ...dialogScope, ...portalProps });
|
|
44657
44641
|
};
|
|
44658
44642
|
AlertDialogPortal.displayName = PORTAL_NAME3;
|
|
44659
44643
|
var OVERLAY_NAME2 = "AlertDialogOverlay";
|
|
44660
|
-
var AlertDialogOverlay = React27.forwardRef((
|
|
44661
|
-
const { __scopeAlertDialog, ...overlayProps } =
|
|
44644
|
+
var AlertDialogOverlay = React27.forwardRef((props212, forwardedRef) => {
|
|
44645
|
+
const { __scopeAlertDialog, ...overlayProps } = props212;
|
|
44662
44646
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
44663
|
-
return /* @__PURE__ */
|
|
44647
|
+
return /* @__PURE__ */ jsx27(DialogOverlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });
|
|
44664
44648
|
});
|
|
44665
44649
|
AlertDialogOverlay.displayName = OVERLAY_NAME2;
|
|
44666
44650
|
var CONTENT_NAME2 = "AlertDialogContent";
|
|
44667
44651
|
var [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME2);
|
|
44668
|
-
var AlertDialogContent = React27.forwardRef((
|
|
44669
|
-
const { __scopeAlertDialog, children, ...contentProps } =
|
|
44652
|
+
var AlertDialogContent = React27.forwardRef((props212, forwardedRef) => {
|
|
44653
|
+
const { __scopeAlertDialog, children, ...contentProps } = props212;
|
|
44670
44654
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
44671
44655
|
const contentRef = React27.useRef(null);
|
|
44672
44656
|
const composedRefs = useComposedRefs(forwardedRef, contentRef);
|
|
44673
44657
|
const cancelRef = React27.useRef(null);
|
|
44674
|
-
return /* @__PURE__ */
|
|
44658
|
+
return /* @__PURE__ */ jsx27(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsx27(DialogContent, {
|
|
44675
44659
|
role: "alertdialog",
|
|
44676
44660
|
...dialogScope,
|
|
44677
44661
|
...contentProps,
|
|
@@ -44687,33 +44671,33 @@ var AlertDialogContent = React27.forwardRef((props242, forwardedRef) => {
|
|
|
44687
44671
|
});
|
|
44688
44672
|
AlertDialogContent.displayName = CONTENT_NAME2;
|
|
44689
44673
|
var TITLE_NAME2 = "AlertDialogTitle";
|
|
44690
|
-
var AlertDialogTitle = React27.forwardRef((
|
|
44691
|
-
const { __scopeAlertDialog, ...titleProps } =
|
|
44674
|
+
var AlertDialogTitle = React27.forwardRef((props212, forwardedRef) => {
|
|
44675
|
+
const { __scopeAlertDialog, ...titleProps } = props212;
|
|
44692
44676
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
44693
|
-
return /* @__PURE__ */
|
|
44677
|
+
return /* @__PURE__ */ jsx27(DialogTitle, { ...dialogScope, ...titleProps, ref: forwardedRef });
|
|
44694
44678
|
});
|
|
44695
44679
|
AlertDialogTitle.displayName = TITLE_NAME2;
|
|
44696
44680
|
var DESCRIPTION_NAME2 = "AlertDialogDescription";
|
|
44697
|
-
var AlertDialogDescription = React27.forwardRef((
|
|
44698
|
-
const { __scopeAlertDialog, ...descriptionProps } =
|
|
44681
|
+
var AlertDialogDescription = React27.forwardRef((props212, forwardedRef) => {
|
|
44682
|
+
const { __scopeAlertDialog, ...descriptionProps } = props212;
|
|
44699
44683
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
44700
|
-
return /* @__PURE__ */
|
|
44684
|
+
return /* @__PURE__ */ jsx27(DialogDescription, { ...dialogScope, ...descriptionProps, ref: forwardedRef });
|
|
44701
44685
|
});
|
|
44702
44686
|
AlertDialogDescription.displayName = DESCRIPTION_NAME2;
|
|
44703
44687
|
var ACTION_NAME = "AlertDialogAction";
|
|
44704
|
-
var AlertDialogAction = React27.forwardRef((
|
|
44705
|
-
const { __scopeAlertDialog, ...actionProps } =
|
|
44688
|
+
var AlertDialogAction = React27.forwardRef((props212, forwardedRef) => {
|
|
44689
|
+
const { __scopeAlertDialog, ...actionProps } = props212;
|
|
44706
44690
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
44707
|
-
return /* @__PURE__ */
|
|
44691
|
+
return /* @__PURE__ */ jsx27(DialogClose, { ...dialogScope, ...actionProps, ref: forwardedRef });
|
|
44708
44692
|
});
|
|
44709
44693
|
AlertDialogAction.displayName = ACTION_NAME;
|
|
44710
44694
|
var CANCEL_NAME = "AlertDialogCancel";
|
|
44711
|
-
var AlertDialogCancel = React27.forwardRef((
|
|
44712
|
-
const { __scopeAlertDialog, ...cancelProps } =
|
|
44695
|
+
var AlertDialogCancel = React27.forwardRef((props212, forwardedRef) => {
|
|
44696
|
+
const { __scopeAlertDialog, ...cancelProps } = props212;
|
|
44713
44697
|
const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);
|
|
44714
44698
|
const dialogScope = useDialogScope(__scopeAlertDialog);
|
|
44715
44699
|
const ref = useComposedRefs(forwardedRef, cancelRef);
|
|
44716
|
-
return /* @__PURE__ */
|
|
44700
|
+
return /* @__PURE__ */ jsx27(DialogClose, { ...dialogScope, ...cancelProps, ref });
|
|
44717
44701
|
});
|
|
44718
44702
|
AlertDialogCancel.displayName = CANCEL_NAME;
|
|
44719
44703
|
var Root2 = AlertDialog;
|
|
@@ -44767,9 +44751,13 @@ var styles = {
|
|
|
44767
44751
|
kWkggS: "x15vqgvx",
|
|
44768
44752
|
kVAM5u: "xawfzfr",
|
|
44769
44753
|
kMwMTN: "x1um1dla",
|
|
44770
|
-
k3aq6I: "
|
|
44771
|
-
|
|
44772
|
-
|
|
44754
|
+
k3aq6I: "x1nlf60j x6wgdar",
|
|
44755
|
+
kIa11j: "xenc7ac",
|
|
44756
|
+
kLmhY5: "xpc9js7",
|
|
44757
|
+
kD2jPA: "x163vtw",
|
|
44758
|
+
kdODIN: "xcysz91",
|
|
44759
|
+
kWC4TW: "x1bi1fg1",
|
|
44760
|
+
kWCcOm: "x1fzehxr",
|
|
44773
44761
|
$$css: true
|
|
44774
44762
|
},
|
|
44775
44763
|
secondary: {
|
|
@@ -44925,11 +44913,11 @@ function Button3({
|
|
|
44925
44913
|
asChild = false,
|
|
44926
44914
|
xstyle,
|
|
44927
44915
|
style,
|
|
44928
|
-
...
|
|
44916
|
+
...props222
|
|
44929
44917
|
}) {
|
|
44930
44918
|
const Component = asChild ? exports_dist.Root : "button";
|
|
44931
44919
|
const styleProps = props(...buttonStyles(variant, size), xstyle);
|
|
44932
|
-
return /* @__PURE__ */
|
|
44920
|
+
return /* @__PURE__ */ jsx28(Component, {
|
|
44933
44921
|
"data-slot": "button",
|
|
44934
44922
|
"data-variant": variant,
|
|
44935
44923
|
"data-size": size,
|
|
@@ -44938,7 +44926,7 @@ function Button3({
|
|
|
44938
44926
|
...styleProps.style,
|
|
44939
44927
|
...style
|
|
44940
44928
|
},
|
|
44941
|
-
...
|
|
44929
|
+
...props222
|
|
44942
44930
|
});
|
|
44943
44931
|
}
|
|
44944
44932
|
function classes2(...values2) {
|
|
@@ -44954,74 +44942,74 @@ function clientSnapshot() {
|
|
|
44954
44942
|
function serverSnapshot() {
|
|
44955
44943
|
return false;
|
|
44956
44944
|
}
|
|
44957
|
-
function ConfirmDialog(
|
|
44958
|
-
const pending =
|
|
44945
|
+
function ConfirmDialog(props222) {
|
|
44946
|
+
const pending = props222.pending === true;
|
|
44959
44947
|
const client = useSyncExternalStore(subscribeToClient, clientSnapshot, serverSnapshot);
|
|
44960
|
-
const Surface = client ? exports_dist2.Portal :
|
|
44961
|
-
return /* @__PURE__ */
|
|
44948
|
+
const Surface = client ? exports_dist2.Portal : Fragment82;
|
|
44949
|
+
return /* @__PURE__ */ jsx29(exports_dist2.Root, {
|
|
44962
44950
|
open: true,
|
|
44963
44951
|
onOpenChange: (open) => {
|
|
44964
44952
|
if (!open && !pending)
|
|
44965
|
-
|
|
44953
|
+
props222.onCancel();
|
|
44966
44954
|
},
|
|
44967
|
-
children: /* @__PURE__ */
|
|
44955
|
+
children: /* @__PURE__ */ jsxs16(Surface, {
|
|
44968
44956
|
...client ? {
|
|
44969
44957
|
container: document.body
|
|
44970
44958
|
} : {},
|
|
44971
44959
|
children: [
|
|
44972
|
-
/* @__PURE__ */
|
|
44960
|
+
/* @__PURE__ */ jsx29(exports_dist2.Overlay, {
|
|
44973
44961
|
className: {
|
|
44974
44962
|
className: "x779uuu xpivpjv x10a8y8t xixxii4 xfo81ep"
|
|
44975
44963
|
}.className,
|
|
44976
|
-
onPointerDown:
|
|
44964
|
+
onPointerDown: props222.dismissOnOutside && !pending ? props222.onCancel : undefined
|
|
44977
44965
|
}),
|
|
44978
|
-
/* @__PURE__ */
|
|
44966
|
+
/* @__PURE__ */ jsxs16(exports_dist2.Content, {
|
|
44979
44967
|
className: classes2({
|
|
44980
44968
|
className: "x18s3upu x8tuc8h xixl9f9 x1y0btm7 xmkeg23 xqz5wv3 xqvuw85 xj0a0fe xrvj5dj xou54vl x1nrll8i xojfs98 xw7nakj x1a2a7pz x1odjw0f xggk2y7 xixxii4 xwa60dl x11lhmoz xv9tjks x1bkdxzg x1lclwwd xgrp7ii x1imafyg x1lgz1aq x172uiah xxnk3sr xeyi6kz x1lak8av x1qa1qnr xl7365u x1mji7za x1dbdljh"
|
|
44981
|
-
}.className, "delete-modal",
|
|
44982
|
-
"aria-labelledby":
|
|
44969
|
+
}.className, "delete-modal", props222.sectionClassName),
|
|
44970
|
+
"aria-labelledby": props222.titleId,
|
|
44983
44971
|
children: [
|
|
44984
|
-
/* @__PURE__ */
|
|
44972
|
+
/* @__PURE__ */ jsx29("span", {
|
|
44985
44973
|
className: {
|
|
44986
44974
|
className: "x6s0dn4 xu2kkqm x16rqkct x1mel2pz x3nfvp2 xa9opjo xosj86m xc9qbxq xl56j7k x14qfxbe"
|
|
44987
44975
|
}.className,
|
|
44988
44976
|
"aria-hidden": true,
|
|
44989
|
-
children:
|
|
44977
|
+
children: props222.mark
|
|
44990
44978
|
}),
|
|
44991
|
-
/* @__PURE__ */
|
|
44992
|
-
id:
|
|
44979
|
+
/* @__PURE__ */ jsx29(exports_dist2.Title, {
|
|
44980
|
+
id: props222.titleId,
|
|
44993
44981
|
className: {
|
|
44994
44982
|
className: "xqvuw85 xssy22x x1i1m3gp xk50ysn x1uo3zyz x1ghz6dp"
|
|
44995
44983
|
}.className,
|
|
44996
|
-
children:
|
|
44984
|
+
children: props222.title
|
|
44997
44985
|
}),
|
|
44998
|
-
/* @__PURE__ */
|
|
44986
|
+
/* @__PURE__ */ jsx29(exports_dist2.Description, {
|
|
44999
44987
|
asChild: true,
|
|
45000
|
-
children: /* @__PURE__ */
|
|
45001
|
-
children:
|
|
44988
|
+
children: /* @__PURE__ */ jsx29("div", {
|
|
44989
|
+
children: props222.children
|
|
45002
44990
|
})
|
|
45003
44991
|
}),
|
|
45004
|
-
/* @__PURE__ */
|
|
44992
|
+
/* @__PURE__ */ jsxs16("div", {
|
|
45005
44993
|
className: {
|
|
45006
44994
|
className: "x78zum5 x883omv x13a6bvl x10acg2q x5z33oq"
|
|
45007
44995
|
}.className,
|
|
45008
44996
|
children: [
|
|
45009
|
-
/* @__PURE__ */
|
|
44997
|
+
/* @__PURE__ */ jsx29(exports_dist2.Cancel, {
|
|
45010
44998
|
asChild: true,
|
|
45011
|
-
children: /* @__PURE__ */
|
|
44999
|
+
children: /* @__PURE__ */ jsx29(Button3, {
|
|
45012
45000
|
type: "button",
|
|
45013
45001
|
variant: "outline",
|
|
45014
45002
|
disabled: pending,
|
|
45015
|
-
children:
|
|
45003
|
+
children: props222.cancelLabel
|
|
45016
45004
|
})
|
|
45017
45005
|
}),
|
|
45018
|
-
/* @__PURE__ */
|
|
45006
|
+
/* @__PURE__ */ jsx29(Button3, {
|
|
45019
45007
|
type: "button",
|
|
45020
|
-
variant:
|
|
45021
|
-
className:
|
|
45008
|
+
variant: props222.confirmVariant ?? "primary",
|
|
45009
|
+
className: props222.confirmClassName,
|
|
45022
45010
|
disabled: pending,
|
|
45023
|
-
onClick:
|
|
45024
|
-
children:
|
|
45011
|
+
onClick: props222.onConfirm,
|
|
45012
|
+
children: props222.confirmLabel
|
|
45025
45013
|
})
|
|
45026
45014
|
]
|
|
45027
45015
|
})
|
|
@@ -45354,6 +45342,7 @@ var operatorViewStylexCSS = `@property --x-1pds3uo { syntax: "*"; inherits: fals
|
|
|
45354
45342
|
.x1oagamk:not(#\\#):not(#\\#){transition:background-color .12s ease,border-color .12s ease}
|
|
45355
45343
|
.x1p5amsn:not(#\\#):not(#\\#){transition:border-color .12s ease,box-shadow .12s ease}
|
|
45356
45344
|
.x1gt6r2q:not(#\\#):not(#\\#){transition:transform .12s ease,background-color .12s ease}
|
|
45345
|
+
.xpc9js7:hover:not(:disabled):not(#\\#):not(#\\#){border-color:var(--console-accent-dim)}
|
|
45357
45346
|
.x16yjenj:is([data-state='checked']):not(#\\#):not(#\\#){border-color:var(--console-accent)}
|
|
45358
45347
|
.x1iom3s4:focus-visible:not(#\\#):not(#\\#){border-color:var(--console-accent)}
|
|
45359
45348
|
.x6cfppn:is([data-status=active] > *, [data-status=complete] > *):not(#\\#):not(#\\#){border-color:var(--console-accent)}
|
|
@@ -45367,8 +45356,8 @@ var operatorViewStylexCSS = `@property --x-1pds3uo { syntax: "*"; inherits: fals
|
|
|
45367
45356
|
.x1g79t40:is([data-operator-detail-pane] *):not(#\\#):not(#\\#){gap:16px}
|
|
45368
45357
|
.xvtq9v3:is([data-operator-blocks] > [data-block=links] *):not(#\\#):not(#\\#){gap:18px}
|
|
45369
45358
|
.x16dl9wz:focus-visible:not(#\\#):not(#\\#){outline:2px solid var(--console-accent)}
|
|
45359
|
+
.xcysz91:disabled:not(#\\#):not(#\\#){border-color:var(--console-rule-strong)}
|
|
45370
45360
|
.xck444f:user-invalid:not(#\\#):not(#\\#){border-color:var(--console-err)}
|
|
45371
|
-
.xahbki9:hover:not(#\\#):not(#\\#){border-color:var(--console-accent-dim)}
|
|
45372
45361
|
.x8bwlc1:hover:not(#\\#):not(#\\#){border-color:var(--console-accent)}
|
|
45373
45362
|
.xu43hr4:hover:not(#\\#):not(#\\#){border-color:var(--console-err)}
|
|
45374
45363
|
.x1jokge8:hover:not(#\\#):not(#\\#){border-color:var(--console-rule-accent)}
|
|
@@ -45788,6 +45777,7 @@ var operatorViewStylexCSS = `@property --x-1pds3uo { syntax: "*"; inherits: fals
|
|
|
45788
45777
|
.xat1s67.xat1s67:where(.x-default-marker:hover *):not(#\\#):not(#\\#):not(#\\#){color:var(--console-accent)}
|
|
45789
45778
|
.xozkggm.xozkggm:where(.x-default-marker:hover *):not(#\\#):not(#\\#):not(#\\#){transform:translate(2px,-1px)}
|
|
45790
45779
|
.x156vuz7:is([aria-selected="true"],[aria-pressed="true"]):not(#\\#):not(#\\#):not(#\\#){background-color:color-mix(in srgb,var(--console-card-soft) 55%,transparent)}
|
|
45780
|
+
.xenc7ac:hover:not(:disabled):not(#\\#):not(#\\#):not(#\\#){background-color:var(--console-accent-dim)}
|
|
45791
45781
|
.x1n1caiv:is([data-state='checked']):not(#\\#):not(#\\#):not(#\\#){background-color:var(--console-accent)}
|
|
45792
45782
|
.xn4j7m4:is([data-status=active] > *, [data-status=complete] > *):not(#\\#):not(#\\#):not(#\\#){background-color:var(--console-accent)}
|
|
45793
45783
|
.x1b32d6n:is([aria-current="true"]):not(#\\#):not(#\\#):not(#\\#){background-color:var(--console-card)}
|
|
@@ -45847,19 +45837,22 @@ var operatorViewStylexCSS = `@property --x-1pds3uo { syntax: "*"; inherits: fals
|
|
|
45847
45837
|
.x1ffr0y8:is([data-align="center"]):not(#\\#):not(#\\#):not(#\\#){text-align:center}
|
|
45848
45838
|
.xpebyx1:is([data-align="end"]):not(#\\#):not(#\\#):not(#\\#){text-align:right}
|
|
45849
45839
|
.xu021ln:is([data-state='checked']):not(#\\#):not(#\\#):not(#\\#){transform:translateX(18px)}
|
|
45840
|
+
.x1nlf60j:hover:not(:disabled):not(#\\#):not(#\\#):not(#\\#){transform:translateY(-1px)}
|
|
45850
45841
|
.x110e2yq:is([aria-pressed="true"], [data-ui-spatial-related-active]):not(#\\#):not(#\\#):not(#\\#){z-index:4}
|
|
45851
45842
|
.x1qm06za:focus-visible:not(#\\#):not(#\\#):not(#\\#){z-index:4}
|
|
45852
45843
|
.x79gikr:has(> details[open]):not(#\\#):not(#\\#):not(#\\#){grid-template-columns:minmax(0,1fr)}
|
|
45853
45844
|
.xbd3v37:first-child:not(#\\#):not(#\\#):not(#\\#){color:var(--console-text)}
|
|
45854
45845
|
.xq648tx:first-child:not(#\\#):not(#\\#):not(#\\#){font-size:14px}
|
|
45855
45846
|
.xsnqk1y:first-child:not(#\\#):not(#\\#):not(#\\#){font-weight:500}
|
|
45847
|
+
.x163vtw:disabled:not(#\\#):not(#\\#):not(#\\#){background-color:var(--console-card-soft)}
|
|
45848
|
+
.x1bi1fg1:disabled:not(#\\#):not(#\\#):not(#\\#){color:var(--console-text-muted)}
|
|
45856
45849
|
.x1s07b3s:disabled:not(#\\#):not(#\\#):not(#\\#){cursor:not-allowed}
|
|
45857
45850
|
.xijokvz:disabled:not(#\\#):not(#\\#):not(#\\#){opacity:.5}
|
|
45858
45851
|
.xk0mbs4:disabled:not(#\\#):not(#\\#):not(#\\#){opacity:.55}
|
|
45852
|
+
.x1fzehxr:disabled:not(#\\#):not(#\\#):not(#\\#){opacity:1}
|
|
45859
45853
|
.x1gl3shj:disabled:not(#\\#):not(#\\#):not(#\\#){transform:none}
|
|
45860
45854
|
.x10ve9f0:user-invalid:not(#\\#):not(#\\#):not(#\\#){box-shadow:0 0 0 3px color-mix(in srgb,var(--console-err) 14%,transparent)}
|
|
45861
45855
|
.xo6m4nm:hover:not(#\\#):not(#\\#):not(#\\#){background-color:color-mix(in srgb,var(--console-err) 12%,transparent)}
|
|
45862
|
-
.x1kgmmxr:hover:not(#\\#):not(#\\#):not(#\\#){background-color:var(--console-accent-dim)}
|
|
45863
45856
|
.xuvuc2f:hover:not(#\\#):not(#\\#):not(#\\#){background-color:var(--console-accent-soft)}
|
|
45864
45857
|
.xd8d5gp:hover:not(#\\#):not(#\\#):not(#\\#){background-color:var(--console-card)}
|
|
45865
45858
|
.x1uvu3ev:hover:not(#\\#):not(#\\#):not(#\\#){background-color:var(--console-rule-strong)}
|
|
@@ -45970,9 +45963,9 @@ var operatorViewStylexCSS = `@property --x-1pds3uo { syntax: "*"; inherits: fals
|
|
|
45970
45963
|
@media (max-width: 640px){.xqwvrdo.xqwvrdo:is([data-has-unannotated="true"]):not(#\\#):not(#\\#):not(#\\#){overscroll-behavior-inline:contain}}
|
|
45971
45964
|
@media (min-width: 641px){.x16e9dwd.x16e9dwd:is([data-operator-action-popover] *):not(#\\#):not(#\\#):not(#\\#){position:absolute}}
|
|
45972
45965
|
@media (max-width: 640px){.x1defwea.x1defwea:is([data-has-unannotated="true"]):not(#\\#):not(#\\#):not(#\\#){scrollbar-width:thin}}
|
|
45966
|
+
@media (prefers-reduced-motion: reduce){.x6wgdar.x6wgdar:hover:not(:disabled):not(#\\#):not(#\\#):not(#\\#){transform:none}}
|
|
45973
45967
|
@media (min-width: 641px){.x1q652j.x1q652j:is([data-operator-action-popover] *):not(#\\#):not(#\\#):not(#\\#){z-index:10}}
|
|
45974
45968
|
@container operator-aside (min-width: 0px){.x1ram2ln.x1ram2ln:not(#\\#):not(#\\#):not(#\\#){grid-template-columns:minmax(0,1fr)}}
|
|
45975
|
-
@media (prefers-reduced-motion: reduce){.xnotfpo.xnotfpo:hover:not(#\\#):not(#\\#):not(#\\#){transform:none}}
|
|
45976
45969
|
.x16stqrj:not(#\\#):not(#\\#):not(#\\#):not(#\\#){border-bottom-color:transparent}
|
|
45977
45970
|
.xna4lh4:not(#\\#):not(#\\#):not(#\\#):not(#\\#){border-bottom-color:var(--console-rule-strong)}
|
|
45978
45971
|
.xpqg30t:not(#\\#):not(#\\#):not(#\\#):not(#\\#){border-bottom-color:var(--console-rule)}
|
|
@@ -47592,7 +47585,7 @@ function createTemplate(template) {
|
|
|
47592
47585
|
}
|
|
47593
47586
|
const result = {
|
|
47594
47587
|
...rest,
|
|
47595
|
-
schema:
|
|
47588
|
+
schema: schema2.transform((data) => jsonObjectSchema.parse(data)),
|
|
47596
47589
|
layout: {}
|
|
47597
47590
|
};
|
|
47598
47591
|
if (layout.renderSchema) {
|
|
@@ -48483,6 +48476,17 @@ var aiRoutes = [
|
|
|
48483
48476
|
{ id: "quickstart", template: "brain:quickstart" }
|
|
48484
48477
|
]
|
|
48485
48478
|
},
|
|
48479
|
+
{
|
|
48480
|
+
id: "public-ask",
|
|
48481
|
+
path: "/ask",
|
|
48482
|
+
title: "Ask Rizom AI",
|
|
48483
|
+
description: "Ask a question of Rizom's public Brain knowledge",
|
|
48484
|
+
layout: "default",
|
|
48485
|
+
navigation: { show: false },
|
|
48486
|
+
sections: [
|
|
48487
|
+
{ id: "conversation", template: "public-ask:conversation", content: {} }
|
|
48488
|
+
]
|
|
48489
|
+
},
|
|
48486
48490
|
{
|
|
48487
48491
|
id: "writing",
|
|
48488
48492
|
path: "/writing",
|
|
@@ -48556,6 +48560,48 @@ var aiRoutes = [
|
|
|
48556
48560
|
}
|
|
48557
48561
|
];
|
|
48558
48562
|
|
|
48563
|
+
// src/public-ask.tsx
|
|
48564
|
+
import { jsx as jsx45, jsxs as jsxs29, Fragment as Fragment17 } from "react/jsx-runtime";
|
|
48565
|
+
function PublicAsk() {
|
|
48566
|
+
return /* @__PURE__ */ jsxs29(Fragment17, {
|
|
48567
|
+
children: [
|
|
48568
|
+
/* @__PURE__ */ jsx45("link", {
|
|
48569
|
+
rel: "stylesheet",
|
|
48570
|
+
href: "/ask/assets/app.css"
|
|
48571
|
+
}),
|
|
48572
|
+
/* @__PURE__ */ jsx45("link", {
|
|
48573
|
+
rel: "stylesheet",
|
|
48574
|
+
href: "/ask/assets/page.css"
|
|
48575
|
+
}),
|
|
48576
|
+
/* @__PURE__ */ jsxs29("div", {
|
|
48577
|
+
"data-web-chat-root": "",
|
|
48578
|
+
"data-guest-chat": "",
|
|
48579
|
+
"data-guest-name": "Rizom AI",
|
|
48580
|
+
"data-guest-label": "Rizom AI",
|
|
48581
|
+
"data-chat-api-path": "/api/chat/guest",
|
|
48582
|
+
children: [
|
|
48583
|
+
/* @__PURE__ */ jsx45("p", {
|
|
48584
|
+
children: "Connecting to public Ask\u2026"
|
|
48585
|
+
}),
|
|
48586
|
+
/* @__PURE__ */ jsx45("noscript", {
|
|
48587
|
+
children: "JavaScript is needed to ask a question. No question has been sent."
|
|
48588
|
+
})
|
|
48589
|
+
]
|
|
48590
|
+
}),
|
|
48591
|
+
/* @__PURE__ */ jsx45("script", {
|
|
48592
|
+
type: "module",
|
|
48593
|
+
src: "/ask/assets/app.js"
|
|
48594
|
+
})
|
|
48595
|
+
]
|
|
48596
|
+
});
|
|
48597
|
+
}
|
|
48598
|
+
var publicAskSections = sectionGroup("public-ask", {
|
|
48599
|
+
conversation: defineSection(exports_external.object({}), PublicAsk, {
|
|
48600
|
+
title: "Public Ask",
|
|
48601
|
+
description: "The shared guest conversation inside the site's own layout"
|
|
48602
|
+
})
|
|
48603
|
+
});
|
|
48604
|
+
|
|
48559
48605
|
// src/site.ts
|
|
48560
48606
|
var rizomAiSite = createRizomSite({
|
|
48561
48607
|
packageName: "@rizom/site-rizom-ai",
|
|
@@ -48569,6 +48615,7 @@ var rizomAiSite = createRizomSite({
|
|
|
48569
48615
|
homeSections,
|
|
48570
48616
|
livingMemorySections,
|
|
48571
48617
|
brainSections,
|
|
48618
|
+
publicAskSections,
|
|
48572
48619
|
workSections,
|
|
48573
48620
|
foundationSections
|
|
48574
48621
|
],
|
|
@@ -48604,4 +48651,4 @@ export {
|
|
|
48604
48651
|
workSections
|
|
48605
48652
|
};
|
|
48606
48653
|
|
|
48607
|
-
//# debugId=
|
|
48654
|
+
//# debugId=E0D21FAE8EDA731364756E2164756E21
|