@everymatrix/player-challenges 0.2.9 → 0.2.10
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 +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"),xe=require("./Button-B57Vo3G3.cjs"),be=require("./GiftIcon-pxDmtiHo.cjs"),we=require("./LinkIcon-DWGLGHt-.cjs"),qe=require("./StarIcon-CsDWGoS3.cjs"),Se=require("./TargetIcon-CKQJBgFo.cjs");var Ce=e.from_html("<img/>"),W=e.from_html('<li class="challenge-details__summary--info-row svelte-c6qywa"><span class="challenge-details__summary--info-icon svelte-c6qywa" aria-hidden="true"><!></span> <span class="challenge-details__summary--info-label svelte-c6qywa"> </span> <span class="challenge-details__summary--info-value svelte-c6qywa"> </span></li>'),Ie=e.from_html('<div class="challenge-details__summary--action svelte-c6qywa"><!></div>'),ke=e.from_html('<div class="challenge-details__summary svelte-c6qywa"><div class="challenge-details__summary--header svelte-c6qywa"><!> <h2 class="challenge-details__summary--title svelte-c6qywa"> </h2></div> <ul class="challenge-details__summary--info-list svelte-c6qywa"><!> <!> <li class="challenge-details__summary--info-row svelte-c6qywa"><span class="challenge-details__summary--info-icon svelte-c6qywa" aria-hidden="true"><!></span> <span class="challenge-details__summary--info-label svelte-c6qywa"> </span> <span class="challenge-details__summary--info-value svelte-c6qywa"> </span></li></ul> <p class="challenge-details__summary--terms svelte-c6qywa"><a class="challenge-details__summary--terms-link svelte-c6qywa" target="_blank" rel="noopener noreferrer"> <span class="challenge-details__summary--terms-icon svelte-c6qywa" aria-hidden="true"><!></span></a> <span class="challenge-details__summary--terms-note"> </span></p> <!></div>');const Pe={hash:"svelte-c6qywa",code:".challenge-details__summary.svelte-c6qywa {display:flex;flex-direction:column;gap:12px;min-width:0;.challenge-details__summary--title:where(.svelte-c6qywa) {margin:0;font-size:16px;font-weight:700;line-height:22px;color:var(--text-default, rgba(255, 255, 255, 1));}.challenge-details__summary--info-list:where(.svelte-c6qywa) {list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;}.challenge-details__summary--info-row:where(.svelte-c6qywa) {display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.4;}.challenge-details__summary--info-icon:where(.svelte-c6qywa) {display:flex;align-items:center;height:1.4em;flex-shrink:0;color:var(--icon-subtle, rgba(223, 227, 232, 1));}.challenge-details__summary--info-label:where(.svelte-c6qywa) {flex-shrink:0;color:var(--text-subtle, rgba(223, 227, 232, 1));}.challenge-details__summary--info-value:where(.svelte-c6qywa) {color:var(--text-brand, rgba(255, 204, 0, 1));}.challenge-details__summary--terms:where(.svelte-c6qywa) {margin:0;font-size:11px;line-height:1.5;color:var(--text-subtle, rgba(223, 227, 232, 1));}.challenge-details__summary--terms-link:where(.svelte-c6qywa) {display:inline-flex;align-items:center;gap:4px;margin-right:4px;color:var(--semantic-info-400, rgba(0, 156, 245, 1));text-decoration:none;border-bottom:1px solid currentColor;}.challenge-details__summary--terms-icon:where(.svelte-c6qywa) {display:flex;}.challenge-details__summary--action:where(.svelte-c6qywa) {display:flex;.challenge-button {width:100%;}}.challenge-details__summary--header:where(.svelte-c6qywa) {display:flex;align-items:flex-start;gap:6px;}}"};function X(z,a){e.push(a,!0),e.append_styles(z,Pe);const r=()=>e.store_get(e.$format,"$_",Y),[Y,Z]=e.setup_stores(),l=e.prop(a,"challengeItem",7),v=e.prop(a,"endpoint",7,""),p=e.prop(a,"domainId",7,""),u=e.prop(a,"userSession",7,""),g=e.prop(a,"userId",7,""),y=e.prop(a,"locale",7,"en"),_=e.prop(a,"isPromo",7,!1),f=e.prop(a,"isPaused",7,!1),i=e.prop(a,"isExpired",7,!1),x=e.prop(a,"onStatusChange",7),b=e.prop(a,"onClaimed",7),w=e.prop(a,"onLaunchGame",7),q=e.user_derived(()=>l().ChallengePresentation),S=e.user_derived(()=>l().LevelProgresses??[]),F=e.user_derived(()=>!u()&&!g()),$=e.user_derived(()=>!e.get(F)&&e.isOptedIn(l())),D=e.user_derived(()=>e.getDisplayLevel(l())),B=e.user_derived(()=>e.getLevelRewardText(e.get(D))),H=e.user_derived(()=>_()?e.getActivationCondition(l(),r()):e.getLevelCondition(e.get(D),l().CurrencySymbol??"",r())),ee=e.user_derived(()=>e.get($)?r()("levelProgress",{values:{current:e.getCurrentLevelNumber(e.get(S)),total:e.get(S).length}}):String(e.get(S).length)),te=e.user_derived(()=>l().ChallengeStatus===e.ChallengeStatus.Paused),C=e.user_derived(()=>e.getChallengeAction(l(),{isPromo:_(),isPaused:f(),isAuthorized:!e.get(F)}));let M=e.state(e.proxy(e.untrack(()=>e.get(C))));e.user_effect(()=>{i()||e.set(M,e.get(C),!0)});const o=e.user_derived(()=>i()?e.get(M):e.get(C)),O=e.createChallengeActions(()=>({endpoint:v(),domainId:p(),userSession:u(),userId:g(),onStatusChange:x(),onClaimed:b()})),se=()=>{if(!i()){if(e.get(o).kind==="launchGame"){w()?.();return}O.run(e.get(o).kind,l())}},ae={[e.ContributedFrom.Casino]:{className:"challenge-details__summary__icon--casino",src:e.CasinoIcon,alt:"casino"},[e.ContributedFrom.Sportsbook]:{className:"challenge-details__summary__icon--sportsbook",src:e.SportIcon,alt:"sportsbook"}},m=e.user_derived(()=>ae[l().ContributedFrom]);var le={get challengeItem(){return l()},set challengeItem(t){l(t),e.flushSync()},get endpoint(){return v()},set endpoint(t=""){v(t),e.flushSync()},get domainId(){return p()},set domainId(t=""){p(t),e.flushSync()},get userSession(){return u()},set userSession(t=""){u(t),e.flushSync()},get userId(){return g()},set userId(t=""){g(t),e.flushSync()},get locale(){return y()},set locale(t="en"){y(t),e.flushSync()},get isPromo(){return _()},set isPromo(t=!1){_(t),e.flushSync()},get isPaused(){return f()},set isPaused(t=!1){f(t),e.flushSync()},get isExpired(){return i()},set isExpired(t=!1){i(t),e.flushSync()},get onStatusChange(){return x()},set onStatusChange(t){x(t),e.flushSync()},get onClaimed(){return b()},set onClaimed(t){b(t),e.flushSync()},get onLaunchGame(){return w()},set onLaunchGame(t){w(t),e.flushSync()}},I=ke(),k=e.child(I),K=e.child(k);{var ne=t=>{var s=Ce();e.template_effect(()=>{e.set_class(s,1,e.clsx(e.get(m).className),"svelte-c6qywa"),e.set_attribute(s,"src",e.get(m).src),e.set_attribute(s,"alt",e.get(m).alt)}),e.append(t,s)};e.if_block(K,t=>{e.get(m)&&t(ne)})}var re=e.sibling(K,2),ie=e.only_child(re,!0);e.reset(k);var P=e.sibling(k,2),R=e.child(P);{var oe=t=>{var s=W(),n=e.child(s),c=e.child(n);be.GiftIcon(c,{}),e.reset(n);var d=e.sibling(n,2),T=e.only_child(d),E=e.sibling(d,2),G=e.only_child(E,!0);e.reset(s),e.template_effect(N=>{e.set_text(T,`${N??""}:`),e.set_text(G,e.get(B))},[()=>r()("get")]),e.append(t,s)};e.if_block(R,t=>{e.get(B)&&t(oe)})}var U=e.sibling(R,2);{var ce=t=>{var s=W(),n=e.child(s),c=e.child(n);Se.TargetIcon(c,{}),e.reset(n);var d=e.sibling(n,2),T=e.only_child(d),E=e.sibling(d,2),G=e.only_child(E,!0);e.reset(s),e.template_effect(N=>{e.set_text(T,`${N??""}:`),e.set_text(G,e.get(H))},[()=>r()("Condition")]),e.append(t,s)};e.if_block(U,t=>{e.get(H)&&t(ce)})}var V=e.sibling(U,2),L=e.child(V),de=e.child(L);qe.StarIcon(de,{}),e.reset(L);var j=e.sibling(L,2),ue=e.only_child(j),ge=e.sibling(j,2),_e=e.only_child(ge,!0);e.reset(V),e.reset(P);var A=e.sibling(P,2),h=e.child(A),J=e.child(h),Q=e.sibling(J),me=e.child(Q);we.LinkIcon(me,{}),e.reset(Q),e.reset(h);var he=e.sibling(h,2),ve=e.only_child(he,!0);e.reset(A);var pe=e.sibling(A,2);{var ye=t=>{var s=Ie(),n=e.child(s);{let c=e.user_derived(()=>O.loading||i());xe.Button(n,{get text(){return e.get(o).labelKey},get variant(){return e.get(o).variant},get disabled(){return e.get(c)},get locale(){return y()},onclick:se})}e.reset(s),e.append(t,s)};e.if_block(pe,t=>{!e.get(te)&&e.get(o).kind!=="viewDetails"&&t(ye)})}e.reset(I),e.template_effect((t,s)=>{e.set_text(ie,e.get(q)?.PresentationName),e.set_text(ue,`${t??""}:`),e.set_text(_e,e.get(ee)),e.set_attribute(h,"href",e.get(q).Url),e.set_text(J,`${s??""} `),e.set_text(ve,e.get(q).SignificantCondition)},[()=>r()("levels"),()=>r()("termsAndConditions")]),e.append(z,I);var fe=e.pop(le);return Z(),fe}e.create_custom_element(X,{challengeItem:{},endpoint:{},domainId:{},userSession:{},userId:{},locale:{},isPromo:{},isPaused:{},isExpired:{},onStatusChange:{},onClaimed:{},onLaunchGame:{}},[],[],{mode:"open"});exports.ChallengeSummary=X;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as Ge, d as Ne, h as ze, p as c, R as De, T as Fe, w as Be, B as a, y as He, P as Me, C as oe, A as I, o as t, t as S, i as u, s as Y, a as f, b as Oe, E as l, U as Re, k as P, n as r, l as Ue, $ as Ve, F as g, V as Ke, e as d, m as Xe, X as Ye, r as i, Y as Ze, Z as je, _ as Je, a0 as Qe, a1 as We, N as $e, a2 as ea, D as aa, a3 as sa, a4 as ta } from "./ChallengeTabs-
|
|
2
|
-
import { B as na } from "./Button-
|
|
3
|
-
import { G as la } from "./GiftIcon-
|
|
4
|
-
import { L as ra } from "./LinkIcon-
|
|
5
|
-
import { S as ia } from "./StarIcon-
|
|
6
|
-
import { T as oa } from "./TargetIcon-
|
|
1
|
+
import { c as Ge, d as Ne, h as ze, p as c, R as De, T as Fe, w as Be, B as a, y as He, P as Me, C as oe, A as I, o as t, t as S, i as u, s as Y, a as f, b as Oe, E as l, U as Re, k as P, n as r, l as Ue, $ as Ve, F as g, V as Ke, e as d, m as Xe, X as Ye, r as i, Y as Ze, Z as je, _ as Je, a0 as Qe, a1 as We, N as $e, a2 as ea, D as aa, a3 as sa, a4 as ta } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { B as na } from "./Button-BXCDdFbF.js";
|
|
3
|
+
import { G as la } from "./GiftIcon-CGxyDjCt.js";
|
|
4
|
+
import { L as ra } from "./LinkIcon-LXZ_j-cE.js";
|
|
5
|
+
import { S as ia } from "./StarIcon-wls7CR78.js";
|
|
6
|
+
import { T as oa } from "./TargetIcon-Dq082mBh.js";
|
|
7
7
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
8
8
|
}, globalThis.customElements = { define() {
|
|
9
9
|
}, 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"),N=require("./ChallengeClaimCode-WX2oHf5N.cjs"),z=require("./ChallengeHistory-DqCzIUzj.cjs"),B=require("./ChallengeList-D2xLWscW.cjs");var F=e.from_html('<div class="player-challenges__tab-content svelte-kfnpxs"><!></div>');const G={hash:"svelte-kfnpxs",code:".player-challenges__tab-content.svelte-kfnpxs {width:100%;}"};function b(_,s){e.push(s,!0),e.append_styles(_,G);const r=e.prop(s,"activeTab",7),n=e.prop(s,"challenges",7),a=e.prop(s,"endpoint",7),i=e.prop(s,"userSession",7),d=e.prop(s,"userId",7),o=e.prop(s,"domainId",7),g=e.prop(s,"locale",7),m=e.prop(s,"historyLimit",7),C=e.prop(s,"onViewDetails",7),u=e.prop(s,"isMobile",7),c=e.user_derived(()=>e.getPageSize(u())),l=e.user_derived(()=>e.CHALLENGES_TAB_LIST_KIND[r()]),p=e.user_derived(()=>!i()),h=e.user_derived(()=>e.get(l)?n().getState(e.get(l)):void 0),S=e.user_derived(()=>{switch(r()){case e.ChallengesTab.Promo:return n().promoChallenges;case e.ChallengesTab.Active:return n().activeChallenges;case e.ChallengesTab.Pending:return n().awaitingChallenges;default:return[]}}),T=()=>{e.get(l)&&n().loadMore(e.get(l),e.get(p))},y=t=>{e.get(l)&&n().loadPage(e.get(l),e.get(p),Math.floor(t/e.get(c)))},I=t=>{n().markClaimed(t),e.get(l)&&n().reload(e.get(l),e.get(p))};var M={get activeTab(){return r()},set activeTab(t){r(t),e.flushSync()},get challenges(){return n()},set challenges(t){n(t),e.flushSync()},get endpoint(){return a()},set endpoint(t){a(t),e.flushSync()},get userSession(){return i()},set userSession(t){i(t),e.flushSync()},get userId(){return d()},set userId(t){d(t),e.flushSync()},get domainId(){return o()},set domainId(t){o(t),e.flushSync()},get locale(){return g()},set locale(t){g(t),e.flushSync()},get historyLimit(){return m()},set historyLimit(t){m(t),e.flushSync()},get onViewDetails(){return C()},set onViewDetails(t){C(t),e.flushSync()},get isMobile(){return u()},set isMobile(t){u(t),e.flushSync()}},f=F(),L=e.child(f);{var P=t=>{N.ChallengeClaimCode(t,{get endpoint(){return a()},get userSession(){return i()},get domainId(){return o()},get locale(){return g()}})},w=t=>{{let v=e.user_derived(()=>m()??e.get(c));z.ChallengeHistory(t,{get endpoint(){return a()},get userSession(){return i()},get userId(){return d()},get domainId(){return o()},get locale(){return g()},get limit(){return e.get(v)},get isMobile(){return u()}})}},D=t=>{{let v=e.user_derived(()=>e.get(h)?.loading??!1),E=e.user_derived(()=>e.get(h)?.hasMore??!1),A=e.user_derived(()=>r()===e.ChallengesTab.Promo),V=e.user_derived(()=>r()===e.ChallengesTab.Pending),k=e.user_derived(()=>e.get(h)?.totalCount??0),H=e.user_derived(()=>(e.get(h)?.pageNumber??e.PAGE_NUMBER_DEFAULT)*e.get(c));B.ChallengeList(t,{get challenges(){return e.get(S)},get loading(){return e.get(v)},get hasMore(){return e.get(E)},get pausedChallengeIds(){return n().pausedChallengeIds},get isPromo(){return e.get(A)},get isPending(){return e.get(V)},get total(){return e.get(k)},get pageSize(){return e.get(c)},get offset(){return e.get(H)},onPageChange:y,onLoadMore:T,onStatusChange:(q,x)=>n().patchProgress(q,{Status:x}),onClaimed:I,get onViewDetails(){return C()},get endpoint(){return a()},get userSession(){return i()},get userId(){return d()},get domainId(){return o()},get locale(){return g()},get isMobile(){return u()}})}};e.if_block(L,t=>{r()===e.ChallengesTab.Code?t(P):r()===e.ChallengesTab.Finished?t(w,1):t(D,-1)})}return e.reset(f),e.append(_,f),e.pop(M)}e.create_custom_element(b,{activeTab:{},challenges:{},endpoint:{},userSession:{},userId:{},domainId:{},locale:{},historyLimit:{},onViewDetails:{},isMobile:{}},[],[],{mode:"open"});exports.ChallengeTabContent=b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as F, d as G, h as K, p as r, A as R, a as j, b as q, k as J, e as i, n as O, aS as g, r as Q, B as t, E as s, aT as W, aL as X, aU as Y } from "./ChallengeTabs-
|
|
2
|
-
import { C as Z } from "./ChallengeClaimCode-
|
|
3
|
-
import { C as $ } from "./ChallengeHistory-
|
|
4
|
-
import { C as ee } from "./ChallengeList-
|
|
1
|
+
import { c as F, d as G, h as K, p as r, A as R, a as j, b as q, k as J, e as i, n as O, aS as g, r as Q, B as t, E as s, aT as W, aL as X, aU as Y } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
|
+
import { C as Z } from "./ChallengeClaimCode-DUdzU0LC.js";
|
|
3
|
+
import { C as $ } from "./ChallengeHistory-_zDNsENb.js";
|
|
4
|
+
import { C as ee } from "./ChallengeList-D7m6ACxU.js";
|
|
5
5
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
6
6
|
}, globalThis.customElements = { define() {
|
|
7
7
|
}, get() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as E, d as x, h as G, p as s, A as P, a as _, b as L, k as y, e as a, n as k, r as D } from "./ChallengeTabs-
|
|
1
|
+
import { c as E, d as x, h as G, p as s, A as P, a as _, b as L, k as y, e as a, n as k, r as D } from "./ChallengeTabs-DlIm0kQA.js";
|
|
2
2
|
import { C as u } from "./types-C1hrKH4R.js";
|
|
3
|
-
import { C as H } from "./ChallengeLevels-
|
|
4
|
-
import { C as M } from "./ChallengeGames-
|
|
5
|
-
import { C as R } from "./ChallengeEvents-
|
|
6
|
-
import { C as w } from "./ChallengeRules-
|
|
3
|
+
import { C as H } from "./ChallengeLevels-CR6HhrMw.js";
|
|
4
|
+
import { C as M } from "./ChallengeGames-6HCHFbpI.js";
|
|
5
|
+
import { C as R } from "./ChallengeEvents-Ck70Zndc.js";
|
|
6
|
+
import { C as w } from "./ChallengeRules-BNa3blaQ.js";
|
|
7
7
|
typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
8
8
|
}, globalThis.customElements = { define() {
|
|
9
9
|
}, get() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const n=require("./ChallengeTabs-
|
|
1
|
+
typeof globalThis.HTMLElement>"u"&&(globalThis.HTMLElement=class{},globalThis.customElements={define(){},get(){},whenDefined(){}});const n=require("./ChallengeTabs-BQwyIqRw.cjs"),r=require("./types-BS-x0LbR.cjs"),y=require("./ChallengeLevels-bQ3nHVNo.cjs"),_=require("./ChallengeGames-CoTRQLpo.cjs"),E=require("./ChallengeEvents-CnnAyR0A.cjs"),G=require("./ChallengeRules-hJ1Osrxh.cjs");var P=n.from_html('<div class="challenge-details__tab-panel"><!></div>');const x={hash:"svelte-iphot3",code:""};function f(p,t){n.push(t,!0),n.append_styles(p,x);const s=n.prop(t,"challengeItem",7),a=n.prop(t,"activeTab",15),l=n.prop(t,"endpoint",7),u=n.prop(t,"domainId",7),i=n.prop(t,"userSession",7),o=n.prop(t,"userId",7),g=n.prop(t,"initialGames",7),h=n.prop(t,"isPaused",7,!1),c=n.prop(t,"isExpired",7,!1),d=n.prop(t,"onStatusChange",7);var v={get challengeItem(){return s()},set challengeItem(e){s(e),n.flushSync()},get activeTab(){return a()},set activeTab(e){a(e),n.flushSync()},get endpoint(){return l()},set endpoint(e){l(e),n.flushSync()},get domainId(){return u()},set domainId(e){u(e),n.flushSync()},get userSession(){return i()},set userSession(e){i(e),n.flushSync()},get userId(){return o()},set userId(e){o(e),n.flushSync()},get initialGames(){return g()},set initialGames(e){g(e),n.flushSync()},get isPaused(){return h()},set isPaused(e=!1){h(e),n.flushSync()},get isExpired(){return c()},set isExpired(e=!1){c(e),n.flushSync()},get onStatusChange(){return d()},set onStatusChange(e){d(e),n.flushSync()}},m=P(),S=n.child(m);{var C=e=>{y.ChallengeLevels(e,{get challengeItem(){return s()},get isPaused(){return h()}})},I=e=>{_.ChallengeGames(e,{get challengeItem(){return s()},get endpoint(){return l()},get userSession(){return i()},get isExpired(){return c()},get initialGames(){return g()}})},b=e=>{E.ChallengeEvents(e,{get challengeItem(){return s()}})},T=e=>{G.ChallengeRules(e,{get challengeItem(){return s()},get endpoint(){return l()},get domainId(){return u()},get userSession(){return i()},get userId(){return o()},get onStatusChange(){return d()}})};n.if_block(S,e=>{a()===r.ChallengeDetailsTab.Levels?e(C):a()===r.ChallengeDetailsTab.Games?e(I,1):a()===r.ChallengeDetailsTab.Events?e(b,2):a()===r.ChallengeDetailsTab.Rules&&e(T,3)})}return n.reset(m),n.append(p,m),n.pop(v)}n.create_custom_element(f,{challengeItem:{},activeTab:{},endpoint:{},domainId:{},userSession:{},userId:{},initialGames:{},isPaused:{},isExpired:{},onStatusChange:{}},[],[],{mode:"open"});exports.ChallengeTabPanel=f;
|