@active-reach/web-sdk 1.27.1 → 1.27.3
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.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 +84 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,aAAa,CAAC;AA0C5D,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EACA,OAAO,GACP,QAAQ,GACR,SAAS,GACT,aAAa,GACb,mBAAmB,GACnB,OAAO,GACP,KAAK,GACL,OAAO,GAEP,SAAS,GAET,gBAAgB,GAChB,YAAY,GACZ,cAAc,GACd,gBAAgB,GAChB,wBAAwB,GAGxB,iBAAiB,GACjB,aAAa,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAA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crB,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,GA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IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,sFAAsF;IACtF,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAID;mFACmF;AACnF,eAAO,MAAM,qBAAqB,EAAE,YAenC,CAAC;AA6BF,qFAAqF;AACrF,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,YAAY,CAU/E;AA8nBD;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE;IACJ,QAAQ,EAAE,YAAY,CAAC;IACvB,GAAG,EAAE,aAAa,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,UAAU,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB,GACA,WAAW,CAwTb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-cards.d.ts","sourceRoot":"","sources":["../../../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() || {};
|
|
@@ -442,7 +463,7 @@ function paintPrice(card, el, accent, ctx) {
|
|
|
442
463
|
p.style.cssText = `color:${accent};font-weight:700;font-size:13px;`;
|
|
443
464
|
} else {
|
|
444
465
|
const pillBg = el.color ? ctx.sanitizeColor(el.color) : "#059669";
|
|
445
|
-
p.style.cssText = `background:${pillBg};color:#fff;font-weight:800;font-size:12px;padding:2px 7px;border-radius:6px;`;
|
|
466
|
+
p.style.cssText = `background:${pillBg};color:#fff;font-weight:800;font-size:12px;padding:2px 7px;border-radius:6px;box-shadow:0 2px 6px rgba(0,0,0,0.30);`;
|
|
446
467
|
}
|
|
447
468
|
row.appendChild(p);
|
|
448
469
|
const pNum = parseFloat(price.replace(/[^0-9.]/g, ""));
|
|
@@ -853,6 +874,10 @@ function buildProgressElement(el, ctx, accent, muted) {
|
|
|
853
874
|
if (goal === "referrals") return Number(p["referrals.count"]) || 0;
|
|
854
875
|
return 0;
|
|
855
876
|
};
|
|
877
|
+
const cartItems = () => {
|
|
878
|
+
const c = ctx.getCartState && ctx.getCartState();
|
|
879
|
+
return c && typeof c.itemCount === "number" ? c.itemCount : 0;
|
|
880
|
+
};
|
|
856
881
|
const wrap = document.createElement("div");
|
|
857
882
|
wrap.style.cssText = "display:flex;flex-direction:column;gap:3px;min-width:0;width:100%;";
|
|
858
883
|
const sub = document.createElement("div");
|
|
@@ -894,7 +919,8 @@ function buildProgressElement(el, ctx, accent, muted) {
|
|
|
894
919
|
} else {
|
|
895
920
|
sub.style.color = muted;
|
|
896
921
|
sub.style.fontWeight = "";
|
|
897
|
-
|
|
922
|
+
const engaged = goal === "cart_total" || goal === "items_in_cart" ? cartItems() > 0 : cur > 0;
|
|
923
|
+
if (engaged) seenIncomplete = true;
|
|
898
924
|
firedUnlock = false;
|
|
899
925
|
}
|
|
900
926
|
};
|
|
@@ -917,6 +943,8 @@ function renderCardFromTemplate(card, opts) {
|
|
|
917
943
|
const fg = contrastFg(frame.bg ? sanitizeColor(frame.bg) : "#ffffff");
|
|
918
944
|
const muted = fg === "#ffffff" ? "rgba(255,255,255,0.72)" : "#6b7280";
|
|
919
945
|
const tile = document.createElement("div");
|
|
946
|
+
const cardFont = resolveCardFont(frame.fontFamily);
|
|
947
|
+
ensureCardFontLoaded(cardFont);
|
|
920
948
|
const radius = frame.radius !== void 0 ? `${parseInt(String(frame.radius), 10) || 12}px` : "12px";
|
|
921
949
|
const fLayout = frame.layout;
|
|
922
950
|
const dir = fLayout === "row" ? "row" : "column";
|
|
@@ -925,9 +953,11 @@ function renderCardFromTemplate(card, opts) {
|
|
|
925
953
|
tile.style.cssText = `
|
|
926
954
|
box-sizing:border-box; display:flex; flex-direction:${dir}; ${fLayout === "row" ? "align-items:center;" : ""} gap:${tileGap}px; position:relative;
|
|
927
955
|
color:${fg};
|
|
956
|
+
${cardFont ? `font-family:${cardFont};` : ""}
|
|
928
957
|
background:${frame.bg ? sanitizeColor(frame.bg) : "#ffffff"};
|
|
929
958
|
border:1px solid ${frame.border ? sanitizeColor(frame.border) : "transparent"};
|
|
930
959
|
border-radius:${radius}; padding:8px;
|
|
960
|
+
${fLayout === "row" ? "" : "box-shadow:0 2px 10px rgba(0,0,0,0.12);"}
|
|
931
961
|
${frame.max_width ? `max-width:${frame.max_width}px;` : ""}${frame.min_width ? `min-width:${frame.min_width}px;` : ""}
|
|
932
962
|
${frame.height ? `height:${frame.height}px;` : ""}${frame.min_height ? `min-height:${frame.min_height}px;` : ""}
|
|
933
963
|
${sizing}
|
|
@@ -1177,6 +1207,7 @@ function renderCarouselCards(ctx) {
|
|
|
1177
1207
|
const autoplay = Number(ic.autoplay_ms) || 0;
|
|
1178
1208
|
const loop = ic.loop !== false;
|
|
1179
1209
|
addAnimationStyles();
|
|
1210
|
+
ensureInAppFont();
|
|
1180
1211
|
const bg = "#ffffff";
|
|
1181
1212
|
const fg = "#0f172a";
|
|
1182
1213
|
const accent = sanitizeColor(campaign.background_color || "#4169e1");
|
|
@@ -1187,7 +1218,7 @@ function renderCarouselCards(ctx) {
|
|
|
1187
1218
|
position: fixed; left: 0; right: 0; bottom: 0;
|
|
1188
1219
|
z-index: 99999; padding: 12px 12px 20px;
|
|
1189
1220
|
background: rgba(0,0,0,0.12); backdrop-filter: blur(8px);
|
|
1190
|
-
font-family:
|
|
1221
|
+
font-family: ${IN_APP_FONT_STACK};
|
|
1191
1222
|
animation: aegisSlideInFromBottom 0.3s ease-out;
|
|
1192
1223
|
`;
|
|
1193
1224
|
const card = document.createElement("div");
|
|
@@ -1358,7 +1389,7 @@ function renderStickyBar(ctx) {
|
|
|
1358
1389
|
position: fixed; ${positionCss}
|
|
1359
1390
|
background: ${bg}; color: ${fg};
|
|
1360
1391
|
padding: 10px 14px; z-index: 999998;
|
|
1361
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1392
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1362
1393
|
display: flex; align-items: center; gap: 12px; justify-content: center;
|
|
1363
1394
|
box-shadow: 0 ${position === "top" ? "2px" : "-2px"} 8px rgba(0,0,0,0.08);
|
|
1364
1395
|
`;
|
|
@@ -1446,14 +1477,14 @@ function buildProgressBar(ctx, inline) {
|
|
|
1446
1477
|
bar.style.cssText = inline ? `
|
|
1447
1478
|
background: ${bg}; color: ${fg};
|
|
1448
1479
|
padding: 10px 14px;
|
|
1449
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1480
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1450
1481
|
` : `
|
|
1451
1482
|
position: fixed; left: 12px; right: 12px; bottom: 12px;
|
|
1452
1483
|
max-width: 540px; margin: 0 auto;
|
|
1453
1484
|
background: ${bg}; color: ${fg}; border-radius: 12px;
|
|
1454
1485
|
padding: 10px 14px; z-index: 999997;
|
|
1455
1486
|
box-shadow: 0 8px 20px rgba(0,0,0,0.08);
|
|
1456
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1487
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1457
1488
|
animation: aegisSlideInFromBottom 0.3s ease-out;
|
|
1458
1489
|
`;
|
|
1459
1490
|
const label = document.createElement("div");
|
|
@@ -1722,7 +1753,7 @@ function renderCoachmarkTour(ctx) {
|
|
|
1722
1753
|
padding: 12px 14px; border-radius: 12px;
|
|
1723
1754
|
max-width: 260px;
|
|
1724
1755
|
box-shadow: 0 8px 24px rgba(0,0,0,0.25);
|
|
1725
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1756
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
1726
1757
|
animation: aegisFadeIn 0.2s ease;
|
|
1727
1758
|
`;
|
|
1728
1759
|
const titleEl = document.createElement("div");
|
|
@@ -1832,6 +1863,7 @@ function renderProductRecommendation(ctx) {
|
|
|
1832
1863
|
const layout = ic.rec_layout || "grid";
|
|
1833
1864
|
const template = resolveGlobalTemplate(ic);
|
|
1834
1865
|
addAnimationStyles();
|
|
1866
|
+
ensureInAppFont();
|
|
1835
1867
|
const bg = "#ffffff";
|
|
1836
1868
|
const fg = "#0f172a";
|
|
1837
1869
|
const accent = sanitizeColor(campaign.background_color || "#4169e1");
|
|
@@ -1850,7 +1882,7 @@ function renderProductRecommendation(ctx) {
|
|
|
1850
1882
|
max-width: 560px; width: 100%; max-height: 80vh; overflow-y: auto;
|
|
1851
1883
|
border-radius: 20px 20px 0 0;
|
|
1852
1884
|
padding: 18px 16px 22px;
|
|
1853
|
-
font-family:
|
|
1885
|
+
font-family: ${IN_APP_FONT_STACK};
|
|
1854
1886
|
animation: aegisSlideInFromBottom 0.3s ease-out;
|
|
1855
1887
|
box-shadow: 0 -12px 30px rgba(0,0,0,0.12);
|
|
1856
1888
|
`;
|
|
@@ -1926,11 +1958,12 @@ function renderProductRecommendationInline(ctx, target) {
|
|
|
1926
1958
|
const fg = "#0f172a";
|
|
1927
1959
|
const accent = sanitizeColor(campaign.background_color || "#4169e1");
|
|
1928
1960
|
addAnimationStyles();
|
|
1961
|
+
ensureInAppFont();
|
|
1929
1962
|
const section = document.createElement("section");
|
|
1930
1963
|
section.className = "aegis-in-app-product-rec-inline";
|
|
1931
1964
|
section.setAttribute("data-campaign-id", campaign.id);
|
|
1932
1965
|
section.style.cssText = `
|
|
1933
|
-
font-family:
|
|
1966
|
+
font-family: ${IN_APP_FONT_STACK};
|
|
1934
1967
|
color: ${fg};
|
|
1935
1968
|
`;
|
|
1936
1969
|
if (campaign.title) {
|
|
@@ -2084,14 +2117,14 @@ function renderLauncherBar(ctx, cfg, target) {
|
|
|
2084
2117
|
padding: 14px 18px 16px 20px; scroll-padding-left: 20px;
|
|
2085
2118
|
background: ${surfaceBg}; backdrop-filter: blur(8px);
|
|
2086
2119
|
box-shadow: 0 -4px 16px rgba(0,0,0,0.08); scrollbar-width: none;
|
|
2087
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2120
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2088
2121
|
animation: aegisSlideInFromBottom 0.3s ease-out;
|
|
2089
2122
|
` : `
|
|
2090
2123
|
display: flex; gap: 16px; align-items: flex-start; overflow-x: auto;
|
|
2091
2124
|
padding: 12px 18px 12px 18px; scroll-padding-left: 18px;
|
|
2092
2125
|
background: ${surfaceBg}; ${cfg.branded ? "border-radius: 16px;" : ""}
|
|
2093
2126
|
scrollbar-width: none;
|
|
2094
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2127
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2095
2128
|
`;
|
|
2096
2129
|
cfg.groups.forEach((g, i) => bar.appendChild(buildGroupBubble(ctx, cfg, g, i, labelColor)));
|
|
2097
2130
|
if (floating) {
|
|
@@ -2212,7 +2245,7 @@ function openViewer(ctx, cfg, startGroupIndex, startFrameIndex = 0) {
|
|
|
2212
2245
|
overlay.style.cssText = `
|
|
2213
2246
|
position: fixed; inset: 0; z-index: 100000; background: #000;
|
|
2214
2247
|
display: flex; align-items: center; justify-content: center;
|
|
2215
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2248
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
2216
2249
|
animation: aegisFadeIn 0.25s ease;
|
|
2217
2250
|
`;
|
|
2218
2251
|
const stage = document.createElement("div");
|
|
@@ -2342,7 +2375,7 @@ function openViewer(ctx, cfg, startGroupIndex, startFrameIndex = 0) {
|
|
|
2342
2375
|
if (f.title) {
|
|
2343
2376
|
const t = document.createElement("div");
|
|
2344
2377
|
t.textContent = f.title;
|
|
2345
|
-
t.style.cssText = "font-family: '
|
|
2378
|
+
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);";
|
|
2346
2379
|
copy.appendChild(t);
|
|
2347
2380
|
}
|
|
2348
2381
|
if (f.body) {
|
|
@@ -2508,7 +2541,7 @@ function openGameModal(ctx, className, maxWidth = 360) {
|
|
|
2508
2541
|
const overlay = document.createElement("div");
|
|
2509
2542
|
overlay.className = className;
|
|
2510
2543
|
overlay.setAttribute("data-campaign-id", campaign.id);
|
|
2511
|
-
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
|
|
2544
|
+
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;';
|
|
2512
2545
|
const card = document.createElement("div");
|
|
2513
2546
|
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;`;
|
|
2514
2547
|
let removed = false;
|
|
@@ -2533,7 +2566,7 @@ function openGameModal(ctx, className, maxWidth = 360) {
|
|
|
2533
2566
|
if (campaign.title) {
|
|
2534
2567
|
const t = document.createElement("div");
|
|
2535
2568
|
t.textContent = campaign.title;
|
|
2536
|
-
t.style.cssText = "font-family:'
|
|
2569
|
+
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;";
|
|
2537
2570
|
card.appendChild(t);
|
|
2538
2571
|
}
|
|
2539
2572
|
if (campaign.body) {
|
|
@@ -3272,7 +3305,7 @@ function caption(ctx, accent, onCard) {
|
|
|
3272
3305
|
if (campaign.title) {
|
|
3273
3306
|
const t = document.createElement("div");
|
|
3274
3307
|
t.textContent = campaign.title;
|
|
3275
|
-
t.style.cssText = `font-family:'
|
|
3308
|
+
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);" : ""}`;
|
|
3276
3309
|
box.appendChild(t);
|
|
3277
3310
|
}
|
|
3278
3311
|
if (campaign.body) {
|
|
@@ -3318,7 +3351,7 @@ function renderVideo(ctx) {
|
|
|
3318
3351
|
const overlay = document.createElement("div");
|
|
3319
3352
|
overlay.className = "aegis-in-app-video-overlay";
|
|
3320
3353
|
overlay.setAttribute("data-campaign-id", campaign.id);
|
|
3321
|
-
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
|
|
3354
|
+
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;';
|
|
3322
3355
|
const card = document.createElement("div");
|
|
3323
3356
|
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;`;
|
|
3324
3357
|
const media = buildVideo(ctx, o.aspect, o.autoplay, o.loop);
|
|
@@ -3363,7 +3396,7 @@ function renderVideoInline(ctx, target) {
|
|
|
3363
3396
|
const banner = document.createElement("div");
|
|
3364
3397
|
banner.className = "aegis-in-app-video-banner";
|
|
3365
3398
|
banner.setAttribute("data-campaign-id", ctx.campaign.id);
|
|
3366
|
-
banner.style.cssText = 'width:100%;font-family
|
|
3399
|
+
banner.style.cssText = 'width:100%;font-family:"Urbanist",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;';
|
|
3367
3400
|
const media = buildVideo(ctx, o.aspect, o.autoplay, o.loop);
|
|
3368
3401
|
if (o.overlayCaption) {
|
|
3369
3402
|
const c = caption(ctx, o.accent, true);
|
|
@@ -5014,6 +5047,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
5014
5047
|
if (typeof localStorage !== "undefined") {
|
|
5015
5048
|
localStorage.setItem("aegis_returning_user", "1");
|
|
5016
5049
|
}
|
|
5050
|
+
ensureInAppFont();
|
|
5017
5051
|
await this.refreshCampaigns();
|
|
5018
5052
|
if (this.enableSSE && this.organizationId) {
|
|
5019
5053
|
this.connectSSE();
|
|
@@ -5560,6 +5594,11 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
5560
5594
|
host.setAttribute("data-aegis-slot-rendered", list[0].id);
|
|
5561
5595
|
slot.appendChild(host);
|
|
5562
5596
|
this.renderCampaignIntoSlot(list[0], host);
|
|
5597
|
+
if (host.childElementCount === 0) {
|
|
5598
|
+
host.remove();
|
|
5599
|
+
this.slotSignatures.delete(slot);
|
|
5600
|
+
return;
|
|
5601
|
+
}
|
|
5563
5602
|
if (flush) this._flattenSlotCard(host);
|
|
5564
5603
|
}
|
|
5565
5604
|
this.filledSlots.add(slot);
|
|
@@ -6433,7 +6472,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
6433
6472
|
body.style.cssText = `padding: ${st.padY ?? 22}px ${st.padX ?? 20}px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px;`;
|
|
6434
6473
|
if (campaign.title) {
|
|
6435
6474
|
const t = document.createElement("div");
|
|
6436
|
-
t.style.cssText = `font-size: 18px; font-weight: 800; letter-spacing: -0.01em; text-align: center; font-family: '
|
|
6475
|
+
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;`;
|
|
6437
6476
|
t.textContent = campaign.title;
|
|
6438
6477
|
body.appendChild(t);
|
|
6439
6478
|
}
|
|
@@ -6533,7 +6572,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
6533
6572
|
}
|
|
6534
6573
|
const tx = document.createElement("span");
|
|
6535
6574
|
tx.textContent = label;
|
|
6536
|
-
tx.style.cssText = `white-space: nowrap; line-height: 1.05; font-size: ${fontPx}px; font-weight: 900; font-family: '
|
|
6575
|
+
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;`;
|
|
6537
6576
|
lab.appendChild(tx);
|
|
6538
6577
|
wheel.appendChild(lab);
|
|
6539
6578
|
});
|
|
@@ -6586,7 +6625,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
6586
6625
|
}
|
|
6587
6626
|
const btn = document.createElement("button");
|
|
6588
6627
|
btn.textContent = campaign.button_text || "Spin the wheel";
|
|
6589
|
-
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: '
|
|
6628
|
+
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;`;
|
|
6590
6629
|
btn.addEventListener("mouseenter", () => {
|
|
6591
6630
|
if (btn.disabled) return;
|
|
6592
6631
|
btn.style.transform = "translateY(-1px)";
|
|
@@ -6683,7 +6722,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
6683
6722
|
eyebrow.style.cssText = "font-size: 13px; font-weight: 700; letter-spacing: 0.3px; opacity: 0.8;";
|
|
6684
6723
|
const big = document.createElement("div");
|
|
6685
6724
|
big.textContent = r.label;
|
|
6686
|
-
big.style.cssText = `font-size: 24px; font-weight: 900; letter-spacing: -0.02em; font-family: '
|
|
6725
|
+
big.style.cssText = `font-size: 24px; font-weight: 900; letter-spacing: -0.02em; font-family: 'Urbanist', system-ui, -apple-system, sans-serif;`;
|
|
6687
6726
|
ov.appendChild(eyebrow);
|
|
6688
6727
|
ov.appendChild(big);
|
|
6689
6728
|
if (r.code) {
|
|
@@ -7347,7 +7386,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
7347
7386
|
eb.style.cssText = "font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; opacity: 0.7;";
|
|
7348
7387
|
const big = document.createElement("div");
|
|
7349
7388
|
big.textContent = label;
|
|
7350
|
-
big.style.cssText = `font-size: 22px; font-weight: 900; letter-spacing: -0.02em; font-family: '
|
|
7389
|
+
big.style.cssText = `font-size: 22px; font-weight: 900; letter-spacing: -0.02em; font-family: 'Urbanist', system-ui, sans-serif;`;
|
|
7351
7390
|
ov.appendChild(eb);
|
|
7352
7391
|
ov.appendChild(big);
|
|
7353
7392
|
if (code) {
|
|
@@ -8275,7 +8314,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
8275
8314
|
};
|
|
8276
8315
|
const heading = (txt, big = false) => {
|
|
8277
8316
|
const t = document.createElement("div");
|
|
8278
|
-
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: '
|
|
8317
|
+
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;`;
|
|
8279
8318
|
t.textContent = txt;
|
|
8280
8319
|
return t;
|
|
8281
8320
|
};
|
|
@@ -8668,7 +8707,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
8668
8707
|
display: flex;
|
|
8669
8708
|
align-items: center;
|
|
8670
8709
|
justify-content: space-between;
|
|
8671
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8710
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8672
8711
|
animation: ${atBottom ? "aegisSlideInFromBottom" : "aegisSlideDown"} 0.3s ease-out;
|
|
8673
8712
|
`;
|
|
8674
8713
|
banner.setAttribute("data-banner-position", atBottom ? "bottom" : "top");
|
|
@@ -8788,7 +8827,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
8788
8827
|
overflow: auto;
|
|
8789
8828
|
box-shadow: 0 16px 48px rgba(0,0,0,0.22);
|
|
8790
8829
|
animation: aegisScaleIn 0.3s ease-out;
|
|
8791
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8830
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8792
8831
|
`;
|
|
8793
8832
|
if (videoUrl) {
|
|
8794
8833
|
const mediaWrap = document.createElement("div");
|
|
@@ -8962,7 +9001,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
8962
9001
|
z-index: 1000001; display: flex; flex-direction: column; align-items: center;
|
|
8963
9002
|
justify-content: ${isBg ? "flex-end" : "center"}; padding: ${isBg ? "0" : "40px 20px"};
|
|
8964
9003
|
animation: aegisFadeIn 0.3s ease-out; overflow: hidden;
|
|
8965
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9004
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
8966
9005
|
`;
|
|
8967
9006
|
if (isBg) {
|
|
8968
9007
|
const media = document.createElement("div");
|
|
@@ -9100,7 +9139,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9100
9139
|
overflow: auto;
|
|
9101
9140
|
box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
|
|
9102
9141
|
animation: aegisSlideUp 0.3s ease-out;
|
|
9103
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9142
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9104
9143
|
`;
|
|
9105
9144
|
const grabber = document.createElement("div");
|
|
9106
9145
|
grabber.style.cssText = `width: 40px; height: 4px; border-radius: 2px; background: ${st.text}33; margin: 10px auto 0;`;
|
|
@@ -9245,7 +9284,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9245
9284
|
width: 85%;
|
|
9246
9285
|
box-shadow: 0 16px 48px rgba(0,0,0,0.22);
|
|
9247
9286
|
animation: aegisScaleIn 0.2s ease-out;
|
|
9248
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9287
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9249
9288
|
overflow: hidden;
|
|
9250
9289
|
`;
|
|
9251
9290
|
const content = document.createElement("div");
|
|
@@ -9363,7 +9402,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9363
9402
|
background: #000; border-radius: 14px; overflow: hidden;
|
|
9364
9403
|
box-shadow: 0 10px 30px rgba(0,0,0,0.38); z-index: 999999;
|
|
9365
9404
|
animation: ${slideAnim} 0.3s ease-out; transition: width 0.25s ease, border-radius 0.25s ease;
|
|
9366
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9405
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9367
9406
|
`;
|
|
9368
9407
|
const mediaWrap = document.createElement("div");
|
|
9369
9408
|
mediaWrap.style.cssText = "position: relative; width: 100%; background: #000; line-height: 0; aspect-ratio: 16 / 9;";
|
|
@@ -9514,7 +9553,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9514
9553
|
position: fixed; ${cornerCss} width: ${cornerW}px; max-width: calc(100vw - ${gap * 2}px);
|
|
9515
9554
|
background: #000; border-radius: 14px; overflow: hidden;
|
|
9516
9555
|
box-shadow: 0 10px 30px rgba(0,0,0,0.38); z-index: 999999; transition: none;
|
|
9517
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9556
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9518
9557
|
`;
|
|
9519
9558
|
if (expandBtn) {
|
|
9520
9559
|
expandBtn.textContent = "⤢";
|
|
@@ -9534,7 +9573,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9534
9573
|
width: ${theaterW}px; max-width: calc(100vw - ${gap * 2}px);
|
|
9535
9574
|
background: #000; border-radius: 16px; overflow: hidden;
|
|
9536
9575
|
box-shadow: 0 24px 60px rgba(0,0,0,0.55); z-index: 999999; transition: none;
|
|
9537
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9576
|
+
font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9538
9577
|
`;
|
|
9539
9578
|
if (expandBtn) {
|
|
9540
9579
|
expandBtn.innerHTML = lucideSvg("x", { size: 16 });
|
|
@@ -9664,7 +9703,7 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9664
9703
|
tooltip.style.cssText = `
|
|
9665
9704
|
position: absolute; z-index: 1000001; max-width: 280px; width: max-content;
|
|
9666
9705
|
background: ${bg}; color: ${textColor}; border-radius: 10px; padding: 14px 16px;
|
|
9667
|
-
box-shadow: 0 8px 24px rgba(0,0,0,0.18); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9706
|
+
box-shadow: 0 8px 24px rgba(0,0,0,0.18); font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
9668
9707
|
animation: aegisScaleIn 0.2s ease-out; pointer-events: auto;
|
|
9669
9708
|
`;
|
|
9670
9709
|
const arrow = document.createElement("div");
|
|
@@ -9940,10 +9979,21 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9940
9979
|
};
|
|
9941
9980
|
const spec = SPEC[intent];
|
|
9942
9981
|
const festive = spec.festive;
|
|
9982
|
+
let px = festive ? 150 : intent === "acknowledge" ? 92 : 124;
|
|
9983
|
+
let ringPx = 60;
|
|
9984
|
+
if (!viewport && host) {
|
|
9985
|
+
const rect = host.getBoundingClientRect();
|
|
9986
|
+
const fit = Math.min(rect.width, rect.height);
|
|
9987
|
+
if (fit > 0 && fit < px) {
|
|
9988
|
+
const scaled = Math.max(44, Math.round(fit * 0.82));
|
|
9989
|
+
ringPx = Math.max(24, Math.round(ringPx * (scaled / px)));
|
|
9990
|
+
px = scaled;
|
|
9991
|
+
}
|
|
9992
|
+
}
|
|
9943
9993
|
if (festive && !reduce) {
|
|
9944
9994
|
for (let i = 0; i < 3; i++) {
|
|
9945
9995
|
const ring = document.createElement("div");
|
|
9946
|
-
ring.style.cssText = `position: absolute; left: 50%; top: 50%; width:
|
|
9996
|
+
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;`;
|
|
9947
9997
|
layer.appendChild(ring);
|
|
9948
9998
|
}
|
|
9949
9999
|
}
|
|
@@ -9951,7 +10001,6 @@ const _AegisInAppManager = class _AegisInAppManager {
|
|
|
9951
10001
|
const reactionIcon = svgNode(this._reactionSvg(spec.svg));
|
|
9952
10002
|
if (reactionIcon) g.appendChild(reactionIcon);
|
|
9953
10003
|
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;";
|
|
9954
|
-
const px = festive ? 150 : intent === "acknowledge" ? 92 : 124;
|
|
9955
10004
|
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}`;
|
|
9956
10005
|
layer.appendChild(g);
|
|
9957
10006
|
anchor.appendChild(layer);
|