@pitcher/canvas-ui 2026.1.8-121249-beta → 2026.1.8-154045

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/canvas-ui.js CHANGED
@@ -88224,6 +88224,7 @@ async function crmQueryAdaptive(payload) {
88224
88224
  const fields = extractFieldsFromSoql(query2);
88225
88225
  const objectName = extractObjectFromSoql(query2);
88226
88226
  const smartQuery = convertSoqlToSmartQuery(query2);
88227
+ console.log(`Smart Query: `, smartQuery);
88227
88228
  const smartStoreResults = await crmSmartQuery({ query: smartQuery });
88228
88229
  const records = transformSmartStoreResults(smartStoreResults, fields, objectName);
88229
88230
  return {
@@ -94085,6 +94086,391 @@ function useContentSelector() {
94085
94086
  };
94086
94087
  }
94087
94088
 
94089
+ const generateNewCollection$2 = (t) => ({
94090
+ name: t("canvasUI.collectionSelector.defaultNewCollectionName"),
94091
+ groups: [],
94092
+ hide_footer: false
94093
+ });
94094
+ const generateNewCollectionStructure = () => ({ name: "", groups: [] });
94095
+ const getUniqueSlides = (uniqueSlides, newSlides) => [
94096
+ ...uniqueSlides,
94097
+ ...newSlides.filter(
94098
+ (newSlide) => !uniqueSlides.some(
94099
+ (uniqueSlide) => newSlide.type === "slide" && uniqueSlide.type === "slide" && uniqueSlide.file.id === newSlide.file.id && uniqueSlide.slide.index === newSlide.slide.index
94100
+ )
94101
+ )
94102
+ ];
94103
+
94104
+ const getDefaultNewGroupName$1 = (t) => t("canvasUI.collectionSelector.defaultNewGroupName");
94105
+ const getDefaultGroupName$1 = (t) => t("canvasUI.collectionSelector.defaultGroupName");
94106
+ const getDefaultCollectionName = (t) => t("canvasUI.collectionSelector.defaultCollectionName");
94107
+ const generateNewEmptyGroup$2 = (t) => ({
94108
+ id: v4(),
94109
+ name: getDefaultNewGroupName$1(t),
94110
+ slides: []
94111
+ });
94112
+ const generateNewCollection$1 = (t) => ({
94113
+ name: t("canvasUI.collectionSelector.defaultNewCollectionName"),
94114
+ groups: [generateNewEmptyGroup$2(t)]
94115
+ });
94116
+ const generateNewCollectionSlide = (payload) => ({
94117
+ ...payload,
94118
+ id: v4(),
94119
+ type: "slide"
94120
+ });
94121
+ const generateNewCollectionFile = (file) => ({
94122
+ id: v4(),
94123
+ type: "file",
94124
+ file
94125
+ });
94126
+ const getUniqueFilesCount = (data) => {
94127
+ const fileIds = data.groups.flatMap(
94128
+ (group) => group.slides.map((slide) => {
94129
+ if (slide.file?.id) {
94130
+ return slide.file.id;
94131
+ } else if (slide.file_id) {
94132
+ return slide.file_id;
94133
+ }
94134
+ return null;
94135
+ }).filter(Boolean)
94136
+ );
94137
+ return new Set(fileIds).size;
94138
+ };
94139
+ const getGroupsCount = (data) => data.groups.length;
94140
+ const getSlidesCount = (data) => data.groups.reduce((acc, group) => acc + group.slides.length, 0);
94141
+
94142
+ function parsePptxFileToCollectionPlayer(t, _file) {
94143
+ const metadataSections = _file?.metadata?.pptx_data?.sections ?? [];
94144
+ const sections = metadataSections.length || _file.content_thumbnails.length === 0 ? metadataSections : [{ start: 0, end: _file.content_thumbnails.length - 1, name: null }];
94145
+ const sectionGroups = sections.map((section) => ({
94146
+ name: section.name ?? (_file.name || getDefaultGroupName$1(t)),
94147
+ slides: _file.content_thumbnails.slice(section.start, section.end + 1).map((url, index) => ({ url, index: section.start + index }))
94148
+ }));
94149
+ const file = {
94150
+ id: _file.id,
94151
+ pspdfkit_auth_payload: _file.pspdfkit_auth_payload,
94152
+ pspdfkit_document_id: _file.pspdfkit_document_id,
94153
+ pspdfkit_server_url: _file.pspdfkit_server_url,
94154
+ content_type: _file.content_type,
94155
+ content_url: _file.content_url,
94156
+ permissions: _file.permissions,
94157
+ thumbnail_url: _file.thumbnail_url ?? null,
94158
+ name: _file.name,
94159
+ type: _file.type,
94160
+ metadata: _file.metadata
94161
+ };
94162
+ return {
94163
+ name: file.name ?? getDefaultGroupName$1(t),
94164
+ groups: sectionGroups.map((section) => ({
94165
+ ...generateNewEmptyGroup$2(t),
94166
+ name: section.name,
94167
+ slides: section.slides.map(
94168
+ (slide) => generateNewCollectionSlide({
94169
+ file,
94170
+ slide
94171
+ })
94172
+ )
94173
+ }))
94174
+ };
94175
+ }
94176
+ function parsePdfFileToCollectionPlayer(t, file) {
94177
+ const slides = file.content_thumbnails.map(
94178
+ (url, index) => generateNewCollectionSlide({
94179
+ file: {
94180
+ id: file.id,
94181
+ pspdfkit_auth_payload: file.pspdfkit_auth_payload,
94182
+ pspdfkit_document_id: file.pspdfkit_document_id,
94183
+ pspdfkit_server_url: file.pspdfkit_server_url,
94184
+ content_type: file.content_type,
94185
+ content_url: file.content_url,
94186
+ permissions: file.permissions,
94187
+ thumbnail_url: file.thumbnail_url ?? null,
94188
+ name: file.name,
94189
+ type: file.type,
94190
+ metadata: file.metadata
94191
+ },
94192
+ slide: {
94193
+ index,
94194
+ url
94195
+ }
94196
+ })
94197
+ );
94198
+ return {
94199
+ name: file.name ?? getDefaultCollectionName(t),
94200
+ groups: [
94201
+ {
94202
+ ...generateNewEmptyGroup$2(t),
94203
+ name: file.name ?? getDefaultGroupName$1(t),
94204
+ slides
94205
+ }
94206
+ ]
94207
+ };
94208
+ }
94209
+ function parseFileToCollectionPlayer(t, file) {
94210
+ if (file.content_type === "pdf") {
94211
+ if (file.original_extension === "pptx" || file.metadata?.pptx_data?.sections?.length) {
94212
+ return parsePptxFileToCollectionPlayer(t, file);
94213
+ }
94214
+ return parsePdfFileToCollectionPlayer(t, file);
94215
+ }
94216
+ return {
94217
+ name: file.name ?? getDefaultCollectionName(t),
94218
+ groups: [
94219
+ {
94220
+ ...generateNewEmptyGroup$2(t),
94221
+ name: file.name ?? getDefaultGroupName$1(t),
94222
+ slides: [
94223
+ generateNewCollectionFile({
94224
+ id: file.id,
94225
+ pspdfkit_auth_payload: file.pspdfkit_auth_payload,
94226
+ pspdfkit_document_id: file.pspdfkit_document_id,
94227
+ pspdfkit_server_url: file.pspdfkit_server_url,
94228
+ content_type: file.content_type,
94229
+ content_url: file.content_url,
94230
+ permissions: file.permissions,
94231
+ thumbnail_url: file.thumbnail_url ?? null,
94232
+ name: file.name,
94233
+ type: file.type,
94234
+ metadata: file.metadata
94235
+ })
94236
+ ]
94237
+ }
94238
+ ]
94239
+ };
94240
+ }
94241
+ function parseContentSelectorToCollectionPlayerSlides({
94242
+ selectedItems,
94243
+ filesById
94244
+ }) {
94245
+ return selectedItems.reduce((acc, item) => {
94246
+ if (item.type === "file") {
94247
+ if (filesById[item.id].content_type === "pdf") {
94248
+ const pages = filesById[item.id].content_thumbnails.map(
94249
+ (contentThumbnail, index) => generateNewCollectionSlide({
94250
+ file: {
94251
+ id: item.id,
94252
+ pspdfkit_auth_payload: filesById[item.id].pspdfkit_auth_payload,
94253
+ pspdfkit_document_id: filesById[item.id].pspdfkit_document_id,
94254
+ pspdfkit_server_url: filesById[item.id].pspdfkit_server_url,
94255
+ content_type: filesById[item.id].content_type,
94256
+ content_url: filesById[item.id].content_url,
94257
+ permissions: item.permissions,
94258
+ thumbnail_url: item.thumbnail_url ?? null,
94259
+ name: item.name,
94260
+ type: filesById[item.id].type,
94261
+ metadata: item.metadata
94262
+ },
94263
+ slide: {
94264
+ index,
94265
+ url: contentThumbnail
94266
+ }
94267
+ })
94268
+ );
94269
+ return getUniqueSlides(acc, pages);
94270
+ }
94271
+ return [
94272
+ ...acc,
94273
+ generateNewCollectionFile({
94274
+ id: item.id,
94275
+ pspdfkit_auth_payload: filesById[item.id].pspdfkit_auth_payload,
94276
+ pspdfkit_document_id: filesById[item.id].pspdfkit_document_id,
94277
+ pspdfkit_server_url: filesById[item.id].pspdfkit_server_url,
94278
+ content_type: filesById[item.id].content_type,
94279
+ content_url: filesById[item.id].content_url,
94280
+ permissions: item.permissions,
94281
+ thumbnail_url: filesById[item.id].thumbnail_url,
94282
+ name: item.name,
94283
+ type: filesById[item.id].type,
94284
+ metadata: item.metadata
94285
+ })
94286
+ ];
94287
+ }
94288
+ return getUniqueSlides(acc, [
94289
+ generateNewCollectionSlide({
94290
+ file: {
94291
+ id: item.file.id,
94292
+ pspdfkit_auth_payload: filesById[item.file.id].pspdfkit_auth_payload,
94293
+ pspdfkit_document_id: filesById[item.file.id].pspdfkit_document_id,
94294
+ pspdfkit_server_url: filesById[item.file.id].pspdfkit_server_url,
94295
+ content_type: filesById[item.file.id].content_type,
94296
+ content_url: filesById[item.file.id].content_url,
94297
+ permissions: item.permissions,
94298
+ thumbnail_url: item.thumbnail_url ?? null,
94299
+ name: item.file.name,
94300
+ type: filesById[item.file.id].type,
94301
+ metadata: filesById[item.file.id].metadata
94302
+ },
94303
+ slide: {
94304
+ index: item.page_index,
94305
+ url: item.thumbnail_url ?? null
94306
+ }
94307
+ })
94308
+ ]);
94309
+ }, []);
94310
+ }
94311
+ function parseCollectionPlayerSlidesToContentSelector(slides) {
94312
+ if (!slides?.length) return [];
94313
+ return slides.reduce((acc, item) => {
94314
+ let selection = null;
94315
+ if ("file_id" in item) {
94316
+ const v2Item = item;
94317
+ if (!v2Item.file_id) {
94318
+ return acc;
94319
+ }
94320
+ if (typeof v2Item.index === "number") {
94321
+ selection = {
94322
+ fileId: v2Item.file_id,
94323
+ type: "page",
94324
+ pageIndex: v2Item.index
94325
+ };
94326
+ } else {
94327
+ selection = {
94328
+ fileId: v2Item.file_id,
94329
+ type: "file"
94330
+ };
94331
+ }
94332
+ } else {
94333
+ const v1Item = item;
94334
+ const fileId = v1Item.file?.id;
94335
+ if (!fileId) {
94336
+ return acc;
94337
+ }
94338
+ if (v1Item.type === "slide") {
94339
+ selection = {
94340
+ fileId,
94341
+ type: "page",
94342
+ pageIndex: v1Item.slide.index
94343
+ };
94344
+ } else {
94345
+ selection = {
94346
+ fileId,
94347
+ type: "file"
94348
+ };
94349
+ }
94350
+ }
94351
+ return [...acc, selection];
94352
+ }, []);
94353
+ }
94354
+ function transformFilesToCollectionPlayer(t, filesData, name = "Collection") {
94355
+ if (!Array.isArray(filesData)) {
94356
+ throw new Error("Expected an array of files");
94357
+ }
94358
+ const groups = filesData.reduce((acc, fileData, index) => {
94359
+ try {
94360
+ const fileId = fileData.id;
94361
+ const fileName = fileData.name || `File ${index + 1}`;
94362
+ const selectedPages = fileData.selectedPages;
94363
+ if (!fileId) {
94364
+ return acc;
94365
+ }
94366
+ let slidesToCreate = [];
94367
+ if (selectedPages && Array.isArray(selectedPages) && selectedPages.length > 0) {
94368
+ slidesToCreate = selectedPages.map((pageIndex) => ({
94369
+ id: `${fileId}-slide-${pageIndex}`,
94370
+ file_id: fileId,
94371
+ index: pageIndex
94372
+ }));
94373
+ } else {
94374
+ slidesToCreate = [
94375
+ {
94376
+ id: `${fileId}-file`,
94377
+ file_id: fileId,
94378
+ index: void 0
94379
+ // undefined means entire file, not a specific page
94380
+ }
94381
+ ];
94382
+ }
94383
+ acc.push({
94384
+ id: `group-${fileId}`,
94385
+ name: fileName,
94386
+ slides: slidesToCreate
94387
+ });
94388
+ return acc;
94389
+ } catch (error) {
94390
+ return acc;
94391
+ }
94392
+ }, []);
94393
+ return {
94394
+ name,
94395
+ groups
94396
+ };
94397
+ }
94398
+ function transformFilesToContentGrid(filesData) {
94399
+ if (!Array.isArray(filesData)) {
94400
+ throw new Error("Expected an array of files");
94401
+ }
94402
+ const items = filesData.reduce((acc, fileData) => {
94403
+ try {
94404
+ const fileId = fileData.id;
94405
+ const selectedPages = fileData.selectedPages;
94406
+ if (!fileId) {
94407
+ return acc;
94408
+ }
94409
+ let itemsToCreate = [];
94410
+ if (selectedPages && Array.isArray(selectedPages) && selectedPages.length > 0) {
94411
+ itemsToCreate = selectedPages.map((pageIndex) => ({
94412
+ file: {
94413
+ id: fileId,
94414
+ // ContentGrid will resolve these properties via data accessor or file resolution
94415
+ name: fileData.name || `File ${fileId}`,
94416
+ permissions: void 0,
94417
+ // Will be resolved
94418
+ tags: void 0,
94419
+ // Will be resolved
94420
+ content_url: void 0,
94421
+ // Will be resolved
94422
+ content_type: void 0,
94423
+ // Will be resolved
94424
+ content_extension: void 0,
94425
+ // Will be resolved
94426
+ expires_at: void 0
94427
+ // Will be resolved
94428
+ },
94429
+ slide: {
94430
+ index: pageIndex,
94431
+ url: void 0
94432
+ // Will be resolved from content_thumbnails
94433
+ },
94434
+ type: "slide"
94435
+ }));
94436
+ } else {
94437
+ itemsToCreate = [
94438
+ {
94439
+ file: {
94440
+ id: fileId,
94441
+ // ContentGrid will resolve these properties via data accessor or file resolution
94442
+ name: fileData.name || `File ${fileId}`,
94443
+ thumbnail_url: null,
94444
+ // Will be resolved
94445
+ content_thumbnails: null,
94446
+ // Will be resolved
94447
+ content_url: null,
94448
+ // Will be resolved - required for ContentGridFileProps but can be null
94449
+ content_type: null,
94450
+ // Will be resolved - required for ContentGridFileProps
94451
+ content_extension: null,
94452
+ // Will be resolved - required for ContentGridFileProps
94453
+ content_length: void 0,
94454
+ // Will be resolved
94455
+ permissions: void 0,
94456
+ // Will be resolved
94457
+ expires_at: void 0,
94458
+ // Will be resolved
94459
+ tags: void 0
94460
+ // Will be resolved
94461
+ },
94462
+ type: "file"
94463
+ }
94464
+ ];
94465
+ }
94466
+ return [...acc, ...itemsToCreate];
94467
+ } catch (error) {
94468
+ return acc;
94469
+ }
94470
+ }, []);
94471
+ return { items };
94472
+ }
94473
+
94088
94474
  function createNodeId(type) {
94089
94475
  return `${type || "UnknownType"}-${v4()}`;
94090
94476
  }
@@ -94683,6 +95069,81 @@ function findFirstEmptyContentGridNode(nodes) {
94683
95069
  }
94684
95070
  return null;
94685
95071
  }
95072
+ function findShareboxTargetCollectionPlayerNode(nodes) {
95073
+ for (const node of nodes) {
95074
+ if (node.type === ComponentTypes.CollectionPlayer && node.is_sharebox_target) {
95075
+ return node;
95076
+ }
95077
+ if (node.children) {
95078
+ const found = findShareboxTargetCollectionPlayerNode(node.children);
95079
+ if (found) {
95080
+ return found;
95081
+ }
95082
+ }
95083
+ }
95084
+ return null;
95085
+ }
95086
+ function findFirstEmptyCollectionPlayerNode(nodes) {
95087
+ for (const node of nodes) {
95088
+ if (node.type === ComponentTypes.CollectionPlayer) {
95089
+ const data = node.data;
95090
+ const hasContent = data?.groups?.some((g) => g.slides?.length > 0);
95091
+ if (!hasContent) {
95092
+ return node;
95093
+ }
95094
+ }
95095
+ if (node.children) {
95096
+ const found = findFirstEmptyCollectionPlayerNode(node.children);
95097
+ if (found) {
95098
+ return found;
95099
+ }
95100
+ }
95101
+ }
95102
+ return null;
95103
+ }
95104
+ function updateFirstCollectionPlayerWithShareboxItems(canvasContent, selectedItems, filesById) {
95105
+ let content = simpleDeepClone(canvasContent);
95106
+ let collectionPlayerNode = findShareboxTargetCollectionPlayerNode(content);
95107
+ if (!collectionPlayerNode) {
95108
+ collectionPlayerNode = findFirstEmptyCollectionPlayerNode(content);
95109
+ }
95110
+ if (!collectionPlayerNode) {
95111
+ console.info("No CollectionPlayer component found in the canvas content. Creating one...");
95112
+ const { newContent } = addCanvasComponent(canvasContent, {
95113
+ type: ComponentTypes.CollectionPlayer
95114
+ });
95115
+ content = newContent;
95116
+ collectionPlayerNode = findFirstEmptyCollectionPlayerNode(content);
95117
+ }
95118
+ if (!collectionPlayerNode) {
95119
+ console.error("Could not find or create a CollectionPlayer component in the canvas content");
95120
+ return content;
95121
+ }
95122
+ const data = prepareCollectionPlayerNodeData({ node: collectionPlayerNode, filesById, selectedItems });
95123
+ collectionPlayerNode.data = data;
95124
+ return content;
95125
+ }
95126
+ function prepareCollectionPlayerNodeData({
95127
+ selectedItems,
95128
+ filesById,
95129
+ node
95130
+ }) {
95131
+ const slides = parseContentSelectorToCollectionPlayerSlides({ selectedItems, filesById });
95132
+ const group = {
95133
+ id: v4(),
95134
+ name: "Shared Content",
95135
+ slides: slides.map((slide) => ({
95136
+ id: v4(),
95137
+ file_id: slide.file.id,
95138
+ index: slide.type === "slide" ? slide.slide.index : void 0
95139
+ }))
95140
+ };
95141
+ return {
95142
+ ...node?.data ?? {},
95143
+ name: "Sharebox Collection",
95144
+ groups: [group]
95145
+ };
95146
+ }
94686
95147
  function isMultimediaDataWithTheme(obj, value) {
94687
95148
  return obj && obj.type === "Multimedia" && obj.theme_meta && typeof value === "object" && value !== null;
94688
95149
  }
@@ -95890,8 +96351,8 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95890
96351
  }
95891
96352
  const emIndex = highlightValue.indexOf("<em>");
95892
96353
  if (emIndex === -1) return "";
95893
- const startChar = Math.max(0, emIndex - 100);
95894
- const endChar = Math.min(highlightValue.length, emIndex + 100);
96354
+ const startChar = Math.max(0, emIndex - 75);
96355
+ const endChar = Math.min(highlightValue.length, emIndex + 125);
95895
96356
  let truncated = highlightValue.substring(startChar, endChar);
95896
96357
  if (startChar > 0) truncated = "..." + truncated;
95897
96358
  if (endChar < highlightValue.length) truncated = truncated + "...";
@@ -96092,7 +96553,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96092
96553
  show: "",
96093
96554
  verticalAlignment: "top",
96094
96555
  "z-index": _ctx.zIndex,
96095
- "onUpdate:show": _cache[16] || (_cache[16] = ($event) => emit("toggleSearch", $event))
96556
+ "onUpdate:show": _cache[15] || (_cache[15] = ($event) => emit("toggleSearch", $event))
96096
96557
  }, {
96097
96558
  default: withCtx(() => [
96098
96559
  createElementVNode("div", {
@@ -96101,7 +96562,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96101
96562
  }, [
96102
96563
  createElementVNode("div", _hoisted_1$4w, [
96103
96564
  createElementVNode("div", _hoisted_2$3j, [
96104
- _cache[17] || (_cache[17] = createElementVNode("div", { class: "absolute left-2.5 top-1/2 transform -translate-y-1/2 z-10" }, [
96565
+ _cache[16] || (_cache[16] = createElementVNode("div", { class: "absolute left-2.5 top-1/2 transform -translate-y-1/2 z-10" }, [
96105
96566
  createElementVNode("i", { class: "c-icon far fa-search text-gray-400 text-l" })
96106
96567
  ], -1)),
96107
96568
  withDirectives(createElementVNode("input", {
@@ -96207,7 +96668,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96207
96668
  show: showFileTypeDropdown.value,
96208
96669
  "show-arrow": false,
96209
96670
  trigger: "manual",
96210
- onClickoutside: _cache[8] || (_cache[8] = ($event) => showFileTypeDropdown.value = false)
96671
+ onClickoutside: _cache[7] || (_cache[7] = ($event) => showFileTypeDropdown.value = false)
96211
96672
  }, {
96212
96673
  trigger: withCtx(() => [
96213
96674
  createVNode(unref(NTag), {
@@ -96220,20 +96681,12 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96220
96681
  themeOverrides: {
96221
96682
  borderRadius: "4px"
96222
96683
  },
96223
- onClick: _cache[7] || (_cache[7] = ($event) => showFileTypeDropdown.value = !showFileTypeDropdown.value)
96684
+ onClick: _cache[6] || (_cache[6] = ($event) => showFileTypeDropdown.value = !showFileTypeDropdown.value)
96224
96685
  }, {
96225
96686
  default: withCtx(() => [
96226
96687
  createElementVNode("div", _hoisted_10$C, [
96227
96688
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.filters.type")), 1),
96228
- selectedFileTypes.value.length ? (openBlock(), createElementBlock("span", _hoisted_11$x, ": " + toDisplayString(selectedFileTypes.value.length), 1)) : createCommentVNode("", true),
96229
- selectedFileTypes.value.length ? (openBlock(), createBlock(CIcon, {
96230
- key: 1,
96231
- class: "ml-1",
96232
- color: "var(--p-primary2)",
96233
- icon: "xmark",
96234
- size: "12",
96235
- onClick: _cache[6] || (_cache[6] = withModifiers(($event) => selectedFileTypes.value = [], ["stop"]))
96236
- })) : createCommentVNode("", true)
96689
+ selectedFileTypes.value.length ? (openBlock(), createElementBlock("span", _hoisted_11$x, ": " + toDisplayString(selectedFileTypes.value.length), 1)) : createCommentVNode("", true)
96237
96690
  ])
96238
96691
  ]),
96239
96692
  _: 1
@@ -96282,7 +96735,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96282
96735
  _: 1
96283
96736
  }, 8, ["show"]),
96284
96737
  hasActiveFilters.value ? (openBlock(), createElementBlock("div", _hoisted_14$h, [
96285
- _cache[18] || (_cache[18] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
96738
+ _cache[17] || (_cache[17] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
96286
96739
  createElementVNode("span", {
96287
96740
  class: "text-sm text-gray-600 hover:text-gray-800 font-normal cursor-pointer",
96288
96741
  onClick: clearAllFilters
@@ -96300,7 +96753,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96300
96753
  themeOverrides: {
96301
96754
  borderRadius: "4px"
96302
96755
  },
96303
- onClick: _cache[9] || (_cache[9] = ($event) => toggleCanvasFilter("saved_canvas"))
96756
+ onClick: _cache[8] || (_cache[8] = ($event) => toggleCanvasFilter("saved_canvas"))
96304
96757
  }, {
96305
96758
  default: withCtx(() => [
96306
96759
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.saved")), 1)
@@ -96317,7 +96770,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96317
96770
  themeOverrides: {
96318
96771
  borderRadius: "4px"
96319
96772
  },
96320
- onClick: _cache[10] || (_cache[10] = ($event) => toggleCanvasFilter("template"))
96773
+ onClick: _cache[9] || (_cache[9] = ($event) => toggleCanvasFilter("template"))
96321
96774
  }, {
96322
96775
  default: withCtx(() => [
96323
96776
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.templates")), 1)
@@ -96335,7 +96788,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96335
96788
  themeOverrides: {
96336
96789
  borderRadius: "4px"
96337
96790
  },
96338
- onClick: _cache[11] || (_cache[11] = ($event) => toggleCanvasFilter("product_template"))
96791
+ onClick: _cache[10] || (_cache[10] = ($event) => toggleCanvasFilter("product_template"))
96339
96792
  }, {
96340
96793
  default: withCtx(() => [
96341
96794
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.productTemplates")), 1)
@@ -96352,7 +96805,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96352
96805
  themeOverrides: {
96353
96806
  borderRadius: "4px"
96354
96807
  },
96355
- onClick: _cache[12] || (_cache[12] = ($event) => toggleCanvasFilter("section"))
96808
+ onClick: _cache[11] || (_cache[11] = ($event) => toggleCanvasFilter("section"))
96356
96809
  }, {
96357
96810
  default: withCtx(() => [
96358
96811
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.products")), 1)
@@ -96369,7 +96822,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96369
96822
  themeOverrides: {
96370
96823
  borderRadius: "4px"
96371
96824
  },
96372
- onClick: _cache[13] || (_cache[13] = ($event) => toggleCanvasFilter("block"))
96825
+ onClick: _cache[12] || (_cache[12] = ($event) => toggleCanvasFilter("block"))
96373
96826
  }, {
96374
96827
  default: withCtx(() => [
96375
96828
  createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.blocks")), 1)
@@ -96377,7 +96830,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96377
96830
  _: 1
96378
96831
  }, 8, ["style"]),
96379
96832
  selectedCanvasFilters.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_15$f, [
96380
- _cache[19] || (_cache[19] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
96833
+ _cache[18] || (_cache[18] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
96381
96834
  createElementVNode("span", {
96382
96835
  class: "text-sm text-gray-600 hover:text-gray-800 font-normal cursor-pointer",
96383
96836
  onClick: clearCanvasFilters
@@ -96407,7 +96860,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96407
96860
  }), 128))
96408
96861
  ]),
96409
96862
  recentlyOpenedDocs.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
96410
- _cache[20] || (_cache[20] = createElementVNode("hr", { class: "border-0 h-px bg-gray-200 mt-2 mb-3 w-full" }, null, -1)),
96863
+ _cache[19] || (_cache[19] = createElementVNode("hr", { class: "border-0 h-px bg-gray-200 mt-2 mb-3 w-full" }, null, -1)),
96411
96864
  createElementVNode("div", _hoisted_21$7, [
96412
96865
  createElementVNode("span", _hoisted_22$5, toDisplayString(unref(t)("canvasUI.components.fileViewer.recentlyOpened")), 1)
96413
96866
  ]),
@@ -96524,7 +96977,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96524
96977
  filteredContentFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_44$4, [
96525
96978
  createElementVNode("span", {
96526
96979
  class: "text-sm text-gray-600 hover:text-gray-800 font-bold flex items-center cursor-pointer",
96527
- onClick: _cache[14] || (_cache[14] = ($event) => searchType.value = "content")
96980
+ onClick: _cache[13] || (_cache[13] = ($event) => searchType.value = "content")
96528
96981
  }, [
96529
96982
  createTextVNode(toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.actions.viewAll")) + " ", 1),
96530
96983
  createVNode(CIcon, {
@@ -96576,7 +97029,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96576
97029
  filteredCanvasFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_55$2, [
96577
97030
  createElementVNode("span", {
96578
97031
  class: "text-sm text-gray-600 hover:text-gray-800 font-bold flex items-center cursor-pointer",
96579
- onClick: _cache[15] || (_cache[15] = ($event) => searchType.value = "canvases")
97032
+ onClick: _cache[14] || (_cache[14] = ($event) => searchType.value = "canvases")
96580
97033
  }, [
96581
97034
  createTextVNode(toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.actions.viewAll")) + " ", 1),
96582
97035
  createVNode(CIcon, {
@@ -96732,7 +97185,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96732
97185
  }
96733
97186
  });
96734
97187
 
96735
- const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-052f4440"]]);
97188
+ const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-da2357d4"]]);
96736
97189
 
96737
97190
  const BulletListExtended = BulletList.extend({
96738
97191
  addOptions() {
@@ -132252,44 +132705,6 @@ const _sfc_main$3o = /* @__PURE__ */ defineComponent({
132252
132705
  }
132253
132706
  });
132254
132707
 
132255
- const getDefaultNewGroupName$1 = (t) => t("canvasUI.collectionSelector.defaultNewGroupName");
132256
- const getDefaultGroupName$1 = (t) => t("canvasUI.collectionSelector.defaultGroupName");
132257
- const getDefaultCollectionName = (t) => t("canvasUI.collectionSelector.defaultCollectionName");
132258
- const generateNewEmptyGroup$2 = (t) => ({
132259
- id: v4(),
132260
- name: getDefaultNewGroupName$1(t),
132261
- slides: []
132262
- });
132263
- const generateNewCollection$2 = (t) => ({
132264
- name: t("canvasUI.collectionSelector.defaultNewCollectionName"),
132265
- groups: [generateNewEmptyGroup$2(t)]
132266
- });
132267
- const generateNewCollectionSlide = (payload) => ({
132268
- ...payload,
132269
- id: v4(),
132270
- type: "slide"
132271
- });
132272
- const generateNewCollectionFile = (file) => ({
132273
- id: v4(),
132274
- type: "file",
132275
- file
132276
- });
132277
- const getUniqueFilesCount = (data) => {
132278
- const fileIds = data.groups.flatMap(
132279
- (group) => group.slides.map((slide) => {
132280
- if (slide.file?.id) {
132281
- return slide.file.id;
132282
- } else if (slide.file_id) {
132283
- return slide.file_id;
132284
- }
132285
- return null;
132286
- }).filter(Boolean)
132287
- );
132288
- return new Set(fileIds).size;
132289
- };
132290
- const getGroupsCount = (data) => data.groups.length;
132291
- const getSlidesCount = (data) => data.groups.reduce((acc, group) => acc + group.slides.length, 0);
132292
-
132293
132708
  const useCollectionSelector = (selectCollectionPlayerContent) => {
132294
132709
  const { updateNodeDataById, setComponentSettingsMode, contentRef, onCollectionPlayerContentChange } = useCanvas$1();
132295
132710
  const trackContentChange = (id, data) => {
@@ -132688,7 +133103,7 @@ const _sfc_main$3n = /* @__PURE__ */ defineComponent({
132688
133103
  } else {
132689
133104
  let withData = void 0;
132690
133105
  if (selection.type === ComponentTypes.CollectionPlayer) {
132691
- withData = generateNewCollection$2(t);
133106
+ withData = generateNewCollection$1(t);
132692
133107
  }
132693
133108
  addComponentAtParentId(
132694
133109
  selection.type,
@@ -139518,353 +139933,6 @@ const _sfc_main$2S = /* @__PURE__ */ defineComponent({
139518
139933
 
139519
139934
  const CollectionPlayerApp = /* @__PURE__ */ _export_sfc(_sfc_main$2S, [["__scopeId", "data-v-1c2ca5d7"]]);
139520
139935
 
139521
- const generateNewCollection$1 = (t) => ({
139522
- name: t("canvasUI.collectionSelector.defaultNewCollectionName"),
139523
- groups: [],
139524
- hide_footer: false
139525
- });
139526
- const generateNewCollectionStructure = () => ({ name: "", groups: [] });
139527
- const getUniqueSlides = (uniqueSlides, newSlides) => [
139528
- ...uniqueSlides,
139529
- ...newSlides.filter(
139530
- (newSlide) => !uniqueSlides.some(
139531
- (uniqueSlide) => newSlide.type === "slide" && uniqueSlide.type === "slide" && uniqueSlide.file.id === newSlide.file.id && uniqueSlide.slide.index === newSlide.slide.index
139532
- )
139533
- )
139534
- ];
139535
-
139536
- function parsePptxFileToCollectionPlayer(t, _file) {
139537
- const metadataSections = _file?.metadata?.pptx_data?.sections ?? [];
139538
- const sections = metadataSections.length || _file.content_thumbnails.length === 0 ? metadataSections : [{ start: 0, end: _file.content_thumbnails.length - 1, name: null }];
139539
- const sectionGroups = sections.map((section) => ({
139540
- name: section.name ?? (_file.name || getDefaultGroupName$1(t)),
139541
- slides: _file.content_thumbnails.slice(section.start, section.end + 1).map((url, index) => ({ url, index: section.start + index }))
139542
- }));
139543
- const file = {
139544
- id: _file.id,
139545
- pspdfkit_auth_payload: _file.pspdfkit_auth_payload,
139546
- pspdfkit_document_id: _file.pspdfkit_document_id,
139547
- pspdfkit_server_url: _file.pspdfkit_server_url,
139548
- content_type: _file.content_type,
139549
- content_url: _file.content_url,
139550
- permissions: _file.permissions,
139551
- thumbnail_url: _file.thumbnail_url ?? null,
139552
- name: _file.name,
139553
- type: _file.type,
139554
- metadata: _file.metadata
139555
- };
139556
- return {
139557
- name: file.name ?? getDefaultGroupName$1(t),
139558
- groups: sectionGroups.map((section) => ({
139559
- ...generateNewEmptyGroup$2(t),
139560
- name: section.name,
139561
- slides: section.slides.map(
139562
- (slide) => generateNewCollectionSlide({
139563
- file,
139564
- slide
139565
- })
139566
- )
139567
- }))
139568
- };
139569
- }
139570
- function parsePdfFileToCollectionPlayer(t, file) {
139571
- const slides = file.content_thumbnails.map(
139572
- (url, index) => generateNewCollectionSlide({
139573
- file: {
139574
- id: file.id,
139575
- pspdfkit_auth_payload: file.pspdfkit_auth_payload,
139576
- pspdfkit_document_id: file.pspdfkit_document_id,
139577
- pspdfkit_server_url: file.pspdfkit_server_url,
139578
- content_type: file.content_type,
139579
- content_url: file.content_url,
139580
- permissions: file.permissions,
139581
- thumbnail_url: file.thumbnail_url ?? null,
139582
- name: file.name,
139583
- type: file.type,
139584
- metadata: file.metadata
139585
- },
139586
- slide: {
139587
- index,
139588
- url
139589
- }
139590
- })
139591
- );
139592
- return {
139593
- name: file.name ?? getDefaultCollectionName(t),
139594
- groups: [
139595
- {
139596
- ...generateNewEmptyGroup$2(t),
139597
- name: file.name ?? getDefaultGroupName$1(t),
139598
- slides
139599
- }
139600
- ]
139601
- };
139602
- }
139603
- function parseFileToCollectionPlayer(t, file) {
139604
- if (file.content_type === "pdf") {
139605
- if (file.original_extension === "pptx" || file.metadata?.pptx_data?.sections?.length) {
139606
- return parsePptxFileToCollectionPlayer(t, file);
139607
- }
139608
- return parsePdfFileToCollectionPlayer(t, file);
139609
- }
139610
- return {
139611
- name: file.name ?? getDefaultCollectionName(t),
139612
- groups: [
139613
- {
139614
- ...generateNewEmptyGroup$2(t),
139615
- name: file.name ?? getDefaultGroupName$1(t),
139616
- slides: [
139617
- generateNewCollectionFile({
139618
- id: file.id,
139619
- pspdfkit_auth_payload: file.pspdfkit_auth_payload,
139620
- pspdfkit_document_id: file.pspdfkit_document_id,
139621
- pspdfkit_server_url: file.pspdfkit_server_url,
139622
- content_type: file.content_type,
139623
- content_url: file.content_url,
139624
- permissions: file.permissions,
139625
- thumbnail_url: file.thumbnail_url ?? null,
139626
- name: file.name,
139627
- type: file.type,
139628
- metadata: file.metadata
139629
- })
139630
- ]
139631
- }
139632
- ]
139633
- };
139634
- }
139635
- function parseContentSelectorToCollectionPlayerSlides({
139636
- selectedItems,
139637
- filesById
139638
- }) {
139639
- return selectedItems.reduce((acc, item) => {
139640
- if (item.type === "file") {
139641
- if (filesById[item.id].content_type === "pdf") {
139642
- const pages = filesById[item.id].content_thumbnails.map(
139643
- (contentThumbnail, index) => generateNewCollectionSlide({
139644
- file: {
139645
- id: item.id,
139646
- pspdfkit_auth_payload: filesById[item.id].pspdfkit_auth_payload,
139647
- pspdfkit_document_id: filesById[item.id].pspdfkit_document_id,
139648
- pspdfkit_server_url: filesById[item.id].pspdfkit_server_url,
139649
- content_type: filesById[item.id].content_type,
139650
- content_url: filesById[item.id].content_url,
139651
- permissions: item.permissions,
139652
- thumbnail_url: item.thumbnail_url ?? null,
139653
- name: item.name,
139654
- type: filesById[item.id].type,
139655
- metadata: item.metadata
139656
- },
139657
- slide: {
139658
- index,
139659
- url: contentThumbnail
139660
- }
139661
- })
139662
- );
139663
- return getUniqueSlides(acc, pages);
139664
- }
139665
- return [
139666
- ...acc,
139667
- generateNewCollectionFile({
139668
- id: item.id,
139669
- pspdfkit_auth_payload: filesById[item.id].pspdfkit_auth_payload,
139670
- pspdfkit_document_id: filesById[item.id].pspdfkit_document_id,
139671
- pspdfkit_server_url: filesById[item.id].pspdfkit_server_url,
139672
- content_type: filesById[item.id].content_type,
139673
- content_url: filesById[item.id].content_url,
139674
- permissions: item.permissions,
139675
- thumbnail_url: filesById[item.id].thumbnail_url,
139676
- name: item.name,
139677
- type: filesById[item.id].type,
139678
- metadata: item.metadata
139679
- })
139680
- ];
139681
- }
139682
- return getUniqueSlides(acc, [
139683
- generateNewCollectionSlide({
139684
- file: {
139685
- id: item.file.id,
139686
- pspdfkit_auth_payload: filesById[item.file.id].pspdfkit_auth_payload,
139687
- pspdfkit_document_id: filesById[item.file.id].pspdfkit_document_id,
139688
- pspdfkit_server_url: filesById[item.file.id].pspdfkit_server_url,
139689
- content_type: filesById[item.file.id].content_type,
139690
- content_url: filesById[item.file.id].content_url,
139691
- permissions: item.permissions,
139692
- thumbnail_url: item.thumbnail_url ?? null,
139693
- name: item.file.name,
139694
- type: filesById[item.file.id].type,
139695
- metadata: filesById[item.file.id].metadata
139696
- },
139697
- slide: {
139698
- index: item.page_index,
139699
- url: item.thumbnail_url ?? null
139700
- }
139701
- })
139702
- ]);
139703
- }, []);
139704
- }
139705
- function parseCollectionPlayerSlidesToContentSelector(slides) {
139706
- if (!slides?.length) return [];
139707
- return slides.reduce((acc, item) => {
139708
- let selection = null;
139709
- if ("file_id" in item) {
139710
- const v2Item = item;
139711
- if (!v2Item.file_id) {
139712
- return acc;
139713
- }
139714
- if (typeof v2Item.index === "number") {
139715
- selection = {
139716
- fileId: v2Item.file_id,
139717
- type: "page",
139718
- pageIndex: v2Item.index
139719
- };
139720
- } else {
139721
- selection = {
139722
- fileId: v2Item.file_id,
139723
- type: "file"
139724
- };
139725
- }
139726
- } else {
139727
- const v1Item = item;
139728
- const fileId = v1Item.file?.id;
139729
- if (!fileId) {
139730
- return acc;
139731
- }
139732
- if (v1Item.type === "slide") {
139733
- selection = {
139734
- fileId,
139735
- type: "page",
139736
- pageIndex: v1Item.slide.index
139737
- };
139738
- } else {
139739
- selection = {
139740
- fileId,
139741
- type: "file"
139742
- };
139743
- }
139744
- }
139745
- return [...acc, selection];
139746
- }, []);
139747
- }
139748
- function transformFilesToCollectionPlayer(t, filesData, name = "Collection") {
139749
- if (!Array.isArray(filesData)) {
139750
- throw new Error("Expected an array of files");
139751
- }
139752
- const groups = filesData.reduce((acc, fileData, index) => {
139753
- try {
139754
- const fileId = fileData.id;
139755
- const fileName = fileData.name || `File ${index + 1}`;
139756
- const selectedPages = fileData.selectedPages;
139757
- if (!fileId) {
139758
- return acc;
139759
- }
139760
- let slidesToCreate = [];
139761
- if (selectedPages && Array.isArray(selectedPages) && selectedPages.length > 0) {
139762
- slidesToCreate = selectedPages.map((pageIndex) => ({
139763
- id: `${fileId}-slide-${pageIndex}`,
139764
- file_id: fileId,
139765
- index: pageIndex
139766
- }));
139767
- } else {
139768
- slidesToCreate = [
139769
- {
139770
- id: `${fileId}-file`,
139771
- file_id: fileId,
139772
- index: void 0
139773
- // undefined means entire file, not a specific page
139774
- }
139775
- ];
139776
- }
139777
- acc.push({
139778
- id: `group-${fileId}`,
139779
- name: fileName,
139780
- slides: slidesToCreate
139781
- });
139782
- return acc;
139783
- } catch (error) {
139784
- return acc;
139785
- }
139786
- }, []);
139787
- return {
139788
- name,
139789
- groups
139790
- };
139791
- }
139792
- function transformFilesToContentGrid(filesData) {
139793
- if (!Array.isArray(filesData)) {
139794
- throw new Error("Expected an array of files");
139795
- }
139796
- const items = filesData.reduce((acc, fileData) => {
139797
- try {
139798
- const fileId = fileData.id;
139799
- const selectedPages = fileData.selectedPages;
139800
- if (!fileId) {
139801
- return acc;
139802
- }
139803
- let itemsToCreate = [];
139804
- if (selectedPages && Array.isArray(selectedPages) && selectedPages.length > 0) {
139805
- itemsToCreate = selectedPages.map((pageIndex) => ({
139806
- file: {
139807
- id: fileId,
139808
- // ContentGrid will resolve these properties via data accessor or file resolution
139809
- name: fileData.name || `File ${fileId}`,
139810
- permissions: void 0,
139811
- // Will be resolved
139812
- tags: void 0,
139813
- // Will be resolved
139814
- content_url: void 0,
139815
- // Will be resolved
139816
- content_type: void 0,
139817
- // Will be resolved
139818
- content_extension: void 0,
139819
- // Will be resolved
139820
- expires_at: void 0
139821
- // Will be resolved
139822
- },
139823
- slide: {
139824
- index: pageIndex,
139825
- url: void 0
139826
- // Will be resolved from content_thumbnails
139827
- },
139828
- type: "slide"
139829
- }));
139830
- } else {
139831
- itemsToCreate = [
139832
- {
139833
- file: {
139834
- id: fileId,
139835
- // ContentGrid will resolve these properties via data accessor or file resolution
139836
- name: fileData.name || `File ${fileId}`,
139837
- thumbnail_url: null,
139838
- // Will be resolved
139839
- content_thumbnails: null,
139840
- // Will be resolved
139841
- content_url: null,
139842
- // Will be resolved - required for ContentGridFileProps but can be null
139843
- content_type: null,
139844
- // Will be resolved - required for ContentGridFileProps
139845
- content_extension: null,
139846
- // Will be resolved - required for ContentGridFileProps
139847
- content_length: void 0,
139848
- // Will be resolved
139849
- permissions: void 0,
139850
- // Will be resolved
139851
- expires_at: void 0,
139852
- // Will be resolved
139853
- tags: void 0
139854
- // Will be resolved
139855
- },
139856
- type: "file"
139857
- }
139858
- ];
139859
- }
139860
- return [...acc, ...itemsToCreate];
139861
- } catch (error) {
139862
- return acc;
139863
- }
139864
- }, []);
139865
- return { items };
139866
- }
139867
-
139868
139936
  function useLegacyCollectionFileLoader() {
139869
139937
  const fetchFileById = inject("fetchFileById");
139870
139938
  const canvasFileCache = inject("canvasFileCache", ref(/* @__PURE__ */ new Map()));
@@ -162566,7 +162634,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
162566
162634
  // Add height only if already present or if the form value is set (backwards compatibility)
162567
162635
  ...activeSettingsNode.value?.type === ComponentTypes.CollectionPlayer && ("height" in activeSettingsNode.value || formValues.height) ? { height: formValues.height } : {},
162568
162636
  ...isAdminSectionTemplateWithFlag.value ? { allow_admins_to_overwrite: formValues.allowAdminsToOverwrite } : {},
162569
- ...activeSettingsNode.value?.type === "ContentGrid" ? { is_sharebox_target: formValues.isShareboxTarget } : {},
162637
+ ...activeSettingsNode.value?.type && ["ContentGrid", "CollectionPlayer"].includes(activeSettingsNode.value.type) ? { is_sharebox_target: formValues.isShareboxTarget } : {},
162570
162638
  ...newData
162571
162639
  });
162572
162640
  };
@@ -162856,6 +162924,15 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
162856
162924
  ]),
162857
162925
  _: 1
162858
162926
  }, 8, ["checked"]),
162927
+ createVNode(unref(NCheckbox), {
162928
+ checked: formValues.isShareboxTarget,
162929
+ "onUpdate:checked": _cache[18] || (_cache[18] = ($event) => formValues.isShareboxTarget = $event)
162930
+ }, {
162931
+ default: withCtx(() => [
162932
+ createTextVNode(toDisplayString(unref(t)("canvasUI.canvasBuilder.canvasSettings.form.messages.isShareboxTarget")), 1)
162933
+ ]),
162934
+ _: 1
162935
+ }, 8, ["checked"]),
162859
162936
  unref(launchDarkly).enable_collection_player_data_accessor && (unref(isTemplate) || selectedCollectionPlayerDataPath.value) ? (openBlock(), createElementBlock("div", _hoisted_5$w, [
162860
162937
  createElementVNode("div", _hoisted_6$s, [
162861
162938
  createElementVNode("label", null, toDisplayString(unref(t)("canvasUI.canvasBuilder.canvasSettings.form.label.collectionPlayerDataAccessor")), 1),
@@ -162929,7 +163006,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
162929
163006
  block: "",
162930
163007
  class: "mt-auto",
162931
163008
  type: "primary",
162932
- onClick: _cache[18] || (_cache[18] = ($event) => updateShow(false))
163009
+ onClick: _cache[19] || (_cache[19] = ($event) => updateShow(false))
162933
163010
  }, {
162934
163011
  default: withCtx(() => [
162935
163012
  createTextVNode(toDisplayString(unref(t)("canvasUI.common.done")), 1)
@@ -162943,7 +163020,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
162943
163020
  }
162944
163021
  });
162945
163022
 
162946
- const ComponentDrawerSettings = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-c7a7411e"]]);
163023
+ const ComponentDrawerSettings = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-dce6a881"]]);
162947
163024
 
162948
163025
  function useConnectUpload() {
162949
163026
  async function uploadToConnect(formData) {
@@ -169595,7 +169672,7 @@ const clearCache = () => {
169595
169672
  const _export$3 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
169596
169673
  __proto__: null,
169597
169674
  clearCache,
169598
- generateNewCollection: generateNewCollection$1,
169675
+ generateNewCollection: generateNewCollection$2,
169599
169676
  generateNewCollectionStructure,
169600
169677
  getUniqueSlides,
169601
169678
  provideAppStore: provideAppStore$3,
@@ -170579,7 +170656,7 @@ function provideAppStore$2({
170579
170656
  translations,
170580
170657
  contentRef
170581
170658
  }) {
170582
- const rawCollection = ref({ ...generateNewCollection$2(t), ...cloneDeep(initialCollection) ?? {} });
170659
+ const rawCollection = ref({ ...generateNewCollection$1(t), ...cloneDeep(initialCollection) ?? {} });
170583
170660
  const fileLoader = useLegacyCollectionFileLoader();
170584
170661
  const childModalZIndex = zIndex !== void 0 ? zIndex + 1 : void 0;
170585
170662
  const isSettingsButtonVisible = computed(() => !!openSettingsFn || !!closeOnSettings);
@@ -181652,7 +181729,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
181652
181729
 
181653
181730
  const _export$2 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
181654
181731
  __proto__: null,
181655
- generateNewCollection: generateNewCollection$2,
181732
+ generateNewCollection: generateNewCollection$1,
181656
181733
  generateNewCollectionFile,
181657
181734
  generateNewCollectionSlide,
181658
181735
  generateNewEmptyGroup: generateNewEmptyGroup$2,
@@ -184098,5 +184175,5 @@ const localeNames = {
184098
184175
  };
184099
184176
  const localeDropdownOptions = supportedLocales.map((locale) => ({ key: locale, name: localeNames[locale] }));
184100
184177
 
184101
- export { ADMIN_API_METHOD_TYPES, ADMIN_API_TYPES, ADMIN_MESSAGE, ADMIN_MESSAGE_TYPES, APPS_DB, AccessTypeEnum, App$3 as AgendaSelectorApp, AppTypeEnum, _sfc_main as AssetsManagerApp, App$1 as Browser, BulkUpdateMetadataOperationEnum, BulkUpdateTagsOperationEnum, CALL_STORAGE_KEY, CANVASES, CANVAS_HOOKS, CANVAS_TYPOGRAPHY_CSS_PROPERTIES, CANVAS_TYPOGRAPHY_PRESETS, CAlgoliaSearch, CAssignedCanvasesManagement, _sfc_main$4p as CAssignedCanvasesManagementToolbar, _sfc_main$6s as CAvatar, _sfc_main$4O as CBlockManagement, CButton, _sfc_main$5f as CCanvasDeleteDialogContent, _sfc_main$5g as CCanvasMetadataFilters, CCanvasSelector, _sfc_main$6V as CCard, CCarousel, _sfc_main$3G as CCatalogIqSwitcher, _sfc_main$6U as CCheckbox, _sfc_main$3A as CChip, CCollapse, _sfc_main$6R as CCollapseItem, _sfc_main$6r as CCollapseTransition, NColorPicker as CColorPicker, CComponentListItem, CConfigEditor, NConfigProvider as CConfigProvider, _sfc_main$6h as CConfirmationAction, CConfirmationContent, CConfirmationHeader, CConfirmationModal, CContactSelector, CContactSelectorSelected, _sfc_main$68 as CContentError, _sfc_main$65 as CCreateCanvasModal, _sfc_main$64 as CCreateTemplateSectionBlockModal, _sfc_main$5V as CCreateThemeModal, CDP_EVENT_TYPE, CDataTable, NDatePicker as CDatePicker, CDateRangeFilter, CDetailPageSectionButtons, NDialogProvider as CDialogProvider, _sfc_main$6P as CDivider, _sfc_main$6O as CDrawer, _sfc_main$6N as CDrawerContent, _sfc_main$6M as CDropdown, _sfc_main$6p as CEmpty, _sfc_main$4m as CEntitySelector, _sfc_main$6L as CErrorFullScreen, _sfc_main$6n as CFeedback, _sfc_main$3o as CFileAccessManagement, _sfc_main$6C as CFileAttributes, _sfc_main$3p as CFilePanel, _sfc_main$6I as CFileThumbnail, CFileViewer, CFilesAccessInfo, _sfc_main$3$ as CFilesAccessManage, _sfc_main$3I as CFilesFolderDeleteDialogContent, NForm as CForm, NFormItem as CFormItem, NFormItemCol as CFormItemCol, NFormItemGridItem as CFormItemGi, NFormItemGridItem as CFormItemGridItem, FormItemRow as CFormItemRow, _sfc_main$4h as CFullScreenLoader, NGridItem as CGi, CGlobalLoader, _sfc_main$5O as CGlobalSearch, GlobalStyle as CGlobalStyle, NGrid as CGrid, NGridItem as CGridItem, CGroupsAccessInfo, NH1 as CH1, NH2 as CH2, NH3 as CH3, NH4 as CH4, NH5 as CH5, NH6 as CH6, _sfc_main$6m as CHelpText, CIcon, _sfc_main$6K as CImage, _sfc_main$4W as CInfoBadge, _sfc_main$6B as CInput, NInputNumber as CInputNumber, _sfc_main$3y as CKnockNotificationsAppWrapper, CLIENT_TYPE, NLayout as CLayout, NLayoutContent as CLayoutContent, LayoutFooter as CLayoutFooter, LayoutHeader as CLayoutHeader, LayoutSider as CLayoutSider, _sfc_main$4X as CList, NMessageProvider as CMessageProvider, _sfc_main$5L as CMetaDataBadge, _sfc_main$6A as CModal, CMonacoEditor, CMovableWidget, CMultiSelect, NNotificationProvider as CNotificationProvider, NPagination as CPagination, _sfc_main$6l as CPillSelect, _sfc_main$6z as CPopover, _sfc_main$6J as CProcessingOverlay, NProgress as CProgress, _sfc_main$5s as CRichTextEditor, _sfc_main$4q as CSavedCanvasesManagement, CSearch, _sfc_main$6x as CSearchOnClick, CSearchOnClickWithSuggestions, CSecondaryNav, _sfc_main$4R as CSectionManagement, CSelect, CSelectFilter, _sfc_main$3x as CSettingsEditor, CShortcut, CSingleSelect, NSkeleton as CSkeleton, _sfc_main$3C as CSlideViewer, NSpace as CSpace, _sfc_main$6q as CSpin, _sfc_main$6o as CSwitch, CTable, _sfc_main$5c as CTableInput, CTableMore, CTableSelect, CTableTag, _sfc_main$6F as CTag, CTags, CTemplateAccessInfo, _sfc_main$3_ as CTemplateAccessManage, _sfc_main$4G as CTemplateManagement, text as CText, _sfc_main$6v as CThemeEditor, _sfc_main$4B as CThemeManagement, _sfc_main$5l as CToastProvider, CToolbar, _sfc_main$6t as CTooltip, CUpsertFolderModal, _sfc_main$5p as CUserAvatar, CUserMenu, CUsersAccessInfo, CUsersGroupsAccessManage, _sfc_main$5m as CVirtualTable, _sfc_main$48 as CWarningAlert, CallState, CanvasActions, _sfc_main$15 as CanvasBuilderApp, CanvasBuilderMode, CanvasExcludedComponentTypesEnum, CanvasHistoryAction, App as CanvasSelector, CanvasStatus, CanvasThemeStatus, CanvasesViewsTypes, CollaborationRoleEnum, CollectionPlayerApp, App$4 as CollectionSelectorApp, ComponentIcon, ComponentTypes, ContactSelectorQuickFilterType, ContentGridLayoutTypes, ContentSelector, CoreFolderEntityType, DATE_TIME_FORMAT, DEFAULT_ADMIN_TABLE_HEIGHT, DEFAULT_ADMIN_TABLE_WITH_PAGINATION_HEIGHT, DEFAULT_GLOBAL_COMPONENT_SPACING, DEFAULT_GLOBAL_COMPONENT_SPACING_INTERVAL, DEFAULT_ITEMS_PER_PAGE, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PEER_CONNECTIVITY_VERSION, DEFAULT_PITCHER_SETTINGS, DSR_API_METHOD_TYPES, DSR_API_TYPES, DSR_MESSAGE, DSR_MESSAGE_TYPES, DSR_TYPE, DefaultExpiresAtEnum, DownloadTypeEnum, EMBED_TYPE, EventAction, EventExternalObjectContentTypeEnum, EventStatusEnum, FileContentTypeEnum, FileStatusEnum, FileTypeEnum, GlobalSearchResultType, GridLayoutTypes, HIDE_IF_EMPTY_COMPONENT_ID_TAG_PREFIX, HIDE_IF_EMPTY_COMPONENT_TRACKING_ID_TAG_PREFIX, HIDE_TAGS_WITH_PREFIX, HtmlLayoutTypes, IFRAME_ACTION_TYPES, IFRAME_DATA_MESSAGE, INITIAL_CALL_STATE, IS_DEV_ORG, IS_LOCALHOST, InstanceMembershipRoleEnum, InstanceMembershipUserStatusEnum, InvitationStatusEnum, LanguageEnum, LinkAlignmentTypes, LinkAnchorTypes, LinkPreviewTypes, MAX_LUMINANCE_FOR_LIGHT_TEXT, MAX_UPLOAD_SIZE, MIN_DIFFERENCE_IN_MINUTES, MetadataTemplateFieldTypeEnum, MultimediaHorizontalAlignmentOptions, NON_MEMBER_ROLES, NotesApp, OperatorEnum, PAPER_SIZE_PRESETS, PEER_CONNECTIVITY_EVENT, PEER_CONNECTIVITY_HANDLER_MATCH_ALL, PITCHER_EVENT, PITCHER_SETTINGS_KEY, PLATFORM_TYPE, PRINT_SCALE_FACTOR, PeerConnectivityActions, PitcherBroadcastedEventName, PitcherEventName, PitcherExternalEventName, PitcherMessageType, PitcherResponseStatus, PostAction, App$2 as PptConversionSelectorApp, REQUEST_DEFAULT_CANCEL_TIMEOUT, SEARCH_DEBOUNCE_TIME, SUPPORTED_FONT_EXTENSIONS, SUPPORTED_FONT_TYPES, SUPPORTED_IMAGE_EXTENSIONS, SUPPORTED_IMAGE_TYPES, SUPPORTED_UPLOAD_FILE_EXTENSIONS, SUPPORTED_VIDEO_EXTENSIONS, SUPPORTED_VIDEO_TYPES, SfEventColors, SfEventColorsLight, StorageRegionEnum, TRACKING_EVENTS_STORAGE_KEY, UI_API_METHOD_TYPES, UI_MESSAGE, UI_MESSAGE_TYPES, UI_NATIVE_MESSAGE_TYPES, UserRoleEnum, ViewCompactItemType, addCanvasComponent, _export as agendaSelector, appRequiresCrm, applyCanvasThemeAssetsToNode, applyFont, applyToTreeBy, autofocus as autofocusDirective, camelCaseKeys, canvasUiUnoPreset, clearLocalStorageIfNeeded, ClickOutsideDirective as clickOutsideDirective, collectAllNodesByCondition, _export$3 as collectionPlayer, _export$2 as collectionSelector, componentIconType, computeLocalStorageBytes, convertSecondsToMinutes, convertSoqlToSmartQuery, convertToPixels, convertToSosl, createNodeId, createPitcherSettings, dayjs, deepDiff, deepToRaw, derivePatchRequestFields, determineUserRole, discardSectionComponentOverride, displayBytesWithMUnit, displayIntegerWithMunit, doesLocalOverrideExist, doesNotHaveAnyModuleOrHookSpecified, downloadFile, draggable as draggableDirective, elementMounted as elementMountedDirective, escapeSoqlString, evaluateAccessor, evaluateIsExecutedCondition, evaluateIsExecutedForPascalCaseEvent, executeWithDoublingTime, exitFullscreen, extractFieldNamesFromCondition, fallbackLocale, fetchAll, fetchAllWithOffset, fetchFirstChunkAndRemainingAsync, filterSidebarApps, filterTreeBy, findAllEmbeddableTypesInCanvasContent, findAllEmbeddableTypesInSectionsContent, findEmbeddableInCanvasContent, findEmbeddableInSectionsContent, findNodeInTreeByCondition, findNodeInTreeById, findNodeInTreeByType, findParentByNodeId, formatDate, formatDateDetailed, formatDateTime, formatDateTimeAgo, formatDayMonthBasedOnBrowserLang, formatDimensionForGotenberg, generateAIThumbnailUrl, getAllPages, getAppConfigFromAppSource, getAvailableApis, getComponentDescription, getComponentKeywords, getComponentTitle, getContrastTextColor, getDefinedProps, getEventColor, getExcessItemsIndexes, getFontAwesomeIconNameAndType, getImageSize, getLocalOverrideUrl, getLuminance, getNextPageParam, getNodeDisplayNameByComponentType, getNumberWithRegex, getPageQuantity, getPageRange, getPreviewUrl, getRoleIcon, getSectionGlobalComponentSpacing, handleThemeAssetComparison, hasAppTypeDefined, highLevelApi, indirectEval, insertItemSorted, isAfter, isBefore, isBeforeMinDate, isCanvasDrawerApp, isCanvasSectionExecution, isEmbeddableWithZeroHeight, isFileViewerReplacement, isFirefox, isFullscreen, isHeadlessOrNotAvailableApp, isImageAccessible, isIosDevice, isMac, isMobile, isModifierClick, isNonMemberRole, isOriginValid, isPastMaxDate, isPitcherOrIosDevice, isPitcherWkWebView, isPostcallApp, isQueryParamTruthy, isSafari, isSafariOnIosDevice, isSameOrAfter, isSameOrBefore, isTextComponentEmpty, isTheUiItself, isTouchScreen, isValidHex, isWindows, lightThemeOverrides, loadCustomHelpersFromApps, loadRemoteScriptWithCtx, loadScript, loadScriptStyle, loadStyle, localeDropdownOptions, localeNames, locales, minFutureDate, minPastDate, moveNodeTo, msToSeconds, navigateTo, normalizeFilterParams, normalizeNetworkFilterParams, openUsdz, parseCollectionPlayerSlidesToContentSelector, parseContentSelectorToCollectionPlayerSlides, parseFileToCollectionPlayer, parsePdfFileToCollectionPlayer, parsePptxFileToCollectionPlayer, pascalCaseKeys, _export$1 as pptConversionSelector, processCanvasForSectionThemeOverride, regenerateTreeIds, registerCustomHelper, registerCustomHelpers, registerPeerConnectivityHandler, renderTemplate, replaceThemePresetsWithInlineStyles, replaceTranslationMessagesWithOverrides, requestFullscreen, requestStream, scrollCanvasToTop, scrollToComponentById, secondsToHumanReadable, sendPeerConnectivityEvent, setDateTime, shouldDisplayPlaceholderComponent, shouldOpenInCollectionPlayerViewer, shouldShowEmbeddable, shouldShowInSidebar, skipElementsInTree, snakeCaseKeys, someNodeInTree, sortCollectionByString, splitUserName, stringToHslColor, supportedLocales, tapDirective, titleCase, toggleFullscreen, tooltipDirective, transformFilesToCollectionPlayer, transformFilesToContentGrid, updateFirstContentGridWithShareboxItems, urlSafeFetchInChunks, useAdmin, useAdminAndDsrState, useApi, useAppsDb, useBindValidation, useBroadcastRouteChange, useCanvasById, useCanvasLocks, useCanvasOverlay, useCanvasVisibility, useCanvasesAsInfinity, useCollectionPlayerOverlay, useCommentTracking, useConfirmation, useCreateEvent, useDeleteEvent, useDsr, useFetchCanvases, useFetchEvents, useFetchUsers, useFileDisplayHelpers, useFolderNameDescription, useGlobalSearch, useInfiniteScroll, useLocation, useMetadataSearch, useMetadataTemplates, useNotesApp, useNotification, useOpenFileStack, usePitcherApi, usePolling, usePresentationHistory, useRecentFiles, useShareCanvas, useSharedCommentsStorage, useSmartStore, useSuggestedTags, useTheme, useThemeVars, useToast, useUi, useUpdateEvent, useWindowEvents, vueQueryPluginOptions, wait, waitForIframeInitialize, waitForValue };
184178
+ export { ADMIN_API_METHOD_TYPES, ADMIN_API_TYPES, ADMIN_MESSAGE, ADMIN_MESSAGE_TYPES, APPS_DB, AccessTypeEnum, App$3 as AgendaSelectorApp, AppTypeEnum, _sfc_main as AssetsManagerApp, App$1 as Browser, BulkUpdateMetadataOperationEnum, BulkUpdateTagsOperationEnum, CALL_STORAGE_KEY, CANVASES, CANVAS_HOOKS, CANVAS_TYPOGRAPHY_CSS_PROPERTIES, CANVAS_TYPOGRAPHY_PRESETS, CAlgoliaSearch, CAssignedCanvasesManagement, _sfc_main$4p as CAssignedCanvasesManagementToolbar, _sfc_main$6s as CAvatar, _sfc_main$4O as CBlockManagement, CButton, _sfc_main$5f as CCanvasDeleteDialogContent, _sfc_main$5g as CCanvasMetadataFilters, CCanvasSelector, _sfc_main$6V as CCard, CCarousel, _sfc_main$3G as CCatalogIqSwitcher, _sfc_main$6U as CCheckbox, _sfc_main$3A as CChip, CCollapse, _sfc_main$6R as CCollapseItem, _sfc_main$6r as CCollapseTransition, NColorPicker as CColorPicker, CComponentListItem, CConfigEditor, NConfigProvider as CConfigProvider, _sfc_main$6h as CConfirmationAction, CConfirmationContent, CConfirmationHeader, CConfirmationModal, CContactSelector, CContactSelectorSelected, _sfc_main$68 as CContentError, _sfc_main$65 as CCreateCanvasModal, _sfc_main$64 as CCreateTemplateSectionBlockModal, _sfc_main$5V as CCreateThemeModal, CDP_EVENT_TYPE, CDataTable, NDatePicker as CDatePicker, CDateRangeFilter, CDetailPageSectionButtons, NDialogProvider as CDialogProvider, _sfc_main$6P as CDivider, _sfc_main$6O as CDrawer, _sfc_main$6N as CDrawerContent, _sfc_main$6M as CDropdown, _sfc_main$6p as CEmpty, _sfc_main$4m as CEntitySelector, _sfc_main$6L as CErrorFullScreen, _sfc_main$6n as CFeedback, _sfc_main$3o as CFileAccessManagement, _sfc_main$6C as CFileAttributes, _sfc_main$3p as CFilePanel, _sfc_main$6I as CFileThumbnail, CFileViewer, CFilesAccessInfo, _sfc_main$3$ as CFilesAccessManage, _sfc_main$3I as CFilesFolderDeleteDialogContent, NForm as CForm, NFormItem as CFormItem, NFormItemCol as CFormItemCol, NFormItemGridItem as CFormItemGi, NFormItemGridItem as CFormItemGridItem, FormItemRow as CFormItemRow, _sfc_main$4h as CFullScreenLoader, NGridItem as CGi, CGlobalLoader, _sfc_main$5O as CGlobalSearch, GlobalStyle as CGlobalStyle, NGrid as CGrid, NGridItem as CGridItem, CGroupsAccessInfo, NH1 as CH1, NH2 as CH2, NH3 as CH3, NH4 as CH4, NH5 as CH5, NH6 as CH6, _sfc_main$6m as CHelpText, CIcon, _sfc_main$6K as CImage, _sfc_main$4W as CInfoBadge, _sfc_main$6B as CInput, NInputNumber as CInputNumber, _sfc_main$3y as CKnockNotificationsAppWrapper, CLIENT_TYPE, NLayout as CLayout, NLayoutContent as CLayoutContent, LayoutFooter as CLayoutFooter, LayoutHeader as CLayoutHeader, LayoutSider as CLayoutSider, _sfc_main$4X as CList, NMessageProvider as CMessageProvider, _sfc_main$5L as CMetaDataBadge, _sfc_main$6A as CModal, CMonacoEditor, CMovableWidget, CMultiSelect, NNotificationProvider as CNotificationProvider, NPagination as CPagination, _sfc_main$6l as CPillSelect, _sfc_main$6z as CPopover, _sfc_main$6J as CProcessingOverlay, NProgress as CProgress, _sfc_main$5s as CRichTextEditor, _sfc_main$4q as CSavedCanvasesManagement, CSearch, _sfc_main$6x as CSearchOnClick, CSearchOnClickWithSuggestions, CSecondaryNav, _sfc_main$4R as CSectionManagement, CSelect, CSelectFilter, _sfc_main$3x as CSettingsEditor, CShortcut, CSingleSelect, NSkeleton as CSkeleton, _sfc_main$3C as CSlideViewer, NSpace as CSpace, _sfc_main$6q as CSpin, _sfc_main$6o as CSwitch, CTable, _sfc_main$5c as CTableInput, CTableMore, CTableSelect, CTableTag, _sfc_main$6F as CTag, CTags, CTemplateAccessInfo, _sfc_main$3_ as CTemplateAccessManage, _sfc_main$4G as CTemplateManagement, text as CText, _sfc_main$6v as CThemeEditor, _sfc_main$4B as CThemeManagement, _sfc_main$5l as CToastProvider, CToolbar, _sfc_main$6t as CTooltip, CUpsertFolderModal, _sfc_main$5p as CUserAvatar, CUserMenu, CUsersAccessInfo, CUsersGroupsAccessManage, _sfc_main$5m as CVirtualTable, _sfc_main$48 as CWarningAlert, CallState, CanvasActions, _sfc_main$15 as CanvasBuilderApp, CanvasBuilderMode, CanvasExcludedComponentTypesEnum, CanvasHistoryAction, App as CanvasSelector, CanvasStatus, CanvasThemeStatus, CanvasesViewsTypes, CollaborationRoleEnum, CollectionPlayerApp, App$4 as CollectionSelectorApp, ComponentIcon, ComponentTypes, ContactSelectorQuickFilterType, ContentGridLayoutTypes, ContentSelector, CoreFolderEntityType, DATE_TIME_FORMAT, DEFAULT_ADMIN_TABLE_HEIGHT, DEFAULT_ADMIN_TABLE_WITH_PAGINATION_HEIGHT, DEFAULT_GLOBAL_COMPONENT_SPACING, DEFAULT_GLOBAL_COMPONENT_SPACING_INTERVAL, DEFAULT_ITEMS_PER_PAGE, DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE_OPTIONS, DEFAULT_PEER_CONNECTIVITY_VERSION, DEFAULT_PITCHER_SETTINGS, DSR_API_METHOD_TYPES, DSR_API_TYPES, DSR_MESSAGE, DSR_MESSAGE_TYPES, DSR_TYPE, DefaultExpiresAtEnum, DownloadTypeEnum, EMBED_TYPE, EventAction, EventExternalObjectContentTypeEnum, EventStatusEnum, FileContentTypeEnum, FileStatusEnum, FileTypeEnum, GlobalSearchResultType, GridLayoutTypes, HIDE_IF_EMPTY_COMPONENT_ID_TAG_PREFIX, HIDE_IF_EMPTY_COMPONENT_TRACKING_ID_TAG_PREFIX, HIDE_TAGS_WITH_PREFIX, HtmlLayoutTypes, IFRAME_ACTION_TYPES, IFRAME_DATA_MESSAGE, INITIAL_CALL_STATE, IS_DEV_ORG, IS_LOCALHOST, InstanceMembershipRoleEnum, InstanceMembershipUserStatusEnum, InvitationStatusEnum, LanguageEnum, LinkAlignmentTypes, LinkAnchorTypes, LinkPreviewTypes, MAX_LUMINANCE_FOR_LIGHT_TEXT, MAX_UPLOAD_SIZE, MIN_DIFFERENCE_IN_MINUTES, MetadataTemplateFieldTypeEnum, MultimediaHorizontalAlignmentOptions, NON_MEMBER_ROLES, NotesApp, OperatorEnum, PAPER_SIZE_PRESETS, PEER_CONNECTIVITY_EVENT, PEER_CONNECTIVITY_HANDLER_MATCH_ALL, PITCHER_EVENT, PITCHER_SETTINGS_KEY, PLATFORM_TYPE, PRINT_SCALE_FACTOR, PeerConnectivityActions, PitcherBroadcastedEventName, PitcherEventName, PitcherExternalEventName, PitcherMessageType, PitcherResponseStatus, PostAction, App$2 as PptConversionSelectorApp, REQUEST_DEFAULT_CANCEL_TIMEOUT, SEARCH_DEBOUNCE_TIME, SUPPORTED_FONT_EXTENSIONS, SUPPORTED_FONT_TYPES, SUPPORTED_IMAGE_EXTENSIONS, SUPPORTED_IMAGE_TYPES, SUPPORTED_UPLOAD_FILE_EXTENSIONS, SUPPORTED_VIDEO_EXTENSIONS, SUPPORTED_VIDEO_TYPES, SfEventColors, SfEventColorsLight, StorageRegionEnum, TRACKING_EVENTS_STORAGE_KEY, UI_API_METHOD_TYPES, UI_MESSAGE, UI_MESSAGE_TYPES, UI_NATIVE_MESSAGE_TYPES, UserRoleEnum, ViewCompactItemType, addCanvasComponent, _export as agendaSelector, appRequiresCrm, applyCanvasThemeAssetsToNode, applyFont, applyToTreeBy, autofocus as autofocusDirective, camelCaseKeys, canvasUiUnoPreset, clearLocalStorageIfNeeded, ClickOutsideDirective as clickOutsideDirective, collectAllNodesByCondition, _export$3 as collectionPlayer, _export$2 as collectionSelector, componentIconType, computeLocalStorageBytes, convertSecondsToMinutes, convertSoqlToSmartQuery, convertToPixels, convertToSosl, createNodeId, createPitcherSettings, dayjs, deepDiff, deepToRaw, derivePatchRequestFields, determineUserRole, discardSectionComponentOverride, displayBytesWithMUnit, displayIntegerWithMunit, doesLocalOverrideExist, doesNotHaveAnyModuleOrHookSpecified, downloadFile, draggable as draggableDirective, elementMounted as elementMountedDirective, escapeSoqlString, evaluateAccessor, evaluateIsExecutedCondition, evaluateIsExecutedForPascalCaseEvent, executeWithDoublingTime, exitFullscreen, extractFieldNamesFromCondition, fallbackLocale, fetchAll, fetchAllWithOffset, fetchFirstChunkAndRemainingAsync, filterSidebarApps, filterTreeBy, findAllEmbeddableTypesInCanvasContent, findAllEmbeddableTypesInSectionsContent, findEmbeddableInCanvasContent, findEmbeddableInSectionsContent, findNodeInTreeByCondition, findNodeInTreeById, findNodeInTreeByType, findParentByNodeId, formatDate, formatDateDetailed, formatDateTime, formatDateTimeAgo, formatDayMonthBasedOnBrowserLang, formatDimensionForGotenberg, generateAIThumbnailUrl, getAllPages, getAppConfigFromAppSource, getAvailableApis, getComponentDescription, getComponentKeywords, getComponentTitle, getContrastTextColor, getDefinedProps, getEventColor, getExcessItemsIndexes, getFontAwesomeIconNameAndType, getImageSize, getLocalOverrideUrl, getLuminance, getNextPageParam, getNodeDisplayNameByComponentType, getNumberWithRegex, getPageQuantity, getPageRange, getPreviewUrl, getRoleIcon, getSectionGlobalComponentSpacing, handleThemeAssetComparison, hasAppTypeDefined, highLevelApi, indirectEval, insertItemSorted, isAfter, isBefore, isBeforeMinDate, isCanvasDrawerApp, isCanvasSectionExecution, isEmbeddableWithZeroHeight, isFileViewerReplacement, isFirefox, isFullscreen, isHeadlessOrNotAvailableApp, isImageAccessible, isIosDevice, isMac, isMobile, isModifierClick, isNonMemberRole, isOriginValid, isPastMaxDate, isPitcherOrIosDevice, isPitcherWkWebView, isPostcallApp, isQueryParamTruthy, isSafari, isSafariOnIosDevice, isSameOrAfter, isSameOrBefore, isTextComponentEmpty, isTheUiItself, isTouchScreen, isValidHex, isWindows, lightThemeOverrides, loadCustomHelpersFromApps, loadRemoteScriptWithCtx, loadScript, loadScriptStyle, loadStyle, localeDropdownOptions, localeNames, locales, minFutureDate, minPastDate, moveNodeTo, msToSeconds, navigateTo, normalizeFilterParams, normalizeNetworkFilterParams, openUsdz, parseCollectionPlayerSlidesToContentSelector, parseContentSelectorToCollectionPlayerSlides, parseFileToCollectionPlayer, parsePdfFileToCollectionPlayer, parsePptxFileToCollectionPlayer, pascalCaseKeys, _export$1 as pptConversionSelector, processCanvasForSectionThemeOverride, regenerateTreeIds, registerCustomHelper, registerCustomHelpers, registerPeerConnectivityHandler, renderTemplate, replaceThemePresetsWithInlineStyles, replaceTranslationMessagesWithOverrides, requestFullscreen, requestStream, scrollCanvasToTop, scrollToComponentById, secondsToHumanReadable, sendPeerConnectivityEvent, setDateTime, shouldDisplayPlaceholderComponent, shouldOpenInCollectionPlayerViewer, shouldShowEmbeddable, shouldShowInSidebar, skipElementsInTree, snakeCaseKeys, someNodeInTree, sortCollectionByString, splitUserName, stringToHslColor, supportedLocales, tapDirective, titleCase, toggleFullscreen, tooltipDirective, transformFilesToCollectionPlayer, transformFilesToContentGrid, updateFirstCollectionPlayerWithShareboxItems, updateFirstContentGridWithShareboxItems, urlSafeFetchInChunks, useAdmin, useAdminAndDsrState, useApi, useAppsDb, useBindValidation, useBroadcastRouteChange, useCanvasById, useCanvasLocks, useCanvasOverlay, useCanvasVisibility, useCanvasesAsInfinity, useCollectionPlayerOverlay, useCommentTracking, useConfirmation, useCreateEvent, useDeleteEvent, useDsr, useFetchCanvases, useFetchEvents, useFetchUsers, useFileDisplayHelpers, useFolderNameDescription, useGlobalSearch, useInfiniteScroll, useLocation, useMetadataSearch, useMetadataTemplates, useNotesApp, useNotification, useOpenFileStack, usePitcherApi, usePolling, usePresentationHistory, useRecentFiles, useShareCanvas, useSharedCommentsStorage, useSmartStore, useSuggestedTags, useTheme, useThemeVars, useToast, useUi, useUpdateEvent, useWindowEvents, vueQueryPluginOptions, wait, waitForIframeInitialize, waitForValue };
184102
184179
  //# sourceMappingURL=canvas-ui.js.map