@active-reach/web-sdk 1.27.0 → 1.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aegis.min.js +1 -1
- package/dist/aegis.min.js.map +1 -1
- package/dist/inapp/AegisInAppManager.d.ts +1 -1
- package/dist/inapp/AegisInAppManager.d.ts.map +1 -1
- package/dist/inapp/font.d.ts +16 -0
- package/dist/inapp/font.d.ts.map +1 -0
- package/dist/inapp/renderers/card-template.d.ts +6 -0
- package/dist/inapp/renderers/card-template.d.ts.map +1 -1
- package/dist/inapp/renderers/carousel-cards.d.ts.map +1 -1
- package/dist/inapp/renderers/product-recommendation.d.ts.map +1 -1
- package/dist/index.js +83 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ export interface InAppCampaign {
|
|
|
49
49
|
};
|
|
50
50
|
assigned_variant_id?: string;
|
|
51
51
|
delivery_modes?: Array<'in_app_overlay' | 'embedded_card' | 'standalone_page'>;
|
|
52
|
-
widget_category?: 'feedback' | 'loyalty' | 'promo' | 'commerce' | 'support' | 'custom' | 'onboarding' | 'hero' | 'announcement';
|
|
52
|
+
widget_category?: 'feedback' | 'loyalty' | 'promo' | 'commerce' | 'support' | 'custom' | 'onboarding' | 'hero' | 'announcement' | 'reorder';
|
|
53
53
|
page_key?: 'bill' | 'rewards' | 'feedback' | 'reviews' | 'members';
|
|
54
54
|
surface?: string[];
|
|
55
55
|
target_screens?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AegisInAppManager.d.ts","sourceRoot":"","sources":["../../src/inapp/AegisInAppManager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"AegisInAppManager.d.ts","sourceRoot":"","sources":["../../src/inapp/AegisInAppManager.ts"],"names":[],"mappings":"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WtB;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,wBAAwB;IA4DhC;;;;;;;OAOG;IACH,OAAO,CAAC,qBAAqB;IA4C7B,2EAA2E;IAC3E,OAAO,CAAC,gBAAgB;IAOxB;;;;;;;;;OASG;IACH;4EACwE;IACxE,OAAO,CAAC,aAAa;IAQrB;;;;;;;;;;oDAUgD;IAChD,OAAO,CAAC,eAAe;IAsBvB,OAAO,CAAC,UAAU;IA4BlB,OAAO,CAAC,YAAY;IAsIpB,OAAO,CAAC,WAAW;IAqKnB,OAAO,CAAC,UAAU;IAqClB,OAAO,CAAC,gBAAgB;IA2IxB,OAAO,CAAC,sBAAsB;IA0K9B,OAAO,CAAC,WAAW;IAgInB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,SAAS;IA0QjB,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,WAAW;IASnB;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,aAAa;IA6PrB;;;0BAGsB;IACtB,OAAO,CAAC,aAAa;IAmCrB;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,aAAa;IAqIrB;;+EAE2E;IAC3E,OAAO,CAAC,YAAY;IAyCpB;;;uDAGmD;IACnD,OAAO,CAAC,UAAU;IAWlB;+EAC2E;IAC3E,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,kBAAkB;IAiI1B,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,aAAa;IAqBrB;;;;;;;;;;;OAWG;YACW,UAAU;IA6GxB,OAAO,CAAC,GAAG;IAMX,OAAO,CAAC,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI;CA2CpD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared in-app font default — Urbanist (a free, Google-hosted geometric sans
|
|
3
|
+
* used in place of Zepto's commercial "Gilroy"). Used by every storefront-
|
|
4
|
+
* facing in-app renderer (product cards, recommendation rails, carousels) so
|
|
5
|
+
* the look is consistent on the ACS storefront AND on 3rd-party host pages that
|
|
6
|
+
* embed the SDK and don't already ship the font.
|
|
7
|
+
*/
|
|
8
|
+
export declare const IN_APP_FONT_STACK = "'Urbanist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif";
|
|
9
|
+
/**
|
|
10
|
+
* Lazy-load the Urbanist webfont once (idempotent). The storefront self-hosts
|
|
11
|
+
* Urbanist via `--font-urbanist`, but a 3rd-party host won't — so any renderer
|
|
12
|
+
* that applies {@link IN_APP_FONT_STACK} calls this to guarantee the glyphs are
|
|
13
|
+
* available. No-op outside the browser.
|
|
14
|
+
*/
|
|
15
|
+
export declare function ensureInAppFont(): void;
|
|
16
|
+
//# sourceMappingURL=font.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../src/inapp/font.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,yEAC0C,CAAC;AAEzE;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAStC"}
|
|
@@ -102,6 +102,12 @@ export interface CardFrame {
|
|
|
102
102
|
/** explicit height (px). Default: content-driven (fits its elements). */
|
|
103
103
|
height?: number;
|
|
104
104
|
min_height?: number;
|
|
105
|
+
/** Card font family. Absent ⇒ the default Urbanist stack (a free, license-
|
|
106
|
+
* clean geometric sans in place of Zepto's commercial "Gilroy"); the SDK
|
|
107
|
+
* lazy-loads Urbanist so it renders on ANY host page. The sentinel
|
|
108
|
+
* `'inherit'` opts OUT — the card inherits the host page font instead. Any
|
|
109
|
+
* other value is a CSS font stack (sanitized before use). */
|
|
110
|
+
fontFamily?: string;
|
|
105
111
|
/** Fire the shared `playReaction` once when this card mounts (a hero/delight
|
|
106
112
|
* moment), instead of only on a `progress` element completing. Mirrors
|
|
107
113
|
* CelebrateConfigSchema. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-template.d.ts","sourceRoot":"","sources":["../../../src/inapp/renderers/card-template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card-template.d.ts","sourceRoot":"","sources":["../../../src/inapp/renderers/card-template.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,QAAQ,GACR,UAAU,GACV,KAAK,GAEL,MAAM,GACN,MAAM,GACN,QAAQ,GACR,UAAU,GACV,WAAW,GAEX,cAAc,GACd,MAAM,GACN,KAAK,GACL,OAAO,CAAC;AAEZ,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,eAAe,CAAC;IACtB,8EAA8E;IAC9E,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,4CAA4C;IAC5C,MAAM,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;IAChC,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,2CAA2C;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM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["../../../src/inapp/renderers/carousel-cards.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"carousel-cards.d.ts","sourceRoot":"","sources":["../../../src/inapp/renderers/carousel-cards.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAS7C,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAuN5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-recommendation.d.ts","sourceRoot":"","sources":["../../../src/inapp/renderers/product-recommendation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;
|
|
1
|
+
{"version":3,"file":"product-recommendation.d.ts","sourceRoot":"","sources":["../../../src/inapp/renderers/product-recommendation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAW7C,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAiHpE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,CAC/C,GAAG,EAAE,aAAa,EAClB,MAAM,EAAE,WAAW,GAClB,OAAO,CA+FT"}
|
package/dist/index.js
CHANGED
|
@@ -265,6 +265,16 @@ function lucideSvg(name, opts = {}) {
|
|
|
265
265
|
}).join("");
|
|
266
266
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" viewBox="0 0 24 24" fill="none" stroke="${escapeAttr(color)}" stroke-width="${strokeWidth}" stroke-linecap="round" stroke-linejoin="round"${cls} ${a11y}>${children}</svg>`;
|
|
267
267
|
}
|
|
268
|
+
const IN_APP_FONT_STACK = "'Urbanist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif";
|
|
269
|
+
function ensureInAppFont() {
|
|
270
|
+
if (typeof document === "undefined") return;
|
|
271
|
+
if (document.getElementById("aegis-inapp-font-urbanist")) return;
|
|
272
|
+
const link = document.createElement("link");
|
|
273
|
+
link.id = "aegis-inapp-font-urbanist";
|
|
274
|
+
link.rel = "stylesheet";
|
|
275
|
+
link.href = "https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap";
|
|
276
|
+
document.head.appendChild(link);
|
|
277
|
+
}
|
|
268
278
|
function npsBandFromScore(score) {
|
|
269
279
|
if (score <= 6) return "detractor";
|
|
270
280
|
if (score <= 8) return "passive";
|
|
@@ -343,6 +353,17 @@ const WEIGHT = {
|
|
|
343
353
|
};
|
|
344
354
|
const ICON_PX = { sm: 22, md: 30, lg: 40 };
|
|
345
355
|
const TEXT_PX = { sm: 11.5, md: 13, lg: 15 };
|
|
356
|
+
function sanitizeFontFamily(v) {
|
|
357
|
+
return v.replace(/[^a-zA-Z0-9 ,"'-]/g, "").slice(0, 120);
|
|
358
|
+
}
|
|
359
|
+
function resolveCardFont(ff) {
|
|
360
|
+
if (ff === "inherit") return "";
|
|
361
|
+
if (ff && ff.trim()) return sanitizeFontFamily(ff);
|
|
362
|
+
return IN_APP_FONT_STACK;
|
|
363
|
+
}
|
|
364
|
+
function ensureCardFontLoaded(resolvedFont) {
|
|
365
|
+
if (/urbanist/i.test(resolvedFont)) ensureInAppFont();
|
|
366
|
+
}
|
|
346
367
|
function interpolateTokens(s, ctx) {
|
|
347
368
|
if (!s || s.indexOf("{") === -1) return s;
|
|
348
369
|
const props = ctx.properties && ctx.properties() || {};
|
|
@@ -865,6 +886,7 @@ function buildProgressElement(el, ctx, accent, muted) {
|
|
|
865
886
|
wrap.appendChild(sub);
|
|
866
887
|
wrap.appendChild(shell);
|
|
867
888
|
let firedUnlock = false;
|
|
889
|
+
let seenIncomplete = false;
|
|
868
890
|
const update = () => {
|
|
869
891
|
var _a;
|
|
870
892
|
const th = threshold();
|
|
@@ -885,12 +907,15 @@ function buildProgressElement(el, ctx, accent, muted) {
|
|
|
885
907
|
sub.style.fontWeight = "700";
|
|
886
908
|
if (!firedUnlock) {
|
|
887
909
|
firedUnlock = true;
|
|
888
|
-
|
|
889
|
-
|
|
910
|
+
if (seenIncomplete) {
|
|
911
|
+
trackEvent(campaign.id, "clicked", { stepId: el.id || "unlocked" });
|
|
912
|
+
if (el.celebrate_on_complete !== false) (_a = ctx.playReaction) == null ? void 0 : _a.call(ctx, wrap, "celebrate");
|
|
913
|
+
}
|
|
890
914
|
}
|
|
891
915
|
} else {
|
|
892
916
|
sub.style.color = muted;
|
|
893
917
|
sub.style.fontWeight = "";
|
|
918
|
+
seenIncomplete = true;
|
|
894
919
|
firedUnlock = false;
|
|
895
920
|
}
|
|
896
921
|
};
|
|
@@ -913,6 +938,8 @@ function renderCardFromTemplate(card, opts) {
|
|
|
913
938
|
const fg = contrastFg(frame.bg ? sanitizeColor(frame.bg) : "#ffffff");
|
|
914
939
|
const muted = fg === "#ffffff" ? "rgba(255,255,255,0.72)" : "#6b7280";
|
|
915
940
|
const tile = document.createElement("div");
|
|
941
|
+
const cardFont = resolveCardFont(frame.fontFamily);
|
|
942
|
+
ensureCardFontLoaded(cardFont);
|
|
916
943
|
const radius = frame.radius !== void 0 ? `${parseInt(String(frame.radius), 10) || 12}px` : "12px";
|
|
917
944
|
const fLayout = frame.layout;
|
|
918
945
|
const dir = fLayout === "row" ? "row" : "column";
|
|
@@ -921,9 +948,11 @@ function renderCardFromTemplate(card, opts) {
|
|
|
921
948
|
tile.style.cssText = `
|
|
922
949
|
box-sizing:border-box; display:flex; flex-direction:${dir}; ${fLayout === "row" ? "align-items:center;" : ""} gap:${tileGap}px; position:relative;
|
|
923
950
|
color:${fg};
|
|
951
|
+
${cardFont ? `font-family:${cardFont};` : ""}
|
|
924
952
|
background:${frame.bg ? sanitizeColor(frame.bg) : "#ffffff"};
|
|
925
953
|
border:1px solid ${frame.border ? sanitizeColor(frame.border) : "transparent"};
|
|
926
954
|
border-radius:${radius}; padding:8px;
|
|
955
|
+
${fLayout === "row" ? "" : "box-shadow:0 2px 10px rgba(0,0,0,0.12);"}
|
|
927
956
|
${frame.max_width ? `max-width:${frame.max_width}px;` : ""}${frame.min_width ? `min-width:${frame.min_width}px;` : ""}
|
|
928
957
|
${frame.height ? `height:${frame.height}px;` : ""}${frame.min_height ? `min-height:${frame.min_height}px;` : ""}
|
|
929
958
|
${sizing}
|
|
@@ -1173,6 +1202,7 @@ function renderCarouselCards(ctx) {
|
|
|
1173
1202
|
const autoplay = Number(ic.autoplay_ms) || 0;
|
|
1174
1203
|
const loop = ic.loop !== false;
|
|
1175
1204
|
addAnimationStyles();
|
|
1205
|
+
ensureInAppFont();
|
|
1176
1206
|
const bg = "#ffffff";
|
|
1177
1207
|
const fg = "#0f172a";
|
|
1178
1208
|
const accent = sanitizeColor(campaign.background_color || "#4169e1");
|
|
@@ -1183,7 +1213,7 @@ function renderCarouselCards(ctx) {
|
|
|
1183
1213
|
position: fixed; left: 0; right: 0; bottom: 0;
|
|
1184
1214
|
z-index: 99999; padding: 12px 12px 20px;
|
|
1185
1215
|
background: rgba(0,0,0,0.12); backdrop-filter: blur(8px);
|
|
1186
|
-
font-family:
|
|
1216
|
+
font-family: ${IN_APP_FONT_STACK};
|
|
1187
1217
|
animation: aegisSlideInFromBottom 0.3s ease-out;
|
|
1188
1218
|
`;
|
|
1189
1219
|
const card = document.createElement("div");
|
|
@@ -1354,7 +1384,7 @@ function renderStickyBar(ctx) {
|
|
|
1354
1384
|
position: fixed; ${positionCss}
|
|
1355
1385
|
background: ${bg}; color: ${fg};
|
|
1356
1386
|
padding: 10px 14px; z-index: 999998;
|
|
1357
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1387
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1358
1388
|
display: flex; align-items: center; gap: 12px; justify-content: center;
|
|
1359
1389
|
box-shadow: 0 ${position === "top" ? "2px" : "-2px"} 8px rgba(0,0,0,0.08);
|
|
1360
1390
|
`;
|
|
@@ -1442,14 +1472,14 @@ function buildProgressBar(ctx, inline) {
|
|
|
1442
1472
|
bar.style.cssText = inline ? `
|
|
1443
1473
|
background: ${bg}; color: ${fg};
|
|
1444
1474
|
padding: 10px 14px;
|
|
1445
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1475
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1446
1476
|
` : `
|
|
1447
1477
|
position: fixed; left: 12px; right: 12px; bottom: 12px;
|
|
1448
1478
|
max-width: 540px; margin: 0 auto;
|
|
1449
1479
|
background: ${bg}; color: ${fg}; border-radius: 12px;
|
|
1450
1480
|
padding: 10px 14px; z-index: 999997;
|
|
1451
1481
|
box-shadow: 0 8px 20px rgba(0,0,0,0.08);
|
|
1452
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1482
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1453
1483
|
animation: aegisSlideInFromBottom 0.3s ease-out;
|
|
1454
1484
|
`;
|
|
1455
1485
|
const label = document.createElement("div");
|
|
@@ -1718,7 +1748,7 @@ function renderCoachmarkTour(ctx) {
|
|
|
1718
1748
|
padding: 12px 14px; border-radius: 12px;
|
|
1719
1749
|
max-width: 260px;
|
|
1720
1750
|
box-shadow: 0 8px 24px rgba(0,0,0,0.25);
|
|
1721
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1751
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1722
1752
|
animation: aegisFadeIn 0.2s ease;
|
|
1723
1753
|
`;
|
|
1724
1754
|
const titleEl = document.createElement("div");
|
|
@@ -1828,6 +1858,7 @@ function renderProductRecommendation(ctx) {
|
|
|
1828
1858
|
const layout = ic.rec_layout || "grid";
|
|
1829
1859
|
const template = resolveGlobalTemplate(ic);
|
|
1830
1860
|
addAnimationStyles();
|
|
1861
|
+
ensureInAppFont();
|
|
1831
1862
|
const bg = "#ffffff";
|
|
1832
1863
|
const fg = "#0f172a";
|
|
1833
1864
|
const accent = sanitizeColor(campaign.background_color || "#4169e1");
|
|
@@ -1846,7 +1877,7 @@ function renderProductRecommendation(ctx) {
|
|
|
1846
1877
|
max-width: 560px; width: 100%; max-height: 80vh; overflow-y: auto;
|
|
1847
1878
|
border-radius: 20px 20px 0 0;
|
|
1848
1879
|
padding: 18px 16px 22px;
|
|
1849
|
-
font-family:
|
|
1880
|
+
font-family: ${IN_APP_FONT_STACK};
|
|
1850
1881
|
animation: aegisSlideInFromBottom 0.3s ease-out;
|
|
1851
1882
|
box-shadow: 0 -12px 30px rgba(0,0,0,0.12);
|
|
1852
1883
|
`;
|
|
@@ -1922,11 +1953,12 @@ function renderProductRecommendationInline(ctx, target) {
|
|
|
1922
1953
|
const fg = "#0f172a";
|
|
1923
1954
|
const accent = sanitizeColor(campaign.background_color || "#4169e1");
|
|
1924
1955
|
addAnimationStyles();
|
|
1956
|
+
ensureInAppFont();
|
|
1925
1957
|
const section = document.createElement("section");
|
|
1926
1958
|
section.className = "aegis-in-app-product-rec-inline";
|
|
1927
1959
|
section.setAttribute("data-campaign-id", campaign.id);
|
|
1928
1960
|
section.style.cssText = `
|
|
1929
|
-
font-family:
|
|
1961
|
+
font-family: ${IN_APP_FONT_STACK};
|
|
1930
1962
|
color: ${fg};
|
|
1931
1963
|
`;
|
|
1932
1964
|
if (campaign.title) {
|
|
@@ -2080,14 +2112,14 @@ function renderLauncherBar(ctx, cfg, target) {
|
|
|
2080
2112
|
padding: 14px 18px 16px 20px; scroll-padding-left: 20px;
|
|
2081
2113
|
background: ${surfaceBg}; backdrop-filter: blur(8px);
|
|
2082
2114
|
box-shadow: 0 -4px 16px rgba(0,0,0,0.08); scrollbar-width: none;
|
|
2083
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2115
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2084
2116
|
animation: aegisSlideInFromBottom 0.3s ease-out;
|
|
2085
2117
|
` : `
|
|
2086
2118
|
display: flex; gap: 16px; align-items: flex-start; overflow-x: auto;
|
|
2087
2119
|
padding: 12px 18px 12px 18px; scroll-padding-left: 18px;
|
|
2088
2120
|
background: ${surfaceBg}; ${cfg.branded ? "border-radius: 16px;" : ""}
|
|
2089
2121
|
scrollbar-width: none;
|
|
2090
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2122
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2091
2123
|
`;
|
|
2092
2124
|
cfg.groups.forEach((g, i) => bar.appendChild(buildGroupBubble(ctx, cfg, g, i, labelColor)));
|
|
2093
2125
|
if (floating) {
|
|
@@ -2208,7 +2240,7 @@ function openViewer(ctx, cfg, startGroupIndex, startFrameIndex = 0) {
|
|
|
2208
2240
|
overlay.style.cssText = `
|
|
2209
2241
|
position: fixed; inset: 0; z-index: 100000; background: #000;
|
|
2210
2242
|
display: flex; align-items: center; justify-content: center;
|
|
2211
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2243
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2212
2244
|
animation: aegisFadeIn 0.25s ease;
|
|
2213
2245
|
`;
|
|
2214
2246
|
const stage = document.createElement("div");
|
|
@@ -2338,7 +2370,7 @@ function openViewer(ctx, cfg, startGroupIndex, startFrameIndex = 0) {
|
|
|
2338
2370
|
if (f.title) {
|
|
2339
2371
|
const t = document.createElement("div");
|
|
2340
2372
|
t.textContent = f.title;
|
|
2341
|
-
t.style.cssText = "font-family: '
|
|
2373
|
+
t.style.cssText = "font-family: 'Urbanist', system-ui, sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 6px; text-shadow: 0 1px 8px rgba(0,0,0,0.4);";
|
|
2342
2374
|
copy.appendChild(t);
|
|
2343
2375
|
}
|
|
2344
2376
|
if (f.body) {
|
|
@@ -2504,7 +2536,7 @@ function openGameModal(ctx, className, maxWidth = 360) {
|
|
|
2504
2536
|
const overlay = document.createElement("div");
|
|
2505
2537
|
overlay.className = className;
|
|
2506
2538
|
overlay.setAttribute("data-campaign-id", campaign.id);
|
|
2507
|
-
overlay.style.cssText = 'position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,0.55);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:16px;font-family
|
|
2539
|
+
overlay.style.cssText = 'position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,0.55);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:16px;font-family:"Urbanist",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;animation:aegisFadeIn 0.25s ease;';
|
|
2508
2540
|
const card = document.createElement("div");
|
|
2509
2541
|
card.style.cssText = `position:relative;width:100%;max-width:${maxWidth}px;max-height:88vh;overflow-y:auto;background:${bg};color:${fg};border-radius:20px;padding:24px 20px 20px;box-shadow:0 16px 48px rgba(0,0,0,0.22);animation:aegisScaleIn 0.3s ease;text-align:center;`;
|
|
2510
2542
|
let removed = false;
|
|
@@ -2529,7 +2561,7 @@ function openGameModal(ctx, className, maxWidth = 360) {
|
|
|
2529
2561
|
if (campaign.title) {
|
|
2530
2562
|
const t = document.createElement("div");
|
|
2531
2563
|
t.textContent = campaign.title;
|
|
2532
|
-
t.style.cssText = "font-family:'
|
|
2564
|
+
t.style.cssText = "font-family:'Urbanist',system-ui,sans-serif;font-size:18px;font-weight:800;letter-spacing:-0.01em;margin:2px 24px 4px;line-height:1.25;";
|
|
2533
2565
|
card.appendChild(t);
|
|
2534
2566
|
}
|
|
2535
2567
|
if (campaign.body) {
|
|
@@ -3268,7 +3300,7 @@ function caption(ctx, accent, onCard) {
|
|
|
3268
3300
|
if (campaign.title) {
|
|
3269
3301
|
const t = document.createElement("div");
|
|
3270
3302
|
t.textContent = campaign.title;
|
|
3271
|
-
t.style.cssText = `font-family:'
|
|
3303
|
+
t.style.cssText = `font-family:'Urbanist',system-ui,sans-serif;font-size:17px;font-weight:800;letter-spacing:-0.01em;line-height:1.2;${onCard ? "text-shadow:0 1px 8px rgba(0,0,0,0.4);" : ""}`;
|
|
3272
3304
|
box.appendChild(t);
|
|
3273
3305
|
}
|
|
3274
3306
|
if (campaign.body) {
|
|
@@ -3314,7 +3346,7 @@ function renderVideo(ctx) {
|
|
|
3314
3346
|
const overlay = document.createElement("div");
|
|
3315
3347
|
overlay.className = "aegis-in-app-video-overlay";
|
|
3316
3348
|
overlay.setAttribute("data-campaign-id", campaign.id);
|
|
3317
|
-
overlay.style.cssText = 'position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,0.6);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:16px;font-family
|
|
3349
|
+
overlay.style.cssText = 'position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,0.6);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:16px;font-family:"Urbanist",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;animation:aegisFadeIn 0.25s ease;';
|
|
3318
3350
|
const card = document.createElement("div");
|
|
3319
3351
|
card.style.cssText = `position:relative;width:100%;max-width:${o.aspect === "9:16" ? 320 : 460}px;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 16px 48px rgba(0,0,0,0.28);animation:aegisScaleIn 0.3s ease;`;
|
|
3320
3352
|
const media = buildVideo(ctx, o.aspect, o.autoplay, o.loop);
|
|
@@ -3359,7 +3391,7 @@ function renderVideoInline(ctx, target) {
|
|
|
3359
3391
|
const banner = document.createElement("div");
|
|
3360
3392
|
banner.className = "aegis-in-app-video-banner";
|
|
3361
3393
|
banner.setAttribute("data-campaign-id", ctx.campaign.id);
|
|
3362
|
-
banner.style.cssText = 'width:100%;font-family
|
|
3394
|
+
banner.style.cssText = 'width:100%;font-family:"Urbanist",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;';
|
|
3363
3395
|
const media = buildVideo(ctx, o.aspect, o.autoplay, o.loop);
|
|
3364
3396
|
if (o.overlayCaption) {
|
|
3365
3397
|
const c = caption(ctx, o.accent, true);
|
|
@@ -5010,6 +5042,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
5010
5042
|
if (typeof localStorage !== "undefined") {
|
|
5011
5043
|
localStorage.setItem("aegis_returning_user", "1");
|
|
5012
5044
|
}
|
|
5045
|
+
ensureInAppFont();
|
|
5013
5046
|
await this.refreshCampaigns();
|
|
5014
5047
|
if (this.enableSSE && this.organizationId) {
|
|
5015
5048
|
this.connectSSE();
|
|
@@ -5556,6 +5589,11 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
5556
5589
|
host.setAttribute("data-aegis-slot-rendered", list[0].id);
|
|
5557
5590
|
slot.appendChild(host);
|
|
5558
5591
|
this.renderCampaignIntoSlot(list[0], host);
|
|
5592
|
+
if (host.childElementCount === 0) {
|
|
5593
|
+
host.remove();
|
|
5594
|
+
this.slotSignatures.delete(slot);
|
|
5595
|
+
return;
|
|
5596
|
+
}
|
|
5559
5597
|
if (flush) this._flattenSlotCard(host);
|
|
5560
5598
|
}
|
|
5561
5599
|
this.filledSlots.add(slot);
|
|
@@ -6429,7 +6467,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
6429
6467
|
body.style.cssText = `padding: ${st.padY ?? 22}px ${st.padX ?? 20}px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px;`;
|
|
6430
6468
|
if (campaign.title) {
|
|
6431
6469
|
const t = document.createElement("div");
|
|
6432
|
-
t.style.cssText = `font-size: 18px; font-weight: 800; letter-spacing: -0.01em; text-align: center; font-family: '
|
|
6470
|
+
t.style.cssText = `font-size: 18px; font-weight: 800; letter-spacing: -0.01em; text-align: center; font-family: 'Urbanist', system-ui, -apple-system, sans-serif;`;
|
|
6433
6471
|
t.textContent = campaign.title;
|
|
6434
6472
|
body.appendChild(t);
|
|
6435
6473
|
}
|
|
@@ -6529,7 +6567,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
6529
6567
|
}
|
|
6530
6568
|
const tx = document.createElement("span");
|
|
6531
6569
|
tx.textContent = label;
|
|
6532
|
-
tx.style.cssText = `white-space: nowrap; line-height: 1.05; font-size: ${fontPx}px; font-weight: 900; font-family: '
|
|
6570
|
+
tx.style.cssText = `white-space: nowrap; line-height: 1.05; font-size: ${fontPx}px; font-weight: 900; font-family: 'Urbanist', system-ui, -apple-system, sans-serif; letter-spacing: 0.2px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.65), 0 0 1px rgba(0,0,0,0.9); -webkit-font-smoothing: antialiased;`;
|
|
6533
6571
|
lab.appendChild(tx);
|
|
6534
6572
|
wheel.appendChild(lab);
|
|
6535
6573
|
});
|
|
@@ -6582,7 +6620,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
6582
6620
|
}
|
|
6583
6621
|
const btn = document.createElement("button");
|
|
6584
6622
|
btn.textContent = campaign.button_text || "Spin the wheel";
|
|
6585
|
-
btn.style.cssText = `padding: 9px 22px; border-radius: 999px; border: none; background: ${text}; color: ${bg}; font-size: 13px; font-weight: 700; letter-spacing: 0.2px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.20); transition: transform 0.15s, box-shadow 0.15s; font-family: '
|
|
6623
|
+
btn.style.cssText = `padding: 9px 22px; border-radius: 999px; border: none; background: ${text}; color: ${bg}; font-size: 13px; font-weight: 700; letter-spacing: 0.2px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.20); transition: transform 0.15s, box-shadow 0.15s; font-family: 'Urbanist', system-ui, -apple-system, sans-serif;`;
|
|
6586
6624
|
btn.addEventListener("mouseenter", () => {
|
|
6587
6625
|
if (btn.disabled) return;
|
|
6588
6626
|
btn.style.transform = "translateY(-1px)";
|
|
@@ -6679,7 +6717,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
6679
6717
|
eyebrow.style.cssText = "font-size: 13px; font-weight: 700; letter-spacing: 0.3px; opacity: 0.8;";
|
|
6680
6718
|
const big = document.createElement("div");
|
|
6681
6719
|
big.textContent = r.label;
|
|
6682
|
-
big.style.cssText = `font-size: 24px; font-weight: 900; letter-spacing: -0.02em; font-family: '
|
|
6720
|
+
big.style.cssText = `font-size: 24px; font-weight: 900; letter-spacing: -0.02em; font-family: 'Urbanist', system-ui, -apple-system, sans-serif;`;
|
|
6683
6721
|
ov.appendChild(eyebrow);
|
|
6684
6722
|
ov.appendChild(big);
|
|
6685
6723
|
if (r.code) {
|
|
@@ -7343,7 +7381,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
7343
7381
|
eb.style.cssText = "font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; opacity: 0.7;";
|
|
7344
7382
|
const big = document.createElement("div");
|
|
7345
7383
|
big.textContent = label;
|
|
7346
|
-
big.style.cssText = `font-size: 22px; font-weight: 900; letter-spacing: -0.02em; font-family: '
|
|
7384
|
+
big.style.cssText = `font-size: 22px; font-weight: 900; letter-spacing: -0.02em; font-family: 'Urbanist', system-ui, sans-serif;`;
|
|
7347
7385
|
ov.appendChild(eb);
|
|
7348
7386
|
ov.appendChild(big);
|
|
7349
7387
|
if (code) {
|
|
@@ -8271,7 +8309,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
8271
8309
|
};
|
|
8272
8310
|
const heading = (txt, big = false) => {
|
|
8273
8311
|
const t = document.createElement("div");
|
|
8274
|
-
t.style.cssText = `font-size: ${big ? 19 : 14}px; font-weight: ${big ? 800 : 600}; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: ${big ? 6 : 14}px; font-family: '
|
|
8312
|
+
t.style.cssText = `font-size: ${big ? 19 : 14}px; font-weight: ${big ? 800 : 600}; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: ${big ? 6 : 14}px; font-family: 'Urbanist', system-ui, -apple-system, sans-serif;`;
|
|
8275
8313
|
t.textContent = txt;
|
|
8276
8314
|
return t;
|
|
8277
8315
|
};
|
|
@@ -8664,7 +8702,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
8664
8702
|
display: flex;
|
|
8665
8703
|
align-items: center;
|
|
8666
8704
|
justify-content: space-between;
|
|
8667
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8705
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8668
8706
|
animation: ${atBottom ? "aegisSlideInFromBottom" : "aegisSlideDown"} 0.3s ease-out;
|
|
8669
8707
|
`;
|
|
8670
8708
|
banner.setAttribute("data-banner-position", atBottom ? "bottom" : "top");
|
|
@@ -8784,7 +8822,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
8784
8822
|
overflow: auto;
|
|
8785
8823
|
box-shadow: 0 16px 48px rgba(0,0,0,0.22);
|
|
8786
8824
|
animation: aegisScaleIn 0.3s ease-out;
|
|
8787
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8825
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8788
8826
|
`;
|
|
8789
8827
|
if (videoUrl) {
|
|
8790
8828
|
const mediaWrap = document.createElement("div");
|
|
@@ -8958,7 +8996,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
8958
8996
|
z-index: 1000001; display: flex; flex-direction: column; align-items: center;
|
|
8959
8997
|
justify-content: ${isBg ? "flex-end" : "center"}; padding: ${isBg ? "0" : "40px 20px"};
|
|
8960
8998
|
animation: aegisFadeIn 0.3s ease-out; overflow: hidden;
|
|
8961
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8999
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8962
9000
|
`;
|
|
8963
9001
|
if (isBg) {
|
|
8964
9002
|
const media = document.createElement("div");
|
|
@@ -9096,7 +9134,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9096
9134
|
overflow: auto;
|
|
9097
9135
|
box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
|
|
9098
9136
|
animation: aegisSlideUp 0.3s ease-out;
|
|
9099
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9137
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9100
9138
|
`;
|
|
9101
9139
|
const grabber = document.createElement("div");
|
|
9102
9140
|
grabber.style.cssText = `width: 40px; height: 4px; border-radius: 2px; background: ${st.text}33; margin: 10px auto 0;`;
|
|
@@ -9241,7 +9279,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9241
9279
|
width: 85%;
|
|
9242
9280
|
box-shadow: 0 16px 48px rgba(0,0,0,0.22);
|
|
9243
9281
|
animation: aegisScaleIn 0.2s ease-out;
|
|
9244
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9282
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9245
9283
|
overflow: hidden;
|
|
9246
9284
|
`;
|
|
9247
9285
|
const content = document.createElement("div");
|
|
@@ -9359,7 +9397,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9359
9397
|
background: #000; border-radius: 14px; overflow: hidden;
|
|
9360
9398
|
box-shadow: 0 10px 30px rgba(0,0,0,0.38); z-index: 999999;
|
|
9361
9399
|
animation: ${slideAnim} 0.3s ease-out; transition: width 0.25s ease, border-radius 0.25s ease;
|
|
9362
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9400
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9363
9401
|
`;
|
|
9364
9402
|
const mediaWrap = document.createElement("div");
|
|
9365
9403
|
mediaWrap.style.cssText = "position: relative; width: 100%; background: #000; line-height: 0; aspect-ratio: 16 / 9;";
|
|
@@ -9510,7 +9548,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9510
9548
|
position: fixed; ${cornerCss} width: ${cornerW}px; max-width: calc(100vw - ${gap * 2}px);
|
|
9511
9549
|
background: #000; border-radius: 14px; overflow: hidden;
|
|
9512
9550
|
box-shadow: 0 10px 30px rgba(0,0,0,0.38); z-index: 999999; transition: none;
|
|
9513
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9551
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9514
9552
|
`;
|
|
9515
9553
|
if (expandBtn) {
|
|
9516
9554
|
expandBtn.textContent = "⤢";
|
|
@@ -9530,7 +9568,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9530
9568
|
width: ${theaterW}px; max-width: calc(100vw - ${gap * 2}px);
|
|
9531
9569
|
background: #000; border-radius: 16px; overflow: hidden;
|
|
9532
9570
|
box-shadow: 0 24px 60px rgba(0,0,0,0.55); z-index: 999999; transition: none;
|
|
9533
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9571
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9534
9572
|
`;
|
|
9535
9573
|
if (expandBtn) {
|
|
9536
9574
|
expandBtn.innerHTML = lucideSvg("x", { size: 16 });
|
|
@@ -9660,7 +9698,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9660
9698
|
tooltip.style.cssText = `
|
|
9661
9699
|
position: absolute; z-index: 1000001; max-width: 280px; width: max-content;
|
|
9662
9700
|
background: ${bg}; color: ${textColor}; border-radius: 10px; padding: 14px 16px;
|
|
9663
|
-
box-shadow: 0 8px 24px rgba(0,0,0,0.18); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9701
|
+
box-shadow: 0 8px 24px rgba(0,0,0,0.18); font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9664
9702
|
animation: aegisScaleIn 0.2s ease-out; pointer-events: auto;
|
|
9665
9703
|
`;
|
|
9666
9704
|
const arrow = document.createElement("div");
|
|
@@ -9936,10 +9974,21 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9936
9974
|
};
|
|
9937
9975
|
const spec = SPEC[intent];
|
|
9938
9976
|
const festive = spec.festive;
|
|
9977
|
+
let px = festive ? 150 : intent === "acknowledge" ? 92 : 124;
|
|
9978
|
+
let ringPx = 60;
|
|
9979
|
+
if (!viewport && host) {
|
|
9980
|
+
const rect = host.getBoundingClientRect();
|
|
9981
|
+
const fit = Math.min(rect.width, rect.height);
|
|
9982
|
+
if (fit > 0 && fit < px) {
|
|
9983
|
+
const scaled = Math.max(44, Math.round(fit * 0.82));
|
|
9984
|
+
ringPx = Math.max(24, Math.round(ringPx * (scaled / px)));
|
|
9985
|
+
px = scaled;
|
|
9986
|
+
}
|
|
9987
|
+
}
|
|
9939
9988
|
if (festive && !reduce) {
|
|
9940
9989
|
for (let i = 0; i < 3; i++) {
|
|
9941
9990
|
const ring = document.createElement("div");
|
|
9942
|
-
ring.style.cssText = `position: absolute; left: 50%; top: 50%; width:
|
|
9991
|
+
ring.style.cssText = `position: absolute; left: 50%; top: 50%; width: ${ringPx}px; height: ${ringPx}px; border-radius: 50%; border: 3px solid ${spec.ring}; animation: aegisRing 1.1s ease-out ${i * 0.18}s forwards;`;
|
|
9943
9992
|
layer.appendChild(ring);
|
|
9944
9993
|
}
|
|
9945
9994
|
}
|
|
@@ -9947,7 +9996,6 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9947
9996
|
const reactionIcon = svgNode(this._reactionSvg(spec.svg));
|
|
9948
9997
|
if (reactionIcon) g.appendChild(reactionIcon);
|
|
9949
9998
|
const motion = reduce ? "" : intent !== "empathize" ? "animation: aegisReactionPop 0.7s cubic-bezier(.2,.9,.3,1.2) forwards, aegisReactionFloatOut 0.7s ease-in 1.9s forwards;" : "animation: aegisReactionSoft 0.9s ease-out forwards;";
|
|
9950
|
-
const px = festive ? 150 : intent === "acknowledge" ? 92 : 124;
|
|
9951
9999
|
g.style.cssText = `position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: ${px}px; height: ${px}px; display: flex; align-items: center; justify-content: center; line-height: 0; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.30)); ${motion}`;
|
|
9952
10000
|
layer.appendChild(g);
|
|
9953
10001
|
anchor.appendChild(layer);
|