@fasttrack-solutions/rewards 1.47.0-beta.0 → 1.47.2-beta.0
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as e, t } from "./sdkCallback-
|
|
1
|
+
import { Ar as e, t } from "./sdkCallback-DYcTjVHa.js";
|
|
2
2
|
//#region node_modules/.pnpm/gsap@3.15.0/node_modules/gsap/gsap-core.js
|
|
3
3
|
function n(e) {
|
|
4
4
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -3336,7 +3336,7 @@ function fs() {
|
|
|
3336
3336
|
}
|
|
3337
3337
|
//#endregion
|
|
3338
3338
|
//#region src/version.ts
|
|
3339
|
-
var ps = "1.47.
|
|
3339
|
+
var ps = "1.47.2-beta.0", ms = "graphql-caller", hs = "/rewards-graphql-api/query", gs = !1;
|
|
3340
3340
|
function _s(e) {
|
|
3341
3341
|
gs = e;
|
|
3342
3342
|
}
|
package/dist/rewards.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $n as t, $t as n, A as r, An as i, At as a, B as o, Bn as s, Bt as c, C as l, Cn as u, Cr as d, Ct as f, D as p, Dn as m, Dr as h, Dt as g, E as _, En as v, Er as y, Et as b, F as x, Fn as S, Ft as C, G as ee, Gn as w, Gt as T, H as E, Hn as D, Ht as O, I as k, In as A, It as te, J as j, Jn as M, Jt as ne, K as N, Kn as P, Kt as re, L as ie, Ln as F, Lt as ae, M as oe, Mn as se, Mt as ce, N as le, Nn as ue, Nt as de, O as fe, On as pe, Or as me, Ot as he, P as I, Pn as ge, Pt as _e, Q as ve, Qn as L, Qt as R, R as ye, Rn as be, Rt as xe, S as Se, Sn as z, Sr as Ce, St as we, T as Te, Tn as Ee, Tr as B, Tt as De, U as Oe, Un as ke, Ut as Ae, V as je, Vn as Me, Vt as Ne, W as Pe, Wn as Fe, Wt as Ie, X as Le, Xn as Re, Xt as ze, Y as Be, Yn as Ve, Yt as He, Z as Ue, Zn as We, Zt as Ge, _ as Ke, _n as V, _r as qe, _t as Je, a as Ye, an as Xe, ar as Ze, at as Qe, b as $e, bn as H, br as et, c as tt, cn as U, cr as nt, ct as rt, d as it, dn as W, dr as at, dt as ot, en as st, er as ct, et as lt, f as ut, fn as dt, fr as ft, ft as pt, g as mt, gn as G, gr as ht, gt, h as _t, hn as vt, hr as yt, ht as bt, i as xt, in as St, ir as Ct, it as wt, j as Tt, jn as Et, jr as Dt, jt as Ot, k as kt, kn as At, kr as jt, kt as Mt, l as Nt, ln as Pt, lr as Ft, lt as It, m as Lt, mn as K, mr as Rt, mt as zt, n as Bt, nn as Vt, nr as Ht, nt as Ut, o as Wt, on as Gt, or as Kt, ot as qt, p as Jt, pn as q, pr as Yt, pt as Xt, q as Zt, qn as Qt, qt as $t, r as en, rn as tn, rr as J, rt as nn, s as rn, sn as an, sr as on, st as sn, t as Y, tn as cn, tr as ln, tt as un, u as dn, un as fn, ur as pn, ut as mn, v as hn, vn as gn, vr as _n, vt as vn, w as yn, wn as bn, wr as X, wt as xn, x as Sn, xn as Cn, xr as wn, xt as Tn, y as Z, yn as En, yr as Dn, yt as On, z as kn, zn as An, zt as jn } from "./chunks/sdkCallback-
|
|
1
|
+
import { $ as e, $n as t, $t as n, A as r, An as i, At as a, B as o, Bn as s, Bt as c, C as l, Cn as u, Cr as d, Ct as f, D as p, Dn as m, Dr as h, Dt as g, E as _, En as v, Er as y, Et as b, F as x, Fn as S, Ft as C, G as ee, Gn as w, Gt as T, H as E, Hn as D, Ht as O, I as k, In as A, It as te, J as j, Jn as M, Jt as ne, K as N, Kn as P, Kt as re, L as ie, Ln as F, Lt as ae, M as oe, Mn as se, Mt as ce, N as le, Nn as ue, Nt as de, O as fe, On as pe, Or as me, Ot as he, P as I, Pn as ge, Pt as _e, Q as ve, Qn as L, Qt as R, R as ye, Rn as be, Rt as xe, S as Se, Sn as z, Sr as Ce, St as we, T as Te, Tn as Ee, Tr as B, Tt as De, U as Oe, Un as ke, Ut as Ae, V as je, Vn as Me, Vt as Ne, W as Pe, Wn as Fe, Wt as Ie, X as Le, Xn as Re, Xt as ze, Y as Be, Yn as Ve, Yt as He, Z as Ue, Zn as We, Zt as Ge, _ as Ke, _n as V, _r as qe, _t as Je, a as Ye, an as Xe, ar as Ze, at as Qe, b as $e, bn as H, br as et, c as tt, cn as U, cr as nt, ct as rt, d as it, dn as W, dr as at, dt as ot, en as st, er as ct, et as lt, f as ut, fn as dt, fr as ft, ft as pt, g as mt, gn as G, gr as ht, gt, h as _t, hn as vt, hr as yt, ht as bt, i as xt, in as St, ir as Ct, it as wt, j as Tt, jn as Et, jr as Dt, jt as Ot, k as kt, kn as At, kr as jt, kt as Mt, l as Nt, ln as Pt, lr as Ft, lt as It, m as Lt, mn as K, mr as Rt, mt as zt, n as Bt, nn as Vt, nr as Ht, nt as Ut, o as Wt, on as Gt, or as Kt, ot as qt, p as Jt, pn as q, pr as Yt, pt as Xt, q as Zt, qn as Qt, qt as $t, r as en, rn as tn, rr as J, rt as nn, s as rn, sn as an, sr as on, st as sn, t as Y, tn as cn, tr as ln, tt as un, u as dn, un as fn, ur as pn, ut as mn, v as hn, vn as gn, vr as _n, vt as vn, w as yn, wn as bn, wr as X, wt as xn, x as Sn, xn as Cn, xr as wn, xt as Tn, y as Z, yn as En, yr as Dn, yt as On, z as kn, zn as An, zt as jn } from "./chunks/sdkCallback-DYcTjVHa.js";
|
|
2
2
|
//#region node_modules/.pnpm/@vue+runtime-dom@3.5.44/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
|
|
3
3
|
var Mn = void 0, Nn = typeof window < "u" && window.trustedTypes;
|
|
4
4
|
if (Nn) try {
|
|
@@ -3726,7 +3726,7 @@ var td = Object.fromEntries(ed.map((e) => [e.tag, e.component])), { getJwtToken:
|
|
|
3726
3726
|
//#endregion
|
|
3727
3727
|
//#region src/core/runtime/miniGameEngineSource.npm.ts
|
|
3728
3728
|
function ad() {
|
|
3729
|
-
return import("./chunks/mini-game-engine-
|
|
3729
|
+
return import("./chunks/mini-game-engine-MVpQuZlt.js");
|
|
3730
3730
|
}
|
|
3731
3731
|
//#endregion
|
|
3732
3732
|
//#region src/core/runtime/miniGameEngine.ts
|
|
@@ -7584,7 +7584,7 @@ var $_ = /* @__PURE__ */ z({
|
|
|
7584
7584
|
style: B({ width: `${s(e.fill)}%` })
|
|
7585
7585
|
}, null, 4)], 4))), 128))], 8, dv)]), K("div", fv, [K("span", pv, y(u.value), 1), e.withLabel ? (S(), V("span", mv, y(d.value), 1)) : G("", !0)])], 2));
|
|
7586
7586
|
}
|
|
7587
|
-
}), [["styles", [".ms[data-v-
|
|
7587
|
+
}), [["styles", [".ms[data-v-d4610d85]{--ms-accent:var(--ft-progressbar-progress,var(--ft-my-rewards-accent-color,#e96092));--ms-track:var(--ft-progressbar-background,var(--ft-my-rewards-primary-color,#fafafa));--ms-dot-size:14px;--ms-stem:4px;--ms-bar-height:var(--ft-milestone-bar-height,6px);contain:inline-size;flex-direction:column;gap:4px;width:100%;min-width:0;display:flex}.ms--popup[data-v-d4610d85]{--ms-dot-size:20px;--ms-stem:6px;--ms-bar-height:var(--ft-milestone-bar-height,10px);gap:8px}.ms__track[data-v-d4610d85]{flex-direction:column;display:flex}.ms__markers[data-v-d4610d85]{height:calc(var(--ms-dot-size) + var(--ms-stem));position:relative}.ms__marker[data-v-d4610d85]{top:0;left:clamp(calc(var(--ms-dot-size) / 2), var(--ms-pos), calc(100% - var(--ms-dot-size) / 2));color:inherit;font:inherit;background:0 0;border:0;flex-direction:column;align-items:center;margin:0;padding:0;display:flex;position:absolute;transform:translate(-50%)}.ms__marker[data-v-d4610d85]:after{content:\"\";width:1px;height:var(--ms-stem);background:var(--ms-accent);opacity:.6;display:block}.ms--interactive .ms__track[data-v-d4610d85],.ms--interactive .ms__marker[data-v-d4610d85]{cursor:pointer}.ms--interactive .ms__marker:focus-visible .ms__dot[data-v-d4610d85]{outline:2px solid var(--ms-accent);outline-offset:2px}.ms__dot[data-v-d4610d85]{box-sizing:border-box;width:var(--ms-dot-size);height:var(--ms-dot-size);border:1.5px solid var(--ms-accent);background:var(--ft-milestone-marker-background,transparent);color:var(--ms-accent);font-size:calc(var(--ms-dot-size) * .6);border-radius:50%;justify-content:center;align-items:center;font-weight:700;line-height:1;display:flex}.ms__marker--reached .ms__dot[data-v-d4610d85]{background:var(--ms-accent);color:var(--ft-milestone-marker-reached-text-color,#111)}.ms__marker--reached[data-v-d4610d85]:after{opacity:1}.ms__marker--passed .ms__dot[data-v-d4610d85]{opacity:.7;border-style:dashed}.ms__dot--icon[data-v-d4610d85] .ms__face{opacity:.5}.ms__dot--icon[data-v-d4610d85] .ms__face--image{object-fit:cover;border-radius:50%;width:100%;height:100%;display:block}.ms__dot--icon[data-v-d4610d85] .ms__face--image.ms__face--pending{display:none}.ms__marker--reached .ms__dot--icon[data-v-d4610d85]{background:var(--ft-milestone-marker-background,transparent);color:var(--ms-accent);border-width:2px}.ms__marker--reached .ms__dot--icon[data-v-d4610d85] .ms__face{opacity:1}.ms__dot--icon[data-v-d4610d85] .ms__check{top:calc(var(--ms-dot-size) * .5);left:calc(50% + var(--ms-dot-size) * .15);box-sizing:border-box;width:calc(var(--ms-dot-size) * .6);height:calc(var(--ms-dot-size) * .6);background:var(--ms-accent);color:var(--ft-milestone-marker-reached-text-color,#111);border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute}.ms__dot--icon[data-v-d4610d85] .ms__check-icon{width:80%;height:80%}.ms__bar[data-v-d4610d85]{height:var(--ms-bar-height);position:relative}.ms__bar[data-v-d4610d85]:focus-visible{outline:2px solid var(--ms-accent);outline-offset:2px}.ms__segment[data-v-d4610d85]{border-radius:var(--ft-progressbar-border-radius,51px);background:var(--ms-track);position:absolute;top:0;bottom:0;overflow:hidden}.ms__fill[data-v-d4610d85]{background:var(--ms-accent);border-radius:var(--ft-progressbar-border-radius,51px);height:100%;transition:width .6s ease-out}.ms__info[data-v-d4610d85]{justify-content:space-between;align-items:baseline;gap:8px;min-width:0;font-size:10px;line-height:1.2;display:flex}.ms--popup .ms__info[data-v-d4610d85]{color:var(--ft-dialog-description-color,inherit);font-size:12px}.ms__next[data-v-d4610d85]{text-overflow:ellipsis;white-space:nowrap;opacity:.8;min-width:0;overflow:hidden}.ms__progress[data-v-d4610d85]{white-space:nowrap;flex-shrink:0;font-weight:700}.ms__tooltip[data-v-d4610d85]{z-index:2;box-sizing:border-box;background:var(--ft-milestone-tooltip-background,#fff);width:max-content;max-width:min(240px,80vw);color:var(--ft-milestone-tooltip-text-color,#111);text-align:left;pointer-events:none;border-radius:8px;padding:8px 12px;font-size:12px;line-height:1.3;position:absolute;bottom:calc(100% + 6px);box-shadow:0 4px 12px #00000040}.ms__tooltip--center[data-v-d4610d85]{transform:translate(-50%)}.ms__tooltip--start[data-v-d4610d85]{transform:translate(-16px)}.ms__tooltip--end[data-v-d4610d85]{transform:translate(calc(16px - 100%))}.ms__tooltip-title[data-v-d4610d85]{letter-spacing:.04em;text-transform:uppercase;opacity:.7;font-size:10px;font-weight:600}.ms__tooltip-reward[data-v-d4610d85]{overflow-wrap:anywhere;margin-top:2px;font-size:14px;font-weight:700}.ms__tooltip-status[data-v-d4610d85]{opacity:.8;margin-top:2px}.ms__tooltip-status--reached[data-v-d4610d85]{opacity:1;font-weight:700}"]], ["__scopeId", "data-v-d4610d85"]]);
|
|
7588
7588
|
//#endregion
|
|
7589
7589
|
//#region src/core/utils/terms-gate.ts
|
|
7590
7590
|
function _v(e) {
|
|
@@ -8751,9 +8751,9 @@ var yv = ["aria-expanded", "aria-controls"], bv = { class: "msl__toggle-label" }
|
|
|
8751
8751
|
Je.value = !0;
|
|
8752
8752
|
}, Ze = (e, t, n) => O.value ? v(`quest.opt-out.${e}`, {
|
|
8753
8753
|
link: "Leave this quest",
|
|
8754
|
-
toast: "You left the quest. Rewards you already received are yours to keep
|
|
8755
|
-
unavailable: "This quest is no longer available
|
|
8756
|
-
error: "
|
|
8754
|
+
toast: "You left the quest. Rewards you already received are yours to keep",
|
|
8755
|
+
unavailable: "This quest is no longer available",
|
|
8756
|
+
error: "Couldn't leave the quest. Try again"
|
|
8757
8757
|
}[e]) : v(t, n), Qe = async () => {
|
|
8758
8758
|
if (!(x.historyStatus || !x.challenge || Ye.value)) {
|
|
8759
8759
|
Ye.value = !0;
|
|
@@ -9199,7 +9199,7 @@ var yv = ["aria-expanded", "aria-controls"], bv = { class: "msl__toggle-label" }
|
|
|
9199
9199
|
], 2)) : G("", !0);
|
|
9200
9200
|
};
|
|
9201
9201
|
}
|
|
9202
|
-
}), [["styles", [".reward-card__history-status[data-v-2b99e65d]{z-index:1;position:absolute;bottom:6px;left:6px}.completed[data-v-2b99e65d]{justify-content:flex-start;align-items:center;font-weight:700;display:flex}.check-mark[data-v-2b99e65d]{color:var(--ft-reward-complete-color,#e96092);margin-right:8px}.check-mark svg[data-v-2b99e65d]{display:block}.reward-card[data-v-2b99e65d]{box-sizing:border-box;align-items:center;gap:16px;display:flex;overflow:hidden}.reward-card--no-padding[data-v-2b99e65d]{gap:0}.reward-card--big[data-v-2b99e65d]{padding:0;display:block}.image-placeholder[data-v-2b99e65d]{width:1px;height:90px}.reward-card__image[data-v-2b99e65d]{border-radius:4px;width:96px;height:96px;display:block}.reward-card--big .reward-card__image[data-v-2b99e65d]{width:100%;height:auto}.reward-card--big .reward-card__body[data-v-2b99e65d]{padding:16px}.reward-card__header[data-v-2b99e65d]{position:relative}.reward-card__body[data-v-2b99e65d]{flex-direction:column;flex:1;gap:12px;display:flex}.reward-card__title[data-v-2b99e65d]{font-family:var(--ft-my-rewards-small-title-font-family,inherit);font-size:var(--ft-my-rewards-small-title-font-size,16px);font-style:normal;font-weight:var(--ft-my-rewards-small-title-font-weight,700);line-height:var(--ft-my-rewards-small-title-line-height,18px);letter-spacing:-.2px;text-wrap:balance;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.reward-card--big .reward-card__title[data-v-2b99e65d]{letter-spacing:-.5px;font-size:24px;line-height:26.8px}.reward-card__description[data-v-2b99e65d]{font-size:var(--ft-my-rewards-font-size,14px);letter-spacing:-.2px;font-style:normal;font-weight:400;line-height:18.5px}.reward-card__extra[data-v-2b99e65d]{width:85%;height:32px;font-size:14px;font-style:normal;font-weight:700;line-height:15.9px}.reward-card--full-extras .reward-card__extra[data-v-2b99e65d]{width:100%}.reward-card__quest[data-v-2b99e65d]{flex-direction:column;gap:8px;min-width:0;display:flex}.reward-card--quest .reward-card__body[data-v-2b99e65d]{min-width:0}.reward-card__title--quest[data-v-2b99e65d]{white-space:nowrap;text-overflow:ellipsis;-webkit-line-clamp:unset;line-clamp:unset;display:block}.reward-card__quest-line[data-v-2b99e65d]{opacity:.85;white-space:nowrap;text-overflow:ellipsis;font-size:13px;line-height:1.3;overflow:hidden}.reward-card__quest-next[data-v-2b99e65d]{opacity:.85;white-space:nowrap;text-overflow:ellipsis;margin-top:6px;font-size:12px;font-weight:400;line-height:1.2;overflow:hidden}.reward-card__extra--milestones[data-v-2b99e65d]{height:auto;font-weight:400}.reward-card--big .reward-card__extra[data-v-2b99e65d]{font-size:var(--ft-my-rewards-font-size,14px);letter-spacing:-.2px;line-height:18.5px}.reward-card__terms[data-v-2b99e65d]{font-size:10px;font-style:normal;font-weight:400;line-height:11.8px}.reward-card__footer--progress-indicator[data-v-2b99e65d]{transform-origin:100% 100%;justify-content:center;align-items:center;transition:all .2s;display:flex;position:absolute;bottom:0;right:0}.reward-card__footer--progress-indicator[data-v-2b99e65d]:hover{scale:1.1}.reward-card__footer--progress-indicator__text[data-v-2b99e65d]{color:var(--ft-my-rewards-tab-text-color,var(--ft-my-rewards-text-color,#fff));text-align:center;font-family:var(--ft-my-rewards-tab-font-family,var(--ft-my-rewards-caption-font-family,inherit));font-size:var(--ft-my-rewards-tab-font-size,var(--ft-my-rewards-caption-font-size,12px));font-style:normal;font-weight:var(--ft-my-rewards-tab-font-weight,var(--ft-my-rewards-caption-font-weight,400));text-transform:uppercase;line-height:normal;position:absolute;top:16%;left:10%;transform:rotate(-45deg)}.reward-card__footer--progress-indicator--background[data-v-2b99e65d]{border-top-left-radius:12px;border-bottom-right-radius:var(--ft-card-border-radius,8px);background:var(--ft-my-rewards-background-color,var(--ft-my-rewards-secondary-color,#fff));overflow:hidden}.reward-preview[data-v-2b99e65d]{flex-direction:column;align-items:center;gap:16px;padding:5px;display:flex}.reward-preview__image[data-v-2b99e65d]{text-align:center}.reward-preview__image img[data-v-2b99e65d]{width:var(--ft-bonus-preview-image-width,320px);height:var(--ft-bonus-preview-image-height,320px);border-radius:var(--ft-bonus-preview-image-border-radius,24px)}.reward-preview__title[data-v-2b99e65d]{font-family:var(--ft-dialog-title-font-family,var(--ft-my-rewards-title-font-family,inherit));font-size:var(--ft-dialog-title-font-size,var(---ft-my-rewards-title-font-size,30px));line-height:var(--ft-dialog-title-line-height,var(--ft-my-rewards-title-line-height,32px));font-weight:var(--ft-dialog-title-font-weight,var(--ft-my-rewards-title-font-weight,700));text-align:center;cursor:default;color:var(--ft-dialog-title-text-color,var(--ft-my-rewards-text-color,#333));text-wrap:balance}.reward-preview__sub-title[data-v-2b99e65d]{text-align:center;cursor:default;margin:16px 0;font-size:20px;font-weight:700;line-height:1}.reward-preview__description[data-v-2b99e65d]{font-family:var(--ft-dialog-description-font-family,var(--ft-my-rewards-description-font-family,inherit));color:var(--ft-dialog-description-color,var(--ft-dialog-text-color,var(--ft-my-rewards-text-color,#333)));font-size:var(--ft-dialog-description-font-size,var(--ft-dialog-font-size,var(--ft-my-rewards-font-size,14px)));line-height:var(--ft-dialog-description-line-height,var(--ft-my-rewards-text-line-height,16px));font-weight:var(--ft-dialog-description-font-weight,var(--ft-dialog-font-weight,400));text-align:center}.reward-preview__terms[data-v-2b99e65d]{font-family:var(--ft-dialog-terms-font-family,inherit);color:var(--ft-dialog-terms-color,#333);font-size:var(--ft-dialog-terms-font-size,10px);line-height:var(--ft-dialog-terms-line-height,12px);font-weight:var(--ft-dialog-terms-font-weight,400);text-align:center}.reward-preview__progress[data-v-2b99e65d]{justify-content:center;width:100%;display:flex}.reward-preview__progress--milestones[data-v-2b99e65d]{flex-direction:column;gap:16px}.reward-preview__progress.indicator[data-v-2b99e65d]{justify-content:center;display:flex}.reward-preview__opt-out[data-v-2b99e65d],.rc-popup__opt-out[data-v-2b99e65d]{cursor:pointer;font-family:inherit;font-size:var(--ft-dialog-font-size,var(--ft-my-rewards-font-size,14px));color:var(--ft-dialog-text-color,var(--ft-my-rewards-text-color,#333));background:0 0;border:none;align-self:center;padding:0;text-decoration:underline}.tasks[data-v-2b99e65d]{flex-direction:column;gap:16px;display:flex}.task[data-v-2b99e65d]{text-align:left;flex-direction:column;gap:8px;display:flex}.task__title[data-v-2b99e65d]{font-family:var(--ft-dialog-description-font-family,var(--ft-my-rewards-description-font-family,inherit));color:var(--ft-dialog-description-color,var(--ft-dialog-text-color,var(--ft-my-rewards-text-color,#333)));font-size:var(--ft-dialog-description-font-size,var(--ft-dialog-font-size,var(--ft-my-rewards-font-size,14px)));line-height:var(--ft-dialog-description-line-height,var(--ft-my-rewards-text-line-height,16px));font-weight:var(--ft-dialog-description-font-weight,var(--ft-dialog-font-weight,400))}.task__milestones[data-v-2b99e65d]{flex-direction:column;gap:16px;display:flex}.task--completed[data-v-2b99e65d]{opacity:.5}.check-icon[data-v-2b99e65d]{width:auto;height:20px}.check-icon svg[data-v-2b99e65d]{width:auto;height:20px;display:block}.tab-path[data-v-2b99e65d]{fill:var(--ft-my-rewards-tab-background-color,var(--ft-my-rewards-accent-color,#fc2d72))}.reward-card__clip-path-footer[data-v-2b99e65d]{clip-path:polygon(0 0,100% 0,100% calc(100% - 48px),calc(100% - 48px) 100%,0 100%)}.reward-card__clip-path-footer.hovered[data-v-2b99e65d]{clip-path:polygon(0 0,100% 0,100% calc(100% - 53px),calc(100% - 48px) 100%,0 100%)}.rc-dyn[data-v-2b99e65d]{box-sizing:border-box;cursor:pointer;height:80px;font-size:var(--ft-rewards-card-font-size,12px);flex-direction:column;justify-content:center;gap:6px;display:flex;position:relative;overflow:hidden}.rc-dyn__row[data-v-2b99e65d]{align-items:center;gap:8px;min-width:0;display:flex}.rc-dyn__img[data-v-2b99e65d]{object-fit:cover;border-radius:4px;flex-shrink:0;align-self:center;width:48px;height:48px;display:block}.rc-dyn__content[data-v-2b99e65d]{flex-direction:column;flex:1;justify-content:center;gap:4px;min-width:0;display:flex;overflow:hidden}.rc-dyn__description[data-v-2b99e65d]{font-size:var(--ft-rewards-card-description-font-size,11px);letter-spacing:-.2px;opacity:.85;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;max-width:100%;font-weight:400;line-height:1.3;display:-webkit-box;overflow:hidden}.rc-dyn__title[data-v-2b99e65d]{font-family:var(--ft-my-rewards-small-title-font-family,inherit);font-size:var(--ft-rewards-card-title-font-size,12px);font-weight:var(--ft-my-rewards-small-title-font-weight,700);letter-spacing:-.2px;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;display:-webkit-box;overflow:hidden}.rc-dyn--timed .rc-dyn__title[data-v-2b99e65d]{padding-right:90px}.rc-dyn__chips[data-v-2b99e65d]{min-width:0;display:block}.rc-dyn__countdown[data-v-2b99e65d]{z-index:1;white-space:nowrap;color:var(--ft-card-expiry-pill-secondary,var(--ft-my-rewards-accent-color,currentColor));align-items:center;gap:4px;font-size:10px;font-weight:600;display:inline-flex;position:absolute;top:0;right:2px}.rc-dyn__clock[data-v-2b99e65d]{flex-shrink:0;width:10px;height:10px;display:block}.rc-dyn__bar[data-v-2b99e65d]{--ft-progressbar-height:8px;--ft-progressbar-border-width:0;flex-direction:column;gap:4px;width:100%;display:flex}.rc-dyn__title--quest[data-v-2b99e65d]{-webkit-line-clamp:1;line-clamp:1}.rc-dyn__quest[data-v-2b99e65d]{align-items:center;gap:8px;min-width:0;display:flex}.rc-dyn__quest-line[data-v-2b99e65d]{opacity:.85;white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;font-size:11px;line-height:1.2;overflow:hidden}.rc-dyn__track[data-v-2b99e65d]{flex:0 0 66px}.rc-dyn__questinfo[data-v-2b99e65d]{justify-content:space-between;gap:8px;min-width:0;display:flex}.rc-dyn__questnext[data-v-2b99e65d]{white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:10px;line-height:1;overflow:hidden}.rc-dyn__milestones[data-v-2b99e65d]{margin-top:2px}.rc-dyn__barlabel[data-v-2b99e65d]{text-align:left;opacity:.7;font-size:10px;font-weight:600;line-height:1}.rc-popup--compact[data-v-2b99e65d]{text-align:left;--ft-rewards-chip-font-size:12px;flex-direction:column;gap:16px;display:flex}.rc-popup__description[data-v-2b99e65d]{font-size:14px;line-height:var(--ft-dialog-description-line-height,18px);color:var(--ft-dialog-description-color,var(--ft-my-rewards-text-color,#333));margin-top:0}.rc-popup__terms[data-v-2b99e65d]{font-size:var(--ft-dialog-terms-font-size,10px);line-height:var(--ft-dialog-terms-line-height,12px);color:var(--ft-dialog-terms-color,var(--ft-my-rewards-text-color,#333));text-align:left}@media (width>=768px){.rc-popup--compact .rc-popup__terms[data-v-2b99e65d]{text-align:center}}.rc-popup__bar[data-v-2b99e65d]{--ft-progressbar-height:20px;width:100%}.rc-popup__cta[data-v-2b99e65d]{--ft-button-width:100%;display:block}@media (width>=768px){.rc-popup--compact[data-v-2b99e65d]{text-align:center;align-items:stretch}}"]], ["__scopeId", "data-v-2b99e65d"]]), Yx = { clickable: !1 }, Xx = { class: "jackpot-card" }, Zx = { class: "jackpot-card__icon-wrapper" }, Qx = ["src"], $x = { class: "jackpot-card__body" }, eS = { class: "jackpot-card__title" }, tS = { class: "jackpot-card__amount" }, nS = ["amount"], rS = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9202
|
+
}), [["styles", [".reward-card__history-status[data-v-95645965]{z-index:1;position:absolute;bottom:6px;left:6px}.completed[data-v-95645965]{justify-content:flex-start;align-items:center;font-weight:700;display:flex}.check-mark[data-v-95645965]{color:var(--ft-reward-complete-color,#e96092);margin-right:8px}.check-mark svg[data-v-95645965]{display:block}.reward-card[data-v-95645965]{box-sizing:border-box;align-items:center;gap:16px;display:flex;overflow:hidden}.reward-card--no-padding[data-v-95645965]{gap:0}.reward-card--big[data-v-95645965]{padding:0;display:block}.image-placeholder[data-v-95645965]{width:1px;height:90px}.reward-card__image[data-v-95645965]{border-radius:4px;width:96px;height:96px;display:block}.reward-card--big .reward-card__image[data-v-95645965]{width:100%;height:auto}.reward-card--big .reward-card__body[data-v-95645965]{padding:16px}.reward-card__header[data-v-95645965]{position:relative}.reward-card__body[data-v-95645965]{flex-direction:column;flex:1;gap:12px;display:flex}.reward-card__title[data-v-95645965]{font-family:var(--ft-my-rewards-small-title-font-family,inherit);font-size:var(--ft-my-rewards-small-title-font-size,16px);font-style:normal;font-weight:var(--ft-my-rewards-small-title-font-weight,700);line-height:var(--ft-my-rewards-small-title-line-height,18px);letter-spacing:-.2px;text-wrap:balance;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.reward-card--big .reward-card__title[data-v-95645965]{letter-spacing:-.5px;font-size:24px;line-height:26.8px}.reward-card__description[data-v-95645965]{font-size:var(--ft-my-rewards-font-size,14px);letter-spacing:-.2px;font-style:normal;font-weight:400;line-height:18.5px}.reward-card__extra[data-v-95645965]{width:85%;height:32px;font-size:14px;font-style:normal;font-weight:700;line-height:15.9px}.reward-card--full-extras .reward-card__extra[data-v-95645965]{width:100%}.reward-card__quest[data-v-95645965]{flex-direction:column;gap:8px;min-width:0;display:flex}.reward-card--quest .reward-card__body[data-v-95645965]{min-width:0}.reward-card__title--quest[data-v-95645965]{white-space:nowrap;text-overflow:ellipsis;-webkit-line-clamp:unset;line-clamp:unset;display:block}.reward-card__quest-line[data-v-95645965]{opacity:.85;white-space:nowrap;text-overflow:ellipsis;font-size:13px;line-height:1.3;overflow:hidden}.reward-card__quest-next[data-v-95645965]{opacity:.85;white-space:nowrap;text-overflow:ellipsis;margin-top:6px;font-size:12px;font-weight:400;line-height:1.2;overflow:hidden}.reward-card__extra--milestones[data-v-95645965]{height:auto;font-weight:400}.reward-card--big .reward-card__extra[data-v-95645965]{font-size:var(--ft-my-rewards-font-size,14px);letter-spacing:-.2px;line-height:18.5px}.reward-card__terms[data-v-95645965]{font-size:10px;font-style:normal;font-weight:400;line-height:11.8px}.reward-card__footer--progress-indicator[data-v-95645965]{transform-origin:100% 100%;justify-content:center;align-items:center;transition:all .2s;display:flex;position:absolute;bottom:0;right:0}.reward-card__footer--progress-indicator[data-v-95645965]:hover{scale:1.1}.reward-card__footer--progress-indicator__text[data-v-95645965]{color:var(--ft-my-rewards-tab-text-color,var(--ft-my-rewards-text-color,#fff));text-align:center;font-family:var(--ft-my-rewards-tab-font-family,var(--ft-my-rewards-caption-font-family,inherit));font-size:var(--ft-my-rewards-tab-font-size,var(--ft-my-rewards-caption-font-size,12px));font-style:normal;font-weight:var(--ft-my-rewards-tab-font-weight,var(--ft-my-rewards-caption-font-weight,400));text-transform:uppercase;line-height:normal;position:absolute;top:16%;left:10%;transform:rotate(-45deg)}.reward-card__footer--progress-indicator--background[data-v-95645965]{border-top-left-radius:12px;border-bottom-right-radius:var(--ft-card-border-radius,8px);background:var(--ft-my-rewards-background-color,var(--ft-my-rewards-secondary-color,#fff));overflow:hidden}.reward-preview[data-v-95645965]{flex-direction:column;align-items:center;gap:16px;padding:5px;display:flex}.reward-preview__image[data-v-95645965]{text-align:center}.reward-preview__image img[data-v-95645965]{width:var(--ft-bonus-preview-image-width,320px);height:var(--ft-bonus-preview-image-height,320px);border-radius:var(--ft-bonus-preview-image-border-radius,24px)}.reward-preview__title[data-v-95645965]{font-family:var(--ft-dialog-title-font-family,var(--ft-my-rewards-title-font-family,inherit));font-size:var(--ft-dialog-title-font-size,var(---ft-my-rewards-title-font-size,30px));line-height:var(--ft-dialog-title-line-height,var(--ft-my-rewards-title-line-height,32px));font-weight:var(--ft-dialog-title-font-weight,var(--ft-my-rewards-title-font-weight,700));text-align:center;cursor:default;color:var(--ft-dialog-title-text-color,var(--ft-my-rewards-text-color,#333));text-wrap:balance}.reward-preview__sub-title[data-v-95645965]{text-align:center;cursor:default;margin:16px 0;font-size:20px;font-weight:700;line-height:1}.reward-preview__description[data-v-95645965]{font-family:var(--ft-dialog-description-font-family,var(--ft-my-rewards-description-font-family,inherit));color:var(--ft-dialog-description-color,var(--ft-dialog-text-color,var(--ft-my-rewards-text-color,#333)));font-size:var(--ft-dialog-description-font-size,var(--ft-dialog-font-size,var(--ft-my-rewards-font-size,14px)));line-height:var(--ft-dialog-description-line-height,var(--ft-my-rewards-text-line-height,16px));font-weight:var(--ft-dialog-description-font-weight,var(--ft-dialog-font-weight,400));text-align:center}.reward-preview__terms[data-v-95645965]{font-family:var(--ft-dialog-terms-font-family,inherit);color:var(--ft-dialog-terms-color,#333);font-size:var(--ft-dialog-terms-font-size,10px);line-height:var(--ft-dialog-terms-line-height,12px);font-weight:var(--ft-dialog-terms-font-weight,400);text-align:center}.reward-preview__progress[data-v-95645965]{justify-content:center;width:100%;display:flex}.reward-preview__progress--milestones[data-v-95645965]{flex-direction:column;gap:16px}.reward-preview__progress.indicator[data-v-95645965]{justify-content:center;display:flex}.reward-preview__opt-out[data-v-95645965],.rc-popup__opt-out[data-v-95645965]{cursor:pointer;font-family:inherit;font-size:var(--ft-dialog-font-size,var(--ft-my-rewards-font-size,14px));color:var(--ft-dialog-text-color,var(--ft-my-rewards-text-color,#333));background:0 0;border:none;align-self:center;padding:0;text-decoration:underline}.tasks[data-v-95645965]{flex-direction:column;gap:16px;display:flex}.task[data-v-95645965]{text-align:left;flex-direction:column;gap:8px;display:flex}.task__title[data-v-95645965]{font-family:var(--ft-dialog-description-font-family,var(--ft-my-rewards-description-font-family,inherit));color:var(--ft-dialog-description-color,var(--ft-dialog-text-color,var(--ft-my-rewards-text-color,#333)));font-size:var(--ft-dialog-description-font-size,var(--ft-dialog-font-size,var(--ft-my-rewards-font-size,14px)));line-height:var(--ft-dialog-description-line-height,var(--ft-my-rewards-text-line-height,16px));font-weight:var(--ft-dialog-description-font-weight,var(--ft-dialog-font-weight,400))}.task__milestones[data-v-95645965]{flex-direction:column;gap:16px;display:flex}.task--completed[data-v-95645965]{opacity:.5}.check-icon[data-v-95645965]{width:auto;height:20px}.check-icon svg[data-v-95645965]{width:auto;height:20px;display:block}.tab-path[data-v-95645965]{fill:var(--ft-my-rewards-tab-background-color,var(--ft-my-rewards-accent-color,#fc2d72))}.reward-card__clip-path-footer[data-v-95645965]{clip-path:polygon(0 0,100% 0,100% calc(100% - 48px),calc(100% - 48px) 100%,0 100%)}.reward-card__clip-path-footer.hovered[data-v-95645965]{clip-path:polygon(0 0,100% 0,100% calc(100% - 53px),calc(100% - 48px) 100%,0 100%)}.rc-dyn[data-v-95645965]{box-sizing:border-box;cursor:pointer;height:80px;font-size:var(--ft-rewards-card-font-size,12px);flex-direction:column;justify-content:center;gap:6px;display:flex;position:relative;overflow:hidden}.rc-dyn__row[data-v-95645965]{align-items:center;gap:8px;min-width:0;display:flex}.rc-dyn__img[data-v-95645965]{object-fit:cover;border-radius:4px;flex-shrink:0;align-self:center;width:48px;height:48px;display:block}.rc-dyn__content[data-v-95645965]{flex-direction:column;flex:1;justify-content:center;gap:4px;min-width:0;display:flex;overflow:hidden}.rc-dyn__description[data-v-95645965]{font-size:var(--ft-rewards-card-description-font-size,11px);letter-spacing:-.2px;opacity:.85;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;max-width:100%;font-weight:400;line-height:1.3;display:-webkit-box;overflow:hidden}.rc-dyn__title[data-v-95645965]{font-family:var(--ft-my-rewards-small-title-font-family,inherit);font-size:var(--ft-rewards-card-title-font-size,12px);font-weight:var(--ft-my-rewards-small-title-font-weight,700);letter-spacing:-.2px;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;display:-webkit-box;overflow:hidden}.rc-dyn--timed .rc-dyn__title[data-v-95645965]{padding-right:90px}.rc-dyn__chips[data-v-95645965]{min-width:0;display:block}.rc-dyn__countdown[data-v-95645965]{z-index:1;white-space:nowrap;color:var(--ft-card-expiry-pill-secondary,var(--ft-my-rewards-accent-color,currentColor));align-items:center;gap:4px;font-size:10px;font-weight:600;display:inline-flex;position:absolute;top:0;right:2px}.rc-dyn__clock[data-v-95645965]{flex-shrink:0;width:10px;height:10px;display:block}.rc-dyn__bar[data-v-95645965]{--ft-progressbar-height:8px;--ft-progressbar-border-width:0;flex-direction:column;gap:4px;width:100%;display:flex}.rc-dyn__title--quest[data-v-95645965]{-webkit-line-clamp:1;line-clamp:1}.rc-dyn__quest[data-v-95645965]{align-items:center;gap:8px;min-width:0;display:flex}.rc-dyn__quest-line[data-v-95645965]{opacity:.85;white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;font-size:11px;line-height:1.2;overflow:hidden}.rc-dyn__track[data-v-95645965]{flex:0 0 66px}.rc-dyn__questinfo[data-v-95645965]{justify-content:space-between;gap:8px;min-width:0;display:flex}.rc-dyn__questnext[data-v-95645965]{white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:10px;line-height:1;overflow:hidden}.rc-dyn__milestones[data-v-95645965]{margin-top:2px}.rc-dyn__barlabel[data-v-95645965]{text-align:left;opacity:.7;font-size:10px;font-weight:600;line-height:1}.rc-popup--compact[data-v-95645965]{text-align:left;--ft-rewards-chip-font-size:12px;flex-direction:column;gap:16px;display:flex}.rc-popup__description[data-v-95645965]{font-size:14px;line-height:var(--ft-dialog-description-line-height,18px);color:var(--ft-dialog-description-color,var(--ft-my-rewards-text-color,#333));margin-top:0}.rc-popup__terms[data-v-95645965]{font-size:var(--ft-dialog-terms-font-size,10px);line-height:var(--ft-dialog-terms-line-height,12px);color:var(--ft-dialog-terms-color,var(--ft-my-rewards-text-color,#333));text-align:left}@media (width>=768px){.rc-popup--compact .rc-popup__terms[data-v-95645965]{text-align:center}}.rc-popup__bar[data-v-95645965]{--ft-progressbar-height:20px;width:100%}.rc-popup__cta[data-v-95645965]{--ft-button-width:100%;display:block}@media (width>=768px){.rc-popup--compact[data-v-95645965]{text-align:center;align-items:stretch}}"]], ["__scopeId", "data-v-95645965"]]), Yx = { clickable: !1 }, Xx = { class: "jackpot-card" }, Zx = { class: "jackpot-card__icon-wrapper" }, Qx = ["src"], $x = { class: "jackpot-card__body" }, eS = { class: "jackpot-card__title" }, tS = { class: "jackpot-card__amount" }, nS = ["amount"], rS = /*#__PURE__*/ $(/* @__PURE__ */ z({
|
|
9203
9203
|
__name: "JackpotCard.ce",
|
|
9204
9204
|
props: { jackpot: { type: Object } },
|
|
9205
9205
|
setup(e) {
|
|
@@ -11551,7 +11551,7 @@ var wT = {
|
|
|
11551
11551
|
onClose: i[2] ||= (e) => r("close")
|
|
11552
11552
|
}, [K("div", tO, [
|
|
11553
11553
|
K("div", nO, y(e.quest ? J(n)("quest.opt-out.title", "Leave this quest") : J(n)("challenge-opt-out.title", "Cancel challenge")), 1),
|
|
11554
|
-
K("div", rO, y(e.quest ? J(n)("quest.opt-out.description", "You'll lose your progress on the tasks
|
|
11554
|
+
K("div", rO, y(e.quest ? J(n)("quest.opt-out.description", "You'll lose your progress on the remaining tasks and won't get the final reward. Rewards you already received are yours to keep. This can't be undone") : J(n)("challenge-opt-out.description", "You'll lose your progress and won't get the reward. This can't be undone.")), 1),
|
|
11555
11555
|
K("div", iO, [K("button", {
|
|
11556
11556
|
type: "button",
|
|
11557
11557
|
class: "challenge-opt-out__give-up",
|
|
@@ -11566,7 +11566,7 @@ var wT = {
|
|
|
11566
11566
|
}, [K("div", sO, y(J(n)("challenge-opt-out.cancel", "Cancel")), 1)], 8, oO)])
|
|
11567
11567
|
])], 40, eO));
|
|
11568
11568
|
}
|
|
11569
|
-
}), [["styles", [".challenge-opt-out[data-v-
|
|
11569
|
+
}), [["styles", [".challenge-opt-out[data-v-2be8778b]{flex-direction:column;align-items:center;gap:20px;display:flex}.challenge-opt-out__title[data-v-2be8778b]{font-family:var(--ft-dialog-title-font-family,var(--ft-my-rewards-title-font-family,inherit));font-size:var(--ft-dialog-title-font-size,var(--ft-my-rewards-title-font-size,30px));line-height:var(--ft-dialog-title-line-height,var(--ft-my-rewards-title-line-height,32px));font-weight:var(--ft-dialog-title-font-weight,var(--ft-my-rewards-title-font-weight,700));text-align:center;cursor:default;color:var(--ft-dialog-title-text-color,var(--ft-my-rewards-text-color,#333))}.challenge-opt-out__description[data-v-2be8778b]{font-family:var(--ft-dialog-description-font-family,var(--ft-my-rewards-description-font-family,inherit));color:var(--ft-dialog-description-color,var(--ft-dialog-text-color,var(--ft-my-rewards-text-color,#333)));font-size:var(--ft-dialog-description-font-size,var(--ft-dialog-font-size,var(--ft-my-rewards-font-size,14px)));line-height:var(--ft-dialog-description-line-height,var(--ft-my-rewards-text-line-height,16px));font-weight:var(--ft-dialog-description-font-weight,var(--ft-dialog-font-weight,400));text-align:center}.challenge-opt-out__actions[data-v-2be8778b]{flex-wrap:wrap;justify-content:center;align-items:center;gap:24px;margin-top:4px;display:flex}.challenge-opt-out__give-up[data-v-2be8778b]{cursor:pointer;font-family:inherit;font-size:var(--ft-dialog-font-size,var(--ft-my-rewards-font-size,14px));color:var(--ft-dialog-text-color,var(--ft-my-rewards-text-color,#333));background:0 0;border:none;padding:0;font-weight:700;text-decoration:underline}.challenge-opt-out__give-up[data-v-2be8778b]:disabled{cursor:not-allowed;opacity:.6}"]], ["__scopeId", "data-v-2be8778b"]]), lO = { class: "ft-toast__message" }, uO = {
|
|
11570
11570
|
key: 0,
|
|
11571
11571
|
class: "ft-toast__sub"
|
|
11572
11572
|
}, dO = {
|
|
@@ -14935,7 +14935,7 @@ function bP() {
|
|
|
14935
14935
|
return e === void 0 ? (yP[ia] = Xe, !0) : (console.info(`[Rewards] Rewards ${e} is already running; this copy (${Xe}) does nothing`), !1);
|
|
14936
14936
|
}
|
|
14937
14937
|
function xP() {
|
|
14938
|
-
Reflect.deleteProperty(yP, ia), window.ftRewardsVersion === "1.47.
|
|
14938
|
+
Reflect.deleteProperty(yP, ia), window.ftRewardsVersion === "1.47.2-beta.0" && Reflect.deleteProperty(window, "ftRewardsVersion");
|
|
14939
14939
|
}
|
|
14940
14940
|
function SP() {
|
|
14941
14941
|
window.ftRewardsVersion = Xe, _P("sdk-full");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fasttrack-solutions/rewards",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.2-beta.0",
|
|
4
4
|
"description": "Fast Track Rewards SDK and web components, as an npm package. Same build as the CDN script, with nothing loaded from the CDN.",
|
|
5
5
|
"homepage": "https://www.fasttrack.ai/en/resources/integration/rewards/front-end-integration",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@fasttrack-solutions/rewards-games": "1.47.
|
|
38
|
+
"@fasttrack-solutions/rewards-games": "1.47.2-beta.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@fasttrack-solutions/rewards-games": {
|