@pitcher/canvas-ui 2025.12.5-183733 → 2025.12.8-91341
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.css +17 -17
- package/canvas-ui.js +141 -146
- package/canvas-ui.js.map +1 -1
- package/package.json +1 -1
package/canvas-ui.js
CHANGED
|
@@ -94505,115 +94505,119 @@ const _hoisted_5$1M = {
|
|
|
94505
94505
|
key: 1,
|
|
94506
94506
|
class: "flex items-center mt-4"
|
|
94507
94507
|
};
|
|
94508
|
-
const _hoisted_6$1w = { class: "flex space-x-0" };
|
|
94508
|
+
const _hoisted_6$1w = { class: "flex space-x-0 items-center" };
|
|
94509
94509
|
const _hoisted_7$18 = { class: "uppercase" };
|
|
94510
94510
|
const _hoisted_8$Z = {
|
|
94511
|
+
key: 1,
|
|
94512
|
+
class: "h-16px w-1px bg-gray-300 mx-2"
|
|
94513
|
+
};
|
|
94514
|
+
const _hoisted_9$O = {
|
|
94511
94515
|
key: 0,
|
|
94512
94516
|
class: "flex items-center space-x-1 ml-2"
|
|
94513
94517
|
};
|
|
94514
|
-
const
|
|
94515
|
-
const
|
|
94516
|
-
const
|
|
94517
|
-
const
|
|
94518
|
-
const
|
|
94518
|
+
const _hoisted_10$C = { class: "flex items-center" };
|
|
94519
|
+
const _hoisted_11$x = { key: 0 };
|
|
94520
|
+
const _hoisted_12$p = { class: "c-select-filter__popover w-[350px] rounded flex flex-col bg-base" };
|
|
94521
|
+
const _hoisted_13$k = { class: "pa-2 max-h-[300px] overflow-y-auto" };
|
|
94522
|
+
const _hoisted_14$h = {
|
|
94519
94523
|
key: 0,
|
|
94520
94524
|
class: "flex items-center ml-2"
|
|
94521
94525
|
};
|
|
94522
|
-
const
|
|
94526
|
+
const _hoisted_15$f = {
|
|
94523
94527
|
key: 0,
|
|
94524
94528
|
class: "flex items-center ml-2"
|
|
94525
94529
|
};
|
|
94526
|
-
const
|
|
94527
|
-
const
|
|
94530
|
+
const _hoisted_16$e = { class: "flex flex-col w-full flex-1 min-h-0" };
|
|
94531
|
+
const _hoisted_17$c = {
|
|
94528
94532
|
key: 0,
|
|
94529
94533
|
class: "flex-1 overflow-y-auto bg-white w-full pl-1 pr-6 py-0"
|
|
94530
94534
|
};
|
|
94531
|
-
const
|
|
94532
|
-
const
|
|
94533
|
-
const
|
|
94534
|
-
const
|
|
94535
|
-
const
|
|
94536
|
-
const
|
|
94537
|
-
const
|
|
94535
|
+
const _hoisted_18$a = { class: "space-y-1 mt-4" };
|
|
94536
|
+
const _hoisted_19$a = ["onClick"];
|
|
94537
|
+
const _hoisted_20$9 = { class: "text-sm text-gray-700" };
|
|
94538
|
+
const _hoisted_21$7 = { class: "flex items-center mb-0" };
|
|
94539
|
+
const _hoisted_22$5 = { class: "text-sm font-bold text-gray-700" };
|
|
94540
|
+
const _hoisted_23$5 = ["onClick"];
|
|
94541
|
+
const _hoisted_24$5 = {
|
|
94538
94542
|
key: 0,
|
|
94539
94543
|
class: "relative mr-4"
|
|
94540
94544
|
};
|
|
94541
|
-
const
|
|
94545
|
+
const _hoisted_25$5 = {
|
|
94542
94546
|
key: 0,
|
|
94543
94547
|
class: "absolute inset-0 flex items-center justify-center bg-gray-200 bg-opacity-75 border-rounded-1"
|
|
94544
94548
|
};
|
|
94545
|
-
const
|
|
94549
|
+
const _hoisted_26$5 = {
|
|
94546
94550
|
key: 1,
|
|
94547
94551
|
class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center"
|
|
94548
94552
|
};
|
|
94549
|
-
const
|
|
94550
|
-
const
|
|
94551
|
-
const
|
|
94552
|
-
const
|
|
94553
|
+
const _hoisted_27$5 = { class: "flex-1 min-w-0" };
|
|
94554
|
+
const _hoisted_28$5 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
|
|
94555
|
+
const _hoisted_29$5 = { class: "text-xs text-gray-500" };
|
|
94556
|
+
const _hoisted_30$4 = {
|
|
94553
94557
|
key: 1,
|
|
94554
94558
|
class: "flex-1 overflow-y-auto bg-white w-full"
|
|
94555
94559
|
};
|
|
94556
|
-
const
|
|
94557
|
-
const
|
|
94560
|
+
const _hoisted_31$4 = { class: "w-full px-0" };
|
|
94561
|
+
const _hoisted_32$4 = {
|
|
94558
94562
|
key: 0,
|
|
94559
94563
|
class: "mb-0"
|
|
94560
94564
|
};
|
|
94561
|
-
const
|
|
94562
|
-
const
|
|
94563
|
-
const
|
|
94564
|
-
const
|
|
94565
|
-
const
|
|
94565
|
+
const _hoisted_33$4 = { class: "flex items-center px-0 pt-2 pb-1" };
|
|
94566
|
+
const _hoisted_34$4 = { class: "text-m font-semibold text-gray-900" };
|
|
94567
|
+
const _hoisted_35$4 = { class: "ml-2 text-sm text-gray-500" };
|
|
94568
|
+
const _hoisted_36$4 = ["data-result-selected", "onClick"];
|
|
94569
|
+
const _hoisted_37$4 = {
|
|
94566
94570
|
key: 1,
|
|
94567
94571
|
class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center"
|
|
94568
94572
|
};
|
|
94569
|
-
const
|
|
94570
|
-
const
|
|
94571
|
-
const
|
|
94572
|
-
const
|
|
94573
|
-
const
|
|
94573
|
+
const _hoisted_38$4 = { class: "flex-1 min-w-0" };
|
|
94574
|
+
const _hoisted_39$4 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
|
|
94575
|
+
const _hoisted_40$4 = { class: "text-xs text-gray-500" };
|
|
94576
|
+
const _hoisted_41$4 = { class: "text-xs text-gray-400" };
|
|
94577
|
+
const _hoisted_42$4 = {
|
|
94574
94578
|
key: 0,
|
|
94575
94579
|
class: "px-0 py-0"
|
|
94576
94580
|
};
|
|
94577
|
-
const
|
|
94578
|
-
const
|
|
94579
|
-
const
|
|
94580
|
-
const
|
|
94581
|
-
const
|
|
94582
|
-
const
|
|
94583
|
-
const
|
|
94584
|
-
const
|
|
94585
|
-
const
|
|
94586
|
-
const
|
|
94587
|
-
const
|
|
94581
|
+
const _hoisted_43$4 = { key: 1 };
|
|
94582
|
+
const _hoisted_44$4 = { class: "flex items-center px-0 pt-4 pb-1" };
|
|
94583
|
+
const _hoisted_45$4 = { class: "text-m font-semibold text-gray-900" };
|
|
94584
|
+
const _hoisted_46$4 = { class: "ml-2 text-sm text-gray-500" };
|
|
94585
|
+
const _hoisted_47$4 = ["data-result-selected", "onClick"];
|
|
94586
|
+
const _hoisted_48$4 = { class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center" };
|
|
94587
|
+
const _hoisted_49$4 = { class: "flex-1 min-w-0" };
|
|
94588
|
+
const _hoisted_50$4 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
|
|
94589
|
+
const _hoisted_51$2 = { class: "text-xs text-gray-500" };
|
|
94590
|
+
const _hoisted_52$2 = { class: "text-xs text-gray-400" };
|
|
94591
|
+
const _hoisted_53$2 = {
|
|
94588
94592
|
key: 0,
|
|
94589
94593
|
class: "px-0 py-0"
|
|
94590
94594
|
};
|
|
94591
|
-
const
|
|
94595
|
+
const _hoisted_54$1 = {
|
|
94592
94596
|
key: 0,
|
|
94593
94597
|
class: "flex flex-col items-center justify-center text-center p-8 gap-4"
|
|
94594
94598
|
};
|
|
94595
|
-
const
|
|
94599
|
+
const _hoisted_55$1 = {
|
|
94596
94600
|
key: 2,
|
|
94597
94601
|
class: "flex-1 overflow-y-auto bg-white w-full"
|
|
94598
94602
|
};
|
|
94599
|
-
const
|
|
94600
|
-
const
|
|
94601
|
-
const
|
|
94602
|
-
const
|
|
94603
|
-
const
|
|
94604
|
-
const
|
|
94603
|
+
const _hoisted_56$1 = { class: "w-full px-0" };
|
|
94604
|
+
const _hoisted_57$1 = { class: "flex items-center px-0 pt-2 pb-1" };
|
|
94605
|
+
const _hoisted_58$1 = { class: "text-m font-semibold text-gray-900" };
|
|
94606
|
+
const _hoisted_59$1 = { class: "ml-2 text-sm text-gray-500" };
|
|
94607
|
+
const _hoisted_60$1 = ["data-result-selected", "onClick"];
|
|
94608
|
+
const _hoisted_61$1 = {
|
|
94605
94609
|
key: 1,
|
|
94606
94610
|
class: "w-18 h-14 border-rounded-1 mr-4 flex-shrink-0 bg-gray-200 flex items-center justify-center"
|
|
94607
94611
|
};
|
|
94608
|
-
const
|
|
94609
|
-
const
|
|
94610
|
-
const
|
|
94611
|
-
const
|
|
94612
|
-
const
|
|
94612
|
+
const _hoisted_62$1 = { class: "flex-1 min-w-0" };
|
|
94613
|
+
const _hoisted_63$1 = { class: "text-sm font-bold text-gray-900 truncate mb-1" };
|
|
94614
|
+
const _hoisted_64$1 = { class: "text-xs text-gray-500" };
|
|
94615
|
+
const _hoisted_65$1 = { class: "text-xs text-gray-400" };
|
|
94616
|
+
const _hoisted_66$1 = {
|
|
94613
94617
|
key: 0,
|
|
94614
94618
|
class: "flex flex-col items-center justify-center text-center p-8 gap-4"
|
|
94615
94619
|
};
|
|
94616
|
-
const
|
|
94620
|
+
const _hoisted_67$1 = {
|
|
94617
94621
|
key: 0,
|
|
94618
94622
|
class: "flex flex-wrap line-height-6 pt-4 pb-2 px-6 border-t border-gray-200 gap-y-4 gap-x-4"
|
|
94619
94623
|
};
|
|
@@ -95408,8 +95412,8 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95408
95412
|
createElementVNode("div", _hoisted_6$1w, [
|
|
95409
95413
|
createElementVNode("button", {
|
|
95410
95414
|
class: normalizeClass([
|
|
95411
|
-
"h-
|
|
95412
|
-
searchType.value === null ? "bg-
|
|
95415
|
+
"h-28px text-14px font-500 transition-colors duration-200 flex items-center shadow-none outline-none focus:outline-none border-0",
|
|
95416
|
+
searchType.value === null ? "bg-primary5 text-primary px-12px rounded-4px" : "bg-primary6 text-primary hover:bg-primary5 px-16px"
|
|
95413
95417
|
]),
|
|
95414
95418
|
onClick: handleEverywhereClick
|
|
95415
95419
|
}, [
|
|
@@ -95418,25 +95422,26 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95418
95422
|
searchType.value !== "canvases" ? (openBlock(), createElementBlock("button", {
|
|
95419
95423
|
key: 0,
|
|
95420
95424
|
class: normalizeClass([
|
|
95421
|
-
"h-
|
|
95422
|
-
searchType.value === "content" ? "bg-
|
|
95425
|
+
"h-28px text-14px font-500 transition-colors duration-200 flex items-center shadow-none outline-none focus:outline-none border-0",
|
|
95426
|
+
searchType.value === "content" ? "bg-primary5 text-primary px-16px rounded-4px" : "bg-primary6 text-primary hover:bg-primary5 px-16px"
|
|
95423
95427
|
]),
|
|
95424
95428
|
onClick: _cache[4] || (_cache[4] = ($event) => searchType.value === "content" ? handleEverywhereClick() : searchType.value = "content")
|
|
95425
95429
|
}, [
|
|
95426
95430
|
createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.tabs.content")), 1)
|
|
95427
95431
|
], 2)) : createCommentVNode("", true),
|
|
95432
|
+
searchType.value !== "content" && searchType.value !== "canvases" ? (openBlock(), createElementBlock("div", _hoisted_8$Z)) : createCommentVNode("", true),
|
|
95428
95433
|
searchType.value !== "content" ? (openBlock(), createElementBlock("button", {
|
|
95429
|
-
key:
|
|
95434
|
+
key: 2,
|
|
95430
95435
|
class: normalizeClass([
|
|
95431
|
-
"h-
|
|
95432
|
-
searchType.value === "canvases" ? "bg-
|
|
95436
|
+
"h-28px text-14px font-500 transition-colors duration-200 flex items-center shadow-none outline-none focus:outline-none border-0",
|
|
95437
|
+
searchType.value === "canvases" ? "bg-primary5 text-primary px-16px rounded-4px" : "bg-primary6 text-primary hover:bg-primary5 px-16px"
|
|
95433
95438
|
]),
|
|
95434
95439
|
onClick: _cache[5] || (_cache[5] = ($event) => searchType.value === "canvases" ? handleEverywhereClick() : searchType.value = "canvases")
|
|
95435
95440
|
}, [
|
|
95436
95441
|
createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.tabs.pitchDecks")), 1)
|
|
95437
95442
|
], 2)) : createCommentVNode("", true)
|
|
95438
95443
|
]),
|
|
95439
|
-
searchType.value ? (openBlock(), createElementBlock("div",
|
|
95444
|
+
searchType.value ? (openBlock(), createElementBlock("div", _hoisted_9$O, [
|
|
95440
95445
|
searchType.value === "content" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
95441
95446
|
createVNode(unref(NPopover), {
|
|
95442
95447
|
class: "c-select-filter",
|
|
@@ -95453,7 +95458,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95453
95458
|
style: normalizeStyle({
|
|
95454
95459
|
"--n-color": selectedFileTypes.value.length ? "var(--p-primary5)" : "var(--p-primary6)",
|
|
95455
95460
|
"--n-border": "1px solid var(--p-primary5)",
|
|
95456
|
-
"--n-height": "
|
|
95461
|
+
"--n-height": "28px"
|
|
95457
95462
|
}),
|
|
95458
95463
|
themeOverrides: {
|
|
95459
95464
|
borderRadius: "4px"
|
|
@@ -95461,11 +95466,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95461
95466
|
onClick: _cache[7] || (_cache[7] = ($event) => showFileTypeDropdown.value = !showFileTypeDropdown.value)
|
|
95462
95467
|
}, {
|
|
95463
95468
|
default: withCtx(() => [
|
|
95464
|
-
createElementVNode("div",
|
|
95465
|
-
createElementVNode("span",
|
|
95466
|
-
|
|
95467
|
-
}, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.filters.type")), 3),
|
|
95468
|
-
selectedFileTypes.value.length ? (openBlock(), createElementBlock("span", _hoisted_10$C, ": " + toDisplayString(selectedFileTypes.value.length), 1)) : createCommentVNode("", true),
|
|
95469
|
+
createElementVNode("div", _hoisted_10$C, [
|
|
95470
|
+
createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.filters.type")), 1),
|
|
95471
|
+
selectedFileTypes.value.length ? (openBlock(), createElementBlock("span", _hoisted_11$x, ": " + toDisplayString(selectedFileTypes.value.length), 1)) : createCommentVNode("", true),
|
|
95469
95472
|
selectedFileTypes.value.length ? (openBlock(), createBlock(CIcon, {
|
|
95470
95473
|
key: 1,
|
|
95471
95474
|
class: "ml-1",
|
|
@@ -95480,8 +95483,8 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95480
95483
|
}, 8, ["style"])
|
|
95481
95484
|
]),
|
|
95482
95485
|
default: withCtx(() => [
|
|
95483
|
-
createElementVNode("div",
|
|
95484
|
-
createElementVNode("div",
|
|
95486
|
+
createElementVNode("div", _hoisted_12$p, [
|
|
95487
|
+
createElementVNode("div", _hoisted_13$k, [
|
|
95485
95488
|
(openBlock(), createElementBlock(Fragment, null, renderList(fileTypeOptions, (option) => {
|
|
95486
95489
|
return createElementVNode("div", {
|
|
95487
95490
|
key: option.value,
|
|
@@ -95521,7 +95524,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95521
95524
|
]),
|
|
95522
95525
|
_: 1
|
|
95523
95526
|
}, 8, ["show"]),
|
|
95524
|
-
hasActiveFilters.value ? (openBlock(), createElementBlock("div",
|
|
95527
|
+
hasActiveFilters.value ? (openBlock(), createElementBlock("div", _hoisted_14$h, [
|
|
95525
95528
|
_cache[17] || (_cache[17] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
|
|
95526
95529
|
createElementVNode("span", {
|
|
95527
95530
|
class: "text-sm text-gray-600 hover:text-gray-800 font-normal cursor-pointer",
|
|
@@ -95534,7 +95537,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95534
95537
|
style: normalizeStyle({
|
|
95535
95538
|
"--n-color": selectedCanvasFilters.value.includes("saved_canvas") ? "var(--p-primary5)" : "var(--p-primary6)",
|
|
95536
95539
|
"--n-border": "1px solid var(--p-primary5)",
|
|
95537
|
-
"--n-height": "
|
|
95540
|
+
"--n-height": "28px"
|
|
95538
95541
|
}),
|
|
95539
95542
|
themeOverrides: {
|
|
95540
95543
|
borderRadius: "4px"
|
|
@@ -95542,9 +95545,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95542
95545
|
onClick: _cache[9] || (_cache[9] = ($event) => toggleCanvasFilter("saved_canvas"))
|
|
95543
95546
|
}, {
|
|
95544
95547
|
default: withCtx(() => [
|
|
95545
|
-
createElementVNode("span",
|
|
95546
|
-
class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("saved_canvas") })
|
|
95547
|
-
}, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.saved")), 3)
|
|
95548
|
+
createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.saved")), 1)
|
|
95548
95549
|
]),
|
|
95549
95550
|
_: 1
|
|
95550
95551
|
}, 8, ["style"]),
|
|
@@ -95553,7 +95554,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95553
95554
|
style: normalizeStyle({
|
|
95554
95555
|
"--n-color": selectedCanvasFilters.value.includes("template") ? "var(--p-primary5)" : "var(--p-primary6)",
|
|
95555
95556
|
"--n-border": "1px solid var(--p-primary5)",
|
|
95556
|
-
"--n-height": "
|
|
95557
|
+
"--n-height": "28px"
|
|
95557
95558
|
}),
|
|
95558
95559
|
themeOverrides: {
|
|
95559
95560
|
borderRadius: "4px"
|
|
@@ -95561,9 +95562,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95561
95562
|
onClick: _cache[10] || (_cache[10] = ($event) => toggleCanvasFilter("template"))
|
|
95562
95563
|
}, {
|
|
95563
95564
|
default: withCtx(() => [
|
|
95564
|
-
createElementVNode("span",
|
|
95565
|
-
class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("template") })
|
|
95566
|
-
}, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.templates")), 3)
|
|
95565
|
+
createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.templates")), 1)
|
|
95567
95566
|
]),
|
|
95568
95567
|
_: 1
|
|
95569
95568
|
}, 8, ["style"]),
|
|
@@ -95572,7 +95571,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95572
95571
|
style: normalizeStyle({
|
|
95573
95572
|
"--n-color": selectedCanvasFilters.value.includes("section") ? "var(--p-primary5)" : "var(--p-primary6)",
|
|
95574
95573
|
"--n-border": "1px solid var(--p-primary5)",
|
|
95575
|
-
"--n-height": "
|
|
95574
|
+
"--n-height": "28px"
|
|
95576
95575
|
}),
|
|
95577
95576
|
themeOverrides: {
|
|
95578
95577
|
borderRadius: "4px"
|
|
@@ -95580,9 +95579,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95580
95579
|
onClick: _cache[11] || (_cache[11] = ($event) => toggleCanvasFilter("section"))
|
|
95581
95580
|
}, {
|
|
95582
95581
|
default: withCtx(() => [
|
|
95583
|
-
createElementVNode("span",
|
|
95584
|
-
class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("section") })
|
|
95585
|
-
}, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.products")), 3)
|
|
95582
|
+
createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.products")), 1)
|
|
95586
95583
|
]),
|
|
95587
95584
|
_: 1
|
|
95588
95585
|
}, 8, ["style"]),
|
|
@@ -95591,7 +95588,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95591
95588
|
style: normalizeStyle({
|
|
95592
95589
|
"--n-color": selectedCanvasFilters.value.includes("block") ? "var(--p-primary5)" : "var(--p-primary6)",
|
|
95593
95590
|
"--n-border": "1px solid var(--p-primary5)",
|
|
95594
|
-
"--n-height": "
|
|
95591
|
+
"--n-height": "28px"
|
|
95595
95592
|
}),
|
|
95596
95593
|
themeOverrides: {
|
|
95597
95594
|
borderRadius: "4px"
|
|
@@ -95599,13 +95596,11 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95599
95596
|
onClick: _cache[12] || (_cache[12] = ($event) => toggleCanvasFilter("block"))
|
|
95600
95597
|
}, {
|
|
95601
95598
|
default: withCtx(() => [
|
|
95602
|
-
createElementVNode("span",
|
|
95603
|
-
class: normalizeClass({ "font-bold": selectedCanvasFilters.value.includes("block") })
|
|
95604
|
-
}, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.blocks")), 3)
|
|
95599
|
+
createElementVNode("span", null, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.canvasFilters.blocks")), 1)
|
|
95605
95600
|
]),
|
|
95606
95601
|
_: 1
|
|
95607
95602
|
}, 8, ["style"]),
|
|
95608
|
-
selectedCanvasFilters.value.length > 0 ? (openBlock(), createElementBlock("div",
|
|
95603
|
+
selectedCanvasFilters.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_15$f, [
|
|
95609
95604
|
_cache[18] || (_cache[18] = createElementVNode("div", { class: "h-6 w-px bg-gray-300 mx-2" }, null, -1)),
|
|
95610
95605
|
createElementVNode("span", {
|
|
95611
95606
|
class: "text-sm text-gray-600 hover:text-gray-800 font-normal cursor-pointer",
|
|
@@ -95616,9 +95611,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95616
95611
|
])) : createCommentVNode("", true)
|
|
95617
95612
|
])) : createCommentVNode("", true)
|
|
95618
95613
|
]),
|
|
95619
|
-
createElementVNode("div",
|
|
95620
|
-
showRecentView.value ? (openBlock(), createElementBlock("div",
|
|
95621
|
-
createElementVNode("div",
|
|
95614
|
+
createElementVNode("div", _hoisted_16$e, [
|
|
95615
|
+
showRecentView.value ? (openBlock(), createElementBlock("div", _hoisted_17$c, [
|
|
95616
|
+
createElementVNode("div", _hoisted_18$a, [
|
|
95622
95617
|
(openBlock(true), createElementBlock(Fragment, null, renderList(recentSearches.value, (search) => {
|
|
95623
95618
|
return openBlock(), createElementBlock("div", {
|
|
95624
95619
|
key: search,
|
|
@@ -95631,14 +95626,14 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95631
95626
|
icon: "clock-rotate-left",
|
|
95632
95627
|
size: "16"
|
|
95633
95628
|
}),
|
|
95634
|
-
createElementVNode("span",
|
|
95635
|
-
], 8,
|
|
95629
|
+
createElementVNode("span", _hoisted_20$9, toDisplayString(search), 1)
|
|
95630
|
+
], 8, _hoisted_19$a);
|
|
95636
95631
|
}), 128))
|
|
95637
95632
|
]),
|
|
95638
95633
|
recentlyOpenedDocs.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
95639
95634
|
_cache[19] || (_cache[19] = createElementVNode("hr", { class: "border-0 h-px bg-gray-200 mt-2 mb-3 w-full" }, null, -1)),
|
|
95640
|
-
createElementVNode("div",
|
|
95641
|
-
createElementVNode("span",
|
|
95635
|
+
createElementVNode("div", _hoisted_21$7, [
|
|
95636
|
+
createElementVNode("span", _hoisted_22$5, toDisplayString(unref(t)("canvasUI.components.fileViewer.recentlyOpened")), 1)
|
|
95642
95637
|
]),
|
|
95643
95638
|
createElementVNode("div", {
|
|
95644
95639
|
class: normalizeClass(_ctx.isAdmin ? "space-y-2" : "space-y-0")
|
|
@@ -95652,7 +95647,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95652
95647
|
]),
|
|
95653
95648
|
onClick: ($event) => handleRecentDocClick(doc, doc.type)
|
|
95654
95649
|
}, [
|
|
95655
|
-
doc.type === "file" ? (openBlock(), createElementBlock("div",
|
|
95650
|
+
doc.type === "file" ? (openBlock(), createElementBlock("div", _hoisted_24$5, [
|
|
95656
95651
|
createVNode(_sfc_main$6I, {
|
|
95657
95652
|
class: "h-14 border-rounded-1 overflow-hidden flex-0",
|
|
95658
95653
|
cover: "",
|
|
@@ -95661,7 +95656,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95661
95656
|
src: recentThumbnails.value[doc.id] || "",
|
|
95662
95657
|
width: "72"
|
|
95663
95658
|
}, null, 8, ["file-data", "src"]),
|
|
95664
|
-
isLoadingThumbnails.value && !recentThumbnails.value[doc.id] ? (openBlock(), createElementBlock("div",
|
|
95659
|
+
isLoadingThumbnails.value && !recentThumbnails.value[doc.id] ? (openBlock(), createElementBlock("div", _hoisted_25$5, [
|
|
95665
95660
|
createVNode(CIcon, {
|
|
95666
95661
|
class: "animate-spin",
|
|
95667
95662
|
color: "var(--p-primary)",
|
|
@@ -95669,7 +95664,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95669
95664
|
size: "20"
|
|
95670
95665
|
})
|
|
95671
95666
|
])) : createCommentVNode("", true)
|
|
95672
|
-
])) : (openBlock(), createElementBlock("div",
|
|
95667
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_26$5, [
|
|
95673
95668
|
doc.type === "canvas" ? (openBlock(), createBlock(CIcon, {
|
|
95674
95669
|
key: 0,
|
|
95675
95670
|
color: "var(--p-text2)",
|
|
@@ -95682,26 +95677,26 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95682
95677
|
size: "32"
|
|
95683
95678
|
}))
|
|
95684
95679
|
])),
|
|
95685
|
-
createElementVNode("div",
|
|
95686
|
-
createElementVNode("h3",
|
|
95687
|
-
createElementVNode("p",
|
|
95680
|
+
createElementVNode("div", _hoisted_27$5, [
|
|
95681
|
+
createElementVNode("h3", _hoisted_28$5, toDisplayString(doc.name), 1),
|
|
95682
|
+
createElementVNode("p", _hoisted_29$5, toDisplayString(doc.type === "canvas" ? formatCanvasType(doc.content_type) : doc.type === "folder" ? "Folder" : doc.file_category || "File"), 1)
|
|
95688
95683
|
])
|
|
95689
|
-
], 10,
|
|
95684
|
+
], 10, _hoisted_23$5);
|
|
95690
95685
|
}), 128))
|
|
95691
95686
|
], 2)
|
|
95692
95687
|
], 64)) : createCommentVNode("", true)
|
|
95693
|
-
])) : !searchType.value ? (openBlock(), createElementBlock("div",
|
|
95694
|
-
createElementVNode("div",
|
|
95695
|
-
filteredContentFiles.value.length > 0 ? (openBlock(), createElementBlock("div",
|
|
95696
|
-
createElementVNode("div",
|
|
95688
|
+
])) : !searchType.value ? (openBlock(), createElementBlock("div", _hoisted_30$4, [
|
|
95689
|
+
createElementVNode("div", _hoisted_31$4, [
|
|
95690
|
+
filteredContentFiles.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_32$4, [
|
|
95691
|
+
createElementVNode("div", _hoisted_33$4, [
|
|
95697
95692
|
createVNode(CIcon, {
|
|
95698
95693
|
class: "mr-2",
|
|
95699
95694
|
color: "var(--p-text2)",
|
|
95700
95695
|
icon: "folder",
|
|
95701
95696
|
size: "16"
|
|
95702
95697
|
}),
|
|
95703
|
-
createElementVNode("span",
|
|
95704
|
-
createElementVNode("span",
|
|
95698
|
+
createElementVNode("span", _hoisted_34$4, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.sections.content")), 1),
|
|
95699
|
+
createElementVNode("span", _hoisted_35$4, "(" + toDisplayString(filteredContentFiles.value.length) + ")", 1)
|
|
95705
95700
|
]),
|
|
95706
95701
|
createElementVNode("div", null, [
|
|
95707
95702
|
(openBlock(true), createElementBlock(Fragment, null, renderList(filteredContentFiles.value.slice(0, 5), (item) => {
|
|
@@ -95723,22 +95718,22 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95723
95718
|
"object-fit": "cover",
|
|
95724
95719
|
src: item.picture_url || "",
|
|
95725
95720
|
width: "72"
|
|
95726
|
-
}, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div",
|
|
95721
|
+
}, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div", _hoisted_37$4, [
|
|
95727
95722
|
createVNode(CIcon, {
|
|
95728
95723
|
color: "var(--p-text2)",
|
|
95729
95724
|
icon: "folder",
|
|
95730
95725
|
size: "32"
|
|
95731
95726
|
})
|
|
95732
95727
|
])),
|
|
95733
|
-
createElementVNode("div",
|
|
95734
|
-
createElementVNode("h3",
|
|
95735
|
-
createElementVNode("p",
|
|
95728
|
+
createElementVNode("div", _hoisted_38$4, [
|
|
95729
|
+
createElementVNode("h3", _hoisted_39$4, toDisplayString(item.name), 1),
|
|
95730
|
+
createElementVNode("p", _hoisted_40$4, toDisplayString(item.type === "folder" ? "Folder" : item.content_type || "PDF"), 1)
|
|
95736
95731
|
]),
|
|
95737
|
-
createElementVNode("div",
|
|
95738
|
-
], 10,
|
|
95732
|
+
createElementVNode("div", _hoisted_41$4, toDisplayString(item.type === "folder" ? item.parent_folder?.name || "" : item.folder?.name || ""), 1)
|
|
95733
|
+
], 10, _hoisted_36$4);
|
|
95739
95734
|
}), 128))
|
|
95740
95735
|
]),
|
|
95741
|
-
filteredContentFiles.value.length > 5 ? (openBlock(), createElementBlock("div",
|
|
95736
|
+
filteredContentFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_42$4, [
|
|
95742
95737
|
createElementVNode("span", {
|
|
95743
95738
|
class: "text-sm text-gray-600 hover:text-gray-800 font-bold flex items-center cursor-pointer",
|
|
95744
95739
|
onClick: _cache[13] || (_cache[13] = ($event) => searchType.value = "content")
|
|
@@ -95752,16 +95747,16 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95752
95747
|
])
|
|
95753
95748
|
])) : createCommentVNode("", true)
|
|
95754
95749
|
])) : createCommentVNode("", true),
|
|
95755
|
-
filteredCanvasFiles.value.length > 0 ? (openBlock(), createElementBlock("div",
|
|
95756
|
-
createElementVNode("div",
|
|
95750
|
+
filteredCanvasFiles.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_43$4, [
|
|
95751
|
+
createElementVNode("div", _hoisted_44$4, [
|
|
95757
95752
|
createVNode(CIcon, {
|
|
95758
95753
|
class: "mr-2",
|
|
95759
95754
|
color: "var(--p-text2)",
|
|
95760
95755
|
icon: "presentation",
|
|
95761
95756
|
size: "16"
|
|
95762
95757
|
}),
|
|
95763
|
-
createElementVNode("span",
|
|
95764
|
-
createElementVNode("span",
|
|
95758
|
+
createElementVNode("span", _hoisted_45$4, toDisplayString(unref(t)("canvasUI.CAlgoliaSearch.sections.pitchDecks")), 1),
|
|
95759
|
+
createElementVNode("span", _hoisted_46$4, "(" + toDisplayString(filteredCanvasFiles.value.length) + ")", 1)
|
|
95765
95760
|
]),
|
|
95766
95761
|
createElementVNode("div", null, [
|
|
95767
95762
|
(openBlock(true), createElementBlock(Fragment, null, renderList(filteredCanvasFiles.value.slice(0, 5), (item) => {
|
|
@@ -95775,22 +95770,22 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95775
95770
|
"data-result-selected": isResultSelected(item),
|
|
95776
95771
|
onClick: ($event) => handleResultClick(item, "canvas")
|
|
95777
95772
|
}, [
|
|
95778
|
-
createElementVNode("div",
|
|
95773
|
+
createElementVNode("div", _hoisted_48$4, [
|
|
95779
95774
|
createVNode(CIcon, {
|
|
95780
95775
|
color: "var(--p-text2)",
|
|
95781
95776
|
icon: "presentation",
|
|
95782
95777
|
size: "32"
|
|
95783
95778
|
})
|
|
95784
95779
|
]),
|
|
95785
|
-
createElementVNode("div",
|
|
95786
|
-
createElementVNode("h3",
|
|
95787
|
-
createElementVNode("p",
|
|
95780
|
+
createElementVNode("div", _hoisted_49$4, [
|
|
95781
|
+
createElementVNode("h3", _hoisted_50$4, toDisplayString(item.name), 1),
|
|
95782
|
+
createElementVNode("p", _hoisted_51$2, toDisplayString(formatCanvasType(item.content_type)), 1)
|
|
95788
95783
|
]),
|
|
95789
|
-
createElementVNode("div",
|
|
95790
|
-
], 10,
|
|
95784
|
+
createElementVNode("div", _hoisted_52$2, toDisplayString(item.folder?.name || ""), 1)
|
|
95785
|
+
], 10, _hoisted_47$4);
|
|
95791
95786
|
}), 128))
|
|
95792
95787
|
]),
|
|
95793
|
-
filteredCanvasFiles.value.length > 5 ? (openBlock(), createElementBlock("div",
|
|
95788
|
+
filteredCanvasFiles.value.length > 5 ? (openBlock(), createElementBlock("div", _hoisted_53$2, [
|
|
95794
95789
|
createElementVNode("span", {
|
|
95795
95790
|
class: "text-sm text-gray-600 hover:text-gray-800 font-bold flex items-center cursor-pointer",
|
|
95796
95791
|
onClick: _cache[14] || (_cache[14] = ($event) => searchType.value = "canvases")
|
|
@@ -95805,7 +95800,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95805
95800
|
])) : createCommentVNode("", true)
|
|
95806
95801
|
])) : createCommentVNode("", true)
|
|
95807
95802
|
]),
|
|
95808
|
-
searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div",
|
|
95803
|
+
searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div", _hoisted_54$1, [
|
|
95809
95804
|
createVNode(CIcon, {
|
|
95810
95805
|
class: "text-6xl",
|
|
95811
95806
|
color: searchError.value ? "var(--p-error)" : "var(--p-text3)",
|
|
@@ -95816,9 +95811,9 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95816
95811
|
class: normalizeClass(searchError.value ? "text-error font-semibold" : "text-text2")
|
|
95817
95812
|
}, toDisplayString(searchError.value || unref(t)("canvasUI.CGlobalSearch.noResults")), 3)
|
|
95818
95813
|
])) : createCommentVNode("", true)
|
|
95819
|
-
])) : (openBlock(), createElementBlock("div",
|
|
95820
|
-
createElementVNode("div",
|
|
95821
|
-
createElementVNode("div",
|
|
95814
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_55$1, [
|
|
95815
|
+
createElementVNode("div", _hoisted_56$1, [
|
|
95816
|
+
createElementVNode("div", _hoisted_57$1, [
|
|
95822
95817
|
searchType.value === "content" ? (openBlock(), createBlock(CIcon, {
|
|
95823
95818
|
key: 0,
|
|
95824
95819
|
class: "mr-2",
|
|
@@ -95832,8 +95827,8 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95832
95827
|
icon: "presentation",
|
|
95833
95828
|
size: "16"
|
|
95834
95829
|
})),
|
|
95835
|
-
createElementVNode("span",
|
|
95836
|
-
createElementVNode("span",
|
|
95830
|
+
createElementVNode("span", _hoisted_58$1, toDisplayString(searchType.value === "content" ? unref(t)("canvasUI.CAlgoliaSearch.sections.content") : unref(t)("canvasUI.CAlgoliaSearch.sections.pitchDecks")), 1),
|
|
95831
|
+
createElementVNode("span", _hoisted_59$1, " (" + toDisplayString(searchType.value === "content" ? filteredContentFiles.value.length : filteredCanvasFiles.value.length) + ") ", 1)
|
|
95837
95832
|
]),
|
|
95838
95833
|
createElementVNode("div", null, [
|
|
95839
95834
|
(openBlock(true), createElementBlock(Fragment, null, renderList(searchType.value === "content" ? filteredContentFiles.value : filteredCanvasFiles.value, (item) => {
|
|
@@ -95858,7 +95853,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95858
95853
|
"object-fit": "cover",
|
|
95859
95854
|
src: item.picture_url || "",
|
|
95860
95855
|
width: "72"
|
|
95861
|
-
}, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div",
|
|
95856
|
+
}, null, 8, ["file-data", "src"])) : (openBlock(), createElementBlock("div", _hoisted_61$1, [
|
|
95862
95857
|
searchType.value === "content" ? (openBlock(), createBlock(CIcon, {
|
|
95863
95858
|
key: 0,
|
|
95864
95859
|
color: "var(--p-text2)",
|
|
@@ -95871,15 +95866,15 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95871
95866
|
size: "32"
|
|
95872
95867
|
}))
|
|
95873
95868
|
])),
|
|
95874
|
-
createElementVNode("div",
|
|
95875
|
-
createElementVNode("h3",
|
|
95876
|
-
createElementVNode("p",
|
|
95869
|
+
createElementVNode("div", _hoisted_62$1, [
|
|
95870
|
+
createElementVNode("h3", _hoisted_63$1, toDisplayString(item.name), 1),
|
|
95871
|
+
createElementVNode("p", _hoisted_64$1, toDisplayString(searchType.value === "content" ? item.type === "folder" ? "Folder" : item.content_type || "PDF" : formatCanvasType(item.content_type)), 1)
|
|
95877
95872
|
]),
|
|
95878
|
-
createElementVNode("div",
|
|
95879
|
-
], 10,
|
|
95873
|
+
createElementVNode("div", _hoisted_65$1, toDisplayString(searchType.value === "content" && item.type === "folder" ? item.parent_folder?.name || "" : item.folder?.name || ""), 1)
|
|
95874
|
+
], 10, _hoisted_60$1);
|
|
95880
95875
|
}), 128))
|
|
95881
95876
|
]),
|
|
95882
|
-
searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div",
|
|
95877
|
+
searchError.value || shouldShowNoResults.value ? (openBlock(), createElementBlock("div", _hoisted_66$1, [
|
|
95883
95878
|
createVNode(CIcon, {
|
|
95884
95879
|
class: "text-6xl",
|
|
95885
95880
|
color: searchError.value ? "var(--p-error)" : "var(--p-text3)",
|
|
@@ -95893,7 +95888,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95893
95888
|
])
|
|
95894
95889
|
]))
|
|
95895
95890
|
]),
|
|
95896
|
-
!showRecentView.value ? (openBlock(), createElementBlock("div",
|
|
95891
|
+
!showRecentView.value ? (openBlock(), createElementBlock("div", _hoisted_67$1, [
|
|
95897
95892
|
createVNode(CShortcut, null, {
|
|
95898
95893
|
default: withCtx(() => [
|
|
95899
95894
|
createVNode(CShortcutIcon, { icon: "arrow-up" }),
|
|
@@ -95935,7 +95930,7 @@ const _sfc_main$5I = /* @__PURE__ */ defineComponent({
|
|
|
95935
95930
|
}
|
|
95936
95931
|
});
|
|
95937
95932
|
|
|
95938
|
-
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5I, [["__scopeId", "data-v-
|
|
95933
|
+
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5I, [["__scopeId", "data-v-2614a281"]]);
|
|
95939
95934
|
|
|
95940
95935
|
const BulletListExtended = BulletList.extend({
|
|
95941
95936
|
addOptions() {
|