@everymatrix/player-challenges 0.2.9 → 0.2.11
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/components/{ArrowLeftIcon-3qrKAvdj.js → ArrowLeftIcon-DNIV5-8g.js} +1 -1
- package/components/{ArrowLeftIcon-DfIi_ild.cjs → ArrowLeftIcon-QfqYgIQx.cjs} +1 -1
- package/components/{Badge-UAilzVOG.js → Badge-Bkp3Be8n.js} +1 -1
- package/components/{Badge-DFveO0N2.cjs → Badge-DdkXP5Yb.cjs} +1 -1
- package/components/{Button-DYIKg1bw.cjs → Button-B57Vo3G3.cjs} +1 -1
- package/components/{Button-CzKbnOcC.js → Button-BXCDdFbF.js} +1 -1
- package/components/{ChallengeBanner-CLOInO3g.cjs → ChallengeBanner-ByzDXXqn.cjs} +1 -1
- package/components/{ChallengeBanner-IgIai24t.js → ChallengeBanner-C4f--bCT.js} +2 -2
- package/components/{ChallengeBreadcrumbs-CJtVYxk1.js → ChallengeBreadcrumbs-BBsS3Bpn.js} +2 -2
- package/components/{ChallengeBreadcrumbs-BTbBzzQ7.cjs → ChallengeBreadcrumbs-Cv-9Lsbw.cjs} +1 -1
- package/components/{ChallengeCard-eycA-QQR.js → ChallengeCard-BNZlxERV.js} +11 -11
- package/components/{ChallengeCard-Bgbcplkq.cjs → ChallengeCard-_UeRbppG.cjs} +1 -1
- package/components/{ChallengeClaimCode-7_t0VrV1.js → ChallengeClaimCode-DUdzU0LC.js} +1 -1
- package/components/{ChallengeClaimCode-_w823IPm.cjs → ChallengeClaimCode-WX2oHf5N.cjs} +1 -1
- package/components/{ChallengeDetails-DG09x6Eu.cjs → ChallengeDetails-DIixz4MM.cjs} +1 -1
- package/components/{ChallengeDetails-DIlswoao.js → ChallengeDetails-zfJ8tMoS.js} +6 -6
- package/components/{ChallengeDetailsSkeleton-M5rC4gwT.js → ChallengeDetailsSkeleton-BdIJSnSi.js} +1 -1
- package/components/{ChallengeDetailsSkeleton--laE6pYH.cjs → ChallengeDetailsSkeleton-DsOKsD1R.cjs} +1 -1
- package/components/{ChallengeEvents-B3Bzqtoo.js → ChallengeEvents-Ck70Zndc.js} +2 -2
- package/components/{ChallengeEvents-eIpuL6Yk.cjs → ChallengeEvents-CnnAyR0A.cjs} +1 -1
- package/components/{ChallengeGames-L5TQ1wVu.js → ChallengeGames-6HCHFbpI.js} +1 -1
- package/components/{ChallengeGames-B8Vm2L5G.cjs → ChallengeGames-CoTRQLpo.cjs} +1 -1
- package/components/{ChallengeHistory-CfySyCJf.cjs → ChallengeHistory-DqCzIUzj.cjs} +1 -1
- package/components/{ChallengeHistory-Cpr3ZtU1.js → ChallengeHistory-_zDNsENb.js} +6 -6
- package/components/{ChallengeLevels-BcKvLTo3.js → ChallengeLevels-CR6HhrMw.js} +7 -7
- package/components/{ChallengeLevels-h_sq1iMg.cjs → ChallengeLevels-bQ3nHVNo.cjs} +1 -1
- package/components/{ChallengeList-BdM811gO.cjs → ChallengeList-D2xLWscW.cjs} +1 -1
- package/components/{ChallengeList-DynA4UU9.js → ChallengeList-D7m6ACxU.js} +3 -3
- package/components/{ChallengeProgress-Dg6HSNMv.cjs → ChallengeProgress-BUrXyqQy.cjs} +1 -1
- package/components/{ChallengeProgress-NWAKjOv2.js → ChallengeProgress-DTh7K-sN.js} +2 -2
- package/components/{ChallengeProgressItem-Cxzfd65S.cjs → ChallengeProgressItem-CgzTT7-K.cjs} +1 -1
- package/components/{ChallengeProgressItem-D44UERwx.js → ChallengeProgressItem-G2nUuOIK.js} +4 -4
- package/components/{ChallengeRules-CyKZ9sRh.js → ChallengeRules-BNa3blaQ.js} +3 -3
- package/components/{ChallengeRules-CoSSDWCX.cjs → ChallengeRules-hJ1Osrxh.cjs} +1 -1
- package/components/{ChallengeSummary-B4Vp1cu8.cjs → ChallengeSummary-C37YVioc.cjs} +1 -1
- package/components/{ChallengeSummary-BoDIsHBs.js → ChallengeSummary-CkrogcIj.js} +6 -6
- package/components/{ChallengeTabContent-qwpLkxSQ.cjs → ChallengeTabContent-CZRc31Qo.cjs} +1 -1
- package/components/{ChallengeTabContent-DjqSySNS.js → ChallengeTabContent-DhtcRBy7.js} +4 -4
- package/components/{ChallengeTabPanel-DFXF6VqV.js → ChallengeTabPanel-BPBeq2_F.js} +5 -5
- package/components/{ChallengeTabPanel-DYPhrVRz.cjs → ChallengeTabPanel-Dav8iUp5.cjs} +1 -1
- package/components/{ChallengeTabs-B5g-SF2b.cjs → ChallengeTabs-BQwyIqRw.cjs} +7 -7
- package/components/{ChallengeTabs-_vjQrF0A.js → ChallengeTabs-DlIm0kQA.js} +701 -706
- package/components/{CheckIcon-0LtHk7fE.cjs → CheckIcon-_cdi2aOf.cjs} +1 -1
- package/components/{CheckIcon-BfH-d7h_.js → CheckIcon-b6YSOHVD.js} +1 -1
- package/components/{ChevronIcon-D-mzPrXJ.js → ChevronIcon-BsSMnLDy.js} +1 -1
- package/components/{ChevronIcon-BfZDLe6C.cjs → ChevronIcon-HtcwODyx.cjs} +1 -1
- package/components/{ChipIcon-BAasRRs4.js → ChipIcon-DvWRsQ0Q.js} +1 -1
- package/components/{ChipIcon-ChCUc7Ro.cjs → ChipIcon-GS02_pQp.cjs} +1 -1
- package/components/{ChipShineIcon-BiuHUnXR.cjs → ChipShineIcon-13y5rm-O.cjs} +1 -1
- package/components/{ChipShineIcon-CoeUovBC.js → ChipShineIcon-2b4urtuI.js} +1 -1
- package/components/{ExistIcon-Dv8paf_U.js → ExistIcon-BTW-f6eh.js} +1 -1
- package/components/{ExistIcon-CfsNk2my.cjs → ExistIcon-j-Ws6wHF.cjs} +1 -1
- package/components/{GiftIcon-Mnb_Nxbd.js → GiftIcon-CGxyDjCt.js} +1 -1
- package/components/{GiftIcon-BH735MXR.cjs → GiftIcon-pxDmtiHo.cjs} +1 -1
- package/components/{LinkIcon-Du4_pcZZ.cjs → LinkIcon-DWGLGHt-.cjs} +1 -1
- package/components/{LinkIcon-DiVYY9ci.js → LinkIcon-LXZ_j-cE.js} +1 -1
- package/components/{LockIcon-QA92rEFW.cjs → LockIcon-BbtIAyXX.cjs} +1 -1
- package/components/{LockIcon-KP_pUGJo.js → LockIcon-DVWzhbJi.js} +1 -1
- package/components/{Pagination-DfqNdchM.cjs → Pagination-Bhm3RwLH.cjs} +1 -1
- package/components/{Pagination-DQklVx0w.js → Pagination-DEIFcNa_.js} +1 -1
- package/components/{PlayerChallenges-BVshv0hR.cjs → PlayerChallenges-C0vOmVPX.cjs} +1 -1
- package/components/{PlayerChallenges-Cj6-v75C.js → PlayerChallenges-Eqb2Qmj3.js} +4 -4
- package/components/{StarIcon-DturCxI3.cjs → StarIcon-CsDWGoS3.cjs} +1 -1
- package/components/{StarIcon-DTSu1OOQ.js → StarIcon-wls7CR78.js} +1 -1
- package/components/{TargetIcon-BlVaf2Xr.cjs → TargetIcon-CKQJBgFo.cjs} +1 -1
- package/components/{TargetIcon-CJJKDeVK.js → TargetIcon-Dq082mBh.js} +1 -1
- package/components/{helpers-B2y_AV0y.js → helpers-4M9dJQ89.js} +1 -1
- package/components/{helpers-BmTQLAcy.cjs → helpers-Za4oasat.cjs} +1 -1
- package/esnext/player-challenges.cjs +1 -1
- package/esnext/player-challenges.js +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as i, p as n, t as f, a as p, b as d, f as u, d as h, e as g, s as a } from "./ChallengeTabs-
|
|
1
|
+
import { c as i, p as n, t as f, a as p, b as d, f as u, d as h, e as g, s as a } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs");var a=e.from_svg('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill-rule="evenodd" clip-rule="evenodd" d="M19 11H7.83l4.88-4.88a1 1 0 10-1.42-1.42l-6.59 6.59a1 1 0 000 1.42l6.59 6.59a1 1 0 001.42-1.42L7.83 13H19a1 1 0 000-2z" fill="currentColor"></path></svg>');function r(s,n){e.push(n,!0);let t=e.prop(n,"size",7,24);var o={get size(){return t()},set size(i=24){t(i),e.flushSync()}},l=a();return e.template_effect(()=>{e.set_attribute(l,"width",t()),e.set_attribute(l,"height",t())}),e.append(s,l),e.pop(o)}e.create_custom_element(r,{size:{}},[],[],{mode:"open"});exports.ArrowLeftIcon=r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Z, d as ee, h as ae, p as d, w as te, x as se, y as re, z as ne, A as j, t as q, B as e, s as D, D as oe, i as v, a as h, b as le, k as x, l as de, $ as ie, E as y, n as T, F as f, e as i, m as ce, G as pe, H as ue, I as ge, o as c, r as E, J as be, K as ve } from "./ChallengeTabs-
|
|
1
|
+
import { c as Z, d as ee, h as ae, p as d, w as te, x as se, y as re, z as ne, A as j, t as q, B as e, s as D, D as oe, i as v, a as h, b as le, k as x, l as de, $ as ie, E as y, n as T, F as f, e as i, m as ce, G as pe, H as ue, I as ge, o as c, r as E, J as be, K as ve } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs");var A=e.from_html('<span class="timer-date svelte-tfkqbj"> </span>'),F=e.from_html('<span class="timer-label svelte-tfkqbj"> </span> <span class="timer-dash svelte-tfkqbj"></span> <span class="timer-countdown"> </span>',1),J=e.from_html('<div class="timer svelte-tfkqbj"><!> <!></div>'),K=e.from_html('<div class="challenge-badge svelte-tfkqbj"><div class="status-pill svelte-tfkqbj"><span></span> <span class="status-label svelte-tfkqbj"> </span></div> <!></div>');const O={hash:"svelte-tfkqbj",code:`.challenge-badge.svelte-tfkqbj {box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:2px 8px 2px 2px;gap:6px;position:relative;background-color:var(--alpha-white-10, rgba(0, 0, 0, 0.3));border:1px solid var(--alpha-white-25, rgba(251, 251, 251, 0.2));backdrop-filter:blur(10px);border-radius:100px;width:fit-content;height:25px;&[data-status='scheduled'],
|
|
2
2
|
&[data-status='ongoing'],
|
|
3
3
|
&[data-status='paused'] {background-color:var(--alpha-white-10, rgba(251, 251, 251, 0.1));}.status-pill:where(.svelte-tfkqbj) {box-sizing:border-box;display:flex;align-items:center;gap:4px;padding:2px 8px 2px 6px;border-radius:20px;border:0.8px solid var(--alpha-white-25, rgba(251, 251, 251, 0.2));box-shadow:0px 0.83px 1.66px 0px rgba(16, 24, 40, 0.05);background-color:var(--alpha-black-20, rgba(0, 0, 0, 0.2));height:21px;.dot-status:where(.svelte-tfkqbj) {width:5px;height:5px;border-radius:50%;flex-shrink:0;transition:background 0.2s ease,
|
|
4
4
|
box-shadow 0.2s ease;&.new,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs");var x=e.from_html('<button class="challenge-button svelte-166ic7y"> </button>');const v={hash:"svelte-166ic7y",code:`.challenge-button.svelte-166ic7y {box-sizing:border-box;&:disabled {opacity:0.5;cursor:default;}display:flex;flex-direction:row;justify-content:center;align-items:center;padding:8px 16px;gap:10px;width:80px;height:37px;border-radius:6px;font-size:13px;font-weight:600;line-height:1;cursor:pointer;transition:background 0.15s ease,
|
|
2
2
|
border-color 0.15s ease,
|
|
3
3
|
opacity 0.15s ease;flex:none;order:1;flex-grow:0;&:hover {opacity:0.9;}&:active {opacity:0.8;}&:disabled {opacity:0.4;cursor:not-allowed;}&[data-variant='primary'] {background:var(--button-primary-bg-default, #ffcc00);border:none;color:var(--button-primary-text-default, rgba(38, 29, 0, 1));}&[data-variant='secondary'] {background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));border:1px solid var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));backdrop-filter:blur(16.15px);color:var(--button-secondary-text-default, rgba(255, 255, 255, 1));align-self:stretch;}&[data-variant='accent'] {background:var(--button-primary-icon-disabled, rgba(251, 251, 251, 0.15));border:1px solid var(--button-primary-bg-default, #ffcc00);backdrop-filter:blur(16.15px);color:var(--button-secondary-text-default, rgba(255, 255, 255, 1));}}`};function d(s,a){e.push(a,!0),e.append_styles(s,v);const u=()=>e.store_get(e.$format,"$_",b),[b,p]=e.setup_stores(),n=e.prop(a,"variant",7,"primary"),l=e.prop(a,"text",7),o=e.prop(a,"locale",7,""),c=e.prop(a,"disabled",7,!1),i=e.prop(a,"onclick",7);e.untrack(()=>e.initI18n(o())),e.user_effect(()=>{e.setLocale(o()||"en")});var f={get variant(){return n()},set variant(t="primary"){n(t),e.flushSync()},get text(){return l()},set text(t){l(t),e.flushSync()},get locale(){return o()},set locale(t=""){o(t),e.flushSync()},get disabled(){return c()},set disabled(t=!1){c(t),e.flushSync()},get onclick(){return i()},set onclick(t){i(t),e.flushSync()}},r=x(),g=e.only_child(r,!0);e.template_effect(t=>{e.set_attribute(r,"data-variant",n()),r.disabled=c(),e.set_text(g,t)},[()=>u()(l())]),e.delegated("click",r,function(...t){i()?.apply(this,t)}),e.append(s,r);var y=e.pop(f);return p(),y}e.delegate(["click"]);e.create_custom_element(d,{variant:{},text:{},locale:{},disabled:{},onclick:{}},[],[],{mode:"open"});exports.Button=d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as y, c as v, d as m, h, p as r, w as k, x as _, y as w, G as T, t as E, s as L, i as j, j as z, a as B, b as H, k as M, l as $, $ as D, F, e as o, m as G } from "./ChallengeTabs-
|
|
1
|
+
import { g as y, c as v, d as m, h, p as r, w as k, x as _, y as w, G as T, t as E, s as L, i as j, j as z, a as B, b as H, k as M, l as $, $ as D, F, e as o, m as G } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
2
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
3
3
|
}, globalThis.customElements = { define() {
|
|
4
4
|
}, get() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),U=require("./Badge-DdkXP5Yb.cjs"),D=require("./img-placeholder-DhbIx3rU.cjs");var H=e.from_html('<div class="challenge-details__banner--scrim svelte-178u6lo" aria-hidden="true"></div>'),M=e.from_html('<div class="challenge-details__banner--new-icon svelte-178u6lo"><img alt="" aria-hidden="true" class="svelte-178u6lo"/></div>'),z=e.from_html('<div class="challenge-details__banner svelte-178u6lo"><div class="challenge-details__banner--overlay svelte-178u6lo"><!></div> <!> <!> <img/></div>');const F={hash:"svelte-178u6lo",code:`.challenge-details__banner.svelte-178u6lo {position:relative;width:100%;border-radius:12px;overflow:hidden;.challenge-details__banner--overlay:where(.svelte-178u6lo) {position:absolute;top:12px;left:12px;z-index:1;}.challenge-details__banner--image:where(.svelte-178u6lo) {display:block;width:100%;height:340px;object-fit:cover;}.challenge-details__banner--inactive:where(.svelte-178u6lo) {filter:grayscale(1) brightness(0.45);}.challenge-details__banner--scrim:where(.svelte-178u6lo) {position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg, rgba(10, 12, 24, 0) 50%, #0a0c18 100%),
|
|
2
2
|
linear-gradient(0deg, rgba(10, 12, 24, 0.6), rgba(10, 12, 24, 0.6));backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);}.challenge-details__banner--placeholder:where(.svelte-178u6lo) {object-fit:contain;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));}
|
|
3
3
|
|
|
4
4
|
@media (max-width: 767px) {.challenge-details__banner--image:where(.svelte-178u6lo) {height:140px;}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as J, d as K, h as V, p as v, L as W, w as X, B as e, A as N, t as E, M as Y, a as _, b as Z, k as f, E as t, N as L, O as $, n as j, e as b, r as D, o as p, D as ee, s as m, P as ae, Q as te, R as le, H as se, F as ne, S as re } from "./ChallengeTabs-
|
|
2
|
-
import { B as ie } from "./Badge-
|
|
1
|
+
import { c as J, d as K, h as V, p as v, L as W, w as X, B as e, A as N, t as E, M as Y, a as _, b as Z, k as f, E as t, N as L, O as $, n as j, e as b, r as D, o as p, D as ee, s as m, P as ae, Q as te, R as le, H as se, F as ne, S as re } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { B as ie } from "./Badge-Bkp3Be8n.js";
|
|
3
3
|
import { P as oe } from "./img-placeholder-BP1dw7Jq.js";
|
|
4
4
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
5
5
|
}, globalThis.customElements = { define() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as v, c as m, d as _, h as k, p as x, t as y, s as $, i as w, j as B, a as T, b as C, k as z, l as E, e as L, m as j, $ as A, n as l, r as n, o as H } from "./ChallengeTabs-
|
|
2
|
-
import { A as M } from "./ArrowLeftIcon-
|
|
1
|
+
import { g as v, c as m, d as _, h as k, p as x, t as y, s as $, i as w, j as B, a as T, b as C, k as z, l as E, e as L, m as j, $ as A, n as l, r as n, o as H } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { A as M } from "./ArrowLeftIcon-DNIV5-8g.js";
|
|
3
3
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
4
|
}, globalThis.customElements = { define() {
|
|
5
5
|
}, get() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),v=require("./ArrowLeftIcon-QfqYgIQx.cjs");var m=e.from_html('<nav class="player-challenges__breadcrumbs svelte-ca3bk6"><button type="button" class="player-challenges__breadcrumb-back svelte-ca3bk6"><span class="player-challenges__breadcrumb-back-icon svelte-ca3bk6" aria-hidden="true"><!></span> </button></nav>');const _={hash:"svelte-ca3bk6",code:".player-challenges__breadcrumbs.svelte-ca3bk6 {display:flex;align-items:center;gap:13px;font-size:12px;min-width:0;padding:8px 12px;border-radius:6px;background:var(--app-container-default, rgba(2, 38, 82, 1));}.player-challenges__breadcrumb-back.svelte-ca3bk6 {display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:transparent;color:var(--text-default, rgba(255, 255, 255, 1));font-size:14px;font-weight:500;cursor:pointer;&:hover {color:var(--text-default, rgba(223, 227, 232, 1));}&:focus-visible {outline:2px solid var(--border-info, rgba(110, 181, 255, 1));outline-offset:2px;}}.player-challenges__breadcrumb-back-icon.svelte-ca3bk6 {display:flex;border-radius:100%;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.15));width:24px;height:24px;align-items:center;justify-content:center;color:var(--icon-default, rgba(255, 255, 255, 1));font-weight:500;}"};function i(s,c){e.push(c,!0),e.append_styles(s,_);const o=()=>e.store_get(e.$format,"$_",b),[b,p]=e.setup_stores(),r=e.prop(c,"onBack",7);var d={get onBack(){return r()},set onBack(a){r(a),e.flushSync()}},t=m(),l=e.child(t),n=e.child(l),u=e.child(n);v.ArrowLeftIcon(u,{size:16}),e.reset(n);var g=e.sibling(n);e.reset(l),e.reset(t),e.template_effect((a,f)=>{e.set_attribute(t,"aria-label",a),e.set_text(g,` ${f??""}`)},[()=>o()("allChallenges"),()=>o()("allChallenges")]),e.delegated("click",l,function(...a){r()?.apply(this,a)}),e.append(s,t);var h=e.pop(d);return p(),h}e.delegate(["click"]);e.create_custom_element(i,{onBack:{}},[],[],{mode:"open"});exports.ChallengeBreadcrumbs=i;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { g as Ba, c as Ma, d as Oa, h as Va, p as g, w as Ve, x as ja, au as Ea, aB as Fa, y as Ga, G as Ra, L as Ha, C as je, A as m, o as r, B as e, t as Q, _ as Qa, D as L, s as y, i as c, M as qa, P as q, j as Ka, a as P, b as Xa, k, n as l, E as t, O as Ya, l as Za, $ as Ja, a2 as Wa, R as de, aN as $a, F as _, V as et, aO as at, ak as tt, aP as Ee, e as d, m as rt, N as lt, X as nt, H as st, r as n, Q as it, Y as ot, Z as gt, a0 as dt, a1 as ct, U as vt, a3 as ut, S as ht, aQ as _t, a4 as pt, af as bt, aR as ft } from "./ChallengeTabs-
|
|
2
|
-
import { B as xt } from "./Badge-
|
|
3
|
-
import { B as mt } from "./Button-
|
|
4
|
-
import { C as yt } from "./ChevronIcon-
|
|
5
|
-
import { G as wt } from "./GiftIcon-
|
|
6
|
-
import { L as zt } from "./LinkIcon-
|
|
7
|
-
import { S as Ct } from "./StarIcon-
|
|
8
|
-
import { T as St } from "./TargetIcon-
|
|
9
|
-
import { C as Pt } from "./ChallengeDetails-
|
|
10
|
-
import { e as kt } from "./helpers-
|
|
11
|
-
import { C as It } from "./ChallengeProgress-
|
|
1
|
+
import { g as Ba, c as Ma, d as Oa, h as Va, p as g, w as Ve, x as ja, au as Ea, aB as Fa, y as Ga, G as Ra, L as Ha, C as je, A as m, o as r, B as e, t as Q, _ as Qa, D as L, s as y, i as c, M as qa, P as q, j as Ka, a as P, b as Xa, k, n as l, E as t, O as Ya, l as Za, $ as Ja, a2 as Wa, R as de, aN as $a, F as _, V as et, aO as at, ak as tt, aP as Ee, e as d, m as rt, N as lt, X as nt, H as st, r as n, Q as it, Y as ot, Z as gt, a0 as dt, a1 as ct, U as vt, a3 as ut, S as ht, aQ as _t, a4 as pt, af as bt, aR as ft } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { B as xt } from "./Badge-Bkp3Be8n.js";
|
|
3
|
+
import { B as mt } from "./Button-BXCDdFbF.js";
|
|
4
|
+
import { C as yt } from "./ChevronIcon-BsSMnLDy.js";
|
|
5
|
+
import { G as wt } from "./GiftIcon-CGxyDjCt.js";
|
|
6
|
+
import { L as zt } from "./LinkIcon-LXZ_j-cE.js";
|
|
7
|
+
import { S as Ct } from "./StarIcon-wls7CR78.js";
|
|
8
|
+
import { T as St } from "./TargetIcon-Dq082mBh.js";
|
|
9
|
+
import { C as Pt } from "./ChallengeDetails-zfJ8tMoS.js";
|
|
10
|
+
import { e as kt } from "./helpers-4M9dJQ89.js";
|
|
11
|
+
import { C as It } from "./ChallengeProgress-DTh7K-sN.js";
|
|
12
12
|
import { c as Dt } from "./translations-BSuAza-E.js";
|
|
13
13
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
14
14
|
}, globalThis.customElements = { define() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),bt=require("./Badge-DdkXP5Yb.cjs"),ft=require("./Button-B57Vo3G3.cjs"),xt=require("./ChevronIcon-HtcwODyx.cjs"),yt=require("./GiftIcon-pxDmtiHo.cjs"),mt=require("./LinkIcon-DWGLGHt-.cjs"),wt=require("./StarIcon-CsDWGoS3.cjs"),zt=require("./TargetIcon-CKQJBgFo.cjs"),Ct=require("./ChallengeDetails-DIixz4MM.cjs"),St=require("./helpers-Za4oasat.cjs"),kt=require("./ChallengeProgress-BUrXyqQy.cjs"),It=require("./translations-FyoqR3gH.cjs");var Pt=e.from_html('<div class="challenge-card__image-scrim svelte-1g1ytgz" aria-hidden="true"></div>'),Dt=e.from_html('<div class="challenge-card__new-icon svelte-1g1ytgz"><img alt="" aria-hidden="true" class="svelte-1g1ytgz"/></div>'),Tt=e.from_html("<img/>"),Nt=e.from_html('<li class="challenge-card__info-row svelte-1g1ytgz"><span class="challenge-card__info-icon svelte-1g1ytgz" aria-hidden="true"><!></span> <span class="challenge-card__info-label svelte-1g1ytgz"> </span> <span class="challenge-card__info-value svelte-1g1ytgz"> </span></li>'),qt=e.from_html('<div class="challenge-card__details-expanded svelte-1g1ytgz"><!></div>'),Lt=e.from_html('<div class="challenge-card svelte-1g1ytgz"><div class="challenge-card__header svelte-1g1ytgz"><!> <div><div class="challenge-card__badge svelte-1g1ytgz"><!></div></div> <!> <img/></div> <div class="challenge-card__content svelte-1g1ytgz"><div class="challenge-card__content--header svelte-1g1ytgz"><!> <h3 class="challenge-card__title svelte-1g1ytgz"> </h3></div> <ul class="challenge-card__info-list svelte-1g1ytgz"><li class="challenge-card__info-row svelte-1g1ytgz"><span class="challenge-card__info-icon svelte-1g1ytgz" aria-hidden="true"><!></span> <span class="challenge-card__info-label svelte-1g1ytgz"> </span> <span class="challenge-card__info-value svelte-1g1ytgz"> </span></li> <!> <li class="challenge-card__info-row svelte-1g1ytgz"><span class="challenge-card__info-icon svelte-1g1ytgz" aria-hidden="true"><!></span> <span class="challenge-card__info-label svelte-1g1ytgz"> </span> <span class="challenge-card__info-value svelte-1g1ytgz"> </span></li></ul> <p class="challenge-card__terms svelte-1g1ytgz"><a target="_blank" rel="noopener noreferrer" class="challenge-card__terms--link svelte-1g1ytgz"> <span class="challenge-card__terms--icon svelte-1g1ytgz" aria-hidden="true"><!></span></a> </p></div> <div class="challenge-card__challenge--progress svelte-1g1ytgz"><!></div> <div class="challenge-card__footer svelte-1g1ytgz"><div class="challenge-card__footer-action-button svelte-1g1ytgz"><button><span class="svelte-1g1ytgz"> </span> <span><!></span></button> <!></div> <!></div></div>');const Ut={hash:"svelte-1g1ytgz",code:`.challenge-card.svelte-1g1ytgz {box-sizing:border-box;width:100%;max-width:340px;display:flex;flex-direction:column;background:var(--bg-surface-level-1, rgba(2, 38, 82, 1));border:1px solid var(--border-subtle, rgba(251, 251, 251, 0.05));border-radius:8px;padding:12px;gap:16px;:where(.svelte-1g1ytgz) {box-sizing:border-box;}.challenge-card__header:where(.svelte-1g1ytgz) {position:relative;}.challenge-card__overlay:where(.svelte-1g1ytgz) {position:absolute;inset:8px 8px 16px 8px;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;}.challenge-card__badge:where(.svelte-1g1ytgz) {min-width:0;max-width:100%;}.challenge-card__new-icon:where(.svelte-1g1ytgz) {position:absolute;right:8px;top:8px;& img:where(.svelte-1g1ytgz) {width:24px;height:24px;}}.challenge-card__overlay--tagged:where(.svelte-1g1ytgz) {right:48px;}.challenge-card__image:where(.svelte-1g1ytgz) {display:block;width:100%;aspect-ratio:21 / 9;object-fit:cover;height:120px;border:1px solid var(--border-strong, rgba(251, 251, 251, 0.2));border-radius:13px;box-shadow:0px 4px 12.5px 0px rgba(255, 255, 255, 0.15);box-sizing:border-box;}.challenge-card__image--inactive:where(.svelte-1g1ytgz) {filter:grayscale(1) brightness(0.45);}.challenge-card__image--placeholder:where(.svelte-1g1ytgz) {object-fit:contain;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));}.challenge-card__image-scrim:where(.svelte-1g1ytgz) {position:absolute;inset:0;border-radius:13px;pointer-events:none;background:linear-gradient(180deg, rgba(10, 12, 24, 0) 50%, #0a0c18 100%),
|
|
2
2
|
linear-gradient(0deg, rgba(10, 12, 24, 0.6), rgba(10, 12, 24, 0.6));box-shadow:0px 4px 12.5px 0px rgba(255, 255, 255, 0.15);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);}.challenge-card__content:where(.svelte-1g1ytgz) {display:flex;flex-direction:column;gap:12px;}.challenge-card__content--header:where(.svelte-1g1ytgz) {display:flex;justify-content:space-between;align-items:flex-start;gap:8px;}.challenge-card__content--header:where(.svelte-1g1ytgz) img:where(.svelte-1g1ytgz) {flex-shrink:0;}.challenge-card__title:where(.svelte-1g1ytgz) {margin:0;font-size:16px;font-weight:700;font-size:bold;color:var(--text-default, rgba(255, 255, 255, 1));flex:1;}.challenge-card__info-list:where(.svelte-1g1ytgz) {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;}.challenge-card__info-row:where(.svelte-1g1ytgz) {display:flex;gap:8px;font-size:14px;line-height:1.4;}.challenge-card__info-icon:where(.svelte-1g1ytgz) {display:flex;flex-shrink:0;color:var(--text-subtle, rgba(223, 227, 232, 1));}.challenge-card__info-label:where(.svelte-1g1ytgz) {font-size:12px;font-weight:400;color:var(--text-subtle, rgba(223, 227, 232, 1));flex-shrink:0;}.challenge-card__info-value:where(.svelte-1g1ytgz) {font-size:12px;font-weight:400;color:var(--text-brand, rgba(255, 204, 0, 1));}.challenge-card__terms:where(.svelte-1g1ytgz) {margin:0;font-size:12px;font-weight:400;color:var(--text-subtle, rgba(223, 227, 232, 1));}.challenge-card__terms--link:where(.svelte-1g1ytgz) {display:inline-flex;align-items:center;gap:4px;color:var(--border-info, rgba(110, 181, 255, 1));text-decoration:none;margin-right:4px;border-bottom:1px solid currentColor;}.challenge-card__terms--icon:where(.svelte-1g1ytgz) {display:block;}.challenge-card__details-expanded:where(.svelte-1g1ytgz) {box-sizing:border-box;padding:12px 10px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:16px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));border:1px solid var(--border-subtle, rgba(251, 251, 251, 0.05));border-radius:0px 6px 6px 6px;align-self:stretch;}.challenge-card__footer:where(.svelte-1g1ytgz) {width:100%;}.challenge-card__footer-action-button:where(.svelte-1g1ytgz) {width:100%;display:flex;align-items:stretch;display:flex;gap:8px;}.challenge-card__view-details--button:where(.svelte-1g1ytgz) {flex:1;display:flex;align-items:center;justify-content:space-between;padding:8px 16px 8px 16px;background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));border:1px solid var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));border-radius:6px;color:var(--button-secondary-text-default, rgba(255, 255, 255, 1));font-size:12px;cursor:pointer;backdrop-filter:blur(33px);font-weight:400;height:37px;appearance:none;-webkit-appearance:none;-webkit-tap-highlight-color:transparent;&:focus:not(:focus-visible) {outline:none;}&:active {background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));}}.challenge-card__view-details--button.expanded:where(.svelte-1g1ytgz) {border-width:1px, 1px, 0px, 1px;border-style:solid;border-color:var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));border-radius:6px 6px 0 0;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));height:45px;border-bottom:none;}.challenge-card__view-details-icon:where(.svelte-1g1ytgz) {display:flex;transition:transform 0.2s ease;fill:var(--icon-brand, rgba(255, 204, 0, 1));color:var(--icon-brand, rgba(255, 204, 0, 1));}.challenge-card__view-details-icon.expanded:where(.svelte-1g1ytgz) {transform:rotate(180deg);}.challenge-card__challenge--progress:where(.svelte-1g1ytgz) {width:100%;display:flex;
|
|
3
3
|
/* Holds the rail against the footer so it lines up across cards of unequal text height. */margin-top:auto;}}
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as pe, c as ue, d as ge, h as ve, p, w as me, x as he, au as fe, aB as _e, y as xe, G as be, aF as ke, A as ye, t as F, a as D, b as we, k as H, e as u, m as Ce, n as L, B as t, r as N, D as U, E as g, F as x, o as z, aG as Ee, i as b, aH as Te, s as M, j as B, l as Ie, $ as Se, R as k, P as n, aI as Ae, an as Fe, ao as K, ap as De, aq as Le } from "./ChallengeTabs-
|
|
1
|
+
import { g as pe, c as ue, d as ge, h as ve, p, w as me, x as he, au as fe, aB as _e, y as xe, G as be, aF as ke, A as ye, t as F, a as D, b as we, k as H, e as u, m as Ce, n as L, B as t, r as N, D as U, E as g, F as x, o as z, aG as Ee, i as b, aH as Te, s as M, j as B, l as Ie, $ as Se, R as k, P as n, aI as Ae, an as Fe, ao as K, ap as De, aq as Le } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
2
|
import { a as Ne } from "./translations-BSuAza-E.js";
|
|
3
3
|
import { C as Q, b as Ue, c as ze, P as Me } from "./constants-BcSpy2nX.js";
|
|
4
4
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),Q=require("./translations-FyoqR3gH.cjs"),d=require("./constants-DjpdyteO.cjs");var W=e.from_html('<div class="challenge-claim-code__container svelte-19pv5fk"><p class="challenge-claim-code__title svelte-19pv5fk"> </p> <div class="challenge-claim-code__content svelte-19pv5fk"><input id="challenge-claim-code-input" name="claimCode" type="text"/> <p> </p></div> <button class="challenge-claim-code__button svelte-19pv5fk"> </button></div>'),Y=e.from_html('<p class="challenge-claim-code__anonymous svelte-19pv5fk"> </p>'),Z=e.from_html("<div><!></div>");const $={hash:"svelte-19pv5fk",code:`.challenge-claim-code.svelte-19pv5fk {width:100%;display:flex;justify-content:center;margin-top:100px;.challenge-claim-code__container:where(.svelte-19pv5fk) {width:281px;display:flex;justify-content:center;flex-direction:column;gap:28px;.challenge-claim-code__title:where(.svelte-19pv5fk) {font-size:16px;font-weight:400;line-height:24px;color:var(--text-subtle, rgba(255, 255, 255, 1));text-align:center;margin:0;}.challenge-claim-code__content:where(.svelte-19pv5fk) {display:flex;align-items:center;text-align:center;flex-direction:column;gap:12px;width:100%;.challenge-claim-code__input:where(.svelte-19pv5fk) {box-sizing:border-box;border-radius:6px;border:1px solid var(--input-border-hover, rgba(251, 251, 251, 0.05));background-color:var(--bg-overlay-neutral-level-3, rgba(251, 251, 251, 0.15));color:var(--input-text-active, rgba(255, 255, 255, 1));font-size:14px;font-weight:400;padding:12px 16px;line-height:125%;width:100%;text-align:center;}.challenge-claim-code__input:where(.svelte-19pv5fk)::placeholder {color:var(--color-text-input, rgba(251, 251, 251, 0.25));text-transform:uppercase;}.challenge-claim-code__input:where(.svelte-19pv5fk):focus {outline:none;}.challenge-claim-code__input.errored:where(.svelte-19pv5fk) {border-color:var(--semantic-error-500, rgba(235, 0, 0, 1));}.challenge-claim-code__rule:where(.svelte-19pv5fk) {font-weight:400;font-size:12px;line-height:24px;color:var(--text-subtle, rgba(255, 255, 255, 1));width:100%;margin:0;}.challenge-claim-code__rule.errored:where(.svelte-19pv5fk) {color:var(--semantic-error-500, rgba(235, 0, 0, 1));}}.challenge-claim-code__button:where(.svelte-19pv5fk) {background-color:var(--button-primary-bg-default, rgba(255, 204, 0, 1));display:flex;flex-direction:row;justify-content:center;align-items:center;padding:8px 16px;height:33px;border-radius:6px;border:none;font-weight:700;font-size:12px;color:var(--button-primary-text-default, #FFFFFF);}.challenge-claim-code__button:where(.svelte-19pv5fk):disabled {opacity:50%;cursor:not-allowed;}.challenge-claim-code__button:where(.svelte-19pv5fk):hover {background-color:var(--button-primary-bg-hover, rgba(199, 158, 0, 1));}}.challenge-claim-code__anonymous:where(.svelte-19pv5fk) {margin:0;text-align:center;font-size:13px;color:var(--text-subtle, rgba(251, 251, 251, 0.5));}}
|
|
2
2
|
@media (max-width: 767px) {.challenge-claim-code.svelte-19pv5fk {margin-top:20px;}
|
|
3
3
|
}.challenge-claim-code.anonymous.svelte-19pv5fk {padding:32px 12px;text-align:center;margin:0;}`};function F(w,o){e.push(o,!0),e.append_styles(w,$);const i=()=>e.store_get(e.$format,"$_",M),[M,U]=e.setup_stores(),p=e.prop(o,"endpoint",7),s=e.prop(o,"userSession",7),g=e.prop(o,"locale",7,"en"),u=e.prop(o,"translationUrl",7),v=e.prop(o,"domainId",7);e.untrack(()=>e.initI18n(g(),Q.TRANSLATIONS$1)),e.user_pre_effect(()=>{u()&&e.loadTranslationUrl(u(),"challenge-claim-code")}),e.user_effect(()=>{e.setLocale(g()||"en")});let a=e.state(""),c=e.state(null),h=e.state(!1),m=e.state(!1),f;const E=t=>t.length>=d.CODE_MIN_LENGTH&&t.length<=d.CODE_MAX_LENGTH&&d.PRINTABLE_ASCII.test(t),z=e.user_derived(()=>E(e.get(a))),x=e.user_derived(()=>e.get(m)||!!e.get(c)),O=e.user_derived(()=>!!p()&&!!s()&&!!v()),S=e.user_derived(()=>e.get(z)&&!e.get(h)&&e.get(O)),T=e.user_derived(()=>!s()),H=t=>{const l=t.target;e.set(a,l.value,!0),e.set(c,null),clearTimeout(f),f=setTimeout(()=>{e.set(m,!!e.get(a)&&!E(e.get(a)),!0)},d.CODE_DEBOUNCE_MS)},I=async()=>{if(e.get(S)){e.set(h,!0),e.set(c,null);try{await e.grantChallengeByCode({endpoint:p(),domainId:v(),sessionId:s(),code:e.get(a)}),e.set(a,""),e.set(m,!1),e.sendChallengeActionSuccess(e.ChallengeAction.Claim)}catch(t){const l=t instanceof e.ChallengeApiError?t.errorCode:null,r=t instanceof Error?t.message:String(t);e.set(c,r,!0),e.sendChallengeActionFail(e.ChallengeAction.Claim,r,l??void 0)}finally{e.set(h,!1)}}};e.onDestroy(()=>clearTimeout(f));var j={get endpoint(){return p()},set endpoint(t){p(t),e.flushSync()},get userSession(){return s()},set userSession(t){s(t),e.flushSync()},get locale(){return g()},set locale(t="en"){g(t),e.flushSync()},get translationUrl(){return u()},set translationUrl(t){u(t),e.flushSync()},get domainId(){return v()},set domainId(t){v(t),e.flushSync()}},_=Z();let A;var q=e.child(_);{var B=t=>{var l=W(),r=e.child(l),b=e.only_child(r,!0),y=e.sibling(r,2),n=e.child(y);e.remove_input_defaults(n);let L;var N=e.sibling(n,2);let D;var V=e.only_child(N,!0);e.reset(y);var k=e.sibling(y,2),P=e.only_child(k,!0);e.reset(l),e.template_effect((C,X,J,K)=>{e.set_text(b,C),L=e.set_class(n,1,"challenge-claim-code__input svelte-19pv5fk",null,L,{errored:e.get(x)}),e.set_value(n,e.get(a)),e.set_attribute(n,"maxlength",d.CODE_MAX_LENGTH),e.set_attribute(n,"placeholder",X),e.set_attribute(n,"aria-invalid",e.get(x)),D=e.set_class(N,1,"challenge-claim-code__rule svelte-19pv5fk",null,D,{errored:e.get(x)}),e.set_text(V,J),k.disabled=!e.get(S),e.set_text(P,K)},[()=>i()("claimCodeTitle"),()=>i()("claimCodePlaceholder"),()=>e.get(c)??i()("claimCodeRuleText"),()=>i()("applyCode")]),e.delegated("input",n,H),e.delegated("keydown",n,C=>C.key==="Enter"&&I()),e.delegated("click",k,I),e.append(t,l)},G=t=>{var l=Y(),r=e.only_child(l,!0);e.template_effect(b=>e.set_text(r,b),[()=>i()("claimCodeAnonymous")]),e.append(t,l)};e.if_block(q,t=>{e.get(T)?t(G,-1):t(B)})}e.reset(_),e.template_effect(()=>A=e.set_class(_,1,"challenge-claim-code svelte-19pv5fk",null,A,{anonymous:e.get(T)})),e.append(w,_);var R=e.pop(j);return U(),R}e.delegate(["input","keydown","click"]);e.create_custom_element(F,{endpoint:{},userSession:{},locale:{},translationUrl:{},domainId:{}},[],[],{mode:"open"});exports.ChallengeClaimCode=F;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),de=require("./translations-FyoqR3gH.cjs"),H=require("./types-BS-x0LbR.cjs"),M=require("./helpers-Za4oasat.cjs"),ge=require("./ChallengeBanner-ByzDXXqn.cjs"),oe=require("./ChallengeSummary-C37YVioc.cjs"),ue=require("./ChallengeTabPanel-Dav8iUp5.cjs"),O=require("./ChallengeDetailsSkeleton-DsOKsD1R.cjs");var W=e.from_html('<aside class="challenge-details__aside svelte-sqd80r"><!></aside>'),ce=e.from_html('<div><!> <div class="challenge-details__body svelte-sqd80r"><!> <div class="challenge-details__main svelte-sqd80r"><!></div></div></div>'),he=e.from_html('<div><!> <div class="challenge-details__body svelte-sqd80r"><!> <div class="challenge-details__main svelte-sqd80r"><!> <!></div></div></div>');const fe={hash:"svelte-sqd80r",code:`.challenge-details.svelte-sqd80r {display:flex;flex-direction:column;gap:22px;width:100%;box-sizing:border-box;padding:24px;background:var(--bg-surface-level-1, rgba(2, 38, 82, 1));border:1px solid var(--border-subtle, rgba(251, 251, 251, 0.05));border-radius:8px;.challenge-details__body:where(.svelte-sqd80r) {display:grid;grid-template-columns:minmax(240px, 30%) 1fr;gap:32px;align-items:start;}.challenge-details__aside:where(.svelte-sqd80r),
|
|
2
2
|
.challenge-details__main:where(.svelte-sqd80r) {min-width:0;}.challenge-details__main:where(.svelte-sqd80r) {display:flex;flex-direction:column;gap:16px;}}.challenge-details--bare.svelte-sqd80r .challenge-details__body:where(.svelte-sqd80r) {grid-template-columns:1fr;gap:0;}
|
|
3
3
|
|
|
4
4
|
@media (max-width: 767px) {.challenge-details.svelte-sqd80r .challenge-details__body:where(.svelte-sqd80r) {grid-template-columns:1fr;gap:16px;}.challenge-details.svelte-sqd80r {padding:0;background:transparent;border:none;}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as we, d as xe, h as Ue, p as l, w as p, x as qe, au as Ee, y as P, G as Le, R as M, T as $, L as Fe, B as a, P as i, av as y, aw as Ge, ax as ke, ay as Ae, a6 as De, K as Ne, A as F, a as G, b as Ve, E as k, az as Be, aA as He, e as r, aB as ze, N as ee, a9 as oe, aC as Me, n as f, o as A, r as b, t as ge, D as ue, aD as Oe, k as te, aE as Re, ak as Ke } from "./ChallengeTabs-
|
|
1
|
+
import { c as we, d as xe, h as Ue, p as l, w as p, x as qe, au as Ee, y as P, G as Le, R as M, T as $, L as Fe, B as a, P as i, av as y, aw as Ge, ax as ke, ay as Ae, a6 as De, K as Ne, A as F, a as G, b as Ve, E as k, az as Be, aA as He, e as r, aB as ze, N as ee, a9 as oe, aC as Me, n as f, o as A, r as b, t as ge, D as ue, aD as Oe, k as te, aE as Re, ak as Ke } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
2
|
import { T as je } from "./translations-BSuAza-E.js";
|
|
3
3
|
import { C as Je, t as ce } from "./types-C1hrKH4R.js";
|
|
4
|
-
import { g as he, e as Qe } from "./helpers-
|
|
5
|
-
import { C as We } from "./ChallengeBanner-
|
|
6
|
-
import { C as Xe } from "./ChallengeSummary-
|
|
7
|
-
import { C as Ye } from "./ChallengeTabPanel-
|
|
8
|
-
import { C as ae } from "./ChallengeDetailsSkeleton-
|
|
4
|
+
import { g as he, e as Qe } from "./helpers-4M9dJQ89.js";
|
|
5
|
+
import { C as We } from "./ChallengeBanner-C4f--bCT.js";
|
|
6
|
+
import { C as Xe } from "./ChallengeSummary-CkrogcIj.js";
|
|
7
|
+
import { C as Ye } from "./ChallengeTabPanel-BPBeq2_F.js";
|
|
8
|
+
import { C as ae } from "./ChallengeDetailsSkeleton-BdIJSnSi.js";
|
|
9
9
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
10
10
|
}, globalThis.customElements = { define() {
|
|
11
11
|
}, get() {
|
package/components/{ChallengeDetailsSkeleton-M5rC4gwT.js → ChallengeDetailsSkeleton-BdIJSnSi.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as $, d as ee, h as le, p as A, a6 as ae, K as I, A as S, a as l, b as se, e as R, o as g, n as w, ad as o, ah as d, r, at as te, k as s, D as ne, a8 as N } from "./ChallengeTabs-
|
|
1
|
+
import { c as $, d as ee, h as le, p as A, a6 as ae, K as I, A as S, a as l, b as se, e as R, o as g, n as w, ad as o, ah as d, r, at as te, k as s, D as ne, a8 as N } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
2
|
import { C as z } from "./types-C1hrKH4R.js";
|
|
3
3
|
import { G as re } from "./constants-BcSpy2nX.js";
|
|
4
4
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
package/components/{ChallengeDetailsSkeleton--laE6pYH.cjs → ChallengeDetailsSkeleton-DsOKsD1R.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),u=require("./types-BS-x0LbR.cjs"),F=require("./constants-DjpdyteO.cjs");var H=e.from_html('<div class="challenge-details__skeleton--banner svelte-1v5lraf" aria-busy="true" aria-live="polite"></div>'),P=e.from_html('<li class="challenge-details__skeleton--summary-row svelte-1v5lraf"><span class="challenge-details__skeleton--box challenge-details__skeleton--summary-icon svelte-1v5lraf"></span> <span class="challenge-details__skeleton--box challenge-details__skeleton--summary-label svelte-1v5lraf"></span> <span class="challenge-details__skeleton--box svelte-1v5lraf"></span></li>'),T=e.from_html('<span class="challenge-details__skeleton--box svelte-1v5lraf"></span>'),Y=e.from_html('<div class="challenge-details__skeleton--summary svelte-1v5lraf" aria-busy="true" aria-live="polite"><span class="challenge-details__skeleton--box challenge-details__skeleton--summary-title svelte-1v5lraf"></span> <ul class="challenge-details__skeleton--summary-info svelte-1v5lraf"></ul> <p class="challenge-details__skeleton--summary-terms svelte-1v5lraf"></p> <div class="challenge-details__skeleton--summary-action svelte-1v5lraf"><span class="challenge-details__skeleton--box challenge-details__skeleton--summary-button svelte-1v5lraf"></span></div></div>'),B=e.from_html('<span class="challenge-details__skeleton--tab svelte-1v5lraf"><span class="challenge-details__skeleton--box svelte-1v5lraf"></span></span>'),Z=e.from_html('<div class="challenge-details__skeleton--tabs svelte-1v5lraf"></div>'),J=e.from_html('<span class="challenge-details__skeleton--box challenge-details__skeleton--game svelte-1v5lraf"></span>'),K=e.from_html('<div class="challenge-details__skeleton--games svelte-1v5lraf"></div>'),Q=e.from_html('<p class="challenge-details__skeleton--event svelte-1v5lraf"><span class="challenge-details__skeleton--box svelte-1v5lraf"></span></p>'),X=e.from_html('<div class="challenge-details__skeleton--events svelte-1v5lraf"></div>'),$=e.from_html('<div class="challenge-details__skeleton--rules-item svelte-1v5lraf"><span class="challenge-details__skeleton--box short svelte-1v5lraf"></span> <span class="challenge-details__skeleton--box svelte-1v5lraf"></span></div>'),ee=e.from_html('<div class="challenge-details__skeleton--rules svelte-1v5lraf"><div class="challenge-details__skeleton--paragraph svelte-1v5lraf"></div> <span class="challenge-details__skeleton--rules-link svelte-1v5lraf"><span class="challenge-details__skeleton--box svelte-1v5lraf"></span></span> <div class="challenge-details__skeleton--opt-out svelte-1v5lraf"><span class="challenge-details__skeleton--box svelte-1v5lraf"></span> <span class="challenge-details__skeleton--rules-button svelte-1v5lraf"><span class="challenge-details__skeleton--box svelte-1v5lraf"></span></span></div> <div class="challenge-details__skeleton--rules-details svelte-1v5lraf"></div></div>'),le=e.from_html('<li class="challenge-details__skeleton--level-row svelte-1v5lraf"><span class="challenge-details__skeleton--box challenge-details__skeleton--level-icon svelte-1v5lraf"></span> <span class="challenge-details__skeleton--box svelte-1v5lraf"></span></li>'),ae=e.from_html('<span></span> <div class="challenge-details__skeleton--level svelte-1v5lraf"><span class="challenge-details__skeleton--box challenge-details__skeleton--level-name svelte-1v5lraf"></span> <ul class="challenge-details__skeleton--level-info svelte-1v5lraf"></ul></div>',1),se=e.from_html('<div class="challenge-details__skeleton--levels svelte-1v5lraf"></div>'),te=e.from_html('<div class="challenge-details__skeleton--panel svelte-1v5lraf" aria-busy="true" aria-live="polite"><!> <!></div>');const ne={hash:"svelte-1v5lraf",code:`.challenge-details__skeleton--banner.svelte-1v5lraf,
|
|
2
2
|
.challenge-details__skeleton--box.svelte-1v5lraf,
|
|
3
3
|
.challenge-details__skeleton--node.svelte-1v5lraf {border-radius:6px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
4
4
|
animation: svelte-1v5lraf-challenge-details-skeleton-pulse 1.2s ease-in-out infinite;}.challenge-details__skeleton--box.svelte-1v5lraf,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as k, d as w, h as E, p as y, ad as I, B as t, a as c, b as T, k as u, E as p, e as C, m as N, n as R, F as S, r as d, t as H, i as L, l as M, $ as O } from "./ChallengeTabs-
|
|
2
|
-
import { s as j, a as z } from "./helpers-
|
|
1
|
+
import { c as k, d as w, h as E, p as y, ad as I, B as t, a as c, b as T, k as u, E as p, e as C, m as N, n as R, F as S, r as d, t as H, i as L, l as M, $ as O } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { s as j, a as z } from "./helpers-4M9dJQ89.js";
|
|
3
3
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
4
|
}, globalThis.customElements = { define() {
|
|
5
5
|
}, get() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),c=require("./helpers-Za4oasat.cjs");var x=e.from_html('<p class="challenge-details__events--rule svelte-579ku1"><span class="challenge-details__events--rule-name svelte-579ku1"> </span></p>'),$=e.from_html('<div class="challenge-details__tab-panel challenge-details__events svelte-579ku1"></div>');const w={hash:"svelte-579ku1",code:".challenge-details__events.svelte-579ku1 {display:flex;flex-direction:column;gap:22px;padding:12px 0;color:var(--text-subtle, rgba(255, 255, 255, 1));font-weight:400;font-size:12px;line-height:18px;.challenge-details__events--rule:where(.svelte-579ku1) {margin:0;display:flex;flex-wrap:wrap;gap:4px;justify-content:space-between;align-items:baseline;}.challenge-details__events--rule-name:where(.svelte-579ku1) {min-width:0;word-break:break-word;}}"};function p(r,o){e.push(o,!0),e.append_styles(r,w);const i=()=>e.store_get(e.$format,"$_",g),[g,u]=e.setup_stores(),l=e.prop(o,"challengeItem",7),d=e.user_derived(()=>c.sortEventRules(l().SportSettings?.EventRules));var h={get challengeItem(){return l()},set challengeItem(t){l(t),e.flushSync()}},s=$();e.each(s,21,()=>e.get(d),t=>t.OrderNumber,(t,n)=>{const _=e.user_derived(()=>e.get(n).OrderNumber===0?i()("allEvents"):c.getEventRuleName(e.get(n)));var a=x(),m=e.child(a),f=e.only_child(m);e.reset(a),e.template_effect(b=>e.set_text(f,`${e.get(_)??""} - ${e.get(n).ContributionPercent??""}% ${b??""}`),[()=>i()("contribution")]),e.append(t,a)}),e.reset(s),e.append(r,s);var v=e.pop(h);return u(),v}e.create_custom_element(p,{challengeItem:{}},[],[],{mode:"open"});exports.ChallengeEvents=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as ne, c as ie, d as re, h as de, p as v, R as C, w as B, T as oe, y as D, B as a, P as i, ag as ge, A as F, a as r, b as ce, E, k as _, e as h, m as me, n as K, r as Z, a6 as pe, K as P, ad as z, ah as q, F as ve, o as L, t as he, s as O, i as ue, j as _e, l as fe, $ as be, ai as xe, aj as ke, ak as ye, a7 as Ge } from "./ChallengeTabs-
|
|
1
|
+
import { g as ne, c as ie, d as re, h as de, p as v, R as C, w as B, T as oe, y as D, B as a, P as i, ag as ge, A as F, a as r, b as ce, E, k as _, e as h, m as me, n as K, r as Z, a6 as pe, K as P, ad as z, ah as q, F as ve, o as L, t as he, s as O, i as ue, j as _e, l as fe, $ as be, ai as xe, aj as ke, ak as ye, a7 as Ge } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
2
|
import { G as u, a as Ie } from "./constants-BcSpy2nX.js";
|
|
3
3
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
4
4
|
}, globalThis.customElements = { define() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),r=require("./constants-DjpdyteO.cjs");var w=e.from_html('<div class="challenge-details__games--skeleton svelte-l5d6k5"></div>'),$=e.from_html('<button type="button" class="challenge-details__games--card svelte-l5d6k5"><span class="challenge-details__games--ctb svelte-l5d6k5"> </span> <img class="challenge-details__games--image svelte-l5d6k5" loading="lazy"/></button>'),B=e.from_html('<div class="challenge-details__games--sentinel svelte-l5d6k5"></div> <!>',1),F=e.from_html("<!> <!>",1),J=e.from_html('<div class="challenge-details__games svelte-l5d6k5"><!></div>');const K={hash:"svelte-l5d6k5",code:`.challenge-details__games.svelte-l5d6k5 {display:grid;grid-template-columns:repeat(5, 1fr);gap:12px;
|
|
2
2
|
|
|
3
3
|
@media (max-width: 767px) {grid-template-columns:repeat(3, 1fr);gap:6px;
|
|
4
4
|
}}.challenge-details__games--skeleton.svelte-l5d6k5 {width:100%;aspect-ratio:1 / 1;border-radius:6px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),tt=require("./ChevronIcon-HtcwODyx.cjs"),lt=require("./GiftIcon-pxDmtiHo.cjs"),st=require("./LinkIcon-DWGLGHt-.cjs"),rt=require("./Pagination-Bhm3RwLH.cjs"),at=require("./translations-FyoqR3gH.cjs"),N=require("./helpers-Za4oasat.cjs");var nt=e.from_html('<p class="challenge-history__anonymous svelte-1uuyh3z"> </p>'),it=e.from_html('<div class="challenge-history__skeleton svelte-1uuyh3z"></div>'),ot=e.from_html('<p class="challenge-history__empty svelte-1uuyh3z"> </p>'),ht=e.from_html("<span> </span>"),ut=e.from_html('<div><span class="challenge-history__level-item--icon svelte-1uuyh3z"><!></span> <span class="challenge-history__level--info-value svelte-1uuyh3z"> </span></div>'),dt=e.from_html('<tr class="svelte-1uuyh3z"><td class="svelte-1uuyh3z"><div class="challenge-history__level-item svelte-1uuyh3z"><span class="challenge-history__level-item--name svelte-1uuyh3z"> </span> <!></div></td><td class="svelte-1uuyh3z"><span> </span></td><td class="challenge-history__level-time svelte-1uuyh3z"> </td></tr>'),ct=e.from_html('<div class="challenge-history__details-expanded svelte-1uuyh3z"><a target="_blank" rel="noopener noreferrer" class="challenge-history__terms--link svelte-1uuyh3z"> <span class="challenge-history__terms--icon svelte-1uuyh3z" aria-hidden="true"><!></span></a> <div class="challenge-history__level-table-wrapper svelte-1uuyh3z"><table class="challenge-history__level-table svelte-1uuyh3z"><thead class="challenge-history__level-table-header svelte-1uuyh3z"><tr class="svelte-1uuyh3z"><th class="svelte-1uuyh3z"> </th><th class="svelte-1uuyh3z"> </th><th class="svelte-1uuyh3z"> </th></tr></thead><tbody class="challenge-history__level-table-body svelte-1uuyh3z"></tbody></table></div></div>'),gt=e.from_html('<div class="challenge-history__row svelte-1uuyh3z"><button type="button"><span class="challenge-history__item--name svelte-1uuyh3z"> </span> <span class="challenge-history__item--action svelte-1uuyh3z"><!> <span><!></span></span></button> <!></div>'),vt=e.from_html('<div class="challenge-history__load-more-sentinel svelte-1uuyh3z" aria-hidden="true"></div>'),_t=e.from_html("<!> <!> <!>",1),pt=e.from_html("<div><!></div>");const yt={hash:"svelte-1uuyh3z",code:`.challenge-history.svelte-1uuyh3z {padding:10px 0;display:flex;flex-direction:column;gap:12px;}.challenge-history__load-more-sentinel.svelte-1uuyh3z {width:100%;height:1px;}.challenge-history__row.svelte-1uuyh3z {display:flex;flex-direction:column;}.challenge-history__skeleton.svelte-1uuyh3z {height:60px;border-radius:12px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
2
2
|
animation: svelte-1uuyh3z-challenge-history-pulse 1.2s ease-in-out infinite;}
|
|
3
3
|
|
|
4
4
|
@keyframes svelte-1uuyh3z-challenge-history-pulse {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as bt, c as xt, d as zt, h as wt, p as b, w as kt, x as It, au as St, aB as Mt, y as ge, G as Tt, R as A, T as je, B as e, A as N, t as x, a as i, b as Ct, E as z, aL as Lt, P as n, aM as At, k as v, e as w, m as Nt, n as l, r as a, D, F as d, i as u, K as _e, o, l as Pt, $ as Et, a6 as He, ad as ye, s as pe, j as Ut, a7 as Rt } from "./ChallengeTabs-
|
|
2
|
-
import { C as jt } from "./ChevronIcon-
|
|
3
|
-
import { G as Ht } from "./GiftIcon-
|
|
4
|
-
import { L as Dt } from "./LinkIcon-
|
|
5
|
-
import { P as Ot } from "./Pagination-
|
|
1
|
+
import { g as bt, c as xt, d as zt, h as wt, p as b, w as kt, x as It, au as St, aB as Mt, y as ge, G as Tt, R as A, T as je, B as e, A as N, t as x, a as i, b as Ct, E as z, aL as Lt, P as n, aM as At, k as v, e as w, m as Nt, n as l, r as a, D, F as d, i as u, K as _e, o, l as Pt, $ as Et, a6 as He, ad as ye, s as pe, j as Ut, a7 as Rt } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { C as jt } from "./ChevronIcon-BsSMnLDy.js";
|
|
3
|
+
import { G as Ht } from "./GiftIcon-CGxyDjCt.js";
|
|
4
|
+
import { L as Dt } from "./LinkIcon-LXZ_j-cE.js";
|
|
5
|
+
import { P as Ot } from "./Pagination-DEIFcNa_.js";
|
|
6
6
|
import { b as Gt } from "./translations-BSuAza-E.js";
|
|
7
|
-
import { f as Bt, h as Ft, i as Kt, j as qt, k as Jt } from "./helpers-
|
|
7
|
+
import { f as Bt, h as Ft, i as Kt, j as qt, k as Jt } from "./helpers-4M9dJQ89.js";
|
|
8
8
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
9
9
|
}, globalThis.customElements = { define() {
|
|
10
10
|
}, get() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as Ce, c as Pe, d as Se, h as Te, p as V, R, T as X, y as $e, B as e, a8 as Y, o as p, ad as Ee, ae as ze, a as h, b as Re, P as W, k as _, E as r, af as We, n as o, e as Z, m as Ge, N as Oe, F as G, A as q, r as i, t as I, D as ee, i as O, _ as Ae, a1 as De, a7 as le, s as ae, j as je, l as He, $ as Me, a9 as te, ab as Ne } from "./ChallengeTabs-
|
|
2
|
-
import { L as Be } from "./LockIcon-
|
|
3
|
-
import { G as Fe } from "./GiftIcon-
|
|
4
|
-
import { T as Je } from "./TargetIcon-
|
|
5
|
-
import { C as Ke } from "./CheckIcon-
|
|
6
|
-
import { C as Qe } from "./ChevronIcon-
|
|
7
|
-
import { C as Ue } from "./ChallengeProgress-
|
|
1
|
+
import { g as Ce, c as Pe, d as Se, h as Te, p as V, R, T as X, y as $e, B as e, a8 as Y, o as p, ad as Ee, ae as ze, a as h, b as Re, P as W, k as _, E as r, af as We, n as o, e as Z, m as Ge, N as Oe, F as G, A as q, r as i, t as I, D as ee, i as O, _ as Ae, a1 as De, a7 as le, s as ae, j as je, l as He, $ as Me, a9 as te, ab as Ne } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { L as Be } from "./LockIcon-DVWzhbJi.js";
|
|
3
|
+
import { G as Fe } from "./GiftIcon-CGxyDjCt.js";
|
|
4
|
+
import { T as Je } from "./TargetIcon-Dq082mBh.js";
|
|
5
|
+
import { C as Ke } from "./CheckIcon-b6YSOHVD.js";
|
|
6
|
+
import { C as Qe } from "./ChevronIcon-BsSMnLDy.js";
|
|
7
|
+
import { C as Ue } from "./ChallengeProgress-DTh7K-sN.js";
|
|
8
8
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
9
9
|
}, globalThis.customElements = { define() {
|
|
10
10
|
}, get() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),oe=require("./LockIcon-BbtIAyXX.cjs"),de=require("./GiftIcon-pxDmtiHo.cjs"),ce=require("./TargetIcon-CKQJBgFo.cjs"),ge=require("./CheckIcon-_cdi2aOf.cjs"),ve=require("./ChevronIcon-HtcwODyx.cjs"),pe=require("./ChallengeProgress-BUrXyqQy.cjs");var _e=e.from_html('<span class="challenge-details__level-item--icon-completed svelte-1oq9gyn"><!></span>'),he=e.from_html('<span class="challenge-details__level-item--icon svelte-1oq9gyn"><!></span>'),A=e.from_html('<li class="challenge-details__level--info-row svelte-1oq9gyn"><span class="challenge-details__level--info-icon svelte-1oq9gyn"><!></span> <span class="challenge-details__level--info-value svelte-1oq9gyn"> </span></li>'),ue=e.from_html('<button type="button"><!></button>'),fe=e.from_html('<div><div class="challenge-details__level-item--header svelte-1oq9gyn"><span class="challenge-details__level-item--name svelte-1oq9gyn"> </span> <!></div> <ul class="challenge-details__level--info-list svelte-1oq9gyn"><!> <!></ul> <!></div>'),me=e.from_html('<div class="challenge-details__levels svelte-1oq9gyn"><!> <!></div>');const be={hash:"svelte-1oq9gyn",code:`.challenge-details__levels.svelte-1oq9gyn {display:grid;grid-template-columns:auto 1fr;column-gap:12px;row-gap:var(--challenge-levels-row-gap, 16px);align-items:stretch;.challenge-details__level--details-item:where(.svelte-1oq9gyn) {background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));border:1px solid var(--border-default, rgba(251, 251, 251, 0.15));box-sizing:border-box;flex-direction:column;padding:10px;border-radius:6px;gap:16px;display:flex;min-width:0;}.challenge-details__level--details-item.current:where(.svelte-1oq9gyn) {background:linear-gradient(
|
|
2
2
|
90deg,
|
|
3
3
|
color-mix(in srgb, var(--button-primary-bg-default, rgba(255, 204, 0, 0.5)) 50%, transparent) 10%,
|
|
4
4
|
color-mix(in srgb, var(--alpha-primary-50, rgba(255, 204, 0, 0.25)) 50%, transparent) 100%
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),W=require("./Pagination-Bhm3RwLH.cjs"),X=require("./ChallengeCard-_UeRbppG.cjs");var Y=e.from_html('<div class="player-challenges__skeleton svelte-xz4j00"></div>'),$=e.from_html('<div class="player-challenges__grid svelte-xz4j00"></div>'),ee=e.from_html('<p class="player-challenges__anonymous svelte-xz4j00"> </p>'),te=e.from_html('<p class="player-challenges__empty svelte-xz4j00"> </p>'),ne=e.from_html('<div class="player-challenges__load-more-sentinel svelte-xz4j00" aria-hidden="true"></div>'),le=e.from_html('<div class="player-challenges__grid svelte-xz4j00"></div> <!> <!>',1),se=e.from_html("<div><!></div>");const ae={hash:"svelte-xz4j00",code:`.player-challenges__list.svelte-xz4j00 {display:flex;flex-direction:column;gap:16px;width:100%;}.player-challenges__grid.svelte-xz4j00 {display:grid;grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));gap:12px;}.player-challenges__skeleton.svelte-xz4j00 {height:320px;border-radius:12px;background:var(--bg-overlay-neutral-level-1, rgba(251, 251, 251, 0.05));
|
|
2
2
|
animation: svelte-xz4j00-player-challenges-pulse 1.2s ease-in-out infinite;}
|
|
3
3
|
|
|
4
4
|
@keyframes svelte-xz4j00-player-challenges-pulse {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as ie, d as ge, h as de, p as a, y as ue, B as o, A, t as F, a as g, b as ce, aJ as N, R as he, k as d, e as s, m as ve, n as _e, r as H, D as me, E as K, ad as R, F as U, i as Z, K as fe, o as q, l as pe, $ as xe, a7 as ye, P as Ce } from "./ChallengeTabs-
|
|
2
|
-
import { P as ze } from "./Pagination-
|
|
3
|
-
import { C as Ie } from "./ChallengeCard-
|
|
1
|
+
import { c as ie, d as ge, h as de, p as a, y as ue, B as o, A, t as F, a as g, b as ce, aJ as N, R as he, k as d, e as s, m as ve, n as _e, r as H, D as me, E as K, ad as R, F as U, i as Z, K as fe, o as q, l as pe, $ as xe, a7 as ye, P as Ce } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { P as ze } from "./Pagination-DEIFcNa_.js";
|
|
3
|
+
import { C as Ie } from "./ChallengeCard-BNZlxERV.js";
|
|
4
4
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
5
5
|
}, globalThis.customElements = { define() {
|
|
6
6
|
}, get() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),L=require("./ChallengeProgressItem-CgzTT7-K.cjs"),a=require("./types-BS-x0LbR.cjs");var P=e.from_html("<div></div>");const j={hash:"svelte-1najbw7",code:".challenge-progress.svelte-1najbw7 {display:flex;align-items:flex-start;width:100%;}.challenge-progress.horizontal.svelte-1najbw7 {position:relative;flex-direction:row;align-items:center;width:100%;min-width:0;overflow:hidden;flex:1;overflow-x:auto;padding-top:18px;padding-left:5px;}.challenge-progress.vertical.svelte-1najbw7 {flex-direction:column;width:fit-content;}.challenge-progress.synced.svelte-1najbw7 {display:contents;}"};function b(_,n){e.push(n,!0),e.append_styles(_,j);const g=e.prop(n,"challenge",7),l=e.prop(n,"orientation",23,()=>a.ORIENTATION.vertical),p=e.prop(n,"isExpired",7,!1),f=e.prop(n,"isPaused",7,!1),i=e.prop(n,"syncRows",7,!1),v=e.prop(n,"rowGap",7,0),m=e.prop(n,"isAnonymous",7),o=e.user_derived(()=>g().LevelProgresses??[]),E=e.user_derived(()=>g().Status),x=e.user_derived(()=>!m()&&e.isOptedIn(g())),N=e.user_derived(()=>e.get(o).length>0),I=e.user_derived(()=>l()===a.ORIENTATION.horizontal&&e.get(o).length>=5),y=e.user_derived(()=>{if(l()!==a.ORIENTATION.horizontal||!e.get(o).length)return-1;let t=-1,c=-1;return e.get(o).forEach((r,d)=>{const h=e.getLevelDisplayStatus(r,e.get(E));h==="completed"&&(t=d),h==="current"&&(c=d)}),t>=0?t:c>=0?c:0});let u=e.state(void 0),w=e.state(e.proxy([]));e.user_effect(()=>{if(!e.get(u)||e.get(y)<0)return;if(e.get(y)===0){e.get(u).scrollLeft=0;return}const t=e.get(w)[e.get(y)];t&&(e.get(u).scrollLeft=t.offsetLeft)});var O={get challenge(){return g()},set challenge(t){g(t),e.flushSync()},get orientation(){return l()},set orientation(t=a.ORIENTATION.vertical){l(t),e.flushSync()},get isExpired(){return p()},set isExpired(t=!1){p(t),e.flushSync()},get isPaused(){return f()},set isPaused(t=!1){f(t),e.flushSync()},get syncRows(){return i()},set syncRows(t=!1){i(t),e.flushSync()},get rowGap(){return v()},set rowGap(t=0){v(t),e.flushSync()},get isAnonymous(){return m()},set isAnonymous(t){m(t),e.flushSync()}},s=P();let T;return e.each(s,23,()=>e.get(o),t=>t.LevelId,(t,c,r)=>{{let d=e.user_derived(()=>e.get(r)===e.get(o).length-1),h=e.user_derived(()=>e.get(r)+1===e.get(o).length-1),S=e.user_derived(()=>i()?e.get(r)+1:void 0),R=e.user_derived(()=>e.get(N)&&e.get(r)===0);L.ChallengeProgressItem(t,{get level(){return e.get(c)},get nextLevel(){return e.get(o)[e.get(r)+1]},get challengeStatus(){return e.get(E)},get isExpired(){return p()},get isPaused(){return f()},get isLast(){return e.get(d)},get isNextLast(){return e.get(h)},get orientation(){return l()},get gridRow(){return e.get(S)},get showStart(){return e.get(R)},get optedIn(){return e.get(x)},get itemEl(){return e.get(w)[e.get(r)]},set itemEl(A){e.get(w)[e.get(r)]=A}})}}),e.reset(s),e.bind_this(s,t=>e.set(u,t),()=>e.get(u)),e.template_effect(()=>{T=e.set_class(s,1,"challenge-progress svelte-1najbw7",null,T,{horizontal:l()===a.ORIENTATION.horizontal,vertical:l()===a.ORIENTATION.vertical,dense:e.get(I),synced:i()}),e.set_attribute(s,"data-orientation",l()),e.set_attribute(s,"data-dense",e.get(I)),e.set_attribute(s,"data-synced",i()),e.set_style(s,i()?`--progress-row-gap: ${v()}px;`:void 0)}),e.append(_,s),e.pop(O)}e.create_custom_element(b,{challenge:{},orientation:{},isExpired:{},isPaused:{},syncRows:{},rowGap:{},isAnonymous:{}},[],[],{mode:"open"});exports.ChallengeProgress=b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as D, d as O, h as N, p as i, R as T, T as H, y as M, B as e, ad as k, a7 as B, t as X, a as q, b as F, E as s, ab as J, k as K, e as c, r as Q, P as U, D as V, s as L, a8 as W, X as Y } from "./ChallengeTabs-
|
|
2
|
-
import { C as Z } from "./ChallengeProgressItem-
|
|
1
|
+
import { c as D, d as O, h as N, p as i, R as T, T as H, y as M, B as e, ad as k, a7 as B, t as X, a as q, b as F, E as s, ab as J, k as K, e as c, r as Q, P as U, D as V, s as L, a8 as W, X as Y } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { C as Z } from "./ChallengeProgressItem-G2nUuOIK.js";
|
|
3
3
|
import { O as u } from "./types-C1hrKH4R.js";
|
|
4
4
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
5
5
|
}, globalThis.customElements = { define() {
|
package/components/{ChallengeProgressItem-Cxzfd65S.cjs → ChallengeProgressItem-CgzTT7-K.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),Qe=require("./gift-box-CwFDqbwF.cjs"),ye=require("./gift-box-gray-DxbLMUOA.cjs"),Ue=require("./gift-shine-left-sl3yV_83.cjs"),Ve=require("./gift-shine-right-97_YtLJV.cjs"),q=require("./ChipIcon-GS02_pQp.cjs"),W=require("./ChipShineIcon-13y5rm-O.cjs"),ze=require("./CheckIcon-_cdi2aOf.cjs"),Y=require("./types-BS-x0LbR.cjs");var Z=e.from_html('<span class="challenge-progress-item-marker-icon-shine svelte-bo2wdj" aria-hidden="true"><!></span> <!>',1),$=e.from_html('<div class="challenge-progress-item-marker svelte-bo2wdj"><span> </span> <span><!></span></div>'),Se=e.from_html("<div><!></div> <div><!></div>",1),Ie=e.from_html('<span class="challenge-progress-item-node-icon challenge-progress-item-node-icon-pulse svelte-bo2wdj" role="img" aria-label="Gift Box"></span>'),Pe=e.from_html('<img alt="Gift Box" class="challenge-progress-item-node-icon svelte-bo2wdj"/>'),Ce=e.from_html('<div class="challenge-progress-item-check svelte-bo2wdj"><!></div>'),Le=e.from_html("<div><!></div>"),We=e.from_html('<!> <div><div class="challenge-progress-item-node-wrapper svelte-bo2wdj"><div class="challenge-progress-item-node svelte-bo2wdj"><!> <!></div></div> <span class="challenge-progress-item-label svelte-bo2wdj"> </span></div> <!>',1),Ye=e.from_html('<div><div class="challenge-progress-item-node-wrapper svelte-bo2wdj"><!> <div class="challenge-progress-item-node svelte-bo2wdj"><!> <!></div></div> <span class="challenge-progress-item-label svelte-bo2wdj"> </span> <!></div>');const Ze={hash:"svelte-bo2wdj",code:`.challenge-progress-item.svelte-bo2wdj {display:flex;align-items:center;position:relative;}.challenge-progress-item.horizontal.svelte-bo2wdj {flex-direction:column;flex:0 0 auto;align-items:center;.challenge-progress-item-node-wrapper:where(.svelte-bo2wdj) {height:39px;}}.challenge-progress-item.vertical.svelte-bo2wdj {flex-direction:column;align-items:center;min-height:calc(56px + var(--progress-start-offset, 0px));}.challenge-progress-item.vertical.svelte-bo2wdj .challenge-progress-item-connector:where(.svelte-bo2wdj) {position:absolute;top:calc(25px + var(--progress-start-offset, 0px));left:calc(50% - 1px);width:2px;bottom:0;z-index:auto;}.challenge-progress-item.vertical.svelte-bo2wdj .challenge-progress-item-marker:where(.svelte-bo2wdj) {position:absolute;top:var(--progress-percent, 50%);left:50%;transform:translate(-50%, -50%);}.challenge-progress-item.vertical.svelte-bo2wdj .challenge-progress-item-start-connector:where(.svelte-bo2wdj) .challenge-progress-item-marker:where(.svelte-bo2wdj) {top:calc(var(--progress-percent, 50%) - 10.5px);}.challenge-progress-item.vertical.synced.svelte-bo2wdj {height:100%;min-height:0;}.challenge-progress-item.vertical.synced.another-level.svelte-bo2wdj {justify-content:center;}.challenge-progress-item.vertical.synced.svelte-bo2wdj .challenge-progress-item-connector:where(.svelte-bo2wdj) {bottom:calc(-4 * var(--progress-row-gap, 0px));}.challenge-progress-item.vertical.synced.another-level.svelte-bo2wdj .challenge-progress-item-connector:where(.svelte-bo2wdj) {top:50%;bottom:calc(-4 * var(--progress-row-gap, 0px));}.challenge-progress-item.vertical.synced.svelte-bo2wdj .challenge-progress-item-marker:where(.svelte-bo2wdj) {top:var(--progress-percent, 50%);transform:translate(-50%, -50%);}.challenge-progress-item.vertical.synced.svelte-bo2wdj .challenge-progress-item-start-connector:where(.svelte-bo2wdj) .challenge-progress-item-marker:where(.svelte-bo2wdj) {top:var(--progress-percent, 50%);}.challenge-progress-item-connector.horizontal {flex:1 1 auto;height:2px;}.challenge-progress-item-connector.horizontal.lead {flex-grow:0.4;margin-left:-10.5px;}.challenge-progress-item-connector.horizontal.lead:nth-last-child(2) {flex-grow:1;}.challenge-progress.dense .challenge-progress-item-connector.horizontal {flex:0 0 calc(20% - 32px);}.challenge-progress.dense .challenge-progress-item-connector.horizontal.lead {flex-basis:calc(0.4 * (20% - 32px));}
|
|
2
2
|
@media (max-width: 767px) {.challenge-progress.dense .challenge-progress-item-connector.horizontal {flex-basis:calc(20% - 30px);}.challenge-progress.dense .challenge-progress-item-connector.horizontal.lead {flex-basis:calc(0.4 * (20% - 30px));}
|
|
3
3
|
}.challenge-progress-item-connector.horizontal .challenge-progress-item-marker {position:absolute;top:-30px;left:var(--progress-percent, 50%);transform:translateX(-50%);}.challenge-progress-item-node-wrapper.svelte-bo2wdj {position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;}.challenge-progress-item-start-node.svelte-bo2wdj {display:flex;z-index:1;color:var(--icon-brand, rgba(255, 204, 0, 1));}.challenge-progress-item-start-node.horizontal.svelte-bo2wdj {flex:0 0 auto;height:32px;align-items:center;justify-content:center;}
|
|
4
4
|
@media (max-width: 767px) {.challenge-progress-item-start-node.horizontal.svelte-bo2wdj {height:30px;}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as gr, d as dr, h as pr, p as y, a6 as vr, K as D, A as v, a as g, b as hr, e as z, m as br, o as p, n as o, B as e, r as n, F as Y, a7 as mr, t as w, D as h, s as l, i as Z, a8 as K, k as M, E as i, a9 as ur, aa as Ae, l as wr, $ as xr, ab as De, ac as fr } from "./ChallengeTabs-
|
|
1
|
+
import { c as gr, d as dr, h as pr, p as y, a6 as vr, K as D, A as v, a as g, b as hr, e as z, m as br, o as p, n as o, B as e, r as n, F as Y, a7 as mr, t as w, D as h, s as l, i as Z, a8 as K, k as M, E as i, a9 as ur, aa as Ae, l as wr, $ as xr, ab as De, ac as fr } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
2
|
import { G as _r } from "./gift-box-BcvZI7Gc.js";
|
|
3
3
|
import { G as He } from "./gift-box-gray-DcOvqkwI.js";
|
|
4
4
|
import { G as jr } from "./gift-shine-left-ylsmHXUO.js";
|
|
5
5
|
import { G as kr } from "./gift-shine-right-Dv2rDIbi.js";
|
|
6
|
-
import { C as $ } from "./ChipIcon-
|
|
7
|
-
import { C as pe } from "./ChipShineIcon-
|
|
8
|
-
import { C as Xe } from "./CheckIcon-
|
|
6
|
+
import { C as $ } from "./ChipIcon-DvWRsQ0Q.js";
|
|
7
|
+
import { C as pe } from "./ChipShineIcon-2b4urtuI.js";
|
|
8
|
+
import { C as Xe } from "./CheckIcon-b6YSOHVD.js";
|
|
9
9
|
import { O as ve } from "./types-C1hrKH4R.js";
|
|
10
10
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
11
11
|
}, globalThis.customElements = { define() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as ve, c as _e, d as he, h as fe, p as _, y as me, al as xe, o as n, A, t as S, B as s, i as r, a as w, b as be, P as F, am as Ce, a9 as K, an as ye, ao as $, ap as Ie, aq as Oe, k as M, n as u, l as Se, $ as we, E as h, F as o, e as f, m as Te, R as J, ar as Ee, r as c, j as ke, as as Ae, ak as Fe } from "./ChallengeTabs-
|
|
2
|
-
import { b as Ke, c as Me, d as Pe } from "./helpers-
|
|
3
|
-
import { E as Re } from "./ExistIcon-
|
|
1
|
+
import { g as ve, c as _e, d as he, h as fe, p as _, y as me, al as xe, o as n, A, t as S, B as s, i as r, a as w, b as be, P as F, am as Ce, a9 as K, an as ye, ao as $, ap as Ie, aq as Oe, k as M, n as u, l as Se, $ as we, E as h, F as o, e as f, m as Te, R as J, ar as Ee, r as c, j as ke, as as Ae, ak as Fe } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { b as Ke, c as Me, d as Pe } from "./helpers-4M9dJQ89.js";
|
|
3
|
+
import { E as Re } from "./ExistIcon-BTW-f6eh.js";
|
|
4
4
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
5
5
|
}, globalThis.customElements = { define() {
|
|
6
6
|
}, get() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const e=require("./ChallengeTabs-BQwyIqRw.cjs"),b=require("./helpers-Za4oasat.cjs"),ee=require("./ExistIcon-j-Ws6wHF.cjs");var te=e.from_html('<div class="challenge-details__rules--opt-out svelte-1f21lld"><span> </span> <button class="challenge-details__rules--opt-out-button svelte-1f21lld"> <span class="challenge-details__rules--opt-out-icon svelte-1f21lld"><!></span></button></div>'),M=e.from_html('<div class="challenge-details__rules--details-item svelte-1f21lld"><span> </span> <span> </span></div>'),le=e.from_html('<div class="challenge-details__rules svelte-1f21lld"><div class="challenge-details__rules--general-description"> </div> <span class="challenge-details__rules--terms-link svelte-1f21lld"> </span> <!> <div class="challenge-details__rules--details svelte-1f21lld"><!> <div class="challenge-details__rules--details-item svelte-1f21lld"><span> </span> <span> </span></div> <!></div></div>');const se={hash:"svelte-1f21lld",code:".challenge-details__rules.svelte-1f21lld {display:flex;flex-direction:column;align-items:flex-start;padding:0px 12px;color:var(--text-subtle, rgba(255, 255, 255, 1));font-weight:400;font-size:12px;line-height:18px;.challenge-details__rules--terms-link:where(.svelte-1f21lld) {font-weight:400;font-size:12px;line-height:18px;letter-spacing:0%;vertical-align:middle;color:var(--button-primary-bg-default, rgba(255, 204, 0, 1));margin:32px 0;}.challenge-details__rules--opt-out:where(.svelte-1f21lld) {display:flex;flex-direction:column;}.challenge-details__rules--opt-out-button:where(.svelte-1f21lld) {font-weight:700;font-size:12px;line-height:15px;display:flex;text-transform:uppercase;color:var(--text-info, rgba(110, 181, 255, 1));background:transparent;border:none;padding:14px 0;cursor:pointer;&:disabled {cursor:default;}}.challenge-details__rules--opt-out-icon:where(.svelte-1f21lld) {margin-left:8px;color:var(--icon-subtle, rgba(223, 227, 232, 1));}.challenge-details__rules--details:where(.svelte-1f21lld) {display:flex;flex-direction:column;gap:18px;}.challenge-details__rules--details-item:where(.svelte-1f21lld) {display:flex;flex-direction:column;}}"};function R(y,i){e.push(i,!0),e.append_styles(y,se);const a=()=>e.store_get(e.$format,"$_",D),[D,F]=e.setup_stores(),s=e.prop(i,"challengeItem",7),g=e.prop(i,"endpoint",7),p=e.prop(i,"domainId",7),_=e.prop(i,"userSession",7),h=e.prop(i,"userId",7),f=e.prop(i,"onStatusChange",7),C=e.user_derived(()=>s().ChallengePresentation),L=e.user_derived(()=>e.get(C).RulesDescription),S=e.user_derived(()=>b.getContributionTypeKey(s().ContributedBy)),q=e.user_derived(()=>b.getContributeToKey(s().IsContributeToOne)),I=e.user_derived(()=>b.getRecurrenceKey(s().Recurrence?.Type));let v=e.state(!1),O=e.state(!1);const T=e.user_derived(()=>(!!_()||!!h())&&!e.get(O)&&s().Status!==e.ChallengeProgressStatus.Started&&s().Status!==e.ChallengeProgressStatus.Awaiting&&!e.isChallengeFinished(s().Status)),z=async()=>{if(!(!g()||!p()||e.get(v)||!e.get(T))){e.set(v,!0);try{await e.optOutChallenge({endpoint:g(),domainId:p(),sessionId:_(),userId:h()??"",challengeId:s().ChallengeId}),e.set(O,!0),f()?.(s().Id,e.ChallengeProgressStatus.Forfeited),e.sendChallengeActionSuccess(e.ChallengeAction.OptOut)}catch(t){const l=t instanceof e.ChallengeApiError?t.errorCode:null,n=t instanceof Error?t.message:String(t);e.sendChallengeActionFail(e.ChallengeAction.OptOut,n,l??void 0)}finally{e.set(v,!1)}}},N=()=>{e.sendOptOutClicked(s().ChallengeId,e.get(C)?.PresentationName??"",e.getChallengeStatusName(s()))};e.user_effect(()=>{const t=l=>{l.data?.type===e.OPT_OUT_CONFIRMED_MESSAGE&&z()};return window.addEventListener("message",t),()=>window.removeEventListener("message",t)});var H={get challengeItem(){return s()},set challengeItem(t){s(t),e.flushSync()},get endpoint(){return g()},set endpoint(t){g(t),e.flushSync()},get domainId(){return p()},set domainId(t){p(t),e.flushSync()},get userSession(){return _()},set userSession(t){_(t),e.flushSync()},get userId(){return h()},set userId(t){h(t),e.flushSync()},get onStatusChange(){return f()},set onStatusChange(t){f(t),e.flushSync()}},m=le(),w=e.child(m),B=e.only_child(w,!0),E=e.sibling(w,2),G=e.only_child(E,!0),k=e.sibling(E,2);{var U=t=>{var l=te(),n=e.child(l),c=e.only_child(n,!0),r=e.sibling(n,2),o=e.child(r),d=e.sibling(o),u=e.child(d);ee.ExistIcon(u,{}),e.reset(d),e.reset(r),e.reset(l),e.template_effect((Z,$)=>{e.set_text(c,Z),r.disabled=e.get(v),e.set_text(o,`${$??""} `)},[()=>a()("optOutDescription"),()=>a()("optOut")]),e.delegated("click",r,N),e.append(t,l)};e.if_block(k,t=>{e.get(T)&&t(U)})}var A=e.sibling(k,2),P=e.child(A);{var j=t=>{var l=M(),n=e.child(l),c=e.only_child(n,!0),r=e.sibling(n,2),o=e.only_child(r,!0);e.reset(l),e.template_effect((d,u)=>{e.set_text(c,d),e.set_text(o,u)},[()=>a()("contributionType"),()=>a()(e.get(S))]),e.append(t,l)};e.if_block(P,t=>{e.get(S)&&t(j)})}var x=e.sibling(P,2),K=e.child(x),J=e.only_child(K,!0),Q=e.sibling(K,2),V=e.only_child(Q,!0);e.reset(x);var W=e.sibling(x,2);{var X=t=>{var l=M(),n=e.child(l),c=e.only_child(n,!0),r=e.sibling(n,2),o=e.only_child(r,!0);e.reset(l),e.template_effect((d,u)=>{e.set_text(c,d),e.set_text(o,u)},[()=>a()("recurrence"),()=>a()(e.get(I))]),e.append(t,l)};e.if_block(W,t=>{e.get(I)&&t(X)})}e.reset(A),e.reset(m),e.template_effect((t,l,n)=>{e.set_text(B,e.get(L)),e.set_text(G,t),e.set_text(J,l),e.set_text(V,n)},[()=>a()("readFullTermsAndCond"),()=>a()("contributeTo"),()=>a()(e.get(q))]),e.append(y,m);var Y=e.pop(H);return F(),Y}e.delegate(["click"]);e.create_custom_element(R,{challengeItem:{},endpoint:{},domainId:{},userSession:{},userId:{},onStatusChange:{}},[],[],{mode:"open"});exports.ChallengeRules=R;
|