fansunited-management-components 1.71.0-RC4 → 1.71.0-RC5
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 +11 -2
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/services/https/HttpsService.d.ts.map +1 -1
package/index.es.js
CHANGED
|
@@ -11882,10 +11882,19 @@ class B1 extends A1 {
|
|
|
11882
11882
|
headers: q(k({}, this.headers), { Authorization: "Bearer " + h }),
|
|
11883
11883
|
method: "POST",
|
|
11884
11884
|
body: JSON.stringify({
|
|
11885
|
-
query: this.buildSportEntityBrowseQuery(o),
|
|
11885
|
+
query: this.withPopularityRanking(this.buildSportEntityBrowseQuery(o)),
|
|
11886
11886
|
size: i,
|
|
11887
11887
|
from: (r - 1) * i,
|
|
11888
|
-
|
|
11888
|
+
// Score first, so the page is ordered by popularity exactly as a search
|
|
11889
|
+
// is. This used to sort on `_doc` alone, which is index order: an
|
|
11890
|
+
// explicit sort replaces relevance entirely, so the popularity ranking
|
|
11891
|
+
// would have been computed and then thrown away.
|
|
11892
|
+
//
|
|
11893
|
+
// `_doc` stays as the tiebreaker. Most entity types carry no popularity
|
|
11894
|
+
// at all and so score identically, and without a stable second key
|
|
11895
|
+
// their order could differ between two requests - which during paging
|
|
11896
|
+
// shows the same entity twice and hides another.
|
|
11897
|
+
sort: [{ _score: "desc" }, { _doc: "asc" }]
|
|
11889
11898
|
})
|
|
11890
11899
|
});
|
|
11891
11900
|
}));
|
package/index.umd.js
CHANGED
|
@@ -2322,7 +2322,7 @@
|
|
|
2322
2322
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2323
2323
|
* See the License for the specific language governing permissions and
|
|
2324
2324
|
* limitations under the License.
|
|
2325
|
-
*/const OI="auth-compat";function MI(e){e.INTERNAL.registerComponent(new Zn(OI,t=>{const n=t.getProvider("app-compat").getImmediate(),r=t.getProvider("auth");return new dc(n,r)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:Gr.EMAIL_SIGNIN,PASSWORD_RESET:Gr.PASSWORD_RESET,RECOVER_EMAIL:Gr.RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:Gr.REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:Gr.VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:Gr.VERIFY_EMAIL}},EmailAuthProvider:or,FacebookAuthProvider:Tn,GithubAuthProvider:kn,GoogleAuthProvider:En,OAuthProvider:Zr,SAMLAuthProvider:da,PhoneAuthProvider:fc,PhoneMultiFactorGenerator:hh,RecaptchaVerifier:DI,TwitterAuthProvider:_n,Auth:dc,AuthCredential:Jr,Error:Ht}).setInstantiationMode("LAZY").setMultipleInstances(!1)),e.registerVersion(fI,hI)}MI(rr);let Eh=!1;const fo=e=>{if(Eh)return rr.auth();if(e&&e==="dev"){rr.initializeApp({apiKey:"api_key"});const n=HS();zl(n,"http://localhost:39199")}else{const n={apiKey:e&&e==="staging"?"AIzaSyBKhAYwkvkmjm16FxCMvCUQjSRpKC0DbM8":"AIzaSyDPD_SETLswR_U3dKawYkAyRhbzVXziD_4",authDomain:"fans-united-clients.firebaseapp.com",projectId:"fans-united-clients",messagingSenderId:"78627953958",appId:"1:78627953958:web:2ee87d5b274e0e7685f5e7",measurementId:"G-RH90B03KJG"};rr.initializeApp(n)}return Eh=!0,rr.auth()},LI=e=>e==="dev"?"http://localhost:8070/v1":e==="staging"?"https://client.fansunitedstagingapi.com/v1":"https://client.fansunitedapi.com/v1";class RI{constructor(t,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",t=>P(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(t)})}));U(this,"storeInBucket",(t,n,r)=>P(this,null,function*(){const i=yield fetch(t,{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",(t,n,r)=>P(this,null,function*(){if(this.sportal365Config){const i={Project:this.sportal365Config.project,Authorization:this.sportal365Config.authorization};let o={query:t,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",t=>P(this,null,function*(){const n=`/clients/${this.clientId}/scheduler/tasks?`,r={key:this.apiKey,limit:"50",entity_id:t},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"setSchedulers",(t,n,r)=>P(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(t),method:o})}));U(this,"deleteScheduledTask",t=>P(this,null,function*(){const n=`/clients/${this.clientId}/scheduler/tasks/${t}?`,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",()=>P(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",t=>this.environment==="dev"?`https://storage.googleapis.com/client_images_cms_fans-united-dev/${this.clientId}/${t}`:this.environment==="staging"?`https://storage.googleapis.com/client_images_cms_fans-united-stage/${this.clientId}/${t}`:`https://uploads.fansunitedassets.com/${this.clientId}/${t}`);U(this,"throwErrorFromXmlResponse",t=>{const n=new window.DOMParser().parseFromString(t,"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",()=>P(this,null,function*(){const t=fo(this.environment).currentUser;return t?yield t.getIdToken():""}));this.apiKey=t.apiKey,this.clientId=t.clientId,this.environment=t.environment,this.mainQueryParams={key:t.apiKey,client_id:t.clientId},this.sportal365Config=n,this.clientApiBaseUrl=LI(this.environment)}}class BI{constructor(t){U(this,"baseUrl","https://v1.formula-1.api-sports.io");U(this,"apiKey");U(this,"headers");this.apiKey=t,this.headers={"X-RapidAPI-Key":this.apiKey,"Content-Type":"application/json"}}getRaces(t,n){return P(this,null,function*(){const r={season:t.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(t,n){return P(this,null,function*(){let r=`${this.baseUrl}${t}`;return n&&Object.keys(n).length>0&&(r+=`?${new URLSearchParams(n)}`),yield fetch(r,{method:"GET",headers:this.headers})})}}const $I=e=>e==="dev"?"http://localhost:8060/v1":e==="staging"?"https://loyalty.fansunitedstagingapi.com/v1":"https://loyalty.fansunitedapi.com/v1",FI=e=>e==="dev"?"http://localhost:8040/v1":e==="staging"?"https://prediction.fansunitedstagingapi.com/v1":"https://prediction.fansunitedapi.com/v1",NI=e=>e==="dev"?"http://localhost:9040/v1":e==="staging"?"https://mini-games.fansunitedstagingapi.com/v1":"https://mini-games.fansunitedapi.com/v1",jI=e=>e==="dev"?"http://localhost:8020/v1":e==="staging"?"https://reporting.fansunitedstagingapi.com/v1":"https://reporting.fansunitedapi.com/v1",zI=e=>e==="dev"?"http://localhost:9030/v1":e==="staging"?"https://voting.fansunitedstagingapi.com/v1":"https://voting.fansunitedapi.com/v1",UI=e=>e==="staging"?"https://custom-games-resolver-131809830171.europe-west1.run.app/v1":"https://custom-games-resolver-150199313674.europe-west1.run.app/v1",VI=e=>e==="dev"?"http://localhost:8010/v1":e==="staging"?"https://profile.fansunitedstagingapi.com/v1":"https://profile.fansunitedapi.com/v1",HI=e=>e==="dev"?"http://localhost:8010/v1":e==="staging"?"https://discussions.fansunitedstagingapi.com/v1":"https://discussions.fansunitedapi.com/v1",WI=e=>e==="dev"?"http://localhost:9050/v1":e==="staging"?"https://ai-content-builder-131809830171.europe-west1.run.app/v1":"https://ai-content-builder-150199313674.europe-west1.run.app/v1",kh=e=>e==="dev"?"http://localhost:8080/api/":e==="staging"?"https://ikebana-backend-proxy-131809830171.europe-west1.run.app/api/":"https://ikebana-backend-proxy-150199313674.europe-west1.run.app/api/",GI=e=>`${kh(e)}elasticsearch/`,YI=e=>`${kh(e)}gcp/`;class KI extends RI{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",()=>P(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=>P(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)=>P(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=>P(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=>P(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)=>P(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)=>P(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=>P(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)=>P(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)=>P(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)=>P(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)=>P(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",()=>P(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",()=>P(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",()=>P(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=>P(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)=>P(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=>P(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=>P(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=>P(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=>P(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)=>P(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)=>P(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=>P(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)=>P(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=>P(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)=>P(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)=>P(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=>P(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)=>P(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=>P(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")=>P(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=>P(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)=>P(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=>P(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)=>P(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=>P(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",()=>P(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=>P(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=>P(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)=>P(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=>P(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=>P(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=>P(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=>P(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=>P(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)=>P(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=>P(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)=>P(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=>P(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)=>P(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)=>P(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)=>P(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=>P(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=>P(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=>P(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",(...o)=>P(this,[...o],function*(n="",r=[],i){const a="/moderation/bulk?",l=yield this.getToken();let c={};if(r.length>0){const u=r.join(",");c=Q(D({},this.mainQueryParams),{post_ids:u,reason:i})}else c=Q(D({},this.mainQueryParams),{discussion_id:n,reason:i});return yield fetch(this.discussionsApiBaseUrl+a+new URLSearchParams(c),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l}),method:"POST"})}));U(this,"pinDiscussionPosts",(n,r)=>P(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)=>P(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=>P(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=>P(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=>P(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=>P(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",()=>P(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=>P(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)=>P(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=>P(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)=>P(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=>P(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,"generatePostMatchQuiz",n=>P(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=>P(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=>P(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=>P(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=>P(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)=>P(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=>P(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=>P(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)=>P(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=>P(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)=>P(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)=>P(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=>P(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)=>P(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=>P(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)=>P(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=>P(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)=>P(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)=>P(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=>P(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)=>P(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=>P(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=>P(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)=>P(this,[l,...c],function*(n,{page:r=1,limit:i=10,sport:o}={},a=this.clientId){const u=`${this.resolveSportEntityIndex(n,a)}/_search`,f=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+u,{headers:Q(D({},this.headers),{Authorization:"Bearer "+f}),method:"POST",body:JSON.stringify({query:this.buildSportEntityBrowseQuery(o),size:i,from:(r-1)*i,sort:[{_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)=>P(this,[a,l,...c],function*(n,r,i=100,o=this.clientId){const u=`${this.resolveSportEntityIndex(r,o)}/_search`,f=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 "+f}),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)=>P(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,"countSportEntities",(i,...o)=>P(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,"createSportEntity",(o,a,...l)=>P(this,[o,a,...l],function*(n,r,i=this.clientId){const c=`${this.resolveSportEntityIndex(r,i)}/_doc/${encodeURIComponent(n.id)}`,u=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+c,{headers:Q(D({},this.headers),{Authorization:"Bearer "+u}),method:"POST",body:JSON.stringify(this.buildSportEntityWriteBody(n,i))})}));U(this,"updateSportEntity",(a,l,c,...u)=>P(this,[a,l,c,...u],function*(n,r,i,o=this.clientId){const f=`${this.resolveSportEntityIndex(i,o)}/_doc/${encodeURIComponent(n)}`,d=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+f,{headers:Q(D({},this.headers),{Authorization:"Bearer "+d}),method:"PUT",body:JSON.stringify(this.buildSportEntityWriteBody(r,o))})}));U(this,"deleteSportEntity",(o,a,...l)=>P(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}),method:"DELETE"})}));U(this,"uploadSportEntityAsset",(n,r,i)=>P(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)=>P(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=$I(n.environment),this.predictionBaseUrl=FI(n.environment),this.miniGamesApiBaseUrl=NI(n.environment),this.reportingApiBaseUrl=jI(n.environment),this.votingApiBaseUrl=zI(n.environment),this.profileApiBaseUrl=VI(n.environment),this.customResolverUrl=UI(n.environment),this.discussionsApiBaseUrl=HI(n.environment),this.aiServiceBaseUrl=WI(n.environment),this.ikebanaProxyBaseUrl=GI(n.environment),this.ikebanaGcpBaseUrl=YI(n.environment);const i="df4a58523f0acb1baa8b7273cdf1da0b";this.apiSports=new BI(i)}}const qI=(e,t)=>!e&&!t?null:!e&&t?(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:e,authorization:`Bearer ${t&&t==="betway"?"24PkUfW1ce63mH9jvAAug2QQzdASj9k5smngepPUZD2KUq5cbTFGE98KgZ0zg2wCtuQcoJrHElW7Dr0K":"dEZS1V21veHBIDIik8Y33dDkZAoCmxgge5MBnAORN7IKbltA79giTZLaXJ6OVgQkGnYxwtyRv8ObRSvY"}`},Ta=m.createContext(null),QI=({config:e,children:t})=>{const n={apiKey:e.apiKey,clientId:e.clientId,environment:e.environment,lang:e.language,errorHandlingMode:e.errorHandlingMode,idSchema:"native",authProvider:{getIdToken:()=>"",logout:()=>{}}},r=qI(e.sportal365Project,e.sportal365Infrastructure),i=Je.FansUnitedSDK(n),o=new KI(n,r);return s.jsx(Ta.Provider,{value:{sdk:i,https:o},children:t})},_h=m.createContext(null),JI=({children:e,environment:t})=>{const[n,r]=m.useState(null),[i,o]=m.useState(!0);return m.useEffect(()=>fo(t).onAuthStateChanged(l=>{wt.unstable_batchedUpdates(()=>{o(!1),r(l)})}),[t]),s.jsx(_h.Provider,{value:n,children:!i&&e})};function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}function Be(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Ph={exports:{}},XI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ZI=XI,eA=ZI;function Dh(){}function Oh(){}Oh.resetWarningCache=Dh;var tA=function(){function e(r,i,o,a,l,c){if(c!==eA){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}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Oh,resetWarningCache:Dh};return n.PropTypes=n,n};Ph.exports=tA();var nA=Ph.exports;function rA(e){return typeof e=="string"}function iA(e,t,n){return e===void 0||rA(e)?t:N({},t,{ownerState:N({},t.ownerState,n)})}function Mh(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}function Un(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function oA(e,t,n){return typeof e=="function"?e(t,n):e}function aA(e){const{rootElementName:t="",componentName:n}=e,[r,i]=q.useState(t.toUpperCase()),o=q.useCallback(a=>{var l;i((l=a==null?void 0:a.tagName)!=null?l:"")},[]);return[r,o]}function sA(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function xn(...e){return q.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{sA(n,t)})},e)}function Lh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Lh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Lh(e))&&(r&&(r+=" "),r+=t);return r}function Rh(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function lA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=Vn(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),b=N({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=N({},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=Un(N({},i,r)),l=Rh(r),c=Rh(i),u=t(a),f=Vn(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=N({},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=N({},u,n,c,l);return f.length>0&&(p.className=f),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Bh(e){if(q.isValidElement(e)||!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Bh(e[n])}),t}function Hn(e,t,n={clone:!0}){const r=n.clone?N({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(i=>{q.isValidElement(t[i])?r[i]=t[i]:lr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&lr(e[i])?r[i]=Hn(e[i],t[i],n):n.clone?r[i]=lr(t[i])?Bh(t[i]):t[i]:r[i]=t[i]}),r}function Ea(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var $h={exports:{}},We={};/**
|
|
2325
|
+
*/const OI="auth-compat";function MI(e){e.INTERNAL.registerComponent(new Zn(OI,t=>{const n=t.getProvider("app-compat").getImmediate(),r=t.getProvider("auth");return new dc(n,r)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:Gr.EMAIL_SIGNIN,PASSWORD_RESET:Gr.PASSWORD_RESET,RECOVER_EMAIL:Gr.RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:Gr.REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:Gr.VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:Gr.VERIFY_EMAIL}},EmailAuthProvider:or,FacebookAuthProvider:Tn,GithubAuthProvider:kn,GoogleAuthProvider:En,OAuthProvider:Zr,SAMLAuthProvider:da,PhoneAuthProvider:fc,PhoneMultiFactorGenerator:hh,RecaptchaVerifier:DI,TwitterAuthProvider:_n,Auth:dc,AuthCredential:Jr,Error:Ht}).setInstantiationMode("LAZY").setMultipleInstances(!1)),e.registerVersion(fI,hI)}MI(rr);let Eh=!1;const fo=e=>{if(Eh)return rr.auth();if(e&&e==="dev"){rr.initializeApp({apiKey:"api_key"});const n=HS();zl(n,"http://localhost:39199")}else{const n={apiKey:e&&e==="staging"?"AIzaSyBKhAYwkvkmjm16FxCMvCUQjSRpKC0DbM8":"AIzaSyDPD_SETLswR_U3dKawYkAyRhbzVXziD_4",authDomain:"fans-united-clients.firebaseapp.com",projectId:"fans-united-clients",messagingSenderId:"78627953958",appId:"1:78627953958:web:2ee87d5b274e0e7685f5e7",measurementId:"G-RH90B03KJG"};rr.initializeApp(n)}return Eh=!0,rr.auth()},LI=e=>e==="dev"?"http://localhost:8070/v1":e==="staging"?"https://client.fansunitedstagingapi.com/v1":"https://client.fansunitedapi.com/v1";class RI{constructor(t,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",t=>P(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(t)})}));U(this,"storeInBucket",(t,n,r)=>P(this,null,function*(){const i=yield fetch(t,{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",(t,n,r)=>P(this,null,function*(){if(this.sportal365Config){const i={Project:this.sportal365Config.project,Authorization:this.sportal365Config.authorization};let o={query:t,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",t=>P(this,null,function*(){const n=`/clients/${this.clientId}/scheduler/tasks?`,r={key:this.apiKey,limit:"50",entity_id:t},i=yield this.getToken();return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r),{headers:Q(D({},this.headers),{Authorization:"Bearer "+i})})}));U(this,"setSchedulers",(t,n,r)=>P(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(t),method:o})}));U(this,"deleteScheduledTask",t=>P(this,null,function*(){const n=`/clients/${this.clientId}/scheduler/tasks/${t}?`,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",()=>P(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",t=>this.environment==="dev"?`https://storage.googleapis.com/client_images_cms_fans-united-dev/${this.clientId}/${t}`:this.environment==="staging"?`https://storage.googleapis.com/client_images_cms_fans-united-stage/${this.clientId}/${t}`:`https://uploads.fansunitedassets.com/${this.clientId}/${t}`);U(this,"throwErrorFromXmlResponse",t=>{const n=new window.DOMParser().parseFromString(t,"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",()=>P(this,null,function*(){const t=fo(this.environment).currentUser;return t?yield t.getIdToken():""}));this.apiKey=t.apiKey,this.clientId=t.clientId,this.environment=t.environment,this.mainQueryParams={key:t.apiKey,client_id:t.clientId},this.sportal365Config=n,this.clientApiBaseUrl=LI(this.environment)}}class BI{constructor(t){U(this,"baseUrl","https://v1.formula-1.api-sports.io");U(this,"apiKey");U(this,"headers");this.apiKey=t,this.headers={"X-RapidAPI-Key":this.apiKey,"Content-Type":"application/json"}}getRaces(t,n){return P(this,null,function*(){const r={season:t.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(t,n){return P(this,null,function*(){let r=`${this.baseUrl}${t}`;return n&&Object.keys(n).length>0&&(r+=`?${new URLSearchParams(n)}`),yield fetch(r,{method:"GET",headers:this.headers})})}}const $I=e=>e==="dev"?"http://localhost:8060/v1":e==="staging"?"https://loyalty.fansunitedstagingapi.com/v1":"https://loyalty.fansunitedapi.com/v1",FI=e=>e==="dev"?"http://localhost:8040/v1":e==="staging"?"https://prediction.fansunitedstagingapi.com/v1":"https://prediction.fansunitedapi.com/v1",NI=e=>e==="dev"?"http://localhost:9040/v1":e==="staging"?"https://mini-games.fansunitedstagingapi.com/v1":"https://mini-games.fansunitedapi.com/v1",jI=e=>e==="dev"?"http://localhost:8020/v1":e==="staging"?"https://reporting.fansunitedstagingapi.com/v1":"https://reporting.fansunitedapi.com/v1",zI=e=>e==="dev"?"http://localhost:9030/v1":e==="staging"?"https://voting.fansunitedstagingapi.com/v1":"https://voting.fansunitedapi.com/v1",UI=e=>e==="staging"?"https://custom-games-resolver-131809830171.europe-west1.run.app/v1":"https://custom-games-resolver-150199313674.europe-west1.run.app/v1",VI=e=>e==="dev"?"http://localhost:8010/v1":e==="staging"?"https://profile.fansunitedstagingapi.com/v1":"https://profile.fansunitedapi.com/v1",HI=e=>e==="dev"?"http://localhost:8010/v1":e==="staging"?"https://discussions.fansunitedstagingapi.com/v1":"https://discussions.fansunitedapi.com/v1",WI=e=>e==="dev"?"http://localhost:9050/v1":e==="staging"?"https://ai-content-builder-131809830171.europe-west1.run.app/v1":"https://ai-content-builder-150199313674.europe-west1.run.app/v1",kh=e=>e==="dev"?"http://localhost:8080/api/":e==="staging"?"https://ikebana-backend-proxy-131809830171.europe-west1.run.app/api/":"https://ikebana-backend-proxy-150199313674.europe-west1.run.app/api/",GI=e=>`${kh(e)}elasticsearch/`,YI=e=>`${kh(e)}gcp/`;class KI extends RI{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",()=>P(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=>P(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)=>P(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=>P(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=>P(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)=>P(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)=>P(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=>P(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)=>P(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)=>P(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)=>P(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)=>P(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",()=>P(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",()=>P(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",()=>P(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=>P(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)=>P(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=>P(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=>P(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=>P(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=>P(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)=>P(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)=>P(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=>P(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)=>P(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=>P(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)=>P(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)=>P(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=>P(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)=>P(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=>P(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")=>P(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=>P(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)=>P(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=>P(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)=>P(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=>P(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",()=>P(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=>P(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=>P(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)=>P(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=>P(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=>P(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=>P(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=>P(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=>P(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)=>P(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=>P(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)=>P(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=>P(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)=>P(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)=>P(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)=>P(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=>P(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=>P(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=>P(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",(...o)=>P(this,[...o],function*(n="",r=[],i){const a="/moderation/bulk?",l=yield this.getToken();let c={};if(r.length>0){const u=r.join(",");c=Q(D({},this.mainQueryParams),{post_ids:u,reason:i})}else c=Q(D({},this.mainQueryParams),{discussion_id:n,reason:i});return yield fetch(this.discussionsApiBaseUrl+a+new URLSearchParams(c),{headers:Q(D({},this.headers),{Authorization:"Bearer "+l}),method:"POST"})}));U(this,"pinDiscussionPosts",(n,r)=>P(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)=>P(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=>P(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=>P(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=>P(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=>P(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",()=>P(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=>P(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)=>P(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=>P(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)=>P(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=>P(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,"generatePostMatchQuiz",n=>P(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=>P(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=>P(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=>P(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=>P(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)=>P(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=>P(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=>P(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)=>P(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=>P(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)=>P(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)=>P(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=>P(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)=>P(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=>P(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)=>P(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=>P(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)=>P(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)=>P(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=>P(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)=>P(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=>P(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=>P(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)=>P(this,[l,...c],function*(n,{page:r=1,limit:i=10,sport:o}={},a=this.clientId){const u=`${this.resolveSportEntityIndex(n,a)}/_search`,f=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+u,{headers:Q(D({},this.headers),{Authorization:"Bearer "+f}),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)=>P(this,[a,l,...c],function*(n,r,i=100,o=this.clientId){const u=`${this.resolveSportEntityIndex(r,o)}/_search`,f=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 "+f}),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)=>P(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,"countSportEntities",(i,...o)=>P(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,"createSportEntity",(o,a,...l)=>P(this,[o,a,...l],function*(n,r,i=this.clientId){const c=`${this.resolveSportEntityIndex(r,i)}/_doc/${encodeURIComponent(n.id)}`,u=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+c,{headers:Q(D({},this.headers),{Authorization:"Bearer "+u}),method:"POST",body:JSON.stringify(this.buildSportEntityWriteBody(n,i))})}));U(this,"updateSportEntity",(a,l,c,...u)=>P(this,[a,l,c,...u],function*(n,r,i,o=this.clientId){const f=`${this.resolveSportEntityIndex(i,o)}/_doc/${encodeURIComponent(n)}`,d=yield this.getToken();return yield fetch(this.ikebanaProxyBaseUrl+f,{headers:Q(D({},this.headers),{Authorization:"Bearer "+d}),method:"PUT",body:JSON.stringify(this.buildSportEntityWriteBody(r,o))})}));U(this,"deleteSportEntity",(o,a,...l)=>P(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}),method:"DELETE"})}));U(this,"uploadSportEntityAsset",(n,r,i)=>P(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)=>P(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=$I(n.environment),this.predictionBaseUrl=FI(n.environment),this.miniGamesApiBaseUrl=NI(n.environment),this.reportingApiBaseUrl=jI(n.environment),this.votingApiBaseUrl=zI(n.environment),this.profileApiBaseUrl=VI(n.environment),this.customResolverUrl=UI(n.environment),this.discussionsApiBaseUrl=HI(n.environment),this.aiServiceBaseUrl=WI(n.environment),this.ikebanaProxyBaseUrl=GI(n.environment),this.ikebanaGcpBaseUrl=YI(n.environment);const i="df4a58523f0acb1baa8b7273cdf1da0b";this.apiSports=new BI(i)}}const qI=(e,t)=>!e&&!t?null:!e&&t?(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:e,authorization:`Bearer ${t&&t==="betway"?"24PkUfW1ce63mH9jvAAug2QQzdASj9k5smngepPUZD2KUq5cbTFGE98KgZ0zg2wCtuQcoJrHElW7Dr0K":"dEZS1V21veHBIDIik8Y33dDkZAoCmxgge5MBnAORN7IKbltA79giTZLaXJ6OVgQkGnYxwtyRv8ObRSvY"}`},Ta=m.createContext(null),QI=({config:e,children:t})=>{const n={apiKey:e.apiKey,clientId:e.clientId,environment:e.environment,lang:e.language,errorHandlingMode:e.errorHandlingMode,idSchema:"native",authProvider:{getIdToken:()=>"",logout:()=>{}}},r=qI(e.sportal365Project,e.sportal365Infrastructure),i=Je.FansUnitedSDK(n),o=new KI(n,r);return s.jsx(Ta.Provider,{value:{sdk:i,https:o},children:t})},_h=m.createContext(null),JI=({children:e,environment:t})=>{const[n,r]=m.useState(null),[i,o]=m.useState(!0);return m.useEffect(()=>fo(t).onAuthStateChanged(l=>{wt.unstable_batchedUpdates(()=>{o(!1),r(l)})}),[t]),s.jsx(_h.Provider,{value:n,children:!i&&e})};function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(null,arguments)}function Be(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Ph={exports:{}},XI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ZI=XI,eA=ZI;function Dh(){}function Oh(){}Oh.resetWarningCache=Dh;var tA=function(){function e(r,i,o,a,l,c){if(c!==eA){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}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Oh,resetWarningCache:Dh};return n.PropTypes=n,n};Ph.exports=tA();var nA=Ph.exports;function rA(e){return typeof e=="string"}function iA(e,t,n){return e===void 0||rA(e)?t:N({},t,{ownerState:N({},t.ownerState,n)})}function Mh(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}function Un(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function oA(e,t,n){return typeof e=="function"?e(t,n):e}function aA(e){const{rootElementName:t="",componentName:n}=e,[r,i]=q.useState(t.toUpperCase()),o=q.useCallback(a=>{var l;i((l=a==null?void 0:a.tagName)!=null?l:"")},[]);return[r,o]}function sA(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function xn(...e){return q.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{sA(n,t)})},e)}function Lh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Lh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Lh(e))&&(r&&(r+=" "),r+=t);return r}function Rh(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function lA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=Vn(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),b=N({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),v=N({},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=Un(N({},i,r)),l=Rh(r),c=Rh(i),u=t(a),f=Vn(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=N({},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=N({},u,n,c,l);return f.length>0&&(p.className=f),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Bh(e){if(q.isValidElement(e)||!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Bh(e[n])}),t}function Hn(e,t,n={clone:!0}){const r=n.clone?N({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(i=>{q.isValidElement(t[i])?r[i]=t[i]:lr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&lr(e[i])?r[i]=Hn(e[i],t[i],n):n.clone?r[i]=lr(t[i])?Bh(t[i]):t[i]:r[i]=t[i]}),r}function Ea(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var $h={exports:{}},We={};/**
|
|
2326
2326
|
* @license React
|
|
2327
2327
|
* react-is.production.js
|
|
2328
2328
|
*
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpsService.d.ts","sourceRoot":"","sources":["../../../../src/services/https/HttpsService.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,MAAM,mEAAmE,CAAC;AACtG,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAC7E,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,gBAAgB,MAAM,0CAA0C,CAAC;AACxE,OAAO,eAAe,MAAM,oCAAoC,CAAC;AACjE,OAAO,sBAAsB,MAAM,8DAA8D,CAAC;AAClG,OAAO,eAAe,MAAM,oCAAoC,CAAC;AACjE,OAAO,mBAAmB,MAAM,yCAAyC,CAAC;AAC1E,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,mBAAmB,MAAM,sDAAsD,CAAC;AACvF,OAAO,sBAAsB,MAAM,mDAAmD,CAAC;AACvF,OAAO,uBAAuB,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,M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