fansunited-management-components 1.22.0-RC1 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.es.js +2 -2
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/services/https/HttpsService.d.ts +1 -1
package/index.es.js
CHANGED
|
@@ -10936,7 +10936,7 @@ const Bo = (e) => {
|
|
|
10936
10936
|
projectId: "fans-united-clients",
|
|
10937
10937
|
messagingSenderId: "78627953958",
|
|
10938
10938
|
appId: "1:78627953958:web:2ee87d5b274e0e7685f5e7",
|
|
10939
|
-
measurementId: "G-
|
|
10939
|
+
measurementId: "G-DPV1TYL0JW"
|
|
10940
10940
|
};
|
|
10941
10941
|
sr.initializeApp(n);
|
|
10942
10942
|
}
|
|
@@ -11154,7 +11154,7 @@ class VS extends $S {
|
|
|
11154
11154
|
headers: X(V({}, this.headers), { Authorization: "Bearer " + s })
|
|
11155
11155
|
});
|
|
11156
11156
|
}));
|
|
11157
|
-
le(this, "
|
|
11157
|
+
le(this, "getEntityParticipations", (n, r, i) => _(this, null, function* () {
|
|
11158
11158
|
const o = `/participations/${n}/breakdown?`, a = X(V({}, this.mainQueryParams), {
|
|
11159
11159
|
from_date: r,
|
|
11160
11160
|
to_date: i
|
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 Xw="auth-compat";function Zw(e){e.INTERNAL.registerComponent(new Un(Xw,t=>{const n=t.getProvider("app-compat").getImmediate(),r=t.getProvider("auth");return new Sl(n,r)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:_r.EMAIL_SIGNIN,PASSWORD_RESET:_r.PASSWORD_RESET,RECOVER_EMAIL:_r.RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:_r.REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:_r.VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:_r.VERIFY_EMAIL}},EmailAuthProvider:qn,FacebookAuthProvider:gn,GithubAuthProvider:vn,GoogleAuthProvider:mn,OAuthProvider:Lr,SAMLAuthProvider:Bo,PhoneAuthProvider:Al,PhoneMultiFactorGenerator:xf,RecaptchaVerifier:Qw,TwitterAuthProvider:bn,Auth:Sl,AuthCredential:Rr,Error:$t}).setInstantiationMode("LAZY").setMultipleInstances(!1)),e.registerVersion(Ow,Rw)}Zw(Yn);let Lf=!1;const ji=e=>{if(Lf)return Yn.auth();if(e&&e==="dev"){Yn.initializeApp({apiKey:"api_key"});const n=uw();el(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"};Yn.initializeApp(n)}return Lf=!0,Yn.auth()},eI=e=>e==="dev"?"http://localhost:8070/v1":e==="staging"?"https://client.fansunitedstagingapi.com/v1":e==="watg"?"https://client.watg.fansunitedapi.com/v1":e==="yolo"?"https://client.yolo.fansunitedapi.com/v1":"https://client.fansunitedapi.com/v1";class tI{constructor(t,n){ce(this,"apiKey","");ce(this,"clientId","");ce(this,"environment","");ce(this,"mainQueryParams",{key:"",client_id:""});ce(this,"headers",{"Content-Type":"application/json"});ce(this,"clientApiBaseUrl","");ce(this,"sportal365ImagesSearchURL","https://content.api.sportal365.com/v2/images/search?");ce(this,"sportal365Config",null);ce(this,"generateSignedInUrl",t=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(t)})}));ce(this,"storeInBucket",(t,n,r)=>D(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)}));ce(this,"fetchImagesFromSportal365",(t,n,r)=>D(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=Z(H({},o),{from:n.from})),n.to&&(o=Z(H({},o),{to:n.to}))),yield fetch(this.sportal365ImagesSearchURL+new URLSearchParams(o),{headers:i})}}));ce(this,"getSchedulersByEntityId",t=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i})})}));ce(this,"setSchedulers",(t,n,r)=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+l}),body:JSON.stringify(t),method:o})}));ce(this,"deleteScheduledTask",t=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));ce(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}`);ce(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)});ce(this,"getToken",()=>D(this,null,function*(){const t=ji(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=eI(this.environment)}}const nI=e=>e==="dev"?"http://localhost:8060/v1":e==="staging"?"https://loyalty.fansunitedstagingapi.com/v1":e==="watg"?"https://loyalty.watg.fansunitedapi.com/v1":e==="yolo"?"https://loyalty.yolo.fansunitedapi.com/v1":"https://loyalty.fansunitedapi.com/v1",rI=e=>e==="dev"?"http://localhost:8040/v1":e==="staging"?"https://prediction.fansunitedstagingapi.com/v1":e==="watg"?"https://prediction.watg.fansunitedapi.com/v1":e==="yolo"?"https://prediction.yolo.fansunitedapi.com/v1":"https://prediction.fansunitedapi.com/v1",iI=e=>e==="dev"?"http://localhost:9040/v1":e==="staging"?"https://mini-games.fansunitedstagingapi.com/v1":e==="watg"?"https://mini-games.watg.fansunitedapi.com/v1":e==="yolo"?"https://mini-games.yolo.fansunitedapi.com/v1":"https://mini-games.fansunitedapi.com/v1",oI=e=>e==="dev"?"http://localhost:8020/v1":e==="staging"?"https://reporting.fansunitedstagingapi.com/v1":e==="watg"?"https://reporting.watg.fansunitedapi.com/v1":e==="yolo"?"https://reporting.yolo.fansunitedapi.com/v1":"https://reporting.fansunitedapi.com/v1",aI=e=>e==="dev"?"http://localhost:9030/v1":e==="staging"?"https://voting.fansunitedstagingapi.com/v1":e==="watg"?"https://voting.watg.fansunitedapi.com/v1":e==="yolo"?"https://voting.yolo.fansunitedapi.com/v1":"https://voting.fansunitedapi.com/v1";class sI extends tI{constructor(n,r){super(n,r);ce(this,"loyaltyBaseUrl","");ce(this,"predictionBaseUrl","");ce(this,"miniGamesApiBaseUrl","");ce(this,"reportingApiBaseUrl","");ce(this,"votingApiBaseUrl","");ce(this,"getClientById",()=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i})})}));ce(this,"createTemplate",n=>D(this,null,function*(){const r="/leaderboard/templates?",i=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"editTemplate",(n,r)=>D(this,null,function*(){const i=`/leaderboard/templates/${n}?`,o=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));ce(this,"deleteTemplate",n=>D(this,null,function*(){const r=`/leaderboard/templates/${n}?`,i=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));ce(this,"setWinners",n=>D(this,null,function*(){const r="/winners?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"exportDetailedLeaderboard",(n,r)=>D(this,null,function*(){const i=`/leaderboard/${n}/detailed?`,o=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+i+new URLSearchParams(Z(H({},this.mainQueryParams),{limit:r.toString()})),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o})})}));ce(this,"exportDetailedGameLeaderboard",(n,r)=>D(this,null,function*(){const i=`/leaderboard/games/${n}/detailed?`,o=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+i+new URLSearchParams(Z(H({},this.mainQueryParams),{limit:r.toString()})),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o})})}));ce(this,"createGame",n=>D(this,null,function*(){const r="/games?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"editGame",(n,r)=>D(this,null,function*(){const i=`/games/${n}?`,o=yield this.getToken();return yield fetch(this.predictionBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"PATCH",body:JSON.stringify(r)})}));ce(this,"getClassicQuizFeature",()=>D(this,null,function*(){const n=`/clients/${this.clientId}/features/classic_quiz?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));ce(this,"getEitherOrFeature",()=>D(this,null,function*(){const n=`/clients/${this.clientId}/features/either_or?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));ce(this,"getPollFeature",()=>D(this,null,function*(){const n=`/clients/${this.clientId}/features/poll?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));ce(this,"createClassicQuiz",n=>D(this,null,function*(){const r="/classic-quizzes?",i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"updateClassicQuiz",(n,r)=>D(this,null,function*(){const i=`/classic-quizzes/${n}?`,o=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));ce(this,"getClassicQuizById",n=>D(this,null,function*(){const r=`/classic-quizzes/${n}/staff?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i})})}));ce(this,"deleteClassicQuiz",n=>D(this,null,function*(){const r=`/classic-quizzes/${n}?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));ce(this,"calculateQuestionsReport",n=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST"})}));ce(this,"exportUsers",n=>D(this,null,function*(){const r="/exports/users?",i=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"getClassicQuizParticipations",(n,r,i,o)=>D(this,null,function*(){const a="/classic-quizzes/participations?",l=Z(H({},this.mainQueryParams),{classic_quiz_ids:n,from_date:r,to_date:i,group_by:o}),s=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+a+new URLSearchParams(l),{headers:Z(H({},this.headers),{Authorization:"Bearer "+s})})}));ce(this,"getPollParticipations",(n,r,i)=>D(this,null,function*(){const o=`/participations/${n}/breakdown?`,a=Z(H({},this.mainQueryParams),{from_date:r,to_date:i}),l=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+o+new URLSearchParams(a),{headers:Z(H({},this.headers),{Authorization:"Bearer "+l})})}));ce(this,"getPollById",n=>D(this,null,function*(){const r=`/polls/${n}?`,i=yield this.getToken();return yield fetch(this.votingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i})})}));ce(this,"createPoll",n=>D(this,null,function*(){const r="/polls?",i=yield this.getToken();return yield fetch(this.votingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"updatePoll",(n,r)=>D(this,null,function*(){const i=`/polls/${n}?`,o=yield this.getToken();return yield fetch(this.votingApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));ce(this,"deletePoll",n=>D(this,null,function*(){const r=`/polls/${n}?`,i=yield this.getToken();return yield fetch(this.votingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));ce(this,"getLists",(n,r,i="DESC")=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+l})})}));ce(this,"getListById",n=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+o})})}));ce(this,"getListContent",(n,r,i="DESC",o)=>D(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 s=yield this.getToken();return yield fetch(this.clientApiBaseUrl+a+new URLSearchParams(l),{headers:Z(H({},this.headers),{Authorization:"Bearer "+s})})}));ce(this,"createList",n=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"POST",body:JSON.stringify(n)})}));ce(this,"updateList",(n,r)=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+a}),method:"PUT",body:JSON.stringify(r)})}));ce(this,"deleteList",n=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"DELETE"})}));ce(this,"getLanguageConfig",()=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i})})}));ce(this,"updateLanguageConfig",n=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(n)})}));this.loyaltyBaseUrl=nI(n.environment),this.predictionBaseUrl=rI(n.environment),this.miniGamesApiBaseUrl=iI(n.environment),this.reportingApiBaseUrl=oI(n.environment),this.votingApiBaseUrl=aI(n.environment)}}const lI=(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"}`},Tl=C.createContext(null),cI=({config:e,children:t})=>{const n={apiKey:e.apiKey,clientId:e.clientId,environment:e.environment,lang:e.language,errorHandlingMode:e.errorHandlingMode,authProvider:{getIdToken:()=>"",logout:()=>{}}},r=lI(e.sportal365Project,e.sportal365Infrastructure),i=Me.FansUnitedSDK(n),o=new sI(n,r);return u.jsx(Tl.Provider,{value:{sdk:i,https:o},children:t})},Bf=C.createContext(null),uI=({children:e,environment:t})=>{const[n,r]=C.useState(null),[i,o]=C.useState(!0);return C.useEffect(()=>ji(t).onAuthStateChanged(l=>{Oe.unstable_batchedUpdates(()=>{o(!1),r(l)})}),[t]),u.jsx(Bf.Provider,{value:n,children:!i&&e})};function k(){return k=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},k.apply(null,arguments)}function Ae(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 $f={exports:{}},dI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fI=dI,hI=fI;function Nf(){}function Ff(){}Ff.resetWarningCache=Nf;var pI=function(){function e(r,i,o,a,l,s){if(s!==hI){var c=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 c.name="Invariant Violation",c}}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:Ff,resetWarningCache:Nf};return n.PropTypes=n,n};$f.exports=pI();var gI=$f.exports;function mI(e){return typeof e=="string"}function vI(e,t,n){return e===void 0||mI(e)?t:k({},t,{ownerState:k({},t.ownerState,n)})}function jf(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}function Mn(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 bI(e,t,n){return typeof e=="function"?e(t,n):e}function yI(e){const{rootElementName:t="",componentName:n}=e,[r,i]=j.useState(t.toUpperCase()),o=j.useCallback(a=>{var l;i((l=a==null?void 0:a.tagName)!=null?l:"")},[]);return[r,o]}function CI(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function sn(...e){return j.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{CI(n,t)})},e)}function zf(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=zf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ln(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=zf(e))&&(r&&(r+=" "),r+=t);return r}function Vf(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 xI(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const p=Ln(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=k({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),g=k({},n,i,r);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const a=Mn(k({},i,r)),l=Vf(r),s=Vf(i),c=t(a),d=Ln(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),f=k({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),h=k({},c,n,s,l);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}function Xn(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 Uf(e){if(j.isValidElement(e)||!Xn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Uf(e[n])}),t}function Bn(e,t,n={clone:!0}){const r=n.clone?k({},e):e;return Xn(e)&&Xn(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])?r[i]=t[i]:Xn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Xn(e[i])?r[i]=Bn(e[i],t[i],n):n.clone?r[i]=Xn(t[i])?Uf(t[i]):t[i]:r[i]=t[i]}),r}function Qo(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 Hf={exports:{}},Be={};/**
|
|
2325
|
+
*/const Xw="auth-compat";function Zw(e){e.INTERNAL.registerComponent(new Un(Xw,t=>{const n=t.getProvider("app-compat").getImmediate(),r=t.getProvider("auth");return new Sl(n,r)},"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:_r.EMAIL_SIGNIN,PASSWORD_RESET:_r.PASSWORD_RESET,RECOVER_EMAIL:_r.RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:_r.REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:_r.VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:_r.VERIFY_EMAIL}},EmailAuthProvider:qn,FacebookAuthProvider:gn,GithubAuthProvider:vn,GoogleAuthProvider:mn,OAuthProvider:Lr,SAMLAuthProvider:Bo,PhoneAuthProvider:Al,PhoneMultiFactorGenerator:xf,RecaptchaVerifier:Qw,TwitterAuthProvider:bn,Auth:Sl,AuthCredential:Rr,Error:$t}).setInstantiationMode("LAZY").setMultipleInstances(!1)),e.registerVersion(Ow,Rw)}Zw(Yn);let Lf=!1;const ji=e=>{if(Lf)return Yn.auth();if(e&&e==="dev"){Yn.initializeApp({apiKey:"api_key"});const n=uw();el(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-DPV1TYL0JW"};Yn.initializeApp(n)}return Lf=!0,Yn.auth()},eI=e=>e==="dev"?"http://localhost:8070/v1":e==="staging"?"https://client.fansunitedstagingapi.com/v1":e==="watg"?"https://client.watg.fansunitedapi.com/v1":e==="yolo"?"https://client.yolo.fansunitedapi.com/v1":"https://client.fansunitedapi.com/v1";class tI{constructor(t,n){ce(this,"apiKey","");ce(this,"clientId","");ce(this,"environment","");ce(this,"mainQueryParams",{key:"",client_id:""});ce(this,"headers",{"Content-Type":"application/json"});ce(this,"clientApiBaseUrl","");ce(this,"sportal365ImagesSearchURL","https://content.api.sportal365.com/v2/images/search?");ce(this,"sportal365Config",null);ce(this,"generateSignedInUrl",t=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(t)})}));ce(this,"storeInBucket",(t,n,r)=>D(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)}));ce(this,"fetchImagesFromSportal365",(t,n,r)=>D(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=Z(H({},o),{from:n.from})),n.to&&(o=Z(H({},o),{to:n.to}))),yield fetch(this.sportal365ImagesSearchURL+new URLSearchParams(o),{headers:i})}}));ce(this,"getSchedulersByEntityId",t=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i})})}));ce(this,"setSchedulers",(t,n,r)=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+l}),body:JSON.stringify(t),method:o})}));ce(this,"deleteScheduledTask",t=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));ce(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}`);ce(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)});ce(this,"getToken",()=>D(this,null,function*(){const t=ji(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=eI(this.environment)}}const nI=e=>e==="dev"?"http://localhost:8060/v1":e==="staging"?"https://loyalty.fansunitedstagingapi.com/v1":e==="watg"?"https://loyalty.watg.fansunitedapi.com/v1":e==="yolo"?"https://loyalty.yolo.fansunitedapi.com/v1":"https://loyalty.fansunitedapi.com/v1",rI=e=>e==="dev"?"http://localhost:8040/v1":e==="staging"?"https://prediction.fansunitedstagingapi.com/v1":e==="watg"?"https://prediction.watg.fansunitedapi.com/v1":e==="yolo"?"https://prediction.yolo.fansunitedapi.com/v1":"https://prediction.fansunitedapi.com/v1",iI=e=>e==="dev"?"http://localhost:9040/v1":e==="staging"?"https://mini-games.fansunitedstagingapi.com/v1":e==="watg"?"https://mini-games.watg.fansunitedapi.com/v1":e==="yolo"?"https://mini-games.yolo.fansunitedapi.com/v1":"https://mini-games.fansunitedapi.com/v1",oI=e=>e==="dev"?"http://localhost:8020/v1":e==="staging"?"https://reporting.fansunitedstagingapi.com/v1":e==="watg"?"https://reporting.watg.fansunitedapi.com/v1":e==="yolo"?"https://reporting.yolo.fansunitedapi.com/v1":"https://reporting.fansunitedapi.com/v1",aI=e=>e==="dev"?"http://localhost:9030/v1":e==="staging"?"https://voting.fansunitedstagingapi.com/v1":e==="watg"?"https://voting.watg.fansunitedapi.com/v1":e==="yolo"?"https://voting.yolo.fansunitedapi.com/v1":"https://voting.fansunitedapi.com/v1";class sI extends tI{constructor(n,r){super(n,r);ce(this,"loyaltyBaseUrl","");ce(this,"predictionBaseUrl","");ce(this,"miniGamesApiBaseUrl","");ce(this,"reportingApiBaseUrl","");ce(this,"votingApiBaseUrl","");ce(this,"getClientById",()=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i})})}));ce(this,"createTemplate",n=>D(this,null,function*(){const r="/leaderboard/templates?",i=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"editTemplate",(n,r)=>D(this,null,function*(){const i=`/leaderboard/templates/${n}?`,o=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));ce(this,"deleteTemplate",n=>D(this,null,function*(){const r=`/leaderboard/templates/${n}?`,i=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));ce(this,"setWinners",n=>D(this,null,function*(){const r="/winners?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"exportDetailedLeaderboard",(n,r)=>D(this,null,function*(){const i=`/leaderboard/${n}/detailed?`,o=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+i+new URLSearchParams(Z(H({},this.mainQueryParams),{limit:r.toString()})),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o})})}));ce(this,"exportDetailedGameLeaderboard",(n,r)=>D(this,null,function*(){const i=`/leaderboard/games/${n}/detailed?`,o=yield this.getToken();return yield fetch(this.loyaltyBaseUrl+i+new URLSearchParams(Z(H({},this.mainQueryParams),{limit:r.toString()})),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o})})}));ce(this,"createGame",n=>D(this,null,function*(){const r="/games?",i=yield this.getToken();return yield fetch(this.predictionBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"editGame",(n,r)=>D(this,null,function*(){const i=`/games/${n}?`,o=yield this.getToken();return yield fetch(this.predictionBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"PATCH",body:JSON.stringify(r)})}));ce(this,"getClassicQuizFeature",()=>D(this,null,function*(){const n=`/clients/${this.clientId}/features/classic_quiz?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));ce(this,"getEitherOrFeature",()=>D(this,null,function*(){const n=`/clients/${this.clientId}/features/either_or?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));ce(this,"getPollFeature",()=>D(this,null,function*(){const n=`/clients/${this.clientId}/features/poll?`,r={key:this.apiKey};return yield fetch(this.clientApiBaseUrl+n+new URLSearchParams(r))}));ce(this,"createClassicQuiz",n=>D(this,null,function*(){const r="/classic-quizzes?",i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"updateClassicQuiz",(n,r)=>D(this,null,function*(){const i=`/classic-quizzes/${n}?`,o=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));ce(this,"getClassicQuizById",n=>D(this,null,function*(){const r=`/classic-quizzes/${n}/staff?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i})})}));ce(this,"deleteClassicQuiz",n=>D(this,null,function*(){const r=`/classic-quizzes/${n}?`,i=yield this.getToken();return yield fetch(this.miniGamesApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));ce(this,"calculateQuestionsReport",n=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST"})}));ce(this,"exportUsers",n=>D(this,null,function*(){const r="/exports/users?",i=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"getClassicQuizParticipations",(n,r,i,o)=>D(this,null,function*(){const a="/classic-quizzes/participations?",l=Z(H({},this.mainQueryParams),{classic_quiz_ids:n,from_date:r,to_date:i,group_by:o}),s=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+a+new URLSearchParams(l),{headers:Z(H({},this.headers),{Authorization:"Bearer "+s})})}));ce(this,"getEntityParticipations",(n,r,i)=>D(this,null,function*(){const o=`/participations/${n}/breakdown?`,a=Z(H({},this.mainQueryParams),{from_date:r,to_date:i}),l=yield this.getToken();return yield fetch(this.reportingApiBaseUrl+o+new URLSearchParams(a),{headers:Z(H({},this.headers),{Authorization:"Bearer "+l})})}));ce(this,"getPollById",n=>D(this,null,function*(){const r=`/polls/${n}?`,i=yield this.getToken();return yield fetch(this.votingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i})})}));ce(this,"createPoll",n=>D(this,null,function*(){const r="/polls?",i=yield this.getToken();return yield fetch(this.votingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"POST",body:JSON.stringify(n)})}));ce(this,"updatePoll",(n,r)=>D(this,null,function*(){const i=`/polls/${n}?`,o=yield this.getToken();return yield fetch(this.votingApiBaseUrl+i+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(r)})}));ce(this,"deletePoll",n=>D(this,null,function*(){const r=`/polls/${n}?`,i=yield this.getToken();return yield fetch(this.votingApiBaseUrl+r+new URLSearchParams(this.mainQueryParams),{headers:Z(H({},this.headers),{Authorization:"Bearer "+i}),method:"DELETE"})}));ce(this,"getLists",(n,r,i="DESC")=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+l})})}));ce(this,"getListById",n=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+o})})}));ce(this,"getListContent",(n,r,i="DESC",o)=>D(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 s=yield this.getToken();return yield fetch(this.clientApiBaseUrl+a+new URLSearchParams(l),{headers:Z(H({},this.headers),{Authorization:"Bearer "+s})})}));ce(this,"createList",n=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"POST",body:JSON.stringify(n)})}));ce(this,"updateList",(n,r)=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+a}),method:"PUT",body:JSON.stringify(r)})}));ce(this,"deleteList",n=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"DELETE"})}));ce(this,"getLanguageConfig",()=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+i})})}));ce(this,"updateLanguageConfig",n=>D(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:Z(H({},this.headers),{Authorization:"Bearer "+o}),method:"PUT",body:JSON.stringify(n)})}));this.loyaltyBaseUrl=nI(n.environment),this.predictionBaseUrl=rI(n.environment),this.miniGamesApiBaseUrl=iI(n.environment),this.reportingApiBaseUrl=oI(n.environment),this.votingApiBaseUrl=aI(n.environment)}}const lI=(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"}`},Tl=C.createContext(null),cI=({config:e,children:t})=>{const n={apiKey:e.apiKey,clientId:e.clientId,environment:e.environment,lang:e.language,errorHandlingMode:e.errorHandlingMode,authProvider:{getIdToken:()=>"",logout:()=>{}}},r=lI(e.sportal365Project,e.sportal365Infrastructure),i=Me.FansUnitedSDK(n),o=new sI(n,r);return u.jsx(Tl.Provider,{value:{sdk:i,https:o},children:t})},Bf=C.createContext(null),uI=({children:e,environment:t})=>{const[n,r]=C.useState(null),[i,o]=C.useState(!0);return C.useEffect(()=>ji(t).onAuthStateChanged(l=>{Oe.unstable_batchedUpdates(()=>{o(!1),r(l)})}),[t]),u.jsx(Bf.Provider,{value:n,children:!i&&e})};function k(){return k=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},k.apply(null,arguments)}function Ae(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 $f={exports:{}},dI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",fI=dI,hI=fI;function Nf(){}function Ff(){}Ff.resetWarningCache=Nf;var pI=function(){function e(r,i,o,a,l,s){if(s!==hI){var c=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 c.name="Invariant Violation",c}}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:Ff,resetWarningCache:Nf};return n.PropTypes=n,n};$f.exports=pI();var gI=$f.exports;function mI(e){return typeof e=="string"}function vI(e,t,n){return e===void 0||mI(e)?t:k({},t,{ownerState:k({},t.ownerState,n)})}function jf(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}function Mn(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 bI(e,t,n){return typeof e=="function"?e(t,n):e}function yI(e){const{rootElementName:t="",componentName:n}=e,[r,i]=j.useState(t.toUpperCase()),o=j.useCallback(a=>{var l;i((l=a==null?void 0:a.tagName)!=null?l:"")},[]);return[r,o]}function CI(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function sn(...e){return j.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{CI(n,t)})},e)}function zf(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=zf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ln(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=zf(e))&&(r&&(r+=" "),r+=t);return r}function Vf(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 xI(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const p=Ln(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=k({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),g=k({},n,i,r);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const a=Mn(k({},i,r)),l=Vf(r),s=Vf(i),c=t(a),d=Ln(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),f=k({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),h=k({},c,n,s,l);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}function Xn(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 Uf(e){if(j.isValidElement(e)||!Xn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Uf(e[n])}),t}function Bn(e,t,n={clone:!0}){const r=n.clone?k({},e):e;return Xn(e)&&Xn(t)&&Object.keys(t).forEach(i=>{j.isValidElement(t[i])?r[i]=t[i]:Xn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Xn(e[i])?r[i]=Bn(e[i],t[i],n):n.clone?r[i]=Xn(t[i])?Uf(t[i]):t[i]:r[i]=t[i]}),r}function Qo(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 Hf={exports:{}},Be={};/**
|
|
2326
2326
|
* @license React
|
|
2327
2327
|
* react-is.production.js
|
|
2328
2328
|
*
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ export default class HttpsService extends Https {
|
|
|
34
34
|
calculateQuestionsReport: (classicQuizId: string) => Promise<Response>;
|
|
35
35
|
exportUsers: (requestBody: any) => Promise<Response>;
|
|
36
36
|
getClassicQuizParticipations: (classicQuizId: string, fromDate: string, toDate: string, groupBy: string) => Promise<Response>;
|
|
37
|
-
|
|
37
|
+
getEntityParticipations: (entityId: string, fromDate: string, toDate: string) => Promise<Response>;
|
|
38
38
|
getPollById: (pollId: string) => Promise<Response>;
|
|
39
39
|
createPoll: (requestBody: PollRequestBody) => Promise<Response>;
|
|
40
40
|
updatePoll: (id: string, requestBody: PollRequestBody) => Promise<Response>;
|