fansunited-management-components 1.73.0 → 1.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.es.js
CHANGED
|
@@ -16391,28 +16391,37 @@ class Mk extends Ck {
|
|
|
16391
16391
|
* option can pass its value through without the caller special-casing it.
|
|
16392
16392
|
*/
|
|
16393
16393
|
F(this, "buildSportEntityBrowseQuery", (n) => {
|
|
16394
|
+
const r = this.sportFilter(n);
|
|
16395
|
+
return r ? { bool: { filter: [r] } } : { match_all: {} };
|
|
16396
|
+
});
|
|
16397
|
+
/** The `sport` term filter for a caller's sport value, or null when it is blank. */
|
|
16398
|
+
F(this, "sportFilter", (n) => {
|
|
16394
16399
|
const r = String(n != null ? n : "").trim().toUpperCase().replace(/\s+/g, "_");
|
|
16395
|
-
return r ? {
|
|
16400
|
+
return r ? { term: { sport: r } } : null;
|
|
16396
16401
|
});
|
|
16397
16402
|
/**
|
|
16398
16403
|
* Search sport entities by name, title or id.
|
|
16399
16404
|
*
|
|
16400
16405
|
* A query containing ':' is treated as an exact id lookup, since entity ids
|
|
16401
16406
|
* look like `fb:c:123` and an analyzed match on them is unreliable.
|
|
16407
|
+
*
|
|
16408
|
+
* `sport` narrows the results the same way it narrows a browse page, so a
|
|
16409
|
+
* search under a sport filter does not return other sports' namesakes. Blank
|
|
16410
|
+
* means all sports.
|
|
16402
16411
|
*/
|
|
16403
|
-
F(this, "searchSportEntities", (
|
|
16404
|
-
const
|
|
16412
|
+
F(this, "searchSportEntities", (l, c, ...u) => C(this, [l, c, ...u], function* (n, r, i = 100, o = this.clientId, a) {
|
|
16413
|
+
const h = `${this.resolveSportEntityIndex(r, o)}/_search`, d = yield this.getToken(), f = n.includes(":") ? { term: { id: n } } : {
|
|
16405
16414
|
multi_match: {
|
|
16406
16415
|
query: n,
|
|
16407
16416
|
type: "best_fields",
|
|
16408
16417
|
operator: "and",
|
|
16409
16418
|
fields: ["search_title.autocomplete^3", "search_variations.autocomplete", "search_title^2", "search_variations"]
|
|
16410
16419
|
}
|
|
16411
|
-
};
|
|
16412
|
-
return yield fetch(this.ikebanaProxyBaseUrl +
|
|
16413
|
-
headers: q(k({}, this.headers), { Authorization: "Bearer " +
|
|
16420
|
+
}, p = this.sportFilter(a), m = p ? { bool: { must: f, filter: [p] } } : f;
|
|
16421
|
+
return yield fetch(this.ikebanaProxyBaseUrl + h, {
|
|
16422
|
+
headers: q(k({}, this.headers), { Authorization: "Bearer " + d }),
|
|
16414
16423
|
method: "POST",
|
|
16415
|
-
body: JSON.stringify({ query: this.withPopularityRanking(
|
|
16424
|
+
body: JSON.stringify({ query: this.withPopularityRanking(m), size: i })
|
|
16416
16425
|
});
|
|
16417
16426
|
}));
|
|
16418
16427
|
/**
|
package/index.umd.js
CHANGED
|
@@ -3327,7 +3327,7 @@
|
|
|
3327
3327
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
3328
3328
|
* See the License for the specific language governing permissions and
|
|
3329
3329
|
* limitations under the License.
|
|
3330
|
-
*/const A_=5*60,T_=uc("authIdTokenMaxAge")||A_;let Dg=null;const __=t=>e=>S(this,null,function*(){const n=e&&(yield e.getIdTokenResult()),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>T_)return;const i=n==null?void 0:n.token;Dg!==i&&(Dg=i,yield fetch(t,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))});function E_(t=sf()){const e=Oa(t,"auth");if(e.isInitialized())return e.getImmediate();const n=c1(t,{popupRedirectResolver:C_,persistence:[R1,C1,mg]}),r=uc("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const o=new URL(r,location.origin);if(location.origin===o.origin){const a=__(o.toString());b1(n,a,()=>a(n.currentUser)),v1(n,l=>a(l))}}const i=rC("auth");return i&&sg(n,`http://${i}`),n}function k_(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}o1({loadJS(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=i=>{const o=Dn("internal-error");o.customData=i,n(o)},r.type="text/javascript",r.charset="UTF-8",k_().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),S_("Browser");let Og=!1;const Mo=t=>{if(Og)return cr.auth();if(t&&t==="dev"){cr.initializeApp({apiKey:"api_key"});const n=E_();sg(n,"http://localhost:39199")}else{const n={apiKey:t&&t==="staging"?"AIzaSyBKhAYwkvkmjm16FxCMvCUQjSRpKC0DbM8":"AIzaSyDPD_SETLswR_U3dKawYkAyRhbzVXziD_4",authDomain:"fans-united-clients.firebaseapp.com",projectId:"fans-united-clients",messagingSenderId:"78627953958",appId:"1:78627953958:web:9e4c6caf6bd197b185f5e7",measurementId:"G-DPV1TYL0JW"};cr.initializeApp(n)}return Og=!0,cr.auth()},P_=t=>t==="dev"?"http://localhost:8070/v1":t==="staging"?"https://client.fansunitedstagingapi.com/v1":"https://client.fansunitedapi.com/v1";class D_{constructor(e,n){U(this,"apiKey","");U(this,"clientId","");U(this,"environment","");U(this,"mainQueryParams",{key:"",client_id:""});U(this,"headers",{"Content-Type":"application/json"});U(this,"clientApiBaseUrl","");U(this,"sportal365ImagesSearchURL","https://content.api.sportal365.com/v2/images/search?");U(this,"sportal365Config",null);U(this,"generateSignedInUrl",e=>S(this,null,function*(){const n=`/clients/${this.clientId}/generate-signed-url?`,r={key:this.apiKey},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(e)})}));U(this,"storeInBucket",(e,n,r)=>S(this,null,function*(){const i=yield fetch(e,{headers:r,method:"PUT",body:n});if(i.ok)return this.constructAssetsUrl(n.name);const o=yield i.text();this.throwErrorFromXmlResponse(o)}));U(this,"fetchImagesFromSportal365",(e,n,r)=>S(this,null,function*(){if(this.sportal365Config){const i={Project:this.sportal365Config.project,Authorization:this.sportal365Config.authorization};let o={query:e,page:r.toString()};return n&&(n.from&&(o=Q(D({},o),{from:n.from})),n.to&&(o=Q(D({},o),{to:n.to}))),yield fetch(this.sportal365ImagesSearchURL+new URLSearchParams(o),{headers:i})}}));U(this,"getSchedulersByEntityId",e=>S(this,null,function*(){const n=`/clients/${this.clientId}/scheduler/tasks?`,r={key:this.apiKey,limit:"50",entity_id:e},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"setSchedulers",(e,n,r)=>S(this,null,function*(){let i="",o="";n==="CREATE"?(i=`/clients/${this.clientId}/scheduler/tasks?`,o="POST"):(i=`/clients/${this.clientId}/scheduler/tasks/${r}?`,o="PUT");const a={key:this.apiKey},l=yield this.getToken();return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l}),body:JSON.stringify(e),method:o})}));U(this,"deleteScheduledTask",e=>S(this,null,function*(){const n=`/clients/${this.clientId}/scheduler/tasks/${e}?`,r={key:this.apiKey},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"getLoggedInStaffMember",()=>S(this,null,function*(){const r=(yield this.getToken()).split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(window.atob(r).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(i)}));U(this,"constructAssetsUrl",e=>this.environment==="dev"?`https://storage.googleapis.com/client_images_cms_fans-united-dev/${this.clientId}/${e}`:this.environment==="staging"?`https://storage.googleapis.com/client_images_cms_fans-united-stage/${this.clientId}/${e}`:`https://uploads.fansunitedassets.com/${this.clientId}/${e}`);U(this,"throwErrorFromXmlResponse",e=>{const n=new window.DOMParser().parseFromString(e,"text/xml"),r=n.getElementsByTagName("Message")&&n.getElementsByTagName("Code").length>0?n.getElementsByTagName("Message")[0].textContent:"",i=n.getElementsByTagName("Details")&&n.getElementsByTagName("Code").length>0?n.getElementsByTagName("Details")[0].textContent:"";throw new Error(r+" "+i)});U(this,"getToken",()=>S(this,null,function*(){const e=Mo(this.environment).currentUser;return e?yield e.getIdToken():""}));this.apiKey=e.apiKey,this.clientId=e.clientId,this.environment=e.environment,this.mainQueryParams={key:e.apiKey,client_id:e.clientId},this.sportal365Config=n,this.clientApiBaseUrl=P_(this.environment)}}class O_{constructor(e){U(this,"baseUrl","https://v1.formula-1.api-sports.io");U(this,"apiKey");U(this,"headers");this.apiKey=e,this.headers={"X-RapidAPI-Key":this.apiKey,"Content-Type":"application/json"}}getRaces(e,n){return S(this,null,function*(){const r={season:e.toString(),type:(n==null?void 0:n.type)||"Race"};n&&Object.entries(n).forEach(([o,a])=>{a!=null&&(r[o]=a.toString())});const i=`${this.baseUrl}/races?${new URLSearchParams(r)}`;return yield fetch(i,{method:"GET",headers:this.headers})})}makeRequest(e,n){return S(this,null,function*(){let r=`${this.baseUrl}${e}`;return n&&Object.keys(n).length>0&&(r+=`?${new URLSearchParams(n)}`),yield fetch(r,{method:"GET",headers:this.headers})})}}const R_=t=>t==="dev"?"http://localhost:8060/v1":t==="staging"?"https://loyalty.fansunitedstagingapi.com/v1":"https://loyalty.fansunitedapi.com/v1",L_=t=>t==="dev"?"http://localhost:8040/v1":t==="staging"?"https://prediction.fansunitedstagingapi.com/v1":"https://prediction.fansunitedapi.com/v1",M_=t=>t==="dev"?"http://localhost:9040/v1":t==="staging"?"https://mini-games.fansunitedstagingapi.com/v1":"https://mini-games.fansunitedapi.com/v1",$_=t=>t==="dev"?"http://localhost:8020/v1":t==="staging"?"https://reporting.fansunitedstagingapi.com/v1":"https://reporting.fansunitedapi.com/v1",B_=t=>t==="dev"?"http://localhost:9030/v1":t==="staging"?"https://voting.fansunitedstagingapi.com/v1":"https://voting.fansunitedapi.com/v1",N_=t=>t==="staging"?"https://custom-games-resolver-131809830171.europe-west1.run.app/v1":"https://custom-games-resolver-150199313674.europe-west1.run.app/v1",F_=t=>t==="dev"?"http://localhost:8010/v1":t==="staging"?"https://profile.fansunitedstagingapi.com/v1":"https://profile.fansunitedapi.com/v1",j_=t=>t==="dev"?"http://localhost:8010/v1":t==="staging"?"https://discussions.fansunitedstagingapi.com/v1":"https://discussions.fansunitedapi.com/v1",z_=t=>t==="dev"?"http://localhost:9050/v1":t==="staging"?"https://ai-content-builder-131809830171.europe-west1.run.app/v1":"https://ai-content-builder-150199313674.europe-west1.run.app/v1",Rg=t=>t==="dev"?"http://localhost:8080/api/":t==="staging"?"https://ikebana-backend-proxy-131809830171.europe-west1.run.app/api/":"https://ikebana-backend-proxy-150199313674.europe-west1.run.app/api/",U_=t=>`${Rg(t)}elasticsearch/`,V_=t=>`${Rg(t)}gcp/`;class H_ extends D_{constructor(n,r){super(n,r);U(this,"loyaltyBaseUrl","");U(this,"predictionBaseUrl","");U(this,"miniGamesApiBaseUrl","");U(this,"reportingApiBaseUrl","");U(this,"votingApiBaseUrl","");U(this,"profileApiBaseUrl","");U(this,"customResolverUrl","");U(this,"discussionsApiBaseUrl","");U(this,"aiServiceBaseUrl","");U(this,"ikebanaProxyBaseUrl","");U(this,"ikebanaGcpBaseUrl","");U(this,"apiSports");U(this,"getClientById",()=>S(this,null,function*(){const n=`/clients/${this.clientId}?`,r={key:this.apiKey},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"createTemplate",n=>S(this,null,function*(){const r="/leaderboard/templates?",i=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"editTemplate",(n,r)=>S(this,null,function*(){const i=`/leaderboard/templates/${n}?`,o=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteTemplate",n=>S(this,null,function*(){const r=`/leaderboard/templates/${n}?`,i=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"setWinners",n=>S(this,null,function*(){const r="/winners?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"exportDetailedLeaderboard",(n,r,i)=>S(this,null,function*(){const o=`/leaderboard/${n}/detailed?`,a=yield this.getToken(),l=D({},this.mainQueryParams);return r&&(l.group_id=r),yield fetch(this.loyaltyBaseUrl+o+new URLSearchParams(Q(D({},l),{limit:i.toString()})),{headers:Q(D({},this.headers),{Authorization:"Bearer "+a})})}));U(this,"exportDetailedGameLeaderboard",(n,r)=>S(this,null,function*(){const i=`/leaderboard/games/${n}/detailed?`,o=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+i+new URLSearchParams(Q(D({},this.mainQueryParams),{limit:r.toString()})),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"createGame",n=>S(this,null,function*(){const r="/games?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"editGame",(n,r)=>S(this,null,function*(){const i=`/games/${n}?`,o=yield this.getToken();return yield fetch(this.predictionBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PATCH",body:JSON.stringify(r)})}));U(this,"getEntityFeature",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/features/${n}?`,o={key:this.apiKey};return r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o))}));U(this,"getClientFeatures",(n,r=1)=>S(this,null,function*(){const i=`/clients/${this.clientId}/features?`,o={key:this.apiKey};n&&(o.disable_cache=Date.now().toString());const a=Q(D({},this.headers),{"x-api-version":r.toString()});return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:a})}));U(this,"updateEntityFeatures",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/features/${n}?`,o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams({key:this.apiKey}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PATCH",body:JSON.stringify(r)})}));U(this,"getClassicQuizFeature",()=>S(this,null,function*(){const n=`/clients/${this.clientId}/features/classic_quiz?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));U(this,"getEitherOrFeature",()=>S(this,null,function*(){const n=`/clients/${this.clientId}/features/either_or?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));U(this,"getPollFeature",()=>S(this,null,function*(){const n=`/clients/${this.clientId}/features/poll?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));U(this,"createClassicQuiz",n=>S(this,null,function*(){const r="/classic-quizzes?",i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateClassicQuiz",(n,r)=>S(this,null,function*(){const i=`/classic-quizzes/${n}?`,o=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"getClassicQuizById",n=>S(this,null,function*(){const r=`/classic-quizzes/${n}/staff?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"deleteClassicQuiz",n=>S(this,null,function*(){const r=`/classic-quizzes/${n}?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"calculateQuestionsReport",n=>S(this,null,function*(){const r=`/classic-quizzes/${n}/questions-report?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST"})}));U(this,"exportUsers",n=>S(this,null,function*(){const r="/exports/users?",i=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"getClassicQuizParticipations",(n,r,i,o)=>S(this,null,function*(){const a="/classic-quizzes/participations?",l=Q(D({},this.mainQueryParams),{classic_quiz_ids:n,from_date:r,to_date:i,group_by:o}),c=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+a+new URLSearchParams(l),{headers:Q(D({},this.headers),{Authorization:"Bearer "+c})})}));U(this,"getEntityParticipations",(n,r,i)=>S(this,null,function*(){const o=`/participations/${n}/breakdown?`,a=Q(D({},this.mainQueryParams),{from_date:r,to_date:i}),l=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+o+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l})})}));U(this,"createPoll",n=>S(this,null,function*(){const r="/polls?",i=yield this.getToken();return yield fetch(this.votingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updatePoll",(n,r)=>S(this,null,function*(){const i=`/polls/${n}?`,o=yield this.getToken();return yield fetch(this.votingApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deletePoll",n=>S(this,null,function*(){const r=`/polls/${n}?`,i=yield this.getToken();return yield fetch(this.votingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"getEitherOrById",(n,r)=>S(this,null,function*(){const i=`/either-or/${n}/staff?`,o=yield this.getToken();let a=null;return r&&(a=Q(D({},this.mainQueryParams),{client_id:r})),yield fetch(this.miniGamesApiBaseUrl+i+new URLSearchParams(a||this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"getEitherOrByIdReadOnlyClient",(n,r,i)=>S(this,null,function*(){const o="https://mini-games.fansunitedapi.com/v1",a=`/either-or/${n}/staff?`,l=yield this.getToken(),c={key:r,client_id:i};return yield fetch(o+a+new URLSearchParams(c),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l})})}));U(this,"createEitherOr",n=>S(this,null,function*(){const r="/either-or?",i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateEitherOr",(n,r)=>S(this,null,function*(){const i=`/either-or/${n}?`,o=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteEitherOr",n=>S(this,null,function*(){const r=`/either-or/${n}?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"getLists",(n,r,i="DESC")=>S(this,null,function*(){const o=`/clients/${this.clientId}/lists?`,a={key:this.apiKey,limit:n.toString(),sort_order:i};r&&(a.start_after=r);const l=yield this.getToken();return yield fetch(this.clientApiBaseUrl+o+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l})})}));U(this,"getListById",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/lists/${n}?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"getListContent",(n,r,i="DESC",o)=>S(this,null,function*(){const a=`/clients/${this.clientId}/lists/${n}/content?`,l={key:this.apiKey,limit:r.toString(),sort_order:i};o&&(l.page=o.toString());const c=yield this.getToken();return yield fetch(this.clientApiBaseUrl+a+new URLSearchParams(l),{headers:Q(D({},this.headers),{Authorization:"Bearer "+c})})}));U(this,"createList",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/lists/?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateList",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/lists/${n}?`,o={key:this.apiKey},a=yield this.getToken();return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+a}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteList",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/lists/${n}?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"DELETE"})}));U(this,"getLanguageConfig",()=>S(this,null,function*(){const n=`/clients/${this.clientId}/config/language?`,r={key:this.apiKey},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"updateLanguageConfig",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/config/language?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(n)})}));U(this,"createBracketGame",n=>S(this,null,function*(){const r="/custom/bracket?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateBracketGame",(n,r)=>S(this,null,function*(){const i=`/custom/bracket/${n}?`,o=yield this.getToken();return yield fetch(this.predictionBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"resolvePredictions",n=>S(this,null,function*(){const r="/custom/bracket/resolve?",o=yield this.getToken();return yield fetch(this.customResolverUrl+r+new URLSearchParams({client_id:this.clientId,game_id:n}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),signal:AbortSignal.timeout(6e5)})}));U(this,"exportLeadsPerEntity",n=>S(this,null,function*(){const r="/leads/export?",i=Q(D({},this.mainQueryParams),{content_id:n}),o=yield this.getToken();return yield fetch(this.profileApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"getLeadStatistics",n=>S(this,null,function*(){const r="/leads/statistics?",i=yield this.getToken();let o=null;return n?o=new URLSearchParams(D(D({},this.mainQueryParams),n)):o=new URLSearchParams(this.mainQueryParams),yield fetch(this.profileApiBaseUrl+r+o,{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"exportLeads",n=>S(this,null,function*(){const r="/leads/export?",i=yield this.getToken();let o=null;return n?o=new URLSearchParams(D(D({},this.mainQueryParams),n)):o=new URLSearchParams(this.mainQueryParams),yield fetch(this.profileApiBaseUrl+r+o,{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"createStandingGame",n=>S(this,null,function*(){const r="/custom/standing?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateStandingGame",(n,r)=>S(this,null,function*(){const i=`/custom/standing/${n}?`,o=yield this.getToken();return yield fetch(this.predictionBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"resolveStandingPredictions",n=>S(this,null,function*(){const r="/custom/standing/resolve?",o=yield this.getToken();return yield fetch(this.customResolverUrl+r+new URLSearchParams({client_id:this.clientId,game_id:n}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),signal:AbortSignal.timeout(6e5)})}));U(this,"moderateUserPosts",(n,r)=>S(this,null,function*(){const i="/moderation/bulk?",o=yield this.getToken(),a=Q(D({},this.mainQueryParams),{user_id:n,reason:r});return yield fetch(this.discussionsApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"POST"})}));U(this,"getUserBanStatus",n=>S(this,null,function*(){const r=`/discussions/users/${n}/ban?`,i=yield this.getToken();return yield fetch(this.discussionsApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"banUser",(n,r,i)=>S(this,null,function*(){const o=`/discussions/users/${n}/ban?`,a=yield this.getToken(),l={banned_period_in_days:r,banned_reason:i};return yield fetch(this.discussionsApiBaseUrl+o+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+a}),method:"POST",body:JSON.stringify(l)})}));U(this,"unbanUser",(n,r)=>S(this,null,function*(){const i=`/discussions/users/${n}/ban?`,o=yield this.getToken(),a={unban_reason:r};return yield fetch(this.discussionsApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"DELETE",body:JSON.stringify(a)})}));U(this,"updateUser",(n,r,i)=>S(this,null,function*(){const o=`/profiles/${n}/verify?`,a=yield this.getToken(),l=r==="verify"?{verified:i}:{staff_member:i};return yield fetch(this.profileApiBaseUrl+o+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+a}),method:"POST",body:JSON.stringify(l)})}));U(this,"deleteUserProfile",n=>S(this,null,function*(){const r=`/profiles/${n}?`,i=yield this.getToken();return yield fetch(this.profileApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"createDiscussion",n=>S(this,null,function*(){const r="/discussions?",i=yield this.getToken();return yield fetch(this.discussionsApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"deleteDiscussion",n=>S(this,null,function*(){const r=`/discussions/${n}?`,i=yield this.getToken();return yield fetch(this.discussionsApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"moderatePosts",(...a)=>S(this,[...a],function*(n="",r=[],i,o){const l="/moderation/bulk?",c=yield this.getToken();let u={};if(r.length>0){const h=r.join(",");u=Q(D({},this.mainQueryParams),{post_ids:h,reason:i})}else u=Q(D({},this.mainQueryParams),{discussion_id:n,reason:i});return o&&(u=Q(D({},u),{reason_code:o})),yield fetch(this.discussionsApiBaseUrl+l+new URLSearchParams(u),{headers:Q(D({},this.headers),{Authorization:"Bearer "+c}),method:"POST"})}));U(this,"pinDiscussionPosts",(n,r)=>S(this,null,function*(){const i=`/discussions/${n}/pins?`,o=yield this.getToken(),a=Q(D({},this.mainQueryParams),{pin_post_ids:r.join(",")});return yield fetch(this.discussionsApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PATCH"})}));U(this,"unpinDiscussionPosts",(n,r)=>S(this,null,function*(){const i=`/discussions/${n}/pins?`,o=yield this.getToken(),a=Q(D({},this.mainQueryParams),{pin_post_ids:r.join(",")});return yield fetch(this.discussionsApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"DELETE"})}));U(this,"getPostsByStaffMember",n=>S(this,null,function*(){const r="/posts/staff?",i=yield this.getToken();return yield fetch(this.discussionsApiBaseUrl+r+new URLSearchParams(D(D({},this.mainQueryParams),n)),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"getReportedPosts",n=>S(this,null,function*(){const r="/posts/staff/reported?",i=yield this.getToken();return yield fetch(this.discussionsApiBaseUrl+r+new URLSearchParams(D(D({},this.mainQueryParams),n)),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"updateDiscussionsFeature",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/features/discussions?`,i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams({key:this.apiKey}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"PATCH",body:JSON.stringify(n)})}));U(this,"updateProfilePreferences",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/features/profile_preferences?`,i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams({key:this.apiKey}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"PATCH",body:JSON.stringify(n)})}));U(this,"getClientBadges",()=>S(this,null,function*(){const n=`/clients/${this.clientId}/features/loyalty/badges?`,r={key:this.apiKey},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"updateClientBadges",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/features/loyalty/badges?`,i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams({key:this.apiKey}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"PUT",body:JSON.stringify(n)})}));U(this,"getEngagementThroughPredictionsReport",(n,r,i)=>S(this,null,function*(){const o="/predictions/football/engagements?",a=Q(D({},this.mainQueryParams),{from_date:r,to_date:i,type:n}),l=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+o+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l})})}));U(this,"createPersonalityQuiz",n=>S(this,null,function*(){const r="/personality-quizzes?",i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updatePersonalityQuiz",(n,r)=>S(this,null,function*(){const i=`/personality-quizzes/${n}?`,o=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deletePersonalityQuiz",n=>S(this,null,function*(){const r=`/personality-quizzes/${n}?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"getPersonalityQuizOptionsReport",n=>S(this,null,function*(){const r=`/personality-quizzes/${n}/options-report?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"generatePostMatchQuiz",n=>S(this,null,function*(){const r="/classic-quizzes/post-match?",i=Q(D({},this.mainQueryParams),{sport_type:n.sportType,lang:n.lang,event_id:n.eventId});n.sportType==="football"&&(i.difficulty=n.difficulty);const o=yield this.getToken();return yield fetch(this.aiServiceBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"generatePreMatchQuiz",n=>S(this,null,function*(){const r="/classic-quizzes/pre-match?",i=Q(D({},this.mainQueryParams),{sport_type:n.sportType,lang:n.lang,event_id:n.eventId,difficulty:n.difficulty}),o=yield this.getToken();return yield fetch(this.aiServiceBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"generateHalfTimeMatchQuiz",n=>S(this,null,function*(){const r="/classic-quizzes/halftime?",i=Q(D({},this.mainQueryParams),{sport_type:"football",lang:n.lang,event_id:n.eventId,difficulty:n.difficulty}),o=yield this.getToken();return yield fetch(this.aiServiceBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"generatePostMatchPoll",n=>S(this,null,function*(){const r="/polls/post-match?",i=Q(D({},this.mainQueryParams),{lang:n.lang,event_id:n.eventId});n.targetParticipant&&(i.target_participant=n.targetParticipant);const o=yield this.getToken();return yield fetch(this.aiServiceBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"createEventGame",n=>S(this,null,function*(){const r="/custom/event?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateEventGame",(n,r)=>S(this,null,function*(){const i=`/custom/event/${n}?`,o=yield this.getToken();return yield fetch(this.predictionBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"resolveEventGamePredictions",n=>S(this,null,function*(){const r="/custom/event/resolve?",o=yield this.getToken();return yield fetch(this.customResolverUrl+r+new URLSearchParams({client_id:this.clientId,game_id:n}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),signal:AbortSignal.timeout(6e5)})}));U(this,"createBrandingTemplate",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/templates/brandings?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateBrandingTemplate",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/templates/brandings/${n}?`,o={key:this.apiKey},a=yield this.getToken();return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+a}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteBrandingTemplate",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/templates/brandings/${n}?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"DELETE"})}));U(this,"getBrandingTemplates",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/templates/brandings?`,o={key:this.apiKey};return n&&n.length>0&&(o.branding_ids=n.join(",")),r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:this.headers})}));U(this,"getBrandingTemplateById",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/templates/brandings/${n}?`,o={key:this.apiKey};return r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:this.headers})}));U(this,"getWidgetConfigurations",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/config/widgets?`,i={key:this.apiKey};return n&&(i.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:this.headers})}));U(this,"getWidgetConfigurationById",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/config/widgets/${n}?`,o={key:this.apiKey};return r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:this.headers})}));U(this,"createWidgetConfiguration",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/config/widgets?`,i=yield this.getToken(),o={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateWidgetConfiguration",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/config/widgets/${n}?`,o=yield this.getToken(),a={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteWidgetConfiguration",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/config/widgets/${n}?`,i=yield this.getToken(),o={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"getInfoPages",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/info-pages?`,o={key:this.apiKey};return n&&(o.limit=n.limit.toString(),n.startAfter&&(o.start_after=n.startAfter),n.sortOrder&&(o.sort_order=n.sortOrder),n.infoPageIds&&n.infoPageIds.length>0&&(o.info_page_ids=n.infoPageIds.join(","))),r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:this.headers})}));U(this,"getInfoPageById",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/info-pages/${n}?`,o={key:this.apiKey};return r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:this.headers})}));U(this,"createInfoPage",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/info-pages?`,i=yield this.getToken(),o={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateInfoPage",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/info-pages/${n}?`,o=yield this.getToken(),a={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteInfoPage",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/info-pages/${n}?`,i=yield this.getToken(),o={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"exportClassicQuizParticipations",n=>S(this,null,function*(){const r=`/exports/classic-quizzes/${n}/participations?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"getSportEntities",(l,...c)=>S(this,[l,...c],function*(n,{page:r=1,limit:i=10,sport:o}={},a=this.clientId){const u=`${this.resolveSportEntityIndex(n,a)}/_search`,h=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+u,{headers:Q(D({},this.headers),{Authorization:"Bearer "+h}),method:"POST",body:JSON.stringify({query:this.withPopularityRanking(this.buildSportEntityBrowseQuery(o)),size:i,from:(r-1)*i,sort:[{_score:"desc"},{_doc:"asc"}]})})}));U(this,"buildSportEntityBrowseQuery",n=>{const r=String(n!=null?n:"").trim().toUpperCase().replace(/\s+/g,"_");return r?{bool:{filter:[{term:{sport:r}}]}}:{match_all:{}}});U(this,"searchSportEntities",(a,l,...c)=>S(this,[a,l,...c],function*(n,r,i=100,o=this.clientId){const u=`${this.resolveSportEntityIndex(r,o)}/_search`,h=yield this.getToken(),d=n.includes(":")?{term:{id:n}}:{multi_match:{query:n,type:"best_fields",operator:"and",fields:["search_title.autocomplete^3","search_variations.autocomplete","search_title^2","search_variations"]}};return yield fetch(this.ikebanaProxyBaseUrl+u,{headers:Q(D({},this.headers),{Authorization:"Bearer "+h}),method:"POST",body:JSON.stringify({query:this.withPopularityRanking(d),size:i})})}));U(this,"withPopularityRanking",n=>({function_score:{query:n,field_value_factor:{field:"popularity",modifier:"none",factor:1,missing:1},boost_mode:"multiply"}}));U(this,"getSportEntity",(o,a,...l)=>S(this,[o,a,...l],function*(n,r,i=this.clientId){const c=`${this.resolveSportEntityIndex(r,i)}/_doc/${encodeURIComponent(n)}`,u=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+c,{headers:Q(D({},this.headers),{Authorization:"Bearer "+u})})}));U(this,"getSportEntitiesByIds",(o,a,...l)=>S(this,[o,a,...l],function*(n,r,i=this.clientId){const c=`${this.resolveSportEntityIndex(r,i)}/_search`,u=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+c,{headers:Q(D({},this.headers),{Authorization:"Bearer "+u}),method:"POST",body:JSON.stringify({query:{ids:{values:n}},size:n.length})})}));U(this,"countSportEntities",(i,...o)=>S(this,[i,...o],function*(n,r=this.clientId){const a=`${this.resolveSportEntityIndex(n,r)}/_count`,l=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+a,{headers:Q(D({},this.headers),{Authorization:"Bearer "+l})})}));U(this,"searchableQuery",n=>n?"?refresh=wait_for":"");U(this,"createSportEntity",(a,l,...c)=>S(this,[a,l,...c],function*(n,r,i=this.clientId,o=!1){const u=`${this.resolveSportEntityIndex(r,i)}/_doc/${encodeURIComponent(n.id)}`,h=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+u+this.searchableQuery(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+h}),method:"POST",body:JSON.stringify(this.buildSportEntityWriteBody(n,i))})}));U(this,"updateSportEntity",(l,c,u,...h)=>S(this,[l,c,u,...h],function*(n,r,i,o=this.clientId,a=!1){const d=`${this.resolveSportEntityIndex(i,o)}/_doc/${encodeURIComponent(n)}`,p=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+d+this.searchableQuery(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+p}),method:"PUT",body:JSON.stringify(this.buildSportEntityWriteBody(r,o))})}));U(this,"deleteSportEntity",(a,l,...c)=>S(this,[a,l,...c],function*(n,r,i=this.clientId,o=!1){const u=`${this.resolveSportEntityIndex(r,i)}/_doc/${encodeURIComponent(n)}`,h=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+u+this.searchableQuery(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+h}),method:"DELETE"})}));U(this,"uploadSportEntityAsset",(n,r,i)=>S(this,null,function*(){const o={entityId:r};i&&(o.assetKey=i),n instanceof File&&n.name&&(o.filename=n.name);const a=yield this.getToken();return yield fetch(this.ikebanaGcpBaseUrl+"upload?"+new URLSearchParams(o),{headers:{"Content-Type":n.type||"application/octet-stream",Authorization:"Bearer "+a},method:"POST",body:n})}));U(this,"importSportEntityAssetFromUrl",(n,r,i)=>S(this,null,function*(){const o=yield this.getToken();return yield fetch(this.ikebanaGcpBaseUrl+"upload",{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"POST",body:JSON.stringify({entityId:r,assetKey:i,url:n})})}));U(this,"buildSportEntityWriteBody",(n,r)=>{const i=D({},n);return delete i._id,delete i.client_id,r&&(i.client_id=r.toLowerCase()),i});U(this,"resolveSportEntityIndex",(n,r)=>{const i=`search-entities-${n}`;return r?`${i}-${r.toLowerCase()}`:i});this.loyaltyBaseUrl=R_(n.environment),this.predictionBaseUrl=L_(n.environment),this.miniGamesApiBaseUrl=M_(n.environment),this.reportingApiBaseUrl=$_(n.environment),this.votingApiBaseUrl=B_(n.environment),this.profileApiBaseUrl=F_(n.environment),this.customResolverUrl=N_(n.environment),this.discussionsApiBaseUrl=j_(n.environment),this.aiServiceBaseUrl=z_(n.environment),this.ikebanaProxyBaseUrl=U_(n.environment),this.ikebanaGcpBaseUrl=V_(n.environment);const i="df4a58523f0acb1baa8b7273cdf1da0b";this.apiSports=new O_(i)}}const W_=(t,e)=>!t&&!e?null:!t&&e?(console.warn("'sportal365Project' prop is not provided. The prop is required when 'sportal365Infrastructure' prop is provided. Functionalities with Sportal365 API will not be exposed"),null):{project:t,authorization:`Bearer ${e&&e==="betway"?"24PkUfW1ce63mH9jvAAug2QQzdASj9k5smngepPUZD2KUq5cbTFGE98KgZ0zg2wCtuQcoJrHElW7Dr0K":"dEZS1V21veHBIDIik8Y33dDkZAoCmxgge5MBnAORN7IKbltA79giTZLaXJ6OVgQkGnYxwtyRv8ObRSvY"}`},ps=m.createContext(null),G_=({config:t,children:e})=>{const n={apiKey:t.apiKey,clientId:t.clientId,environment:t.environment,lang:t.language,errorHandlingMode:t.errorHandlingMode,idSchema:"native",authProvider:{getIdToken:()=>"",logout:()=>{}}},r=W_(t.sportal365Project,t.sportal365Infrastructure),i=et.FansUnitedSDK(n),o=new H_(n,r);return s.jsx(ps.Provider,{value:{sdk:i,https:o},children:e})},Lg=m.createContext(null),q_=({children:t,environment:e})=>{const[n,r]=m.useState(null),[i,o]=m.useState(!0);return m.useEffect(()=>Mo(e).onAuthStateChanged(l=>{St.unstable_batchedUpdates(()=>{o(!1),r(l)})}),[e]),s.jsx(Lg.Provider,{value:n,children:!i&&t})};function F(){return F=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F.apply(null,arguments)}function Ne(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}var Mg={exports:{}},K_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Y_=K_,Q_=Y_;function $g(){}function Bg(){}Bg.resetWarningCache=$g;var J_=function(){function t(r,i,o,a,l,c){if(c!==Q_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Bg,resetWarningCache:$g};return n.PropTypes=n,n};Mg.exports=J_();var X_=Mg.exports;function Z_(t){return typeof t=="string"}function eE(t,e,n){return t===void 0||Z_(t)?e:F({},e,{ownerState:F({},e.ownerState,n)})}function Ng(t,e,n=(r,i)=>r===i){return t.length===e.length&&t.every((r,i)=>n(r,e[i]))}function Yn(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function tE(t,e,n){return typeof t=="function"?t(e,n):t}function nE(t){const{rootElementName:e="",componentName:n}=t,[r,i]=Y.useState(e.toUpperCase()),o=Y.useCallback(a=>{var l;i((l=a==null?void 0:a.tagName)!=null?l:"")},[]);return[r,o]}function rE(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Sn(...t){return Y.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{rE(n,e)})},t)}function Fg(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Fg(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Qn(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Fg(t))&&(r&&(r+=" "),r+=e);return r}function jg(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function iE(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=t;if(!e){const g=Qn(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),b=F({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=F({},n,i,r);return g.length>0&&(v.className=g),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const a=Yn(F({},i,r)),l=jg(r),c=jg(i),u=e(a),h=Qn(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=F({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=F({},u,n,c,l);return h.length>0&&(p.className=h),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function br(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function zg(t){if(Y.isValidElement(t)||!br(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=zg(t[n])}),e}function Jn(t,e,n={clone:!0}){const r=n.clone?F({},t):t;return br(t)&&br(e)&&Object.keys(e).forEach(i=>{Y.isValidElement(e[i])?r[i]=e[i]:br(e[i])&&Object.prototype.hasOwnProperty.call(t,i)&&br(t[i])?r[i]=Jn(t[i],e[i],n):n.clone?r[i]=br(e[i])?zg(e[i]):e[i]:r[i]=e[i]}),r}function gs(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;n<arguments.length;n+=1)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}var Ug={exports:{}},Ke={};/**
|
|
3330
|
+
*/const A_=5*60,T_=uc("authIdTokenMaxAge")||A_;let Dg=null;const __=t=>e=>S(this,null,function*(){const n=e&&(yield e.getIdTokenResult()),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>T_)return;const i=n==null?void 0:n.token;Dg!==i&&(Dg=i,yield fetch(t,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))});function E_(t=sf()){const e=Oa(t,"auth");if(e.isInitialized())return e.getImmediate();const n=c1(t,{popupRedirectResolver:C_,persistence:[R1,C1,mg]}),r=uc("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const o=new URL(r,location.origin);if(location.origin===o.origin){const a=__(o.toString());b1(n,a,()=>a(n.currentUser)),v1(n,l=>a(l))}}const i=rC("auth");return i&&sg(n,`http://${i}`),n}function k_(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}o1({loadJS(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=i=>{const o=Dn("internal-error");o.customData=i,n(o)},r.type="text/javascript",r.charset="UTF-8",k_().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),S_("Browser");let Og=!1;const Mo=t=>{if(Og)return cr.auth();if(t&&t==="dev"){cr.initializeApp({apiKey:"api_key"});const n=E_();sg(n,"http://localhost:39199")}else{const n={apiKey:t&&t==="staging"?"AIzaSyBKhAYwkvkmjm16FxCMvCUQjSRpKC0DbM8":"AIzaSyDPD_SETLswR_U3dKawYkAyRhbzVXziD_4",authDomain:"fans-united-clients.firebaseapp.com",projectId:"fans-united-clients",messagingSenderId:"78627953958",appId:"1:78627953958:web:9e4c6caf6bd197b185f5e7",measurementId:"G-DPV1TYL0JW"};cr.initializeApp(n)}return Og=!0,cr.auth()},P_=t=>t==="dev"?"http://localhost:8070/v1":t==="staging"?"https://client.fansunitedstagingapi.com/v1":"https://client.fansunitedapi.com/v1";class D_{constructor(e,n){U(this,"apiKey","");U(this,"clientId","");U(this,"environment","");U(this,"mainQueryParams",{key:"",client_id:""});U(this,"headers",{"Content-Type":"application/json"});U(this,"clientApiBaseUrl","");U(this,"sportal365ImagesSearchURL","https://content.api.sportal365.com/v2/images/search?");U(this,"sportal365Config",null);U(this,"generateSignedInUrl",e=>S(this,null,function*(){const n=`/clients/${this.clientId}/generate-signed-url?`,r={key:this.apiKey},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(e)})}));U(this,"storeInBucket",(e,n,r)=>S(this,null,function*(){const i=yield fetch(e,{headers:r,method:"PUT",body:n});if(i.ok)return this.constructAssetsUrl(n.name);const o=yield i.text();this.throwErrorFromXmlResponse(o)}));U(this,"fetchImagesFromSportal365",(e,n,r)=>S(this,null,function*(){if(this.sportal365Config){const i={Project:this.sportal365Config.project,Authorization:this.sportal365Config.authorization};let o={query:e,page:r.toString()};return n&&(n.from&&(o=Q(D({},o),{from:n.from})),n.to&&(o=Q(D({},o),{to:n.to}))),yield fetch(this.sportal365ImagesSearchURL+new URLSearchParams(o),{headers:i})}}));U(this,"getSchedulersByEntityId",e=>S(this,null,function*(){const n=`/clients/${this.clientId}/scheduler/tasks?`,r={key:this.apiKey,limit:"50",entity_id:e},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"setSchedulers",(e,n,r)=>S(this,null,function*(){let i="",o="";n==="CREATE"?(i=`/clients/${this.clientId}/scheduler/tasks?`,o="POST"):(i=`/clients/${this.clientId}/scheduler/tasks/${r}?`,o="PUT");const a={key:this.apiKey},l=yield this.getToken();return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l}),body:JSON.stringify(e),method:o})}));U(this,"deleteScheduledTask",e=>S(this,null,function*(){const n=`/clients/${this.clientId}/scheduler/tasks/${e}?`,r={key:this.apiKey},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"getLoggedInStaffMember",()=>S(this,null,function*(){const r=(yield this.getToken()).split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(window.atob(r).split("").map(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(i)}));U(this,"constructAssetsUrl",e=>this.environment==="dev"?`https://storage.googleapis.com/client_images_cms_fans-united-dev/${this.clientId}/${e}`:this.environment==="staging"?`https://storage.googleapis.com/client_images_cms_fans-united-stage/${this.clientId}/${e}`:`https://uploads.fansunitedassets.com/${this.clientId}/${e}`);U(this,"throwErrorFromXmlResponse",e=>{const n=new window.DOMParser().parseFromString(e,"text/xml"),r=n.getElementsByTagName("Message")&&n.getElementsByTagName("Code").length>0?n.getElementsByTagName("Message")[0].textContent:"",i=n.getElementsByTagName("Details")&&n.getElementsByTagName("Code").length>0?n.getElementsByTagName("Details")[0].textContent:"";throw new Error(r+" "+i)});U(this,"getToken",()=>S(this,null,function*(){const e=Mo(this.environment).currentUser;return e?yield e.getIdToken():""}));this.apiKey=e.apiKey,this.clientId=e.clientId,this.environment=e.environment,this.mainQueryParams={key:e.apiKey,client_id:e.clientId},this.sportal365Config=n,this.clientApiBaseUrl=P_(this.environment)}}class O_{constructor(e){U(this,"baseUrl","https://v1.formula-1.api-sports.io");U(this,"apiKey");U(this,"headers");this.apiKey=e,this.headers={"X-RapidAPI-Key":this.apiKey,"Content-Type":"application/json"}}getRaces(e,n){return S(this,null,function*(){const r={season:e.toString(),type:(n==null?void 0:n.type)||"Race"};n&&Object.entries(n).forEach(([o,a])=>{a!=null&&(r[o]=a.toString())});const i=`${this.baseUrl}/races?${new URLSearchParams(r)}`;return yield fetch(i,{method:"GET",headers:this.headers})})}makeRequest(e,n){return S(this,null,function*(){let r=`${this.baseUrl}${e}`;return n&&Object.keys(n).length>0&&(r+=`?${new URLSearchParams(n)}`),yield fetch(r,{method:"GET",headers:this.headers})})}}const R_=t=>t==="dev"?"http://localhost:8060/v1":t==="staging"?"https://loyalty.fansunitedstagingapi.com/v1":"https://loyalty.fansunitedapi.com/v1",L_=t=>t==="dev"?"http://localhost:8040/v1":t==="staging"?"https://prediction.fansunitedstagingapi.com/v1":"https://prediction.fansunitedapi.com/v1",M_=t=>t==="dev"?"http://localhost:9040/v1":t==="staging"?"https://mini-games.fansunitedstagingapi.com/v1":"https://mini-games.fansunitedapi.com/v1",$_=t=>t==="dev"?"http://localhost:8020/v1":t==="staging"?"https://reporting.fansunitedstagingapi.com/v1":"https://reporting.fansunitedapi.com/v1",B_=t=>t==="dev"?"http://localhost:9030/v1":t==="staging"?"https://voting.fansunitedstagingapi.com/v1":"https://voting.fansunitedapi.com/v1",N_=t=>t==="staging"?"https://custom-games-resolver-131809830171.europe-west1.run.app/v1":"https://custom-games-resolver-150199313674.europe-west1.run.app/v1",F_=t=>t==="dev"?"http://localhost:8010/v1":t==="staging"?"https://profile.fansunitedstagingapi.com/v1":"https://profile.fansunitedapi.com/v1",j_=t=>t==="dev"?"http://localhost:8010/v1":t==="staging"?"https://discussions.fansunitedstagingapi.com/v1":"https://discussions.fansunitedapi.com/v1",z_=t=>t==="dev"?"http://localhost:9050/v1":t==="staging"?"https://ai-content-builder-131809830171.europe-west1.run.app/v1":"https://ai-content-builder-150199313674.europe-west1.run.app/v1",Rg=t=>t==="dev"?"http://localhost:8080/api/":t==="staging"?"https://ikebana-backend-proxy-131809830171.europe-west1.run.app/api/":"https://ikebana-backend-proxy-150199313674.europe-west1.run.app/api/",U_=t=>`${Rg(t)}elasticsearch/`,V_=t=>`${Rg(t)}gcp/`;class H_ extends D_{constructor(n,r){super(n,r);U(this,"loyaltyBaseUrl","");U(this,"predictionBaseUrl","");U(this,"miniGamesApiBaseUrl","");U(this,"reportingApiBaseUrl","");U(this,"votingApiBaseUrl","");U(this,"profileApiBaseUrl","");U(this,"customResolverUrl","");U(this,"discussionsApiBaseUrl","");U(this,"aiServiceBaseUrl","");U(this,"ikebanaProxyBaseUrl","");U(this,"ikebanaGcpBaseUrl","");U(this,"apiSports");U(this,"getClientById",()=>S(this,null,function*(){const n=`/clients/${this.clientId}?`,r={key:this.apiKey},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"createTemplate",n=>S(this,null,function*(){const r="/leaderboard/templates?",i=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"editTemplate",(n,r)=>S(this,null,function*(){const i=`/leaderboard/templates/${n}?`,o=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteTemplate",n=>S(this,null,function*(){const r=`/leaderboard/templates/${n}?`,i=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"setWinners",n=>S(this,null,function*(){const r="/winners?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"exportDetailedLeaderboard",(n,r,i)=>S(this,null,function*(){const o=`/leaderboard/${n}/detailed?`,a=yield this.getToken(),l=D({},this.mainQueryParams);return r&&(l.group_id=r),yield fetch(this.loyaltyBaseUrl+o+new URLSearchParams(Q(D({},l),{limit:i.toString()})),{headers:Q(D({},this.headers),{Authorization:"Bearer "+a})})}));U(this,"exportDetailedGameLeaderboard",(n,r)=>S(this,null,function*(){const i=`/leaderboard/games/${n}/detailed?`,o=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+i+new URLSearchParams(Q(D({},this.mainQueryParams),{limit:r.toString()})),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"createGame",n=>S(this,null,function*(){const r="/games?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"editGame",(n,r)=>S(this,null,function*(){const i=`/games/${n}?`,o=yield this.getToken();return yield fetch(this.predictionBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PATCH",body:JSON.stringify(r)})}));U(this,"getEntityFeature",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/features/${n}?`,o={key:this.apiKey};return r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o))}));U(this,"getClientFeatures",(n,r=1)=>S(this,null,function*(){const i=`/clients/${this.clientId}/features?`,o={key:this.apiKey};n&&(o.disable_cache=Date.now().toString());const a=Q(D({},this.headers),{"x-api-version":r.toString()});return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:a})}));U(this,"updateEntityFeatures",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/features/${n}?`,o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams({key:this.apiKey}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PATCH",body:JSON.stringify(r)})}));U(this,"getClassicQuizFeature",()=>S(this,null,function*(){const n=`/clients/${this.clientId}/features/classic_quiz?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));U(this,"getEitherOrFeature",()=>S(this,null,function*(){const n=`/clients/${this.clientId}/features/either_or?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));U(this,"getPollFeature",()=>S(this,null,function*(){const n=`/clients/${this.clientId}/features/poll?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));U(this,"createClassicQuiz",n=>S(this,null,function*(){const r="/classic-quizzes?",i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateClassicQuiz",(n,r)=>S(this,null,function*(){const i=`/classic-quizzes/${n}?`,o=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"getClassicQuizById",n=>S(this,null,function*(){const r=`/classic-quizzes/${n}/staff?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"deleteClassicQuiz",n=>S(this,null,function*(){const r=`/classic-quizzes/${n}?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"calculateQuestionsReport",n=>S(this,null,function*(){const r=`/classic-quizzes/${n}/questions-report?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST"})}));U(this,"exportUsers",n=>S(this,null,function*(){const r="/exports/users?",i=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"getClassicQuizParticipations",(n,r,i,o)=>S(this,null,function*(){const a="/classic-quizzes/participations?",l=Q(D({},this.mainQueryParams),{classic_quiz_ids:n,from_date:r,to_date:i,group_by:o}),c=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+a+new URLSearchParams(l),{headers:Q(D({},this.headers),{Authorization:"Bearer "+c})})}));U(this,"getEntityParticipations",(n,r,i)=>S(this,null,function*(){const o=`/participations/${n}/breakdown?`,a=Q(D({},this.mainQueryParams),{from_date:r,to_date:i}),l=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+o+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l})})}));U(this,"createPoll",n=>S(this,null,function*(){const r="/polls?",i=yield this.getToken();return yield fetch(this.votingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updatePoll",(n,r)=>S(this,null,function*(){const i=`/polls/${n}?`,o=yield this.getToken();return yield fetch(this.votingApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deletePoll",n=>S(this,null,function*(){const r=`/polls/${n}?`,i=yield this.getToken();return yield fetch(this.votingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"getEitherOrById",(n,r)=>S(this,null,function*(){const i=`/either-or/${n}/staff?`,o=yield this.getToken();let a=null;return r&&(a=Q(D({},this.mainQueryParams),{client_id:r})),yield fetch(this.miniGamesApiBaseUrl+i+new URLSearchParams(a||this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"getEitherOrByIdReadOnlyClient",(n,r,i)=>S(this,null,function*(){const o="https://mini-games.fansunitedapi.com/v1",a=`/either-or/${n}/staff?`,l=yield this.getToken(),c={key:r,client_id:i};return yield fetch(o+a+new URLSearchParams(c),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l})})}));U(this,"createEitherOr",n=>S(this,null,function*(){const r="/either-or?",i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateEitherOr",(n,r)=>S(this,null,function*(){const i=`/either-or/${n}?`,o=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteEitherOr",n=>S(this,null,function*(){const r=`/either-or/${n}?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"getLists",(n,r,i="DESC")=>S(this,null,function*(){const o=`/clients/${this.clientId}/lists?`,a={key:this.apiKey,limit:n.toString(),sort_order:i};r&&(a.start_after=r);const l=yield this.getToken();return yield fetch(this.clientApiBaseUrl+o+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l})})}));U(this,"getListById",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/lists/${n}?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"getListContent",(n,r,i="DESC",o)=>S(this,null,function*(){const a=`/clients/${this.clientId}/lists/${n}/content?`,l={key:this.apiKey,limit:r.toString(),sort_order:i};o&&(l.page=o.toString());const c=yield this.getToken();return yield fetch(this.clientApiBaseUrl+a+new URLSearchParams(l),{headers:Q(D({},this.headers),{Authorization:"Bearer "+c})})}));U(this,"createList",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/lists/?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateList",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/lists/${n}?`,o={key:this.apiKey},a=yield this.getToken();return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+a}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteList",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/lists/${n}?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"DELETE"})}));U(this,"getLanguageConfig",()=>S(this,null,function*(){const n=`/clients/${this.clientId}/config/language?`,r={key:this.apiKey},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"updateLanguageConfig",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/config/language?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(n)})}));U(this,"createBracketGame",n=>S(this,null,function*(){const r="/custom/bracket?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateBracketGame",(n,r)=>S(this,null,function*(){const i=`/custom/bracket/${n}?`,o=yield this.getToken();return yield fetch(this.predictionBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"resolvePredictions",n=>S(this,null,function*(){const r="/custom/bracket/resolve?",o=yield this.getToken();return yield fetch(this.customResolverUrl+r+new URLSearchParams({client_id:this.clientId,game_id:n}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),signal:AbortSignal.timeout(6e5)})}));U(this,"exportLeadsPerEntity",n=>S(this,null,function*(){const r="/leads/export?",i=Q(D({},this.mainQueryParams),{content_id:n}),o=yield this.getToken();return yield fetch(this.profileApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"getLeadStatistics",n=>S(this,null,function*(){const r="/leads/statistics?",i=yield this.getToken();let o=null;return n?o=new URLSearchParams(D(D({},this.mainQueryParams),n)):o=new URLSearchParams(this.mainQueryParams),yield fetch(this.profileApiBaseUrl+r+o,{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"exportLeads",n=>S(this,null,function*(){const r="/leads/export?",i=yield this.getToken();let o=null;return n?o=new URLSearchParams(D(D({},this.mainQueryParams),n)):o=new URLSearchParams(this.mainQueryParams),yield fetch(this.profileApiBaseUrl+r+o,{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"createStandingGame",n=>S(this,null,function*(){const r="/custom/standing?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateStandingGame",(n,r)=>S(this,null,function*(){const i=`/custom/standing/${n}?`,o=yield this.getToken();return yield fetch(this.predictionBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"resolveStandingPredictions",n=>S(this,null,function*(){const r="/custom/standing/resolve?",o=yield this.getToken();return yield fetch(this.customResolverUrl+r+new URLSearchParams({client_id:this.clientId,game_id:n}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),signal:AbortSignal.timeout(6e5)})}));U(this,"moderateUserPosts",(n,r)=>S(this,null,function*(){const i="/moderation/bulk?",o=yield this.getToken(),a=Q(D({},this.mainQueryParams),{user_id:n,reason:r});return yield fetch(this.discussionsApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"POST"})}));U(this,"getUserBanStatus",n=>S(this,null,function*(){const r=`/discussions/users/${n}/ban?`,i=yield this.getToken();return yield fetch(this.discussionsApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"banUser",(n,r,i)=>S(this,null,function*(){const o=`/discussions/users/${n}/ban?`,a=yield this.getToken(),l={banned_period_in_days:r,banned_reason:i};return yield fetch(this.discussionsApiBaseUrl+o+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+a}),method:"POST",body:JSON.stringify(l)})}));U(this,"unbanUser",(n,r)=>S(this,null,function*(){const i=`/discussions/users/${n}/ban?`,o=yield this.getToken(),a={unban_reason:r};return yield fetch(this.discussionsApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"DELETE",body:JSON.stringify(a)})}));U(this,"updateUser",(n,r,i)=>S(this,null,function*(){const o=`/profiles/${n}/verify?`,a=yield this.getToken(),l=r==="verify"?{verified:i}:{staff_member:i};return yield fetch(this.profileApiBaseUrl+o+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+a}),method:"POST",body:JSON.stringify(l)})}));U(this,"deleteUserProfile",n=>S(this,null,function*(){const r=`/profiles/${n}?`,i=yield this.getToken();return yield fetch(this.profileApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"createDiscussion",n=>S(this,null,function*(){const r="/discussions?",i=yield this.getToken();return yield fetch(this.discussionsApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"deleteDiscussion",n=>S(this,null,function*(){const r=`/discussions/${n}?`,i=yield this.getToken();return yield fetch(this.discussionsApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"moderatePosts",(...a)=>S(this,[...a],function*(n="",r=[],i,o){const l="/moderation/bulk?",c=yield this.getToken();let u={};if(r.length>0){const h=r.join(",");u=Q(D({},this.mainQueryParams),{post_ids:h,reason:i})}else u=Q(D({},this.mainQueryParams),{discussion_id:n,reason:i});return o&&(u=Q(D({},u),{reason_code:o})),yield fetch(this.discussionsApiBaseUrl+l+new URLSearchParams(u),{headers:Q(D({},this.headers),{Authorization:"Bearer "+c}),method:"POST"})}));U(this,"pinDiscussionPosts",(n,r)=>S(this,null,function*(){const i=`/discussions/${n}/pins?`,o=yield this.getToken(),a=Q(D({},this.mainQueryParams),{pin_post_ids:r.join(",")});return yield fetch(this.discussionsApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PATCH"})}));U(this,"unpinDiscussionPosts",(n,r)=>S(this,null,function*(){const i=`/discussions/${n}/pins?`,o=yield this.getToken(),a=Q(D({},this.mainQueryParams),{pin_post_ids:r.join(",")});return yield fetch(this.discussionsApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"DELETE"})}));U(this,"getPostsByStaffMember",n=>S(this,null,function*(){const r="/posts/staff?",i=yield this.getToken();return yield fetch(this.discussionsApiBaseUrl+r+new URLSearchParams(D(D({},this.mainQueryParams),n)),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"getReportedPosts",n=>S(this,null,function*(){const r="/posts/staff/reported?",i=yield this.getToken();return yield fetch(this.discussionsApiBaseUrl+r+new URLSearchParams(D(D({},this.mainQueryParams),n)),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"updateDiscussionsFeature",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/features/discussions?`,i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams({key:this.apiKey}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"PATCH",body:JSON.stringify(n)})}));U(this,"updateProfilePreferences",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/features/profile_preferences?`,i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams({key:this.apiKey}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"PATCH",body:JSON.stringify(n)})}));U(this,"getClientBadges",()=>S(this,null,function*(){const n=`/clients/${this.clientId}/features/loyalty/badges?`,r={key:this.apiKey},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"updateClientBadges",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/features/loyalty/badges?`,i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams({key:this.apiKey}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"PUT",body:JSON.stringify(n)})}));U(this,"getEngagementThroughPredictionsReport",(n,r,i)=>S(this,null,function*(){const o="/predictions/football/engagements?",a=Q(D({},this.mainQueryParams),{from_date:r,to_date:i,type:n}),l=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+o+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l})})}));U(this,"createPersonalityQuiz",n=>S(this,null,function*(){const r="/personality-quizzes?",i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updatePersonalityQuiz",(n,r)=>S(this,null,function*(){const i=`/personality-quizzes/${n}?`,o=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deletePersonalityQuiz",n=>S(this,null,function*(){const r=`/personality-quizzes/${n}?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"getPersonalityQuizOptionsReport",n=>S(this,null,function*(){const r=`/personality-quizzes/${n}/options-report?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"generatePostMatchQuiz",n=>S(this,null,function*(){const r="/classic-quizzes/post-match?",i=Q(D({},this.mainQueryParams),{sport_type:n.sportType,lang:n.lang,event_id:n.eventId});n.sportType==="football"&&(i.difficulty=n.difficulty);const o=yield this.getToken();return yield fetch(this.aiServiceBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"generatePreMatchQuiz",n=>S(this,null,function*(){const r="/classic-quizzes/pre-match?",i=Q(D({},this.mainQueryParams),{sport_type:n.sportType,lang:n.lang,event_id:n.eventId,difficulty:n.difficulty}),o=yield this.getToken();return yield fetch(this.aiServiceBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"generateHalfTimeMatchQuiz",n=>S(this,null,function*(){const r="/classic-quizzes/halftime?",i=Q(D({},this.mainQueryParams),{sport_type:"football",lang:n.lang,event_id:n.eventId,difficulty:n.difficulty}),o=yield this.getToken();return yield fetch(this.aiServiceBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"generatePostMatchPoll",n=>S(this,null,function*(){const r="/polls/post-match?",i=Q(D({},this.mainQueryParams),{lang:n.lang,event_id:n.eventId});n.targetParticipant&&(i.target_participant=n.targetParticipant);const o=yield this.getToken();return yield fetch(this.aiServiceBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o})})}));U(this,"createEventGame",n=>S(this,null,function*(){const r="/custom/event?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateEventGame",(n,r)=>S(this,null,function*(){const i=`/custom/event/${n}?`,o=yield this.getToken();return yield fetch(this.predictionBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"resolveEventGamePredictions",n=>S(this,null,function*(){const r="/custom/event/resolve?",o=yield this.getToken();return yield fetch(this.customResolverUrl+r+new URLSearchParams({client_id:this.clientId,game_id:n}),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),signal:AbortSignal.timeout(6e5)})}));U(this,"createBrandingTemplate",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/templates/brandings?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateBrandingTemplate",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/templates/brandings/${n}?`,o={key:this.apiKey},a=yield this.getToken();return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+a}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteBrandingTemplate",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/templates/brandings/${n}?`,i={key:this.apiKey},o=yield this.getToken();return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"DELETE"})}));U(this,"getBrandingTemplates",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/templates/brandings?`,o={key:this.apiKey};return n&&n.length>0&&(o.branding_ids=n.join(",")),r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:this.headers})}));U(this,"getBrandingTemplateById",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/templates/brandings/${n}?`,o={key:this.apiKey};return r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:this.headers})}));U(this,"getWidgetConfigurations",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/config/widgets?`,i={key:this.apiKey};return n&&(i.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(i),{headers:this.headers})}));U(this,"getWidgetConfigurationById",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/config/widgets/${n}?`,o={key:this.apiKey};return r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:this.headers})}));U(this,"createWidgetConfiguration",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/config/widgets?`,i=yield this.getToken(),o={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateWidgetConfiguration",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/config/widgets/${n}?`,o=yield this.getToken(),a={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteWidgetConfiguration",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/config/widgets/${n}?`,i=yield this.getToken(),o={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"getInfoPages",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/info-pages?`,o={key:this.apiKey};return n&&(o.limit=n.limit.toString(),n.startAfter&&(o.start_after=n.startAfter),n.sortOrder&&(o.sort_order=n.sortOrder),n.infoPageIds&&n.infoPageIds.length>0&&(o.info_page_ids=n.infoPageIds.join(","))),r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:this.headers})}));U(this,"getInfoPageById",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/info-pages/${n}?`,o={key:this.apiKey};return r&&(o.disable_cache=Date.now().toString()),yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(o),{headers:this.headers})}));U(this,"createInfoPage",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/info-pages?`,i=yield this.getToken(),o={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));U(this,"updateInfoPage",(n,r)=>S(this,null,function*(){const i=`/clients/${this.clientId}/info-pages/${n}?`,o=yield this.getToken(),a={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+i+new URLSearchParams(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));U(this,"deleteInfoPage",n=>S(this,null,function*(){const r=`/clients/${this.clientId}/info-pages/${n}?`,i=yield this.getToken(),o={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+r+new URLSearchParams(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));U(this,"exportClassicQuizParticipations",n=>S(this,null,function*(){const r=`/exports/classic-quizzes/${n}/participations?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"getSportEntities",(l,...c)=>S(this,[l,...c],function*(n,{page:r=1,limit:i=10,sport:o}={},a=this.clientId){const u=`${this.resolveSportEntityIndex(n,a)}/_search`,h=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+u,{headers:Q(D({},this.headers),{Authorization:"Bearer "+h}),method:"POST",body:JSON.stringify({query:this.withPopularityRanking(this.buildSportEntityBrowseQuery(o)),size:i,from:(r-1)*i,sort:[{_score:"desc"},{_doc:"asc"}]})})}));U(this,"buildSportEntityBrowseQuery",n=>{const r=this.sportFilter(n);return r?{bool:{filter:[r]}}:{match_all:{}}});U(this,"sportFilter",n=>{const r=String(n!=null?n:"").trim().toUpperCase().replace(/\s+/g,"_");return r?{term:{sport:r}}:null});U(this,"searchSportEntities",(l,c,...u)=>S(this,[l,c,...u],function*(n,r,i=100,o=this.clientId,a){const h=`${this.resolveSportEntityIndex(r,o)}/_search`,d=yield this.getToken(),p=n.includes(":")?{term:{id:n}}:{multi_match:{query:n,type:"best_fields",operator:"and",fields:["search_title.autocomplete^3","search_variations.autocomplete","search_title^2","search_variations"]}},g=this.sportFilter(a),b=g?{bool:{must:p,filter:[g]}}:p;return yield fetch(this.ikebanaProxyBaseUrl+h,{headers:Q(D({},this.headers),{Authorization:"Bearer "+d}),method:"POST",body:JSON.stringify({query:this.withPopularityRanking(b),size:i})})}));U(this,"withPopularityRanking",n=>({function_score:{query:n,field_value_factor:{field:"popularity",modifier:"none",factor:1,missing:1},boost_mode:"multiply"}}));U(this,"getSportEntity",(o,a,...l)=>S(this,[o,a,...l],function*(n,r,i=this.clientId){const c=`${this.resolveSportEntityIndex(r,i)}/_doc/${encodeURIComponent(n)}`,u=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+c,{headers:Q(D({},this.headers),{Authorization:"Bearer "+u})})}));U(this,"getSportEntitiesByIds",(o,a,...l)=>S(this,[o,a,...l],function*(n,r,i=this.clientId){const c=`${this.resolveSportEntityIndex(r,i)}/_search`,u=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+c,{headers:Q(D({},this.headers),{Authorization:"Bearer "+u}),method:"POST",body:JSON.stringify({query:{ids:{values:n}},size:n.length})})}));U(this,"countSportEntities",(i,...o)=>S(this,[i,...o],function*(n,r=this.clientId){const a=`${this.resolveSportEntityIndex(n,r)}/_count`,l=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+a,{headers:Q(D({},this.headers),{Authorization:"Bearer "+l})})}));U(this,"searchableQuery",n=>n?"?refresh=wait_for":"");U(this,"createSportEntity",(a,l,...c)=>S(this,[a,l,...c],function*(n,r,i=this.clientId,o=!1){const u=`${this.resolveSportEntityIndex(r,i)}/_doc/${encodeURIComponent(n.id)}`,h=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+u+this.searchableQuery(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+h}),method:"POST",body:JSON.stringify(this.buildSportEntityWriteBody(n,i))})}));U(this,"updateSportEntity",(l,c,u,...h)=>S(this,[l,c,u,...h],function*(n,r,i,o=this.clientId,a=!1){const d=`${this.resolveSportEntityIndex(i,o)}/_doc/${encodeURIComponent(n)}`,p=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+d+this.searchableQuery(a),{headers:Q(D({},this.headers),{Authorization:"Bearer "+p}),method:"PUT",body:JSON.stringify(this.buildSportEntityWriteBody(r,o))})}));U(this,"deleteSportEntity",(a,l,...c)=>S(this,[a,l,...c],function*(n,r,i=this.clientId,o=!1){const u=`${this.resolveSportEntityIndex(r,i)}/_doc/${encodeURIComponent(n)}`,h=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+u+this.searchableQuery(o),{headers:Q(D({},this.headers),{Authorization:"Bearer "+h}),method:"DELETE"})}));U(this,"uploadSportEntityAsset",(n,r,i)=>S(this,null,function*(){const o={entityId:r};i&&(o.assetKey=i),n instanceof File&&n.name&&(o.filename=n.name);const a=yield this.getToken();return yield fetch(this.ikebanaGcpBaseUrl+"upload?"+new URLSearchParams(o),{headers:{"Content-Type":n.type||"application/octet-stream",Authorization:"Bearer "+a},method:"POST",body:n})}));U(this,"importSportEntityAssetFromUrl",(n,r,i)=>S(this,null,function*(){const o=yield this.getToken();return yield fetch(this.ikebanaGcpBaseUrl+"upload",{headers:Q(D({},this.headers),{Authorization:"Bearer "+o}),method:"POST",body:JSON.stringify({entityId:r,assetKey:i,url:n})})}));U(this,"buildSportEntityWriteBody",(n,r)=>{const i=D({},n);return delete i._id,delete i.client_id,r&&(i.client_id=r.toLowerCase()),i});U(this,"resolveSportEntityIndex",(n,r)=>{const i=`search-entities-${n}`;return r?`${i}-${r.toLowerCase()}`:i});this.loyaltyBaseUrl=R_(n.environment),this.predictionBaseUrl=L_(n.environment),this.miniGamesApiBaseUrl=M_(n.environment),this.reportingApiBaseUrl=$_(n.environment),this.votingApiBaseUrl=B_(n.environment),this.profileApiBaseUrl=F_(n.environment),this.customResolverUrl=N_(n.environment),this.discussionsApiBaseUrl=j_(n.environment),this.aiServiceBaseUrl=z_(n.environment),this.ikebanaProxyBaseUrl=U_(n.environment),this.ikebanaGcpBaseUrl=V_(n.environment);const i="df4a58523f0acb1baa8b7273cdf1da0b";this.apiSports=new O_(i)}}const W_=(t,e)=>!t&&!e?null:!t&&e?(console.warn("'sportal365Project' prop is not provided. The prop is required when 'sportal365Infrastructure' prop is provided. Functionalities with Sportal365 API will not be exposed"),null):{project:t,authorization:`Bearer ${e&&e==="betway"?"24PkUfW1ce63mH9jvAAug2QQzdASj9k5smngepPUZD2KUq5cbTFGE98KgZ0zg2wCtuQcoJrHElW7Dr0K":"dEZS1V21veHBIDIik8Y33dDkZAoCmxgge5MBnAORN7IKbltA79giTZLaXJ6OVgQkGnYxwtyRv8ObRSvY"}`},ps=m.createContext(null),G_=({config:t,children:e})=>{const n={apiKey:t.apiKey,clientId:t.clientId,environment:t.environment,lang:t.language,errorHandlingMode:t.errorHandlingMode,idSchema:"native",authProvider:{getIdToken:()=>"",logout:()=>{}}},r=W_(t.sportal365Project,t.sportal365Infrastructure),i=et.FansUnitedSDK(n),o=new H_(n,r);return s.jsx(ps.Provider,{value:{sdk:i,https:o},children:e})},Lg=m.createContext(null),q_=({children:t,environment:e})=>{const[n,r]=m.useState(null),[i,o]=m.useState(!0);return m.useEffect(()=>Mo(e).onAuthStateChanged(l=>{St.unstable_batchedUpdates(()=>{o(!1),r(l)})}),[e]),s.jsx(Lg.Provider,{value:n,children:!i&&t})};function F(){return F=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F.apply(null,arguments)}function Ne(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}var Mg={exports:{}},K_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Y_=K_,Q_=Y_;function $g(){}function Bg(){}Bg.resetWarningCache=$g;var J_=function(){function t(r,i,o,a,l,c){if(c!==Q_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Bg,resetWarningCache:$g};return n.PropTypes=n,n};Mg.exports=J_();var X_=Mg.exports;function Z_(t){return typeof t=="string"}function eE(t,e,n){return t===void 0||Z_(t)?e:F({},e,{ownerState:F({},e.ownerState,n)})}function Ng(t,e,n=(r,i)=>r===i){return t.length===e.length&&t.every((r,i)=>n(r,e[i]))}function Yn(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function tE(t,e,n){return typeof t=="function"?t(e,n):t}function nE(t){const{rootElementName:e="",componentName:n}=t,[r,i]=Y.useState(e.toUpperCase()),o=Y.useCallback(a=>{var l;i((l=a==null?void 0:a.tagName)!=null?l:"")},[]);return[r,o]}function rE(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Sn(...t){return Y.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(n=>{rE(n,e)})},t)}function Fg(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Fg(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Qn(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Fg(t))&&(r&&(r+=" "),r+=e);return r}function jg(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function iE(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=t;if(!e){const g=Qn(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),b=F({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=F({},n,i,r);return g.length>0&&(v.className=g),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const a=Yn(F({},i,r)),l=jg(r),c=jg(i),u=e(a),h=Qn(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=F({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=F({},u,n,c,l);return h.length>0&&(p.className=h),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function br(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function zg(t){if(Y.isValidElement(t)||!br(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=zg(t[n])}),e}function Jn(t,e,n={clone:!0}){const r=n.clone?F({},t):t;return br(t)&&br(e)&&Object.keys(e).forEach(i=>{Y.isValidElement(e[i])?r[i]=e[i]:br(e[i])&&Object.prototype.hasOwnProperty.call(t,i)&&br(t[i])?r[i]=Jn(t[i],e[i],n):n.clone?r[i]=br(e[i])?zg(e[i]):e[i]:r[i]=e[i]}),r}function gs(t){let e="https://mui.com/production-error/?code="+t;for(let n=1;n<arguments.length;n+=1)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+t+"; visit "+e+" for the full message."}var Ug={exports:{}},Ke={};/**
|
|
3331
3331
|
* @license React
|
|
3332
3332
|
* react-is.production.js
|
|
3333
3333
|
*
|
package/package.json
CHANGED
|
@@ -152,13 +152,19 @@ export default class HttpsService extends Https {
|
|
|
152
152
|
* option can pass its value through without the caller special-casing it.
|
|
153
153
|
*/
|
|
154
154
|
private buildSportEntityBrowseQuery;
|
|
155
|
+
/** The `sport` term filter for a caller's sport value, or null when it is blank. */
|
|
156
|
+
private sportFilter;
|
|
155
157
|
/**
|
|
156
158
|
* Search sport entities by name, title or id.
|
|
157
159
|
*
|
|
158
160
|
* A query containing ':' is treated as an exact id lookup, since entity ids
|
|
159
161
|
* look like `fb:c:123` and an analyzed match on them is unreliable.
|
|
162
|
+
*
|
|
163
|
+
* `sport` narrows the results the same way it narrows a browse page, so a
|
|
164
|
+
* search under a sport filter does not return other sports' namesakes. Blank
|
|
165
|
+
* means all sports.
|
|
160
166
|
*/
|
|
161
|
-
searchSportEntities: (query: string, entityType: IkebanaEntityType, limit?: number, clientId?: string | null) => Promise<Response>;
|
|
167
|
+
searchSportEntities: (query: string, entityType: IkebanaEntityType, limit?: number, clientId?: string | null, sport?: string) => Promise<Response>;
|
|
162
168
|
/**
|
|
163
169
|
* Rank by popularity the way the Search API does.
|
|
164
170
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,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