@useinsider/guido 3.30.0-beta.4a936b5 → 3.30.0-beta.4c3dba9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/@types/config/schemas.js +7 -5
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +26 -25
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +4 -4
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +28 -28
- package/dist/composables/useAutoSave.js +13 -13
- package/dist/composables/useHtmlCompiler.js +15 -13
- package/dist/composables/useStripo.js +79 -81
- package/dist/config/compiler/liquidCompilerRules.js +13 -5
- package/dist/extensions/DynamicContent/dynamic-content.js +56 -33
- package/dist/guido.css +1 -1
- package/dist/package.json.js +1 -1
- package/dist/services/stripoApi.js +18 -21
- package/dist/src/@types/config/schemas.d.ts +4 -0
- package/dist/src/@types/generic.d.ts +10 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +11 -0
- package/dist/src/stores/config.d.ts +21 -0
- package/dist/src/stores/editor.d.ts +0 -6
- package/dist/src/utils/clipboardText.d.ts +1 -0
- package/dist/src/utils/genericUtil.d.ts +6 -1
- package/dist/src/utils/linkTokenPaste.d.ts +3 -0
- package/dist/src/utils/liquidLinkQuotes.d.ts +4 -0
- package/dist/stores/editor.js +14 -15
- package/dist/utils/clipboardText.js +31 -0
- package/dist/utils/genericUtil.js +55 -45
- package/dist/utils/linkTokenPaste.js +28 -0
- package/dist/utils/liquidLinkQuotes.js +10 -0
- package/package.json +1 -1
|
@@ -1,70 +1,72 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useAmbiguousDynamicContent as
|
|
3
|
-
import { useBlocksConfig as
|
|
4
|
-
import { useConfig as
|
|
5
|
-
import { useCustomInterfaceAppearance as
|
|
6
|
-
import { useFullStoryBridge as
|
|
7
|
-
import { useModuleRepair as
|
|
8
|
-
import { useStripoEventHandler as
|
|
9
|
-
import { useStripoNotifications as
|
|
10
|
-
import { useToaster as
|
|
11
|
-
import { localePatch as
|
|
12
|
-
import { en as
|
|
13
|
-
import { ToasterTypeOptions as
|
|
14
|
-
import { useStripoApi as
|
|
15
|
-
import
|
|
16
|
-
import { useEditorStore as
|
|
17
|
-
import { buildMergeTagEntries as
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { useActionsApi as G } from "./useActionsApi.js";
|
|
2
|
+
import { useAmbiguousDynamicContent as $ } from "./useAmbiguousDynamicContent.js";
|
|
3
|
+
import { useBlocksConfig as X } from "./useBlocksConfig.js";
|
|
4
|
+
import { useConfig as J } from "./useConfig.js";
|
|
5
|
+
import { useCustomInterfaceAppearance as B } from "./useCustomInterfaceAppearance.js";
|
|
6
|
+
import { useFullStoryBridge as K } from "./useFullStoryBridge.js";
|
|
7
|
+
import { useModuleRepair as Q } from "./useModuleRepair.js";
|
|
8
|
+
import { useStripoEventHandler as W } from "./useStripoEventHandler.js";
|
|
9
|
+
import { useStripoNotifications as Y } from "./useStripoNotifications.js";
|
|
10
|
+
import { useToaster as Z } from "./useToaster.js";
|
|
11
|
+
import { localePatch as ee } from "../config/i18n/index.js";
|
|
12
|
+
import { en as F } from "../config/i18n/en/index.js";
|
|
13
|
+
import { ToasterTypeOptions as te } from "../enums/toaster.js";
|
|
14
|
+
import { useStripoApi as oe } from "../services/stripoApi.js";
|
|
15
|
+
import re from "../static/styles/customEditorStyle.css.js";
|
|
16
|
+
import { useEditorStore as A } from "../stores/editor.js";
|
|
17
|
+
import { buildSpecialLinkGroups as ie, buildMergeTagEntries as ne, flattenDynamicContentList as se } from "../utils/genericUtil.js";
|
|
18
|
+
import { listenForLinkTokenPaste as ae } from "../utils/linkTokenPaste.js";
|
|
19
|
+
import { getStripoRuntimeBaseUrl as de } from "../utils/stripoRuntime.js";
|
|
20
|
+
let d = null, P = !1;
|
|
21
|
+
const Pe = (t) => {
|
|
22
|
+
const { features: p, template: u, isFeatureEnabled: c } = J(), { handleError: f, showToaster: L } = Z(), { getToken: R, getCustomFonts: D, getSyncModulesStatus: U } = oe(), { handleEvent: V } = W(), { handleModuleAdd: I } = Q(), { restorePending: q } = $(), { getStripoBlocksConfig: x } = X(), { getStripoNotifications: O } = Y(), g = () => d || (d = new Promise((n, s) => {
|
|
22
23
|
if (document.getElementById("UiEditorScript")) {
|
|
23
24
|
n();
|
|
24
25
|
return;
|
|
25
26
|
}
|
|
26
|
-
const i =
|
|
27
|
+
const i = de();
|
|
27
28
|
if (!i) {
|
|
28
|
-
|
|
29
|
+
s(
|
|
29
30
|
new Error("guido.stripo.version is not set in package.json. Please configure the Stripo version.")
|
|
30
31
|
);
|
|
31
32
|
return;
|
|
32
33
|
}
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
}, document.body.appendChild(
|
|
39
|
-
}),
|
|
40
|
-
|
|
41
|
-
}),
|
|
42
|
-
var
|
|
43
|
-
const
|
|
34
|
+
const a = `${i}UIEditor.js`, e = document.createElement("script");
|
|
35
|
+
e.id = "UiEditorScript", e.type = "module", e.src = a, e.onload = () => {
|
|
36
|
+
P = !0, n();
|
|
37
|
+
}, e.onerror = () => {
|
|
38
|
+
e.remove(), s(new Error(`Failed to load Stripo UIEditor script from S3: ${a}`));
|
|
39
|
+
}, document.body.appendChild(e);
|
|
40
|
+
}), d.catch(() => {
|
|
41
|
+
d = null;
|
|
42
|
+
}), d), H = async (n, s, i, a = [], e = !1, m = !1) => {
|
|
43
|
+
var w, b, _, v, T;
|
|
44
|
+
const o = A(), { html: S, css: y } = n, { baseBlocks: E, extensions: M } = await x();
|
|
44
45
|
t.mark("blocks_config_ready");
|
|
45
|
-
const
|
|
46
|
-
t.setTemplate({ html: S, css: y, forceRecreate:
|
|
46
|
+
const C = ((w = p.value) == null ? void 0 : w.displayConditions) ?? !0, N = ((b = p.value) == null ? void 0 : b.modulesDisabled) ?? !1, h = c("dynamicContentSpecialLinks") ? ie((_ = u.value) == null ? void 0 : _.dynamicContentList, c("liquidSyntax")) : [], k = m || (((v = u.value) == null ? void 0 : v.forceRecreate) ?? !1), j = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com";
|
|
47
|
+
t.setTemplate({ html: S, css: y, forceRecreate: k }), B().importCss(), t.mark("init_editor"), await window.UIEditor.initEditor(
|
|
47
48
|
document.querySelector("#guido-editor"),
|
|
48
49
|
{
|
|
49
|
-
metadata:
|
|
50
|
+
metadata: s,
|
|
50
51
|
html: S,
|
|
51
52
|
css: y,
|
|
52
|
-
forceRecreate:
|
|
53
|
+
forceRecreate: k,
|
|
53
54
|
locale: "en",
|
|
54
55
|
undoButtonSelector: "#guido__undo-button",
|
|
55
56
|
redoButtonSelector: "#guido__redo-button",
|
|
56
57
|
mobileViewButtonSelector: ".guido__view-option-selection-mobile",
|
|
57
58
|
desktopViewButtonSelector: ".guido__view-option-selection-desktop",
|
|
58
59
|
codeEditorButtonSelector: "#guido__code-button",
|
|
59
|
-
customAppearanceMergetags: !
|
|
60
|
+
customAppearanceMergetags: !c("liquidSyntax"),
|
|
60
61
|
customAppearanceMergetagsBorderColor: "#f1f3fe",
|
|
61
62
|
customAppearanceMergetagsBackgroundColor: "#f1f3fe",
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
...h.length > 0 ? { specialLinks: h } : {},
|
|
64
|
+
customViewStyles: re,
|
|
65
|
+
conditionsEnabled: C,
|
|
66
|
+
customConditionsEnabled: C,
|
|
65
67
|
enableXSSSecurity: !0,
|
|
66
|
-
modulesDisabled:
|
|
67
|
-
syncModulesEnabled:
|
|
68
|
+
modulesDisabled: N,
|
|
69
|
+
syncModulesEnabled: e,
|
|
68
70
|
messageSettingsEnabled: !0,
|
|
69
71
|
displayGmailAnnotations: !0,
|
|
70
72
|
displayHiddenPreheader: !1,
|
|
@@ -74,60 +76,56 @@ const ve = (t) => {
|
|
|
74
76
|
copyPasteEnabled: !1,
|
|
75
77
|
selectElementAfterDrop: !0,
|
|
76
78
|
sameFontSizeForOutlook: !0,
|
|
77
|
-
allowedScriptSourceDomains:
|
|
79
|
+
allowedScriptSourceDomains: j,
|
|
78
80
|
...E ? { baseBlocks: E } : {},
|
|
79
81
|
editorFonts: {
|
|
80
82
|
showDefaultStandardFonts: !0,
|
|
81
83
|
showDefaultNotStandardFonts: !0,
|
|
82
|
-
customFonts:
|
|
84
|
+
customFonts: a
|
|
83
85
|
},
|
|
84
86
|
mergeTags: [
|
|
85
87
|
{
|
|
86
|
-
entries:
|
|
88
|
+
entries: ne(
|
|
87
89
|
i.preselectedDynamicContentList,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
se((T = u.value) == null ? void 0 : T.dynamicContentList),
|
|
91
|
+
c("liquidSyntax")
|
|
90
92
|
)
|
|
91
93
|
}
|
|
92
94
|
],
|
|
93
95
|
async onTokenRefreshRequest(r) {
|
|
94
96
|
try {
|
|
95
97
|
t.mark("token_start");
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
r(d);
|
|
102
|
-
} catch (d) {
|
|
103
|
-
f(d, "Failed to refresh token");
|
|
98
|
+
const l = await R();
|
|
99
|
+
t.mark("token_end"), r(l);
|
|
100
|
+
} catch (l) {
|
|
101
|
+
f(l, "Failed to refresh token");
|
|
104
102
|
}
|
|
105
103
|
},
|
|
106
104
|
onTemplateLoaded() {
|
|
107
105
|
try {
|
|
108
|
-
const { activateCustomViewStyles: r, updateTimerInClonedTemplate:
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
const { activateCustomViewStyles: r, updateTimerInClonedTemplate: l } = G(), { injectFullStory: z } = K();
|
|
107
|
+
B().importCss(), r(), z(), ae(), q(), l(), i.onReady(), o.isStripoInitialized = !0, o.loadingStatus = !1, setTimeout(() => {
|
|
108
|
+
o.hasChanges = !1;
|
|
111
109
|
}, 1e3), t.markReady();
|
|
112
110
|
} catch (r) {
|
|
113
111
|
f(r, "Failed to load custom interface appearance");
|
|
114
112
|
}
|
|
115
113
|
},
|
|
116
114
|
onCodeEditorVisibilityChanged(r) {
|
|
117
|
-
|
|
115
|
+
o.isCodeEditorOpen = r;
|
|
118
116
|
},
|
|
119
117
|
onEditorVisualModeChanged(r) {
|
|
120
|
-
|
|
118
|
+
o.editorVisualMode = r.toLowerCase();
|
|
121
119
|
},
|
|
122
120
|
onVersionHistoryVisibilityChanged(r) {
|
|
123
|
-
|
|
121
|
+
o.isVersionHistoryOpen = r;
|
|
124
122
|
},
|
|
125
123
|
onDataChanged() {
|
|
126
|
-
|
|
124
|
+
o.hasChanges = !0, o.changeSeq += 1;
|
|
127
125
|
},
|
|
128
|
-
onEvent:
|
|
129
|
-
onModuleAdd:
|
|
130
|
-
notifications:
|
|
126
|
+
onEvent: V,
|
|
127
|
+
onModuleAdd: I,
|
|
128
|
+
notifications: O(),
|
|
131
129
|
// Stripo deselects the block on any click outside the canvas, so every surface
|
|
132
130
|
// that belongs to the block's own flow has to be listed here (SD-153273).
|
|
133
131
|
ignoreClickOutsideSelectors: [
|
|
@@ -137,26 +135,26 @@ const ve = (t) => {
|
|
|
137
135
|
".in-modal-v2-wrapper",
|
|
138
136
|
".in-toasts-wrapper"
|
|
139
137
|
],
|
|
140
|
-
extensions:
|
|
141
|
-
localePatch:
|
|
138
|
+
extensions: M,
|
|
139
|
+
localePatch: ee
|
|
142
140
|
}
|
|
143
141
|
);
|
|
144
142
|
};
|
|
145
|
-
return { initPlugin: async (n,
|
|
146
|
-
const
|
|
143
|
+
return { initPlugin: async (n, s, i, a = !1) => {
|
|
144
|
+
const e = A();
|
|
147
145
|
try {
|
|
148
|
-
t.mark("plugin_start"), t.setScriptPreloaded(
|
|
149
|
-
const [
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
t.mark("plugin_start"), t.setScriptPreloaded(P), await g(), t.mark("script_ready");
|
|
147
|
+
const [m, o] = await Promise.all([
|
|
148
|
+
D(),
|
|
149
|
+
U()
|
|
152
150
|
]);
|
|
153
|
-
t.mark("fonts_sync_ready"),
|
|
151
|
+
t.mark("fonts_sync_ready"), e.syncModulesEnabled = o, await H(n, s, i, m, o, a);
|
|
154
152
|
} catch {
|
|
155
|
-
|
|
156
|
-
type:
|
|
157
|
-
message:
|
|
153
|
+
e.loadingStatus = !1, L({
|
|
154
|
+
type: te.Error,
|
|
155
|
+
message: F["An error has occurred. Please report the error code to support."],
|
|
158
156
|
actionButton: {
|
|
159
|
-
text:
|
|
157
|
+
text: F["Reload page"],
|
|
160
158
|
onClick: () => window.location.reload()
|
|
161
159
|
}
|
|
162
160
|
}), t.markFailed();
|
|
@@ -167,5 +165,5 @@ const ve = (t) => {
|
|
|
167
165
|
} };
|
|
168
166
|
};
|
|
169
167
|
export {
|
|
170
|
-
|
|
168
|
+
Pe as useStripo
|
|
171
169
|
};
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import { COUPON_PLACEHOLDER_LIQUID as
|
|
2
|
-
|
|
1
|
+
import { COUPON_PLACEHOLDER_LIQUID as i, COUPON_PLACEHOLDER_DEFAULT as o } from "../../extensions/Blocks/CouponBlock/template.js";
|
|
2
|
+
import { singleQuoteLiquidLinks as r } from "../../utils/liquidLinkQuotes.js";
|
|
3
|
+
const s = [
|
|
3
4
|
{
|
|
4
5
|
id: "liquid-coupon-code",
|
|
5
6
|
description: "Replace legacy coupon placeholder with liquid syntax",
|
|
6
7
|
type: "replace",
|
|
7
|
-
search:
|
|
8
|
-
replacement:
|
|
8
|
+
search: o,
|
|
9
|
+
replacement: i,
|
|
9
10
|
replaceAll: !0,
|
|
10
11
|
priority: 50
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "liquid-single-quote-links",
|
|
15
|
+
description: "Replace " string literals with single quotes inside {{ }} tags of href and src values",
|
|
16
|
+
type: "custom",
|
|
17
|
+
processor: (e) => r(e),
|
|
18
|
+
priority: 60
|
|
11
19
|
}
|
|
12
20
|
];
|
|
13
21
|
export {
|
|
14
|
-
|
|
22
|
+
s as liquidCompilerRules
|
|
15
23
|
};
|
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { useConfig as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
var d = (o, r, t) => r in o ? c(o, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[r] = t;
|
|
3
|
+
var s = (o, r, t) => d(o, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
+
import { useConfig as g } from "../../composables/useConfig.js";
|
|
5
|
+
import { clipboardHtmlToPlainText as m } from "../../utils/clipboardText.js";
|
|
6
|
+
import { findEditorShadowRoot as u } from "../../utils/editorShadowRoot.js";
|
|
7
|
+
import { mergeTagToDynamicContent as h, dynamicContentToMergeTags as T } from "../../utils/genericUtil.js";
|
|
8
|
+
import { UIElement as p, UIElementType as l, UEAttr as C, UIElementTagRegistry as y } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
9
|
+
import { ExternalMergeTagsLibrary as L } from "./dynamic-content-modal.js";
|
|
10
|
+
const a = "external-dynamic-content-ui-element", E = "button-add-dynamic-content";
|
|
11
|
+
class v extends y {
|
|
12
|
+
registerUiElements(r) {
|
|
13
|
+
r[l.MERGETAGS] = a;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
|
-
class
|
|
16
|
+
class P extends p {
|
|
16
17
|
constructor() {
|
|
17
18
|
super(...arguments);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
s(this, "mergeTagsButton", null);
|
|
20
|
+
s(this, "mergeTagsLibrary", null);
|
|
21
|
+
s(this, "clickListener", null);
|
|
22
|
+
s(this, "lastClickedElement", null);
|
|
23
|
+
s(this, "lastClickedFrame", null);
|
|
24
|
+
s(this, "mousedownListener", null);
|
|
25
|
+
s(this, "clipboardWindow", null);
|
|
26
|
+
s(this, "clipboardListener", (t) => this._writeTokenAsPlainText(t));
|
|
24
27
|
}
|
|
25
28
|
getId() {
|
|
26
|
-
return
|
|
29
|
+
return a;
|
|
27
30
|
}
|
|
28
31
|
onRender(t) {
|
|
29
32
|
var e;
|
|
30
|
-
this.mergeTagsButton = t.querySelector("#guido__btn-add-dynamic-content"), this.clickListener = this._onClick.bind(this), (e = this.mergeTagsButton) == null || e.addEventListener("click", this.clickListener), this._setupCoordinateTracking();
|
|
33
|
+
this.mergeTagsButton = t.querySelector("#guido__btn-add-dynamic-content"), this.clickListener = this._onClick.bind(this), (e = this.mergeTagsButton) == null || e.addEventListener("click", this.clickListener), this._setupCoordinateTracking(), this._setupClipboardTracking();
|
|
31
34
|
}
|
|
32
35
|
onDestroy() {
|
|
33
36
|
var t;
|
|
34
|
-
this.clickListener && ((t = this.mergeTagsButton) == null || t.removeEventListener("click", this.clickListener)), this._cleanupCoordinateTracking(), this.mergeTagsButton = null, this.clickListener = null, this.lastClickedElement = null, this.lastClickedFrame = null;
|
|
37
|
+
this.clickListener && ((t = this.mergeTagsButton) == null || t.removeEventListener("click", this.clickListener)), this._cleanupCoordinateTracking(), this._cleanupClipboardTracking(), this.mergeTagsButton = null, this.clickListener = null, this.lastClickedElement = null, this.lastClickedFrame = null;
|
|
35
38
|
}
|
|
36
39
|
_onClick() {
|
|
37
40
|
this.openMergeTagLibrary();
|
|
@@ -45,7 +48,7 @@ class x extends T {
|
|
|
45
48
|
onAttributeUpdated(t, e) {
|
|
46
49
|
if (t !== "mergeTag" || !(e != null && e.value))
|
|
47
50
|
return;
|
|
48
|
-
const n =
|
|
51
|
+
const n = h(e), i = this._getLastClickedPosition();
|
|
49
52
|
this.lastClickedElement = null, this.lastClickedFrame = null, this._openDynamicContentLibrary(n, i);
|
|
50
53
|
}
|
|
51
54
|
openMergeTagLibrary() {
|
|
@@ -57,12 +60,12 @@ class x extends T {
|
|
|
57
60
|
* Dispatches event with dynamic content data and position
|
|
58
61
|
*/
|
|
59
62
|
_openDynamicContentLibrary(t, e) {
|
|
60
|
-
this.mergeTagsLibrary || (this.mergeTagsLibrary = new
|
|
63
|
+
this.mergeTagsLibrary || (this.mergeTagsLibrary = new L()), this.mergeTagsLibrary.openMergeTagsLibrary(
|
|
61
64
|
t,
|
|
62
65
|
(n) => {
|
|
63
66
|
if (n.text && n.value) {
|
|
64
|
-
const { isFeatureEnabled: i } =
|
|
65
|
-
this.api.triggerValueChange(
|
|
67
|
+
const { isFeatureEnabled: i } = g();
|
|
68
|
+
this.api.triggerValueChange(T([n], i("liquidSyntax"))[0]);
|
|
66
69
|
} else
|
|
67
70
|
this.api.triggerValueChange(null);
|
|
68
71
|
},
|
|
@@ -91,12 +94,32 @@ class x extends T {
|
|
|
91
94
|
i && (this.lastClickedElement = i, this.lastClickedFrame = t);
|
|
92
95
|
}, t.contentWindow.document.addEventListener("mousedown", this.mousedownListener));
|
|
93
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* Listens on the canvas window so it runs after Stripo's own copy handler
|
|
99
|
+
*/
|
|
100
|
+
_setupClipboardTracking() {
|
|
101
|
+
var e;
|
|
102
|
+
this._cleanupClipboardTracking();
|
|
103
|
+
const t = (e = this._getEditorFrame()) == null ? void 0 : e.contentWindow;
|
|
104
|
+
t && (this.clipboardWindow = t, t.addEventListener("copy", this.clipboardListener), t.addEventListener("cut", this.clipboardListener));
|
|
105
|
+
}
|
|
106
|
+
_cleanupClipboardTracking() {
|
|
107
|
+
var t, e;
|
|
108
|
+
(t = this.clipboardWindow) == null || t.removeEventListener("copy", this.clipboardListener), (e = this.clipboardWindow) == null || e.removeEventListener("cut", this.clipboardListener), this.clipboardWindow = null;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Link and image fields paste the plain flavour, where Stripo puts the chip label
|
|
112
|
+
*/
|
|
113
|
+
_writeTokenAsPlainText({ clipboardData: t }) {
|
|
114
|
+
const e = m((t == null ? void 0 : t.getData("text/html")) ?? "");
|
|
115
|
+
e !== null && (t == null || t.setData("text/plain", e));
|
|
116
|
+
}
|
|
94
117
|
/**
|
|
95
118
|
* Gets the editor iframe element
|
|
96
119
|
*/
|
|
97
120
|
_getEditorFrame() {
|
|
98
121
|
var e, n;
|
|
99
|
-
const t = (e =
|
|
122
|
+
const t = (e = u()) == null ? void 0 : e.querySelector("iframe");
|
|
100
123
|
return (n = t == null ? void 0 : t.contentWindow) != null && n.document ? t : null;
|
|
101
124
|
}
|
|
102
125
|
/**
|
|
@@ -142,18 +165,18 @@ class x extends T {
|
|
|
142
165
|
getTemplate() {
|
|
143
166
|
return `
|
|
144
167
|
<div>
|
|
145
|
-
<${
|
|
168
|
+
<${l.BUTTON}
|
|
146
169
|
id="guido__btn-add-dynamic-content"
|
|
147
170
|
class="btn btn-primary"
|
|
148
|
-
${
|
|
149
|
-
<${
|
|
150
|
-
</${
|
|
171
|
+
${C.BUTTON.name}="${E}">
|
|
172
|
+
<${l.ICON} src="plus" class="icon icon-button color-primary">
|
|
173
|
+
</${l.ICON}>
|
|
151
174
|
${this.api.translate("Add Dynamic Content")}
|
|
152
|
-
</${
|
|
175
|
+
</${l.BUTTON}>
|
|
153
176
|
</div>`;
|
|
154
177
|
}
|
|
155
178
|
}
|
|
156
179
|
export {
|
|
157
|
-
|
|
158
|
-
|
|
180
|
+
v as DynamicContentTagRegistry,
|
|
181
|
+
P as DynamicContentUiElementExtension
|
|
159
182
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-
|
|
1
|
+
@charset "UTF-8";.auth-error-modal[data-v-b4d7ae51]{position:relative;z-index:145}.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-9d988e4b] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.color-vision-select__dropdown[data-v-64cb50da]{z-index:20;width:387px}.accessibility-toolbar[data-v-391019bc]{gap:16px}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button svg{margin-right:0}.accessibility-toolbar[data-v-391019bc] .in-segments-wrapper__button .clearfix:after{content:none}.view-options-wrapper[data-v-87033101]{position:relative;display:inline-block}.new-tag[data-v-87033101]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-87033101] .guido__view-option-selection-desktop svg,[data-v-87033101] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-87033101] .in-segments-wrapper__button_selected,[data-v-87033101] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-87033101] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{gap:4px}.view-options-wrapper[data-v-6ebabfe4]{position:relative;display:inline-block}.new-tag[data-v-6ebabfe4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-6ebabfe4] .guido__verion-history-view-option-selection-desktop svg,[data-v-6ebabfe4] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-6ebabfe4] .in-segments-wrapper__button_selected,[data-v-6ebabfe4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-6ebabfe4] .in-tooltip-wrapper-v2__icon{cursor:pointer}.editor-actions-menu__dropdown[data-v-bdb3b37a]{z-index:20;width:222px}.editor-actions[data-v-9a028d08]{gap:16px}.editor-actions__divider[data-v-9a028d08]{width:1px;height:40px;background-color:#e1e1e1}.right-slot[data-v-77451c9a]{gap:16px}.header-wrapper[data-v-3c713746]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.validation-error-list[data-v-e48cebe9]{gap:16px}.validation-error-row[data-v-e48cebe9]{gap:8px;padding:24px;border:1px solid #E1E1E1;border-radius:8px}.validation-error-row__icon[data-v-e48cebe9]{flex-shrink:0;font-size:24px;line-height:0}.validation-error-row__text[data-v-e48cebe9]{font-size:13px;line-height:16px;color:#292929;word-break:break-word}.guido-editor__wrapper[data-v-da8cab7f]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-da8cab7f]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-da8cab7f]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-eaf8e461]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-eaf8e461]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-eaf8e461]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-eaf8e461]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-eaf8e461]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-cf946232]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-cf946232]{min-height:504px}.iframe-wrapper[data-v-f255b2bb]{width:258px}.iframe-scaled[data-v-f255b2bb]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-6bcaca8a] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.guido-tab-bar-onboarding[data-v-219b4f7c]{z-index:21}[data-v-fcba7e99] .vueperslides__bullets{pointer-events:none!important}[data-v-fcba7e99] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-1a34025a] .vueperslides__bullets{pointer-events:none!important}[data-v-1a34025a] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-8fc96a58] .vueperslides__bullets,[data-v-ec2027ff] .vueperslides__bullets,[data-v-b09e80c4] .vueperslides__bullets{pointer-events:none!important}[data-v-b09e80c4] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-9bdef600] .vueperslides__parallax-wrapper{padding-bottom:110px!important}.assign-strategy-drawer .spaced-dot-sep{background-image:linear-gradient(90deg,#91949f 20%,#fff0 0);background-position:center bottom;background-repeat:repeat-x;background-size:5px 1px}.assign-strategy-drawer .spaced-dot-sep--top{background-position:center top}.assign-strategy-drawer .spaced-dot-sep--fc-n:first-child{background:none}.guido-display-condition-create__separator[data-v-929822bc]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,currentColor 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-929822bc]{gap:16px}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-0d740001]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-0d740001] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-0d740001] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-0d740001]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-0d740001]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-0d740001]{min-width:0}.guido-display-condition-card__name[data-v-0d740001],.guido-display-condition-card__description[data-v-0d740001]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-0d740001]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-0d740001]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-0d740001]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-0d740001]{width:1px;height:24px}.guido-display-condition-card__code[data-v-0d740001]{margin:1px 15px 15px;padding:8px;font-family:inherit;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}.ambiguous-dynamic-content-modal__content[data-v-2643213c]{padding-bottom:150px}
|
package/dist/package.json.js
CHANGED
|
@@ -2,22 +2,19 @@ import { useHttp as m } from "../composables/useHttp.js";
|
|
|
2
2
|
import { useToaster as y } from "../composables/useToaster.js";
|
|
3
3
|
import { MAX_DEFAULT_TEMPLATE_ID as f } from "../enums/defaults.js";
|
|
4
4
|
import { useBlankTemplate as g } from "./blankTemplate.js";
|
|
5
|
-
const
|
|
5
|
+
const l = () => ({
|
|
6
6
|
id: 0,
|
|
7
7
|
stripoId: 0,
|
|
8
8
|
unsubscriptionPreferencePages: []
|
|
9
|
-
}),
|
|
10
|
-
const { get: s, post:
|
|
9
|
+
}), D = () => {
|
|
10
|
+
const { get: s, post: u } = m(), { handleError: r } = y(), { getBlankTemplate: n } = g();
|
|
11
11
|
return {
|
|
12
12
|
getToken: async () => {
|
|
13
|
-
var t;
|
|
14
13
|
try {
|
|
15
|
-
const { data:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return
|
|
19
|
-
} catch (e) {
|
|
20
|
-
return r(e, "Failed to fetch token"), "";
|
|
14
|
+
const { data: t } = await s("/stripo/get-user-token");
|
|
15
|
+
return t.body.token;
|
|
16
|
+
} catch (t) {
|
|
17
|
+
return r(t, "Failed to fetch token"), "";
|
|
21
18
|
}
|
|
22
19
|
},
|
|
23
20
|
getCustomFonts: async () => {
|
|
@@ -33,13 +30,13 @@ const p = () => ({
|
|
|
33
30
|
},
|
|
34
31
|
getDefaultTemplate: async () => {
|
|
35
32
|
try {
|
|
36
|
-
const t = new URLSearchParams(window.location.search), e = t.get("default-template"),
|
|
37
|
-
if (!
|
|
38
|
-
return await
|
|
39
|
-
const d = `/stripo/default-template/${
|
|
40
|
-
return !
|
|
33
|
+
const t = new URLSearchParams(window.location.search), e = t.get("default-template"), p = t.get("master"), o = e ? parseInt(e) : 0, i = o >= 1 && o <= f ? o : 0;
|
|
34
|
+
if (!i && !p)
|
|
35
|
+
return await n();
|
|
36
|
+
const d = `/stripo/default-template/${i}`, { data: c } = await s(d), a = typeof c == "string" ? JSON.parse(c) : c;
|
|
37
|
+
return !a || typeof a != "object" || !("html" in a) || !("css" in a) ? await n() : a;
|
|
41
38
|
} catch (t) {
|
|
42
|
-
return r(t, "Failed to fetch default template"),
|
|
39
|
+
return r(t, "Failed to fetch default template"), n();
|
|
43
40
|
}
|
|
44
41
|
},
|
|
45
42
|
getSyncModulesStatus: async () => {
|
|
@@ -52,7 +49,7 @@ const p = () => ({
|
|
|
52
49
|
},
|
|
53
50
|
updateSyncModule: async (t) => {
|
|
54
51
|
try {
|
|
55
|
-
return await
|
|
52
|
+
return await u(`/stripo/stripo-modules/${t.moduleId}/update`), !0;
|
|
56
53
|
} catch (e) {
|
|
57
54
|
return r(e, "Failed to update sync module"), !1;
|
|
58
55
|
}
|
|
@@ -60,16 +57,16 @@ const p = () => ({
|
|
|
60
57
|
getSyncModule: async (t) => {
|
|
61
58
|
try {
|
|
62
59
|
const { data: e } = await s(`/stripo/stripo-modules/${t}/get`);
|
|
63
|
-
return Array.isArray(e == null ? void 0 : e.unsubscriptionPreferencePages) ? e :
|
|
60
|
+
return Array.isArray(e == null ? void 0 : e.unsubscriptionPreferencePages) ? e : l();
|
|
64
61
|
} catch (e) {
|
|
65
|
-
return r(e, "Failed to get sync module"),
|
|
62
|
+
return r(e, "Failed to get sync module"), l();
|
|
66
63
|
}
|
|
67
64
|
},
|
|
68
65
|
setSyncModuleUnsubscriptionPages: async (t) => {
|
|
69
66
|
if (t.length === 0)
|
|
70
67
|
return !0;
|
|
71
68
|
try {
|
|
72
|
-
return await
|
|
69
|
+
return await u("/stripo/stripo-modules/set-unsubscription-preference-pages", t), !0;
|
|
73
70
|
} catch (e) {
|
|
74
71
|
return r(e, "Failed to set unsubscription preference pages"), !1;
|
|
75
72
|
}
|
|
@@ -77,5 +74,5 @@ const p = () => ({
|
|
|
77
74
|
};
|
|
78
75
|
};
|
|
79
76
|
export {
|
|
80
|
-
|
|
77
|
+
D as useStripoApi
|
|
81
78
|
};
|
|
@@ -417,6 +417,8 @@ export declare const FeaturesSchema: v.ObjectSchema<{
|
|
|
417
417
|
/** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
|
|
418
418
|
readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
419
419
|
readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
420
|
+
/** List the dynamic-content catalogue as Stripo special links in the link type selector */
|
|
421
|
+
readonly dynamicContentSpecialLinks: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
420
422
|
/** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
|
|
421
423
|
readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
422
424
|
/** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
|
|
@@ -844,6 +846,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
844
846
|
/** Allow persisting a template that still has validation errors (drawer "Save and Continue" soft-save). Host sets false for transactional + unsubscribe. */
|
|
845
847
|
readonly allowSaveWithErrors: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
846
848
|
readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
849
|
+
/** List the dynamic-content catalogue as Stripo special links in the link type selector */
|
|
850
|
+
readonly dynamicContentSpecialLinks: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
847
851
|
/** Convert linkless legacy unsubscribe blocks into text blocks and warn with a modal (opt-in) */
|
|
848
852
|
readonly legacyUnsubscribeConversion: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
849
853
|
/** Items block: Recommendation-style price formatting (root currency-* attrs, raw price tags). Released dark. */
|
|
@@ -22,6 +22,8 @@ export type DynamicContentNode = {
|
|
|
22
22
|
text?: string;
|
|
23
23
|
tag_text?: string;
|
|
24
24
|
value?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
type?: string;
|
|
25
27
|
children?: DynamicContentNode[];
|
|
26
28
|
select_items?: DynamicContentNode[];
|
|
27
29
|
};
|
|
@@ -44,6 +46,14 @@ export type MergeTag = BaseDynamicContent & {
|
|
|
44
46
|
selEnd?: number;
|
|
45
47
|
hidden?: boolean;
|
|
46
48
|
};
|
|
49
|
+
export type SpecialLinkGroup = {
|
|
50
|
+
category: string;
|
|
51
|
+
entries: {
|
|
52
|
+
label: string;
|
|
53
|
+
value: string;
|
|
54
|
+
hidden?: boolean;
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
47
57
|
export type PositionData = {
|
|
48
58
|
x: number;
|
|
49
59
|
y: number;
|
|
@@ -106,6 +106,7 @@ export declare const useConfig: () => {
|
|
|
106
106
|
linkTrackingIds: boolean;
|
|
107
107
|
allowSaveWithErrors: boolean;
|
|
108
108
|
reusableRecommendationStrategy: boolean;
|
|
109
|
+
dynamicContentSpecialLinks: boolean;
|
|
109
110
|
legacyUnsubscribeConversion: boolean;
|
|
110
111
|
itemsPriceFormatting: boolean;
|
|
111
112
|
blockUnsubscribeLinks: boolean;
|
|
@@ -250,6 +251,7 @@ export declare const useConfig: () => {
|
|
|
250
251
|
linkTrackingIds: boolean;
|
|
251
252
|
allowSaveWithErrors: boolean;
|
|
252
253
|
reusableRecommendationStrategy: boolean;
|
|
254
|
+
dynamicContentSpecialLinks: boolean;
|
|
253
255
|
legacyUnsubscribeConversion: boolean;
|
|
254
256
|
itemsPriceFormatting: boolean;
|
|
255
257
|
blockUnsubscribeLinks: boolean;
|
|
@@ -10,6 +10,8 @@ export declare class DynamicContentUiElementExtension extends UIElement {
|
|
|
10
10
|
private lastClickedElement;
|
|
11
11
|
private lastClickedFrame;
|
|
12
12
|
private mousedownListener;
|
|
13
|
+
private clipboardWindow;
|
|
14
|
+
private readonly clipboardListener;
|
|
13
15
|
getId(): string;
|
|
14
16
|
onRender(container: HTMLElement): void;
|
|
15
17
|
onDestroy(): void;
|
|
@@ -37,6 +39,15 @@ export declare class DynamicContentUiElementExtension extends UIElement {
|
|
|
37
39
|
* Workaround from Stripo intercepting click events - tracks mousedown events instead
|
|
38
40
|
*/
|
|
39
41
|
private _setupCoordinateTracking;
|
|
42
|
+
/**
|
|
43
|
+
* Listens on the canvas window so it runs after Stripo's own copy handler
|
|
44
|
+
*/
|
|
45
|
+
private _setupClipboardTracking;
|
|
46
|
+
private _cleanupClipboardTracking;
|
|
47
|
+
/**
|
|
48
|
+
* Link and image fields paste the plain flavour, where Stripo puts the chip label
|
|
49
|
+
*/
|
|
50
|
+
private _writeTokenAsPlainText;
|
|
40
51
|
/**
|
|
41
52
|
* Gets the editor iframe element
|
|
42
53
|
*/
|