@useinsider/guido 3.23.0 → 3.24.0-beta.0abeefe
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 +2 -0
- package/dist/@types/config/schemas.js +43 -40
- package/dist/@types/display-condition.js +25 -0
- package/dist/components/Guido.vue.js +2 -2
- package/dist/components/Guido.vue2.js +113 -96
- package/dist/components/organisms/AutoSaveController.vue2.js +20 -10
- package/dist/components/organisms/display-conditions/CodeEditorField.vue.js +17 -0
- package/dist/components/organisms/display-conditions/CodeEditorField.vue2.js +41 -0
- package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue.js +30 -0
- package/dist/components/organisms/display-conditions/DisplayConditionCreateDrawer.vue2.js +81 -0
- package/dist/components/organisms/display-conditions/DisplayConditionListState.vue.js +17 -0
- package/dist/components/organisms/display-conditions/DisplayConditionListState.vue2.js +45 -0
- package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.js +36 -0
- package/dist/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue2.js +63 -0
- package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue.js +17 -0
- package/dist/components/organisms/display-conditions/DisplayConditionsHost.vue2.js +22 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue2.js +25 -0
- package/dist/components/organisms/header/EditorActions.vue.js +13 -13
- package/dist/components/organisms/header/EditorActions.vue2.js +58 -73
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +99 -0
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -17
- package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
- package/dist/components/organisms/header/LeftSlot.vue2.js +28 -23
- package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
- package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
- package/dist/components/organisms/header/RightSlot.vue.js +11 -10
- package/dist/components/organisms/header/RightSlot.vue2.js +13 -18
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +22 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +19 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +90 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +60 -35
- package/dist/composables/useAccessibilityApi.js +51 -0
- package/dist/composables/useBlocksConfig.js +31 -20
- package/dist/composables/useCustomInterfaceAppearance.js +42 -41
- package/dist/composables/useDisplayConditions.js +117 -0
- package/dist/composables/useTranslations.js +2 -1
- package/dist/config/compiler/utils/itemsCompilerUtils.js +43 -42
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +67 -64
- package/dist/config/i18n/en/labels.json.js +36 -4
- package/dist/config/i18n/en/tooltips.json.js +2 -1
- package/dist/enums/academy.js +1 -0
- package/dist/enums/display-condition.js +12 -0
- package/dist/extensions/DisplayConditions/bridge.js +25 -0
- package/dist/extensions/DisplayConditions/constants.js +26 -0
- package/dist/extensions/DisplayConditions/control.js +215 -0
- package/dist/extensions/DisplayConditions/display-conditions.css.js +226 -0
- package/dist/extensions/DisplayConditions/extension.js +28 -0
- package/dist/extensions/DisplayConditions/iconsRegistry.js +20 -0
- package/dist/extensions/DisplayConditions/library.js +30 -0
- package/dist/extensions/DisplayConditions/settingsPanel.js +17 -0
- package/dist/extensions/LinkTracking/extension.js +17 -0
- package/dist/extensions/LinkTracking/writer.js +41 -0
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +93 -92
- package/dist/node_modules/valibot/dist/index.js +297 -261
- package/dist/package.json.js +6 -6
- package/dist/services/displayConditionApi.js +39 -0
- package/dist/sprite.svg +10 -0
- package/dist/src/@types/config/schemas.d.ts +6 -0
- package/dist/src/@types/display-condition.d.ts +60 -0
- package/dist/src/components/organisms/AutoSaveController.vue.d.ts +19 -1
- package/dist/src/components/organisms/display-conditions/CodeEditorField.vue.d.ts +43 -0
- package/dist/src/components/organisms/display-conditions/DisplayConditionListState.vue.d.ts +18 -0
- package/dist/src/components/organisms/display-conditions/DisplayConditionSelectDrawer.vue.d.ts +2 -0
- package/dist/src/components/organisms/display-conditions/DisplayConditionsHost.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/AutoSaveStatus.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -19
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -19
- package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
- package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
- package/dist/src/composables/useAccessibilityApi.d.ts +13 -0
- package/dist/src/composables/useActionsApi.d.ts +2 -2
- package/dist/src/composables/useConfig.d.ts +4 -0
- package/dist/src/composables/useDisplayConditions.d.ts +18 -0
- package/dist/src/enums/academy.d.ts +1 -0
- package/dist/src/enums/display-condition.d.ts +15 -0
- package/dist/src/extensions/DisplayConditions/bridge.d.ts +7 -0
- package/dist/src/extensions/DisplayConditions/constants.d.ts +23 -0
- package/dist/src/extensions/DisplayConditions/control.d.ts +25 -0
- package/dist/src/extensions/DisplayConditions/extension.d.ts +2 -0
- package/dist/src/extensions/DisplayConditions/iconsRegistry.d.ts +4 -0
- package/dist/src/extensions/DisplayConditions/library.d.ts +8 -0
- package/dist/src/extensions/DisplayConditions/settingsPanel.d.ts +5 -0
- package/dist/src/extensions/LinkTracking/extension.d.ts +2 -0
- package/dist/src/extensions/LinkTracking/writer.d.ts +13 -0
- package/dist/src/mock/api/display-conditions.d.ts +2 -0
- package/dist/src/services/displayConditionApi.d.ts +8 -0
- package/dist/src/stores/autosave.d.ts +73 -1
- package/dist/src/stores/config.d.ts +187 -0
- package/dist/src/stores/display-condition.d.ts +84 -0
- package/dist/src/stores/editor.d.ts +109 -0
- package/dist/src/stores/onboarding.d.ts +966 -35
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/displayCondition.d.ts +11 -0
- package/dist/src/utils/linkTrackingIds.d.ts +22 -5
- package/dist/src/utils/protectTableText.d.ts +2 -0
- package/dist/src/utils/templatePreparation.d.ts +1 -1
- package/dist/src/utils/timeUtil.d.ts +5 -8
- package/dist/static/stripo-runtime-manifest.json.js +1 -1
- package/dist/static/styles/components/accessibility.css.js +234 -0
- package/dist/static/styles/variables.css.js +2 -0
- package/dist/stores/autosave.js +12 -7
- package/dist/stores/config.js +13 -6
- package/dist/stores/display-condition.js +29 -0
- package/dist/stores/editor.js +8 -3
- package/dist/stores/onboarding.js +48 -22
- package/dist/utils/displayCondition.js +26 -0
- package/dist/utils/linkTrackingIds.js +82 -48
- package/dist/utils/pairProductVariables.js +30 -29
- package/dist/utils/protectTableText.js +22 -0
- package/dist/utils/templatePreparation.js +67 -57
- package/dist/utils/timeUtil.js +6 -17
- package/package.json +2 -2
- package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
- package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
- /package/dist/src/components/organisms/{header/AutoSaveToggle.vue.d.ts → display-conditions/DisplayConditionCreateDrawer.vue.d.ts} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BlockType as o } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
const n = "conditions", t = "guido-display-conditions-control", d = 10, s = [o.STRIPE, o.STRUCTURE, o.CONTAINER], c = {
|
|
3
|
+
PLUS: "guido-display-condition-plus",
|
|
4
|
+
EDIT: "guido-display-condition-edit",
|
|
5
|
+
TRASH: "guido-display-condition-trash",
|
|
6
|
+
CHEVRON: "guido-display-condition-chevron"
|
|
7
|
+
}, e = {
|
|
8
|
+
ADD: "guidoDisplayConditionAdd",
|
|
9
|
+
CREATE: "guidoDisplayConditionCreate",
|
|
10
|
+
SELECT: "guidoDisplayConditionSelect",
|
|
11
|
+
SHOW_MORE: "guidoDisplayConditionShowMore",
|
|
12
|
+
SHOW_LESS: "guidoDisplayConditionShowLess",
|
|
13
|
+
EDIT: "guidoDisplayConditionEdit",
|
|
14
|
+
REMOVE: "guidoDisplayConditionRemove"
|
|
15
|
+
}, C = ["applyConditionSwitcher", "applyCondition", "displayConditions"], a = "You can add Display Condition by selecting an existing condition or creating a new one to show specific content.", O = "You can create or select a display condition to control content visibility based on your recipients' properties or events.";
|
|
16
|
+
export {
|
|
17
|
+
O as APPLIED_DESCRIPTION,
|
|
18
|
+
C as BUILT_IN_CONDITION_CONTROLS,
|
|
19
|
+
t as CONDITIONS_CONTROL_ID,
|
|
20
|
+
n as CONDITIONS_TAB_ID,
|
|
21
|
+
s as CONDITION_BLOCK_TYPES,
|
|
22
|
+
e as CONDITION_BUTTONS,
|
|
23
|
+
c as CONDITION_ICONS,
|
|
24
|
+
a as EMPTY_DESCRIPTION,
|
|
25
|
+
d as MAX_COLLAPSED_LINES
|
|
26
|
+
};
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var v = (c, a, i) => a in c ? b(c, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : c[a] = i;
|
|
3
|
+
var u = (c, a, i) => v(c, typeof a != "symbol" ? a + "" : a, i);
|
|
4
|
+
import { useToaster as O } from "../../composables/useToaster.js";
|
|
5
|
+
import { useTranslations as w } from "../../composables/useTranslations.js";
|
|
6
|
+
import { DisplayConditionSourceType as N } from "../../enums/display-condition.js";
|
|
7
|
+
import { ToasterTypeOptions as S } from "../../enums/toaster.js";
|
|
8
|
+
import { CommonControl as E } from "../Blocks/common-control.js";
|
|
9
|
+
import { toAppliedCondition as D, parseSource as T } from "../../utils/displayCondition.js";
|
|
10
|
+
import { escapeHtml as f } from "../../utils/htmlEscape.js";
|
|
11
|
+
import { ModificationDescription as I } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
12
|
+
import { requestDisplayCondition as M } from "./bridge.js";
|
|
13
|
+
import { CONDITIONS_CONTROL_ID as $, CONDITION_ICONS as h, CONDITION_BUTTONS as r, APPLIED_DESCRIPTION as x, EMPTY_DESCRIPTION as L, MAX_COLLAPSED_LINES as C } from "./constants.js";
|
|
14
|
+
const l = ".guido-display-conditions", R = { id: 0, name: "", description: "", beforeScript: "", afterScript: "" };
|
|
15
|
+
class F extends E {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
u(this, "expanded", !1);
|
|
19
|
+
u(this, "listeners", []);
|
|
20
|
+
u(this, "resizeObserver", null);
|
|
21
|
+
u(this, "detachOutsideClick", null);
|
|
22
|
+
}
|
|
23
|
+
getId() {
|
|
24
|
+
return $;
|
|
25
|
+
}
|
|
26
|
+
getTemplate() {
|
|
27
|
+
return `
|
|
28
|
+
<div class="guido-display-conditions">
|
|
29
|
+
<div class="guido-display-conditions__header">
|
|
30
|
+
<p class="guido-display-conditions__title">${this.api.translate("Display Conditions")}</p>
|
|
31
|
+
<p class="guido-display-conditions__description" data-dc-description></p>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="guido-display-conditions__empty" data-dc-empty>
|
|
34
|
+
${this._GuButton({
|
|
35
|
+
name: r.ADD,
|
|
36
|
+
id: "guido__btn-add-display-condition",
|
|
37
|
+
className: "guido-display-conditions__add",
|
|
38
|
+
icon: h.PLUS,
|
|
39
|
+
label: this.api.translate("Add Display Condition")
|
|
40
|
+
})}
|
|
41
|
+
<div class="guido-display-conditions__menu" data-dc-menu hidden>
|
|
42
|
+
${this._GuButton({
|
|
43
|
+
name: r.CREATE,
|
|
44
|
+
id: "guido__btn-display-condition-create",
|
|
45
|
+
className: "guido-display-conditions__menu-item",
|
|
46
|
+
label: this.api.translate("Create New Condition")
|
|
47
|
+
})}
|
|
48
|
+
${this._GuButton({
|
|
49
|
+
name: r.SELECT,
|
|
50
|
+
id: "guido__btn-display-condition-select",
|
|
51
|
+
className: "guido-display-conditions__menu-item",
|
|
52
|
+
label: this.api.translate("Select Saved Condition")
|
|
53
|
+
})}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="guido-display-conditions__applied" data-dc-applied hidden>
|
|
57
|
+
<div class="guido-display-conditions__code-box">
|
|
58
|
+
<p class="guido-display-conditions__name" data-dc-name></p>
|
|
59
|
+
<div class="guido-display-conditions__sections" data-dc-sections>
|
|
60
|
+
<p class="guido-display-conditions__section-label">
|
|
61
|
+
${this.api.translate("Code Before Module")}
|
|
62
|
+
</p>
|
|
63
|
+
<pre class="guido-display-conditions__code" data-dc-before></pre>
|
|
64
|
+
<p class="guido-display-conditions__section-label" data-dc-after-label>
|
|
65
|
+
${this.api.translate("Code After Module")}
|
|
66
|
+
</p>
|
|
67
|
+
<pre class="guido-display-conditions__code" data-dc-after></pre>
|
|
68
|
+
</div>
|
|
69
|
+
${this._GuButton({
|
|
70
|
+
name: r.SHOW_MORE,
|
|
71
|
+
id: "guido__btn-display-condition-show-more",
|
|
72
|
+
className: "guido-display-conditions__toggle",
|
|
73
|
+
icon: h.CHEVRON,
|
|
74
|
+
label: this.api.translate("Show More")
|
|
75
|
+
})}
|
|
76
|
+
${this._GuButton({
|
|
77
|
+
name: r.SHOW_LESS,
|
|
78
|
+
id: "guido__btn-display-condition-show-less",
|
|
79
|
+
className: "guido-display-conditions__toggle guido-display-conditions__toggle--less",
|
|
80
|
+
icon: h.CHEVRON,
|
|
81
|
+
label: this.api.translate("Show Less")
|
|
82
|
+
})}
|
|
83
|
+
</div>
|
|
84
|
+
<div class="guido-display-conditions__actions">
|
|
85
|
+
${this._GuButton({
|
|
86
|
+
name: r.EDIT,
|
|
87
|
+
id: "guido__btn-edit-display-condition",
|
|
88
|
+
className: "guido-display-conditions__action guido-display-conditions__action--edit",
|
|
89
|
+
icon: h.EDIT,
|
|
90
|
+
label: this.api.translate("Edit")
|
|
91
|
+
})}
|
|
92
|
+
${this._GuButton({
|
|
93
|
+
name: r.REMOVE,
|
|
94
|
+
id: "guido__btn-remove-display-condition",
|
|
95
|
+
className: "guido-display-conditions__action guido-display-conditions__action--remove",
|
|
96
|
+
icon: h.TRASH,
|
|
97
|
+
label: this.api.translate("Remove")
|
|
98
|
+
})}
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
`;
|
|
103
|
+
}
|
|
104
|
+
onRender() {
|
|
105
|
+
this.forgetLastPanelNode(), this.teardown(), this.wire("#guido__btn-add-display-condition", () => this.toggleMenu()), this.wire("#guido__btn-display-condition-create", () => this.openDrawer("create")), this.wire("#guido__btn-display-condition-select", () => this.openDrawer("select")), this.wire("#guido__btn-edit-display-condition", () => this.openDrawer("edit")), this.wire("#guido__btn-remove-display-condition", () => this.removeCondition()), this.wire("#guido__btn-display-condition-show-more", () => this.setExpanded(!0)), this.wire("#guido__btn-display-condition-show-less", () => this.setExpanded(!1)), this.observeCodeSize();
|
|
106
|
+
}
|
|
107
|
+
onTemplateNodeUpdated(i) {
|
|
108
|
+
const t = i !== this.currentNode;
|
|
109
|
+
super.onTemplateNodeUpdated(i), t && (this.expanded = !1, this.toggleMenu(!1)), this.paint();
|
|
110
|
+
}
|
|
111
|
+
onDestroy() {
|
|
112
|
+
super.onDestroy(), this.teardown();
|
|
113
|
+
}
|
|
114
|
+
setExpanded(i) {
|
|
115
|
+
this.expanded = i, this.paint();
|
|
116
|
+
}
|
|
117
|
+
getCondition() {
|
|
118
|
+
var t;
|
|
119
|
+
const i = this.currentNode;
|
|
120
|
+
return D((t = i == null ? void 0 : i.getDisplayCondition) == null ? void 0 : t.call(i));
|
|
121
|
+
}
|
|
122
|
+
toggleMenu(i) {
|
|
123
|
+
var o, s, n;
|
|
124
|
+
const t = (o = this.getContainer()) == null ? void 0 : o.querySelector(`${l} [data-dc-menu]`);
|
|
125
|
+
if (!t)
|
|
126
|
+
return;
|
|
127
|
+
t.hidden = i === void 0 ? !t.hidden : !i, (s = this.detachOutsideClick) == null || s.call(this), t.hidden || this.listenOutsideClick();
|
|
128
|
+
const e = (n = this.getContainer()) == null ? void 0 : n.querySelector(`${l} #guido__btn-add-display-condition`);
|
|
129
|
+
t.style.width = !t.hidden && e ? `${e.getBoundingClientRect().width}px` : "";
|
|
130
|
+
}
|
|
131
|
+
listenOutsideClick() {
|
|
132
|
+
var e;
|
|
133
|
+
const i = ((e = this.getContainer()) == null ? void 0 : e.ownerDocument) ?? document, t = (o) => {
|
|
134
|
+
o.composedPath().some((n) => n instanceof HTMLElement && n.matches(`${l} [data-dc-menu], ${l} #guido__btn-add-display-condition`)) || this.toggleMenu(!1);
|
|
135
|
+
};
|
|
136
|
+
i.addEventListener("pointerdown", t, !0), this.detachOutsideClick = () => {
|
|
137
|
+
i.removeEventListener("pointerdown", t, !0), this.detachOutsideClick = null;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
openDrawer(i) {
|
|
141
|
+
const t = this.currentNode;
|
|
142
|
+
this.toggleMenu(!1), M(
|
|
143
|
+
{ mode: i, current: i === "edit" ? this.getCondition() : null },
|
|
144
|
+
{ onApply: (e) => this.applyCondition(e, t) }
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
// The drawer flows toast through useDisplayConditions; Remove has no drawer, so it toasts here.
|
|
148
|
+
removeCondition() {
|
|
149
|
+
this.applyCondition(null) || O().showToaster({
|
|
150
|
+
type: S.Error,
|
|
151
|
+
message: w()("products.something-went-wrong")
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
// The panel can move to another block while the drawer is open; apply onto the block it was opened for.
|
|
155
|
+
applyCondition(i, t = this.currentNode) {
|
|
156
|
+
if (!t)
|
|
157
|
+
return !1;
|
|
158
|
+
try {
|
|
159
|
+
const e = this.api.getDocumentModifier().modifyHtml(t);
|
|
160
|
+
return e.setDisplayCondition(i || R), e.apply(new I(
|
|
161
|
+
i ? `Set display condition ${i.name}` : "Remove display condition"
|
|
162
|
+
)), !0;
|
|
163
|
+
} catch (e) {
|
|
164
|
+
return console.warn("Display condition could not be applied.", e), !1;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
wire(i, t) {
|
|
168
|
+
var o;
|
|
169
|
+
const e = (o = this.getContainer()) == null ? void 0 : o.querySelector(`${l} ${i}`);
|
|
170
|
+
e && (e.addEventListener("click", t), this.listeners.push({ element: e, handler: t }));
|
|
171
|
+
}
|
|
172
|
+
teardown() {
|
|
173
|
+
var i, t;
|
|
174
|
+
this.listeners.forEach(({ element: e, handler: o }) => e.removeEventListener("click", o)), this.listeners = [], (i = this.resizeObserver) == null || i.disconnect(), this.resizeObserver = null, (t = this.detachOutsideClick) == null || t.call(this);
|
|
175
|
+
}
|
|
176
|
+
// Line counts depend on layout: the panel font loads late and the panel can be resized.
|
|
177
|
+
observeCodeSize() {
|
|
178
|
+
var t;
|
|
179
|
+
const i = (t = this.getContainer()) == null ? void 0 : t.querySelectorAll(`${l} .guido-display-conditions__code`);
|
|
180
|
+
!(i != null && i.length) || typeof ResizeObserver > "u" || (this.resizeObserver = new ResizeObserver(() => this.paint()), i.forEach((e) => {
|
|
181
|
+
var o;
|
|
182
|
+
return (o = this.resizeObserver) == null ? void 0 : o.observe(e);
|
|
183
|
+
}));
|
|
184
|
+
}
|
|
185
|
+
paint() {
|
|
186
|
+
var y;
|
|
187
|
+
const i = (y = this.getContainer()) == null ? void 0 : y.querySelector(l);
|
|
188
|
+
if (!i)
|
|
189
|
+
return;
|
|
190
|
+
const t = this.getCondition(), e = (_) => i.querySelector(_);
|
|
191
|
+
if (e("[data-dc-empty]").hidden = !!t, e("[data-dc-applied]").hidden = !t, e("[data-dc-description]").textContent = this.api.translate(t ? x : L), !t)
|
|
192
|
+
return;
|
|
193
|
+
e("[data-dc-name]").textContent = t.name;
|
|
194
|
+
const o = T(t) === N.INLINE;
|
|
195
|
+
e("#guido__btn-edit-display-condition").hidden = !o;
|
|
196
|
+
const s = e("[data-dc-sections]"), n = e("[data-dc-before]"), d = e("[data-dc-after]");
|
|
197
|
+
n.innerHTML = f(t.beforeScript), d.innerHTML = f(t.afterScript), d.hidden = !t.afterScript, e("[data-dc-after-label]").hidden = !t.afterScript, s.style.maxHeight = "";
|
|
198
|
+
const p = parseFloat(getComputedStyle(n).lineHeight) || 24, m = (_) => _.hidden ? 0 : Math.round(_.scrollHeight / p), g = m(n) + m(d) > C;
|
|
199
|
+
e("#guido__btn-display-condition-show-more").hidden = !g || this.expanded, e("#guido__btn-display-condition-show-less").hidden = !g || !this.expanded, g && !this.expanded && (s.style.maxHeight = `${this.collapsedHeight(s, [n, d], p)}px`);
|
|
200
|
+
}
|
|
201
|
+
// Labels do not count toward the line limit, so the cut lands after the 10th rendered code line.
|
|
202
|
+
collapsedHeight(i, t, e) {
|
|
203
|
+
const { top: o } = i.getBoundingClientRect();
|
|
204
|
+
let s = C, n = 0;
|
|
205
|
+
return t.filter((d) => !d.hidden).forEach((d) => {
|
|
206
|
+
if (s <= 0)
|
|
207
|
+
return;
|
|
208
|
+
const p = Math.min(s, Math.round(d.scrollHeight / e));
|
|
209
|
+
n = d.getBoundingClientRect().top - o + p * e, s -= p;
|
|
210
|
+
}), n;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
export {
|
|
214
|
+
F as DisplayConditionsControl
|
|
215
|
+
};
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
const n = `.guido-display-conditions {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
font-family: inherit;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.guido-display-conditions__header {
|
|
8
|
+
padding: 16px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.guido-display-conditions__title {
|
|
12
|
+
margin: 0 0 8px;
|
|
13
|
+
color: var(--guido-color-gray-800);
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
line-height: 24px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.guido-display-conditions__description {
|
|
20
|
+
margin: 0;
|
|
21
|
+
color: var(--guido-color-gray-600);
|
|
22
|
+
font-size: 13px;
|
|
23
|
+
line-height: 16px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.guido-display-conditions__empty {
|
|
27
|
+
padding: 8px 16px 16px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* ue-button draws Stripo's themed .button inside; restyle that, not the host. */
|
|
31
|
+
.guido-display-conditions .guido-display-conditions__add,
|
|
32
|
+
.guido-display-conditions .guido-display-conditions__menu-item {
|
|
33
|
+
display: block;
|
|
34
|
+
width: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.guido-display-conditions .button {
|
|
38
|
+
min-width: 0;
|
|
39
|
+
min-height: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.guido-display-conditions .button .icon-button {
|
|
43
|
+
color: inherit;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.guido-display-conditions .guido-display-conditions__add > .button {
|
|
47
|
+
display: flex;
|
|
48
|
+
gap: 8px;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 40px;
|
|
53
|
+
padding: 0 16px;
|
|
54
|
+
border: none;
|
|
55
|
+
border-radius: 4px;
|
|
56
|
+
background: var(--guido-color-primary-100);
|
|
57
|
+
color: var(--guido-color-primary-500);
|
|
58
|
+
font: inherit;
|
|
59
|
+
font-size: 15px;
|
|
60
|
+
line-height: 24px;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Stripo draws registered icons at 100% of ue-icon-component (Figma: 20px glyph in a 24px box). */
|
|
65
|
+
.guido-display-conditions ue-icon-component {
|
|
66
|
+
display: inline-flex;
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
width: 24px;
|
|
71
|
+
height: 24px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.guido-display-conditions ue-icon-component svg {
|
|
75
|
+
width: 20px;
|
|
76
|
+
height: 20px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.guido-display-conditions .guido-display-conditions__add > .button:hover {
|
|
80
|
+
background: var(--guido-color-primary-200);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.guido-display-conditions .guido-display-conditions__add > .button:focus-visible,
|
|
84
|
+
.guido-display-conditions .guido-display-conditions__action > .button:focus-visible,
|
|
85
|
+
.guido-display-conditions .guido-display-conditions__toggle > .button:focus-visible {
|
|
86
|
+
outline: 2px solid var(--guido-color-primary-500);
|
|
87
|
+
outline-offset: 2px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.guido-display-conditions__code-box {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
gap: 8px;
|
|
94
|
+
padding: 16px;
|
|
95
|
+
background: var(--guido-color-gray-0);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.guido-display-conditions__sections {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
gap: 8px;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.guido-display-conditions__name,
|
|
106
|
+
.guido-display-conditions__section-label {
|
|
107
|
+
margin: 0;
|
|
108
|
+
color: var(--guido-color-gray-800);
|
|
109
|
+
font-size: 15px;
|
|
110
|
+
font-weight: 600;
|
|
111
|
+
line-height: 24px;
|
|
112
|
+
word-break: break-word;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.guido-display-conditions__code {
|
|
116
|
+
margin: 0;
|
|
117
|
+
color: #101727;
|
|
118
|
+
font-family: inherit;
|
|
119
|
+
font-size: 15px;
|
|
120
|
+
line-height: 24px;
|
|
121
|
+
white-space: pre-wrap;
|
|
122
|
+
word-break: break-word;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.guido-display-conditions .guido-display-conditions__toggle {
|
|
126
|
+
align-self: flex-start;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.guido-display-conditions .guido-display-conditions__toggle > .button {
|
|
130
|
+
display: inline-flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
padding: 8px 0;
|
|
133
|
+
border: none;
|
|
134
|
+
background: none;
|
|
135
|
+
color: var(--guido-color-primary-500);
|
|
136
|
+
font: inherit;
|
|
137
|
+
font-size: 15px;
|
|
138
|
+
line-height: 24px;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.guido-display-conditions__toggle span {
|
|
143
|
+
padding: 0 8px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.guido-display-conditions__toggle--less ue-icon-component {
|
|
147
|
+
transform: rotate(180deg);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.guido-display-conditions__actions {
|
|
151
|
+
display: flex;
|
|
152
|
+
gap: 16px;
|
|
153
|
+
align-items: center;
|
|
154
|
+
height: 48px;
|
|
155
|
+
padding: 0 8px;
|
|
156
|
+
background: var(--guido-color-white);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.guido-display-conditions .guido-display-conditions__action > .button {
|
|
160
|
+
display: inline-flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
padding: 8px;
|
|
163
|
+
border: none;
|
|
164
|
+
background: none;
|
|
165
|
+
font: inherit;
|
|
166
|
+
font-size: 15px;
|
|
167
|
+
line-height: 24px;
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.guido-display-conditions__action span {
|
|
172
|
+
padding: 0 8px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.guido-display-conditions .guido-display-conditions__toggle > .button:hover,
|
|
176
|
+
.guido-display-conditions .guido-display-conditions__action > .button:hover {
|
|
177
|
+
background: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.guido-display-conditions .guido-display-conditions__action--edit > .button {
|
|
181
|
+
color: var(--guido-color-primary-500);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.guido-display-conditions .guido-display-conditions__action--remove > .button {
|
|
185
|
+
color: var(--guido-color-danger-500);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.guido-display-conditions [hidden] {
|
|
189
|
+
display: none !important;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* No positioned ancestor inside Stripo's clipping scroller: the menu keeps its static spot but escapes the clip. */
|
|
193
|
+
.guido-display-conditions__menu {
|
|
194
|
+
position: absolute;
|
|
195
|
+
z-index: 2;
|
|
196
|
+
margin-top: 4px;
|
|
197
|
+
padding: 4px 0;
|
|
198
|
+
border-radius: 4px;
|
|
199
|
+
background-color: #FFFFFF;
|
|
200
|
+
box-shadow: 0 4px 16px rgba(34, 41, 56, 0.16);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.guido-display-conditions .guido-display-conditions__menu-item > .button {
|
|
204
|
+
display: flex;
|
|
205
|
+
justify-content: flex-start;
|
|
206
|
+
width: 100%;
|
|
207
|
+
padding: 8px 16px;
|
|
208
|
+
border: 0;
|
|
209
|
+
background: none;
|
|
210
|
+
color: var(--guido-color-neutral-800);
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
font: inherit;
|
|
213
|
+
font-size: 14px;
|
|
214
|
+
line-height: 24px;
|
|
215
|
+
text-align: left;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.guido-display-conditions .guido-display-conditions__menu-item > .button:hover,
|
|
219
|
+
.guido-display-conditions .guido-display-conditions__menu-item > .button:focus-visible {
|
|
220
|
+
background-color: var(--guido-color-neutral-100);
|
|
221
|
+
outline: none;
|
|
222
|
+
}
|
|
223
|
+
`;
|
|
224
|
+
export {
|
|
225
|
+
n as default
|
|
226
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ExtensionBuilder as t } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { APPLIED_DESCRIPTION as o, EMPTY_DESCRIPTION as i } from "./constants.js";
|
|
3
|
+
import { DisplayConditionsControl as e } from "./control.js";
|
|
4
|
+
import n from "./display-conditions.css.js";
|
|
5
|
+
import { DisplayConditionsIconsRegistry as s } from "./iconsRegistry.js";
|
|
6
|
+
import { DisplayConditionsLibrary as d } from "./library.js";
|
|
7
|
+
import { DisplayConditionsSettingsPanel as r } from "./settingsPanel.js";
|
|
8
|
+
const S = new t().addControl(e).withIconsRegistry(s).withSettingsPanelRegistry(r).withExternalDisplayCondition(d).withStyles(n).withLocalization({
|
|
9
|
+
en: {
|
|
10
|
+
[i]: i,
|
|
11
|
+
[o]: o,
|
|
12
|
+
Conditions: "Conditions",
|
|
13
|
+
Edit: "Edit",
|
|
14
|
+
Remove: "Remove",
|
|
15
|
+
"Display Conditions": "Display Conditions",
|
|
16
|
+
"Add Display Condition": "Add Display Condition",
|
|
17
|
+
"Create New Condition": "Create New Condition",
|
|
18
|
+
"Select Saved Condition": "Select Saved Condition",
|
|
19
|
+
"Show More": "Show More",
|
|
20
|
+
"Show Less": "Show Less",
|
|
21
|
+
"Code Before Module": "Code Before Module",
|
|
22
|
+
"Code After Module": "Code After Module",
|
|
23
|
+
"Insider Display Conditions": "Insider Display Conditions"
|
|
24
|
+
}
|
|
25
|
+
}).build();
|
|
26
|
+
export {
|
|
27
|
+
S as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IconsRegistry as n } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { CONDITION_ICONS as r } from "./constants.js";
|
|
3
|
+
const h = 'fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"', s = (t, o, e = 1.3) => `
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 ${t} ${t}">
|
|
5
|
+
<path d="${o}" ${h} stroke-width="${e}"/>
|
|
6
|
+
</svg>`;
|
|
7
|
+
class g extends n {
|
|
8
|
+
registerIconsSvg(o) {
|
|
9
|
+
o[r.PLUS] = s(20, "M10 4v12M4 10h12", 1.5), o[r.EDIT] = s(
|
|
10
|
+
20,
|
|
11
|
+
"M3.5 16.5h13M5 12.6 13.1 4.5a1.4 1.4 0 0 1 2 0l.4.4a1.4 1.4 0 0 1 0 2L7.4 15H5v-2.4Z"
|
|
12
|
+
), o[r.TRASH] = s(
|
|
13
|
+
20,
|
|
14
|
+
"M3.5 5.5h13M8 5.5V4h4v1.5M5 5.5l.8 11h8.4l.8-11M8.5 8.5v5M11.5 8.5v5"
|
|
15
|
+
), o[r.CHEVRON] = s(20, "m5 7.5 5 5 5-5", 1.5);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
g as DisplayConditionsIconsRegistry
|
|
20
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DisplayConditionSourceType as s } from "../../enums/display-condition.js";
|
|
2
|
+
import { toAppliedCondition as a, parseSource as p } from "../../utils/displayCondition.js";
|
|
3
|
+
import { ExternalDisplayConditionsLibrary as l } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
4
|
+
import { requestDisplayCondition as d } from "./bridge.js";
|
|
5
|
+
class x extends l {
|
|
6
|
+
getCategoryName() {
|
|
7
|
+
return this.api.translate("Insider Display Conditions");
|
|
8
|
+
}
|
|
9
|
+
openExternalDisplayConditionsDialog(n, r, t) {
|
|
10
|
+
const e = a(n), o = p(e) === s.INLINE;
|
|
11
|
+
d(
|
|
12
|
+
{ mode: o ? "edit" : "select", current: o ? e : null },
|
|
13
|
+
{
|
|
14
|
+
onApply: (i) => (i ? r(i) : t(), !0),
|
|
15
|
+
onCancel: t
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
// The Conditions tab is the only entry point; no Display Conditions button on the block toolbar.
|
|
20
|
+
getIsContextActionEnabled() {
|
|
21
|
+
return !1;
|
|
22
|
+
}
|
|
23
|
+
// Stripo reads the index at registration even when disabled; the base method throws.
|
|
24
|
+
getContextActionIndex() {
|
|
25
|
+
return -1;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
x as DisplayConditionsLibrary
|
|
30
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SettingsPanelRegistry as a, SettingsTab as r, SettingsPanelTab as o } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { CONDITION_BLOCK_TYPES as I, BUILT_IN_CONDITION_CONTROLS as O, CONDITIONS_TAB_ID as T, CONDITIONS_CONTROL_ID as N } from "./constants.js";
|
|
3
|
+
class _ extends a {
|
|
4
|
+
// Stripo hands over the map pre-filled with its default tabs, so they are extended, not replaced.
|
|
5
|
+
registerBlockControls(e) {
|
|
6
|
+
I.forEach((i) => {
|
|
7
|
+
const n = e[i] ?? [];
|
|
8
|
+
n.filter((t) => t.getTabId() === String(r.SETTINGS)).forEach((t) => O.forEach((s) => t.deleteControl(s))), e[i] = [
|
|
9
|
+
...n,
|
|
10
|
+
new o(T, [N]).withLabel(this.api.translate("Conditions"))
|
|
11
|
+
];
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
_ as DisplayConditionsSettingsPanel
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ExtensionBuilder as r, Control as t } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { registerTrackingIdWriter as i } from "./writer.js";
|
|
3
|
+
class e extends t {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(), i(() => this.api);
|
|
6
|
+
}
|
|
7
|
+
getId() {
|
|
8
|
+
return "guidoLinkTrackingWriter";
|
|
9
|
+
}
|
|
10
|
+
getTemplate() {
|
|
11
|
+
return "<div></div>";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
const a = new r().addControl(e).build();
|
|
15
|
+
export {
|
|
16
|
+
a as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TRACK_ID_ATTRIBUTE as h, TRACK_SEQ_ATTRIBUTE as I } from "../../utils/linkTrackingIds.js";
|
|
2
|
+
import { ModificationDescription as k } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
3
|
+
let s = null;
|
|
4
|
+
const q = (e) => {
|
|
5
|
+
s = e;
|
|
6
|
+
}, C = () => {
|
|
7
|
+
s = null;
|
|
8
|
+
};
|
|
9
|
+
function w(e) {
|
|
10
|
+
return "getTagName" in e && e.getTagName().toLowerCase() === "a";
|
|
11
|
+
}
|
|
12
|
+
const T = (e, r) => (w(e) && r.push(e), e.children().forEach((i) => T(i, r)), r), E = ({ anchorIds: e, inComment: r, plan: i }) => {
|
|
13
|
+
const g = s == null ? void 0 : s();
|
|
14
|
+
if (!g)
|
|
15
|
+
return !1;
|
|
16
|
+
try {
|
|
17
|
+
const c = g.getDocumentRootHtmlNode(), f = T(c, []), l = f.map((t) => t.getAttribute(h) ?? ""), o = /* @__PURE__ */ new Map();
|
|
18
|
+
e.forEach((t, n) => {
|
|
19
|
+
r[n] || o.set(n, o.size);
|
|
20
|
+
});
|
|
21
|
+
const d = e.filter((t, n) => o.has(n)), p = l.length === d.length && l.every((t, n) => t === d[n]), u = [...i.assignments.keys()].some((t) => !o.has(t)), a = i.seqChanged ? c.querySelector("body") : void 0;
|
|
22
|
+
if (!p || u || i.seqChanged && !a)
|
|
23
|
+
return console.debug(
|
|
24
|
+
"In-place tracking-id write skipped, replacing the document instead:",
|
|
25
|
+
`live [${l.join(",")}] planned [${d.join(",")}]`,
|
|
26
|
+
`commentWrite ${String(u)} seqHost ${String(!!a)}`
|
|
27
|
+
), !1;
|
|
28
|
+
const m = g.getDocumentModifier();
|
|
29
|
+
return i.assignments.forEach((t, n) => {
|
|
30
|
+
const A = f[o.get(n)];
|
|
31
|
+
m.modifyHtml(A).setAttribute(h, String(t));
|
|
32
|
+
}), a && m.modifyHtml(a).setAttribute(I, String(i.nextSeq)), m.apply(new k("Assign link tracking ids").asHidden()), !0;
|
|
33
|
+
} catch (c) {
|
|
34
|
+
return console.warn("In-place tracking-id write failed, replacing the document instead:", c), !1;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
C as disposeTrackingIdWriter,
|
|
39
|
+
q as registerTrackingIdWriter,
|
|
40
|
+
E as writeTrackingIdsInPlace
|
|
41
|
+
};
|
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-
|
|
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-ab777dca]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-ab777dca]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-ab777dca]{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-f16f20f8] .vueperslides__bullets{pointer-events:none!important}[data-v-f16f20f8] .vueperslides__parallax-wrapper{padding-bottom:110px!important}[data-v-bb3cca55] .vueperslides__bullets{pointer-events:none!important}[data-v-bb3cca55] .vueperslides__parallax-wrapper{height:110px!important;padding-bottom:110px!important}[data-v-19d8cb42] .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-content .assign-strategy-select[data-v-6ce48dfd]{width:100%;max-width:none}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-skeleton{width:100%!important}.assign-strategy-drawer-content .assign-strategy-select[data-v-6ce48dfd] .in-dropdown-box__container{width:413px}.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-1d9700d1]{height:1px;margin:0 0 24px;background-image:linear-gradient(to right,#91949F 1px,transparent 1px);background-size:5px 1px}.guido-display-condition-create__methods[data-v-1d9700d1]{gap:16px}.guido-display-condition-select-root[data-v-62c5ac25] .in-drawer__footer{justify-content:flex-start}.guido-display-condition-select__delete-modal[data-v-62c5ac25]{position:relative;z-index:145}.guido-display-condition-select__delete-modal[data-v-62c5ac25] .in-modal-v2-wrapper__header-title{margin-bottom:0}.guido-display-condition-select-root[data-v-62c5ac25] .in-drawer__content>div{display:flex;flex-direction:column;min-height:100%}.guido-display-condition-select__list[data-v-62c5ac25]{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}.guido-display-condition-card__header[data-v-62c5ac25]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px}.guido-display-condition-card__text[data-v-62c5ac25]{min-width:0}.guido-display-condition-card__name[data-v-62c5ac25],.guido-display-condition-card__description[data-v-62c5ac25]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guido-display-condition-card__actions[data-v-62c5ac25]{display:flex;flex-shrink:0;align-items:center;gap:16px}.guido-display-condition-card__split[data-v-62c5ac25]{position:relative;display:flex;gap:1px}.guido-display-condition-card__menu[data-v-62c5ac25]{z-index:2;min-width:115px}.guido-display-condition-card__divider[data-v-62c5ac25]{width:1px;height:24px;background-color:#dcdee6}.guido-display-condition-card__code[data-v-62c5ac25]{margin:1px 15px 15px;padding:8px;color:#101727;font-family:inherit;white-space:pre-wrap;word-break:break-word}.legacy-strategy-updated-modal[data-v-da2225a1]{position:relative;z-index:145}
|