fansunited-management-components 1.68.0 → 1.68.1
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 -0
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/models/games/bracket/BracketGameRequestBody.d.ts +2 -0
- package/src/models/games/bracket/BracketGameRequestBody.d.ts.map +1 -1
- package/src/models/games/event/EventGameRequestBody.d.ts +2 -0
- package/src/models/games/event/EventGameRequestBody.d.ts.map +1 -1
- package/src/models/games/standing/StandingGameRequestBody.d.ts +2 -0
- package/src/models/games/standing/StandingGameRequestBody.d.ts.map +1 -1
package/index.es.js
CHANGED
|
@@ -45165,6 +45165,8 @@ class i8 {
|
|
|
45165
45165
|
H(this, "fixtures", []);
|
|
45166
45166
|
H(this, "tiebreaker", { stat_tiebreaker_enabled: !1, stat_total: 0 });
|
|
45167
45167
|
H(this, "branding_id", null);
|
|
45168
|
+
H(this, "language", null);
|
|
45169
|
+
H(this, "flags", []);
|
|
45168
45170
|
}
|
|
45169
45171
|
}
|
|
45170
45172
|
class o8 {
|
package/index.umd.js
CHANGED
|
@@ -3546,4 +3546,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3546
3546
|
monaco.config({ paths: { vs: '...' } })
|
|
3547
3547
|
|
|
3548
3548
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
3549
|
-
`},Tx=E4(O4)(Ax),R4={config:P4},L4=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduceRight(function(o,a){return a(o)},i)}};function _x(t,e){return Object.keys(e).forEach(function(n){e[n]instanceof Object&&t[n]&&Object.assign(e[n],_x(t[n],e[n]))}),wx(wx({},t),e)}var M4={type:"cancelation",msg:"operation is manually canceled"};function xh(t){var e=!1,n=new Promise(function(r,i){t.then(function(o){return e?i(M4):r(o)}),t.catch(i)});return n.cancel=function(){return e=!0},n}var $4=["monaco"],B4=T4.create({config:_4,isInitialized:!1,resolve:null,reject:null,monaco:null}),Ex=l4(B4,2),ba=Ex[0],ec=Ex[1];function N4(t){var e=R4.config(t),n=e.monaco,r=a4(e,$4);ec(function(i){return{config:_x(i.config,r),monaco:n}})}function F4(){var t=ba(function(e){var n=e.monaco,r=e.isInitialized,i=e.resolve;return{monaco:n,isInitialized:r,resolve:i}});if(!t.isInitialized){if(ec({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),xh(Ch);if(window.monaco&&window.monaco.editor)return kx(window.monaco),t.resolve(window.monaco),xh(Ch);L4(j4,U4)(V4)}return xh(Ch)}function j4(t){return document.body.appendChild(t)}function z4(t){var e=document.createElement("script");return t&&(e.src=t),e}function U4(t){var e=ba(function(r){var i=r.config,o=r.reject;return{config:i,reject:o}}),n=z4("".concat(e.config.paths.vs,"/loader.js"));return n.onload=function(){return t()},n.onerror=e.reject,n}function V4(){var t=ba(function(n){var r=n.config,i=n.resolve,o=n.reject;return{config:r,resolve:i,reject:o}}),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],function(n){var r=n.m||n;kx(r),t.resolve(r)},function(n){t.reject(n)})}function kx(t){ba().monaco||ec({monaco:t})}function H4(){return ba(function(t){var e=t.monaco;return e})}var Ch=new Promise(function(t,e){return ec({resolve:t,reject:e})}),Px={config:N4,init:F4,__getMonacoInstance:H4},W4={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},wh=W4,G4={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},q4=G4;function K4({children:t}){return m.createElement("div",{style:q4.container},t)}var Y4=K4,Q4=Y4;function J4({width:t,height:e,isEditorReady:n,loading:r,_ref:i,className:o,wrapperProps:a}){return m.createElement("section",L({style:Q(L({},wh.wrapper),{width:t,height:e})},a),!n&&m.createElement(Q4,null,r),m.createElement("div",{ref:i,style:L(L({},wh.fullWidth),!n&&wh.hide),className:o}))}var X4=J4,Dx=m.memo(X4);function Z4(t){m.useEffect(t,[])}var Ox=Z4;function e3(t,e,n=!0){let r=m.useRef(!0);m.useEffect(r.current||!n?()=>{r.current=!1}:t,e)}var rn=e3;function ya(){}function qi(t,e,n,r){return t3(t,r)||n3(t,e,n,r)}function t3(t,e){return t.editor.getModel(Rx(t,e))}function n3(t,e,n,r){return t.editor.createModel(e,n,r?Rx(t,r):void 0)}function Rx(t,e){return t.Uri.parse(e)}function r3({original:t,modified:e,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:c=!1,theme:u="light",loading:h="Loading...",options:d={},height:p="100%",width:g="100%",className:b,wrapperProps:v={},beforeMount:x=ya,onMount:T=ya}){let[S,y]=m.useState(!1),[w,C]=m.useState(!0),I=m.useRef(null),E=m.useRef(null),_=m.useRef(null),R=m.useRef(T),N=m.useRef(x),V=m.useRef(!1);Ox(()=>{let P=Px.init();return P.then(D=>(E.current=D)&&C(!1)).catch(D=>(D==null?void 0:D.type)!=="cancelation"&&console.error("Monaco initialization: error:",D)),()=>I.current?K():P.cancel()}),rn(()=>{if(I.current&&E.current){let P=I.current.getOriginalEditor(),D=qi(E.current,t||"",r||n||"text",o||"");D!==P.getModel()&&P.setModel(D)}},[o],S),rn(()=>{if(I.current&&E.current){let P=I.current.getModifiedEditor(),D=qi(E.current,e||"",i||n||"text",a||"");D!==P.getModel()&&P.setModel(D)}},[a],S),rn(()=>{let P=I.current.getModifiedEditor();P.getOption(E.current.editor.EditorOption.readOnly)?P.setValue(e||""):e!==P.getValue()&&(P.executeEdits("",[{range:P.getModel().getFullModelRange(),text:e||"",forceMoveMarkers:!0}]),P.pushUndoStop())},[e],S),rn(()=>{var P,D;(D=(P=I.current)==null?void 0:P.getModel())==null||D.original.setValue(t||"")},[t],S),rn(()=>{let{original:P,modified:D}=I.current.getModel();E.current.editor.setModelLanguage(P,r||n||"text"),E.current.editor.setModelLanguage(D,i||n||"text")},[n,r,i],S),rn(()=>{var P;(P=E.current)==null||P.editor.setTheme(u)},[u],S),rn(()=>{var P;(P=I.current)==null||P.updateOptions(d)},[d],S);let k=m.useCallback(()=>{var M;if(!E.current)return;N.current(E.current);let P=qi(E.current,t||"",r||n||"text",o||""),D=qi(E.current,e||"",i||n||"text",a||"");(M=I.current)==null||M.setModel({original:P,modified:D})},[n,e,i,t,r,o,a]),H=m.useCallback(()=>{var P;!V.current&&_.current&&(I.current=E.current.editor.createDiffEditor(_.current,L({automaticLayout:!0},d)),k(),(P=E.current)==null||P.editor.setTheme(u),y(!0),V.current=!0)},[d,u,k]);m.useEffect(()=>{S&&R.current(I.current,E.current)},[S]),m.useEffect(()=>{!w&&!S&&H()},[w,S,H]);function K(){var D,M,z,q;let P=(D=I.current)==null?void 0:D.getModel();l||((M=P==null?void 0:P.original)==null||M.dispose()),c||((z=P==null?void 0:P.modified)==null||z.dispose()),(q=I.current)==null||q.dispose()}return m.createElement(Dx,{width:g,height:p,isEditorReady:S,loading:h,_ref:_,className:b,wrapperProps:v})}var i3=r3;m.memo(i3);function o3(t){let e=m.useRef();return m.useEffect(()=>{e.current=t},[t]),e.current}var a3=o3,tc=new Map;function s3({defaultValue:t,defaultLanguage:e,defaultPath:n,value:r,language:i,path:o,theme:a="light",line:l,loading:c="Loading...",options:u={},overrideServices:h={},saveViewState:d=!0,keepCurrentModel:p=!1,width:g="100%",height:b="100%",className:v,wrapperProps:x={},beforeMount:T=ya,onMount:S=ya,onChange:y,onValidate:w=ya}){let[C,I]=m.useState(!1),[E,_]=m.useState(!0),R=m.useRef(null),N=m.useRef(null),V=m.useRef(null),k=m.useRef(S),H=m.useRef(T),K=m.useRef(),P=m.useRef(r),D=a3(o),M=m.useRef(!1),z=m.useRef(!1);Ox(()=>{let O=Px.init();return O.then(B=>(R.current=B)&&_(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>N.current?X():O.cancel()}),rn(()=>{var B,U,W,ee;let O=qi(R.current,t||r||"",e||i||"",o||n||"");O!==((B=N.current)==null?void 0:B.getModel())&&(d&&tc.set(D,(U=N.current)==null?void 0:U.saveViewState()),(W=N.current)==null||W.setModel(O),d&&((ee=N.current)==null||ee.restoreViewState(tc.get(o))))},[o],C),rn(()=>{var O;(O=N.current)==null||O.updateOptions(u)},[u],C),rn(()=>{!N.current||r===void 0||(N.current.getOption(R.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(z.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),z.current=!1))},[r],C),rn(()=>{var B,U;let O=(B=N.current)==null?void 0:B.getModel();O&&i&&((U=R.current)==null||U.editor.setModelLanguage(O,i))},[i],C),rn(()=>{var O;l!==void 0&&((O=N.current)==null||O.revealLine(l))},[l],C),rn(()=>{var O;(O=R.current)==null||O.editor.setTheme(a)},[a],C);let q=m.useCallback(()=>{var O;if(!(!V.current||!R.current)&&!M.current){H.current(R.current);let B=o||n,U=qi(R.current,r||t||"",e||i||"",B||"");N.current=(O=R.current)==null?void 0:O.editor.create(V.current,L({model:U,automaticLayout:!0},u),h),d&&N.current.restoreViewState(tc.get(B)),R.current.editor.setTheme(a),l!==void 0&&N.current.revealLine(l),I(!0),M.current=!0}},[t,e,n,r,i,o,u,h,d,a,l]);m.useEffect(()=>{C&&k.current(N.current,R.current)},[C]),m.useEffect(()=>{!E&&!C&&q()},[E,C,q]),P.current=r,m.useEffect(()=>{var O,B;C&&y&&((O=K.current)==null||O.dispose(),K.current=(B=N.current)==null?void 0:B.onDidChangeModelContent(U=>{z.current||y(N.current.getValue(),U)}))},[C,y]),m.useEffect(()=>{if(C){let O=R.current.editor.onDidChangeMarkers(B=>{var W;let U=(W=N.current.getModel())==null?void 0:W.uri;if(U&&B.find(ee=>ee.path===U.path)){let ee=R.current.editor.getModelMarkers({resource:U});w==null||w(ee)}});return()=>{O==null||O.dispose()}}return()=>{}},[C,w]);function X(){var O,B;(O=K.current)==null||O.dispose(),p?d&&tc.set(o,N.current.saveViewState()):(B=N.current.getModel())==null||B.dispose(),N.current.dispose()}return m.createElement(Dx,{width:g,height:b,isEditorReady:C,loading:c,_ref:V,className:v,wrapperProps:x})}var l3=s3,Lx=m.memo(l3);const c3={Login:gN,InformationInput:kt,RichText:Ws,HeaderButtons:WM,MarketSelection:PN,Accordion:PD,DynamicFields:s$,BasicSelect:OD,BooleanSwitch:bn,Branding:zM,ProfileSearchSelect:JF,RangeCalendar:o$,CompetitionSearchSelect:YF,Related:LN,Images:WB,Duration:i$,DatePickerComponent:Yo,Flags:zB,Spinner:Bi,Tags:A0,Toast:Xe,AdContent:DD,Match:DN,Winners:BU,CompetitionsSearchSelect:QF,TeamsSearchSelect:S0,CustomSelect:QN,Schedule:VN,NoPermissionCard:a$,CustomFlatpickrCalendar:Md,ContextSelectFilter:FU,NumberInput:sh,EntityContext:b5,MiniGamesImages:x5,AuthRequirement:C5,SortableList:dH,ItemsPerPageFilter:hH,ImageCard:ta,RelatedRelationship:TH,CustomGameRelated:PH,ExportUsersLeads:DH,SignOutButton:Zv,BasicSortableList:RH,WidgetEmbedCode:MH,WidgetListEmbedCode:FH,AdvancedProfileSearchSelect:jH,FormatNumber:zH,PlayersSearchSelect:HH,GenerateFootballMatchModal:JH,GenerateFormula1PostEventModal:e4,BrandingImage:Ed,ContentPickerEditor:t=>{const[e,n]=m.useState(null),[r,i]=m.useState(Gi.TEXT),[o,a]=m.useState(null),[l,c]=m.useState(null),[u,h]=m.useState(null),d=t.infoPages.filter(y=>y.type===t.infoPageType),p=(y,w)=>{const C=w&&d.find(I=>I.id===w)||null;n(w),i((C==null?void 0:C.contentType)||Gi.TEXT),t.onChange((C==null?void 0:C.body)||null)},g=y=>{h(y)},b=y=>{c(y)},v=()=>{var y;u&&((y=u.getAction("editor.action.formatDocument"))==null||y.run())},x=()=>{var y;l&&((y=l.getAction("editor.action.formatDocument"))==null||y.run())},T=()=>{try{const y=JSON.parse(t.value||"{}"),w=JSON.stringify(y);t.onChange(w),a(null)}catch(y){a(t.labels.cannotMinifyInvalidJson)}},S=()=>{switch(r){case Gi.HTML:return s.jsxs(s.Fragment,{children:[s.jsx(f.Stack,{direction:"row",spacing:1,alignItems:"center",justifyContent:"flex-end",mb:1,children:s.jsx(f.Button,{size:"sm",variant:"outlined",onClick:v,disabled:!t.value||!u,children:t.labels.format})}),s.jsx(f.Box,{sx:{border:"1px solid",borderColor:"neutral.outlinedBorder",borderRadius:"sm",overflow:"hidden",maxHeight:"400px","& .monaco-editor":{paddingBottom:"8px"},"& .monaco-editor .overflow-guard":{borderRadius:"sm"}},children:s.jsx(Lx,{height:"400px",defaultLanguage:"html",value:t.value||"",onChange:y=>t.onChange(y||null),onMount:g,theme:"vs-light",options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",roundedSelection:!0,scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:"on",formatOnPaste:!1,formatOnType:!1,padding:{top:8,bottom:8},suggest:{showKeywords:!0,showSnippets:!0}}},"html-editor")})]});case Gi.JSON:return s.jsxs(s.Fragment,{children:[s.jsxs(f.Stack,{direction:"row",spacing:1,alignItems:"center",justifyContent:"flex-end",mb:1,children:[s.jsx(f.Button,{size:"sm",variant:"outlined",onClick:x,disabled:!t.value||!l,children:t.labels.format}),s.jsx(f.Button,{size:"sm",variant:"outlined",onClick:T,disabled:!t.value,children:t.labels.minify})]}),s.jsx(f.Box,{sx:{border:"1px solid",borderColor:"neutral.outlinedBorder",borderRadius:"sm",overflow:"hidden",maxHeight:"400px","& .monaco-editor":{paddingBottom:"8px"},"& .monaco-editor .overflow-guard":{borderRadius:"sm"}},children:s.jsx(Lx,{height:"400px",defaultLanguage:"json",value:t.value||"",onChange:y=>t.onChange(y||null),onMount:b,theme:"vs-light",options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",roundedSelection:!0,scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:"on",formatOnPaste:!0,formatOnType:!1,padding:{top:8,bottom:8},suggest:{showKeywords:!0,showSnippets:!0},quickSuggestions:{strings:!0}}},"json-editor")}),o&&s.jsx(f.Alert,{color:"danger",variant:"soft",startDecorator:s.jsx(Le.Error,{}),sx:{mt:1},children:s.jsxs(f.Typography,{level:"body-sm",children:[s.jsxs("strong",{children:[t.labels.invalidJsonFormat,":"]})," ",o]})})]});default:return t.infoPageType==="rules"?s.jsx(Ws,{property:"rules",defaultValue:t.value,onChange:y=>t.onChange(y||null),label:"",placeholder:""}):s.jsx(f.Textarea,{value:t.value,onChange:y=>t.onChange(y.target.value||null),minRows:7,sx:{marginBottom:"16px",resize:"vertical",backgroundColor:"#fff",maxHeight:"400px","& textarea":{overflowY:"auto !important"},"&::before":{border:"1.5px solid var(--Textarea-focusedHighlight)",transform:"scaleX(0)",left:"2.5px",right:"2.5px",bottom:0,top:"unset",transition:"transform .15s cubic-bezier(0.1,0.9,0.2,1)",borderRadius:0,borderBottomLeftRadius:"64px 20px",borderBottomRightRadius:"64px 20px"},"&:focus-within::before":{transform:"scaleX(1)"}}})}};return s.jsxs(s.Fragment,{children:[d.length>0&&s.jsxs(f.FormControl,{sx:{mb:1},children:[s.jsx(f.FormLabel,{children:t.labels.selectLabel}),s.jsx(f.Select,{value:e,onChange:p,size:"sm",children:d.map(y=>s.jsx(f.Option,{value:y.id,children:y.title},y.title))})]}),S()]})},LanguageTabs:t=>s.jsx(f.Tabs,{"aria-label":"Languages",defaultValue:0,onChange:(e,n)=>t.onTabChange(Number(n)),children:s.jsxs(f.TabList,{sx:{display:"flex",justifyContent:"space-between"},children:[s.jsx(f.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:t.languages.map(e=>{var n,r;return e&&s.jsx(f.Tab,{disableIndicator:!0,children:(r=(n=De[e])==null?void 0:n.name)!=null?r:e},e)})}),s.jsx(f.Button,{variant:"plain",color:"neutral",onClick:t.onLanguageButtonClick,children:s.jsx(Le.Translate,{})})]})}),LanguagesModal:t=>{var c,u;const[e,n]=m.useState([]);if(m.useEffect(()=>{n(t.languages)},[t.languages]),!t.defaultLanguage)return null;const r=()=>{t.onClose()},i=h=>{let d=[...e];e.includes(h)?d=d.filter(p=>p!==h):d.push(h),d.includes(t.defaultLanguage)||d.unshift(t.defaultLanguage),n(d)},o=()=>{t.onSubmit(e)},a=e.length!==t.languages.length||e.some(h=>!t.languages.includes(h)),l=[...t.availableLanguages,t.defaultLanguage].filter(h=>h!==t.defaultLanguage);return s.jsx(s.Fragment,{children:s.jsx(f.Modal,{onClick:h=>{h.stopPropagation()},open:t.isOpen,onClose:r,children:s.jsxs(f.ModalDialog,{sx:{width:500,minWidth:250,overflowY:"scroll"},children:[s.jsx(f.DialogTitle,{children:t.labels.languagesModalTitle}),s.jsx(f.FormHelperText,{children:t.labels.languagesModalDescription}),s.jsxs(f.DialogContent,{sx:{maxHeight:140,overflowY:"scroll",overflowX:"hidden"},children:[s.jsx(f.Checkbox,{sx:{my:.5,"& .MuiCheckbox-checkbox":{backgroundColor:"white","&:hover":{backgroundColor:"#f0f4f8"}},"& .MuiCheckbox-checkbox.Mui-checked":{backgroundColor:"#0066CC"}},disabled:!0,checked:!0,label:(u=(c=De[t.defaultLanguage])==null?void 0:c.name)!=null?u:t.defaultLanguage},"default-language"),l.map(h=>{var d,p;return s.jsx(f.Checkbox,{sx:{my:.5},checked:e.includes(h),label:(p=(d=De[h])==null?void 0:d.name)!=null?p:h,onChange:()=>i(h)},h)})]}),s.jsxs(f.DialogActions,{children:[s.jsx(f.Button,{disabled:!a,loading:t.isLoadingTranslations,variant:"solid",color:"primary",onClick:o,children:t.labels.languagesModalSave}),s.jsx(f.Button,{variant:"plain",color:"neutral",onClick:r,children:t.labels.close})]})]})})})}},Mx=m.createContext(null),u3=({children:t})=>s.jsx(Mx.Provider,{value:c3,children:t}),d3=()=>{const t=m.useContext(Mx);if(!t)throw new Error("useComponentContext must be used within a ComponentProvider");return t},$x=425,Bx=1024,h3=()=>{const[t,e]=m.useState(window.innerWidth<=Bx),[n,r]=m.useState(window.innerWidth<=$x);return m.useLayoutEffect(()=>{const i=()=>{e(window.innerWidth<=Bx),r(window.innerWidth<=$x)};return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),{isMobile:t,isPhone:n}},f3=(t,e,n)=>A(this,null,function*(){var a,l;const o=yield fetch("https://translation.googleapis.com/language/translate/v2?key=AIzaSyB6JILBJiJ0Z2pxw0-nudOpRAzqFk6D6Lw",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({q:t,target:e,source:n!=null?n:void 0,format:"text"})}).then(c=>c.json());return((l=(a=o==null?void 0:o.data)==null?void 0:a.translations)!=null?l:[]).map(c=>c.translatedText)}),p3=t=>{const{languageConfig:e,entityById:n,entityType:r,authRequirement:i,applyTranslationRules:o=!1,translateEntities:a,createEntity:l,updateEntity:c,deleteEntity:u,finalizeBody:h,prepareBody:d,onTranslationApplied:p,getEntityById:g}=t,[b,v]=m.useState([]),[x,T]=m.useState(null),[S,y]=m.useState(null),[w,C]=m.useState({}),[I,E]=m.useState([]),[_,R]=m.useState(!1),[N,V]=m.useState(!1),[k,H]=m.useState(!1),[K,P]=m.useState(!1),D=m.useRef(null),M=b.length>1,z=(n==null?void 0:n.language)||(e==null?void 0:e.default_language);return m.useEffect(()=>{var ae;if(!n||!g)return;const ee=((ae=n.related)!=null?ae:[]).find(oe=>oe.entity_type===r&&oe.entity_relationship==="translatedFrom");ee!=null&&ee.entity_id&&g(ee.entity_id).then(T).catch(()=>{})},[n==null?void 0:n.id]),{translationLanguages:b,selectedLanguage:S,allEntities:w,entitiesForRemoval:I,isMultiLingual:M,isLoadingMultiTranslation:_,isLoadingTranslation:N,isLoadingDefaultTranslation:k,openLanguagesModal:K,setOpenLanguagesModal:P,initRelatedTranslations:(ee,ae)=>{var se;const oe=[ee.language,...ae.map(re=>re.language)].filter(re=>typeof re=="string");v(oe);const Z={};ae.forEach(re=>{re.language&&(Z[re.language]=d(re))}),ee.language&&(Z[ee.language]=d(ee)),C(Z),y((se=ee.language)!=null?se:null)},handleLanguageTabChange:ee=>{y(b[ee])},handleLanguagesChange:ee=>A(this,null,function*(){R(!0);const ae=M&&z&&w[z]?w[z]:D.current,oe={},Z={},se=[];ee.forEach(ne=>{var ue,be;if(b.includes(ne))oe[ne]=w[ne];else{const Me=Q(L(Q(L({},ae),{language:ne}),o&&{status:(be=(ue=e==null?void 0:e.translation_rules[ne])==null?void 0:ue.game_status)!=null?be:"INACTIVE"}),{related:[]});ne!==z&&delete Me.id,Z[ne]=Me}}),b.filter(ne=>!ee.includes(ne)).forEach(ne=>{var ue;(ue=w[ne])!=null&&ue.id&&se.push(Q(L({},w[ne]),{status:"INACTIVE"}))}),E(se),v(ee),y(z!=null?z:null);const re=Object.keys(Z);if(re.length>0){const ne=re.map(ue=>A(this,null,function*(){const be=yield a([Z[ue]],ue);Z[ue]=be[0]}));try{yield Promise.all(ne)}catch(ue){R(!1);return}}C(L(L({},oe),Z)),y(z!=null?z:null),R(!1),P(!1)}),updateSelectedEntity:ee=>{M?C(ae=>Q(L({},ae),{[S]:ee})):D.current=ee},applyTranslation:(ee,ae)=>A(this,null,function*(){M&&ee===S||!M&&ee===ae?H(!0):V(!0);const Z=M?w[S]:D.current,se=e!=null&&e.default_language&&ee!==e.default_language?e.default_language:void 0;try{const ne=(yield a([Z],ee,se))[0];M?C(ue=>Q(L({},ue),{[S]:ne})):(D.current=ne,C(ue=>Q(L({},ue),{[ae]:ne}))),p==null||p(ne)}finally{H(!1),V(!1)}}),parentEntity:x,manageMultiLingual:se=>A(this,[se],function*({mainEntityCurrentBody:ee,editMode:ae,onSuccess:oe,onError:Z}){var me,Ce;let re=n;if(!ae){const ve=h(L({},ee));ve.auth_requirement=ve.auth_requirement||i,ve.language=ve.language||z;const Ae=yield l(L({},ve));if(Ae.ok){const Pe=yield Ae.json();re=(me=Pe.data)!=null?me:Pe}else{Z("create");return}}for(const ve of I){const Ae=h(L({},ve));(Ae.branding_id||ra(Ae.branding))&&(Ae.branding=null),yield c(ve.id,Ae),yield u(ve.id)}const ne=(ae?n==null?void 0:n.language:null)||z,ue=Object.values(w).filter(ve=>ve.language!==ne&&!I.some(Ae=>Ae.id===ve.id)),be={},Me=ue.map(ve=>A(this,null,function*(){var Oe;const Ae=ve.id?d(L({},ve)):h(L({},ve));Ae.auth_requirement=Ae.auth_requirement||i,Ae.related=(Ae.related||[]).filter(Ze=>!(Ze.entity_type===r&&Ze.entity_relationship==="translatedFrom"&&Ze.entity_id===re.id)),Ae.related.push({entity_type:r,entity_relationship:"translatedFrom",entity_id:re.id}),(Ae.branding_id||ra(Ae.branding))&&(Ae.branding=null);const Pe=ve.id?yield c(ve.id,L({},Ae)):yield l(L({},Ae));if(Pe.ok){const Ze=yield Pe.json();be[ve.language]=(Oe=Ze.data)!=null?Oe:Ze}else throw new Error("translation")}));try{yield Promise.all(Me)}catch(ve){Z("translation");return}const $e=h(L({},ee));$e.auth_requirement=$e.auth_requirement||i,$e.language=$e.language||z,Object.keys(be).length>0&&($e.related=Object.values(be).map(ve=>({entity_type:r,entity_relationship:"translatedTo",entity_id:ve.id}))),($e.branding_id||ra($e.branding))&&($e.branding=null);const Ct=(ae?n==null?void 0:n.id:null)||(re==null?void 0:re.id),he=yield c(Ct,L({},$e));if(he.ok){const ve=yield he.json(),Ae=(Ce=ve.data)!=null?Ce:ve;be[Ae.language||z]=Ae;const Pe={};Object.keys(be).forEach(Oe=>{Pe[Oe]=d(be[Oe])}),C(Pe),E([]),oe(Ae,Pe)}else Z("update")})}};var Nx=(t=>(t.BOOLEAN="BOOLEAN",t.NUMBER="NUMBER",t.ENUM="ENUM",t.FREE_INPUT="FREE_INPUT",t))(Nx||{}),Fx=(t=>(t.ACTIVE="ACTIVE",t.SETTLED="SETTLED",t.VOID="VOID",t))(Fx||{});class g3{constructor(){G(this,"id","");G(this,"question","");G(this,"status","ACTIVE");G(this,"void_reason",null);G(this,"points",0);G(this,"outcome_type",null);G(this,"valid_outcomes",null);G(this,"outcome",null)}}class m3{constructor(){G(this,"id","");G(this,"title","");G(this,"description","");G(this,"type","EVENT");G(this,"rules","");G(this,"status","PENDING");G(this,"images",null);G(this,"related",[]);G(this,"custom_fields",null);G(this,"predictions_cutoff","");G(this,"fixtures",[]);G(this,"tiebreaker",{stat_tiebreaker_enabled:!1,stat_total:0});G(this,"branding_id",null)}}class v3{constructor(){G(this,"title","");G(this,"description","");G(this,"config",{})}}class b3{constructor(e){G(this,"limit");G(this,"startAfter");G(this,"sortOrder");G(this,"infoPageIds");this.limit=e.limit||20,this.startAfter=e.startAfter||null,this.sortOrder=e.sortOrder||"desc",this.infoPageIds=e.infoPageIds||null}}class y3{constructor(e){G(this,"id","");G(this,"title","");G(this,"subtitle",null);G(this,"type","");G(this,"contentType",Gi.JSON);G(this,"body","");G(this,"language","");G(this,"context",null);G(this,"brandingId",null);G(this,"images",null);G(this,"labels",null);G(this,"createdAt","");G(this,"updatedAt","");this.id=e.id,this.title=e.title,this.subtitle=e.subtitle,this.type=e.type,this.contentType=e.content_type,this.body=e.body,this.language=e.language,this.context=e.context,this.brandingId=e.branding_id,this.images=e.images,this.labels=e.labels,this.createdAt=e.created_at,this.updatedAt=e.updated_at}}class x3{constructor(){G(this,"id","");G(this,"title","");G(this,"description","");G(this,"branding",null);G(this,"branding_id",null);G(this,"type","");G(this,"status","");G(this,"language","");G(this,"tiebreaker",{time_tiebreaker:!0});G(this,"ad_content","");G(this,"auth_requirement",null);G(this,"labels",{});G(this,"custom_fields",{});G(this,"rules","");G(this,"flags",[]);G(this,"images",null);G(this,"predictions_cutoff","");G(this,"schedule_open_at","");G(this,"fixtures",[]);G(this,"related",[]);G(this,"excluded_profile_ids",[])}}const C3={APIProvider:V_,AuthProvider:H_,AuthContext:Rg,ComponentProvider:u3,useComponentContext:d3,useAPIContext:Je,useIsMobile:h3,useMultiLanguage:p3,constants:{supportedLanguages:De,languagesMap:oo},helpers:{areAllValuesFalsy:ra,remapKeysToSpecificCase:Pl,translateTexts:f3}};Ie.EventGameFixtureStatusEnum=Fx,Ie.EventGameFixturesModel=g3,Ie.EventGameOutcomeTypeEnum=Nx,Ie.EventGameRequestBody=m3,Ie.GameRequestBody=x3,Ie.InfoPageModel=y3,Ie.InfoPageRequestBody=t4,Ie.InfoPagesFilters=b3,Ie.WidgetConfigRequestBody=v3,Ie.default=C3,Object.defineProperties(Ie,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
3549
|
+
`},Tx=E4(O4)(Ax),R4={config:P4},L4=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduceRight(function(o,a){return a(o)},i)}};function _x(t,e){return Object.keys(e).forEach(function(n){e[n]instanceof Object&&t[n]&&Object.assign(e[n],_x(t[n],e[n]))}),wx(wx({},t),e)}var M4={type:"cancelation",msg:"operation is manually canceled"};function xh(t){var e=!1,n=new Promise(function(r,i){t.then(function(o){return e?i(M4):r(o)}),t.catch(i)});return n.cancel=function(){return e=!0},n}var $4=["monaco"],B4=T4.create({config:_4,isInitialized:!1,resolve:null,reject:null,monaco:null}),Ex=l4(B4,2),ba=Ex[0],ec=Ex[1];function N4(t){var e=R4.config(t),n=e.monaco,r=a4(e,$4);ec(function(i){return{config:_x(i.config,r),monaco:n}})}function F4(){var t=ba(function(e){var n=e.monaco,r=e.isInitialized,i=e.resolve;return{monaco:n,isInitialized:r,resolve:i}});if(!t.isInitialized){if(ec({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),xh(Ch);if(window.monaco&&window.monaco.editor)return kx(window.monaco),t.resolve(window.monaco),xh(Ch);L4(j4,U4)(V4)}return xh(Ch)}function j4(t){return document.body.appendChild(t)}function z4(t){var e=document.createElement("script");return t&&(e.src=t),e}function U4(t){var e=ba(function(r){var i=r.config,o=r.reject;return{config:i,reject:o}}),n=z4("".concat(e.config.paths.vs,"/loader.js"));return n.onload=function(){return t()},n.onerror=e.reject,n}function V4(){var t=ba(function(n){var r=n.config,i=n.resolve,o=n.reject;return{config:r,resolve:i,reject:o}}),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],function(n){var r=n.m||n;kx(r),t.resolve(r)},function(n){t.reject(n)})}function kx(t){ba().monaco||ec({monaco:t})}function H4(){return ba(function(t){var e=t.monaco;return e})}var Ch=new Promise(function(t,e){return ec({resolve:t,reject:e})}),Px={config:N4,init:F4,__getMonacoInstance:H4},W4={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},wh=W4,G4={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},q4=G4;function K4({children:t}){return m.createElement("div",{style:q4.container},t)}var Y4=K4,Q4=Y4;function J4({width:t,height:e,isEditorReady:n,loading:r,_ref:i,className:o,wrapperProps:a}){return m.createElement("section",L({style:Q(L({},wh.wrapper),{width:t,height:e})},a),!n&&m.createElement(Q4,null,r),m.createElement("div",{ref:i,style:L(L({},wh.fullWidth),!n&&wh.hide),className:o}))}var X4=J4,Dx=m.memo(X4);function Z4(t){m.useEffect(t,[])}var Ox=Z4;function e3(t,e,n=!0){let r=m.useRef(!0);m.useEffect(r.current||!n?()=>{r.current=!1}:t,e)}var rn=e3;function ya(){}function qi(t,e,n,r){return t3(t,r)||n3(t,e,n,r)}function t3(t,e){return t.editor.getModel(Rx(t,e))}function n3(t,e,n,r){return t.editor.createModel(e,n,r?Rx(t,r):void 0)}function Rx(t,e){return t.Uri.parse(e)}function r3({original:t,modified:e,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:c=!1,theme:u="light",loading:h="Loading...",options:d={},height:p="100%",width:g="100%",className:b,wrapperProps:v={},beforeMount:x=ya,onMount:T=ya}){let[S,y]=m.useState(!1),[w,C]=m.useState(!0),I=m.useRef(null),E=m.useRef(null),_=m.useRef(null),R=m.useRef(T),N=m.useRef(x),V=m.useRef(!1);Ox(()=>{let P=Px.init();return P.then(D=>(E.current=D)&&C(!1)).catch(D=>(D==null?void 0:D.type)!=="cancelation"&&console.error("Monaco initialization: error:",D)),()=>I.current?K():P.cancel()}),rn(()=>{if(I.current&&E.current){let P=I.current.getOriginalEditor(),D=qi(E.current,t||"",r||n||"text",o||"");D!==P.getModel()&&P.setModel(D)}},[o],S),rn(()=>{if(I.current&&E.current){let P=I.current.getModifiedEditor(),D=qi(E.current,e||"",i||n||"text",a||"");D!==P.getModel()&&P.setModel(D)}},[a],S),rn(()=>{let P=I.current.getModifiedEditor();P.getOption(E.current.editor.EditorOption.readOnly)?P.setValue(e||""):e!==P.getValue()&&(P.executeEdits("",[{range:P.getModel().getFullModelRange(),text:e||"",forceMoveMarkers:!0}]),P.pushUndoStop())},[e],S),rn(()=>{var P,D;(D=(P=I.current)==null?void 0:P.getModel())==null||D.original.setValue(t||"")},[t],S),rn(()=>{let{original:P,modified:D}=I.current.getModel();E.current.editor.setModelLanguage(P,r||n||"text"),E.current.editor.setModelLanguage(D,i||n||"text")},[n,r,i],S),rn(()=>{var P;(P=E.current)==null||P.editor.setTheme(u)},[u],S),rn(()=>{var P;(P=I.current)==null||P.updateOptions(d)},[d],S);let k=m.useCallback(()=>{var M;if(!E.current)return;N.current(E.current);let P=qi(E.current,t||"",r||n||"text",o||""),D=qi(E.current,e||"",i||n||"text",a||"");(M=I.current)==null||M.setModel({original:P,modified:D})},[n,e,i,t,r,o,a]),H=m.useCallback(()=>{var P;!V.current&&_.current&&(I.current=E.current.editor.createDiffEditor(_.current,L({automaticLayout:!0},d)),k(),(P=E.current)==null||P.editor.setTheme(u),y(!0),V.current=!0)},[d,u,k]);m.useEffect(()=>{S&&R.current(I.current,E.current)},[S]),m.useEffect(()=>{!w&&!S&&H()},[w,S,H]);function K(){var D,M,z,q;let P=(D=I.current)==null?void 0:D.getModel();l||((M=P==null?void 0:P.original)==null||M.dispose()),c||((z=P==null?void 0:P.modified)==null||z.dispose()),(q=I.current)==null||q.dispose()}return m.createElement(Dx,{width:g,height:p,isEditorReady:S,loading:h,_ref:_,className:b,wrapperProps:v})}var i3=r3;m.memo(i3);function o3(t){let e=m.useRef();return m.useEffect(()=>{e.current=t},[t]),e.current}var a3=o3,tc=new Map;function s3({defaultValue:t,defaultLanguage:e,defaultPath:n,value:r,language:i,path:o,theme:a="light",line:l,loading:c="Loading...",options:u={},overrideServices:h={},saveViewState:d=!0,keepCurrentModel:p=!1,width:g="100%",height:b="100%",className:v,wrapperProps:x={},beforeMount:T=ya,onMount:S=ya,onChange:y,onValidate:w=ya}){let[C,I]=m.useState(!1),[E,_]=m.useState(!0),R=m.useRef(null),N=m.useRef(null),V=m.useRef(null),k=m.useRef(S),H=m.useRef(T),K=m.useRef(),P=m.useRef(r),D=a3(o),M=m.useRef(!1),z=m.useRef(!1);Ox(()=>{let O=Px.init();return O.then(B=>(R.current=B)&&_(!1)).catch(B=>(B==null?void 0:B.type)!=="cancelation"&&console.error("Monaco initialization: error:",B)),()=>N.current?X():O.cancel()}),rn(()=>{var B,U,W,ee;let O=qi(R.current,t||r||"",e||i||"",o||n||"");O!==((B=N.current)==null?void 0:B.getModel())&&(d&&tc.set(D,(U=N.current)==null?void 0:U.saveViewState()),(W=N.current)==null||W.setModel(O),d&&((ee=N.current)==null||ee.restoreViewState(tc.get(o))))},[o],C),rn(()=>{var O;(O=N.current)==null||O.updateOptions(u)},[u],C),rn(()=>{!N.current||r===void 0||(N.current.getOption(R.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(z.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),z.current=!1))},[r],C),rn(()=>{var B,U;let O=(B=N.current)==null?void 0:B.getModel();O&&i&&((U=R.current)==null||U.editor.setModelLanguage(O,i))},[i],C),rn(()=>{var O;l!==void 0&&((O=N.current)==null||O.revealLine(l))},[l],C),rn(()=>{var O;(O=R.current)==null||O.editor.setTheme(a)},[a],C);let q=m.useCallback(()=>{var O;if(!(!V.current||!R.current)&&!M.current){H.current(R.current);let B=o||n,U=qi(R.current,r||t||"",e||i||"",B||"");N.current=(O=R.current)==null?void 0:O.editor.create(V.current,L({model:U,automaticLayout:!0},u),h),d&&N.current.restoreViewState(tc.get(B)),R.current.editor.setTheme(a),l!==void 0&&N.current.revealLine(l),I(!0),M.current=!0}},[t,e,n,r,i,o,u,h,d,a,l]);m.useEffect(()=>{C&&k.current(N.current,R.current)},[C]),m.useEffect(()=>{!E&&!C&&q()},[E,C,q]),P.current=r,m.useEffect(()=>{var O,B;C&&y&&((O=K.current)==null||O.dispose(),K.current=(B=N.current)==null?void 0:B.onDidChangeModelContent(U=>{z.current||y(N.current.getValue(),U)}))},[C,y]),m.useEffect(()=>{if(C){let O=R.current.editor.onDidChangeMarkers(B=>{var W;let U=(W=N.current.getModel())==null?void 0:W.uri;if(U&&B.find(ee=>ee.path===U.path)){let ee=R.current.editor.getModelMarkers({resource:U});w==null||w(ee)}});return()=>{O==null||O.dispose()}}return()=>{}},[C,w]);function X(){var O,B;(O=K.current)==null||O.dispose(),p?d&&tc.set(o,N.current.saveViewState()):(B=N.current.getModel())==null||B.dispose(),N.current.dispose()}return m.createElement(Dx,{width:g,height:b,isEditorReady:C,loading:c,_ref:V,className:v,wrapperProps:x})}var l3=s3,Lx=m.memo(l3);const c3={Login:gN,InformationInput:kt,RichText:Ws,HeaderButtons:WM,MarketSelection:PN,Accordion:PD,DynamicFields:s$,BasicSelect:OD,BooleanSwitch:bn,Branding:zM,ProfileSearchSelect:JF,RangeCalendar:o$,CompetitionSearchSelect:YF,Related:LN,Images:WB,Duration:i$,DatePickerComponent:Yo,Flags:zB,Spinner:Bi,Tags:A0,Toast:Xe,AdContent:DD,Match:DN,Winners:BU,CompetitionsSearchSelect:QF,TeamsSearchSelect:S0,CustomSelect:QN,Schedule:VN,NoPermissionCard:a$,CustomFlatpickrCalendar:Md,ContextSelectFilter:FU,NumberInput:sh,EntityContext:b5,MiniGamesImages:x5,AuthRequirement:C5,SortableList:dH,ItemsPerPageFilter:hH,ImageCard:ta,RelatedRelationship:TH,CustomGameRelated:PH,ExportUsersLeads:DH,SignOutButton:Zv,BasicSortableList:RH,WidgetEmbedCode:MH,WidgetListEmbedCode:FH,AdvancedProfileSearchSelect:jH,FormatNumber:zH,PlayersSearchSelect:HH,GenerateFootballMatchModal:JH,GenerateFormula1PostEventModal:e4,BrandingImage:Ed,ContentPickerEditor:t=>{const[e,n]=m.useState(null),[r,i]=m.useState(Gi.TEXT),[o,a]=m.useState(null),[l,c]=m.useState(null),[u,h]=m.useState(null),d=t.infoPages.filter(y=>y.type===t.infoPageType),p=(y,w)=>{const C=w&&d.find(I=>I.id===w)||null;n(w),i((C==null?void 0:C.contentType)||Gi.TEXT),t.onChange((C==null?void 0:C.body)||null)},g=y=>{h(y)},b=y=>{c(y)},v=()=>{var y;u&&((y=u.getAction("editor.action.formatDocument"))==null||y.run())},x=()=>{var y;l&&((y=l.getAction("editor.action.formatDocument"))==null||y.run())},T=()=>{try{const y=JSON.parse(t.value||"{}"),w=JSON.stringify(y);t.onChange(w),a(null)}catch(y){a(t.labels.cannotMinifyInvalidJson)}},S=()=>{switch(r){case Gi.HTML:return s.jsxs(s.Fragment,{children:[s.jsx(f.Stack,{direction:"row",spacing:1,alignItems:"center",justifyContent:"flex-end",mb:1,children:s.jsx(f.Button,{size:"sm",variant:"outlined",onClick:v,disabled:!t.value||!u,children:t.labels.format})}),s.jsx(f.Box,{sx:{border:"1px solid",borderColor:"neutral.outlinedBorder",borderRadius:"sm",overflow:"hidden",maxHeight:"400px","& .monaco-editor":{paddingBottom:"8px"},"& .monaco-editor .overflow-guard":{borderRadius:"sm"}},children:s.jsx(Lx,{height:"400px",defaultLanguage:"html",value:t.value||"",onChange:y=>t.onChange(y||null),onMount:g,theme:"vs-light",options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",roundedSelection:!0,scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:"on",formatOnPaste:!1,formatOnType:!1,padding:{top:8,bottom:8},suggest:{showKeywords:!0,showSnippets:!0}}},"html-editor")})]});case Gi.JSON:return s.jsxs(s.Fragment,{children:[s.jsxs(f.Stack,{direction:"row",spacing:1,alignItems:"center",justifyContent:"flex-end",mb:1,children:[s.jsx(f.Button,{size:"sm",variant:"outlined",onClick:x,disabled:!t.value||!l,children:t.labels.format}),s.jsx(f.Button,{size:"sm",variant:"outlined",onClick:T,disabled:!t.value,children:t.labels.minify})]}),s.jsx(f.Box,{sx:{border:"1px solid",borderColor:"neutral.outlinedBorder",borderRadius:"sm",overflow:"hidden",maxHeight:"400px","& .monaco-editor":{paddingBottom:"8px"},"& .monaco-editor .overflow-guard":{borderRadius:"sm"}},children:s.jsx(Lx,{height:"400px",defaultLanguage:"json",value:t.value||"",onChange:y=>t.onChange(y||null),onMount:b,theme:"vs-light",options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",roundedSelection:!0,scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:"on",formatOnPaste:!0,formatOnType:!1,padding:{top:8,bottom:8},suggest:{showKeywords:!0,showSnippets:!0},quickSuggestions:{strings:!0}}},"json-editor")}),o&&s.jsx(f.Alert,{color:"danger",variant:"soft",startDecorator:s.jsx(Le.Error,{}),sx:{mt:1},children:s.jsxs(f.Typography,{level:"body-sm",children:[s.jsxs("strong",{children:[t.labels.invalidJsonFormat,":"]})," ",o]})})]});default:return t.infoPageType==="rules"?s.jsx(Ws,{property:"rules",defaultValue:t.value,onChange:y=>t.onChange(y||null),label:"",placeholder:""}):s.jsx(f.Textarea,{value:t.value,onChange:y=>t.onChange(y.target.value||null),minRows:7,sx:{marginBottom:"16px",resize:"vertical",backgroundColor:"#fff",maxHeight:"400px","& textarea":{overflowY:"auto !important"},"&::before":{border:"1.5px solid var(--Textarea-focusedHighlight)",transform:"scaleX(0)",left:"2.5px",right:"2.5px",bottom:0,top:"unset",transition:"transform .15s cubic-bezier(0.1,0.9,0.2,1)",borderRadius:0,borderBottomLeftRadius:"64px 20px",borderBottomRightRadius:"64px 20px"},"&:focus-within::before":{transform:"scaleX(1)"}}})}};return s.jsxs(s.Fragment,{children:[d.length>0&&s.jsxs(f.FormControl,{sx:{mb:1},children:[s.jsx(f.FormLabel,{children:t.labels.selectLabel}),s.jsx(f.Select,{value:e,onChange:p,size:"sm",children:d.map(y=>s.jsx(f.Option,{value:y.id,children:y.title},y.title))})]}),S()]})},LanguageTabs:t=>s.jsx(f.Tabs,{"aria-label":"Languages",defaultValue:0,onChange:(e,n)=>t.onTabChange(Number(n)),children:s.jsxs(f.TabList,{sx:{display:"flex",justifyContent:"space-between"},children:[s.jsx(f.Box,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:t.languages.map(e=>{var n,r;return e&&s.jsx(f.Tab,{disableIndicator:!0,children:(r=(n=De[e])==null?void 0:n.name)!=null?r:e},e)})}),s.jsx(f.Button,{variant:"plain",color:"neutral",onClick:t.onLanguageButtonClick,children:s.jsx(Le.Translate,{})})]})}),LanguagesModal:t=>{var c,u;const[e,n]=m.useState([]);if(m.useEffect(()=>{n(t.languages)},[t.languages]),!t.defaultLanguage)return null;const r=()=>{t.onClose()},i=h=>{let d=[...e];e.includes(h)?d=d.filter(p=>p!==h):d.push(h),d.includes(t.defaultLanguage)||d.unshift(t.defaultLanguage),n(d)},o=()=>{t.onSubmit(e)},a=e.length!==t.languages.length||e.some(h=>!t.languages.includes(h)),l=[...t.availableLanguages,t.defaultLanguage].filter(h=>h!==t.defaultLanguage);return s.jsx(s.Fragment,{children:s.jsx(f.Modal,{onClick:h=>{h.stopPropagation()},open:t.isOpen,onClose:r,children:s.jsxs(f.ModalDialog,{sx:{width:500,minWidth:250,overflowY:"scroll"},children:[s.jsx(f.DialogTitle,{children:t.labels.languagesModalTitle}),s.jsx(f.FormHelperText,{children:t.labels.languagesModalDescription}),s.jsxs(f.DialogContent,{sx:{maxHeight:140,overflowY:"scroll",overflowX:"hidden"},children:[s.jsx(f.Checkbox,{sx:{my:.5,"& .MuiCheckbox-checkbox":{backgroundColor:"white","&:hover":{backgroundColor:"#f0f4f8"}},"& .MuiCheckbox-checkbox.Mui-checked":{backgroundColor:"#0066CC"}},disabled:!0,checked:!0,label:(u=(c=De[t.defaultLanguage])==null?void 0:c.name)!=null?u:t.defaultLanguage},"default-language"),l.map(h=>{var d,p;return s.jsx(f.Checkbox,{sx:{my:.5},checked:e.includes(h),label:(p=(d=De[h])==null?void 0:d.name)!=null?p:h,onChange:()=>i(h)},h)})]}),s.jsxs(f.DialogActions,{children:[s.jsx(f.Button,{disabled:!a,loading:t.isLoadingTranslations,variant:"solid",color:"primary",onClick:o,children:t.labels.languagesModalSave}),s.jsx(f.Button,{variant:"plain",color:"neutral",onClick:r,children:t.labels.close})]})]})})})}},Mx=m.createContext(null),u3=({children:t})=>s.jsx(Mx.Provider,{value:c3,children:t}),d3=()=>{const t=m.useContext(Mx);if(!t)throw new Error("useComponentContext must be used within a ComponentProvider");return t},$x=425,Bx=1024,h3=()=>{const[t,e]=m.useState(window.innerWidth<=Bx),[n,r]=m.useState(window.innerWidth<=$x);return m.useLayoutEffect(()=>{const i=()=>{e(window.innerWidth<=Bx),r(window.innerWidth<=$x)};return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),{isMobile:t,isPhone:n}},f3=(t,e,n)=>A(this,null,function*(){var a,l;const o=yield fetch("https://translation.googleapis.com/language/translate/v2?key=AIzaSyB6JILBJiJ0Z2pxw0-nudOpRAzqFk6D6Lw",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({q:t,target:e,source:n!=null?n:void 0,format:"text"})}).then(c=>c.json());return((l=(a=o==null?void 0:o.data)==null?void 0:a.translations)!=null?l:[]).map(c=>c.translatedText)}),p3=t=>{const{languageConfig:e,entityById:n,entityType:r,authRequirement:i,applyTranslationRules:o=!1,translateEntities:a,createEntity:l,updateEntity:c,deleteEntity:u,finalizeBody:h,prepareBody:d,onTranslationApplied:p,getEntityById:g}=t,[b,v]=m.useState([]),[x,T]=m.useState(null),[S,y]=m.useState(null),[w,C]=m.useState({}),[I,E]=m.useState([]),[_,R]=m.useState(!1),[N,V]=m.useState(!1),[k,H]=m.useState(!1),[K,P]=m.useState(!1),D=m.useRef(null),M=b.length>1,z=(n==null?void 0:n.language)||(e==null?void 0:e.default_language);return m.useEffect(()=>{var ae;if(!n||!g)return;const ee=((ae=n.related)!=null?ae:[]).find(oe=>oe.entity_type===r&&oe.entity_relationship==="translatedFrom");ee!=null&&ee.entity_id&&g(ee.entity_id).then(T).catch(()=>{})},[n==null?void 0:n.id]),{translationLanguages:b,selectedLanguage:S,allEntities:w,entitiesForRemoval:I,isMultiLingual:M,isLoadingMultiTranslation:_,isLoadingTranslation:N,isLoadingDefaultTranslation:k,openLanguagesModal:K,setOpenLanguagesModal:P,initRelatedTranslations:(ee,ae)=>{var se;const oe=[ee.language,...ae.map(re=>re.language)].filter(re=>typeof re=="string");v(oe);const Z={};ae.forEach(re=>{re.language&&(Z[re.language]=d(re))}),ee.language&&(Z[ee.language]=d(ee)),C(Z),y((se=ee.language)!=null?se:null)},handleLanguageTabChange:ee=>{y(b[ee])},handleLanguagesChange:ee=>A(this,null,function*(){R(!0);const ae=M&&z&&w[z]?w[z]:D.current,oe={},Z={},se=[];ee.forEach(ne=>{var ue,be;if(b.includes(ne))oe[ne]=w[ne];else{const Me=Q(L(Q(L({},ae),{language:ne}),o&&{status:(be=(ue=e==null?void 0:e.translation_rules[ne])==null?void 0:ue.game_status)!=null?be:"INACTIVE"}),{related:[]});ne!==z&&delete Me.id,Z[ne]=Me}}),b.filter(ne=>!ee.includes(ne)).forEach(ne=>{var ue;(ue=w[ne])!=null&&ue.id&&se.push(Q(L({},w[ne]),{status:"INACTIVE"}))}),E(se),v(ee),y(z!=null?z:null);const re=Object.keys(Z);if(re.length>0){const ne=re.map(ue=>A(this,null,function*(){const be=yield a([Z[ue]],ue);Z[ue]=be[0]}));try{yield Promise.all(ne)}catch(ue){R(!1);return}}C(L(L({},oe),Z)),y(z!=null?z:null),R(!1),P(!1)}),updateSelectedEntity:ee=>{M?C(ae=>Q(L({},ae),{[S]:ee})):D.current=ee},applyTranslation:(ee,ae)=>A(this,null,function*(){M&&ee===S||!M&&ee===ae?H(!0):V(!0);const Z=M?w[S]:D.current,se=e!=null&&e.default_language&&ee!==e.default_language?e.default_language:void 0;try{const ne=(yield a([Z],ee,se))[0];M?C(ue=>Q(L({},ue),{[S]:ne})):(D.current=ne,C(ue=>Q(L({},ue),{[ae]:ne}))),p==null||p(ne)}finally{H(!1),V(!1)}}),parentEntity:x,manageMultiLingual:se=>A(this,[se],function*({mainEntityCurrentBody:ee,editMode:ae,onSuccess:oe,onError:Z}){var me,Ce;let re=n;if(!ae){const ve=h(L({},ee));ve.auth_requirement=ve.auth_requirement||i,ve.language=ve.language||z;const Ae=yield l(L({},ve));if(Ae.ok){const Pe=yield Ae.json();re=(me=Pe.data)!=null?me:Pe}else{Z("create");return}}for(const ve of I){const Ae=h(L({},ve));(Ae.branding_id||ra(Ae.branding))&&(Ae.branding=null),yield c(ve.id,Ae),yield u(ve.id)}const ne=(ae?n==null?void 0:n.language:null)||z,ue=Object.values(w).filter(ve=>ve.language!==ne&&!I.some(Ae=>Ae.id===ve.id)),be={},Me=ue.map(ve=>A(this,null,function*(){var Oe;const Ae=ve.id?d(L({},ve)):h(L({},ve));Ae.auth_requirement=Ae.auth_requirement||i,Ae.related=(Ae.related||[]).filter(Ze=>!(Ze.entity_type===r&&Ze.entity_relationship==="translatedFrom"&&Ze.entity_id===re.id)),Ae.related.push({entity_type:r,entity_relationship:"translatedFrom",entity_id:re.id}),(Ae.branding_id||ra(Ae.branding))&&(Ae.branding=null);const Pe=ve.id?yield c(ve.id,L({},Ae)):yield l(L({},Ae));if(Pe.ok){const Ze=yield Pe.json();be[ve.language]=(Oe=Ze.data)!=null?Oe:Ze}else throw new Error("translation")}));try{yield Promise.all(Me)}catch(ve){Z("translation");return}const $e=h(L({},ee));$e.auth_requirement=$e.auth_requirement||i,$e.language=$e.language||z,Object.keys(be).length>0&&($e.related=Object.values(be).map(ve=>({entity_type:r,entity_relationship:"translatedTo",entity_id:ve.id}))),($e.branding_id||ra($e.branding))&&($e.branding=null);const Ct=(ae?n==null?void 0:n.id:null)||(re==null?void 0:re.id),he=yield c(Ct,L({},$e));if(he.ok){const ve=yield he.json(),Ae=(Ce=ve.data)!=null?Ce:ve;be[Ae.language||z]=Ae;const Pe={};Object.keys(be).forEach(Oe=>{Pe[Oe]=d(be[Oe])}),C(Pe),E([]),oe(Ae,Pe)}else Z("update")})}};var Nx=(t=>(t.BOOLEAN="BOOLEAN",t.NUMBER="NUMBER",t.ENUM="ENUM",t.FREE_INPUT="FREE_INPUT",t))(Nx||{}),Fx=(t=>(t.ACTIVE="ACTIVE",t.SETTLED="SETTLED",t.VOID="VOID",t))(Fx||{});class g3{constructor(){G(this,"id","");G(this,"question","");G(this,"status","ACTIVE");G(this,"void_reason",null);G(this,"points",0);G(this,"outcome_type",null);G(this,"valid_outcomes",null);G(this,"outcome",null)}}class m3{constructor(){G(this,"id","");G(this,"title","");G(this,"description","");G(this,"type","EVENT");G(this,"rules","");G(this,"status","PENDING");G(this,"images",null);G(this,"related",[]);G(this,"custom_fields",null);G(this,"predictions_cutoff","");G(this,"fixtures",[]);G(this,"tiebreaker",{stat_tiebreaker_enabled:!1,stat_total:0});G(this,"branding_id",null);G(this,"language",null);G(this,"flags",[])}}class v3{constructor(){G(this,"title","");G(this,"description","");G(this,"config",{})}}class b3{constructor(e){G(this,"limit");G(this,"startAfter");G(this,"sortOrder");G(this,"infoPageIds");this.limit=e.limit||20,this.startAfter=e.startAfter||null,this.sortOrder=e.sortOrder||"desc",this.infoPageIds=e.infoPageIds||null}}class y3{constructor(e){G(this,"id","");G(this,"title","");G(this,"subtitle",null);G(this,"type","");G(this,"contentType",Gi.JSON);G(this,"body","");G(this,"language","");G(this,"context",null);G(this,"brandingId",null);G(this,"images",null);G(this,"labels",null);G(this,"createdAt","");G(this,"updatedAt","");this.id=e.id,this.title=e.title,this.subtitle=e.subtitle,this.type=e.type,this.contentType=e.content_type,this.body=e.body,this.language=e.language,this.context=e.context,this.brandingId=e.branding_id,this.images=e.images,this.labels=e.labels,this.createdAt=e.created_at,this.updatedAt=e.updated_at}}class x3{constructor(){G(this,"id","");G(this,"title","");G(this,"description","");G(this,"branding",null);G(this,"branding_id",null);G(this,"type","");G(this,"status","");G(this,"language","");G(this,"tiebreaker",{time_tiebreaker:!0});G(this,"ad_content","");G(this,"auth_requirement",null);G(this,"labels",{});G(this,"custom_fields",{});G(this,"rules","");G(this,"flags",[]);G(this,"images",null);G(this,"predictions_cutoff","");G(this,"schedule_open_at","");G(this,"fixtures",[]);G(this,"related",[]);G(this,"excluded_profile_ids",[])}}const C3={APIProvider:V_,AuthProvider:H_,AuthContext:Rg,ComponentProvider:u3,useComponentContext:d3,useAPIContext:Je,useIsMobile:h3,useMultiLanguage:p3,constants:{supportedLanguages:De,languagesMap:oo},helpers:{areAllValuesFalsy:ra,remapKeysToSpecificCase:Pl,translateTexts:f3}};Ie.EventGameFixtureStatusEnum=Fx,Ie.EventGameFixturesModel=g3,Ie.EventGameOutcomeTypeEnum=Nx,Ie.EventGameRequestBody=m3,Ie.GameRequestBody=x3,Ie.InfoPageModel=y3,Ie.InfoPageRequestBody=t4,Ie.InfoPagesFilters=b3,Ie.WidgetConfigRequestBody=v3,Ie.default=C3,Object.defineProperties(Ie,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BracketGameRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/models/games/bracket/BracketGameRequestBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnF,KAAK,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAEvH,KAAK,sBAAsB,GACxB,cAAc,GACd,gBAAgB,GAChB,WAAW,GACX,QAAQ,GACR,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,iBAAiB,CAAC;AAErB,UAAU,QAAQ;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,UAAU,CAAC;IACxB,mBAAmB,EAAE,sBAAsB,CAAC;CAC5C;AAED,UAAU,KAAK;IACd,YAAY,EAAE,gCAAgC,EAAE,CAAC;CACjD;AAED,UAAU,SAAS;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC7B;AAED,UAAU,cAAc;IACvB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,OAAO,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAM;IAChB,KAAK,EAAE,MAAM,CAAM;IACnB,WAAW,EAAE,MAAM,CAAM;IACzB,IAAI,EAAE,MAAM,CAAa;IACzB,KAAK,EAAE,MAAM,CAAM;IACnB,MAAM,EAAE,MAAM,CAAM;IACpB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAQ;IAClC,MAAM,EAAE,MAAM,CAAK;IACnB,OAAO,EAAE,QAAQ,EAAE,CAAM;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IACpC,kBAAkB,EAAE,MAAM,CAAM;IAChC,IAAI,EAAE,KAAK,CAAwB;IACnC,QAAQ,EAAE,SAAS,EAAE,CAAM;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;
|
|
1
|
+
{"version":3,"file":"BracketGameRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/models/games/bracket/BracketGameRequestBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnF,KAAK,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAEvH,KAAK,sBAAsB,GACxB,cAAc,GACd,gBAAgB,GAChB,WAAW,GACX,QAAQ,GACR,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,iBAAiB,CAAC;AAErB,UAAU,QAAQ;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,UAAU,CAAC;IACxB,mBAAmB,EAAE,sBAAsB,CAAC;CAC5C;AAED,UAAU,KAAK;IACd,YAAY,EAAE,gCAAgC,EAAE,CAAC;CACjD;AAED,UAAU,SAAS;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC7B;AAED,UAAU,cAAc;IACvB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,OAAO,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAM;IAChB,KAAK,EAAE,MAAM,CAAM;IACnB,WAAW,EAAE,MAAM,CAAM;IACzB,IAAI,EAAE,MAAM,CAAa;IACzB,KAAK,EAAE,MAAM,CAAM;IACnB,MAAM,EAAE,MAAM,CAAM;IACpB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAQ;IAClC,MAAM,EAAE,MAAM,CAAK;IACnB,OAAO,EAAE,QAAQ,EAAE,CAAM;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IACpC,kBAAkB,EAAE,MAAM,CAAM;IAChC,IAAI,EAAE,KAAK,CAAwB;IACnC,QAAQ,EAAE,SAAS,EAAE,CAAM;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAClC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAM;CAC/B"}
|
|
@@ -75,6 +75,8 @@ export default class EventGameRequestBody {
|
|
|
75
75
|
fixtures: EventGameFixturesModel[];
|
|
76
76
|
tiebreaker: ITiebreaker;
|
|
77
77
|
branding_id: string | null;
|
|
78
|
+
language: string | null;
|
|
79
|
+
flags: string[];
|
|
78
80
|
}
|
|
79
81
|
export {};
|
|
80
82
|
//# sourceMappingURL=EventGameRequestBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventGameRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/models/games/event/EventGameRequestBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,WAAW,QAAQ;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,UAAU,CAAC;IACxB,mBAAmB,EAAE,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,WAAW;IAC3B,uBAAuB,EAAE,OAAO,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACzC,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,oBAAY,wBAAwB;IACnC,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,UAAU,eAAe;CACzB;AAED;;GAEG;AACH,oBAAY,0BAA0B;IACrC,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CACb;AAED;;GAEG;AACH,KAAK,iBAAiB,CAAC,CAAC,SAAS,wBAAwB,IAAI,CAAC,SAAS,wBAAwB,CAAC,OAAO,GACpG,IAAI,GACJ,CAAC,SAAS,wBAAwB,CAAC,MAAM,GACxC,2BAA2B,GAC3B,CAAC,SAAS,wBAAwB,CAAC,IAAI,GACtC,yBAAyB,GACzB,CAAC,SAAS,wBAAwB,CAAC,UAAU,GAC5C,IAAI,GACJ,KAAK,CAAC;AAEZ;;GAEG;AACH,KAAK,WAAW,CAAC,CAAC,SAAS,wBAAwB,IAAI,CAAC,SAAS,wBAAwB,CAAC,OAAO,GAC9F,OAAO,GAAG,IAAI,GACd,CAAC,SAAS,wBAAwB,CAAC,MAAM,GACxC,MAAM,GAAG,IAAI,GACb,CAAC,SAAS,wBAAwB,CAAC,IAAI,GACtC,MAAM,GAAG,IAAI,GACb,CAAC,SAAS,wBAAwB,CAAC,UAAU,GAC5C,MAAM,GAAG,IAAI,GACb,KAAK,CAAC;AAEZ;;GAEG;AACH,qBAAa,sBAAsB,CAAC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB;IACzF,EAAE,EAAE,MAAM,CAAM;IAChB,QAAQ,EAAE,MAAM,CAAM;IACtB,MAAM,EAAE,0BAA0B,CAAqC;IACvE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAClC,MAAM,EAAE,MAAM,CAAK;IACnB,YAAY,EAAE,CAAC,CAAwB;IACvC,cAAc,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAA2C;IAC/E,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAqC;CACnE;AAED,MAAM,CAAC,OAAO,OAAO,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAM;IAChB,KAAK,EAAE,MAAM,CAAM;IACnB,WAAW,EAAE,MAAM,CAAM;IACzB,IAAI,EAAE,MAAM,CAAW;IACvB,KAAK,EAAE,MAAM,CAAM;IACnB,MAAM,EAAE,MAAM,CAAa;IAC3B,MAAM,EAAE,WAAW,GAAG,IAAI,CAAQ;IAClC,OAAO,EAAE,QAAQ,EAAE,CAAM;IACzB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAQ;IACpD,kBAAkB,EAAE,MAAM,CAAM;IAChC,QAAQ,EAAE,sBAAsB,EAAE,CAAM;IACxC,UAAU,EAAE,WAAW,CAAqD;IAC5E,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;
|
|
1
|
+
{"version":3,"file":"EventGameRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/models/games/event/EventGameRequestBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,WAAW,QAAQ;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,UAAU,CAAC;IACxB,mBAAmB,EAAE,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,WAAW;IAC3B,uBAAuB,EAAE,OAAO,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACzC,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC3C,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,oBAAY,wBAAwB;IACnC,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,UAAU,eAAe;CACzB;AAED;;GAEG;AACH,oBAAY,0BAA0B;IACrC,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;CACb;AAED;;GAEG;AACH,KAAK,iBAAiB,CAAC,CAAC,SAAS,wBAAwB,IAAI,CAAC,SAAS,wBAAwB,CAAC,OAAO,GACpG,IAAI,GACJ,CAAC,SAAS,wBAAwB,CAAC,MAAM,GACxC,2BAA2B,GAC3B,CAAC,SAAS,wBAAwB,CAAC,IAAI,GACtC,yBAAyB,GACzB,CAAC,SAAS,wBAAwB,CAAC,UAAU,GAC5C,IAAI,GACJ,KAAK,CAAC;AAEZ;;GAEG;AACH,KAAK,WAAW,CAAC,CAAC,SAAS,wBAAwB,IAAI,CAAC,SAAS,wBAAwB,CAAC,OAAO,GAC9F,OAAO,GAAG,IAAI,GACd,CAAC,SAAS,wBAAwB,CAAC,MAAM,GACxC,MAAM,GAAG,IAAI,GACb,CAAC,SAAS,wBAAwB,CAAC,IAAI,GACtC,MAAM,GAAG,IAAI,GACb,CAAC,SAAS,wBAAwB,CAAC,UAAU,GAC5C,MAAM,GAAG,IAAI,GACb,KAAK,CAAC;AAEZ;;GAEG;AACH,qBAAa,sBAAsB,CAAC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB;IACzF,EAAE,EAAE,MAAM,CAAM;IAChB,QAAQ,EAAE,MAAM,CAAM;IACtB,MAAM,EAAE,0BAA0B,CAAqC;IACvE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAClC,MAAM,EAAE,MAAM,CAAK;IACnB,YAAY,EAAE,CAAC,CAAwB;IACvC,cAAc,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAA2C;IAC/E,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAqC;CACnE;AAED,MAAM,CAAC,OAAO,OAAO,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAM;IAChB,KAAK,EAAE,MAAM,CAAM;IACnB,WAAW,EAAE,MAAM,CAAM;IACzB,IAAI,EAAE,MAAM,CAAW;IACvB,KAAK,EAAE,MAAM,CAAM;IACnB,MAAM,EAAE,MAAM,CAAa;IAC3B,MAAM,EAAE,WAAW,GAAG,IAAI,CAAQ;IAClC,OAAO,EAAE,QAAQ,EAAE,CAAM;IACzB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAQ;IACpD,kBAAkB,EAAE,MAAM,CAAM;IAChC,QAAQ,EAAE,sBAAsB,EAAE,CAAM;IACxC,UAAU,EAAE,WAAW,CAAqD;IAC5E,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAClC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAM;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandingGameRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/models/games/standing/StandingGameRequestBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEpF,KAAK,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAEvH,KAAK,sBAAsB,GACxB,cAAc,GACd,gBAAgB,GAChB,WAAW,GACX,QAAQ,GACR,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,iBAAiB,CAAC;AAErB,UAAU,QAAQ;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,UAAU,CAAC;IACxB,mBAAmB,EAAE,sBAAsB,CAAC;CAC5C;AAED,UAAU,KAAK;IACd,YAAY,EAAE,iCAAiC,EAAE,CAAC;CAClD;AAED,MAAM,CAAC,OAAO,OAAO,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAM;IAChB,KAAK,EAAE,MAAM,CAAM;IACnB,WAAW,EAAE,MAAM,CAAM;IACzB,IAAI,EAAE,MAAM,CAAa;IACzB,KAAK,EAAE,MAAM,CAAM;IACnB,MAAM,EAAE,MAAM,CAAM;IACpB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAQ;IAClC,MAAM,EAAE,MAAM,CAAK;IACnB,OAAO,EAAE,QAAQ,EAAE,CAAM;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IACpC,kBAAkB,EAAE,MAAM,CAAM;IAChC,IAAI,EAAE,KAAK,CAAwB;IACnC,OAAO,EAAE,MAAM,EAAE,CAAM;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IACpC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;
|
|
1
|
+
{"version":3,"file":"StandingGameRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/models/games/standing/StandingGameRequestBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEpF,KAAK,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,cAAc,GAAG,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;AAEvH,KAAK,sBAAsB,GACxB,cAAc,GACd,gBAAgB,GAChB,WAAW,GACX,QAAQ,GACR,WAAW,GACX,cAAc,GACd,kBAAkB,GAClB,iBAAiB,CAAC;AAErB,UAAU,QAAQ;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,UAAU,CAAC;IACxB,mBAAmB,EAAE,sBAAsB,CAAC;CAC5C;AAED,UAAU,KAAK;IACd,YAAY,EAAE,iCAAiC,EAAE,CAAC;CAClD;AAED,MAAM,CAAC,OAAO,OAAO,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAM;IAChB,KAAK,EAAE,MAAM,CAAM;IACnB,WAAW,EAAE,MAAM,CAAM;IACzB,IAAI,EAAE,MAAM,CAAa;IACzB,KAAK,EAAE,MAAM,CAAM;IACnB,MAAM,EAAE,MAAM,CAAM;IACpB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAQ;IAClC,MAAM,EAAE,MAAM,CAAK;IACnB,OAAO,EAAE,QAAQ,EAAE,CAAM;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IACpC,kBAAkB,EAAE,MAAM,CAAM;IAChC,IAAI,EAAE,KAAK,CAAwB;IACnC,OAAO,EAAE,MAAM,EAAE,CAAM;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IACpC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAClC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAM;CAC/B"}
|